~ubuntu-branches/ubuntu/precise/gniall/precise

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar (Debian packages)
  • Date: 2004-07-23 13:26:25 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040723132625-whhmxpqr3uq0szfu
Tags: 0.7.1-7
* debian/rules:
  + Use debian/compat instead of DH_COMPAT.
  + Use dh_installman instead of dh_installmanpages.
* debian/control:
  + Set policy to 3.6.1.1.
  + Removed the leading "a" in the short description.
* debian/menu:
  + Quoted strings where appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
ac_help=
12
12
ac_default_prefix=/usr/local
13
13
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
  --with-gnome-includes   Specify location of GNOME headers"
16
 
ac_help="$ac_help
17
 
  --with-gnome-libs       Specify location of GNOME libs"
18
 
ac_help="$ac_help
19
 
  --with-gnome            Specify prefix for GNOME files"
20
 
ac_help="$ac_help
21
 
  --enable-compile-warnings=[no/minimum/yes]    Turn on compiler warnings."
22
 
ac_help="$ac_help
23
 
  --enable-iso-c          Try to warn if code is not ISO C "
24
 
ac_help="$ac_help
25
 
  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
26
 
ac_help="$ac_help
27
 
  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
28
 
ac_help="$ac_help
29
 
  --disable-gtktest       Do not try to compile and run a test GTK program"
30
14
 
31
15
# Initialize some variables set by options.
32
16
# The variables have the same names as the options, with
557
541
ac_config_sub=$ac_aux_dir/config.sub
558
542
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559
543
 
 
544
am__api_version="1.4"
560
545
# Find a good install program.  We prefer a C program (faster),
561
546
# so one script is as good as another.  But avoid the broken or
562
547
# incompatible versions:
569
554
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
570
555
# ./install, which can be erroneously created by make from ./install.sh.
571
556
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
572
 
echo "configure:573: checking for a BSD compatible install" >&5
 
557
echo "configure:558: checking for a BSD compatible install" >&5
573
558
if test -z "$INSTALL"; then
574
559
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
575
560
  echo $ac_n "(cached) $ac_c" 1>&6
621
606
 
622
607
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
623
608
 
624
 
 
625
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
626
 
 
627
609
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
628
 
echo "configure:629: checking whether build environment is sane" >&5
 
610
echo "configure:611: checking whether build environment is sane" >&5
629
611
# Just in case
630
612
sleep 1
631
613
echo timestamp > conftestfile
682
664
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
683
665
 
684
666
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
685
 
echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
667
echo "configure:668: checking whether ${MAKE-make} sets \${MAKE}" >&5
686
668
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
687
669
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
688
670
  echo $ac_n "(cached) $ac_c" 1>&6
727
709
 
728
710
 
729
711
missing_dir=`cd $ac_aux_dir && pwd`
730
 
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
731
 
echo "configure:732: checking for working aclocal" >&5
 
712
echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
 
713
echo "configure:714: checking for working aclocal-${am__api_version}" >&5
732
714
# Run test in a subshell; some versions of sh will print an error if
733
715
# an executable is not found, even if stderr is redirected.
734
716
# Redirect stdin to placate older versions of autoconf.  Sigh.
735
 
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
736
 
   ACLOCAL=aclocal
 
717
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
718
   ACLOCAL=aclocal-${am__api_version}
737
719
   echo "$ac_t""found" 1>&6
738
720
else
739
 
   ACLOCAL="$missing_dir/missing aclocal"
 
721
   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
740
722
   echo "$ac_t""missing" 1>&6
741
723
fi
742
724
 
743
725
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
744
 
echo "configure:745: checking for working autoconf" >&5
 
726
echo "configure:727: checking for working autoconf" >&5
745
727
# Run test in a subshell; some versions of sh will print an error if
746
728
# an executable is not found, even if stderr is redirected.
747
729
# Redirect stdin to placate older versions of autoconf.  Sigh.
753
735
   echo "$ac_t""missing" 1>&6
754
736
fi
755
737
 
756
 
echo $ac_n "checking for working automake""... $ac_c" 1>&6
757
 
echo "configure:758: checking for working automake" >&5
 
738
echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
 
739
echo "configure:740: checking for working automake-${am__api_version}" >&5
758
740
# Run test in a subshell; some versions of sh will print an error if
759
741
# an executable is not found, even if stderr is redirected.
760
742
# Redirect stdin to placate older versions of autoconf.  Sigh.
761
 
if (automake --version) < /dev/null > /dev/null 2>&1; then
762
 
   AUTOMAKE=automake
 
743
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
744
   AUTOMAKE=automake-${am__api_version}
763
745
   echo "$ac_t""found" 1>&6
764
746
else
765
 
   AUTOMAKE="$missing_dir/missing automake"
 
747
   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
766
748
   echo "$ac_t""missing" 1>&6
767
749
fi
768
750
 
769
751
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
770
 
echo "configure:771: checking for working autoheader" >&5
 
752
echo "configure:753: checking for working autoheader" >&5
771
753
# Run test in a subshell; some versions of sh will print an error if
772
754
# an executable is not found, even if stderr is redirected.
773
755
# Redirect stdin to placate older versions of autoconf.  Sigh.
780
762
fi
781
763
 
782
764
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
783
 
echo "configure:784: checking for working makeinfo" >&5
 
765
echo "configure:766: checking for working makeinfo" >&5
784
766
# Run test in a subshell; some versions of sh will print an error if
785
767
# an executable is not found, even if stderr is redirected.
786
768
# Redirect stdin to placate older versions of autoconf.  Sigh.
793
775
fi
794
776
 
795
777
 
796
 
 
797
 
        
798
 
 
799
 
if test x = y; then
800
 
  INSIDE_GNOME_COMMON_TRUE=
801
 
  INSIDE_GNOME_COMMON_FALSE='#'
802
 
else
803
 
  INSIDE_GNOME_COMMON_TRUE='#'
804
 
  INSIDE_GNOME_COMMON_FALSE=
805
 
fi
806
 
 
807
 
        for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
808
 
 
809
 
 
810
 
 
811
 
                
812
 
        
813
 
        
814
 
        
815
 
 
816
 
        # Check whether --with-gnome-includes or --without-gnome-includes was given.
817
 
if test "${with_gnome_includes+set}" = set; then
818
 
  withval="$with_gnome_includes"
819
 
  
820
 
        CFLAGS="$CFLAGS -I$withval"
821
 
        
822
 
fi
823
 
 
824
 
        
825
 
        # Check whether --with-gnome-libs or --without-gnome-libs was given.
826
 
if test "${with_gnome_libs+set}" = set; then
827
 
  withval="$with_gnome_libs"
828
 
  
829
 
        LDFLAGS="$LDFLAGS -L$withval"
830
 
        gnome_prefix=$withval
831
 
        
832
 
fi
833
 
 
834
 
 
835
 
        # Check whether --with-gnome or --without-gnome was given.
836
 
if test "${with_gnome+set}" = set; then
837
 
  withval="$with_gnome"
838
 
  if test x$withval = xyes; then
839
 
                        want_gnome=yes
840
 
                                                                        :
841
 
                else
842
 
                        if test "x$withval" = xno; then
843
 
                                want_gnome=no
844
 
                        else
845
 
                                want_gnome=yes
846
 
                                LDFLAGS="$LDFLAGS -L$withval/lib"
847
 
                                CFLAGS="$CFLAGS -I$withval/include"
848
 
                                gnome_prefix=$withval/lib
849
 
                        fi
850
 
                fi
851
 
else
852
 
  want_gnome=yes
853
 
fi
854
 
 
855
 
 
856
 
        if test "x$want_gnome" = xyes; then
857
 
 
858
 
            # Extract the first word of "gnome-config", so it can be a program name with args.
859
 
set dummy gnome-config; ac_word=$2
860
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
861
 
echo "configure:862: checking for $ac_word" >&5
862
 
if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
863
 
  echo $ac_n "(cached) $ac_c" 1>&6
864
 
else
865
 
  case "$GNOME_CONFIG" in
866
 
  /*)
867
 
  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
868
 
  ;;
869
 
  ?:/*)                  
870
 
  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
871
 
  ;;
872
 
  *)
873
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
874
 
  ac_dummy="$PATH"
875
 
  for ac_dir in $ac_dummy; do 
876
 
    test -z "$ac_dir" && ac_dir=.
877
 
    if test -f $ac_dir/$ac_word; then
878
 
      ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
879
 
      break
880
 
    fi
881
 
  done
882
 
  IFS="$ac_save_ifs"
883
 
  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
884
 
  ;;
885
 
esac
886
 
fi
887
 
GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
888
 
if test -n "$GNOME_CONFIG"; then
889
 
  echo "$ac_t""$GNOME_CONFIG" 1>&6
890
 
else
891
 
  echo "$ac_t""no" 1>&6
892
 
fi
893
 
 
894
 
            if test "$GNOME_CONFIG" = "no"; then
895
 
              no_gnome_config="yes"
896
 
            else
897
 
              echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
898
 
echo "configure:899: checking if $GNOME_CONFIG works" >&5
899
 
              if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
900
 
                echo "$ac_t""yes" 1>&6
901
 
                GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
902
 
                GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
903
 
                GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
904
 
                
905
 
              else
906
 
                echo "$ac_t""no" 1>&6
907
 
                no_gnome_config="yes"
908
 
              fi
909
 
            fi
910
 
 
911
 
            if test x$exec_prefix = xNONE; then
912
 
                if test x$prefix = xNONE; then
913
 
                    gnome_prefix=$ac_default_prefix/lib
914
 
                else
915
 
                    gnome_prefix=$prefix/lib
916
 
                fi
917
 
            else
918
 
                gnome_prefix=`eval echo \`echo $libdir\``
919
 
            fi
920
 
        
921
 
            if test "$no_gnome_config" = "yes"; then
922
 
              echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
923
 
echo "configure:924: checking for gnomeConf.sh file in $gnome_prefix" >&5
924
 
              if test -f $gnome_prefix/gnomeConf.sh; then
925
 
                echo "$ac_t""found" 1>&6
926
 
                echo "loading gnome configuration from" \
927
 
                     "$gnome_prefix/gnomeConf.sh"
928
 
                . $gnome_prefix/gnomeConf.sh
929
 
                
930
 
              else
931
 
                echo "$ac_t""not found" 1>&6
932
 
                if test xfail = xfail; then
933
 
                  { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
934
 
                fi
935
 
              fi
936
 
            fi
937
 
        fi
938
 
 
939
 
 
 
778
#AM_ACLOCAL_INCLUDE(macros)
 
779
 
 
780
#GNOME_INIT
940
781
 
941
782
# Extract the first word of "gcc", so it can be a program name with args.
942
783
set dummy gcc; ac_word=$2
943
784
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944
 
echo "configure:945: checking for $ac_word" >&5
 
785
echo "configure:786: checking for $ac_word" >&5
945
786
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946
787
  echo $ac_n "(cached) $ac_c" 1>&6
947
788
else
971
812
  # Extract the first word of "cc", so it can be a program name with args.
972
813
set dummy cc; ac_word=$2
973
814
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974
 
echo "configure:975: checking for $ac_word" >&5
 
815
echo "configure:816: checking for $ac_word" >&5
975
816
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
976
817
  echo $ac_n "(cached) $ac_c" 1>&6
977
818
else
1022
863
      # Extract the first word of "cl", so it can be a program name with args.
1023
864
set dummy cl; ac_word=$2
1024
865
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025
 
echo "configure:1026: checking for $ac_word" >&5
 
866
echo "configure:867: checking for $ac_word" >&5
1026
867
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027
868
  echo $ac_n "(cached) $ac_c" 1>&6
1028
869
else
1054
895
fi
1055
896
 
1056
897
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1057
 
echo "configure:1058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
898
echo "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1058
899
 
1059
900
ac_ext=c
1060
901
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1065
906
 
1066
907
cat > conftest.$ac_ext << EOF
1067
908
 
1068
 
#line 1069 "configure"
 
909
#line 910 "configure"
1069
910
#include "confdefs.h"
1070
911
 
1071
912
main(){return(0);}
1072
913
EOF
1073
 
if { (eval echo configure:1074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
914
if { (eval echo configure:915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1074
915
  ac_cv_prog_cc_works=yes
1075
916
  # If we can't run a trivial program, we are probably using a cross compiler.
1076
917
  if (./conftest; exit) 2>/dev/null; then
1096
937
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1097
938
fi
1098
939
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1099
 
echo "configure:1100: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
940
echo "configure:941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1100
941
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1101
942
cross_compiling=$ac_cv_prog_cc_cross
1102
943
 
1103
944
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1104
 
echo "configure:1105: checking whether we are using GNU C" >&5
 
945
echo "configure:946: checking whether we are using GNU C" >&5
1105
946
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1106
947
  echo $ac_n "(cached) $ac_c" 1>&6
1107
948
else
1110
951
  yes;
1111
952
#endif
1112
953
EOF
1113
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
954
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1114
955
  ac_cv_prog_gcc=yes
1115
956
else
1116
957
  ac_cv_prog_gcc=no
1129
970
ac_save_CFLAGS="$CFLAGS"
1130
971
CFLAGS=
1131
972
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1132
 
echo "configure:1133: checking whether ${CC-cc} accepts -g" >&5
 
973
echo "configure:974: checking whether ${CC-cc} accepts -g" >&5
1133
974
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1134
975
  echo $ac_n "(cached) $ac_c" 1>&6
1135
976
else
1162
1003
 
1163
1004
 
1164
1005
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1165
 
echo "configure:1166: checking how to run the C preprocessor" >&5
 
1006
echo "configure:1007: checking how to run the C preprocessor" >&5
1166
1007
# On Suns, sometimes $CPP names a directory.
1167
1008
if test -n "$CPP" && test -d "$CPP"; then
1168
1009
  CPP=
1177
1018
  # On the NeXT, cc -E runs the code through the compiler's parser,
1178
1019
  # not just through cpp.
1179
1020
  cat > conftest.$ac_ext <<EOF
1180
 
#line 1181 "configure"
 
1021
#line 1022 "configure"
1181
1022
#include "confdefs.h"
1182
1023
#include <assert.h>
1183
1024
Syntax Error
1184
1025
EOF
1185
1026
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1186
 
{ (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1027
{ (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1187
1028
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1188
1029
if test -z "$ac_err"; then
1189
1030
  :
1194
1035
  rm -rf conftest*
1195
1036
  CPP="${CC-cc} -E -traditional-cpp"
1196
1037
  cat > conftest.$ac_ext <<EOF
1197
 
#line 1198 "configure"
 
1038
#line 1039 "configure"
1198
1039
#include "confdefs.h"
1199
1040
#include <assert.h>
1200
1041
Syntax Error
1201
1042
EOF
1202
1043
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1203
 
{ (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1044
{ (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1204
1045
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1205
1046
if test -z "$ac_err"; then
1206
1047
  :
1211
1052
  rm -rf conftest*
1212
1053
  CPP="${CC-cc} -nologo -E"
1213
1054
  cat > conftest.$ac_ext <<EOF
1214
 
#line 1215 "configure"
 
1055
#line 1056 "configure"
1215
1056
#include "confdefs.h"
1216
1057
#include <assert.h>
1217
1058
Syntax Error
1218
1059
EOF
1219
1060
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1220
 
{ (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1061
{ (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1221
1062
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1222
1063
if test -z "$ac_err"; then
1223
1064
  :
1242
1083
echo "$ac_t""$CPP" 1>&6
1243
1084
 
1244
1085
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1245
 
echo "configure:1246: checking for ANSI C header files" >&5
 
1086
echo "configure:1087: checking for ANSI C header files" >&5
1246
1087
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1247
1088
  echo $ac_n "(cached) $ac_c" 1>&6
1248
1089
else
1249
1090
  cat > conftest.$ac_ext <<EOF
1250
 
#line 1251 "configure"
 
1091
#line 1092 "configure"
1251
1092
#include "confdefs.h"
1252
1093
#include <stdlib.h>
1253
1094
#include <stdarg.h>
1255
1096
#include <float.h>
1256
1097
EOF
1257
1098
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1258
 
{ (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1099
{ (eval echo configure:1100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1259
1100
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1260
1101
if test -z "$ac_err"; then
1261
1102
  rm -rf conftest*
1272
1113
if test $ac_cv_header_stdc = yes; then
1273
1114
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1274
1115
cat > conftest.$ac_ext <<EOF
1275
 
#line 1276 "configure"
 
1116
#line 1117 "configure"
1276
1117
#include "confdefs.h"
1277
1118
#include <string.h>
1278
1119
EOF
1290
1131
if test $ac_cv_header_stdc = yes; then
1291
1132
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1292
1133
cat > conftest.$ac_ext <<EOF
1293
 
#line 1294 "configure"
 
1134
#line 1135 "configure"
1294
1135
#include "confdefs.h"
1295
1136
#include <stdlib.h>
1296
1137
EOF
1311
1152
  :
1312
1153
else
1313
1154
  cat > conftest.$ac_ext <<EOF
1314
 
#line 1315 "configure"
 
1155
#line 1156 "configure"
1315
1156
#include "confdefs.h"
1316
1157
#include <ctype.h>
1317
1158
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1322
1163
exit (0); }
1323
1164
 
1324
1165
EOF
1325
 
if { (eval echo configure:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1166
if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1326
1167
then
1327
1168
  :
1328
1169
else
1347
1188
 
1348
1189
 
1349
1190
echo $ac_n "checking for working const""... $ac_c" 1>&6
1350
 
echo "configure:1351: checking for working const" >&5
 
1191
echo "configure:1192: checking for working const" >&5
1351
1192
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1352
1193
  echo $ac_n "(cached) $ac_c" 1>&6
1353
1194
else
1354
1195
  cat > conftest.$ac_ext <<EOF
1355
 
#line 1356 "configure"
 
1196
#line 1197 "configure"
1356
1197
#include "confdefs.h"
1357
1198
 
1358
1199
int main() {
1401
1242
 
1402
1243
; return 0; }
1403
1244
EOF
1404
 
if { (eval echo configure:1405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1245
if { (eval echo configure:1246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1405
1246
  rm -rf conftest*
1406
1247
  ac_cv_c_const=yes
1407
1248
else
1423
1264
 
1424
1265
 
1425
1266
echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1426
 
echo "configure:1427: checking for vprintf" >&5
 
1267
echo "configure:1268: checking for vprintf" >&5
1427
1268
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1428
1269
  echo $ac_n "(cached) $ac_c" 1>&6
1429
1270
else
1430
1271
  cat > conftest.$ac_ext <<EOF
1431
 
#line 1432 "configure"
 
1272
#line 1273 "configure"
1432
1273
#include "confdefs.h"
1433
1274
/* System header to define __stub macros and hopefully few prototypes,
1434
1275
    which can conflict with char vprintf(); below.  */
