Skip to content
Myr

Fix autoreconf warnings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by itchyny · committed by Nico Williams · parent 1915b68 · Browse files · 2 files+34 added−20 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+34 added−20 removed

  • other:+34 added−20 removed

2 files+34 added−20 removed

modified:m4/ax_pthread.m4+22 added-7 removed
12 unmodified lines
13# flags, and the PTHREAD_CFLAGS output variable to any special C compiler14# flags that are needed. (The user can also force certain compiler15# flags/libs to be tested by setting these environment variables.)16#17# Also sets PTHREAD_CC to any special C compiler that is needed for18# multi-threaded programs (defaults to the value of CC otherwise). (This19# is necessary on AIX to use the special cc_r compiler alias.)17# Also sets PTHREAD_CC and PTHREAD_CXX to any special C compiler that is18# needed for multi-threaded programs (defaults to the value of CC19# respectively CXX otherwise). (This is necessary on e.g. AIX to use the20# special cc_r/CC_r compiler alias.)21#22# NOTE: You are assumed to not only compile your program with these flags,23# but also to link with them as well. For example, you might link with24# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS25# $PTHREAD_CXX $CXXFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS26#27# If you are only building threaded programs, you may wish to use these28# variables in your default LIBS, CFLAGS, and CC:29#30# LIBS="$PTHREAD_LIBS $LIBS"31# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"32# CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"33# CC="$PTHREAD_CC"34# CXX="$PTHREAD_CXX"35#36# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant37# has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to38# that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
47 unmodified lines
86# Macro released by the Autoconf Archive. When you make and distribute a87# modified version of the Autoconf Macro, you may extend this special88# exception to the GPL to apply to your modified version as well.8986#serial 2790#serial 319192AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])93AC_DEFUN([AX_PTHREAD], [94AC_REQUIRE([AC_CANONICAL_HOST])
13 unmodified lines
108 ax_pthread_save_CC="$CC"109 ax_pthread_save_CFLAGS="$CFLAGS"110 ax_pthread_save_LIBS="$LIBS"111 AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"])112 AS_IF([test "x$PTHREAD_CXX" != "x"], [CXX="$PTHREAD_CXX"])113 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"114 LIBS="$PTHREAD_LIBS $LIBS"115 AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS])116 AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes])
273 unmodified lines
390 # (.c -> exe), because the warning occurs only in the second391 # step392 ax_pthread_save_ac_link="$ac_link"393 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'389 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`394 ax_pthread_link_step=`AS_ECHO(["$ac_link"]) | sed "$ax_pthread_sed"`395 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"396 ax_pthread_save_CFLAGS="$CFLAGS"397 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do398 AS_IF([test "x$ax_pthread_try" = "xunknown"], [break])
87 unmodified lines
486 [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6],487 [#handle absolute path differently from PATH based program lookup488 AS_CASE(["x$CC"],489 [x/*],485 [AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])],486 [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])])490 [491 AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])492 AS_IF([test "x${CXX}" != "x"], [AS_IF([AS_EXECUTABLE_P([${CXX}_r])],[PTHREAD_CXX="${CXX}_r"])])493 ],494 [495 AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])496 AS_IF([test "x${CXX}" != "x"], [AC_CHECK_PROGS([PTHREAD_CXX],[${CXX}_r],[$CXX])])497 ]498 )499 ])500 ;;501 esac502 fi503fi504505test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"506test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"507508AC_SUBST([PTHREAD_LIBS])509AC_SUBST([PTHREAD_CFLAGS])510AC_SUBST([PTHREAD_CC])511AC_SUBST([PTHREAD_CXX])512513# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:514if test "x$ax_pthread_ok" = "xyes"; then515 ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1])
7 unmodified lines
modified:configure.ac+12 added-13 removed
1m4_define([jq_version], m4_esyscmd_s([scripts/version])))23AC_INIT([jq], [jq_version], [https://github.com/jqlang/jq/issues],4 [jq], [https://jqlang.github.io/jq])3AC_INIT([jq],[jq_version],[https://github.com/jqlang/jq/issues],[jq],[https://jqlang.github.io/jq])45dnl Created autoconf implementation thompson@dtosolutions, 26NOV127AC_PREREQ([2.64])6AC_PREREQ([2.65])7AC_CONFIG_AUX_DIR([config])8AC_USE_SYSTEM_EXTENSIONS9AM_INIT_AUTOMAKE([1.11.2 subdir-objects parallel-tests foreign -Wall])10AM_SILENT_RULES([yes])11AM_PROG_AR12AM_MAINTAINER_MODE([enable])13AC_PROG_CC14AC_PROG_CC_STDC14m4_version_prereq([2.70], [], [AC_PROG_CC_STDC])15AC_PROG_CPP_WERROR16AC_PROG_YACC17AC_OBJEXT18AC_EXEEXT19AC_USE_SYSTEM_EXTENSIONS19LT_INIT([shared static win32-dll])20AM_PROG_CC_C_O2122AC_SYS_LARGEFILE # issue 2167
31 unmodified lines
54dnl Running tests with Valgrind is slow. It is faster to iterate on55dnl code without Valgrind until tests pass, then enable Valgrind and56dnl fix leaks.57AC_ARG_ENABLE([valgrind],59 AC_HELP_STRING([--disable-valgrind], [do not run tests under Valgrind]))58 AS_HELP_STRING([--disable-valgrind],[do not run tests under Valgrind]))5960dnl Running tests with Valgrind is slow; address sanitizer (ASAN) is61dnl faster.62AC_ARG_ENABLE([asan],64 AC_HELP_STRING([--enable-asan], [enable address sanitizer]))63 AS_HELP_STRING([--enable-asan],[enable address sanitizer]))6465dnl Undefined Behavior Sanitizer66AC_ARG_ENABLE([ubsan],68 AC_HELP_STRING([--enable-ubsan], [enable undefined behavior sanitizer]))67 AS_HELP_STRING([--enable-ubsan],[enable undefined behavior sanitizer]))6869dnl Code coverage70AC_ARG_ENABLE([gcov],72 AC_HELP_STRING([--enable-gcov], [enable gcov code coverage tool]))71 AS_HELP_STRING([--enable-gcov],[enable gcov code coverage tool]))7273dnl Don't attempt to build docs if python deps aren't installed74AC_ARG_ENABLE([docs],76 AC_HELP_STRING([--disable-docs], [don't build docs]), [], [enable_docs=yes])75 AS_HELP_STRING([--disable-docs],[do not build docs]), [], [enable_docs=yes])7677dnl Don't attempt to build the error injection object (if there is no LD_PRELOAD support)78AC_ARG_ENABLE([error-injection],80 AC_HELP_STRING([--enable-error-injection], [build and test with error injection]))79 AS_HELP_STRING([--enable-error-injection],[build and test with error injection]))8081dnl Enable building all static82AC_ARG_ENABLE([all-static],84 AC_HELP_STRING([--enable-all-static], [link jq with static libraries only]))83 AS_HELP_STRING([--enable-all-static],[link jq with static libraries only]))8485dnl find pipenv86AC_ARG_VAR([PIPENV], [pipenv command])87AC_CHECK_PROGS([PIPENV], pipenv)
20 unmodified lines
108])109110dnl Disable decNumber support111AC_ARG_ENABLE([decnum],113 AC_HELP_STRING([--disable-decnum], [disable decnum support]))112 AS_HELP_STRING([--disable-decnum],[disable decnum support]))113114AS_IF([test "x$enable_decnum" != "xno"],[115 AC_DEFINE([USE_DECNUM],1)116])
180 unmodified lines