kopia lustrzana https://gitlab.com/sane-project/frontends
Made the error message that is printed if the SANE libraries can't
be found more verbose. Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
d98ce46e02
commit
ebc7e4b77c
|
@ -1,6 +1,8 @@
|
|||
2001-07-11 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
* INSTALL: Corrected some typos.
|
||||
* configure configure.in: Made the error message that is printed if
|
||||
the SANE libraries can't be found more verbose.
|
||||
|
||||
2001-07-07 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
|
|
|
@ -1480,7 +1480,7 @@ else
|
|||
int main() {
|
||||
|
||||
/* Ultrix mips cc rejects this. */
|
||||
typedef int charset[2]; const charset x;
|
||||
typedef int charset[2]; const charset x = {0,0};
|
||||
/* SunOS 4.1.1 cc rejects this. */
|
||||
char const *const *ccp;
|
||||
char **p;
|
||||
|
@ -1555,7 +1555,7 @@ for ac_kw in inline __inline__ __inline; do
|
|||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
} $ac_kw foo() {
|
||||
} int $ac_kw foo() {
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
|
@ -1883,7 +1883,7 @@ else
|
|||
#include "confdefs.h"
|
||||
#include <alloca.h>
|
||||
int main() {
|
||||
char *p = alloca(2 * sizeof(int));
|
||||
void *p = alloca(2 * sizeof(int));
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
|
@ -2238,12 +2238,15 @@ else
|
|||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/mman.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
/* This mess was copied from the GNU getpagesize.h. */
|
||||
#ifndef HAVE_GETPAGESIZE
|
||||
# ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
# endif
|
||||
|
||||
/* Assume that all systems that can run configure have sys/param.h. */
|
||||
# ifndef HAVE_SYS_PARAM_H
|
||||
|
@ -2298,7 +2301,7 @@ main()
|
|||
/*
|
||||
* First, make a file with some known garbage in it.
|
||||
*/
|
||||
data = malloc(pagesize);
|
||||
data = (char*)malloc(pagesize);
|
||||
if (!data)
|
||||
exit(1);
|
||||
for (i = 0; i < pagesize; ++i)
|
||||
|
@ -2319,7 +2322,7 @@ main()
|
|||
fd = open("conftestmmap", O_RDWR);
|
||||
if (fd < 0)
|
||||
exit(1);
|
||||
data2 = malloc(2 * pagesize);
|
||||
data2 = (char*)malloc(2 * pagesize);
|
||||
if (!data2)
|
||||
exit(1);
|
||||
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
||||
|
@ -2337,7 +2340,7 @@ main()
|
|||
*/
|
||||
for (i = 0; i < pagesize; ++i)
|
||||
*(data2 + i) = *(data2 + i) + 1;
|
||||
data3 = malloc(pagesize);
|
||||
data3 = (char*)malloc(pagesize);
|
||||
if (!data3)
|
||||
exit(1);
|
||||
if (read(fd, data3, pagesize) != pagesize)
|
||||
|
@ -2351,7 +2354,7 @@ main()
|
|||
}
|
||||
|
||||
EOF
|
||||
if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_func_mmap_fixed_mapped=yes
|
||||
else
|
||||
|
@ -2376,12 +2379,12 @@ fi
|
|||
for ac_func in atexit mkdir sigprocmask strdup strndup strftime strstr strsep strtod snprintf usleep strcasecmp strncasecmp
|
||||
do
|
||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||
echo "configure:2380: checking for $ac_func" >&5
|
||||
echo "configure:2383: checking for $ac_func" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2385 "configure"
|
||||
#line 2388 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
|
@ -2404,7 +2407,7 @@ $ac_func();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_$ac_func=yes"
|
||||
else
|
||||
|
@ -2471,7 +2474,7 @@ fi
|
|||
# Extract the first word of "sane-config", so it can be a program name with args.
|
||||
set dummy sane-config; ac_word=$2
|
||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||
echo "configure:2475: checking for $ac_word" >&5
|
||||
echo "configure:2478: checking for $ac_word" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_path_SANE_CONFIG'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
|
@ -2506,7 +2509,7 @@ fi
|
|||
|
||||
min_sane_version=1.0.0
|
||||
echo $ac_n "checking for SANE - version >= $min_sane_version""... $ac_c" 1>&6
|
||||
echo "configure:2510: checking for SANE - version >= $min_sane_version" >&5
|
||||
echo "configure:2513: checking for SANE - version >= $min_sane_version" >&5
|
||||
no_sane=""
|
||||
if test "$SANE_CONFIG" = "no" ; then
|
||||
no_sane=yes
|
||||
|
@ -2534,7 +2537,7 @@ echo "configure:2510: checking for SANE - version >= $min_sane_version" >&5
|
|||
echo $ac_n "cross compiling; assumed OK... $ac_c"
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2538 "configure"
|
||||
#line 2541 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <sane/sane.h>
|
||||
|
@ -2586,7 +2589,7 @@ main ()
|
|||
}
|
||||
|
||||
EOF
|
||||
if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
:
|
||||
else
|
||||
|
@ -2622,7 +2625,7 @@ fi
|
|||
LIBS="$LIBS $SANE_LIBS"
|
||||
LDFLAGS="$LDFLAGS $SANE_LDFLAGS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2626 "configure"
|
||||
#line 2629 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <sane/sane.h>
|
||||
|
@ -2632,7 +2635,7 @@ int main() {
|
|||
return (SANE_CURRENT_MAJOR);
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
echo "*** The test program compiled, but did not run. This usually means"
|
||||
echo "*** that the run-time linker is not finding SANE or finding the wrong"
|
||||
|
@ -2671,11 +2674,15 @@ rm -f conftest*
|
|||
rm -f conf.sanetest
|
||||
|
||||
if test "x${HAVE_SANE}" = "x"; then
|
||||
echo "*****************************************************************"
|
||||
echo "ERROR: SANE is needed for compiling sane-frontends"
|
||||
echo " - if you installed SANE as rpm make sure you also included"
|
||||
echo " sane-devel"
|
||||
echo "*****************************************************************"
|
||||
echo "**********************************************************************"
|
||||
echo "ERROR: Couldn't find SANE libraries (sane-backends). Possible reasons:"
|
||||
echo " - sane-backends isn't installed (install sane-backends before"
|
||||
echo " sane-frontends"
|
||||
echo " - the SANE header files aren't installed (if you installed"
|
||||
echo " SANE as RPM make sure you also included the sane-devel RPM)"
|
||||
echo " - the SANE libraries can't be found because /usr/local/lib/ isn't"
|
||||
echo " searched by the dynamic linker (see INSTALL for details)"
|
||||
echo "**********************************************************************"
|
||||
rm -f $cache_file
|
||||
exit
|
||||
fi
|
||||
|
@ -2722,7 +2729,7 @@ fi
|
|||
# Extract the first word of "gtk-config", so it can be a program name with args.
|
||||
set dummy gtk-config; ac_word=$2
|
||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||
echo "configure:2726: checking for $ac_word" >&5
|
||||
echo "configure:2733: checking for $ac_word" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
|
@ -2757,7 +2764,7 @@ fi
|
|||
|
||||
min_gtk_version=0.99.13
|
||||
echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
|
||||
echo "configure:2761: checking for GTK - version >= $min_gtk_version" >&5
|
||||
echo "configure:2768: checking for GTK - version >= $min_gtk_version" >&5
|
||||
no_gtk=""
|
||||
if test "$GTK_CONFIG" = "no" ; then
|
||||
no_gtk=yes
|
||||
|
@ -2780,7 +2787,7 @@ echo "configure:2761: checking for GTK - version >= $min_gtk_version" >&5
|
|||
echo $ac_n "cross compiling; assumed OK... $ac_c"
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2784 "configure"
|
||||
#line 2791 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
@ -2843,7 +2850,7 @@ main ()
|
|||
}
|
||||
|
||||
EOF
|
||||
if { (eval echo configure:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:2854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
:
|
||||
else
|
||||
|
@ -2877,7 +2884,7 @@ fi
|
|||
CFLAGS="$CFLAGS $GTK_CFLAGS"
|
||||
LIBS="$LIBS $GTK_LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2881 "configure"
|
||||
#line 2888 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
@ -2887,7 +2894,7 @@ int main() {
|
|||
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
echo "*** The test program compiled, but did not run. This usually means"
|
||||
echo "*** that the run-time linker is not finding GTK or finding the wrong"
|
||||
|
@ -2941,17 +2948,17 @@ rm -f conftest*
|
|||
do
|
||||
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||
echo "configure:2945: checking for $ac_hdr" >&5
|
||||
echo "configure:2952: checking for $ac_hdr" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2950 "configure"
|
||||
#line 2957 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <$ac_hdr>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:2955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:2962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
|
@ -2981,17 +2988,17 @@ done
|
|||
do
|
||||
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||
echo "configure:2985: checking for $ac_hdr" >&5
|
||||
echo "configure:2992: checking for $ac_hdr" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2990 "configure"
|
||||
#line 2997 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <$ac_hdr>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:2995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:3002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
|
|
14
configure.in
14
configure.in
|
@ -81,11 +81,15 @@ AC_CHECK_FUNCS(atexit mkdir sigprocmask strdup strndup strftime strstr strsep st
|
|||
AM_PATH_SANE(1.0.0, HAVE_SANE=yes, )
|
||||
dnl Print error message if sane is missing
|
||||
if test "x${HAVE_SANE}" = "x"; then
|
||||
echo "*****************************************************************"
|
||||
echo "ERROR: SANE is needed for compiling sane-frontends"
|
||||
echo " - if you installed SANE as rpm make sure you also included"
|
||||
echo " sane-devel"
|
||||
echo "*****************************************************************"
|
||||
echo "**********************************************************************"
|
||||
echo "ERROR: Couldn't find SANE libraries (sane-backends). Possible reasons:"
|
||||
echo " - sane-backends isn't installed (install sane-backends before"
|
||||
echo " sane-frontends"
|
||||
echo " - the SANE header files aren't installed (if you installed"
|
||||
echo " SANE as RPM make sure you also included the sane-devel RPM)"
|
||||
echo " - the SANE libraries can't be found because /usr/local/lib/ isn't"
|
||||
echo " searched by the dynamic linker (see INSTALL for details)"
|
||||
echo "**********************************************************************"
|
||||
rm -f $cache_file
|
||||
exit
|
||||
fi
|
||||
|
|
Ładowanie…
Reference in New Issue