1451
1292
 
1452
1293
; return 0; }
1453
1294
EOF
1454
 
if { (eval echo configure:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1295
if { (eval echo configure:1296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1455
1296
  rm -rf conftest*
1456
1297
  eval "ac_cv_func_vprintf=yes"
1457
1298
else
1475
1316
 
1476
1317
if test "$ac_cv_func_vprintf" != yes; then
1477
1318
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1478
 
echo "configure:1479: checking for _doprnt" >&5
 
1319
echo "configure:1320: checking for _doprnt" >&5
1479
1320
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1480
1321
  echo $ac_n "(cached) $ac_c" 1>&6
1481
1322
else
1482
1323
  cat > conftest.$ac_ext <<EOF
1483
 
#line 1484 "configure"
 
1324
#line 1325 "configure"
1484
1325
#include "confdefs.h"
1485
1326
/* System header to define __stub macros and hopefully few prototypes,
1486
1327
    which can conflict with char _doprnt(); below.  */
1503
1344
 
1504
1345
; return 0; }
1505
1346
EOF
1506
 
if { (eval echo configure:1507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1347
if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1507
1348
  rm -rf conftest*
1508
1349
  eval "ac_cv_func__doprnt=yes"
1509
1350
else
1528
1369
fi
1529
1370
 
1530
1371
 
1531
 
 
1532
 
  # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1533
 
if test "${enable_compile_warnings+set}" = set; then
1534
 
  enableval="$enable_compile_warnings"
1535
 
  :
1536
 
else
1537
 
  enable_compile_warnings=minimum
1538
 
fi
1539
 
 
1540
 
 
1541
 
  echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1542
 
echo "configure:1543: checking what warning flags to pass to the C compiler" >&5
1543
 
  warnCFLAGS=
1544
 
  if test "x$enable_compile_warnings" != "xno"; then
1545
 
    if test "x$GCC" = "xyes"; then
1546
 
      case " $CFLAGS " in
1547
 
      *\ \      -Wall\ \        *) ;;
1548
 
      *) warnCFLAGS="-Wall -Wno-unused" ;;
1549
 
      esac
1550
 
 
1551
 
      ## -W is not all that useful.  And it cannot be controlled
1552
 
      ## with individual -Wno-xxx flags, unlike -Wall
1553
 
      if test "x$enable_compile_warnings" = "xyes"; then
1554
 
        warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
1555
 
      fi
1556
 
    fi
1557
 
  fi
1558
 
  echo "$ac_t""$warnCFLAGS" 1>&6
1559
 
 
1560
 
  # Check whether --enable-iso-c or --disable-iso-c was given.
1561
 
if test "${enable_iso_c+set}" = set; then
1562
 
  enableval="$enable_iso_c"
1563
 
  :
1564
 
else
1565
 
  enable_iso_c=no
1566
 
fi
1567
 
 
1568
 
 
1569
 
  echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1570
 
echo "configure:1571: checking what language compliance flags to pass to the C compiler" >&5
1571
 
  complCFLAGS=
1572
 
  if test "x$enable_iso_c" != "xno"; then
1573
 
    if test "x$GCC" = "xyes"; then
1574
 
      case " $CFLAGS " in
1575
 
      *\ \      -ansi\ \        *) ;;
1576
 
      *) complCFLAGS="$complCFLAGS -ansi" ;;
1577
 
      esac
1578
 
 
1579
 
      case " $CFLAGS " in
1580
 
      *\ \      -pedantic\ \    *) ;;
1581
 
      *) complCFLAGS="$complCFLAGS -pedantic" ;;
1582
 
      esac
1583
 
    fi
1584
 
  fi
1585
 
  echo "$ac_t""$complCFLAGS" 1>&6
1586
 
  if test "x$cflags_set" != "xyes"; then
1587
 
    CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1588
 
    cflags_set=yes
1589
 
    
1590
 
  fi
1591
 
 
1592
 
 
1593
 
        PTHREAD_LIB=""
1594
 
        echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1595
 
echo "configure:1596: checking for pthread_create in -lpthread" >&5
1596
 
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1597
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1598
 
  echo $ac_n "(cached) $ac_c" 1>&6
1599
 
else
1600
 
  ac_save_LIBS="$LIBS"
1601
 
LIBS="-lpthread  $LIBS"
1602
 
cat > conftest.$ac_ext <<EOF
1603
 
#line 1604 "configure"
1604
 
#include "confdefs.h"
1605
 
/* Override any gcc2 internal prototype to avoid an error.  */
1606
 
/* We use char because int might match the return type of a gcc2
1607
 
    builtin and then its argument prototype would still apply.  */
1608
 
char pthread_create();
1609
 
 
1610
 
int main() {
1611
 
pthread_create()
1612
 
; return 0; }
1613
 
EOF
1614
 
if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1615
 
  rm -rf conftest*
1616
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1617
 
else
1618
 
  echo "configure: failed program was:" >&5
1619
 
  cat conftest.$ac_ext >&5
1620
 
  rm -rf conftest*
1621
 
  eval "ac_cv_lib_$ac_lib_var=no"
1622
 
fi
1623
 
rm -f conftest*
1624
 
LIBS="$ac_save_LIBS"
1625
 
 
1626
 
fi
1627
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1628
 
  echo "$ac_t""yes" 1>&6
1629
 
  PTHREAD_LIB="-lpthread"
1630
 
else
1631
 
  echo "$ac_t""no" 1>&6
1632
 
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
1633
 
echo "configure:1634: checking for pthread_create in -lpthreads" >&5
1634
 
ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
1635
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1636
 
  echo $ac_n "(cached) $ac_c" 1>&6
1637
 
else
1638
 
  ac_save_LIBS="$LIBS"
1639
 
LIBS="-lpthreads  $LIBS"
1640
 
cat > conftest.$ac_ext <<EOF
1641
 
#line 1642 "configure"
1642
 
#include "confdefs.h"
1643
 
/* Override any gcc2 internal prototype to avoid an error.  */
1644
 
/* We use char because int might match the return type of a gcc2
1645
 
    builtin and then its argument prototype would still apply.  */
1646
 
