Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
804a786c
Commit
804a786c
authored
Sep 29, 2010
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add/fix caching on some configure checks
parent
fe48d947
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
226 additions
and
145 deletions
+226
-145
config/c-compiler.m4
config/c-compiler.m4
+21
-12
config/programs.m4
config/programs.m4
+9
-11
configure
configure
+189
-117
configure.in
configure.in
+7
-5
No files found.
config/c-compiler.m4
View file @
804a786c
...
@@ -126,13 +126,18 @@ fi])# PGAC_C_FUNCNAME_SUPPORT
...
@@ -126,13 +126,18 @@ fi])# PGAC_C_FUNCNAME_SUPPORT
# Given a string, check if the compiler supports the string as a
# Given a string, check if the compiler supports the string as a
# command-line option. If it does, add the string to CFLAGS.
# command-line option. If it does, add the string to CFLAGS.
AC_DEFUN([PGAC_PROG_CC_CFLAGS_OPT],
AC_DEFUN([PGAC_PROG_CC_CFLAGS_OPT],
[AC_MSG_CHECKING([if $CC supports $1])
[define([Ac_cachevar], [AS_TR_SH([pgac_cv_prog_cc_cflags_$1])])dnl
pgac_save_CFLAGS=$CFLAGS
AC_CACHE_CHECK([whether $CC supports $1], [Ac_cachevar],
[pgac_save_CFLAGS=$CFLAGS
CFLAGS="$pgac_save_CFLAGS $1"
CFLAGS="$pgac_save_CFLAGS $1"
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
AC_MSG_RESULT(yes),
[Ac_cachevar=yes],
[CFLAGS="$pgac_save_CFLAGS"
[Ac_cachevar=no])
AC_MSG_RESULT(no)])
CFLAGS="$pgac_save_CFLAGS"])
if test x"$Ac_cachevar" = x"yes"; then
CFLAGS="$CFLAGS $1"
fi
undefine([Ac_cachevar])dnl
])# PGAC_PROG_CC_CFLAGS_OPT
])# PGAC_PROG_CC_CFLAGS_OPT
...
@@ -145,13 +150,17 @@ _AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
...
@@ -145,13 +150,17 @@ _AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
# you can link to a particular function, not just whether you can link.
# you can link to a particular function, not just whether you can link.
# In fact, we must actually check that the resulting program runs :-(
# In fact, we must actually check that the resulting program runs :-(
AC_DEFUN([PGAC_PROG_CC_LDFLAGS_OPT],
AC_DEFUN([PGAC_PROG_CC_LDFLAGS_OPT],
[AC_MSG_CHECKING([if $CC supports $1])
[define([Ac_cachevar], [AS_TR_SH([pgac_cv_prog_cc_ldflags_$1])])dnl
pgac_save_LDFLAGS=$LDFLAGS
AC_CACHE_CHECK([whether $CC supports $1], [Ac_cachevar],
[pgac_save_LDFLAGS=$LDFLAGS
LDFLAGS="$pgac_save_LDFLAGS $1"
LDFLAGS="$pgac_save_LDFLAGS $1"
AC_RUN_IFELSE([AC_LANG_PROGRAM([extern void $2 (); void (*fptr) () = $2;],[])],
AC_RUN_IFELSE([AC_LANG_PROGRAM([extern void $2 (); void (*fptr) () = $2;],[])],
AC_MSG_RESULT(yes),
[Ac_cachevar=yes],
[LDFLAGS="$pgac_save_LDFLAGS"
[Ac_cachevar=no],
AC_MSG_RESULT(no)],
[Ac_cachevar="assuming no"])
[LDFLAGS="$pgac_save_LDFLAGS"
LDFLAGS="$pgac_save_LDFLAGS"])
AC_MSG_RESULT(assuming no)])
if test x"$Ac_cachevar" = x"yes"; then
LDFLAGS="$LDFLAGS $1"
fi
undefine([Ac_cachevar])dnl
])# PGAC_PROG_CC_LDFLAGS_OPT
])# PGAC_PROG_CC_LDFLAGS_OPT
config/programs.m4
View file @
804a786c
...
@@ -117,7 +117,7 @@ AC_SUBST(FLEXFLAGS)
...
@@ -117,7 +117,7 @@ AC_SUBST(FLEXFLAGS)
AC_DEFUN([PGAC_CHECK_READLINE],
AC_DEFUN([PGAC_CHECK_READLINE],
[AC_REQUIRE([AC_CANONICAL_HOST])
[AC_REQUIRE([AC_CANONICAL_HOST])
AC_CACHE_
VAL(
[pgac_cv_check_readline],
AC_CACHE_
CHECK([for library containing readline],
[pgac_cv_check_readline],
[pgac_cv_check_readline=no
[pgac_cv_check_readline=no
pgac_save_LIBS=$LIBS
pgac_save_LIBS=$LIBS
if test x"$with_libedit_preferred" != x"yes"
if test x"$with_libedit_preferred" != x"yes"
...
@@ -125,7 +125,6 @@ then READLINE_ORDER="-lreadline -ledit"
...
@@ -125,7 +125,6 @@ then READLINE_ORDER="-lreadline -ledit"
else READLINE_ORDER="-ledit -lreadline"
else READLINE_ORDER="-ledit -lreadline"
fi
fi
for pgac_rllib in $READLINE_ORDER ; do
for pgac_rllib in $READLINE_ORDER ; do
AC_MSG_CHECKING([for ${pgac_rllib}])
for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
AC_TRY_LINK_FUNC([readline], [[
AC_TRY_LINK_FUNC([readline], [[
...
@@ -144,14 +143,11 @@ for pgac_rllib in $READLINE_ORDER ; do
...
@@ -144,14 +143,11 @@ for pgac_rllib in $READLINE_ORDER ; do
]])
]])
done
done
if test "$pgac_cv_check_readline" != no ; then
if test "$pgac_cv_check_readline" != no ; then
AC_MSG_RESULT([yes ($pgac_cv_check_readline)])
break
break
else
AC_MSG_RESULT(no)
fi
fi
done
done
LIBS=$pgac_save_LIBS
LIBS=$pgac_save_LIBS
])[]dnl AC_CACHE_
VAL
])[]dnl AC_CACHE_
CHECK
if test "$pgac_cv_check_readline" != no ; then
if test "$pgac_cv_check_readline" != no ; then
LIBS="$pgac_cv_check_readline $LIBS"
LIBS="$pgac_cv_check_readline $LIBS"
...
@@ -167,8 +163,8 @@ fi
...
@@ -167,8 +163,8 @@ fi
# Readline versions < 2.1 don't have rl_completion_append_character
# Readline versions < 2.1 don't have rl_completion_append_character
AC_DEFUN([PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER],
AC_DEFUN([PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER],
[AC_
MSG_CHECKING([for rl_completion_append_character])
[AC_
CACHE_CHECK([for rl_completion_append_character], pgac_cv_var_rl_completion_append_character,
AC_TRY_LINK([#include <stdio.h>
[
AC_TRY_LINK([#include <stdio.h>
#ifdef HAVE_READLINE_READLINE_H
#ifdef HAVE_READLINE_READLINE_H
# include <readline/readline.h>
# include <readline/readline.h>
#elif defined(HAVE_READLINE_H)
#elif defined(HAVE_READLINE_H)
...
@@ -176,10 +172,12 @@ AC_TRY_LINK([#include <stdio.h>
...
@@ -176,10 +172,12 @@ AC_TRY_LINK([#include <stdio.h>
#endif
#endif
],
],
[rl_completion_append_character = 'x';],
[rl_completion_append_character = 'x';],
[AC_MSG_RESULT(yes)
[pgac_cv_var_rl_completion_append_character=yes],
[pgac_cv_var_rl_completion_append_character=no])])
if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER, 1,
AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER, 1,
[Define to 1 if you have the global variable 'rl_completion_append_character'.])
],
[Define to 1 if you have the global variable 'rl_completion_append_character'.])
[AC_MSG_RESULT(no)])
])# PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER
fi
])# PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER
...
...
configure
View file @
804a786c
...
@@ -3999,9 +3999,12 @@ fi
...
@@ -3999,9 +3999,12 @@ fi
if
test
"
$GCC
"
=
yes
-a
"
$ICC
"
=
no
;
then
if
test
"
$GCC
"
=
yes
-a
"
$ICC
"
=
no
;
then
CFLAGS
=
"
$CFLAGS
-Wall -Wmissing-prototypes -Wpointer-arith"
CFLAGS
=
"
$CFLAGS
-Wall -Wmissing-prototypes -Wpointer-arith"
# These work in some but not all gcc versions
# These work in some but not all gcc versions
{
$as_echo
"
$as_me
:
$LINENO
: checking if
$CC
supports -Wdeclaration-after-statement"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking whether
$CC
supports -Wdeclaration-after-statement"
>
&5
$as_echo_n
"checking if
$CC
supports -Wdeclaration-after-statement... "
>
&6
;
}
$as_echo_n
"checking whether
$CC
supports -Wdeclaration-after-statement... "
>
&6
;
}
pgac_save_CFLAGS
=
$CFLAGS
if
test
"
${
pgac_cv_prog_cc_cflags__Wdeclaration_after_statement
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
pgac_save_CFLAGS
=
$CFLAGS
CFLAGS
=
"
$pgac_save_CFLAGS
-Wdeclaration-after-statement"
CFLAGS
=
"
$pgac_save_CFLAGS
-Wdeclaration-after-statement"
cat
>
conftest.
$ac_ext
<<
_ACEOF
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
...
@@ -4036,22 +4039,29 @@ $as_echo "$ac_try_echo") >&5
...
@@ -4036,22 +4039,29 @@ $as_echo "$ac_try_echo") >&5
test
-z
"
$ac_c_werror_flag
"
||
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
}
&&
test
-s
conftest.
$ac_objext
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
pgac_cv_prog_cc_cflags__Wdeclaration_after_statement
=
yes
$as_echo
"yes"
>
&6
;
}
else
else
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
CFLAGS
=
"
$pgac_save_CFLAGS
"
pgac_cv_prog_cc_cflags__Wdeclaration_after_statement
=
no
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
CFLAGS
=
"
$pgac_save_CFLAGS
"
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement
"
>
&5
$as_echo
"
$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement
"
>
&6
;
}
if
test
x
"
$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement
"
=
x
"yes"
;
then
CFLAGS
=
"
$CFLAGS
-Wdeclaration-after-statement"
fi
{
$as_echo
"
$as_me
:
$LINENO
: checking if
$CC
supports -Wendif-labels"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking whether
$CC
supports -Wendif-labels"
>
&5
$as_echo_n
"checking if
$CC
supports -Wendif-labels... "
>
&6
;
}
$as_echo_n
"checking whether
$CC
supports -Wendif-labels... "
>
&6
;
}
pgac_save_CFLAGS
=
$CFLAGS
if
test
"
${
pgac_cv_prog_cc_cflags__Wendif_labels
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
pgac_save_CFLAGS
=
$CFLAGS
CFLAGS
=
"
$pgac_save_CFLAGS
-Wendif-labels"
CFLAGS
=
"
$pgac_save_CFLAGS
-Wendif-labels"
cat
>
conftest.
$ac_ext
<<
_ACEOF
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
...
@@ -4086,23 +4096,30 @@ $as_echo "$ac_try_echo") >&5
...
@@ -4086,23 +4096,30 @@ $as_echo "$ac_try_echo") >&5
test
-z
"
$ac_c_werror_flag
"
||
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
}
&&
test
-s
conftest.
$ac_objext
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
pgac_cv_prog_cc_cflags__Wendif_labels
=
yes
$as_echo
"yes"
>
&6
;
}
else
else
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
CFLAGS
=
"
$pgac_save_CFLAGS
"
pgac_cv_prog_cc_cflags__Wendif_labels
=
no
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
CFLAGS
=
"
$pgac_save_CFLAGS
"
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_prog_cc_cflags__Wendif_labels
"
>
&5
$as_echo
"
$pgac_cv_prog_cc_cflags__Wendif_labels
"
>
&6
;
}
if
test
x
"
$pgac_cv_prog_cc_cflags__Wendif_labels
"
=
x
"yes"
;
then
CFLAGS
=
"
$CFLAGS
-Wendif-labels"
fi
# Disable strict-aliasing rules; needed for gcc 3.3+
# Disable strict-aliasing rules; needed for gcc 3.3+
{
$as_echo
"
$as_me
:
$LINENO
: checking if
$CC
supports -fno-strict-aliasing"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking whether
$CC
supports -fno-strict-aliasing"
>
&5
$as_echo_n
"checking if
$CC
supports -fno-strict-aliasing... "
>
&6
;
}
$as_echo_n
"checking whether
$CC
supports -fno-strict-aliasing... "
>
&6
;
}
pgac_save_CFLAGS
=
$CFLAGS
if
test
"
${
pgac_cv_prog_cc_cflags__fno_strict_aliasing
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
pgac_save_CFLAGS
=
$CFLAGS
CFLAGS
=
"
$pgac_save_CFLAGS
-fno-strict-aliasing"
CFLAGS
=
"
$pgac_save_CFLAGS
-fno-strict-aliasing"
cat
>
conftest.
$ac_ext
<<
_ACEOF
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
...
@@ -4137,23 +4154,30 @@ $as_echo "$ac_try_echo") >&5
...
@@ -4137,23 +4154,30 @@ $as_echo "$ac_try_echo") >&5
test
-z
"
$ac_c_werror_flag
"
||
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
}
&&
test
-s
conftest.
$ac_objext
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
pgac_cv_prog_cc_cflags__fno_strict_aliasing
=
yes
$as_echo
"yes"
>
&6
;
}
else
else
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
CFLAGS
=
"
$pgac_save_CFLAGS
"
pgac_cv_prog_cc_cflags__fno_strict_aliasing
=
no
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
CFLAGS
=
"
$pgac_save_CFLAGS
"
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_prog_cc_cflags__fno_strict_aliasing
"
>
&5
$as_echo
"
$pgac_cv_prog_cc_cflags__fno_strict_aliasing
"
>
&6
;
}
if
test
x
"
$pgac_cv_prog_cc_cflags__fno_strict_aliasing
"
=
x
"yes"
;
then
CFLAGS
=
"
$CFLAGS
-fno-strict-aliasing"
fi
# Disable optimizations that assume no overflow; needed for gcc 4.3+
# Disable optimizations that assume no overflow; needed for gcc 4.3+
{
$as_echo
"
$as_me
:
$LINENO
: checking if
$CC
supports -fwrapv"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking whether
$CC
supports -fwrapv"
>
&5
$as_echo_n
"checking if
$CC
supports -fwrapv... "
>
&6
;
}
$as_echo_n
"checking whether
$CC
supports -fwrapv... "
>
&6
;
}
pgac_save_CFLAGS
=
$CFLAGS
if
test
"
${
pgac_cv_prog_cc_cflags__fwrapv
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
pgac_save_CFLAGS
=
$CFLAGS
CFLAGS
=
"
$pgac_save_CFLAGS
-fwrapv"
CFLAGS
=
"
$pgac_save_CFLAGS
-fwrapv"
cat
>
conftest.
$ac_ext
<<
_ACEOF
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
...
@@ -4188,25 +4212,32 @@ $as_echo "$ac_try_echo") >&5
...
@@ -4188,25 +4212,32 @@ $as_echo "$ac_try_echo") >&5
test
-z
"
$ac_c_werror_flag
"
||
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
}
&&
test
-s
conftest.
$ac_objext
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
pgac_cv_prog_cc_cflags__fwrapv
=
yes
$as_echo
"yes"
>
&6
;
}
else
else
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
CFLAGS
=
"
$pgac_save_CFLAGS
"
pgac_cv_prog_cc_cflags__fwrapv
=
no
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
CFLAGS
=
"
$pgac_save_CFLAGS
"
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_prog_cc_cflags__fwrapv
"
>
&5
$as_echo
"
$pgac_cv_prog_cc_cflags__fwrapv
"
>
&6
;
}
if
test
x
"
$pgac_cv_prog_cc_cflags__fwrapv
"
=
x
"yes"
;
then
CFLAGS
=
"
$CFLAGS
-fwrapv"
fi
elif
test
"
$ICC
"
=
yes
;
then
elif
test
"
$ICC
"
=
yes
;
then
# Intel's compiler has a bug/misoptimization in checking for
# Intel's compiler has a bug/misoptimization in checking for
# division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
# division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
{
$as_echo
"
$as_me
:
$LINENO
: checking if
$CC
supports -mp1"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking whether
$CC
supports -mp1"
>
&5
$as_echo_n
"checking if
$CC
supports -mp1... "
>
&6
;
}
$as_echo_n
"checking whether
$CC
supports -mp1... "
>
&6
;
}
pgac_save_CFLAGS
=
$CFLAGS
if
test
"
${
pgac_cv_prog_cc_cflags__mp1
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
pgac_save_CFLAGS
=
$CFLAGS
CFLAGS
=
"
$pgac_save_CFLAGS
-mp1"
CFLAGS
=
"
$pgac_save_CFLAGS
-mp1"
cat
>
conftest.
$ac_ext
<<
_ACEOF
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
...
@@ -4241,23 +4272,30 @@ $as_echo "$ac_try_echo") >&5
...
@@ -4241,23 +4272,30 @@ $as_echo "$ac_try_echo") >&5
test
-z
"
$ac_c_werror_flag
"
||
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
}
&&
test
-s
conftest.
$ac_objext
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
pgac_cv_prog_cc_cflags__mp1
=
yes
$as_echo
"yes"
>
&6
;
}
else
else
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
CFLAGS
=
"
$pgac_save_CFLAGS
"
pgac_cv_prog_cc_cflags__mp1
=
no
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
CFLAGS
=
"
$pgac_save_CFLAGS
"
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_prog_cc_cflags__mp1
"
>
&5
$as_echo
"
$pgac_cv_prog_cc_cflags__mp1
"
>
&6
;
}
if
test
x
"
$pgac_cv_prog_cc_cflags__mp1
"
=
x
"yes"
;
then
CFLAGS
=
"
$CFLAGS
-mp1"
fi
# Make sure strict aliasing is off (though this is said to be the default)
# Make sure strict aliasing is off (though this is said to be the default)
{
$as_echo
"
$as_me
:
$LINENO
: checking if
$CC
supports -fno-strict-aliasing"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking whether
$CC
supports -fno-strict-aliasing"
>
&5
$as_echo_n
"checking if
$CC
supports -fno-strict-aliasing... "
>
&6
;
}
$as_echo_n
"checking whether
$CC
supports -fno-strict-aliasing... "
>
&6
;
}
pgac_save_CFLAGS
=
$CFLAGS
if
test
"
${
pgac_cv_prog_cc_cflags__fno_strict_aliasing
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
pgac_save_CFLAGS
=
$CFLAGS
CFLAGS
=
"
$pgac_save_CFLAGS
-fno-strict-aliasing"
CFLAGS
=
"
$pgac_save_CFLAGS
-fno-strict-aliasing"
cat
>
conftest.
$ac_ext
<<
_ACEOF
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
...
@@ -4292,24 +4330,31 @@ $as_echo "$ac_try_echo") >&5
...
@@ -4292,24 +4330,31 @@ $as_echo "$ac_try_echo") >&5
test
-z
"
$ac_c_werror_flag
"
||
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
}
&&
test
-s
conftest.
$ac_objext
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
pgac_cv_prog_cc_cflags__fno_strict_aliasing
=
yes
$as_echo
"yes"
>
&6
;
}
else
else
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
CFLAGS
=
"
$pgac_save_CFLAGS
"
pgac_cv_prog_cc_cflags__fno_strict_aliasing
=
no
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
CFLAGS
=
"
$pgac_save_CFLAGS
"
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_prog_cc_cflags__fno_strict_aliasing
"
>
&5
$as_echo
"
$pgac_cv_prog_cc_cflags__fno_strict_aliasing
"
>
&6
;
}
if
test
x
"
$pgac_cv_prog_cc_cflags__fno_strict_aliasing
"
=
x
"yes"
;
then
CFLAGS
=
"
$CFLAGS
-fno-strict-aliasing"
fi
elif
test
"
$PORTNAME
"
=
"aix"
;
then
elif
test
"
$PORTNAME
"
=
"aix"
;
then
# AIX's xlc has to have strict aliasing turned off too
# AIX's xlc has to have strict aliasing turned off too
{
$as_echo
"
$as_me
:
$LINENO
: checking if
$CC
supports -qnoansialias"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking whether
$CC
supports -qnoansialias"
>
&5
$as_echo_n
"checking if
$CC
supports -qnoansialias... "
>
&6
;
}
$as_echo_n
"checking whether
$CC
supports -qnoansialias... "
>
&6
;
}
pgac_save_CFLAGS
=
$CFLAGS
if
test
"
${
pgac_cv_prog_cc_cflags__qnoansialias
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
pgac_save_CFLAGS
=
$CFLAGS
CFLAGS
=
"
$pgac_save_CFLAGS
-qnoansialias"
CFLAGS
=
"
$pgac_save_CFLAGS
-qnoansialias"
cat
>
conftest.
$ac_ext
<<
_ACEOF
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
...
@@ -4344,18 +4389,22 @@ $as_echo "$ac_try_echo") >&5
...
@@ -4344,18 +4389,22 @@ $as_echo "$ac_try_echo") >&5
test
-z
"
$ac_c_werror_flag
"
||
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
}
&&
test
-s
conftest.
$ac_objext
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
pgac_cv_prog_cc_cflags__qnoansialias
=
yes
$as_echo
"yes"
>
&6
;
}
else
else
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
CFLAGS
=
"
$pgac_save_CFLAGS
"
pgac_cv_prog_cc_cflags__qnoansialias
=
no
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
CFLAGS
=
"
$pgac_save_CFLAGS
"
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_prog_cc_cflags__qnoansialias
"
>
&5
$as_echo
"
$pgac_cv_prog_cc_cflags__qnoansialias
"
>
&6
;
}
if
test
x
"
$pgac_cv_prog_cc_cflags__qnoansialias
"
=
x
"yes"
;
then
CFLAGS
=
"
$CFLAGS
-qnoansialias"
fi
fi
fi
...
@@ -8081,6 +8130,8 @@ fi
...
@@ -8081,6 +8130,8 @@ fi
if
test
"
$with_readline
"
=
yes
;
then
if
test
"
$with_readline
"
=
yes
;
then
{
$as_echo
"
$as_me
:
$LINENO
: checking for library containing readline"
>
&5
$as_echo_n
"checking for library containing readline... "
>
&6
;
}
if
test
"
${
pgac_cv_check_readline
+set
}
"
=
set
;
then
if
test
"
${
pgac_cv_check_readline
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
$as_echo_n
"(cached) "
>
&6
else
else
...
@@ -8091,8 +8142,6 @@ then READLINE_ORDER="-lreadline -ledit"
...
@@ -8091,8 +8142,6 @@ then READLINE_ORDER="-lreadline -ledit"
else
READLINE_ORDER
=
"-ledit -lreadline"
else
READLINE_ORDER
=
"-ledit -lreadline"
fi
fi
for
pgac_rllib
in
$READLINE_ORDER
;
do
for
pgac_rllib
in
$READLINE_ORDER
;
do
{
$as_echo
"
$as_me
:
$LINENO
: checking for
${
pgac_rllib
}
"
>
&5
$as_echo_n
"checking for
${
pgac_rllib
}
... "
>
&6
;
}
for
pgac_lib
in
""
" -ltermcap"
" -lncurses"
" -lcurses"
;
do
for
pgac_lib
in
""
" -ltermcap"
" -lncurses"
" -lcurses"
;
do
LIBS
=
"
${
pgac_rllib
}${
pgac_lib
}
$pgac_save_LIBS
"
LIBS
=
"
${
pgac_rllib
}${
pgac_lib
}
$pgac_save_LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
cat
>
conftest.
$ac_ext
<<
_ACEOF
...
@@ -8164,18 +8213,14 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
...
@@ -8164,18 +8213,14 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest
$ac_exeext
conftest.
$ac_ext
conftest
$ac_exeext
conftest.
$ac_ext
done
done
if
test
"
$pgac_cv_check_readline
"
!=
no
;
then
if
test
"
$pgac_cv_check_readline
"
!=
no
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes (
$pgac_cv_check_readline
)"
>
&5
$as_echo
"yes (
$pgac_cv_check_readline
)"
>
&6
;
}
break
break
else
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
fi
done
done
LIBS
=
$pgac_save_LIBS
LIBS
=
$pgac_save_LIBS
fi
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_check_readline
"
>
&5
$as_echo
"
$pgac_cv_check_readline
"
>
&6
;
}
if
test
"
$pgac_cv_check_readline
"
!=
no
;
then
if
test
"
$pgac_cv_check_readline
"
!=
no
;
then
LIBS
=
"
$pgac_cv_check_readline
$LIBS
"
LIBS
=
"
$pgac_cv_check_readline
$LIBS
"
...
@@ -20869,7 +20914,10 @@ fi
...
@@ -20869,7 +20914,10 @@ fi
if
test
"
$with_readline
"
=
yes
;
then
if
test
"
$with_readline
"
=
yes
;
then
{
$as_echo
"
$as_me
:
$LINENO
: checking for rl_completion_append_character"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking for rl_completion_append_character"
>
&5
$as_echo_n
"checking for rl_completion_append_character... "
>
&6
;
}
$as_echo_n
"checking for rl_completion_append_character... "
>
&6
;
}
cat
>
conftest.
$ac_ext
<<
_ACEOF
if
test
"
${
pgac_cv_var_rl_completion_append_character
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
_ACEOF
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
confdefs.h
>>
conftest.
$ac_ext
...
@@ -20911,24 +20959,27 @@ $as_echo "$ac_try_echo") >&5
...
@@ -20911,24 +20959,27 @@ $as_echo "$ac_try_echo") >&5
test
"
$cross_compiling
"
=
yes
||
test
"
$cross_compiling
"
=
yes
||
$as_test_x
conftest
$ac_exeext
$as_test_x
conftest
$ac_exeext
}
;
then
}
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
pgac_cv_var_rl_completion_append_character
=
yes
$as_echo
"yes"
>
&6
;
}
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
_ACEOF
else
else
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
pgac_cv_var_rl_completion_append_character
=
no
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-rf
conftest.dSYM
rm
-rf
conftest.dSYM
rm
-f
core conftest.err conftest.
$ac_objext
conftest_ipa8_conftest.oo
\
rm
-f
core conftest.err conftest.
$ac_objext
conftest_ipa8_conftest.oo
\
conftest
$ac_exeext
conftest.
$ac_ext
conftest
$ac_exeext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_var_rl_completion_append_character
"
>
&5
$as_echo
"
$pgac_cv_var_rl_completion_append_character
"
>
&6
;
}
if
test
x
"
$pgac_cv_var_rl_completion_append_character
"
=
x
"yes"
;
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
_ACEOF
fi
for
ac_func
in
rl_completion_matches rl_filename_completion_function
for
ac_func
in
rl_completion_matches rl_filename_completion_function
...
@@ -21138,7 +21189,10 @@ fi
...
@@ -21138,7 +21189,10 @@ fi
{
$as_echo
"
$as_me
:
$LINENO
: checking for sigsetjmp"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking for sigsetjmp"
>
&5
$as_echo_n
"checking for sigsetjmp... "
>
&6
;
}
$as_echo_n
"checking for sigsetjmp... "
>
&6
;
}
cat
>
conftest.
$ac_ext
<<
_ACEOF
if
test
"
${
pgac_cv_func_sigsetjmp
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
_ACEOF
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
confdefs.h
>>
conftest.
$ac_ext
...
@@ -21174,24 +21228,27 @@ $as_echo "$ac_try_echo") >&5
...
@@ -21174,24 +21228,27 @@ $as_echo "$ac_try_echo") >&5
test
"
$cross_compiling
"
=
yes
||
test
"
$cross_compiling
"
=
yes
||
$as_test_x
conftest
$ac_exeext
$as_test_x
conftest
$ac_exeext
}
;
then
}
;
then
pgac_cv_func_sigsetjmp
=
yes
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_SIGSETJMP 1
_ACEOF
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
$as_echo
"yes"
>
&6
;
}
else
else
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
pgac_cv_func_sigsetjmp
=
no
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-rf
conftest.dSYM
rm
-rf
conftest.dSYM
rm
-f
core conftest.err conftest.
$ac_objext
conftest_ipa8_conftest.oo
\
rm
-f
core conftest.err conftest.
$ac_objext
conftest_ipa8_conftest.oo
\
conftest
$ac_exeext
conftest.
$ac_ext
conftest
$ac_exeext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_func_sigsetjmp
"
>
&5
$as_echo
"
$pgac_cv_func_sigsetjmp
"
>
&6
;
}
if
test
x
"
$pgac_cv_func_sigsetjmp
"
=
x
"yes"
;
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_SIGSETJMP 1
_ACEOF
fi
{
$as_echo
"
$as_me
:
$LINENO
: checking whether sys_siglist is declared"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking whether sys_siglist is declared"
>
&5
$as_echo_n
"checking whether sys_siglist is declared... "
>
&6
;
}
$as_echo_n
"checking whether sys_siglist is declared... "
>
&6
;
}
...
@@ -28847,14 +28904,15 @@ else
...
@@ -28847,14 +28904,15 @@ else
fi
fi
if
test
"
$PORTNAME
"
=
"darwin"
;
then
if
test
"
$PORTNAME
"
=
"darwin"
;
then
{
$as_echo
"
$as_me
:
$LINENO
: checking if
$CC
supports -Wl,-dead_strip_dylibs"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking whether
$CC
supports -Wl,-dead_strip_dylibs"
>
&5
$as_echo_n
"checking if
$CC
supports -Wl,-dead_strip_dylibs... "
>
&6
;
}
$as_echo_n
"checking whether
$CC
supports -Wl,-dead_strip_dylibs... "
>
&6
;
}
pgac_save_LDFLAGS
=
$LDFLAGS
if
test
"
${
pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
pgac_save_LDFLAGS
=
$LDFLAGS
LDFLAGS
=
"
$pgac_save_LDFLAGS
-Wl,-dead_strip_dylibs"
LDFLAGS
=
"
$pgac_save_LDFLAGS
-Wl,-dead_strip_dylibs"
if
test
"
$cross_compiling
"
=
yes
;
then
if
test
"
$cross_compiling
"
=
yes
;
then
LDFLAGS
=
"
$pgac_save_LDFLAGS
"
pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=
"assuming no"
{
$as_echo
"
$as_me
:
$LINENO
: result: assuming no"
>
&5
$as_echo
"assuming no"
>
&6
;
}
else
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
...
@@ -28893,33 +28951,38 @@ $as_echo "$ac_try_echo") >&5
...
@@ -28893,33 +28951,38 @@ $as_echo "$ac_try_echo") >&5
ac_status
=
$?
ac_status
=
$?
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
(
exit
$ac_status
)
;
}
;
}
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=
yes
$as_echo
"yes"
>
&6
;
}
else
else
$as_echo
"
$as_me
: program exited with status
$ac_status
"
>
&5
$as_echo
"
$as_me
: program exited with status
$ac_status
"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
(
exit
$ac_status
)
(
exit
$ac_status
)
LDFLAGS
=
"
$pgac_save_LDFLAGS
"
pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=
no
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-rf
conftest.dSYM
rm
-rf
conftest.dSYM
rm
-f
core
*
.core core.conftest.
*
gmon.out bb.out conftest
$ac_exeext
conftest.
$ac_objext
conftest.
$ac_ext
rm
-f
core
*
.core core.conftest.
*
gmon.out bb.out conftest
$ac_exeext
conftest.
$ac_objext
conftest.
$ac_ext
fi
fi
LDFLAGS
=
"
$pgac_save_LDFLAGS
"
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
"
>
&5
$as_echo
"
$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
"
>
&6
;
}
if
test
x
"
$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
"
=
x
"yes"
;
then
LDFLAGS
=
"
$LDFLAGS
-Wl,-dead_strip_dylibs"
fi
elif
test
"
$PORTNAME
"
=
"openbsd"
;
then
elif
test
"
$PORTNAME
"
=
"openbsd"
;
then
{
$as_echo
"
$as_me
:
$LINENO
: checking if
$CC
supports -Wl,-Bdynamic"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking whether
$CC
supports -Wl,-Bdynamic"
>
&5
$as_echo_n
"checking if
$CC
supports -Wl,-Bdynamic... "
>
&6
;
}
$as_echo_n
"checking whether
$CC
supports -Wl,-Bdynamic... "
>
&6
;
}
pgac_save_LDFLAGS
=
$LDFLAGS
if
test
"
${
pgac_cv_prog_cc_ldflags__Wl__Bdynamic
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
pgac_save_LDFLAGS
=
$LDFLAGS
LDFLAGS
=
"
$pgac_save_LDFLAGS
-Wl,-Bdynamic"
LDFLAGS
=
"
$pgac_save_LDFLAGS
-Wl,-Bdynamic"
if
test
"
$cross_compiling
"
=
yes
;
then
if
test
"
$cross_compiling
"
=
yes
;
then
LDFLAGS
=
"
$pgac_save_LDFLAGS
"
pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=
"assuming no"
{
$as_echo
"
$as_me
:
$LINENO
: result: assuming no"
>
&5
$as_echo
"assuming no"
>
&6
;
}
else
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
...
@@ -28958,33 +29021,38 @@ $as_echo "$ac_try_echo") >&5
...
@@ -28958,33 +29021,38 @@ $as_echo "$ac_try_echo") >&5
ac_status
=
$?
ac_status
=
$?
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
(
exit
$ac_status
)
;
}
;
}
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=
yes
$as_echo
"yes"
>
&6
;
}
else
else
$as_echo
"
$as_me
: program exited with status
$ac_status
"
>
&5
$as_echo
"
$as_me
: program exited with status
$ac_status
"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
(
exit
$ac_status
)
(
exit
$ac_status
)
LDFLAGS
=
"
$pgac_save_LDFLAGS
"
pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=
no
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-rf
conftest.dSYM
rm
-rf
conftest.dSYM
rm
-f
core
*
.core core.conftest.
*
gmon.out bb.out conftest
$ac_exeext
conftest.
$ac_objext
conftest.
$ac_ext
rm
-f
core
*
.core core.conftest.
*
gmon.out bb.out conftest
$ac_exeext
conftest.
$ac_objext
conftest.
$ac_ext
fi
fi
LDFLAGS
=
"
$pgac_save_LDFLAGS
"
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_prog_cc_ldflags__Wl__Bdynamic
"
>
&5
$as_echo
"
$pgac_cv_prog_cc_ldflags__Wl__Bdynamic
"
>
&6
;
}
if
test
x
"
$pgac_cv_prog_cc_ldflags__Wl__Bdynamic
"
=
x
"yes"
;
then
LDFLAGS
=
"
$LDFLAGS
-Wl,-Bdynamic"
fi
else
else
{
$as_echo
"
$as_me
:
$LINENO
: checking if
$CC
supports -Wl,--as-needed"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking whether
$CC
supports -Wl,--as-needed"
>
&5
$as_echo_n
"checking if
$CC
supports -Wl,--as-needed... "
>
&6
;
}
$as_echo_n
"checking whether
$CC
supports -Wl,--as-needed... "
>
&6
;
}
pgac_save_LDFLAGS
=
$LDFLAGS
if
test
"
${
pgac_cv_prog_cc_ldflags__Wl___as_needed
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
pgac_save_LDFLAGS
=
$LDFLAGS
LDFLAGS
=
"
$pgac_save_LDFLAGS
-Wl,--as-needed"
LDFLAGS
=
"
$pgac_save_LDFLAGS
-Wl,--as-needed"
if
test
"
$cross_compiling
"
=
yes
;
then
if
test
"
$cross_compiling
"
=
yes
;
then
LDFLAGS
=
"
$pgac_save_LDFLAGS
"
pgac_cv_prog_cc_ldflags__Wl___as_needed
=
"assuming no"
{
$as_echo
"
$as_me
:
$LINENO
: result: assuming no"
>
&5
$as_echo
"assuming no"
>
&6
;
}
else
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
...
@@ -29023,23 +29091,27 @@ $as_echo "$ac_try_echo") >&5
...
@@ -29023,23 +29091,27 @@ $as_echo "$ac_try_echo") >&5
ac_status
=
$?
ac_status
=
$?
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
(
exit
$ac_status
)
;
}
;
}
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
pgac_cv_prog_cc_ldflags__Wl___as_needed
=
yes
$as_echo
"yes"
>
&6
;
}
else
else
$as_echo
"
$as_me
: program exited with status
$ac_status
"
>
&5
$as_echo
"
$as_me
: program exited with status
$ac_status
"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
(
exit
$ac_status
)
(
exit
$ac_status
)
LDFLAGS
=
"
$pgac_save_LDFLAGS
"
pgac_cv_prog_cc_ldflags__Wl___as_needed
=
no
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
fi
rm
-rf
conftest.dSYM
rm
-rf
conftest.dSYM
rm
-f
core
*
.core core.conftest.
*
gmon.out bb.out conftest
$ac_exeext
conftest.
$ac_objext
conftest.
$ac_ext
rm
-f
core
*
.core core.conftest.
*
gmon.out bb.out conftest
$ac_exeext
conftest.
$ac_objext
conftest.
$ac_ext
fi
fi
LDFLAGS
=
"
$pgac_save_LDFLAGS
"
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$pgac_cv_prog_cc_ldflags__Wl___as_needed
"
>
&5
$as_echo
"
$pgac_cv_prog_cc_ldflags__Wl___as_needed
"
>
&6
;
}
if
test
x
"
$pgac_cv_prog_cc_ldflags__Wl___as_needed
"
=
x
"yes"
;
then
LDFLAGS
=
"
$LDFLAGS
-Wl,--as-needed"
fi
fi
fi
...
...
configure.in
View file @
804a786c
...
@@ -1355,12 +1355,14 @@ fi
...
@@ -1355,12 +1355,14 @@ fi
dnl Cannot use AC_CHECK_FUNC because sigsetjmp may be a macro
dnl Cannot use AC_CHECK_FUNC because sigsetjmp may be a macro
dnl (especially on GNU libc)
dnl (especially on GNU libc)
dnl See also comments in c.h.
dnl See also comments in c.h.
AC_
MSG_CHECKING(for sigsetjmp)
AC_
CACHE_CHECK([for sigsetjmp], pgac_cv_func_sigsetjmp,
AC_TRY_LINK([#include <setjmp.h>],
[
AC_TRY_LINK([#include <setjmp.h>],
[sigjmp_buf x; sigsetjmp(x, 1);],
[sigjmp_buf x; sigsetjmp(x, 1);],
[AC_DEFINE(HAVE_SIGSETJMP, 1, [Define to 1 if you have sigsetjmp().])
[pgac_cv_func_sigsetjmp=yes],
AC_MSG_RESULT(yes)],
[pgac_cv_func_sigsetjmp=no])])
[AC_MSG_RESULT(no)])
if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
AC_DEFINE(HAVE_SIGSETJMP, 1, [Define to 1 if you have sigsetjmp().])
fi
AC_DECL_SYS_SIGLIST
AC_DECL_SYS_SIGLIST
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment