From: Kevin M. Rosenberg Date: Sun, 5 Oct 2003 06:48:04 +0000 (+0000) Subject: r7942: add test for getenv X-Git-Tag: debian-4.5.3-3~55 X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=commitdiff_plain;h=ff6b0481fccb03123aa9cc1807f4ff5508efc190 r7942: add test for getenv --- diff --git a/Makefile.in b/Makefile.in index c6a9269..f1ae90c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -160,11 +160,11 @@ webenabled = @webenabled@ wxcflags = @wxcflags@ wxconfig = @wxconfig@ wxlibs = @wxlibs@ -@INCLUDED_GETOPT_LONG_FALSE@EXTRA_DIRS1 = @INCLUDED_GETOPT_LONG_TRUE@EXTRA_DIRS1 = getopt +@INCLUDED_GETOPT_LONG_FALSE@EXTRA_DIRS1 = +@HAVE_SGP_FALSE@EXTRA_DIRS2 = @HAVE_SGP_TRUE@EXTRA_DIRS2 = libctgraphics -@HAVE_SGP_FALSE@EXTRA_DIRS2 = @HAVE_WXWINDOWS_TRUE@EXTRA_DIRS3 = src @HAVE_WXWINDOWS_FALSE@EXTRA_DIRS3 = diff --git a/configure b/configure index 3668003..c977cf2 100755 --- a/configure +++ b/configure @@ -7453,7 +7453,13 @@ done -for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf + + + + + + +for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -7979,79 +7985,6 @@ else getopt=false fi -echo "$as_me:$LINENO: checking for getenv" >&5 -echo $ECHO_N "checking for getenv... $ECHO_C" >&6 -if test "${ac_cv_func_getenv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char getenv (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -/* 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 getenv (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_getenv) || defined (__stub___getenv) -choke me -#else -char (*f) () = getenv; -#endif -#ifdef __cplusplus -} -#endif - -int -main () -{ -return f != getenv; - ; - 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_func_getenv=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_func_getenv=no -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_func_getenv" >&5 -echo "${ECHO_T}$ac_cv_func_getenv" >&6 - if test "${OSTYPE}" = "cygwin" ; then getopt_long=false diff --git a/tools/Makefile.in b/tools/Makefile.in index 3c6a568..fd1f0d6 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -163,9 +163,9 @@ wxlibs = @wxlibs@ bin_PROGRAMS = @lamprograms@ ctsimtext EXTRA_PROGRAMS = ctsimtext-lam INCLUDES = @my_includes@ +@HAVE_SGP_FALSE@SOURCE_DEPEND = ../include/ct.h ../libctsim/libctsim.a ../libctsupport/libctsupport.a @HAVE_SGP_TRUE@SOURCE_DEPEND = ../include/ct.h ../libctsim/libctsim.a ../libctsupport/libctsupport.a ../libctgraphics/libctgraphics.a -@HAVE_SGP_FALSE@SOURCE_DEPEND = ../include/ct.h ../libctsim/libctsim.a ../libctsupport/libctsupport.a ctsimtext_SOURCES = ctsimtext.cpp if1.cpp if2.cpp ifinfo.cpp ifexport.cpp phm2if.cpp phm2pj.cpp pj2if.cpp pjinfo.cpp pjrec.cpp nographics.cpp phm2helix.cpp pjHinterp.cpp linogram.cpp ctsimtext_LDADD = @ctlibs@