Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
de1a6978
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
de1a6978
编写于
7月 17, 2002
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve getopt_long search, per Peter:
AC_SEARCH_LIBS(getopt_long, [getopt])
上级
5af19e42
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
69 addition
and
20 deletion
+69
-20
configure
configure
+67
-18
configure.in
configure.in
+2
-2
未找到文件。
configure
浏览文件 @
de1a6978
...
...
@@ -6045,19 +6045,70 @@ _ACEOF
fi
echo
"
$as_me
:
$LINENO
: checking for main in -lgetopt"
>
&5
echo
$ECHO_N
"checking for main in -lgetopt...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_lib_getopt_main
+set
}
"
=
set
;
then
echo
"
$as_me
:
$LINENO
: checking for library containing getopt_long"
>
&5
echo
$ECHO_N
"checking for library containing getopt_long...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_search_getopt_long
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_
check_lib
_save_LIBS
=
$LIBS
LIBS
=
"-lgetopt
$LIBS
"
ac_
func_search
_save_LIBS
=
$LIBS
ac_cv_search_getopt_long
=
no
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getopt_long ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
getopt_long ();
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_search_getopt_long
=
"none required"
else
echo
"
$as_me
: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
fi
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
conftest.
$ac_ext
if
test
"
$ac_cv_search_getopt_long
"
=
no
;
then
for
ac_lib
in
getopt
;
do
LIBS
=
"-l
$ac_lib
$ac_func_search_save_LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getopt_long ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
...
...
@@ -6067,7 +6118,7 @@ cat >conftest.$ac_ext <<_ACEOF
int
main ()
{
main
();
getopt_long
();
;
return 0;
}
...
...
@@ -6084,23 +6135,21 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_lib_getopt_main
=
yes
ac_cv_search_getopt_long
=
"-l
$ac_lib
"
break
else
echo
"
$as_me
: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
ac_cv_lib_getopt_main
=
no
fi
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
done
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_lib_getopt_main
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_lib_getopt_main
"
>
&6
if
test
$ac_cv_lib_getopt_main
=
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBGETOPT 1
_ACEOF
LIBS
=
"-lgetopt
$LIBS
"
LIBS
=
$ac_func_search_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_search_getopt_long
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_search_getopt_long
"
>
&6
if
test
"
$ac_cv_search_getopt_long
"
!=
no
;
then
test
"
$ac_cv_search_getopt_long
"
=
"none required"
||
LIBS
=
"
$ac_cv_search_getopt_long
$LIBS
"
fi
...
...
configure.in
浏览文件 @
de1a6978
dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.19
0 2002/07/16 05:46:35
momjian Exp $
dnl $Header: /cvsroot/pgsql/configure.in,v 1.19
1 2002/07/17 02:54:01
momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -696,7 +696,7 @@ AC_CHECK_LIB(BSD, main)
AC_CHECK_LIB(gen, main)
AC_CHECK_LIB(PW, main)
AC_CHECK_LIB(resolv, main)
AC_
CHECK_LIB(getopt, main
)
AC_
SEARCH_LIBS(getopt_long, [getopt]
)
# QNX:
AC_CHECK_LIB([[unix]], main)
AC_SEARCH_LIBS(crypt, crypt)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录