char pthread_create();
1647
 
 
1648
 
int main() {
1649
 
pthread_create()
1650
 
; return 0; }
1651
 
EOF
1652
 
if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1653
 
  rm -rf conftest*
1654
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1655
 
else
1656
 
  echo "configure: failed program was:" >&5
1657
 
  cat conftest.$ac_ext >&5
1658
 
  rm -rf conftest*
1659
 
  eval "ac_cv_lib_$ac_lib_var=no"
1660
 
fi
1661
 
rm -f conftest*
1662
 
LIBS="$ac_save_LIBS"
1663
 
 
1664
 
fi
1665
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1666
 
  echo "$ac_t""yes" 1>&6
1667
 
  PTHREAD_LIB="-lpthreads"
1668
 
else
1669
 
  echo "$ac_t""no" 1>&6
1670
 
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1671
 
echo "configure:1672: checking for pthread_create in -lc_r" >&5
1672
 
ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
1673
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1674
 
  echo $ac_n "(cached) $ac_c" 1>&6
1675
 
else
1676
 
  ac_save_LIBS="$LIBS"
1677
 
LIBS="-lc_r  $LIBS"
1678
 
cat > conftest.$ac_ext <<EOF
1679
 
#line 1680 "configure"
1680
 
#include "confdefs.h"
1681
 
/* Override any gcc2 internal prototype to avoid an error.  */
1682
 
/* We use char because int might match the return type of a gcc2
1683
 
    builtin and then its argument prototype would still apply.  */
1684
 
char pthread_create();
1685
 
 
1686
 
int main() {
1687
 
pthread_create()
1688
 
; return 0; }
1689
 
EOF
1690
 
if { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1691
 
  rm -rf conftest*
1692
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1693
 
else
1694
 
  echo "configure: failed program was:" >&5
1695
 
  cat conftest.$ac_ext >&5
1696
 
  rm -rf conftest*
1697
 
  eval "ac_cv_lib_$ac_lib_var=no"
1698
 
fi
1699
 
rm -f conftest*
1700
 
LIBS="$ac_save_LIBS"
1701
 
 
1702
 
fi
1703
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1704
 
  echo "$ac_t""yes" 1>&6
1705
 
  PTHREAD_LIB="-lc_r"
1706
 
else
1707
 
  echo "$ac_t""no" 1>&6
1708
 
echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
1709
 
echo "configure:1710: checking for pthread_create" >&5
1710
 
if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
1711
 
  echo $ac_n "(cached) $ac_c" 1>&6
1712
 
else
1713
 
  cat > conftest.$ac_ext <<EOF
1714
 
#line 1715 "configure"
1715
 
#include "confdefs.h"
1716
 
/* System header to define __stub macros and hopefully few prototypes,
1717
 
    which can conflict with char pthread_create(); below.  */
1718
 
#include <assert.h>
1719
 
/* Override any gcc2 internal prototype to avoid an error.  */
1720
 
/* We use char because int might match the return type of a gcc2
1721
 
    builtin and then its argument prototype would still apply.  */
1722
 
char pthread_create();
1723
 
 
1724
 
int main() {
1725
 
 
1726
 
/* The GNU C library defines this for functions which it implements
1727
 
    to always fail with ENOSYS.  Some functions are actually named
1728
 
    something starting with __ and the normal name is an alias.  */
1729
 
#if defined (__stub_pthread_create) || defined (__stub___pthread_create)
1730
 
choke me
1731
 
#else
1732
 
pthread_create();
1733
 
#endif
1734
 
 
1735
 
; return 0; }
1736
 
EOF
1737
 
if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1738
 
  rm -rf conftest*
1739
 
  eval "ac_cv_func_pthread_create=yes"
1740
 
else
1741
 
  echo "configure: failed program was:" >&5
1742
 
  cat conftest.$ac_ext >&5
1743
 
  rm -rf conftest*
1744
 
  eval "ac_cv_func_pthread_create=no"
1745
 
fi
1746
 
rm -f conftest*
1747
 
fi
1748
 
 
1749
 
if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
1750
 
  echo "$ac_t""yes" 1>&6
1751
 
  :
1752
 
else
1753
 
  echo "$ac_t""no" 1>&6
1754
 
fi
1755
 
 
1756
 
                    
1757
 
fi
1758
 
 
1759
 
                
1760
 
fi
1761
 
 
1762
 
        
1763
 
fi
1764
 
 
1765
 
        
1766
 
        
1767
 
 
1768
 
 
1769
 
        # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1770
 
if test "${with_gtk_prefix+set}" = set; then
1771
 
  withval="$with_gtk_prefix"
1772
 
  gtk_config_prefix="$withval"
1773
 
else
1774
 
  gtk_config_prefix=""
1775
 
fi
1776
 
 
1777
 
# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1778
 
if test "${with_gtk_exec_prefix+set}" = set; then
1779
 
  withval="$with_gtk_exec_prefix"
1780
 
  gtk_config_exec_prefix="$withval"
1781
 
else
1782
 
  gtk_config_exec_prefix=""
1783
 
fi
1784
 
 
1785
 
# Check whether --enable-gtktest or --disable-gtktest was given.
1786
 
if test "${enable_gtktest+set}" = set; then
1787
 
  enableval="$enable_gtktest"
1788
 
  :
1789
 
else
1790
 
  enable_gtktest=yes
1791
 
fi
1792
 
 
1793
 
 
1794
 
  for module in . 
1795
 
  do
1796
 
      case "$module" in
1797
 
         gthread) 
1798
 
             glib_config_args="$glib_config_args gthread"
1799
 
         ;;
1800
 
      esac
1801
 
  done
1802
 
 
1803
 
  if test x$gtk_config_exec_prefix != x ; then
1804
 
     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
1805
 
     if test x${GTK_CONFIG+set} != xset ; then
1806
 
        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
1807
 
     fi
1808
 
  fi
1809
 
  if test x$gtk_config_prefix != x ; then
1810
 
     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
1811
 
     if test x${GTK_CONFIG+set} != xset ; then
1812
 
        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
1813
 
     fi
1814
 
  fi
1815
 
 
1816
 
  # Extract the first word of "gtk-config", so it can be a program name with args.
1817
 
set dummy gtk-config; ac_word=$2
 
1372
#GNOME_COMPILE_WARNINGS
 
1373
#GNOME2_X_CHECKS
 
