ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.1.x/configure
(Generate patch)

Comparing hopm/trunk/configure (file contents):
Revision 5122 by michael, Thu Dec 25 16:50:00 2014 UTC vs.
Revision 5167 by michael, Fri Dec 26 18:58:49 2014 UTC

# Line 1872 | Line 1872 | fi
1872    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873  
1874   } # ac_fn_c_check_header_mongrel
1875
1876 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1877 # -------------------------------------------
1878 # Tests whether TYPE exists after having included INCLUDES, setting cache
1879 # variable VAR accordingly.
1880 ac_fn_c_check_type ()
1881 {
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886  $as_echo_n "(cached) " >&6
1887 else
1888  eval "$3=no"
1889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h.  */
1891 $4
1892 int
1893 main ()
1894 {
1895 if (sizeof ($2))
1896         return 0;
1897  ;
1898  return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h.  */
1904 $4
1905 int
1906 main ()
1907 {
1908 if (sizeof (($2)))
1909            return 0;
1910  ;
1911  return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915
1916 else
1917  eval "$3=yes"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_type
1929
1930 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1931 # --------------------------------------------
1932 # Tries to find the compile-time value of EXPR in a program that includes
1933 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1934 # computed
1935 ac_fn_c_compute_int ()
1936 {
1937  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938  if test "$cross_compiling" = yes; then
1939    # Depending upon the size, compute the lo and hi bounds.
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 $4
1943 int
1944 main ()
1945 {
1946 static int test_array [1 - 2 * !(($2) >= 0)];
1947 test_array [0] = 0;
1948 return test_array [0];
1949
1950  ;
1951  return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955  ac_lo=0 ac_mid=0
1956  while :; do
1957    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 $4
1960 int
1961 main ()
1962 {
1963 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1964 test_array [0] = 0;
1965 return test_array [0];
1966
1967  ;
1968  return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972  ac_hi=$ac_mid; break
1973 else
1974  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1975                        if test $ac_lo -le $ac_mid; then
1976                          ac_lo= ac_hi=
1977                          break
1978                        fi
1979                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982  done
1983 else
1984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $4
1987 int
1988 main ()
1989 {
1990 static int test_array [1 - 2 * !(($2) < 0)];
1991 test_array [0] = 0;
1992 return test_array [0];
1993
1994  ;
1995  return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999  ac_hi=-1 ac_mid=-1
2000  while :; do
2001    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 $4
2004 int
2005 main ()
2006 {
2007 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2008 test_array [0] = 0;
2009 return test_array [0];
2010
2011  ;
2012  return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016  ac_lo=$ac_mid; break
2017 else
2018  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2019                        if test $ac_mid -le $ac_hi; then
2020                          ac_lo= ac_hi=
2021                          break
2022                        fi
2023                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026  done
2027 else
2028  ac_lo= ac_hi=
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 # Binary search between lo and hi bounds.
2034 while test "x$ac_lo" != "x$ac_hi"; do
2035  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h.  */
2038 $4
2039 int
2040 main ()
2041 {
2042 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2043 test_array [0] = 0;
2044 return test_array [0];
2045
2046  ;
2047  return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051  ac_hi=$ac_mid
2052 else
2053  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 done
2057 case $ac_lo in #((
2058 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2059 '') ac_retval=1 ;;
2060 esac
2061  else
2062    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 $4
2065 static long int longval () { return $2; }
2066 static unsigned long int ulongval () { return $2; }
2067 #include <stdio.h>
2068 #include <stdlib.h>
2069 int
2070 main ()
2071 {
2072
2073  FILE *f = fopen ("conftest.val", "w");
2074  if (! f)
2075    return 1;
2076  if (($2) < 0)
2077    {
2078      long int i = longval ();
2079      if (i != ($2))
2080        return 1;
2081      fprintf (f, "%ld", i);
2082    }
2083  else
2084    {
2085      unsigned long int i = ulongval ();
2086      if (i != ($2))
2087        return 1;
2088      fprintf (f, "%lu", i);
2089    }
2090  /* Do not output a trailing newline, as this causes \r\n confusion
2091     on some platforms.  */
2092  return ferror (f) || fclose (f) != 0;
2093
2094  ;
2095  return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_run "$LINENO"; then :
2099  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2100 else
2101  ac_retval=1
2102 fi
2103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2104  conftest.$ac_objext conftest.beam conftest.$ac_ext
2105 rm -f conftest.val
2106
2107  fi
2108  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109  as_fn_set_status $ac_retval
2110
2111 } # ac_fn_c_compute_int
1875   cat >config.log <<_ACEOF
1876   This file contains any messages produced by compilers while
1877   running configure, to aid debugging if configure makes a mistake.
# Line 12467 | Line 12230 | fi
12230   done
12231  
12232  
12470 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12471 if test "x$ac_cv_type_size_t" = xyes; then :
12472
12473 else
12474
12475 cat >>confdefs.h <<_ACEOF
12476 #define size_t unsigned int
12477 _ACEOF
12478
12479 fi
12480
12233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12234   $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12235   if ${ac_cv_header_time+:} false; then :
# Line 12549 | Line 12301 | $as_echo "#define TM_IN_SYS_TIME 1" >>co
12301   fi
12302  
12303  
12552 for ac_func in strftime
12553 do :
12554  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12555 if test "x$ac_cv_func_strftime" = xyes; then :
12556  cat >>confdefs.h <<_ACEOF
12557 #define HAVE_STRFTIME 1
12558 _ACEOF
12559
12560 else
12561  # strftime is in -lintl on SCO UNIX.
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12563 $as_echo_n "checking for strftime in -lintl... " >&6; }
12564 if ${ac_cv_lib_intl_strftime+:} false; then :
12565  $as_echo_n "(cached) " >&6
12566 else
12567  ac_check_lib_save_LIBS=$LIBS
12568 LIBS="-lintl  $LIBS"
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h.  */
12571
12572 /* Override any GCC internal prototype to avoid an error.
12573   Use char because int might match the return type of a GCC
12574   builtin and then its argument prototype would still apply.  */
12575 #ifdef __cplusplus
12576 extern "C"
12577 #endif
12578 char strftime ();
12579 int
12580 main ()
12581 {
12582 return strftime ();
12583  ;
12584  return 0;
12585 }
12586 _ACEOF
12587 if ac_fn_c_try_link "$LINENO"; then :
12588  ac_cv_lib_intl_strftime=yes
12589 else
12590  ac_cv_lib_intl_strftime=no
12591 fi
12592 rm -f core conftest.err conftest.$ac_objext \
12593    conftest$ac_exeext conftest.$ac_ext
12594 LIBS=$ac_check_lib_save_LIBS
12595 fi
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12597 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12598 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12599  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12600
12601 LIBS="-lintl $LIBS"
12602 fi
12603
12604 fi
12605 done
12606
12607
12304  
12305   for ac_prog in 'bison -y' byacc
12306   do
# Line 12996 | Line 12692 | fi
12692   fi
12693  
12694  
12695 < for ac_func in strlcpy strlcat inet_aton inet_pton socket strdup strstr
12695 > for ac_func in strlcpy strlcat inet_aton socket strdup strstr
12696   do :
12697    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12698   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
# Line 13246 | Line 12942 | $as_echo "#define AC_APPLE_UNIVERSAL_BUI
12942   esac
12943  
12944  
13249 # The cast to long int works around a bug in the HP C Compiler
13250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13252 # This bug is HP SR number 8606223364.
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13254 $as_echo_n "checking size of int... " >&6; }
13255 if ${ac_cv_sizeof_int+:} false; then :
13256  $as_echo_n "(cached) " >&6
13257 else
13258  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13259
13260 else
13261  if test "$ac_cv_type_int" = yes; then
13262     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13264 as_fn_error 77 "cannot compute sizeof (int)
13265 See \`config.log' for more details" "$LINENO" 5; }
13266   else
13267     ac_cv_sizeof_int=0
13268   fi
13269 fi
13270
13271 fi
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13273 $as_echo "$ac_cv_sizeof_int" >&6; }
13274
13275
13276
13277 cat >>confdefs.h <<_ACEOF
13278 #define SIZEOF_INT $ac_cv_sizeof_int
13279 _ACEOF
13280
13281
13282 # The cast to long int works around a bug in the HP C Compiler
13283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13285 # This bug is HP SR number 8606223364.
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13287 $as_echo_n "checking size of short... " >&6; }
13288 if ${ac_cv_sizeof_short+:} false; then :
13289  $as_echo_n "(cached) " >&6
13290 else
13291  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13292
13293 else
13294  if test "$ac_cv_type_short" = yes; then
13295     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13297 as_fn_error 77 "cannot compute sizeof (short)
13298 See \`config.log' for more details" "$LINENO" 5; }
13299   else
13300     ac_cv_sizeof_short=0
13301   fi
13302 fi
13303
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13306 $as_echo "$ac_cv_sizeof_short" >&6; }
13307
13308
13309
13310 cat >>confdefs.h <<_ACEOF
13311 #define SIZEOF_SHORT $ac_cv_sizeof_short
13312 _ACEOF
13313
13314
13315 # The cast to long int works around a bug in the HP C Compiler
13316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13318 # This bug is HP SR number 8606223364.
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13320 $as_echo_n "checking size of long... " >&6; }
13321 if ${ac_cv_sizeof_long+:} false; then :
13322  $as_echo_n "(cached) " >&6
13323 else
13324  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13325
13326 else
13327  if test "$ac_cv_type_long" = yes; then
13328     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13330 as_fn_error 77 "cannot compute sizeof (long)
13331 See \`config.log' for more details" "$LINENO" 5; }
13332   else
13333     ac_cv_sizeof_long=0
13334   fi
13335 fi
13336
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13339 $as_echo "$ac_cv_sizeof_long" >&6; }
13340
13341
13342
13343 cat >>confdefs.h <<_ACEOF
13344 #define SIZEOF_LONG $ac_cv_sizeof_long
13345 _ACEOF
13346
13347
13348
13349
13350
12945  
12946  
12947  
# Line 13450 | Line 13044 | DEFS=-DHAVE_CONFIG_H
13044  
13045   ac_libobjs=
13046   ac_ltlibobjs=
13047 + U=
13048   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13049    # 1. Remove the extension, and $U if already installed.
13050    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'

Comparing hopm/trunk/configure (property svn:eol-style):
Revision 5122 by michael, Thu Dec 25 16:50:00 2014 UTC vs.
Revision 5167 by michael, Fri Dec 26 18:58:49 2014 UTC

# Line 0 | Line 1
1 + native

Comparing hopm/trunk/configure (property svn:keywords):
Revision 5122 by michael, Thu Dec 25 16:50:00 2014 UTC vs.
Revision 5167 by michael, Fri Dec 26 18:58:49 2014 UTC

# Line 0 | Line 1
1 + Id

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)