/[CvsGraph]/cvsgraph/configure.in
ViewVC logotype

Diff of /cvsgraph/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.10, Sat Jul 20 20:41:40 2002 UTC revision 1.11, Thu Jul 15 09:42:58 2004 UTC
# Line 98  Line 98 
98      ac_cv_c_size_int_ptr="no",      ac_cv_c_size_int_ptr="no",
99      ac_cv_c_size_int_ptr="yes",      ac_cv_c_size_int_ptr="yes",
100      ac_cv_c_size_int_ptr="yes") )      ac_cv_c_size_int_ptr="yes") )
101    
102    AC_CACHE_CHECK( "sizes of long and void *", ac_cv_c_size_long_ptr,
103              AC_TRY_RUN([
104    int main(void) {
105      return sizeof(long) == sizeof(void *);
106    }],
107        ac_cv_c_size_long_ptr="no",
108        ac_cv_c_size_long_ptr="yes",
109        ac_cv_c_size_long_ptr="yes") )
110    
111    AC_CACHE_CHECK( "sizes of long long and void *", ac_cv_c_size_longlong_ptr,
112              AC_TRY_RUN([
113    int main(void) {
114      return sizeof(long long) == sizeof(void *);
115    }],
116        ac_cv_c_size_longlong_ptr="no",
117        ac_cv_c_size_longlong_ptr="yes",
118        ac_cv_c_size_longlong_ptr="yes") )
119    
120  if test "$ac_cv_c_size_int_ptr" = "no"  if test "$ac_cv_c_size_int_ptr" = "no"
121  then  then
122          echo "** The size of an integer is not equal to a pointer."          if test "$ac_cv_c_size_long_ptr" = "no"
123          echo "   There are currently assumtions in the app that"          then
124          echo "   prevents it from running if these sizes are not"                  if test "$ac_cv_c_size_longlong_ptr" = "no"
125          echo "   equal."                  then
126          echo "   Please configure with a compiler that uses the"                          echo "** The size of an integer is not equal to a pointer."
127          echo "   same sizes for ints and pointers."                          echo "   There are currently assumtions in the app that"
128          exit 1                          echo "   prevents it from running if these sizes are not"
129                            echo "   equal."
130                            echo "   Please configure with a compiler that uses the"
131                            echo "   same sizes for ints and pointers."
132                            exit 1
133                    else
134                            INTTYPE="long long"
135                    fi
136            else
137                    INTTYPE="long"
138            fi
139    else
140            INTTYPE="int"
141  fi  fi
142    
143  dnl Check getopt.h because Solaris 8 doesn't have one  dnl Check getopt.h because Solaris 8 doesn't have one
# Line 305  Line 336 
336    
337    
338  AC_SUBST(LEXFLAGS)  AC_SUBST(LEXFLAGS)
339    AC_SUBST(INTTYPE)
340    
341  AC_OUTPUT(Makefile)  AC_OUTPUT(Makefile)
342    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0