1374
 
 
1375
  succeeded=no
 
1376
 
 
1377
  if test -z "$PKG_CONFIG"; then
 
1378
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
1379
set dummy pkg-config; ac_word=$2
1818
1380
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819
 
echo "configure:1820: checking for $ac_word" >&5
1820
 
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
 
1381
echo "configure:1382: checking for $ac_word" >&5
 
1382
if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
1821
1383
  echo $ac_n "(cached) $ac_c" 1>&6
1822
1384
else
1823
 
  case "$GTK_CONFIG" in
 
1385
  case "$PKG_CONFIG" in
1824
1386
  /*)
1825
 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
 
1387
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1826
1388
  ;;
1827
1389
  ?:/*)                  
1828
 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
 
1390
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
1829
1391
  ;;
1830
1392
  *)
1831
1393
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1833
1395
  for ac_dir in $ac_dummy; do 
1834
1396
    test -z "$ac_dir" && ac_dir=.
1835
1397
    if test -f $ac_dir/$ac_word; then
1836
 
      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
 
1398
      ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
1837
1399
      break
1838
1400
    fi
1839
1401
  done
1840
1402
  IFS="$ac_save_ifs"
1841
 
  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
 
1403
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
1842
1404
  ;;
1843
1405
esac
1844
1406
fi
1845
 
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
1846
 
if test -n "$GTK_CONFIG"; then
1847
 
  echo "$ac_t""$GTK_CONFIG" 1>&6
1848
 
else
1849
 
  echo "$ac_t""no" 1>&6
1850
 
fi
1851
 
 
1852
 
  min_gtk_version=1.1.12
1853
 
  echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1854
 
echo "configure:1855: checking for GTK - version >= $min_gtk_version" >&5
1855
 
  no_gtk=""
1856
 
  if test "$GTK_CONFIG" = "no" ; then
1857
 
    no_gtk=yes
1858
 
  else
1859
 
    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
1860
 
    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
1861
 
    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
1862
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1863
 
    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
1864
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1865
 
    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
1866
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1867
 
    if test "x$enable_gtktest" = "xyes" ; then
1868
 
      ac_save_CFLAGS="$CFLAGS"
1869
 
      ac_save_LIBS="$LIBS"
1870
 
      CFLAGS="$CFLAGS $GTK_CFLAGS"
1871
 
      LIBS="$GTK_LIBS $LIBS"
1872
 
      rm -f conf.gtktest
1873
 
      if test "$cross_compiling" = yes; then
1874
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
1875
 
else
1876
 
  cat > conftest.$ac_ext <<EOF
1877
 
#line 1878 "configure"
1878
 
#include "confdefs.h"
1879
 
 
1880
 
#include <gtk/gtk.h>
1881
 
#include <stdio.h>
1882
 
#include <stdlib.h>
1883
 
 
1884
 
int 
1885
 
main ()
1886
 
{
1887
 
  int major, minor, micro;
1888
 
  char *tmp_version;
1889
 
 
1890
 
  system ("touch conf.gtktest");
1891
 
 
1892
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
1893
 
  tmp_version = g_strdup("$min_gtk_version");
1894
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1895
 
     printf("%s, bad version string\n", "$min_gtk_version");
1896
 
     exit(1);
1897
 
   }
1898
 
 
1899
 
  if ((gtk_major_version != $gtk_config_major_version) ||
1900
 
      (gtk_minor_version != $gtk_config_minor_version) ||
1901
 
      (gtk_micro_version != $gtk_config_micro_version))
1902
 
    {
1903
 
      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
1904
 
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
1905
 
             gtk_major_version, gtk_minor_version, gtk_micro_version);
1906
 
      printf ("*** was found! If gtk-config was correct, then it is best\n");
1907
 
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
1908
 
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1909
 
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1910
 
      printf("*** required on your system.\n");
1911
 
      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
1912
 
      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
1913
 
      printf("*** before re-running configure\n");
1914
 
    } 
1915
 
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
1916
 
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
1917
 
           (gtk_minor_version != GTK_MINOR_VERSION) ||
1918
 
           (gtk_micro_version != GTK_MICRO_VERSION))
1919
 
    {
1920
 
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
1921
 
             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
1922
 
      printf("*** library (version %d.%d.%d)\n",
1923
 
             gtk_major_version, gtk_minor_version, gtk_micro_version);
1924
 
    }
1925
 
#endif /* defined (GTK_MAJOR_VERSION) ... */
1926
 
  else
1927
 
    {
1928
 
      if ((gtk_major_version > major) ||
1929
 
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
1930
 
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
1931
 
      {
1932
 
        return 0;
1933
 
       }
1934
 
     else
1935
 
      {
1936
 
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
1937
 
               gtk_major_version, gtk_minor_version, gtk_micro_version);
1938
 
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
1939
 
               major, minor, micro);
1940
 
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
1941
 
        printf("***\n");
1942
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
1943
 
        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
1944
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
1945
 
        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
1946
 
        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
1947
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1948
 
        printf("*** so that the correct libraries are found at run-time))\n");
1949
 
      }
1950
 
    }
1951
 
  return 1;
1952
 
}
1953
 
 
1954
 
EOF
1955
 
