diff options
| author | Kenichi Handa | 2007-05-01 05:10:50 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-05-01 05:10:50 +0000 |
| commit | 6ed29d7bd9e059a9bb8c048fb6dbce2799443fbd (patch) | |
| tree | 061bc34f71539cceb8a362c21a3ddcea76f3b896 | |
| parent | a40d6d51dbf47c7cf7cb73e04269180c10c6033b (diff) | |
| download | emacs-6ed29d7bd9e059a9bb8c048fb6dbce2799443fbd.tar.gz emacs-6ed29d7bd9e059a9bb8c048fb6dbce2799443fbd.zip | |
*** empty log message ***
| -rwxr-xr-x | configure | 91 |
1 files changed, 85 insertions, 6 deletions
| @@ -13114,12 +13114,87 @@ fi | |||
| 13114 | 13114 | ||
| 13115 | if test "${HAVE_LIBOTF}" = "yes"; then | 13115 | if test "${HAVE_LIBOTF}" = "yes"; then |
| 13116 | 13116 | ||
| 13117 | { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5 | ||
| 13118 | echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; } | ||
| 13119 | if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then | ||
| 13120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 13121 | else | ||
| 13122 | ac_check_lib_save_LIBS=$LIBS | ||
| 13123 | LIBS="-lotf $LIBS" | ||
| 13124 | cat >conftest.$ac_ext <<_ACEOF | ||
| 13125 | /* confdefs.h. */ | ||
| 13126 | _ACEOF | ||
| 13127 | cat confdefs.h >>conftest.$ac_ext | ||
| 13128 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 13129 | /* end confdefs.h. */ | ||
| 13130 | |||
| 13131 | /* Override any GCC internal prototype to avoid an error. | ||
| 13132 | Use char because int might match the return type of a GCC | ||
| 13133 | builtin and then its argument prototype would still apply. */ | ||
| 13134 | #ifdef __cplusplus | ||
| 13135 | extern "C" | ||
| 13136 | #endif | ||
| 13137 | char OTF_get_features (); | ||
| 13138 | int | ||
| 13139 | main () | ||
| 13140 | { | ||
| 13141 | return OTF_get_features (); | ||
| 13142 | ; | ||
| 13143 | return 0; | ||
| 13144 | } | ||
| 13145 | _ACEOF | ||
| 13146 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 13147 | if { (ac_try="$ac_link" | ||
| 13148 | case "(($ac_try" in | ||
| 13149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 13150 | *) ac_try_echo=$ac_try;; | ||
| 13151 | esac | ||
| 13152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
| 13153 | (eval "$ac_link") 2>conftest.er1 | ||
| 13154 | ac_status=$? | ||
| 13155 | grep -v '^ *+' conftest.er1 >conftest.err | ||
| 13156 | rm -f conftest.er1 | ||
| 13157 | cat conftest.err >&5 | ||
| 13158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 13159 | (exit $ac_status); } && { | ||
| 13160 | test -z "$ac_c_werror_flag" || | ||
| 13161 | test ! -s conftest.err | ||
| 13162 | } && test -s conftest$ac_exeext && | ||
| 13163 | $as_test_x conftest$ac_exeext; then | ||
| 13164 | ac_cv_lib_otf_OTF_get_features=yes | ||
| 13165 | else | ||
| 13166 | echo "$as_me: failed program was:" >&5 | ||
| 13167 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 13168 | |||
| 13169 | ac_cv_lib_otf_OTF_get_features=no | ||
| 13170 | fi | ||
| 13171 | |||
| 13172 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
| 13173 | conftest$ac_exeext conftest.$ac_ext | ||
| 13174 | LIBS=$ac_check_lib_save_LIBS | ||
| 13175 | fi | ||
| 13176 | { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5 | ||
| 13177 | echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; } | ||
| 13178 | if test $ac_cv_lib_otf_OTF_get_features = yes; then | ||
| 13179 | cat >>confdefs.h <<_ACEOF | ||
| 13180 | #define HAVE_LIBOTF 1 | ||
| 13181 | _ACEOF | ||
| 13182 | |||
| 13183 | LIBS="-lotf $LIBS" | ||
| 13184 | |||
| 13185 | else | ||
| 13186 | HAVE_LIBOTF=no | ||
| 13187 | fi | ||
| 13188 | |||
| 13189 | if test "${HAVE_LIBOTF}" = "yes"; then | ||
| 13190 | |||
| 13117 | cat >>confdefs.h <<\_ACEOF | 13191 | cat >>confdefs.h <<\_ACEOF |
| 13118 | #define HAVE_LIBOTF 1 | 13192 | #define HAVE_LIBOTF 1 |
| 13119 | _ACEOF | 13193 | _ACEOF |
| 13120 | 13194 | ||
| 13121 | LIBOTF_CFLAGS=`libotf-config --cflags` | 13195 | LIBOTF_CFLAGS=`libotf-config --cflags` |
| 13122 | LIBOTF_LIBS=`libotf-config --libs` | 13196 | LIBOTF_LIBS=`libotf-config --libs` |
| 13197 | fi | ||
| 13123 | fi | 13198 | fi |
| 13124 | fi | 13199 | fi |
| 13125 | 13200 | ||
| @@ -18222,11 +18297,13 @@ _ACEOF | |||
| 18222 | cat confdefs.h >>conftest.$ac_ext | 18297 | cat confdefs.h >>conftest.$ac_ext |
| 18223 | cat >>conftest.$ac_ext <<_ACEOF | 18298 | cat >>conftest.$ac_ext <<_ACEOF |
| 18224 | /* end confdefs.h. */ | 18299 | /* end confdefs.h. */ |
| 18225 | #include <stdio.h> | 18300 | #include <sys/types.h> /* for off_t */ |
| 18301 | #include <stdio.h> | ||
| 18226 | int | 18302 | int |
| 18227 | main () | 18303 | main () |
| 18228 | { | 18304 | { |
| 18229 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); | 18305 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 18306 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | ||
| 18230 | ; | 18307 | ; |
| 18231 | return 0; | 18308 | return 0; |
| 18232 | } | 18309 | } |
| @@ -18266,11 +18343,13 @@ cat confdefs.h >>conftest.$ac_ext | |||
| 18266 | cat >>conftest.$ac_ext <<_ACEOF | 18343 | cat >>conftest.$ac_ext <<_ACEOF |
| 18267 | /* end confdefs.h. */ | 18344 | /* end confdefs.h. */ |
| 18268 | #define _LARGEFILE_SOURCE 1 | 18345 | #define _LARGEFILE_SOURCE 1 |
| 18269 | #include <stdio.h> | 18346 | #include <sys/types.h> /* for off_t */ |
| 18347 | #include <stdio.h> | ||
| 18270 | int | 18348 | int |
| 18271 | main () | 18349 | main () |
| 18272 | { | 18350 | { |
| 18273 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); | 18351 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 18352 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | ||
| 18274 | ; | 18353 | ; |
| 18275 | return 0; | 18354 | return 0; |
| 18276 | } | 18355 | } |