Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcc618f2

Browse files
committed
Add search for libgetopt.a in hopes of finding getopt_long().
1 parentb9104e3 commitcc618f2

File tree

2 files changed

+77
-17
lines changed

2 files changed

+77
-17
lines changed

‎configure

Lines changed: 67 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6045,6 +6045,65 @@ _ACEOF
60456045
60466046
fi
60476047
6048+
6049+
echo"$as_me:$LINENO: checking for main in -lgetopt">&5
6050+
echo$ECHO_N"checking for main in -lgetopt...$ECHO_C">&6
6051+
iftest"${ac_cv_lib_getopt_main+set}" =set;then
6052+
echo$ECHO_N"(cached)$ECHO_C">&6
6053+
else
6054+
ac_check_lib_save_LIBS=$LIBS
6055+
LIBS="-lgetopt$LIBS"
6056+
cat>conftest.$ac_ext<<_ACEOF
6057+
#line$LINENO "configure"
6058+
#include "confdefs.h"
6059+
6060+
6061+
#ifdef F77_DUMMY_MAIN
6062+
# ifdef __cplusplus
6063+
extern "C"
6064+
# endif
6065+
int F77_DUMMY_MAIN() { return 1; }
6066+
#endif
6067+
int
6068+
main ()
6069+
{
6070+
main ();
6071+
;
6072+
return 0;
6073+
}
6074+
_ACEOF
6075+
rm -f conftest.$ac_objext conftest$ac_exeext
6076+
if { (evalecho"$as_me:$LINENO:\"$ac_link\"")>&5
6077+
(eval$ac_link)2>&5
6078+
ac_status=$?
6079+
echo"$as_me:$LINENO:\$? =$ac_status">&5
6080+
(exit$ac_status); }&&
6081+
{ ac_try='test -s conftest$ac_exeext'
6082+
{ (evalecho"$as_me:$LINENO:\"$ac_try\"")>&5
6083+
(eval$ac_try)2>&5
6084+
ac_status=$?
6085+
echo"$as_me:$LINENO:\$? =$ac_status">&5
6086+
(exit$ac_status); }; };then
6087+
ac_cv_lib_getopt_main=yes
6088+
else
6089+
echo"$as_me: failed program was:">&5
6090+
cat conftest.$ac_ext>&5
6091+
ac_cv_lib_getopt_main=no
6092+
fi
6093+
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6094+
LIBS=$ac_check_lib_save_LIBS
6095+
fi
6096+
echo"$as_me:$LINENO: result:$ac_cv_lib_getopt_main">&5
6097+
echo"${ECHO_T}$ac_cv_lib_getopt_main">&6
6098+
iftest$ac_cv_lib_getopt_main = yes;then
6099+
cat>>confdefs.h<<_ACEOF
6100+
#define HAVE_LIBGETOPT 1
6101+
_ACEOF
6102+
6103+
LIBS="-lgetopt$LIBS"
6104+
6105+
fi
6106+
60486107
# QNX:
60496108
60506109
echo"$as_me:$LINENO: checking for main in -lunix">&5
@@ -11070,7 +11129,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
1107011129
_ACEOF
1107111130
1107211131
else
11073-
GETRUSAGE='getrusage.o'
11132+
GETRUSAGE='$(top_builddir)/src/backend/port/getrusage.o'
1107411133
fi
1107511134
done
1107611135
@@ -11149,7 +11208,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
1114911208
_ACEOF
1115011209
1115111210
else
11152-
SRANDOM='srandom.o'
11211+
SRANDOM='$(top_builddir)/src/backend/port/srandom.o'
1115311212
fi
1115411213
done
1115511214
@@ -11228,7 +11287,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
1122811287
_ACEOF
1122911288
1123011289
else
11231-
GETHOSTNAME='gethostname.o'
11290+
GETHOSTNAME='$(top_builddir)/src/backend/port/gethostname.o'
1123211291
fi
1123311292
done
1123411293
@@ -11307,7 +11366,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
1130711366
_ACEOF
1130811367
1130911368
else
11310-
MISSING_RANDOM='random.o'
11369+
MISSING_RANDOM='$(top_builddir)/src/backend/port/random.o'
1131111370
fi
1131211371
done
1131311372
@@ -11386,7 +11445,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
1138611445
_ACEOF
1138711446
1138811447
else
11389-
INET_ATON='inet_aton.o'
11448+
INET_ATON='$(top_builddir)/src/backend/port/inet_aton.o'
1139011449
fi
1139111450
done
1139211451
@@ -11623,7 +11682,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
1162311682
_ACEOF
1162411683
1162511684
else
11626-
STRTOL='strtol.o'
11685+
STRTOL='$(top_builddir)/src/backend/port/strtol.o'
1162711686
fi
1162811687
done
1162911688
@@ -11702,7 +11761,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
1170211761
_ACEOF
1170311762
1170411763
else
11705-
STRTOUL='strtoul.o'
11764+
STRTOUL='$(top_builddir)/src/backend/port/strtoul.o'
1170611765
fi
1170711766
done
1170811767
@@ -11781,7 +11840,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
1178111840
_ACEOF
1178211841
1178311842
else
11784-
STRCASECMP='strcasecmp.o'
11843+
STRCASECMP='$(top_builddir)/src/backend/port/strcasecmp.o'
1178511844
fi
1178611845
done
1178711846