if { (eval echo configure:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1956
 
then
1957
 
  :
1958
 
else
1959
 
  echo "configure: failed program was:" >&5
1960
 
  cat conftest.$ac_ext >&5
1961
 
  rm -fr conftest*
1962
 
  no_gtk=yes
1963
 
fi
1964
 
rm -fr conftest*
1965
 
fi
1966
 
 
1967
 
       CFLAGS="$ac_save_CFLAGS"
1968
 
       LIBS="$ac_save_LIBS"
1969
 
     fi
1970
 
  fi
1971
 
  if test "x$no_gtk" = x ; then
1972
 
     echo "$ac_t""yes" 1>&6
1973
 
     :     
1974
 
  else
1975
 
     echo "$ac_t""no" 1>&6
1976
 
     if test "$GTK_CONFIG" = "no" ; then
1977
 
       echo "*** The gtk-config script installed by GTK could not be found"
1978
 
       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
1979
 
       echo "*** your path, or set the GTK_CONFIG environment variable to the"
1980
 
       echo "*** full path to gtk-config."
1981
 
     else
1982
 
       if test -f conf.gtktest ; then
1983
 
        :
1984
 
       else
1985
 
          echo "*** Could not run GTK test program, checking why..."
1986
 
          CFLAGS="$CFLAGS $GTK_CFLAGS"
1987
 
          LIBS="$LIBS $GTK_LIBS"
1988
 
          cat > conftest.$ac_ext <<EOF
1989
 
#line 1990 "configure"
1990
 
#include "confdefs.h"
1991
 
 
1992
 
#include <gtk/gtk.h>
1993
 
#include <stdio.h>
1994
 
 
1995
 
int main() {
1996
 
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
1997
 
; return 0; }
1998
 
EOF
1999
 
if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2000
 
  rm -rf conftest*
2001
 
   echo "*** The test program compiled, but did not run. This usually means"
2002
 
          echo "*** that the run-time linker is not finding GTK or finding the wrong"
2003
 
          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2004
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2005
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
2006
 
          echo "*** is required on your system"
2007
 
          echo "***"
2008
 
          echo "*** If you have an old version installed, it is best to remove it, although"
2009
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2010
 
          echo "***"
2011
 
          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2012
 
          echo "*** came with the system with the command"
2013
 
          echo "***"
2014
 
          echo "***    rpm --erase --nodeps gtk gtk-devel" 
2015
 
else
2016
 
  echo "configure: failed program was:" >&5
2017
 
  cat conftest.$ac_ext >&5
2018
 
  rm -rf conftest*
2019
 
   echo "*** The test program failed to compile or link. See the file config.log for the"
2020
 
          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2021
 
          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2022
 
          echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
2023
 
fi
2024
 
rm -f conftest*
2025
 
          CFLAGS="$ac_save_CFLAGS"
2026
 
          LIBS="$ac_save_LIBS"
2027
 
       fi
2028
 
     fi
2029
 
     GTK_CFLAGS=""
2030
 
     GTK_LIBS=""
2031
 
     { echo "configure: error: GTK not installed" 1>&2; exit 1; }
2032
 
  fi
2033
 
  
2034
 
  
2035
 
  rm -f conf.gtktest
2036
 
 
2037
 
 
2038
 
                                                CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
2039
 
 
2040
 
        saved_ldflags="$LDFLAGS"
2041
 
        LDFLAGS="$LDFLAGS $GTK_LIBS"
2042
 
 
2043
 
        gnome_cv_passdown_x_libs="$GTK_LIBS"
2044
 
        gnome_cv_passdown_X_LIBS="$GTK_LIBS"
2045
 
        gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"
2046
 
        gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"
2047
 
 
2048
 
        LDFLAGS="$saved_ldflags $GTK_LIBS"
2049
 
 
2050
 
        USE_DEVGTK=true
2051
 
 
2052
 
 
2053
 
        GNOME_HAVE_SM=true
2054
 
        case "$GTK_LIBS" in
2055
 
         *-lSM*)
2056
 
                    ;;
2057
 
         *)
2058
 
                    echo $ac_n "checking for SmcSaveYourselfDone in -lSM""... $ac_c" 1>&6
2059
 
echo "configure:2060: checking for SmcSaveYourselfDone in -lSM" >&5
2060
 
ac_lib_var=`echo SM'_'SmcSaveYourselfDone | sed 'y%./+-%__p_%'`
2061
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2062
 
  echo $ac_n "(cached) $ac_c" 1>&6
2063
 
else
2064
 
  ac_save_LIBS="$LIBS"
2065
 
LIBS="-lSM $x_libs -lICE $LIBS"
2066
 
cat > conftest.$ac_ext <<EOF
2067
 
#line 2068 "configure"
2068
 
#include "confdefs.h"
2069
 
/* Override any gcc2 internal prototype to avoid an error.  */
2070
 
/* We use char because int might match the return type of a gcc2
2071
 
    builtin and then its argument prototype would still apply.  */
2072
 
char SmcSaveYourselfDone();
2073
 
 
2074
 
int main() {
2075
 
SmcSaveYourselfDone()
2076
 
; return 0; }
2077
 
EOF
2078
 
if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2079
 
  rm -rf conftest*
2080
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2081
 
else
2082
 
  echo "configure: failed program was:" >&5
2083
 
  cat conftest.$ac_ext >&5
2084
 
  rm -rf conftest*
2085
 
  eval "ac_cv_lib_$ac_lib_var=no"
2086
 
fi
2087
 
rm -f conftest*
2088
 
LIBS="$ac_save_LIBS"
2089
 
 
2090
 
fi
2091
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2092
 
  echo "$ac_t""yes" 1>&6
2093
 
  GTK_LIBS="-lSM -lICE $GTK_LIBS"
2094
 
else
2095
 
  echo "$ac_t""no" 1>&6
2096
 
GNOME_HAVE_SM=false
2097
 
fi
2098
 
 
2099
 
            ;;
2100
 
        esac
2101
 
 
2102
 
        if test "$GNOME_HAVE_SM" = true; then
2103
 
           for ac_hdr in X11/SM/SMlib.h
2104
 
do
2105
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2106
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2107
 
echo "configure:2108: checking for $ac_hdr" >&5
2108
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2109
 
  echo $ac_n "(cached) $ac_c" 1>&6
2110
 
else
2111
 
  cat > conftest.$ac_ext <<EOF
2112
 
#line 2113 "configure"
2113
 
#include "confdefs.h"
2114
 
#include <$ac_hdr>
2115
 
EOF
2116
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2117
 
