Skip to content

Commit

Permalink
double message
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@986 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
levsa committed Jun 13, 2003
1 parent b278933 commit da87e92
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions configure
Expand Up @@ -1425,16 +1425,15 @@ else
fi
rm -f conftest*

echo $ac_n "checking for socket""... $ac_c" 1>&6
echo "configure:1430: checking for socket" >&5


echo $ac_n "checking for socket""... $ac_c" 1>&6
echo "configure:1433: checking for socket" >&5
echo "configure:1432: checking for socket" >&5
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1438 "configure"
#line 1437 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char socket(); below. */
Expand All @@ -1457,7 +1456,7 @@ socket();
; return 0; }
EOF
if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_socket=yes"
else
Expand All @@ -1476,17 +1475,17 @@ else
echo "$ac_t""no" 1>&6
echo "$ac_t""no" 1>&6;
echo $ac_n "checking for libsocket""... $ac_c" 1>&6
echo "configure:1480: checking for libsocket" >&5;
echo "configure:1479: checking for libsocket" >&5;
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
echo "configure:1482: checking for socket in -lsocket" >&5
echo "configure:1481: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1490 "configure"
#line 1489 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
Expand All @@ -1497,7 +1496,7 @@ int main() {
socket()
; return 0; }
EOF
if { (eval echo configure:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -152,8 +152,8 @@ return 0;
], [AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_SCANDIR])],
[AC_MSG_RESULT([no])])


dnl check for socket
AC_MSG_CHECKING([for socket])

AC_CHECK_FUNC(socket,
[AC_MSG_RESULT([yes]); LIBSOCKET=""],
Expand Down

0 comments on commit da87e92

Please sign in to comment.