‎configure.in

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $Header: /cvsroot/pgsql/configure.in,v 1.188 2002/07/1521:34:04 momjian Exp $
2+
dnl $Header: /cvsroot/pgsql/configure.in,v 1.189 2002/07/1522:41:45 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -696,6 +696,7 @@ AC_CHECK_LIB(BSD, main)
696696
AC_CHECK_LIB(gen, main)
697697
AC_CHECK_LIB(PW, main)
698698
AC_CHECK_LIB(resolv, main)
699+
AC_CHECK_LIB(getopt, main)
699700
# QNX:
700701
AC_CHECK_LIB([[unix]], main)
701702
AC_SEARCH_LIBS(crypt, crypt)
@@ -903,25 +904,25 @@ fi
903904
AC_SUBST(ISINF)
904905

905906

906-
AC_CHECK_FUNCS(getrusage, [], GETRUSAGE='getrusage.o')
907+
AC_CHECK_FUNCS(getrusage, [], GETRUSAGE='$(top_builddir)/src/backend/port/getrusage.o')
907908
AC_SUBST(GETRUSAGE)
908-
AC_CHECK_FUNCS(srandom, [], SRANDOM='srandom.o')
909+
AC_CHECK_FUNCS(srandom, [], SRANDOM='$(top_builddir)/src/backend/port/srandom.o')
909910
AC_SUBST(SRANDOM)
910-
AC_CHECK_FUNCS(gethostname, [], GETHOSTNAME='gethostname.o')
911+
AC_CHECK_FUNCS(gethostname, [], GETHOSTNAME='$(top_builddir)/src/backend/port/gethostname.o')
911912
AC_SUBST(GETHOSTNAME)
912-
AC_CHECK_FUNCS(random, [], MISSING_RANDOM='random.o')
913+
AC_CHECK_FUNCS(random, [], MISSING_RANDOM='$(top_builddir)/src/backend/port/random.o')
913914
AC_SUBST(MISSING_RANDOM)
914-
AC_CHECK_FUNCS(inet_aton, [], INET_ATON='inet_aton.o')
915+
AC_CHECK_FUNCS(inet_aton, [], INET_ATON='$(top_builddir)/src/backend/port/inet_aton.o')
915916
AC_SUBST(INET_ATON)
916917
AC_CHECK_FUNCS(strerror, [], STRERROR='$(top_builddir)/src/backend/port/strerror.o')
917918
AC_SUBST(STRERROR)
918919
AC_CHECK_FUNCS(strdup, [], STRDUP='$(top_builddir)/src/utils/strdup.o')
919920
AC_SUBST(STRDUP)
920-
AC_CHECK_FUNCS(strtol, [], STRTOL='strtol.o')
921+
AC_CHECK_FUNCS(strtol, [], STRTOL='$(top_builddir)/src/backend/port/strtol.o')
921922
AC_SUBST(STRTOL)
922-
AC_CHECK_FUNCS(strtoul, [], STRTOUL='strtoul.o')
923+
AC_CHECK_FUNCS(strtoul, [], STRTOUL='$(top_builddir)/src/backend/port/strtoul.o')
923924
AC_SUBST(STRTOUL)
924-
AC_CHECK_FUNCS(strcasecmp, [], STRCASECMP='strcasecmp.o')
925+
AC_CHECK_FUNCS(strcasecmp, [], STRCASECMP='$(top_builddir)/src/backend/port/strcasecmp.o')
925926
AC_SUBST(STRCASECMP)
926927

927928
# On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp