@@ -1628,6 +1628,97 @@ fi
1628
1628
1629
1629
} # ac_fn_c_try_run
1630
1630
1631
+ # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1632
+ # -------------------------------------------------------
1633
+ # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1634
+ # the include files in INCLUDES and setting the cache variable VAR
1635
+ # accordingly.
1636
+ ac_fn_c_check_header_mongrel ()
1637
+ {
1638
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639
+ if eval \${$3+:} false; then :
1640
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641
+ $as_echo_n "checking for $2... " >&6; }
1642
+ if eval \${$3+:} false; then :
1643
+ $as_echo_n "(cached) " >&6
1644
+ fi
1645
+ eval ac_res=\$$3
1646
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647
+ $as_echo "$ac_res" >&6; }
1648
+ else
1649
+ # Is the header compilable?
1650
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1651
+ $as_echo_n "checking $2 usability... " >&6; }
1652
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653
+ /* end confdefs.h. */
1654
+ $4
1655
+ #include <$2>
1656
+ _ACEOF
1657
+ if ac_fn_c_try_compile "$LINENO"; then :
1658
+ ac_header_compiler=yes
1659
+ else
1660
+ ac_header_compiler=no
1661
+ fi
1662
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1664
+ $as_echo "$ac_header_compiler" >&6; }
1665
+
1666
+ # Is the header present?
1667
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1668
+ $as_echo_n "checking $2 presence... " >&6; }
1669
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670
+ /* end confdefs.h. */
1671
+ #include <$2>
1672
+ _ACEOF
1673
+ if ac_fn_c_try_cpp "$LINENO"; then :
1674
+ ac_header_preproc=yes
1675
+ else
1676
+ ac_header_preproc=no
1677
+ fi
1678
+ rm -f conftest.err conftest.i conftest.$ac_ext
1679
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1680
+ $as_echo "$ac_header_preproc" >&6; }
1681
+
1682
+ # So? What about this header?
1683
+ case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1684
+ yes:no: )
1685
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1686
+ $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1687
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler' s result" >&5
1688
+ $as_echo " $as_me : WARNING: $2 : proceeding with the compiler' s result" >&2;}
1689
+ ;;
1690
+ no:yes:* )
1691
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1692
+ $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1693
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1694
+ $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1695
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1696
+ $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1697
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1698
+ $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1699
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler' s result" >&5
1700
+ $as_echo " $as_me : WARNING: $2 : proceeding with the compiler' s result" >&2;}
1701
+ ( $as_echo "## --------------------------------- ##
1702
+ ## Report this to gasmibal@gmail.com ##
1703
+ ## --------------------------------- ##"
1704
+ ) | sed "s/^/$as_me: WARNING: /" >&2
1705
+ ;;
1706
+ esac
1707
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708
+ $as_echo_n "checking for $2... " >&6; }
1709
+ if eval \${$3+:} false; then :
1710
+ $as_echo_n "(cached) " >&6
1711
+ else
1712
+ eval "$3=\$ac_header_compiler"
1713
+ fi
1714
+ eval ac_res=\$$3
1715
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716
+ $as_echo "$ac_res" >&6; }
1717
+ fi
1718
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
+
1720
+ } # ac_fn_c_check_header_mongrel
1721
+
1631
1722
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1632
1723
# -------------------------------------------------------
1633
1724
# Tests whether HEADER exists and can be compiled using the include files in
@@ -4786,6 +4877,35 @@ $as_echo "yes" >&6; }
4786
4877
fi
4787
4878
4788
4879
# Checks for header files.
4880
+ # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4881
+ for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4882
+ inttypes.h stdint.h unistd.h
4883
+ do :
4884
+ as_ac_Header=` $as_echo " ac_cv_header_$ac_header " | $as_tr_sh `
4885
+ ac_fn_c_check_header_compile " $LINENO " " $ac_header " " $as_ac_Header " " $ac_includes_default
4886
+ "
4887
+ if eval test \" x\$ " $as_ac_Header " \" = x" yes" ; then :
4888
+ cat >> confdefs.h << _ACEOF
4889
+ #define ` $as_echo " HAVE_$ac_header " | $as_tr_cpp ` 1
4890
+ _ACEOF
4891
+
4892
+ fi
4893
+
4894
+ done
4895
+
4896
+
4897
+ for ac_header in libcli.h
4898
+ do :
4899
+ ac_fn_c_check_header_mongrel " $LINENO " " libcli.h" " ac_cv_header_libcli_h" " $ac_includes_default "
4900
+ if test " x$ac_cv_header_libcli_h " = xyes; then :
4901
+ cat >> confdefs.h << _ACEOF
4902
+ #define HAVE_LIBCLI_H 1
4903
+ _ACEOF
4904
+
4905
+ fi
4906
+
4907
+ done
4908
+
4789
4909
4790
4910
# Checks for typedefs, structures, and compiler characteristics.
4791
4911
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking return type of signal handlers" >&5
@@ -4944,23 +5064,6 @@ _ACEOF
4944
5064
;;
4945
5065
esac
4946
5066
4947
- # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4948
- for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4949
- inttypes.h stdint.h unistd.h
4950
- do :
4951
- as_ac_Header=` $as_echo " ac_cv_header_$ac_header " | $as_tr_sh `
4952
- ac_fn_c_check_header_compile " $LINENO " " $ac_header " " $as_ac_Header " " $ac_includes_default
4953
- "
4954
- if eval test \" x\$ " $as_ac_Header " \" = x" yes" ; then :
4955
- cat >> confdefs.h << _ACEOF
4956
- #define ` $as_echo " HAVE_$ac_header " | $as_tr_cpp ` 1
4957
- _ACEOF
4958
-
4959
- fi
4960
-
4961
- done
4962
-
4963
-
4964
5067
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking whether byte ordering is bigendian" >&5
4965
5068
$as_echo_n " checking whether byte ordering is bigendian... " >&6 ; }
4966
5069
if ${ac_cv_c_bigendian+: } false ; then :
0 commit comments