configure.patch 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. diff --git a/configure b/configure
  2. index ec4ed1f..b173800 100755
  3. --- a/configure
  4. +++ b/configure
  5. @@ -5160,55 +5160,6 @@ else
  6. NM="$ac_cv_prog_NM"
  7. fi
  8. -
  9. -# We use -std=gnu99 but have explicit checks for some language constructs
  10. -# and GNU extensions since some compilers claim GNU99 support, but don't
  11. -# really support all language extensions. In particular we need
  12. -# Mixed Declarations and Code
  13. -# https://gcc.gnu.org/onlinedocs/gcc/Mixed-Declarations.html
  14. -# Nested Functions
  15. -# https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
  16. -# Arrays of Variable Length
  17. -# https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html
  18. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc with GNU99 support" >&5
  19. -$as_echo_n "checking for gcc with GNU99 support... " >&6; }
  20. -if ${ac_cv_c99+:} false; then :
  21. - $as_echo_n "(cached) " >&6
  22. -else
  23. - old_CFLAGS="$CFLAGS"
  24. -CFLAGS="$CFLAGS -std=gnu99"
  25. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26. -/* end confdefs.h. */
  27. -int foo (int a)
  28. -{
  29. - for (int i = 0; i < a; ++i) if (i % 4) break; int s = a; return s;
  30. -}
  31. -
  32. -double bar (double a, double b)
  33. -{
  34. - double square (double z) { return z * z; }
  35. - return square (a) + square (b);
  36. -}
  37. -
  38. -void baz (int n)
  39. -{
  40. - struct S { int x[n]; };
  41. -}
  42. -_ACEOF
  43. -if ac_fn_c_try_compile "$LINENO"; then :
  44. - ac_cv_c99=yes
  45. -else
  46. - ac_cv_c99=no
  47. -fi
  48. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49. -CFLAGS="$old_CFLAGS"
  50. -fi
  51. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99" >&5
  52. -$as_echo "$ac_cv_c99" >&6; }
  53. -if test "x$ac_cv_c99" != xyes; then :
  54. - as_fn_error $? "gcc with GNU99 support required" "$LINENO" 5
  55. -fi
  56. -
  57. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports __attribute__((visibility()))" >&5
  58. $as_echo_n "checking whether gcc supports __attribute__((visibility()))... " >&6; }
  59. if ${ac_cv_visibility+:} false; then :
  60. @@ -5363,43 +5314,6 @@ if test "$ac_cv_zdefs" = "yes"; then
  61. dso_LDFLAGS="$dso_LDFLAGS $ZDEFS_LDFLAGS"
  62. fi
  63. -# We really want build-ids. Warn and force generating them if gcc was
  64. -# configure without --enable-linker-build-id
  65. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generates build-ids" >&5
  66. -$as_echo_n "checking whether the compiler generates build-ids... " >&6; }
  67. -if ${ac_cv_buildid+:} false; then :
  68. - $as_echo_n "(cached) " >&6
  69. -else
  70. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  71. -/* end confdefs.h. */
  72. -
  73. -int
  74. -main ()
  75. -{
  76. -
  77. - ;
  78. - return 0;
  79. -}
  80. -_ACEOF
  81. -if ac_fn_c_try_link "$LINENO"; then :
  82. - ac_cv_buildid=yes; $READELF -n conftest$EXEEXT | grep -q NT_GNU_BUILD_ID || ac_cv_buildid=no
  83. -else
  84. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  85. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  86. -as_fn_error $? "unexpected compile failure
  87. -See \`config.log' for more details" "$LINENO" 5; }
  88. -fi
  89. -rm -f core conftest.err conftest.$ac_objext \
  90. - conftest$ac_exeext conftest.$ac_ext
  91. -fi
  92. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buildid" >&5
  93. -$as_echo "$ac_cv_buildid" >&6; }
  94. -if test "$ac_cv_buildid" = "no"; then
  95. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler doesn't generate build-id by default" >&5
  96. -$as_echo "$as_me: WARNING: compiler doesn't generate build-id by default" >&2;}
  97. - LDFLAGS="$LDFLAGS -Wl,--build-id"
  98. -fi
  99. -
  100. ZRELRO_LDFLAGS="-Wl,-z,relro"
  101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports $ZRELRO_LDFLAGS" >&5
  102. $as_echo_n "checking whether gcc supports $ZRELRO_LDFLAGS... " >&6; }
  103. @@ -5436,47 +5350,6 @@ if test "$ac_cv_zrelro" = "yes"; then
  104. fi
  105. -
  106. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support" >&5
  107. -$as_echo_n "checking for __thread support... " >&6; }
  108. -if ${ac_cv_tls+:} false; then :
  109. - $as_echo_n "(cached) " >&6
  110. -else
  111. - # Use the same flags that we use for our DSOs, so the test is representative.
  112. -# Some old compiler/linker/libc combinations fail some ways and not others.
  113. -save_CFLAGS="$CFLAGS"
  114. -save_LDFLAGS="$LDFLAGS"
  115. -CFLAGS="$fpic_CFLAGS $CFLAGS"
  116. -LDFLAGS="$dso_LDFLAGS $LDFLAGS"
  117. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  118. -/* end confdefs.h. */
  119. -#include <stdlib.h>
  120. -#undef __thread
  121. -static __thread int a; int foo (int b) { return a + b; }
  122. -int
  123. -main ()
  124. -{
  125. -exit (foo (0));
  126. - ;
  127. - return 0;
  128. -}
  129. -_ACEOF
  130. -if ac_fn_c_try_link "$LINENO"; then :
  131. - ac_cv_tls=yes
  132. -else
  133. - ac_cv_tls=no
  134. -fi
  135. -rm -f core conftest.err conftest.$ac_objext \
  136. - conftest$ac_exeext conftest.$ac_ext
  137. -CFLAGS="$save_CFLAGS"
  138. -LDFLAGS="$save_LDFLAGS"
  139. -fi
  140. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
  141. -$as_echo "$ac_cv_tls" >&6; }
  142. -if test "x$ac_cv_tls" != xyes; then :
  143. - as_fn_error $? "__thread support required" "$LINENO" 5
  144. -fi
  145. -
  146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc provides stdatomic.h" >&5
  147. $as_echo_n "checking whether gcc provides stdatomic.h... " >&6; }
  148. if ${ac_cv_has_stdatomic+:} false; then :
  149. @@ -7345,74 +7218,6 @@ $as_echo "#define HAVE_FALLTHROUGH 1" >>confdefs.h
  150. fi
  151. -saved_LIBS="$LIBS"
  152. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing argp_parse" >&5
  153. -$as_echo_n "checking for library containing argp_parse... " >&6; }
  154. -if ${ac_cv_search_argp_parse+:} false; then :
  155. - $as_echo_n "(cached) " >&6
  156. -else
  157. - ac_func_search_save_LIBS=$LIBS
  158. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  159. -/* end confdefs.h. */
  160. -
  161. -/* Override any GCC internal prototype to avoid an error.
  162. - Use char because int might match the return type of a GCC
  163. - builtin and then its argument prototype would still apply. */
  164. -#ifdef __cplusplus
  165. -extern "C"
  166. -#endif
  167. -char argp_parse ();
  168. -int
  169. -main ()
  170. -{
  171. -return argp_parse ();
  172. - ;
  173. - return 0;
  174. -}
  175. -_ACEOF
  176. -for ac_lib in '' argp; do
  177. - if test -z "$ac_lib"; then
  178. - ac_res="none required"
  179. - else
  180. - ac_res=-l$ac_lib
  181. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  182. - fi
  183. - if ac_fn_c_try_link "$LINENO"; then :
  184. - ac_cv_search_argp_parse=$ac_res
  185. -fi
  186. -rm -f core conftest.err conftest.$ac_objext \
  187. - conftest$ac_exeext
  188. - if ${ac_cv_search_argp_parse+:} false; then :
  189. - break
  190. -fi
  191. -done
  192. -if ${ac_cv_search_argp_parse+:} false; then :
  193. -
  194. -else
  195. - ac_cv_search_argp_parse=no
  196. -fi
  197. -rm conftest.$ac_ext
  198. -LIBS=$ac_func_search_save_LIBS
  199. -fi
  200. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_argp_parse" >&5
  201. -$as_echo "$ac_cv_search_argp_parse" >&6; }
  202. -ac_res=$ac_cv_search_argp_parse
  203. -if test "$ac_res" != no; then :
  204. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  205. -
  206. -fi
  207. -
  208. -LIBS="$saved_LIBS"
  209. -case "$ac_cv_search_argp_parse" in
  210. - no) { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  211. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  212. -as_fn_error $? "failed to find argp_parse
  213. -See \`config.log' for more details" "$LINENO" 5; } ;;
  214. - -l*) argp_LDADD="$ac_cv_search_argp_parse" ;;
  215. - *) argp_LDADD= ;;
  216. -esac
  217. -
  218. -
  219. saved_LIBS="$LIBS"
  220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fts_close" >&5
  221. $as_echo_n "checking for library containing fts_close... " >&6; }
  222. @@ -7481,75 +7286,6 @@ See \`config.log' for more details" "$LINENO" 5; } ;;
  223. esac
  224. -saved_LIBS="$LIBS"
  225. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing _obstack_free" >&5
  226. -$as_echo_n "checking for library containing _obstack_free... " >&6; }
  227. -if ${ac_cv_search__obstack_free+:} false; then :
  228. - $as_echo_n "(cached) " >&6
  229. -else
  230. - ac_func_search_save_LIBS=$LIBS
  231. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  232. -/* end confdefs.h. */
  233. -
  234. -/* Override any GCC internal prototype to avoid an error.
  235. - Use char because int might match the return type of a GCC
  236. - builtin and then its argument prototype would still apply. */
  237. -#ifdef __cplusplus
  238. -extern "C"
  239. -#endif
  240. -char _obstack_free ();
  241. -int
  242. -main ()
  243. -{
  244. -return _obstack_free ();
  245. - ;
  246. - return 0;
  247. -}
  248. -_ACEOF
  249. -for ac_lib in '' obstack; do
  250. - if test -z "$ac_lib"; then
  251. - ac_res="none required"
  252. - else
  253. - ac_res=-l$ac_lib
  254. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  255. - fi
  256. - if ac_fn_c_try_link "$LINENO"; then :
  257. - ac_cv_search__obstack_free=$ac_res
  258. -fi
  259. -rm -f core conftest.err conftest.$ac_objext \
  260. - conftest$ac_exeext
  261. - if ${ac_cv_search__obstack_free+:} false; then :
  262. - break
  263. -fi
  264. -done
  265. -if ${ac_cv_search__obstack_free+:} false; then :
  266. -
  267. -else
  268. - ac_cv_search__obstack_free=no
  269. -fi
  270. -rm conftest.$ac_ext
  271. -LIBS=$ac_func_search_save_LIBS
  272. -fi
  273. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search__obstack_free" >&5
  274. -$as_echo "$ac_cv_search__obstack_free" >&6; }
  275. -ac_res=$ac_cv_search__obstack_free
  276. -if test "$ac_res" != no; then :
  277. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  278. -
  279. -fi
  280. -
  281. -LIBS="$saved_LIBS"
  282. -case "$ac_cv_search__obstack_free" in
  283. - no) { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  284. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  285. -as_fn_error $? "failed to find _obstack_free
  286. -See \`config.log' for more details" "$LINENO" 5; } ;;
  287. - -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;;
  288. - *) obstack_LIBS= ;;
  289. -esac
  290. -
  291. -
  292. -
  293. ac_config_files="$ac_config_files doc/Makefile"