{ (eval echo configure:2118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2118
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2119
 
if test -z "$ac_err"; then
2120
 
  rm -rf conftest*
2121
 
  eval "ac_cv_header_$ac_safe=yes"
2122
 
else
2123
 
  echo "$ac_err" >&5
2124
 
  echo "configure: failed program was:" >&5
2125
 
  cat conftest.$ac_ext >&5
2126
 
  rm -rf conftest*
2127
 
  eval "ac_cv_header_$ac_safe=no"
2128
 
fi
2129
 
rm -f conftest*
2130
 
fi
2131
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2132
 
  echo "$ac_t""yes" 1>&6
2133
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2134
 
  cat >> confdefs.h <<EOF
2135
 
#define $ac_tr_hdr 1
2136
 
EOF
2137
 
 
2138
 
else
2139
 
  echo "$ac_t""no" 1>&6
2140
 
GNOME_HAVE_SM=false
2141
 
fi
2142
 
done
2143
 
 
2144
 
        fi
2145
 
 
2146
 
        if test "$GNOME_HAVE_SM" = true; then
2147
 
           cat >> confdefs.h <<\EOF
2148
 
#define HAVE_LIBSM 1
2149
 
EOF
2150
 
 
2151
 
        fi
2152
 
 
2153
 
        XPM_LIBS=""
2154
 
        echo $ac_n "checking for XpmFreeXpmImage in -lXpm""... $ac_c" 1>&6
2155
 
echo "configure:2156: checking for XpmFreeXpmImage in -lXpm" >&5
2156
 
ac_lib_var=`echo Xpm'_'XpmFreeXpmImage | sed 'y%./+-%__p_%'`
2157
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2158
 
  echo $ac_n "(cached) $ac_c" 1>&6
2159
 
else
2160
 
  ac_save_LIBS="$LIBS"
2161
 
LIBS="-lXpm $x_libs $LIBS"
2162
 
cat > conftest.$ac_ext <<EOF
2163
 
#line 2164 "configure"
2164
 
#include "confdefs.h"
2165
 
/* Override any gcc2 internal prototype to avoid an error.  */
2166
 
/* We use char because int might match the return type of a gcc2
2167
 
    builtin and then its argument prototype would still apply.  */
2168
 
char XpmFreeXpmImage();
2169
 
 
2170
 
int main() {
2171
 
XpmFreeXpmImage()
2172
 
; return 0; }
2173
 
EOF
2174
 
if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2175
 
  rm -rf conftest*
2176
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2177
 
else
2178
 
  echo "configure: failed program was:" >&5
2179
 
  cat conftest.$ac_ext >&5
2180
 
  rm -rf conftest*
2181
 
  eval "ac_cv_lib_$ac_lib_var=no"
2182
 
fi
2183
 
rm -f conftest*
2184
 
LIBS="$ac_save_LIBS"
2185
 
 
2186
 
fi
2187
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2188
 
  echo "$ac_t""yes" 1>&6
2189
 
  XPM_LIBS="-lXpm"
2190
 
else
2191
 
  echo "$ac_t""no" 1>&6
2192
 
fi
2193
 
 
2194
 
        
2195
 
 
2196
 
        
2197
 
        LDFLAGS="$saved_ldflags"
2198
 
 
2199
 
        
 
1407
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
1408
if test -n "$PKG_CONFIG"; then
 
1409
  echo "$ac_t""$PKG_CONFIG" 1>&6
 
1410
else
 
1411
  echo "$ac_t""no" 1>&6
 
1412
fi
 
1413
 
 
1414
  fi
 
1415
 
 
1416
  if test "$PKG_CONFIG" = "no" ; then
 
1417
     echo "*** The pkg-config script could not be found. Make sure it is"
 
1418
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
1419
     echo "*** to the full path to pkg-config."
 
1420
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
1421
  else
 
1422
     PKG_CONFIG_MIN_VERSION=0.9.0
 
1423
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
1424
        echo $ac_n "checking for "libgnomeui-2.0"""... $ac_c" 1>&6
 
1425
echo "configure:1426: checking for "libgnomeui-2.0"" >&5
 
1426
 
 
1427
        if $PKG_CONFIG --exists ""libgnomeui-2.0"" ; then
 
1428
            echo "$ac_t""yes" 1>&6
 
1429
            succeeded=yes
 
1430
 
 
1431
            echo $ac_n "checking GNOME2_CFLAGS""... $ac_c" 1>&6
 
1432
echo "configure:1433: checking GNOME2_CFLAGS" >&5
 
1433
            GNOME2_CFLAGS=`$PKG_CONFIG --cflags ""libgnomeui-2.0""`
 
1434
            echo "$ac_t""$GNOME2_CFLAGS" 1>&6
 
1435
 
 
1436
            echo $ac_n "checking GNOME2_LIBS""... $ac_c" 1>&6
 
1437
echo "configure:1438: checking GNOME2_LIBS" >&5
 
1438
            GNOME2_LIBS=`$PKG_CONFIG --libs ""libgnomeui-2.0""`
 
1439
            echo "$ac_t""$GNOME2_LIBS" 1>&6
 
1440
        else
 
1441
            GNOME2_CFLAGS=""
 
1442
            GNOME2_LIBS=""
 
1443
            ## If we have a custom action on failure, don't print errors, but 
 
1444
            ## do set a variable so people can do so.
 
1445
            GNOME2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""libgnomeui-2.0""`
 
1446
            echo $GNOME2_PKG_ERRORS
 
1447
        fi
 
1448
 
 
1449
        
 
1450
        
 
1451
     else
 
1452
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
1453
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
1454
     fi
 
1455
  fi
 
1456
 
 
1457
  if test $succeeded = yes; then
 
1458
     :
 
1459
  else
 
1460
     { echo "configure: error: Library requirements ("libgnomeui-2.0") not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
 
1461
  fi
 
1462
 
 
1463
 
2200
1464
 
2201
1465
 
2202
1466
trap '' 1 2 15
2355
1619
s%@AUTOHEADER@%$AUTOHEADER%g
2356
1620
s%@MAKEINFO@%$MAKEINFO%g
2357
1621
s%@SET_MAKE@%$SET_MAKE%g
2358
 
s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
2359
 
s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
2360
 
s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
2361
 
s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
2362
 
s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
2363
 
s%@GNOME_CONFIG@%$GNOME_CONFIG%g
2364
1622
s%@CC@%$CC%g
2365
1623
s%@CPP@%$CPP%g
2366
 
s%@cflags_set@%$cflags_set%g
2367
 
s%@GTK_CONFIG@%$GTK_CONFIG%g
2368
 
s%@GTK_CFLAGS@%$GTK_CFLAGS%g
2369
 
s%@GTK_LIBS@%$GTK_LIBS%g
2370
 
s%@XPM_LIBS@%$XPM_LIBS%g
2371
 
s%@PTHREAD_LIB@%$PTHREAD_LIB%g
 
1624
s%@PKG_CONFIG@%$PKG_CONFIG%g
 
1625
s%@GNOME2_CFLAGS@%$GNOME2_CFLAGS%g
 
1626
s%@GNOME2_LIBS@%$GNOME2_LIBS%g
2372
1627
 
2373
1628
CEOF
2374
1629
EOF