Changeset 23632 for main/branches
- Timestamp:
- 2011-01-25T14:48:39+13:00 (13 years ago)
- Location:
- main/branches/64_bit_Greenstone/greenstone3
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/branches/64_bit_Greenstone/greenstone3
- Property svn:mergeinfo changed
/main/trunk/greenstone3 merged: 23611,23613,23617,23627-23628
- Property svn:mergeinfo changed
-
main/branches/64_bit_Greenstone/greenstone3/build.xml
r23606 r23632 223 223 <!-- If building a release then we want to adjust environment variables so that the support library can be see during compilation --> 224 224 <if><bool><isset property="use.support.lib"/></bool> 225 226 225 <property name="gnome-lib-dir" value="${basedir}/ext/gnome-lib-minimal/${os.bin.dir}"/> 227 226 … … 268 267 </if> 269 268 270 <if><bool><isset property="env.LD_LIBRARY_PATH"/></bool> 271 <property name="ldlpath.arg" value="LD_LIBRARY_PATH="${gnome-lib-dir}/lib:${env.LD_LIBRARY_PATH}""/> 269 <if><bool><equals arg1="${os.bin.dir}" arg2="darwin"/></bool> 270 <if><bool><isset property="env.DYLD_LIBRARY_PATH"/></bool> 271 <property name="ldlpath.arg" value="DYLD_LIBRARY_PATH="${gnome-lib-dir}/lib:${env.DYLD_LIBRARY_PATH}""/> 272 <else> 273 <property name="ldlpath.arg" value="DYLD_LIBRARY_PATH="${gnome-lib-dir}/lib""/> 274 </else> 275 </if> 272 276 <else> 273 <property name="ldlpath.arg" value="LD_LIBRARY_PATH="${gnome-lib-dir}/lib""/> 277 <if><bool><isset property="env.LD_LIBRARY_PATH"/></bool> 278 <property name="ldlpath.arg" value="LD_LIBRARY_PATH="${gnome-lib-dir}/lib:${env.LD_LIBRARY_PATH}""/> 279 <else> 280 <property name="ldlpath.arg" value="LD_LIBRARY_PATH="${gnome-lib-dir}/lib""/> 281 </else> 282 </if> 274 283 </else> 275 284 </if> … … 318 327 </if> 319 328 320 <if><bool><isset property="env.LD_LIBRARY_PATH"/></bool> 321 <property name="ldlpath.arg" value="LD_LIBRARY_PATH="${env.LD_LIBRARY_PATH}""/> 329 <if><bool><equals arg1="${os.bin.dir}" arg2="darwin"/></bool> 330 <if><bool><isset property="env.DYLD_LIBRARY_PATH"/></bool> 331 <property name="ldlpath.arg" value="DYLD_LIBRARY_PATH="${env.DYLD_LIBRARY_PATH}""/> 332 <else> 333 <property name="ldlpath.arg" value=" "/> 334 </else> 335 </if> 322 336 <else> 323 <property name="ldlpath.arg" value=" "/> 324 </else> 337 <if><bool><isset property="env.LD_LIBRARY_PATH"/></bool> 338 <property name="ldlpath.arg" value="LD_LIBRARY_PATH="${env.LD_LIBRARY_PATH}""/> 339 <else> 340 <property name="ldlpath.arg" value=" "/> 341 </else> 342 </if> 343 </else> 325 344 </if> 326 345 </else> 327 346 </if> 347 <property name="allargs" value="${cflags.arg} ${cxxflags.arg} ${cppflags.arg} ${ldflags.arg} ${path.arg} ${ldlpath.arg} ${pcpath.arg}"/> 328 348 329 349 <condition property="gs2.opt.args" value= " " else="--disable-mg --disable-mgpp --disable-accentfold --disable-gdbm --disable-sqlite"> … … 1523 1543 <arg value="--bindir=${gs2build.home}/bin/${os.bin.dir}"/> <!-- what value to use?? --> 1524 1544 <arg line="${gs2.opt.args}"/> 1525 <arg line="${static.arg}"/> 1526 <arg line="${ldflags.arg}"/> 1527 <arg line="${cflags.arg}"/> 1528 <arg line="${cppflags.arg}"/> 1529 <arg line="${cxxflags.arg}"/> 1530 <arg line="${path.arg}"/> 1531 <arg line="${pcpath.arg}"/> 1532 <arg line="${ldlpath.arg}"/> 1545 <!--<arg line="${static.arg}"/>--> 1546 <arg line="${allargs}"/> 1533 1547 </exec> 1534 1548 </target> … … 1847 1861 dir="${build.src.home}" failonerror="true"> 1848 1862 <arg value="--prefix=${gs2build.home}"/> 1849 <arg line="${gs2.opt.args}"/> 1850 <arg line="${static.arg}"/> 1851 <arg line="${ldflags.arg}"/> 1852 <arg line="${cflags.arg}"/> 1853 <arg line="${cppflags.arg}"/> 1854 <arg line="${cxxflags.arg}"/> 1855 <arg line="${path.arg}"/> 1856 <arg line="${pcpath.arg}"/> 1857 <arg line="${ldlpath.arg}"/> 1863 <arg line="${gs2.opt.args} ${allargs}"/> 1858 1864 </exec> 1859 1865 </target> … … 1863 1869 1864 1870 <exec executable="make" dir="${build.src.home}" os="${os.unix}" failonerror="true"> 1871 <arg line="${ldlpath.arg}"/> 1865 1872 </exec> 1866 1873 -
main/branches/64_bit_Greenstone/greenstone3/src/java/org/greenstone/gsdl3/action/DocumentAction.java
r20292 r23632 330 330 doc_meta_param_list.appendChild(doc_param); 331 331 doc_param.setAttribute(GSXML.NAME_ATT, "metadata"); 332 doc_param.setAttribute(GSXML.VALUE_ATT, "a rchivedir");332 doc_param.setAttribute(GSXML.VALUE_ATT, "assocfilepath"); 333 333 334 334 // create the doc node list for the metadata request … … 356 356 NodeList dm_response_docs = dm_response_doc_list.getChildNodes(); 357 357 for (int i = 0; i < doc_nodes.getLength(); i++) { 358 359 } 360 // get t ehtop level doc metadata out358 GSXML.mergeMetadataLists(doc_nodes.item(i), dm_response_docs.item(i)); 359 } 360 // get the top level doc metadata out 361 361 Element doc_meta_response = (Element)dm_response_message.getElementsByTagName(GSXML.RESPONSE_ELEM).item(1); 362 Element doc_meta_list = (Element)GSXML.getNodeByPath(doc_meta_response, "documentNodeList/documentNode/metadataList"); 363 if (doc_meta_list != null) { 364 the_document.appendChild(this.doc.importNode(doc_meta_list, true)); 365 } 362 Element top_doc_node = (Element)GSXML.getNodeByPath(doc_meta_response, "documentNodeList/documentNode"); 363 GSXML.mergeMetadataLists(the_document, top_doc_node); 364 366 365 // Build a request to obtain some document content 367 366 Element dc_message = this.doc.createElement(GSXML.MESSAGE_ELEM); … … 470 469 // hack for simple type 471 470 if (document_type.equals("simple")) { 472 471 // we dont want the internal docNode, just want the content and metadata in the document 473 472 // rethink this!! 474 473 the_document.removeChild(dummy_node); … … 477 476 //for (int i=0; i<dummy_children.getLength(); i++) { 478 477 for (int i=dummy_children.getLength()-1; i>=0; i--) { 478 // special case as we don't want more than one metadata list 479 if (dummy_children.item(i).getNodeName().equals(GSXML.METADATA_ELEM+GSXML.LIST_MODIFIER)) { 480 GSXML.mergeMetadataFromList(the_document, dummy_children.item(i)); 481 } else { 479 482 the_document.appendChild(dummy_children.item(i)); 480 483 } 481 484 } 482 485 } -
main/branches/64_bit_Greenstone/greenstone3/src/java/org/greenstone/gsdl3/util/GSXML.java
r23489 r23632 414 414 } 415 415 416 /** copies the metadata out of t ehmetadataList of 'from' into416 /** copies the metadata out of the metadataList of 'from' into 417 417 * the metadataList of 'to' */ 418 418 public static boolean mergeMetadataLists(Node to, Node from) { 419 Node to_meta = getChildByTagName(to, METADATA_ELEM+LIST_MODIFIER);420 419 Node from_meta = getChildByTagName(from, METADATA_ELEM+LIST_MODIFIER); 421 422 420 if (from_meta == null) { // nothing to copy 423 421 return true; 424 422 } 423 return mergeMetadataFromList(to, from_meta); 424 } 425 426 427 /** copies the metadata out of the meta_list metadataList into 428 * the metadataList of 'to' */ 429 public static boolean mergeMetadataFromList(Node to, Node meta_list) { 430 if (meta_list == null) return false; 431 Node to_meta = getChildByTagName(to, METADATA_ELEM+LIST_MODIFIER); 425 432 Document to_owner = to.getOwnerDocument(); 426 Node new_from = to_owner.importNode(from_meta, true); 427 428 if (to_meta == null) { // just copy the whole list 429 to.appendChild(new_from); 433 if (to_meta == null) { 434 to.appendChild(to_owner.importNode(meta_list, true)); 430 435 return true; 431 436 } 432 433 // copy individual elements 434 Node child = new_from.getFirstChild(); 435 while ( child != null) { 436 to_meta.appendChild(child); 437 child = child.getNextSibling(); 437 // copy individual metadata elements 438 NodeList meta_items = ((Element)meta_list).getElementsByTagName(METADATA_ELEM); 439 for (int i=0; i<meta_items.getLength(); i++) { 440 to_meta.appendChild(to_owner.importNode(meta_items.item(i),true)); 438 441 } 439 442 return true; -
main/branches/64_bit_Greenstone/greenstone3/src/packages/javagdbm/configure
r21433 r23632 1 1 #! /bin/sh 2 # From configure.in Revision: 18343 .2 # From configure.in Revision: 21433 . 3 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2. 59.4 # Generated by GNU Autoconf 2.65. 5 5 # 6 # Copyright (C) 2003 Free Software Foundation, Inc. 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 9 # Inc. 10 # 11 # 7 12 # This configure script is free software; the Free Software Foundation 8 13 # gives unlimited permission to copy, distribute and modify it. 9 ## --------------------- ## 10 ## M4sh Initialization. ## 11 ## --------------------- ## 12 13 # Be Bourne compatible 14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15 21 emulate sh 16 22 NULLCMD=: 17 # Zsh 3.x and 4.x performsword splitting on ${1+"$@"}, which23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18 24 # is contrary to our usage. Disable this feature. 19 25 alias -g '${1+"$@"}'='"$@"' 20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22 fi 23 DUALCASE=1; export DUALCASE # for MKS sh 24 25 # Support unset when possible. 26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27 as_unset=unset 28 else 29 as_unset=false 30 fi 31 32 33 # Work around bugs in pre-3.0 UWIN ksh. 34 $as_unset ENV MAIL MAILPATH 26 setopt NO_GLOB_SUBST 27 else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33 esac 34 fi 35 36 37 as_nl=' 38 ' 39 export as_nl 40 # Printing a long string crashes Solaris 7 /usr/bin/printf. 41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44 # Prefer a ksh shell builtin over an external printf program on Solaris, 45 # but without wasting forks for bash or zsh. 46 if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53 else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73 fi 74 75 # The user is always right. 76 if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82 fi 83 84 85 # IFS 86 # We need space, tab and new line, in precisely that order. Quoting is 87 # there to prevent editors from complaining about space-tab. 88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 89 # splitting by setting IFS to empty value.) 90 IFS=" "" $as_nl" 91 92 # Find who we are. Look in the path if we contain no directory separator. 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 35 124 PS1='$ ' 36 125 PS2='> ' … … 38 127 39 128 # NLS nuisances. 40 for as_var in \ 41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 43 LC_TELEPHONE LC_TIME 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 if test "x$CONFIG_SHELL" = x; then 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 139 emulate sh 140 NULLCMD=: 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 142 # is contrary to our usage. Disable this feature. 143 alias -g '\${1+\"\$@\"}'='\"\$@\"' 144 setopt NO_GLOB_SUBST 145 else 146 case \`(set -o) 2>/dev/null\` in #( 147 *posix*) : 148 set -o posix ;; #( 149 *) : 150 ;; 151 esac 152 fi 153 " 154 as_required="as_fn_return () { (exit \$1); } 155 as_fn_success () { as_fn_return 0; } 156 as_fn_failure () { as_fn_return 1; } 157 as_fn_ret_success () { return 0; } 158 as_fn_ret_failure () { return 1; } 159 160 exitcode=0 161 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 166 167 else 168 exitcode=1; echo positional parameters were not saved. 169 fi 170 test x\$exitcode = x0 || exit 1" 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 175 test \$(( 1 + 1 )) = 2 || exit 1" 176 if (eval "$as_required") 2>/dev/null; then : 177 as_have_required=yes 178 else 179 as_have_required=no 180 fi 181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 182 183 else 184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 185 as_found=false 186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 44 187 do 45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 46 eval $as_var=C; export $as_var 188 IFS=$as_save_IFS 189 test -z "$as_dir" && as_dir=. 190 as_found=: 191 case $as_dir in #( 192 /*) 193 for as_base in sh bash ksh sh5; do 194 # Try only shells that exist, to save several forks. 195 as_shell=$as_dir/$as_base 196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 198 CONFIG_SHELL=$as_shell as_have_required=yes 199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 break 2 201 fi 202 fi 203 done;; 204 esac 205 as_found=false 206 done 207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 209 CONFIG_SHELL=$SHELL as_have_required=yes 210 fi; } 211 IFS=$as_save_IFS 212 213 214 if test "x$CONFIG_SHELL" != x; then : 215 # We cannot yet assume a decent shell, so we have to provide a 216 # neutralization value for shells without unset; and this also 217 # works around shells that cannot unset nonexistent variables. 218 BASH_ENV=/dev/null 219 ENV=/dev/null 220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 221 export CONFIG_SHELL 222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 223 fi 224 225 if test x$as_have_required = xno; then : 226 $as_echo "$0: This script requires a shell more modern than all" 227 $as_echo "$0: the shells that I found on your system." 228 if test x${ZSH_VERSION+set} = xset ; then 229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 230 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 47 231 else 48 $as_unset $as_var 232 $as_echo "$0: Please tell [email protected] about your system, 233 $0: including any error possibly output before this 234 $0: message. Then install a modern shell, or manually run 235 $0: the script under such a shell if you do have one." 49 236 fi 50 done 51 52 # Required to use basename. 53 if expr a : '\(a\)' >/dev/null 2>&1; then 237 exit 1 238 fi 239 fi 240 fi 241 SHELL=${CONFIG_SHELL-/bin/sh} 242 export SHELL 243 # Unset more variables known to interfere with behavior of common tools. 244 CLICOLOR_FORCE= GREP_OPTIONS= 245 unset CLICOLOR_FORCE GREP_OPTIONS 246 247 ## --------------------- ## 248 ## M4sh Shell Functions. ## 249 ## --------------------- ## 250 # as_fn_unset VAR 251 # --------------- 252 # Portably unset VAR. 253 as_fn_unset () 254 { 255 { eval $1=; unset $1;} 256 } 257 as_unset=as_fn_unset 258 259 # as_fn_set_status STATUS 260 # ----------------------- 261 # Set $? to STATUS, without forking. 262 as_fn_set_status () 263 { 264 return $1 265 } # as_fn_set_status 266 267 # as_fn_exit STATUS 268 # ----------------- 269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 270 as_fn_exit () 271 { 272 set +e 273 as_fn_set_status $1 274 exit $1 275 } # as_fn_exit 276 277 # as_fn_mkdir_p 278 # ------------- 279 # Create "$as_dir" as a directory, including parents if necessary. 280 as_fn_mkdir_p () 281 { 282 283 case $as_dir in #( 284 -*) as_dir=./$as_dir;; 285 esac 286 test -d "$as_dir" || eval $as_mkdir_p || { 287 as_dirs= 288 while :; do 289 case $as_dir in #( 290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 291 *) as_qdir=$as_dir;; 292 esac 293 as_dirs="'$as_qdir' $as_dirs" 294 as_dir=`$as_dirname -- "$as_dir" || 295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 296 X"$as_dir" : 'X\(//\)[^/]' \| \ 297 X"$as_dir" : 'X\(//\)$' \| \ 298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 299 $as_echo X"$as_dir" | 300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 301 s//\1/ 302 q 303 } 304 /^X\(\/\/\)[^/].*/{ 305 s//\1/ 306 q 307 } 308 /^X\(\/\/\)$/{ 309 s//\1/ 310 q 311 } 312 /^X\(\/\).*/{ 313 s//\1/ 314 q 315 } 316 s/.*/./; q'` 317 test -d "$as_dir" && break 318 done 319 test -z "$as_dirs" || eval "mkdir $as_dirs" 320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 321 322 323 } # as_fn_mkdir_p 324 # as_fn_append VAR VALUE 325 # ---------------------- 326 # Append the text in VALUE to the end of the definition contained in VAR. Take 327 # advantage of any shell optimizations that allow amortized linear growth over 328 # repeated appends, instead of the typical quadratic growth present in naive 329 # implementations. 330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 331 eval 'as_fn_append () 332 { 333 eval $1+=\$2 334 }' 335 else 336 as_fn_append () 337 { 338 eval $1=\$$1\$2 339 } 340 fi # as_fn_append 341 342 # as_fn_arith ARG... 343 # ------------------ 344 # Perform arithmetic evaluation on the ARGs, and store the result in the 345 # global $as_val. Take advantage of shells that can avoid forks. The arguments 346 # must be portable across $(()) and expr. 347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 348 eval 'as_fn_arith () 349 { 350 as_val=$(( $* )) 351 }' 352 else 353 as_fn_arith () 354 { 355 as_val=`expr "$@" || test $? -eq 1` 356 } 357 fi # as_fn_arith 358 359 360 # as_fn_error ERROR [LINENO LOG_FD] 361 # --------------------------------- 362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 364 # script with status $?, using 1 if that was 0. 365 as_fn_error () 366 { 367 as_status=$?; test $as_status -eq 0 && as_status=1 368 if test "$3"; then 369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 371 fi 372 $as_echo "$as_me: error: $1" >&2 373 as_fn_exit $as_status 374 } # as_fn_error 375 376 if expr a : '\(a\)' >/dev/null 2>&1 && 377 test "X`expr 00001 : '.*\(...\)'`" = X001; then 54 378 as_expr=expr 55 379 else … … 57 381 fi 58 382 59 if (basename /) >/dev/null 2>&1 && test "X`basename/ 2>&1`" = "X/"; then383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 60 384 as_basename=basename 61 385 else … … 63 387 fi 64 388 65 66 # Name of the executable. 67 as_me=`$as_basename "$0" || 389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 390 as_dirname=dirname 391 else 392 as_dirname=false 393 fi 394 395 as_me=`$as_basename -- "$0" || 68 396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69 397 X"$0" : 'X\(//\)$' \| \ 70 X"$0" : 'X\(/\)$' \| \ 71 . : '\(.\)' 2>/dev/null || 72 echo X/"$0" | 73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 74 /^X\/\(\/\/\)$/{ s//\1/; q; } 75 /^X\/\(\/\).*/{ s//\1/; q; } 76 s/.*/./; q'` 77 78 79 # PATH needs CR, and LINENO needs CR and PATH. 398 X"$0" : 'X\(/\)' \| . 2>/dev/null || 399 $as_echo X/"$0" | 400 sed '/^.*\/\([^/][^/]*\)\/*$/{ 401 s//\1/ 402 q 403 } 404 /^X\/\(\/\/\)$/{ 405 s//\1/ 406 q 407 } 408 /^X\/\(\/\).*/{ 409 s//\1/ 410 q 411 } 412 s/.*/./; q'` 413 80 414 # Avoid depending upon Character Ranges. 81 415 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 85 419 as_cr_alnum=$as_cr_Letters$as_cr_digits 86 420 87 # The user is always right. 88 if test "${PATH_SEPARATOR+set}" != set; then 89 echo "#! /bin/sh" >conf$$.sh 90 echo "exit 0" >>conf$$.sh 91 chmod +x conf$$.sh 92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 93 PATH_SEPARATOR=';' 94 else 95 PATH_SEPARATOR=: 96 fi 97 rm -f conf$$.sh 98 fi 99 100 101 as_lineno_1=$LINENO 102 as_lineno_2=$LINENO 103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 104 test "x$as_lineno_1" != "x$as_lineno_2" && 105 test "x$as_lineno_3" = "x$as_lineno_2" || { 106 # Find who we are. Look in the path if we contain no path at all 107 # relative or not. 108 case $0 in 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111 for as_dir in $PATH 112 do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116 done 117 118 ;; 119 esac 120 # We did not find ourselves, most probably we were run as `sh COMMAND' 121 # in which case we are not to be found in the path. 122 if test "x$as_myself" = x; then 123 as_myself=$0 124 fi 125 if test ! -f "$as_myself"; then 126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 127 { (exit 1); exit 1; }; } 128 fi 129 case $CONFIG_SHELL in 130 '') 131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133 do 134 IFS=$as_save_IFS 135 test -z "$as_dir" && as_dir=. 136 for as_base in sh bash ksh sh5; do 137 case $as_dir in 138 /*) 139 if ("$as_dir/$as_base" -c ' 140 as_lineno_1=$LINENO 141 as_lineno_2=$LINENO 142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 143 test "x$as_lineno_1" != "x$as_lineno_2" && 144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 147 CONFIG_SHELL=$as_dir/$as_base 148 export CONFIG_SHELL 149 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 150 fi;; 151 esac 152 done 153 done 154 ;; 155 esac 156 157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 158 # uniformly replaced by the line number. The first 'sed' inserts a 159 # line-number line before each line; the second 'sed' does the real 160 # work. The second script uses 'N' to pair each line-number line 161 # with the numbered line, and appends trailing '-' during 162 # substitution so that $LINENO is not a special case at line end. 163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 165 sed '=' <$as_myself | 421 422 as_lineno_1=$LINENO as_lineno_1a=$LINENO 423 as_lineno_2=$LINENO as_lineno_2a=$LINENO 424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 427 sed -n ' 428 p 429 /[$]LINENO/= 430 ' <$as_myself | 166 431 sed ' 432 s/[$]LINENO.*/&-/ 433 t lineno 434 b 435 :lineno 167 436 N 168 s,$,-, 169 : loop 170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 437 :loop 438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 171 439 t loop 172 s,-$,, 173 s,^['$as_cr_digits']*\n,, 440 s/-\n.*// 174 441 ' >$as_me.lineno && 175 chmod +x $as_me.lineno || 176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 177 { (exit 1); exit 1; }; } 442 chmod +x "$as_me.lineno" || 443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 178 444 179 445 # Don't try to exec as it changes $[0], causing all sort of problems 180 446 # (the dirname of $[0] is not the place where we might find the 181 # original and so on. Autoconf is especially sensi ble to this).182 . ./$as_me.lineno447 # original and so on. Autoconf is especially sensitive to this). 448 . "./$as_me.lineno" 183 449 # Exit status is that of the last command. 184 450 exit 185 451 } 186 452 187 188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 189 *c*,-n*) ECHO_N= ECHO_C=' 190 ' ECHO_T=' ' ;; 191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 453 ECHO_C= ECHO_N= ECHO_T= 454 case `echo -n x` in #((((( 455 -n*) 456 case `echo 'xy\c'` in 457 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 458 xy) ECHO_C='\c';; 459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 460 ECHO_T=' ';; 461 esac;; 462 *) 463 ECHO_N='-n';; 193 464 esac 194 465 195 if expr a : '\(a\)' >/dev/null 2>&1; then196 as_expr=expr197 else198 as_expr=false199 fi200 201 466 rm -f conf$$ conf$$.exe conf$$.file 202 echo >conf$$.file 203 if ln -s conf$$.file conf$$ 2>/dev/null; then 204 # We could just check for DJGPP; but this test a) works b) is more generic 205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 206 if test -f conf$$.exe; then 207 # Don't use ln at all; we don't have any links 467 if test -d conf$$.dir; then 468 rm -f conf$$.dir/conf$$.file 469 else 470 rm -f conf$$.dir 471 mkdir conf$$.dir 2>/dev/null 472 fi 473 if (echo >conf$$.file) 2>/dev/null; then 474 if ln -s conf$$.file conf$$ 2>/dev/null; then 475 as_ln_s='ln -s' 476 # ... but there are two gotchas: 477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 479 # In both cases, we have to default to `cp -p'. 480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 481 as_ln_s='cp -p' 482 elif ln conf$$.file conf$$ 2>/dev/null; then 483 as_ln_s=ln 484 else 208 485 as_ln_s='cp -p' 209 else210 as_ln_s='ln -s'211 486 fi 212 elif ln conf$$.file conf$$ 2>/dev/null; then213 as_ln_s=ln214 487 else 215 488 as_ln_s='cp -p' 216 489 fi 217 rm -f conf$$ conf$$.exe conf$$.file 490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 491 rmdir conf$$.dir 2>/dev/null 218 492 219 493 if mkdir -p . 2>/dev/null; then 220 as_mkdir_p= :494 as_mkdir_p='mkdir -p "$as_dir"' 221 495 else 222 496 test -d ./-p && rmdir ./-p … … 224 498 fi 225 499 226 as_executable_p="test -f" 500 if test -x / >/dev/null 2>&1; then 501 as_test_x='test -x' 502 else 503 if ls -dL / >/dev/null 2>&1; then 504 as_ls_L_option=L 505 else 506 as_ls_L_option= 507 fi 508 as_test_x=' 509 eval sh -c '\'' 510 if test -d "$1"; then 511 test -d "$1/."; 512 else 513 case $1 in #( 514 -*)set "./$1";; 515 esac; 516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 517 ???[sx]*):;;*)false;;esac;fi 518 '\'' sh 519 ' 520 fi 521 as_executable_p=$as_test_x 227 522 228 523 # Sed expression to map a string onto a valid CPP name. … … 233 528 234 529 235 # IFS 236 # We need space, tab and new line, in precisely that order. 237 as_nl=' 238 ' 239 IFS=" $as_nl" 240 241 # CDPATH. 242 $as_unset CDPATH 243 530 test -n "$DJDIR" || exec 7<&0 </dev/null 531 exec 6>&1 244 532 245 533 # Name of the host. … … 248 536 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 249 537 250 exec 6>&1251 252 538 # 253 539 # Initializations. 254 540 # 255 541 ac_default_prefix=/usr/local 542 ac_clean_files= 256 543 ac_config_libobj_dir=. 544 LIBOBJS= 257 545 cross_compiling=no 258 546 subdirs= 259 547 MFLAGS= 260 548 MAKEFLAGS= 261 SHELL=${CONFIG_SHELL-/bin/sh}262 263 # Maximum number of lines to put in a shell here document.264 # This variable seems obsolete. It should probably be removed, and265 # only ac_max_sed_lines should be used.266 : ${ac_max_here_lines=38}267 549 268 550 # Identity of this package. … … 272 554 PACKAGE_STRING= 273 555 PACKAGE_BUGREPORT= 556 PACKAGE_URL= 274 557 275 558 ac_unique_file="jni/gdbmjava.c" … … 277 560 ac_includes_default="\ 278 561 #include <stdio.h> 279 #if HAVE_SYS_TYPES_H562 #ifdef HAVE_SYS_TYPES_H 280 563 # include <sys/types.h> 281 564 #endif 282 #if HAVE_SYS_STAT_H565 #ifdef HAVE_SYS_STAT_H 283 566 # include <sys/stat.h> 284 567 #endif 285 #if STDC_HEADERS568 #ifdef STDC_HEADERS 286 569 # include <stdlib.h> 287 570 # include <stddef.h> 288 571 #else 289 # if HAVE_STDLIB_H572 # ifdef HAVE_STDLIB_H 290 573 # include <stdlib.h> 291 574 # endif 292 575 #endif 293 #if HAVE_STRING_H294 # if ! STDC_HEADERS &&HAVE_MEMORY_H576 #ifdef HAVE_STRING_H 577 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 295 578 # include <memory.h> 296 579 # endif 297 580 # include <string.h> 298 581 #endif 299 #if HAVE_STRINGS_H582 #ifdef HAVE_STRINGS_H 300 583 # include <strings.h> 301 584 #endif 302 #if HAVE_INTTYPES_H585 #ifdef HAVE_INTTYPES_H 303 586 # include <inttypes.h> 304 #else305 # if HAVE_STDINT_H306 # include <stdint.h>307 # endif308 587 #endif 309 #if HAVE_UNISTD_H 588 #ifdef HAVE_STDINT_H 589 # include <stdint.h> 590 #endif 591 #ifdef HAVE_UNISTD_H 310 592 # include <unistd.h> 311 593 #endif" 312 594 313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S COMPAT32BITFLAGS CPP EGREP JAVA_HOME javagdbm_cv_path_javah javagdbm_cv_path_java GDBM_LIBPATH GDBM_INCLUDE PKG JNIINC JNISUFFIX JNIFLAGS LIBOBJS LTLIBOBJS' 595 ac_subst_vars='LTLIBOBJS 596 LIBOBJS 597 JNIFLAGS 598 JNISUFFIX 599 JNIINC 600 PKG 601 GDBM_INCLUDE 602 GDBM_LIBPATH 603 javagdbm_cv_path_java 604 javagdbm_cv_path_javah 605 JAVA_HOME 606 EGREP 607 GREP 608 CPP 609 LN_S 610 INSTALL_DATA 611 INSTALL_SCRIPT 612 INSTALL_PROGRAM 613 OBJEXT 614 EXEEXT 615 ac_ct_CC 616 CPPFLAGS 617 LDFLAGS 618 CFLAGS 619 CC 620 target_os 621 target_vendor 622 target_cpu 623 target 624 host_os 625 host_vendor 626 host_cpu 627 host 628 build_os 629 build_vendor 630 build_cpu 631 build 632 target_alias 633 host_alias 634 build_alias 635 LIBS 636 ECHO_T 637 ECHO_N 638 ECHO_C 639 DEFS 640 mandir 641 localedir 642 libdir 643 psdir 644 pdfdir 645 dvidir 646 htmldir 647 infodir 648 docdir 649 oldincludedir 650 includedir 651 localstatedir 652 sharedstatedir 653 sysconfdir 654 datadir 655 datarootdir 656 libexecdir 657 sbindir 658 bindir 659 program_transform_name 660 prefix 661 exec_prefix 662 PACKAGE_URL 663 PACKAGE_BUGREPORT 664 PACKAGE_STRING 665 PACKAGE_VERSION 666 PACKAGE_TARNAME 667 PACKAGE_NAME 668 PATH_SEPARATOR 669 SHELL' 314 670 ac_subst_files='' 671 ac_user_opts=' 672 enable_option_checking 673 with_gdbm 674 ' 675 ac_precious_vars='build_alias 676 host_alias 677 target_alias 678 CC 679 CFLAGS 680 LDFLAGS 681 LIBS 682 CPPFLAGS 683 CPP' 684 315 685 316 686 # Initialize some variables set by options. 317 687 ac_init_help= 318 688 ac_init_version=false 689 ac_unrecognized_opts= 690 ac_unrecognized_sep= 319 691 # The variables have the same names as the options, with 320 692 # dashes changed to underlines. … … 339 711 # by default will actually change. 340 712 # Use braces instead of parens because sh, perl, etc. also accept them. 713 # (The list follows the same order as the GNU Coding Standards.) 341 714 bindir='${exec_prefix}/bin' 342 715 sbindir='${exec_prefix}/sbin' 343 716 libexecdir='${exec_prefix}/libexec' 344 datadir='${prefix}/share' 717 datarootdir='${prefix}/share' 718 datadir='${datarootdir}' 345 719 sysconfdir='${prefix}/etc' 346 720 sharedstatedir='${prefix}/com' 347 721 localstatedir='${prefix}/var' 348 libdir='${exec_prefix}/lib'349 722 includedir='${prefix}/include' 350 723 oldincludedir='/usr/include' 351 infodir='${prefix}/info' 352 mandir='${prefix}/man' 724 docdir='${datarootdir}/doc/${PACKAGE}' 725 infodir='${datarootdir}/info' 726 htmldir='${docdir}' 727 dvidir='${docdir}' 728 pdfdir='${docdir}' 729 psdir='${docdir}' 730 libdir='${exec_prefix}/lib' 731 localedir='${datarootdir}/locale' 732 mandir='${datarootdir}/man' 353 733 354 734 ac_prev= 735 ac_dashdash= 355 736 for ac_option 356 737 do 357 738 # If the previous option needs an argument, assign it. 358 739 if test -n "$ac_prev"; then 359 eval "$ac_prev=\$ac_option"740 eval $ac_prev=\$ac_option 360 741 ac_prev= 361 742 continue 362 743 fi 363 744 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 745 case $ac_option in 746 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 747 *) ac_optarg=yes ;; 748 esac 365 749 366 750 # Accept the important Cygnus configure options, so we can diagnose typos. 367 751 368 case $ac_option in 752 case $ac_dashdash$ac_option in 753 --) 754 ac_dashdash=yes ;; 369 755 370 756 -bindir | --bindir | --bindi | --bind | --bin | --bi) … … 388 774 cache_file=config.cache ;; 389 775 390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)776 -datadir | --datadir | --datadi | --datad) 391 777 ac_prev=datadir ;; 392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 393 | --da=*) 778 -datadir=* | --datadir=* | --datadi=* | --datad=*) 394 779 datadir=$ac_optarg ;; 395 780 781 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 782 | --dataroo | --dataro | --datar) 783 ac_prev=datarootdir ;; 784 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 785 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 786 datarootdir=$ac_optarg ;; 787 396 788 -disable-* | --disable-*) 397 ac_ feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`789 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 398 790 # Reject names that are not valid shell variable names. 399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 401 { (exit 1); exit 1; }; } 402 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 403 eval "enable_$ac_feature=no" ;; 791 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 792 as_fn_error "invalid feature name: $ac_useropt" 793 ac_useropt_orig=$ac_useropt 794 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 795 case $ac_user_opts in 796 *" 797 "enable_$ac_useropt" 798 "*) ;; 799 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 800 ac_unrecognized_sep=', ';; 801 esac 802 eval enable_$ac_useropt=no ;; 803 804 -docdir | --docdir | --docdi | --doc | --do) 805 ac_prev=docdir ;; 806 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 807 docdir=$ac_optarg ;; 808 809 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 810 ac_prev=dvidir ;; 811 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 812 dvidir=$ac_optarg ;; 404 813 405 814 -enable-* | --enable-*) 406 ac_ feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`815 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 407 816 # Reject names that are not valid shell variable names. 408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 410 { (exit 1); exit 1; }; } 411 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 412 case $ac_option in 413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 414 *) ac_optarg=yes ;; 817 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 818 as_fn_error "invalid feature name: $ac_useropt" 819 ac_useropt_orig=$ac_useropt 820 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 821 case $ac_user_opts in 822 *" 823 "enable_$ac_useropt" 824 "*) ;; 825 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 826 ac_unrecognized_sep=', ';; 415 827 esac 416 eval "enable_$ac_feature='$ac_optarg'";;828 eval enable_$ac_useropt=\$ac_optarg ;; 417 829 418 830 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 441 853 host_alias=$ac_optarg ;; 442 854 855 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 856 ac_prev=htmldir ;; 857 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 858 | --ht=*) 859 htmldir=$ac_optarg ;; 860 443 861 -includedir | --includedir | --includedi | --included | --include \ 444 862 | --includ | --inclu | --incl | --inc) … … 465 883 libexecdir=$ac_optarg ;; 466 884 885 -localedir | --localedir | --localedi | --localed | --locale) 886 ac_prev=localedir ;; 887 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 888 localedir=$ac_optarg ;; 889 467 890 -localstatedir | --localstatedir | --localstatedi | --localstated \ 468 | --localstate | --localstat | --localsta | --localst \ 469 | --locals | --local | --loca | --loc | --lo) 891 | --localstate | --localstat | --localsta | --localst | --locals) 470 892 ac_prev=localstatedir ;; 471 893 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 894 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 474 895 localstatedir=$ac_optarg ;; 475 896 … … 536 957 program_transform_name=$ac_optarg ;; 537 958 959 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 960 ac_prev=pdfdir ;; 961 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 962 pdfdir=$ac_optarg ;; 963 964 -psdir | --psdir | --psdi | --psd | --ps) 965 ac_prev=psdir ;; 966 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 967 psdir=$ac_optarg ;; 968 538 969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 539 970 | -silent | --silent | --silen | --sile | --sil) … … 586 1017 587 1018 -with-* | --with-*) 588 ac_ package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`1019 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 589 1020 # Reject names that are not valid shell variable names. 590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 591 { echo "$as_me: error: invalid package name: $ac_package" >&2 592 { (exit 1); exit 1; }; } 593 ac_package=`echo $ac_package| sed 's/-/_/g'` 594 case $ac_option in 595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 596 *) ac_optarg=yes ;; 1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1022 as_fn_error "invalid package name: $ac_useropt" 1023 ac_useropt_orig=$ac_useropt 1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1025 case $ac_user_opts in 1026 *" 1027 "with_$ac_useropt" 1028 "*) ;; 1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1030 ac_unrecognized_sep=', ';; 597 1031 esac 598 eval "with_$ac_package='$ac_optarg'";;1032 eval with_$ac_useropt=\$ac_optarg ;; 599 1033 600 1034 -without-* | --without-*) 601 ac_ package=`expr "x$ac_option" : 'x-*without-\(.*\)'`1035 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 602 1036 # Reject names that are not valid shell variable names. 603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 604 { echo "$as_me: error: invalid package name: $ac_package" >&2 605 { (exit 1); exit 1; }; } 606 ac_package=`echo $ac_package | sed 's/-/_/g'` 607 eval "with_$ac_package=no" ;; 1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1038 as_fn_error "invalid package name: $ac_useropt" 1039 ac_useropt_orig=$ac_useropt 1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1041 case $ac_user_opts in 1042 *" 1043 "with_$ac_useropt" 1044 "*) ;; 1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1046 ac_unrecognized_sep=', ';; 1047 esac 1048 eval with_$ac_useropt=no ;; 608 1049 609 1050 --x) … … 625 1066 x_libraries=$ac_optarg ;; 626 1067 627 -*) { echo "$as_me: error: unrecognized option: $ac_option 628 Try \`$0 --help' for more information." >&2 629 { (exit 1); exit 1; }; } 1068 -*) as_fn_error "unrecognized option: \`$ac_option' 1069 Try \`$0 --help' for more information." 630 1070 ;; 631 1071 … … 633 1073 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 634 1074 # Reject names that are not valid shell variable names. 635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2637 { (exit 1); exit 1; }; }638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`639 eval "$ac_envvar='$ac_optarg'"1075 case $ac_envvar in #( 1076 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1077 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1078 esac 1079 eval $ac_envvar=\$ac_optarg 640 1080 export $ac_envvar ;; 641 1081 642 1082 *) 643 1083 # FIXME: should be removed in autoconf 3.0. 644 echo "$as_me: WARNING: you should use --build, --host, --target" >&21084 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 645 1085 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 646 echo "$as_me: WARNING: invalid host type: $ac_option" >&21086 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 647 1087 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 648 1088 ;; … … 653 1093 if test -n "$ac_prev"; then 654 1094 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 655 { echo "$as_me: error: missing argument to $ac_option" >&2 656 { (exit 1); exit 1; }; } 657 fi 658 659 # Be sure to have absolute paths. 660 for ac_var in exec_prefix prefix 1095 as_fn_error "missing argument to $ac_option" 1096 fi 1097 1098 if test -n "$ac_unrecognized_opts"; then 1099 case $enable_option_checking in 1100 no) ;; 1101 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1102 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1103 esac 1104 fi 1105 1106 # Check all directory arguments for consistency. 1107 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1108 datadir sysconfdir sharedstatedir localstatedir includedir \ 1109 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1110 libdir localedir mandir 661 1111 do 662 eval ac_val=$`echo $ac_var` 1112 eval ac_val=\$$ac_var 1113 # Remove trailing slashes. 663 1114 case $ac_val in 664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2666 { (exit 1); exit 1; }; };;1115 */ ) 1116 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1117 eval $ac_var=\$ac_val;; 667 1118 esac 668 done 669 670 # Be sure to have absolute paths. 671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 672 localstatedir libdir includedir oldincludedir infodir mandir 673 do 674 eval ac_val=$`echo $ac_var` 1119 # Be sure to have absolute directory names. 675 1120 case $ac_val in 676 [\\/$]* | ?:[\\/]* ) ;; 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 678 { (exit 1); exit 1; }; };; 1121 [\\/$]* | ?:[\\/]* ) continue;; 1122 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 679 1123 esac 1124 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 680 1125 done 681 1126 … … 691 1136 if test "x$build_alias" = x; then 692 1137 cross_compiling=maybe 693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.1138 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 694 1139 If a cross compiler is detected then cross compile mode will be used." >&2 695 1140 elif test "x$build_alias" != "x$host_alias"; then … … 704 1149 705 1150 1151 ac_pwd=`pwd` && test -n "$ac_pwd" && 1152 ac_ls_di=`ls -di .` && 1153 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1154 as_fn_error "working directory cannot be determined" 1155 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1156 as_fn_error "pwd does not report name of working directory" 1157 1158 706 1159 # Find the source files, if location was not specified. 707 1160 if test -z "$srcdir"; then 708 1161 ac_srcdir_defaulted=yes 709 # Try the directory containing this script, then its parent. 710 ac_confdir=`(dirname "$0") 2>/dev/null || 711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712 X"$0" : 'X\(//\)[^/]' \| \ 713 X"$0" : 'X\(//\)$' \| \ 714 X"$0" : 'X\(/\)' \| \ 715 . : '\(.\)' 2>/dev/null || 716 echo X"$0" | 717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 718 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 719 /^X\(\/\/\)$/{ s//\1/; q; } 720 /^X\(\/\).*/{ s//\1/; q; } 721 s/.*/./; q'` 1162 # Try the directory containing this script, then the parent directory. 1163 ac_confdir=`$as_dirname -- "$as_myself" || 1164 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1165 X"$as_myself" : 'X\(//\)[^/]' \| \ 1166 X"$as_myself" : 'X\(//\)$' \| \ 1167 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1168 $as_echo X"$as_myself" | 1169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1170 s//\1/ 1171 q 1172 } 1173 /^X\(\/\/\)[^/].*/{ 1174 s//\1/ 1175 q 1176 } 1177 /^X\(\/\/\)$/{ 1178 s//\1/ 1179 q 1180 } 1181 /^X\(\/\).*/{ 1182 s//\1/ 1183 q 1184 } 1185 s/.*/./; q'` 722 1186 srcdir=$ac_confdir 723 if test ! -r $srcdir/$ac_unique_file; then1187 if test ! -r "$srcdir/$ac_unique_file"; then 724 1188 srcdir=.. 725 1189 fi … … 727 1191 ac_srcdir_defaulted=no 728 1192 fi 729 if test ! -r $srcdir/$ac_unique_file; then 730 if test "$ac_srcdir_defaulted" = yes; then 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 732 { (exit 1); exit 1; }; } 733 else 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 735 { (exit 1); exit 1; }; } 736 fi 737 fi 738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 740 { (exit 1); exit 1; }; } 741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 742 ac_env_build_alias_set=${build_alias+set} 743 ac_env_build_alias_value=$build_alias 744 ac_cv_env_build_alias_set=${build_alias+set} 745 ac_cv_env_build_alias_value=$build_alias 746 ac_env_host_alias_set=${host_alias+set} 747 ac_env_host_alias_value=$host_alias 748 ac_cv_env_host_alias_set=${host_alias+set} 749 ac_cv_env_host_alias_value=$host_alias 750 ac_env_target_alias_set=${target_alias+set} 751 ac_env_target_alias_value=$target_alias 752 ac_cv_env_target_alias_set=${target_alias+set} 753 ac_cv_env_target_alias_value=$target_alias 754 ac_env_CC_set=${CC+set} 755 ac_env_CC_value=$CC 756 ac_cv_env_CC_set=${CC+set} 757 ac_cv_env_CC_value=$CC 758 ac_env_CFLAGS_set=${CFLAGS+set} 759 ac_env_CFLAGS_value=$CFLAGS 760 ac_cv_env_CFLAGS_set=${CFLAGS+set} 761 ac_cv_env_CFLAGS_value=$CFLAGS 762 ac_env_LDFLAGS_set=${LDFLAGS+set} 763 ac_env_LDFLAGS_value=$LDFLAGS 764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 765 ac_cv_env_LDFLAGS_value=$LDFLAGS 766 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 767 ac_env_CPPFLAGS_value=$CPPFLAGS 768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 770 ac_env_CPP_set=${CPP+set} 771 ac_env_CPP_value=$CPP 772 ac_cv_env_CPP_set=${CPP+set} 773 ac_cv_env_CPP_value=$CPP 1193 if test ! -r "$srcdir/$ac_unique_file"; then 1194 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1195 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1196 fi 1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1198 ac_abs_confdir=`( 1199 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1200 pwd)` 1201 # When building in place, set srcdir=. 1202 if test "$ac_abs_confdir" = "$ac_pwd"; then 1203 srcdir=. 1204 fi 1205 # Remove unnecessary trailing slashes from srcdir. 1206 # Double slashes in file names in object file debugging info 1207 # mess up M-x gdb in Emacs. 1208 case $srcdir in 1209 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1210 esac 1211 for ac_var in $ac_precious_vars; do 1212 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1213 eval ac_env_${ac_var}_value=\$${ac_var} 1214 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1215 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1216 done 774 1217 775 1218 # … … 800 1243 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 801 1244 802 _ACEOF803 804 cat <<_ACEOF805 1245 Installation directories: 806 1246 --prefix=PREFIX install architecture-independent files in PREFIX 807 1247 [$ac_default_prefix] 808 1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 809 1249 [PREFIX] 810 1250 811 1251 By default, \`make install' will install all the files in … … 817 1257 818 1258 Fine tuning of the installation directories: 819 --bindir=DIR user executables [EPREFIX/bin] 820 --sbindir=DIR system admin executables [EPREFIX/sbin] 821 --libexecdir=DIR program executables [EPREFIX/libexec] 822 --datadir=DIR read-only architecture-independent data [PREFIX/share] 823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 825 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 826 --libdir=DIR object code libraries [EPREFIX/lib] 827 --includedir=DIR C header files [PREFIX/include] 828 --oldincludedir=DIR C header files for non-gcc [/usr/include] 829 --infodir=DIR info documentation [PREFIX/info] 830 --mandir=DIR man documentation [PREFIX/man] 1259 --bindir=DIR user executables [EPREFIX/bin] 1260 --sbindir=DIR system admin executables [EPREFIX/sbin] 1261 --libexecdir=DIR program executables [EPREFIX/libexec] 1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1265 --libdir=DIR object code libraries [EPREFIX/lib] 1266 --includedir=DIR C header files [PREFIX/include] 1267 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1268 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1269 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1270 --infodir=DIR info documentation [DATAROOTDIR/info] 1271 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1272 --mandir=DIR man documentation [DATAROOTDIR/man] 1273 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1274 --htmldir=DIR html documentation [DOCDIR] 1275 --dvidir=DIR dvi documentation [DOCDIR] 1276 --pdfdir=DIR pdf documentation [DOCDIR] 1277 --psdir=DIR ps documentation [DOCDIR] 831 1278 _ACEOF 832 1279 … … 854 1301 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 855 1302 nonstandard directory <lib dir> 856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 857 headers in a nonstandard directory <include dir> 1303 LIBS libraries to pass to the linker, e.g. -l<library> 1304 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1305 you have headers in a nonstandard directory <include dir> 858 1306 CPP C preprocessor 859 1307 … … 861 1309 it to find libraries and programs with nonstandard names/locations. 862 1310 863 _ACEOF 1311 Report bugs to the package provider. 1312 _ACEOF 1313 ac_status=$? 864 1314 fi 865 1315 866 1316 if test "$ac_init_help" = "recursive"; then 867 1317 # If there are subdirs, report their specific --help. 868 ac_popdir=`pwd`869 1318 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 870 test -d $ac_dir || continue 1319 test -d "$ac_dir" || 1320 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1321 continue 871 1322 ac_builddir=. 872 1323 873 if test "$ac_dir" != .; then 874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 875 # A "../" for each directory in $ac_dir_suffix. 876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 877 else 878 ac_dir_suffix= ac_top_builddir= 879 fi 1324 case "$ac_dir" in 1325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1326 *) 1327 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1328 # A ".." for each directory in $ac_dir_suffix. 1329 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1330 case $ac_top_builddir_sub in 1331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1333 esac ;; 1334 esac 1335 ac_abs_top_builddir=$ac_pwd 1336 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1337 # for backward compatibility: 1338 ac_top_builddir=$ac_top_build_prefix 880 1339 881 1340 case $srcdir in 882 .) # No --srcdir option.We are building in place.1341 .) # We are building in place. 883 1342 ac_srcdir=. 884 if test -z "$ac_top_builddir"; then 885 ac_top_srcdir=. 1343 ac_top_srcdir=$ac_top_builddir_sub 1344 ac_abs_top_srcdir=$ac_pwd ;; 1345 [\\/]* | ?:[\\/]* ) # Absolute name. 1346 ac_srcdir=$srcdir$ac_dir_suffix; 1347 ac_top_srcdir=$srcdir 1348 ac_abs_top_srcdir=$srcdir ;; 1349 *) # Relative name. 1350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1351 ac_top_srcdir=$ac_top_build_prefix$srcdir 1352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1353 esac 1354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1355 1356 cd "$ac_dir" || { ac_status=$?; continue; } 1357 # Check for guested configure. 1358 if test -f "$ac_srcdir/configure.gnu"; then 1359 echo && 1360 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1361 elif test -f "$ac_srcdir/configure"; then 1362 echo && 1363 $SHELL "$ac_srcdir/configure" --help=recursive 886 1364 else 887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 888 fi ;; 889 [\\/]* | ?:[\\/]* ) # Absolute path. 890 ac_srcdir=$srcdir$ac_dir_suffix; 891 ac_top_srcdir=$srcdir ;; 892 *) # Relative path. 893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 894 ac_top_srcdir=$ac_top_builddir$srcdir ;; 895 esac 896 897 # Do not use `cd foo && pwd` to compute absolute paths, because 898 # the directories may not exist. 899 case `pwd` in 900 .) ac_abs_builddir="$ac_dir";; 901 *) 902 case "$ac_dir" in 903 .) ac_abs_builddir=`pwd`;; 904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 905 *) ac_abs_builddir=`pwd`/"$ac_dir";; 906 esac;; 907 esac 908 case $ac_abs_builddir in 909 .) ac_abs_top_builddir=${ac_top_builddir}.;; 910 *) 911 case ${ac_top_builddir}. in 912 .) ac_abs_top_builddir=$ac_abs_builddir;; 913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 915 esac;; 916 esac 917 case $ac_abs_builddir in 918 .) ac_abs_srcdir=$ac_srcdir;; 919 *) 920 case $ac_srcdir in 921 .) ac_abs_srcdir=$ac_abs_builddir;; 922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 924 esac;; 925 esac 926 case $ac_abs_builddir in 927 .) ac_abs_top_srcdir=$ac_top_srcdir;; 928 *) 929 case $ac_top_srcdir in 930 .) ac_abs_top_srcdir=$ac_abs_builddir;; 931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 933 esac;; 934 esac 935 936 cd $ac_dir 937 # Check for guested configure; otherwise get Cygnus style configure. 938 if test -f $ac_srcdir/configure.gnu; then 939 echo 940 $SHELL $ac_srcdir/configure.gnu --help=recursive 941 elif test -f $ac_srcdir/configure; then 942 echo 943 $SHELL $ac_srcdir/configure --help=recursive 944 elif test -f $ac_srcdir/configure.ac || 945 test -f $ac_srcdir/configure.in; then 946 echo 947 $ac_configure --help 948 else 949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 950 fi 951 cd $ac_popdir 1365 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1366 fi || ac_status=$? 1367 cd "$ac_pwd" || { ac_status=$?; break; } 952 1368 done 953 1369 fi 954 1370 955 test -n "$ac_init_help" && exit 01371 test -n "$ac_init_help" && exit $ac_status 956 1372 if $ac_init_version; then 957 1373 cat <<\_ACEOF 958 959 Copyright (C) 2003 Free Software Foundation, Inc. 1374 configure 1375 generated by GNU Autoconf 2.65 1376 1377 Copyright (C) 2009 Free Software Foundation, Inc. 960 1378 This configure script is free software; the Free Software Foundation 961 1379 gives unlimited permission to copy, distribute and modify it. 962 1380 _ACEOF 963 exit 0 964 fi 965 exec 5>config.log 966 cat >&5 <<_ACEOF 1381 exit 1382 fi 1383 1384 ## ------------------------ ## 1385 ## Autoconf initialization. ## 1386 ## ------------------------ ## 1387 1388 # ac_fn_c_try_compile LINENO 1389 # -------------------------- 1390 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1391 ac_fn_c_try_compile () 1392 { 1393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1394 rm -f conftest.$ac_objext 1395 if { { ac_try="$ac_compile" 1396 case "(($ac_try" in 1397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1398 *) ac_try_echo=$ac_try;; 1399 esac 1400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1401 $as_echo "$ac_try_echo"; } >&5 1402 (eval "$ac_compile") 2>conftest.err 1403 ac_status=$? 1404 if test -s conftest.err; then 1405 grep -v '^ *+' conftest.err >conftest.er1 1406 cat conftest.er1 >&5 1407 mv -f conftest.er1 conftest.err 1408 fi 1409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1410 test $ac_status = 0; } && { 1411 test -z "$ac_c_werror_flag" || 1412 test ! -s conftest.err 1413 } && test -s conftest.$ac_objext; then : 1414 ac_retval=0 1415 else 1416 $as_echo "$as_me: failed program was:" >&5 1417 sed 's/^/| /' conftest.$ac_ext >&5 1418 1419 ac_retval=1 1420 fi 1421 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1422 as_fn_set_status $ac_retval 1423 1424 } # ac_fn_c_try_compile 1425 1426 # ac_fn_c_try_run LINENO 1427 # ---------------------- 1428 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1429 # that executables *can* be run. 1430 ac_fn_c_try_run () 1431 { 1432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1433 if { { ac_try="$ac_link" 1434 case "(($ac_try" in 1435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1436 *) ac_try_echo=$ac_try;; 1437 esac 1438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1439 $as_echo "$ac_try_echo"; } >&5 1440 (eval "$ac_link") 2>&5 1441 ac_status=$? 1442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1443 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1444 { { case "(($ac_try" in 1445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1446 *) ac_try_echo=$ac_try;; 1447 esac 1448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1449 $as_echo "$ac_try_echo"; } >&5 1450 (eval "$ac_try") 2>&5 1451 ac_status=$? 1452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1453 test $ac_status = 0; }; }; then : 1454 ac_retval=0 1455 else 1456 $as_echo "$as_me: program exited with status $ac_status" >&5 1457 $as_echo "$as_me: failed program was:" >&5 1458 sed 's/^/| /' conftest.$ac_ext >&5 1459 1460 ac_retval=$ac_status 1461 fi 1462 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1463 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1464 as_fn_set_status $ac_retval 1465 1466 } # ac_fn_c_try_run 1467 1468 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1469 # -------------------------------------------- 1470 # Tries to find the compile-time value of EXPR in a program that includes 1471 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1472 # computed 1473 ac_fn_c_compute_int () 1474 { 1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1476 if test "$cross_compiling" = yes; then 1477 # Depending upon the size, compute the lo and hi bounds. 1478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1479 /* end confdefs.h. */ 1480 $4 1481 int 1482 main () 1483 { 1484 static int test_array [1 - 2 * !(($2) >= 0)]; 1485 test_array [0] = 0 1486 1487 ; 1488 return 0; 1489 } 1490 _ACEOF 1491 if ac_fn_c_try_compile "$LINENO"; then : 1492 ac_lo=0 ac_mid=0 1493 while :; do 1494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1495 /* end confdefs.h. */ 1496 $4 1497 int 1498 main () 1499 { 1500 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1501 test_array [0] = 0 1502 1503 ; 1504 return 0; 1505 } 1506 _ACEOF 1507 if ac_fn_c_try_compile "$LINENO"; then : 1508 ac_hi=$ac_mid; break 1509 else 1510 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1511 if test $ac_lo -le $ac_mid; then 1512 ac_lo= ac_hi= 1513 break 1514 fi 1515 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1516 fi 1517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1518 done 1519 else 1520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1521 /* end confdefs.h. */ 1522 $4 1523 int 1524 main () 1525 { 1526 static int test_array [1 - 2 * !(($2) < 0)]; 1527 test_array [0] = 0 1528 1529 ; 1530 return 0; 1531 } 1532 _ACEOF 1533 if ac_fn_c_try_compile "$LINENO"; then : 1534 ac_hi=-1 ac_mid=-1 1535 while :; do 1536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1537 /* end confdefs.h. */ 1538 $4 1539 int 1540 main () 1541 { 1542 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1543 test_array [0] = 0 1544 1545 ; 1546 return 0; 1547 } 1548 _ACEOF 1549 if ac_fn_c_try_compile "$LINENO"; then : 1550 ac_lo=$ac_mid; break 1551 else 1552 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1553 if test $ac_mid -le $ac_hi; then 1554 ac_lo= ac_hi= 1555 break 1556 fi 1557 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1558 fi 1559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1560 done 1561 else 1562 ac_lo= ac_hi= 1563 fi 1564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1565 fi 1566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1567 # Binary search between lo and hi bounds. 1568 while test "x$ac_lo" != "x$ac_hi"; do 1569 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1571 /* end confdefs.h. */ 1572 $4 1573 int 1574 main () 1575 { 1576 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1577 test_array [0] = 0 1578 1579 ; 1580 return 0; 1581 } 1582 _ACEOF 1583 if ac_fn_c_try_compile "$LINENO"; then : 1584 ac_hi=$ac_mid 1585 else 1586 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1587 fi 1588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1589 done 1590 case $ac_lo in #(( 1591 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1592 '') ac_retval=1 ;; 1593 esac 1594 else 1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1596 /* end confdefs.h. */ 1597 $4 1598 static long int longval () { return $2; } 1599 static unsigned long int ulongval () { return $2; } 1600 #include <stdio.h> 1601 #include <stdlib.h> 1602 int 1603 main () 1604 { 1605 1606 FILE *f = fopen ("conftest.val", "w"); 1607 if (! f) 1608 return 1; 1609 if (($2) < 0) 1610 { 1611 long int i = longval (); 1612 if (i != ($2)) 1613 return 1; 1614 fprintf (f, "%ld", i); 1615 } 1616 else 1617 { 1618 unsigned long int i = ulongval (); 1619 if (i != ($2)) 1620 return 1; 1621 fprintf (f, "%lu", i); 1622 } 1623 /* Do not output a trailing newline, as this causes \r\n confusion 1624 on some platforms. */ 1625 return ferror (f) || fclose (f) != 0; 1626 1627 ; 1628 return 0; 1629 } 1630 _ACEOF 1631 if ac_fn_c_try_run "$LINENO"; then : 1632 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1633 else 1634 ac_retval=1 1635 fi 1636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1637 conftest.$ac_objext conftest.beam conftest.$ac_ext 1638 rm -f conftest.val 1639 1640 fi 1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1642 as_fn_set_status $ac_retval 1643 1644 } # ac_fn_c_compute_int 1645 1646 # ac_fn_c_try_cpp LINENO 1647 # ---------------------- 1648 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1649 ac_fn_c_try_cpp () 1650 { 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 if { { ac_try="$ac_cpp conftest.$ac_ext" 1653 case "(($ac_try" in 1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *) ac_try_echo=$ac_try;; 1656 esac 1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658 $as_echo "$ac_try_echo"; } >&5 1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1660 ac_status=$? 1661 if test -s conftest.err; then 1662 grep -v '^ *+' conftest.err >conftest.er1 1663 cat conftest.er1 >&5 1664 mv -f conftest.er1 conftest.err 1665 fi 1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 test $ac_status = 0; } >/dev/null && { 1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1669 test ! -s conftest.err 1670 }; then : 1671 ac_retval=0 1672 else 1673 $as_echo "$as_me: failed program was:" >&5 1674 sed 's/^/| /' conftest.$ac_ext >&5 1675 1676 ac_retval=1 1677 fi 1678 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1679 as_fn_set_status $ac_retval 1680 1681 } # ac_fn_c_try_cpp 1682 1683 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1684 # ------------------------------------------------------- 1685 # Tests whether HEADER exists and can be compiled using the include files in 1686 # INCLUDES, setting the cache variable VAR accordingly. 1687 ac_fn_c_check_header_compile () 1688 { 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1691 $as_echo_n "checking for $2... " >&6; } 1692 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1693 $as_echo_n "(cached) " >&6 1694 else 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1696 /* end confdefs.h. */ 1697 $4 1698 #include <$2> 1699 _ACEOF 1700 if ac_fn_c_try_compile "$LINENO"; then : 1701 eval "$3=yes" 1702 else 1703 eval "$3=no" 1704 fi 1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1706 fi 1707 eval ac_res=\$$3 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1709 $as_echo "$ac_res" >&6; } 1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1711 1712 } # ac_fn_c_check_header_compile 1713 1714 # ac_fn_c_try_link LINENO 1715 # ----------------------- 1716 # Try to link conftest.$ac_ext, and return whether this succeeded. 1717 ac_fn_c_try_link () 1718 { 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 rm -f conftest.$ac_objext conftest$ac_exeext 1721 if { { ac_try="$ac_link" 1722 case "(($ac_try" in 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1724 *) ac_try_echo=$ac_try;; 1725 esac 1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1727 $as_echo "$ac_try_echo"; } >&5 1728 (eval "$ac_link") 2>conftest.err 1729 ac_status=$? 1730 if test -s conftest.err; then 1731 grep -v '^ *+' conftest.err >conftest.er1 1732 cat conftest.er1 >&5 1733 mv -f conftest.er1 conftest.err 1734 fi 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; } && { 1737 test -z "$ac_c_werror_flag" || 1738 test ! -s conftest.err 1739 } && test -s conftest$ac_exeext && { 1740 test "$cross_compiling" = yes || 1741 $as_test_x conftest$ac_exeext 1742 }; then : 1743 ac_retval=0 1744 else 1745 $as_echo "$as_me: failed program was:" >&5 1746 sed 's/^/| /' conftest.$ac_ext >&5 1747 1748 ac_retval=1 1749 fi 1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1752 # interfere with the next link command; also delete a directory that is 1753 # left behind by Apple's compiler. We do this before executing the actions. 1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1756 as_fn_set_status $ac_retval 1757 1758 } # ac_fn_c_try_link 1759 cat >config.log <<_ACEOF 967 1760 This file contains any messages produced by compilers while 968 1761 running configure, to aid debugging if configure makes a mistake. 969 1762 970 1763 It was created by $as_me, which was 971 generated by GNU Autoconf 2. 59. Invocation command line was1764 generated by GNU Autoconf 2.65. Invocation command line was 972 1765 973 1766 $ $0 $@ 974 1767 975 1768 _ACEOF 1769 exec 5>>config.log 976 1770 { 977 1771 cat <<_ASUNAME … … 992 1786 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 993 1787 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 994 hostinfo = `(hostinfo) 2>/dev/null|| echo unknown`1788 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 995 1789 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 996 1790 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` … … 1004 1798 IFS=$as_save_IFS 1005 1799 test -z "$as_dir" && as_dir=. 1006 echo "PATH: $as_dir" 1007 done 1800 $as_echo "PATH: $as_dir" 1801 done 1802 IFS=$as_save_IFS 1008 1803 1009 1804 } >&5 … … 1027 1822 ac_configure_args0= 1028 1823 ac_configure_args1= 1029 ac_sep=1030 1824 ac_must_keep_next=false 1031 1825 for ac_pass in 1 2 … … 1038 1832 | -silent | --silent | --silen | --sile | --sil) 1039 1833 continue ;; 1040 * " "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)1041 ac_arg=` echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;1834 *\'*) 1835 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1042 1836 esac 1043 1837 case $ac_pass in 1044 1) a c_configure_args0="$ac_configure_args0'$ac_arg'" ;;1838 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1045 1839 2) 1046 a c_configure_args1="$ac_configure_args1'$ac_arg'"1840 as_fn_append ac_configure_args1 " '$ac_arg'" 1047 1841 if test $ac_must_keep_next = true; then 1048 1842 ac_must_keep_next=false # Got value, back to normal. … … 1060 1854 esac 1061 1855 fi 1062 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1063 # Get rid of the leading space. 1064 ac_sep=" " 1856 as_fn_append ac_configure_args " '$ac_arg'" 1065 1857 ;; 1066 1858 esac 1067 1859 done 1068 1860 done 1069 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0;}1070 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1;}1861 { ac_configure_args0=; unset ac_configure_args0;} 1862 { ac_configure_args1=; unset ac_configure_args1;} 1071 1863 1072 1864 # When interrupted or exit'd, cleanup temporary files, and complete 1073 1865 # config.log. We remove comments because anyway the quotes in there 1074 1866 # would cause problems or look ugly. 1075 # WARNING: Be sure not to use single quotes in there, as some shells,1076 # such as our DU 5.0 friend, will then `close' the trap.1867 # WARNING: Use '\'' to represent an apostrophe within the trap. 1868 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1077 1869 trap 'exit_status=$? 1078 1870 # Save into config.log some information that might help in debugging. … … 1087 1879 echo 1088 1880 # The following way of writing the cache mishandles newlines in values, 1089 { 1881 ( 1882 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1883 eval ac_val=\$$ac_var 1884 case $ac_val in #( 1885 *${as_nl}*) 1886 case $ac_var in #( 1887 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1888 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1889 esac 1890 case $ac_var in #( 1891 _ | IFS | as_nl) ;; #( 1892 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1893 *) { eval $ac_var=; unset $ac_var;} ;; 1894 esac ;; 1895 esac 1896 done 1090 1897 (set) 2>&1 | 1091 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in1092 * ac_space=\ *)1898 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1899 *${as_nl}ac_space=\ *) 1093 1900 sed -n \ 1094 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1901 "s/'\''/'\''\\\\'\'''\''/g; 1902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1903 ;; #( 1904 *) 1905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1096 1906 ;; 1097 *) 1098 sed -n \ 1099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1100 ;; 1101 esac; 1102 } 1907 esac | 1908 sort 1909 ) 1103 1910 echo 1104 1911 … … 1111 1918 for ac_var in $ac_subst_vars 1112 1919 do 1113 eval ac_val=$`echo $ac_var` 1114 echo "$ac_var='"'"'$ac_val'"'"'" 1920 eval ac_val=\$$ac_var 1921 case $ac_val in 1922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1923 esac 1924 $as_echo "$ac_var='\''$ac_val'\''" 1115 1925 done | sort 1116 1926 echo … … 1118 1928 if test -n "$ac_subst_files"; then 1119 1929 cat <<\_ASBOX 1120 ## ------------- ##1121 ## Output files. ##1122 ## ------------- ##1930 ## ------------------- ## 1931 ## File substitutions. ## 1932 ## ------------------- ## 1123 1933 _ASBOX 1124 1934 echo 1125 1935 for ac_var in $ac_subst_files 1126 1936 do 1127 eval ac_val=$`echo $ac_var` 1128 echo "$ac_var='"'"'$ac_val'"'"'" 1937 eval ac_val=\$$ac_var 1938 case $ac_val in 1939 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1940 esac 1941 $as_echo "$ac_var='\''$ac_val'\''" 1129 1942 done | sort 1130 1943 echo … … 1138 1951 _ASBOX 1139 1952 echo 1140 sed "/^$/d" confdefs.h | sort1953 cat confdefs.h 1141 1954 echo 1142 1955 fi 1143 1956 test "$ac_signal" != 0 && 1144 echo "$as_me: caught signal $ac_signal"1145 echo "$as_me: exit $exit_status"1957 $as_echo "$as_me: caught signal $ac_signal" 1958 $as_echo "$as_me: exit $exit_status" 1146 1959 } >&5 1147 rm -f core *.core &&1148 rm -rfconftest* confdefs* conf$$* $ac_clean_files &&1960 rm -f core *.core core.conftest.* && 1961 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1149 1962 exit $exit_status 1150 1963 ' 0 1151 1964 for ac_signal in 1 2 13 15; do 1152 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal1965 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1153 1966 done 1154 1967 ac_signal=0 1155 1968 1156 1969 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1157 rm - rfconftest* confdefs.h1158 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1159 echo >confdefs.h1970 rm -f -r conftest* confdefs.h 1971 1972 $as_echo "/* confdefs.h */" > confdefs.h 1160 1973 1161 1974 # Predefined preprocessor variables. … … 1165 1978 _ACEOF 1166 1979 1167 1168 1980 cat >>confdefs.h <<_ACEOF 1169 1981 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1170 1982 _ACEOF 1171 1983 1172 1173 1984 cat >>confdefs.h <<_ACEOF 1174 1985 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1175 1986 _ACEOF 1176 1987 1177 1178 1988 cat >>confdefs.h <<_ACEOF 1179 1989 #define PACKAGE_STRING "$PACKAGE_STRING" 1180 1990 _ACEOF 1181 1991 1182 1183 1992 cat >>confdefs.h <<_ACEOF 1184 1993 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1185 1994 _ACEOF 1186 1995 1996 cat >>confdefs.h <<_ACEOF 1997 #define PACKAGE_URL "$PACKAGE_URL" 1998 _ACEOF 1999 1187 2000 1188 2001 # Let the site file select an alternate cache file if it wants to. 1189 # Prefer explicitly selected file to automatically selected ones. 1190 if test -z "$CONFIG_SITE"; then 1191 if test "x$prefix" != xNONE; then 1192 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1193 else 1194 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1195 fi 1196 fi 1197 for ac_site_file in $CONFIG_SITE; do 1198 if test -r "$ac_site_file"; then 1199 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1200 echo "$as_me: loading site script $ac_site_file" >&6;} 2002 # Prefer an explicitly selected file to automatically selected ones. 2003 ac_site_file1=NONE 2004 ac_site_file2=NONE 2005 if test -n "$CONFIG_SITE"; then 2006 ac_site_file1=$CONFIG_SITE 2007 elif test "x$prefix" != xNONE; then 2008 ac_site_file1=$prefix/share/config.site 2009 ac_site_file2=$prefix/etc/config.site 2010 else 2011 ac_site_file1=$ac_default_prefix/share/config.site 2012 ac_site_file2=$ac_default_prefix/etc/config.site 2013 fi 2014 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2015 do 2016 test "x$ac_site_file" = xNONE && continue 2017 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2019 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1201 2020 sed 's/^/| /' "$ac_site_file" >&5 1202 2021 . "$ac_site_file" … … 1205 2024 1206 2025 if test -r "$cache_file"; then 1207 # Some versions of bash will fail to source /dev/null (special 1208 # files actually), so we avoid doing that.1209 if test -f "$cache_file"; then1210 { echo "$as_me:$LINENO: loading cache $cache_file" >&51211 echo "$as_me: loading cache $cache_file" >&6;}2026 # Some versions of bash will fail to source /dev/null (special files 2027 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2028 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2030 $as_echo "$as_me: loading cache $cache_file" >&6;} 1212 2031 case $cache_file in 1213 [\\/]* | ?:[\\/]* ) . $cache_file;;1214 *) . ./$cache_file;;2032 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2033 *) . "./$cache_file";; 1215 2034 esac 1216 2035 fi 1217 2036 else 1218 { echo "$as_me:$LINENO: creating cache $cache_file" >&51219 echo "$as_me: creating cache $cache_file" >&6;}2037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2038 $as_echo "$as_me: creating cache $cache_file" >&6;} 1220 2039 >$cache_file 1221 2040 fi … … 1224 2043 # value. 1225 2044 ac_cache_corrupted=false 1226 for ac_var in `(set) 2>&1 | 1227 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 2045 for ac_var in $ac_precious_vars; do 1228 2046 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1229 2047 eval ac_new_set=\$ac_env_${ac_var}_set 1230 eval ac_old_val= "\$ac_cv_env_${ac_var}_value"1231 eval ac_new_val= "\$ac_env_${ac_var}_value"2048 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2049 eval ac_new_val=\$ac_env_${ac_var}_value 1232 2050 case $ac_old_set,$ac_new_set in 1233 2051 set,) 1234 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&51235 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}2052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2053 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1236 2054 ac_cache_corrupted=: ;; 1237 2055 ,set) 1238 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&51239 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2057 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1240 2058 ac_cache_corrupted=: ;; 1241 2059 ,);; 1242 2060 *) 1243 2061 if test "x$ac_old_val" != "x$ac_new_val"; then 1244 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1245 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1246 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1247 echo "$as_me: former value: $ac_old_val" >&2;} 1248 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1249 echo "$as_me: current value: $ac_new_val" >&2;} 1250 ac_cache_corrupted=: 2062 # differences in whitespace do not lead to failure. 2063 ac_old_val_w=`echo x $ac_old_val` 2064 ac_new_val_w=`echo x $ac_new_val` 2065 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2067 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2068 ac_cache_corrupted=: 2069 else 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2071 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2072 eval $ac_var=\$ac_old_val 2073 fi 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2075 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2077 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1251 2078 fi;; 1252 2079 esac … … 1254 2081 if test "$ac_new_set" = set; then 1255 2082 case $ac_new_val in 1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1257 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2083 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1258 2084 *) ac_arg=$ac_var=$ac_new_val ;; 1259 2085 esac 1260 2086 case " $ac_configure_args " in 1261 2087 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1262 *) a c_configure_args="$ac_configure_args'$ac_arg'" ;;2088 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1263 2089 esac 1264 2090 fi 1265 2091 done 1266 2092 if $ac_cache_corrupted; then 1267 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1268 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1269 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1270 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1271 { (exit 1); exit 1; }; } 1272 fi 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2096 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2097 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2098 fi 2099 ## -------------------- ## 2100 ## Main body of script. ## 2101 ## -------------------- ## 1273 2102 1274 2103 ac_ext=c … … 1281 2110 1282 2111 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 # Check whether --with-gdbm or --without-gdbm was given. 1301 if test "${with_gdbm+set}" = set; then 1302 withval="$with_gdbm" 1303 gdbmdir=$withval 1304 fi; 2112 # Check whether --with-gdbm was given. 2113 if test "${with_gdbm+set}" = set; then : 2114 withval=$with_gdbm; gdbmdir=$withval 2115 fi 2116 1305 2117 1306 2118 ac_aux_dir= 1307 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1308 if test -f $ac_dir/install-sh; then 1309 ac_aux_dir=$ac_dir 1310 ac_install_sh="$ac_aux_dir/install-sh -c" 1311 break 1312 elif test -f $ac_dir/install.sh; then 1313 ac_aux_dir=$ac_dir 1314 ac_install_sh="$ac_aux_dir/install.sh -c" 1315 break 1316 elif test -f $ac_dir/shtool; then 1317 ac_aux_dir=$ac_dir 1318 ac_install_sh="$ac_aux_dir/shtool install -c" 1319 break 1320 fi 2119 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2120 for ac_t in install-sh install.sh shtool; do 2121 if test -f "$ac_dir/$ac_t"; then 2122 ac_aux_dir=$ac_dir 2123 ac_install_sh="$ac_aux_dir/$ac_t -c" 2124 break 2 2125 fi 2126 done 1321 2127 done 1322 2128 if test -z "$ac_aux_dir"; then 1323 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1324 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1325 { (exit 1); exit 1; }; } 1326 fi 1327 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1328 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1329 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2129 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2130 fi 2131 2132 # These three variables are undocumented and unsupported, 2133 # and are intended to be withdrawn in a future Autoconf release. 2134 # They can cause serious problems if a builder's source tree is in a directory 2135 # whose full name contains unusual characters. 2136 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2137 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2138 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2139 1330 2140 1331 2141 # Make sure we can run config.sub. 1332 $ac_config_sub sun4 >/dev/null 2>&1 || 1333 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1334 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1335 { (exit 1); exit 1; }; } 1336 1337 echo "$as_me:$LINENO: checking build system type" >&5 1338 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1339 if test "${ac_cv_build+set}" = set; then 1340 echo $ECHO_N "(cached) $ECHO_C" >&6 1341 else 1342 ac_cv_build_alias=$build_alias 1343 test -z "$ac_cv_build_alias" && 1344 ac_cv_build_alias=`$ac_config_guess` 1345 test -z "$ac_cv_build_alias" && 1346 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1347 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1348 { (exit 1); exit 1; }; } 1349 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1351 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1352 { (exit 1); exit 1; }; } 1353 1354 fi 1355 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1356 echo "${ECHO_T}$ac_cv_build" >&6 2142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2143 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2144 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2146 $as_echo_n "checking build system type... " >&6; } 2147 if test "${ac_cv_build+set}" = set; then : 2148 $as_echo_n "(cached) " >&6 2149 else 2150 ac_build_alias=$build_alias 2151 test "x$ac_build_alias" = x && 2152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2153 test "x$ac_build_alias" = x && 2154 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2155 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2156 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2157 2158 fi 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2160 $as_echo "$ac_cv_build" >&6; } 2161 case $ac_cv_build in 2162 *-*-*) ;; 2163 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2164 esac 1357 2165 build=$ac_cv_build 1358 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1359 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1360 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1361 1362 1363 echo "$as_me:$LINENO: checking host system type" >&5 1364 echo $ECHO_N "checking host system type... $ECHO_C" >&6 1365 if test "${ac_cv_host+set}" = set; then 1366 echo $ECHO_N "(cached) $ECHO_C" >&6 1367 else 1368 ac_cv_host_alias=$host_alias 1369 test -z "$ac_cv_host_alias" && 1370 ac_cv_host_alias=$ac_cv_build_alias 1371 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1373 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1374 { (exit 1); exit 1; }; } 1375 1376 fi 1377 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1378 echo "${ECHO_T}$ac_cv_host" >&6 2166 ac_save_IFS=$IFS; IFS='-' 2167 set x $ac_cv_build 2168 shift 2169 build_cpu=$1 2170 build_vendor=$2 2171 shift; shift 2172 # Remember, the first character of IFS is used to create $*, 2173 # except with old shells: 2174 build_os=$* 2175 IFS=$ac_save_IFS 2176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2177 2178 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2180 $as_echo_n "checking host system type... " >&6; } 2181 if test "${ac_cv_host+set}" = set; then : 2182 $as_echo_n "(cached) " >&6 2183 else 2184 if test "x$host_alias" = x; then 2185 ac_cv_host=$ac_cv_build 2186 else 2187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2188 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2189 fi 2190 2191 fi 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2193 $as_echo "$ac_cv_host" >&6; } 2194 case $ac_cv_host in 2195 *-*-*) ;; 2196 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2197 esac 1379 2198 host=$ac_cv_host 1380 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1381 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1382 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1383 1384 1385 echo "$as_me:$LINENO: checking target system type" >&5 1386 echo $ECHO_N "checking target system type... $ECHO_C" >&6 1387 if test "${ac_cv_target+set}" = set; then 1388 echo $ECHO_N "(cached) $ECHO_C" >&6 1389 else 1390 ac_cv_target_alias=$target_alias 1391 test "x$ac_cv_target_alias" = "x" && 1392 ac_cv_target_alias=$ac_cv_host_alias 1393 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1395 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1396 { (exit 1); exit 1; }; } 1397 1398 fi 1399 echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1400 echo "${ECHO_T}$ac_cv_target" >&6 2199 ac_save_IFS=$IFS; IFS='-' 2200 set x $ac_cv_host 2201 shift 2202 host_cpu=$1 2203 host_vendor=$2 2204 shift; shift 2205 # Remember, the first character of IFS is used to create $*, 2206 # except with old shells: 2207 host_os=$* 2208 IFS=$ac_save_IFS 2209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2210 2211 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2213 $as_echo_n "checking target system type... " >&6; } 2214 if test "${ac_cv_target+set}" = set; then : 2215 $as_echo_n "(cached) " >&6 2216 else 2217 if test "x$target_alias" = x; then 2218 ac_cv_target=$ac_cv_host 2219 else 2220 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2221 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2222 fi 2223 2224 fi 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2226 $as_echo "$ac_cv_target" >&6; } 2227 case $ac_cv_target in 2228 *-*-*) ;; 2229 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2230 esac 1401 2231 target=$ac_cv_target 1402 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1403 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1404 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2232 ac_save_IFS=$IFS; IFS='-' 2233 set x $ac_cv_target 2234 shift 2235 target_cpu=$1 2236 target_vendor=$2 2237 shift; shift 2238 # Remember, the first character of IFS is used to create $*, 2239 # except with old shells: 2240 target_os=$* 2241 IFS=$ac_save_IFS 2242 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 1405 2243 1406 2244 … … 1411 2249 NONENONEs,x,x, && 1412 2250 program_prefix=${target_alias}- 2251 1413 2252 1414 2253 # TODO: allow the user to specify whether they want a debugging … … 1424 2263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1425 2264 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1426 echo "$as_me:$LINENO: checking for $ac_word" >&51427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1428 if test "${ac_cv_prog_CC+set}" = set; then 1429 echo $ECHO_N "(cached) $ECHO_C" >&62265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2266 $as_echo_n "checking for $ac_word... " >&6; } 2267 if test "${ac_cv_prog_CC+set}" = set; then : 2268 $as_echo_n "(cached) " >&6 1430 2269 else 1431 2270 if test -n "$CC"; then … … 1437 2276 IFS=$as_save_IFS 1438 2277 test -z "$as_dir" && as_dir=. 1439 for ac_exec_ext in '' $ac_executable_extensions; do1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2278 for ac_exec_ext in '' $ac_executable_extensions; do 2279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1441 2280 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1443 2282 break 2 1444 2283 fi 1445 2284 done 1446 done 2285 done 2286 IFS=$as_save_IFS 1447 2287 1448 2288 fi … … 1450 2290 CC=$ac_cv_prog_CC 1451 2291 if test -n "$CC"; then 1452 echo "$as_me:$LINENO: result: $CC" >&5 1453 echo "${ECHO_T}$CC" >&6 1454 else 1455 echo "$as_me:$LINENO: result: no" >&5 1456 echo "${ECHO_T}no" >&6 1457 fi 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2293 $as_echo "$CC" >&6; } 2294 else 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2296 $as_echo "no" >&6; } 2297 fi 2298 1458 2299 1459 2300 fi … … 1462 2303 # Extract the first word of "gcc", so it can be a program name with args. 1463 2304 set dummy gcc; ac_word=$2 1464 echo "$as_me:$LINENO: checking for $ac_word" >&51465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1467 echo $ECHO_N "(cached) $ECHO_C" >&62305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2306 $as_echo_n "checking for $ac_word... " >&6; } 2307 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2308 $as_echo_n "(cached) " >&6 1468 2309 else 1469 2310 if test -n "$ac_ct_CC"; then … … 1475 2316 IFS=$as_save_IFS 1476 2317 test -z "$as_dir" && as_dir=. 1477 for ac_exec_ext in '' $ac_executable_extensions; do1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2318 for ac_exec_ext in '' $ac_executable_extensions; do 2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1479 2320 ac_cv_prog_ac_ct_CC="gcc" 1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1481 2322 break 2 1482 2323 fi 1483 2324 done 1484 done 2325 done 2326 IFS=$as_save_IFS 1485 2327 1486 2328 fi … … 1488 2330 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1489 2331 if test -n "$ac_ct_CC"; then 1490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1491 echo "${ECHO_T}$ac_ct_CC" >&6 1492 else 1493 echo "$as_me:$LINENO: result: no" >&5 1494 echo "${ECHO_T}no" >&6 1495 fi 1496 1497 CC=$ac_ct_CC 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2333 $as_echo "$ac_ct_CC" >&6; } 2334 else 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2336 $as_echo "no" >&6; } 2337 fi 2338 2339 if test "x$ac_ct_CC" = x; then 2340 CC="" 2341 else 2342 case $cross_compiling:$ac_tool_warned in 2343 yes:) 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2346 ac_tool_warned=yes ;; 2347 esac 2348 CC=$ac_ct_CC 2349 fi 1498 2350 else 1499 2351 CC="$ac_cv_prog_CC" … … 1501 2353 1502 2354 if test -z "$CC"; then 1503 if test -n "$ac_tool_prefix"; then1504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.2355 if test -n "$ac_tool_prefix"; then 2356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1505 2357 set dummy ${ac_tool_prefix}cc; ac_word=$2 1506 echo "$as_me:$LINENO: checking for $ac_word" >&51507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1508 if test "${ac_cv_prog_CC+set}" = set; then 1509 echo $ECHO_N "(cached) $ECHO_C" >&62358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2359 $as_echo_n "checking for $ac_word... " >&6; } 2360 if test "${ac_cv_prog_CC+set}" = set; then : 2361 $as_echo_n "(cached) " >&6 1510 2362 else 1511 2363 if test -n "$CC"; then … … 1517 2369 IFS=$as_save_IFS 1518 2370 test -z "$as_dir" && as_dir=. 1519 for ac_exec_ext in '' $ac_executable_extensions; do1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2371 for ac_exec_ext in '' $ac_executable_extensions; do 2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1521 2373 ac_cv_prog_CC="${ac_tool_prefix}cc" 1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1523 2375 break 2 1524 2376 fi 1525 2377 done 1526 done 2378 done 2379 IFS=$as_save_IFS 1527 2380 1528 2381 fi … … 1530 2383 CC=$ac_cv_prog_CC 1531 2384 if test -n "$CC"; then 1532 echo "$as_me:$LINENO: result: $CC" >&5 1533 echo "${ECHO_T}$CC" >&6 1534 else 1535 echo "$as_me:$LINENO: result: no" >&5 1536 echo "${ECHO_T}no" >&6 1537 fi 1538 1539 fi 1540 if test -z "$ac_cv_prog_CC"; then 1541 ac_ct_CC=$CC 1542 # Extract the first word of "cc", so it can be a program name with args. 1543 set dummy cc; ac_word=$2 1544 echo "$as_me:$LINENO: checking for $ac_word" >&5 1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1547 echo $ECHO_N "(cached) $ECHO_C" >&6 1548 else 1549 if test -n "$ac_ct_CC"; then 1550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1551 else 1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1553 for as_dir in $PATH 1554 do 1555 IFS=$as_save_IFS 1556 test -z "$as_dir" && as_dir=. 1557 for ac_exec_ext in '' $ac_executable_extensions; do 1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1559 ac_cv_prog_ac_ct_CC="cc" 1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1561 break 2 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2386 $as_echo "$CC" >&6; } 2387 else 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2389 $as_echo "no" >&6; } 2390 fi 2391 2392 1562 2393 fi 1563 done1564 done1565 1566 fi1567 fi1568 ac_ct_CC=$ac_cv_prog_ac_ct_CC1569 if test -n "$ac_ct_CC"; then1570 echo "$as_me:$LINENO: result: $ac_ct_CC" >&51571 echo "${ECHO_T}$ac_ct_CC" >&61572 else1573 echo "$as_me:$LINENO: result: no" >&51574 echo "${ECHO_T}no" >&61575 fi1576 1577 CC=$ac_ct_CC1578 else1579 CC="$ac_cv_prog_CC"1580 fi1581 1582 2394 fi 1583 2395 if test -z "$CC"; then 1584 2396 # Extract the first word of "cc", so it can be a program name with args. 1585 2397 set dummy cc; ac_word=$2 1586 echo "$as_me:$LINENO: checking for $ac_word" >&51587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1588 if test "${ac_cv_prog_CC+set}" = set; then 1589 echo $ECHO_N "(cached) $ECHO_C" >&62398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2399 $as_echo_n "checking for $ac_word... " >&6; } 2400 if test "${ac_cv_prog_CC+set}" = set; then : 2401 $as_echo_n "(cached) " >&6 1590 2402 else 1591 2403 if test -n "$CC"; then … … 1598 2410 IFS=$as_save_IFS 1599 2411 test -z "$as_dir" && as_dir=. 1600 for ac_exec_ext in '' $ac_executable_extensions; do1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2412 for ac_exec_ext in '' $ac_executable_extensions; do 2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1602 2414 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1603 2415 ac_prog_rejected=yes … … 1605 2417 fi 1606 2418 ac_cv_prog_CC="cc" 1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1608 2420 break 2 1609 2421 fi 1610 2422 done 1611 done 2423 done 2424 IFS=$as_save_IFS 1612 2425 1613 2426 if test $ac_prog_rejected = yes; then … … 1627 2440 CC=$ac_cv_prog_CC 1628 2441 if test -n "$CC"; then 1629 echo "$as_me:$LINENO: result: $CC" >&5 1630 echo "${ECHO_T}$CC" >&6 1631 else 1632 echo "$as_me:$LINENO: result: no" >&5 1633 echo "${ECHO_T}no" >&6 1634 fi 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2443 $as_echo "$CC" >&6; } 2444 else 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2446 $as_echo "no" >&6; } 2447 fi 2448 1635 2449 1636 2450 fi 1637 2451 if test -z "$CC"; then 1638 2452 if test -n "$ac_tool_prefix"; then 1639 for ac_prog in cl 2453 for ac_prog in cl.exe 1640 2454 do 1641 2455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1642 2456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1643 echo "$as_me:$LINENO: checking for $ac_word" >&51644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1645 if test "${ac_cv_prog_CC+set}" = set; then 1646 echo $ECHO_N "(cached) $ECHO_C" >&62457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2458 $as_echo_n "checking for $ac_word... " >&6; } 2459 if test "${ac_cv_prog_CC+set}" = set; then : 2460 $as_echo_n "(cached) " >&6 1647 2461 else 1648 2462 if test -n "$CC"; then … … 1654 2468 IFS=$as_save_IFS 1655 2469 test -z "$as_dir" && as_dir=. 1656 for ac_exec_ext in '' $ac_executable_extensions; do1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2470 for ac_exec_ext in '' $ac_executable_extensions; do 2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1658 2472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1660 2474 break 2 1661 2475 fi 1662 2476 done 1663 done 2477 done 2478 IFS=$as_save_IFS 1664 2479 1665 2480 fi … … 1667 2482 CC=$ac_cv_prog_CC 1668 2483 if test -n "$CC"; then 1669 echo "$as_me:$LINENO: result: $CC" >&5 1670 echo "${ECHO_T}$CC" >&6 1671 else 1672 echo "$as_me:$LINENO: result: no" >&5 1673 echo "${ECHO_T}no" >&6 1674 fi 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2485 $as_echo "$CC" >&6; } 2486 else 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2488 $as_echo "no" >&6; } 2489 fi 2490 1675 2491 1676 2492 test -n "$CC" && break … … 1679 2495 if test -z "$CC"; then 1680 2496 ac_ct_CC=$CC 1681 for ac_prog in cl 2497 for ac_prog in cl.exe 1682 2498 do 1683 2499 # Extract the first word of "$ac_prog", so it can be a program name with args. 1684 2500 set dummy $ac_prog; ac_word=$2 1685 echo "$as_me:$LINENO: checking for $ac_word" >&51686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1688 echo $ECHO_N "(cached) $ECHO_C" >&62501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2502 $as_echo_n "checking for $ac_word... " >&6; } 2503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2504 $as_echo_n "(cached) " >&6 1689 2505 else 1690 2506 if test -n "$ac_ct_CC"; then … … 1696 2512 IFS=$as_save_IFS 1697 2513 test -z "$as_dir" && as_dir=. 1698 for ac_exec_ext in '' $ac_executable_extensions; do1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2514 for ac_exec_ext in '' $ac_executable_extensions; do 2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1700 2516 ac_cv_prog_ac_ct_CC="$ac_prog" 1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1702 2518 break 2 1703 2519 fi 1704 2520 done 1705 done 2521 done 2522 IFS=$as_save_IFS 1706 2523 1707 2524 fi … … 1709 2526 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1710 2527 if test -n "$ac_ct_CC"; then 1711 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1712 echo "${ECHO_T}$ac_ct_CC" >&6 1713 else 1714 echo "$as_me:$LINENO: result: no" >&5 1715 echo "${ECHO_T}no" >&6 1716 fi 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2529 $as_echo "$ac_ct_CC" >&6; } 2530 else 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2532 $as_echo "no" >&6; } 2533 fi 2534 1717 2535 1718 2536 test -n "$ac_ct_CC" && break 1719 2537 done 1720 2538 1721 CC=$ac_ct_CC 1722 fi 1723 1724 fi 1725 1726 1727 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1728 See \`config.log' for more details." >&5 1729 echo "$as_me: error: no acceptable C compiler found in \$PATH 1730 See \`config.log' for more details." >&2;} 1731 { (exit 1); exit 1; }; } 2539 if test "x$ac_ct_CC" = x; then 2540 CC="" 2541 else 2542 case $cross_compiling:$ac_tool_warned in 2543 yes:) 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2546 ac_tool_warned=yes ;; 2547 esac 2548 CC=$ac_ct_CC 2549 fi 2550 fi 2551 2552 fi 2553 2554 2555 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2557 as_fn_error "no acceptable C compiler found in \$PATH 2558 See \`config.log' for more details." "$LINENO" 5; } 1732 2559 1733 2560 # Provide some information about the compiler. 1734 echo "$as_me:$LINENO:" \ 1735 "checking for C compiler version" >&5 1736 ac_compiler=`set X $ac_compile; echo $2` 1737 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1738 (eval $ac_compiler --version </dev/null >&5) 2>&5 2561 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2562 set X $ac_compile 2563 ac_compiler=$2 2564 for ac_option in --version -v -V -qversion; do 2565 { { ac_try="$ac_compiler $ac_option >&5" 2566 case "(($ac_try" in 2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2568 *) ac_try_echo=$ac_try;; 2569 esac 2570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2571 $as_echo "$ac_try_echo"; } >&5 2572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 1739 2573 ac_status=$? 1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1741 (exit $ac_status); } 1742 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1743 (eval $ac_compiler -v </dev/null >&5) 2>&5 1744 ac_status=$? 1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1746 (exit $ac_status); } 1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1748 (eval $ac_compiler -V </dev/null >&5) 2>&5 1749 ac_status=$? 1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1751 (exit $ac_status); } 1752 1753 cat >conftest.$ac_ext <<_ACEOF 1754 /* confdefs.h. */ 1755 _ACEOF 1756 cat confdefs.h >>conftest.$ac_ext 1757 cat >>conftest.$ac_ext <<_ACEOF 2574 if test -s conftest.err; then 2575 sed '10a\ 2576 ... rest of stderr output deleted ... 2577 10q' conftest.err >conftest.er1 2578 cat conftest.er1 >&5 2579 fi 2580 rm -f conftest.er1 conftest.err 2581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2582 test $ac_status = 0; } 2583 done 2584 2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1758 2586 /* end confdefs.h. */ 1759 2587 … … 1767 2595 _ACEOF 1768 2596 ac_clean_files_save=$ac_clean_files 1769 ac_clean_files="$ac_clean_files a.out a. exe b.out"2597 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 1770 2598 # Try to create an executable without -o first, disregard a.out. 1771 2599 # It will help us diagnose broken compilers, and finding out an intuition 1772 2600 # of exeext. 1773 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1774 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1775 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1776 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1777 (eval $ac_link_default) 2>&5 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2602 $as_echo_n "checking whether the C compiler works... " >&6; } 2603 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2604 2605 # The possible output files: 2606 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2607 2608 ac_rmfiles= 2609 for ac_file in $ac_files 2610 do 2611 case $ac_file in 2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2613 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2614 esac 2615 done 2616 rm -f $ac_rmfiles 2617 2618 if { { ac_try="$ac_link_default" 2619 case "(($ac_try" in 2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2621 *) ac_try_echo=$ac_try;; 2622 esac 2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2624 $as_echo "$ac_try_echo"; } >&5 2625 (eval "$ac_link_default") 2>&5 1778 2626 ac_status=$? 1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1780 (exit $ac_status); }; then 1781 # Find the output, starting from the most likely. This scheme is 1782 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1783 # resort. 1784 1785 # Be careful to initialize this variable, since it used to be cached. 1786 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1787 ac_cv_exeext= 1788 # b.out is created by i960 compilers. 1789 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2628 test $ac_status = 0; }; then : 2629 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2630 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2631 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2632 # so that the user can short-circuit this test for compilers unknown to 2633 # Autoconf. 2634 for ac_file in $ac_files '' 1790 2635 do 1791 2636 test -f "$ac_file" || continue 1792 2637 case $ac_file in 1793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1794 ;; 1795 conftest.$ac_ext ) 1796 # This is the source file. 2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 1797 2639 ;; 1798 2640 [ab].out ) … … 1801 2643 break;; 1802 2644 *.* ) 1803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1804 # FIXME: I believe we export ac_cv_exeext for Libtool, 1805 # but it would be cool to find out if it's true. Does anybody 1806 # maintain Libtool? --akim. 1807 export ac_cv_exeext 2645 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2646 then :; else 2647 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2648 fi 2649 # We set ac_cv_exeext here because the later test for it is not 2650 # safe: cross compilers may not add the suffix if given an `-o' 2651 # argument, so we may need to know it at that point already. 2652 # Even if this section looks crufty: it has the advantage of 2653 # actually working. 1808 2654 break;; 1809 2655 * ) … … 1811 2657 esac 1812 2658 done 1813 else 1814 echo "$as_me: failed program was:" >&5 2659 test "$ac_cv_exeext" = no && ac_cv_exeext= 2660 2661 else 2662 ac_file='' 2663 fi 2664 if test -z "$ac_file"; then : 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2666 $as_echo "no" >&6; } 2667 $as_echo "$as_me: failed program was:" >&5 1815 2668 sed 's/^/| /' conftest.$ac_ext >&5 1816 2669 1817 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1818 See \`config.log' for more details." >&5 1819 echo "$as_me: error: C compiler cannot create executables 1820 See \`config.log' for more details." >&2;} 1821 { (exit 77); exit 77; }; } 1822 fi 1823 2670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2672 { as_fn_set_status 77 2673 as_fn_error "C compiler cannot create executables 2674 See \`config.log' for more details." "$LINENO" 5; }; } 2675 else 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2677 $as_echo "yes" >&6; } 2678 fi 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2680 $as_echo_n "checking for C compiler default output file name... " >&6; } 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2682 $as_echo "$ac_file" >&6; } 1824 2683 ac_exeext=$ac_cv_exeext 1825 echo "$as_me:$LINENO: result: $ac_file" >&5 1826 echo "${ECHO_T}$ac_file" >&6 1827 1828 # Check the compiler produces executables we can run. If not, either 1829 # the compiler is broken, or we cross compile. 1830 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1831 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1832 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1833 # If not cross compiling, check that we can run a simple program. 1834 if test "$cross_compiling" != yes; then 1835 if { ac_try='./$ac_file' 1836 { (eval echo "$as_me:$LINENO: \"$ac_try\"")>&51837 (eval $ac_try) 2>&52684 2685 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2686 ac_clean_files=$ac_clean_files_save 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2688 $as_echo_n "checking for suffix of executables... " >&6; } 2689 if { { ac_try="$ac_link" 2690 case "(($ac_try" in 2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2692 *) ac_try_echo=$ac_try;; 2693 esac 2694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2695 $as_echo "$ac_try_echo"; } >&5 2696 (eval "$ac_link") 2>&5 1838 2697 ac_status=$? 1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1840 (exit $ac_status); }; }; then 1841 cross_compiling=no 1842 else 1843 if test "$cross_compiling" = maybe; then 1844 cross_compiling=yes 1845 else 1846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1847 If you meant to cross compile, use \`--host'. 1848 See \`config.log' for more details." >&5 1849 echo "$as_me: error: cannot run C compiled programs. 1850 If you meant to cross compile, use \`--host'. 1851 See \`config.log' for more details." >&2;} 1852 { (exit 1); exit 1; }; } 1853 fi 1854 fi 1855 fi 1856 echo "$as_me:$LINENO: result: yes" >&5 1857 echo "${ECHO_T}yes" >&6 1858 1859 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1860 ac_clean_files=$ac_clean_files_save 1861 # Check the compiler produces executables we can run. If not, either 1862 # the compiler is broken, or we cross compile. 1863 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1864 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1865 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1866 echo "${ECHO_T}$cross_compiling" >&6 1867 1868 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1869 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1871 (eval $ac_link) 2>&5 1872 ac_status=$? 1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1874 (exit $ac_status); }; then 2698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2699 test $ac_status = 0; }; then : 1875 2700 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1876 2701 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will … … 1880 2705 test -f "$ac_file" || continue 1881 2706 case $ac_file in 1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *. o | *.obj ) ;;2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 1883 2708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1884 export ac_cv_exeext1885 2709 break;; 1886 2710 * ) break;; … … 1888 2712 done 1889 2713 else 1890 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1891 See \`config.log' for more details." >&5 1892 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1893 See \`config.log' for more details." >&2;} 1894 { (exit 1); exit 1; }; } 1895 fi 1896 1897 rm -f conftest$ac_cv_exeext 1898 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1899 echo "${ECHO_T}$ac_cv_exeext" >&6 2714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2716 as_fn_error "cannot compute suffix of executables: cannot compile and link 2717 See \`config.log' for more details." "$LINENO" 5; } 2718 fi 2719 rm -f conftest conftest$ac_cv_exeext 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2721 $as_echo "$ac_cv_exeext" >&6; } 1900 2722 1901 2723 rm -f conftest.$ac_ext 1902 2724 EXEEXT=$ac_cv_exeext 1903 2725 ac_exeext=$EXEEXT 1904 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1905 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1906 if test "${ac_cv_objext+set}" = set; then 1907 echo $ECHO_N "(cached) $ECHO_C" >&6 1908 else 1909 cat >conftest.$ac_ext <<_ACEOF 1910 /* confdefs.h. */ 1911 _ACEOF 1912 cat confdefs.h >>conftest.$ac_ext 1913 cat >>conftest.$ac_ext <<_ACEOF 2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914 2727 /* end confdefs.h. */ 1915 2728 #include <stdio.h> 1916 2729 int 1917 2730 main () 1918 2731 { 2732 FILE *f = fopen ("conftest.out", "w"); 2733 return ferror (f) || fclose (f) != 0; 1919 2734 1920 2735 ; … … 1922 2737 } 1923 2738 _ACEOF 2739 ac_clean_files="$ac_clean_files conftest.out" 2740 # Check that the compiler produces executables we can run. If not, either 2741 # the compiler is broken, or we cross compile. 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2743 $as_echo_n "checking whether we are cross compiling... " >&6; } 2744 if test "$cross_compiling" != yes; then 2745 { { ac_try="$ac_link" 2746 case "(($ac_try" in 2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2748 *) ac_try_echo=$ac_try;; 2749 esac 2750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2751 $as_echo "$ac_try_echo"; } >&5 2752 (eval "$ac_link") 2>&5 2753 ac_status=$? 2754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2755 test $ac_status = 0; } 2756 if { ac_try='./conftest$ac_cv_exeext' 2757 { { case "(($ac_try" in 2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2759 *) ac_try_echo=$ac_try;; 2760 esac 2761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2762 $as_echo "$ac_try_echo"; } >&5 2763 (eval "$ac_try") 2>&5 2764 ac_status=$? 2765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2766 test $ac_status = 0; }; }; then 2767 cross_compiling=no 2768 else 2769 if test "$cross_compiling" = maybe; then 2770 cross_compiling=yes 2771 else 2772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2774 as_fn_error "cannot run C compiled programs. 2775 If you meant to cross compile, use \`--host'. 2776 See \`config.log' for more details." "$LINENO" 5; } 2777 fi 2778 fi 2779 fi 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2781 $as_echo "$cross_compiling" >&6; } 2782 2783 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2784 ac_clean_files=$ac_clean_files_save 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2786 $as_echo_n "checking for suffix of object files... " >&6; } 2787 if test "${ac_cv_objext+set}" = set; then : 2788 $as_echo_n "(cached) " >&6 2789 else 2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2791 /* end confdefs.h. */ 2792 2793 int 2794 main () 2795 { 2796 2797 ; 2798 return 0; 2799 } 2800 _ACEOF 1924 2801 rm -f conftest.o conftest.obj 1925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1926 (eval $ac_compile) 2>&5 2802 if { { ac_try="$ac_compile" 2803 case "(($ac_try" in 2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2805 *) ac_try_echo=$ac_try;; 2806 esac 2807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2808 $as_echo "$ac_try_echo"; } >&5 2809 (eval "$ac_compile") 2>&5 1927 2810 ac_status=$? 1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1929 (exit $ac_status); }; then 1930 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2812 test $ac_status = 0; }; then : 2813 for ac_file in conftest.o conftest.obj conftest.*; do 2814 test -f "$ac_file" || continue; 1931 2815 case $ac_file in 1932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 1933 2817 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1934 2818 break;; … … 1936 2820 done 1937 2821 else 1938 echo "$as_me: failed program was:" >&52822 $as_echo "$as_me: failed program was:" >&5 1939 2823 sed 's/^/| /' conftest.$ac_ext >&5 1940 2824 1941 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1942 See \`config.log' for more details." >&5 1943 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1944 See \`config.log' for more details." >&2;} 1945 { (exit 1); exit 1; }; } 1946 fi 1947 2825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2827 as_fn_error "cannot compute suffix of object files: cannot compile 2828 See \`config.log' for more details." "$LINENO" 5; } 2829 fi 1948 2830 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1949 2831 fi 1950 echo "$as_me:$LINENO: result: $ac_cv_objext" >&51951 echo "${ECHO_T}$ac_cv_objext" >&6 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2833 $as_echo "$ac_cv_objext" >&6; } 1952 2834 OBJEXT=$ac_cv_objext 1953 2835 ac_objext=$OBJEXT 1954 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1955 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1956 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1957 echo $ECHO_N "(cached) $ECHO_C" >&6 1958 else 1959 cat >conftest.$ac_ext <<_ACEOF 1960 /* confdefs.h. */ 1961 _ACEOF 1962 cat confdefs.h >>conftest.$ac_ext 1963 cat >>conftest.$ac_ext <<_ACEOF 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2837 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2838 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2839 $as_echo_n "(cached) " >&6 2840 else 2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1964 2842 /* end confdefs.h. */ 1965 2843 … … 1975 2853 } 1976 2854 _ACEOF 1977 rm -f conftest.$ac_objext 1978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1979 (eval $ac_compile) 2>conftest.er1 1980 ac_status=$? 1981 grep -v '^ *+' conftest.er1 >conftest.err 1982 rm -f conftest.er1 1983 cat conftest.err >&5 1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1985 (exit $ac_status); } && 1986 { ac_try='test -z "$ac_c_werror_flag" 1987 || test ! -s conftest.err' 1988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1989 (eval $ac_try) 2>&5 1990 ac_status=$? 1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1992 (exit $ac_status); }; } && 1993 { ac_try='test -s conftest.$ac_objext' 1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1995 (eval $ac_try) 2>&5 1996 ac_status=$? 1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1998 (exit $ac_status); }; }; then 2855 if ac_fn_c_try_compile "$LINENO"; then : 1999 2856 ac_compiler_gnu=yes 2000 2857 else 2001 echo "$as_me: failed program was:" >&5 2002 sed 's/^/| /' conftest.$ac_ext >&5 2003 2004 ac_compiler_gnu=no 2005 fi 2006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2858 ac_compiler_gnu=no 2859 fi 2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2007 2861 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2008 2862 2009 2863 fi 2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2012 GCC=`test $ac_compiler_gnu = yes && echo yes` 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2865 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 2866 if test $ac_compiler_gnu = yes; then 2867 GCC=yes 2868 else 2869 GCC= 2870 fi 2013 2871 ac_test_CFLAGS=${CFLAGS+set} 2014 2872 ac_save_CFLAGS=$CFLAGS 2015 CFLAGS="-g" 2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2018 if test "${ac_cv_prog_cc_g+set}" = set; then 2019 echo $ECHO_N "(cached) $ECHO_C" >&6 2020 else 2021 cat >conftest.$ac_ext <<_ACEOF 2022 /* confdefs.h. */ 2023 _ACEOF 2024 cat confdefs.h >>conftest.$ac_ext 2025 cat >>conftest.$ac_ext <<_ACEOF 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2874 $as_echo_n "checking whether $CC accepts -g... " >&6; } 2875 if test "${ac_cv_prog_cc_g+set}" = set; then : 2876 $as_echo_n "(cached) " >&6 2877 else 2878 ac_save_c_werror_flag=$ac_c_werror_flag 2879 ac_c_werror_flag=yes 2880 ac_cv_prog_cc_g=no 2881 CFLAGS="-g" 2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026 2883 /* end confdefs.h. */ 2027 2884 … … 2034 2891 } 2035 2892 _ACEOF 2036 rm -f conftest.$ac_objext 2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2038 (eval $ac_compile) 2>conftest.er1 2039 ac_status=$? 2040 grep -v '^ *+' conftest.er1 >conftest.err 2041 rm -f conftest.er1 2042 cat conftest.err >&5 2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2044 (exit $ac_status); } && 2045 { ac_try='test -z "$ac_c_werror_flag" 2046 || test ! -s conftest.err' 2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2048 (eval $ac_try) 2>&5 2049 ac_status=$? 2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2051 (exit $ac_status); }; } && 2052 { ac_try='test -s conftest.$ac_objext' 2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2054 (eval $ac_try) 2>&5 2055 ac_status=$? 2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2057 (exit $ac_status); }; }; then 2893 if ac_fn_c_try_compile "$LINENO"; then : 2058 2894 ac_cv_prog_cc_g=yes 2059 2895 else 2060 echo "$as_me: failed program was:" >&5 2061 sed 's/^/| /' conftest.$ac_ext >&5 2062 2063 ac_cv_prog_cc_g=no 2064 fi 2065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2066 fi 2067 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2068 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2896 CFLAGS="" 2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2898 /* end confdefs.h. */ 2899 2900 int 2901 main () 2902 { 2903 2904 ; 2905 return 0; 2906 } 2907 _ACEOF 2908 if ac_fn_c_try_compile "$LINENO"; then : 2909 2910 else 2911 ac_c_werror_flag=$ac_save_c_werror_flag 2912 CFLAGS="-g" 2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2914 /* end confdefs.h. */ 2915 2916 int 2917 main () 2918 { 2919 2920 ; 2921 return 0; 2922 } 2923 _ACEOF 2924 if ac_fn_c_try_compile "$LINENO"; then : 2925 ac_cv_prog_cc_g=yes 2926 fi 2927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2928 fi 2929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2930 fi 2931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2932 ac_c_werror_flag=$ac_save_c_werror_flag 2933 fi 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2935 $as_echo "$ac_cv_prog_cc_g" >&6; } 2069 2936 if test "$ac_test_CFLAGS" = set; then 2070 2937 CFLAGS=$ac_save_CFLAGS … … 2082 2949 fi 2083 2950 fi 2084 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&52085 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2086 if test "${ac_cv_prog_cc_ stdc+set}" = set; then2087 echo $ECHO_N "(cached) $ECHO_C" >&62088 else 2089 ac_cv_prog_cc_ stdc=no2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2952 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2953 if test "${ac_cv_prog_cc_c89+set}" = set; then : 2954 $as_echo_n "(cached) " >&6 2955 else 2956 ac_cv_prog_cc_c89=no 2090 2957 ac_save_CC=$CC 2091 cat >conftest.$ac_ext <<_ACEOF 2092 /* confdefs.h. */ 2093 _ACEOF 2094 cat confdefs.h >>conftest.$ac_ext 2095 cat >>conftest.$ac_ext <<_ACEOF 2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096 2959 /* end confdefs.h. */ 2097 2960 #include <stdarg.h> … … 2121 2984 function prototypes and stuff, but not '\xHH' hex character constants. 2122 2985 These don't provoke an error unfortunately, instead are silently treated 2123 as 'x'. The following induces an error, until -std 1is added to get2986 as 'x'. The following induces an error, until -std is added to get 2124 2987 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2125 2988 array size at least. It's necessary to write '\x00'==0 to get something 2126 that's true only with -std 1. */2989 that's true only with -std. */ 2127 2990 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2991 2992 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2993 inside strings and character constants. */ 2994 #define FOO(x) 'x' 2995 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2128 2996 2129 2997 int test (int i, double x); … … 2141 3009 } 2142 3010 _ACEOF 2143 # Don't try gcc -ansi; that turns off useful extensions and 2144 # breaks some systems' header files. 2145 # AIX -qlanglvl=ansi 2146 # Ultrix and OSF/1 -std1 2147 # HP-UX 10.20 and later -Ae 2148 # HP-UX older versions -Aa -D_HPUX_SOURCE 2149 # SVR4 -Xc -D__EXTENSIONS__ 2150 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3011 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3012 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2151 3013 do 2152 3014 CC="$ac_save_CC $ac_arg" 2153 rm -f conftest.$ac_objext 2154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2155 (eval $ac_compile) 2>conftest.er1 2156 ac_status=$? 2157 grep -v '^ *+' conftest.er1 >conftest.err 2158 rm -f conftest.er1 2159 cat conftest.err >&5 2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2161 (exit $ac_status); } && 2162 { ac_try='test -z "$ac_c_werror_flag" 2163 || test ! -s conftest.err' 2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2165 (eval $ac_try) 2>&5 2166 ac_status=$? 2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2168 (exit $ac_status); }; } && 2169 { ac_try='test -s conftest.$ac_objext' 2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2171 (eval $ac_try) 2>&5 2172 ac_status=$? 2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2174 (exit $ac_status); }; }; then 2175 ac_cv_prog_cc_stdc=$ac_arg 2176 break 2177 else 2178 echo "$as_me: failed program was:" >&5 2179 sed 's/^/| /' conftest.$ac_ext >&5 2180 2181 fi 2182 rm -f conftest.err conftest.$ac_objext 3015 if ac_fn_c_try_compile "$LINENO"; then : 3016 ac_cv_prog_cc_c89=$ac_arg 3017 fi 3018 rm -f core conftest.err conftest.$ac_objext 3019 test "x$ac_cv_prog_cc_c89" != "xno" && break 2183 3020 done 2184 rm -f conftest.$ac_ext conftest.$ac_objext3021 rm -f conftest.$ac_ext 2185 3022 CC=$ac_save_CC 2186 3023 2187 3024 fi 2188 2189 case "x$ac_cv_prog_cc_stdc" in 2190 x|xno) 2191 echo "$as_me:$LINENO: result: none needed" >&5 2192 echo "${ECHO_T}none needed" >&6 ;; 3025 # AC_CACHE_VAL 3026 case "x$ac_cv_prog_cc_c89" in 3027 x) 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3029 $as_echo "none needed" >&6; } ;; 3030 xno) 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3032 $as_echo "unsupported" >&6; } ;; 2193 3033 *) 2194 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&52195 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2196 CC="$CC $ac_cv_prog_cc_stdc";;3034 CC="$CC $ac_cv_prog_cc_c89" 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3036 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2197 3037 esac 2198 2199 # Some people use a C++ compiler to compile C. Since we use `exit', 2200 # in C++ we need to declare it. In case someone uses the same compiler 2201 # for both compiling C and C++ we need to have the C++ compiler decide 2202 # the declaration of exit, since it's the most demanding environment. 2203 cat >conftest.$ac_ext <<_ACEOF 2204 #ifndef __cplusplus 2205 choke me 2206 #endif 2207 _ACEOF 2208 rm -f conftest.$ac_objext 2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2210 (eval $ac_compile) 2>conftest.er1 2211 ac_status=$? 2212 grep -v '^ *+' conftest.er1 >conftest.err 2213 rm -f conftest.er1 2214 cat conftest.err >&5 2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2216 (exit $ac_status); } && 2217 { ac_try='test -z "$ac_c_werror_flag" 2218 || test ! -s conftest.err' 2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2220 (eval $ac_try) 2>&5 2221 ac_status=$? 2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2223 (exit $ac_status); }; } && 2224 { ac_try='test -s conftest.$ac_objext' 2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2226 (eval $ac_try) 2>&5 2227 ac_status=$? 2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2229 (exit $ac_status); }; }; then 2230 for ac_declaration in \ 2231 '' \ 2232 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2233 'extern "C" void std::exit (int); using std::exit;' \ 2234 'extern "C" void exit (int) throw ();' \ 2235 'extern "C" void exit (int);' \ 2236 'void exit (int);' 2237 do 2238 cat >conftest.$ac_ext <<_ACEOF 2239 /* confdefs.h. */ 2240 _ACEOF 2241 cat confdefs.h >>conftest.$ac_ext 2242 cat >>conftest.$ac_ext <<_ACEOF 2243 /* end confdefs.h. */ 2244 $ac_declaration 2245 #include <stdlib.h> 2246 int 2247 main () 2248 { 2249 exit (42); 2250 ; 2251 return 0; 2252 } 2253 _ACEOF 2254 rm -f conftest.$ac_objext 2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2256 (eval $ac_compile) 2>conftest.er1 2257 ac_status=$? 2258 grep -v '^ *+' conftest.er1 >conftest.err 2259 rm -f conftest.er1 2260 cat conftest.err >&5 2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 (exit $ac_status); } && 2263 { ac_try='test -z "$ac_c_werror_flag" 2264 || test ! -s conftest.err' 2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2266 (eval $ac_try) 2>&5 2267 ac_status=$? 2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 (exit $ac_status); }; } && 2270 { ac_try='test -s conftest.$ac_objext' 2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2272 (eval $ac_try) 2>&5 2273 ac_status=$? 2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2275 (exit $ac_status); }; }; then 2276 : 2277 else 2278 echo "$as_me: failed program was:" >&5 2279 sed 's/^/| /' conftest.$ac_ext >&5 2280 2281 continue 2282 fi 2283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2284 cat >conftest.$ac_ext <<_ACEOF 2285 /* confdefs.h. */ 2286 _ACEOF 2287 cat confdefs.h >>conftest.$ac_ext 2288 cat >>conftest.$ac_ext <<_ACEOF 2289 /* end confdefs.h. */ 2290 $ac_declaration 2291 int 2292 main () 2293 { 2294 exit (42); 2295 ; 2296 return 0; 2297 } 2298 _ACEOF 2299 rm -f conftest.$ac_objext 2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2301 (eval $ac_compile) 2>conftest.er1 2302 ac_status=$? 2303 grep -v '^ *+' conftest.er1 >conftest.err 2304 rm -f conftest.er1 2305 cat conftest.err >&5 2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2307 (exit $ac_status); } && 2308 { ac_try='test -z "$ac_c_werror_flag" 2309 || test ! -s conftest.err' 2310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2311 (eval $ac_try) 2>&5 2312 ac_status=$? 2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2314 (exit $ac_status); }; } && 2315 { ac_try='test -s conftest.$ac_objext' 2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2317 (eval $ac_try) 2>&5 2318 ac_status=$? 2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2320 (exit $ac_status); }; }; then 2321 break 2322 else 2323 echo "$as_me: failed program was:" >&5 2324 sed 's/^/| /' conftest.$ac_ext >&5 2325 2326 fi 2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2328 done 2329 rm -f conftest* 2330 if test -n "$ac_declaration"; then 2331 echo '#ifdef __cplusplus' >>confdefs.h 2332 echo $ac_declaration >>confdefs.h 2333 echo '#endif' >>confdefs.h 2334 fi 2335 2336 else 2337 echo "$as_me: failed program was:" >&5 2338 sed 's/^/| /' conftest.$ac_ext >&5 2339 2340 fi 2341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3038 if test "x$ac_cv_prog_cc_c89" != xno; then : 3039 3040 fi 3041 2342 3042 ac_ext=c 2343 3043 ac_cpp='$CPP $CPPFLAGS' … … 2359 3059 # OS/2's system install, which has a completely different semantic 2360 3060 # ./install, which can be erroneously created by make from ./install.sh. 2361 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2362 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3061 # Reject install programs that cannot install multiple files. 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3063 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2363 3064 if test -z "$INSTALL"; then 2364 if test "${ac_cv_path_install+set}" = set; then 2365 echo $ECHO_N "(cached) $ECHO_C" >&63065 if test "${ac_cv_path_install+set}" = set; then : 3066 $as_echo_n "(cached) " >&6 2366 3067 else 2367 3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 2370 3071 IFS=$as_save_IFS 2371 3072 test -z "$as_dir" && as_dir=. 2372 # Account for people who put trailing slashes in PATH elements.2373 case $as_dir/ in 2374 ./ | .// | / cC/* | \3073 # Account for people who put trailing slashes in PATH elements. 3074 case $as_dir/ in #(( 3075 ./ | .// | /[cC]/* | \ 2375 3076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2376 ?: \\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \3077 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2377 3078 /usr/ucb/* ) ;; 2378 3079 *) … … 2382 3083 for ac_prog in ginstall scoinst install; do 2383 3084 for ac_exec_ext in '' $ac_executable_extensions; do 2384 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then3085 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2385 3086 if test $ac_prog = install && 2386 3087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then … … 2392 3093 : 2393 3094 else 2394 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2395 break 3 3095 rm -rf conftest.one conftest.two conftest.dir 3096 echo one > conftest.one 3097 echo two > conftest.two 3098 mkdir conftest.dir 3099 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3100 test -s conftest.one && test -s conftest.two && 3101 test -s conftest.dir/conftest.one && 3102 test -s conftest.dir/conftest.two 3103 then 3104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3105 break 3 3106 fi 2396 3107 fi 2397 3108 fi … … 2400 3111 ;; 2401 3112 esac 2402 done 2403 3113 3114 done 3115 IFS=$as_save_IFS 3116 3117 rm -rf conftest.one conftest.two conftest.dir 2404 3118 2405 3119 fi … … 2407 3121 INSTALL=$ac_cv_path_install 2408 3122 else 2409 # As a last resort, use the slow shell script. We don't cache a2410 # pathfor INSTALL within a source directory, because that will3123 # As a last resort, use the slow shell script. Don't cache a 3124 # value for INSTALL within a source directory, because that will 2411 3125 # break other packages using the cache if that directory is 2412 # removed, or if the path is relative.3126 # removed, or if the value is a relative name. 2413 3127 INSTALL=$ac_install_sh 2414 3128 fi 2415 3129 fi 2416 echo "$as_me:$LINENO: result: $INSTALL" >&52417 echo "${ECHO_T}$INSTALL" >&6 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3131 $as_echo "$INSTALL" >&6; } 2418 3132 2419 3133 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 2425 3139 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2426 3140 2427 echo "$as_me:$LINENO: checking whether ln -s works" >&52428 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3142 $as_echo_n "checking whether ln -s works... " >&6; } 2429 3143 LN_S=$as_ln_s 2430 3144 if test "$LN_S" = "ln -s"; then 2431 echo "$as_me:$LINENO: result: yes" >&5 2432 echo "${ECHO_T}yes" >&6 2433 else 2434 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2435 echo "${ECHO_T}no, using $LN_S" >&6 2436 fi 2437 2438 2439 echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5 2440 echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6 2441 arch_64bit=no 2442 case "$host_cpu" in 2443 x86_64) arch_64bit=yes ;; 2444 esac 2445 2446 if test "$arch_64bit" = yes; then 2447 echo "$as_me:$LINENO: result: yes" >&5 2448 echo "${ECHO_T}yes" >&6 2449 if test -z "$COMPAT32BITFLAGS" ; then 2450 COMPAT32BITFLAGS="-m32" 2451 fi 2452 else 2453 echo "$as_me:$LINENO: result: no" >&5 2454 echo "${ECHO_T}no" >&6 2455 if test -z "$COMPAT32BITFLAGS" ; then 2456 COMPAT32BITFLAGS= 2457 fi 2458 fi 2459 2460 # Only need compat32bitflag if using MG or MGPP 2461 if test "$ENABLE_MG" = "0" ; then 2462 COMPAT32BITFLAGS= 2463 else 2464 if test "$ENABLE_MGPP" = "0" ; then 2465 COMPAT32BITFLAGS= 2466 fi 2467 fi 2468 2469 export COMPAT32BITFLAGS 2470 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3146 $as_echo "yes" >&6; } 3147 else 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3149 $as_echo "no, using $LN_S" >&6; } 3150 fi 2471 3151 2472 3152 … … 2478 3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2479 3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2480 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&52481 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3161 $as_echo_n "checking how to run the C preprocessor... " >&6; } 2482 3162 # On Suns, sometimes $CPP names a directory. 2483 3163 if test -n "$CPP" && test -d "$CPP"; then … … 2485 3165 fi 2486 3166 if test -z "$CPP"; then 2487 if test "${ac_cv_prog_CPP+set}" = set; then 2488 echo $ECHO_N "(cached) $ECHO_C" >&63167 if test "${ac_cv_prog_CPP+set}" = set; then : 3168 $as_echo_n "(cached) " >&6 2489 3169 else 2490 3170 # Double quotes because CPP needs to be expanded … … 2500 3180 # On the NeXT, cc -E runs the code through the compiler's parser, 2501 3181 # not just through cpp. "Syntax error" is here to catch this case. 2502 cat >conftest.$ac_ext <<_ACEOF 2503 /* confdefs.h. */ 2504 _ACEOF 2505 cat confdefs.h >>conftest.$ac_ext 2506 cat >>conftest.$ac_ext <<_ACEOF 3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2507 3183 /* end confdefs.h. */ 2508 3184 #ifdef __STDC__ … … 2513 3189 Syntax error 2514 3190 _ACEOF 2515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2517 ac_status=$? 2518 grep -v '^ *+' conftest.er1 >conftest.err 2519 rm -f conftest.er1 2520 cat conftest.err >&5 2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2522 (exit $ac_status); } >/dev/null; then 2523 if test -s conftest.err; then 2524 ac_cpp_err=$ac_c_preproc_warn_flag 2525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2526 else 2527 ac_cpp_err= 2528 fi 2529 else 2530 ac_cpp_err=yes 2531 fi 2532 if test -z "$ac_cpp_err"; then 2533 : 2534 else 2535 echo "$as_me: failed program was:" >&5 2536 sed 's/^/| /' conftest.$ac_ext >&5 2537 3191 if ac_fn_c_try_cpp "$LINENO"; then : 3192 3193 else 2538 3194 # Broken: fails on valid input. 2539 3195 continue … … 2541 3197 rm -f conftest.err conftest.$ac_ext 2542 3198 2543 # OK, works on sane cases. Now check whether non -existent headers3199 # OK, works on sane cases. Now check whether nonexistent headers 2544 3200 # can be detected and how. 2545 cat >conftest.$ac_ext <<_ACEOF 2546 /* confdefs.h. */ 2547 _ACEOF 2548 cat confdefs.h >>conftest.$ac_ext 2549 cat >>conftest.$ac_ext <<_ACEOF 3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2550 3202 /* end confdefs.h. */ 2551 3203 #include <ac_nonexistent.h> 2552 3204 _ACEOF 2553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2555 ac_status=$? 2556 grep -v '^ *+' conftest.er1 >conftest.err 2557 rm -f conftest.er1 2558 cat conftest.err >&5 2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2560 (exit $ac_status); } >/dev/null; then 2561 if test -s conftest.err; then 2562 ac_cpp_err=$ac_c_preproc_warn_flag 2563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2564 else 2565 ac_cpp_err= 2566 fi 2567 else 2568 ac_cpp_err=yes 2569 fi 2570 if test -z "$ac_cpp_err"; then 3205 if ac_fn_c_try_cpp "$LINENO"; then : 2571 3206 # Broken: success on invalid input. 2572 3207 continue 2573 3208 else 2574 echo "$as_me: failed program was:" >&52575 sed 's/^/| /' conftest.$ac_ext >&52576 2577 3209 # Passes both tests. 2578 3210 ac_preproc_ok=: … … 2584 3216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2585 3217 rm -f conftest.err conftest.$ac_ext 2586 if $ac_preproc_ok; then 3218 if $ac_preproc_ok; then : 2587 3219 break 2588 3220 fi … … 2596 3228 ac_cv_prog_CPP=$CPP 2597 3229 fi 2598 echo "$as_me:$LINENO: result: $CPP" >&52599 echo "${ECHO_T}$CPP" >&6 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3231 $as_echo "$CPP" >&6; } 2600 3232 ac_preproc_ok=false 2601 3233 for ac_c_preproc_warn_flag in '' yes … … 2607 3239 # On the NeXT, cc -E runs the code through the compiler's parser, 2608 3240 # not just through cpp. "Syntax error" is here to catch this case. 2609 cat >conftest.$ac_ext <<_ACEOF 2610 /* confdefs.h. */ 2611 _ACEOF 2612 cat confdefs.h >>conftest.$ac_ext 2613 cat >>conftest.$ac_ext <<_ACEOF 3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2614 3242 /* end confdefs.h. */ 2615 3243 #ifdef __STDC__ … … 2620 3248 Syntax error 2621 3249 _ACEOF 2622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2624 ac_status=$? 2625 grep -v '^ *+' conftest.er1 >conftest.err 2626 rm -f conftest.er1 2627 cat conftest.err >&5 2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2629 (exit $ac_status); } >/dev/null; then 2630 if test -s conftest.err; then 2631 ac_cpp_err=$ac_c_preproc_warn_flag 2632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2633 else 2634 ac_cpp_err= 2635 fi 2636 else 2637 ac_cpp_err=yes 2638 fi 2639 if test -z "$ac_cpp_err"; then 2640 : 2641 else 2642 echo "$as_me: failed program was:" >&5 2643 sed 's/^/| /' conftest.$ac_ext >&5 2644 3250 if ac_fn_c_try_cpp "$LINENO"; then : 3251 3252 else 2645 3253 # Broken: fails on valid input. 2646 3254 continue … … 2648 3256 rm -f conftest.err conftest.$ac_ext 2649 3257 2650 # OK, works on sane cases. Now check whether non -existent headers3258 # OK, works on sane cases. Now check whether nonexistent headers 2651 3259 # can be detected and how. 2652 cat >conftest.$ac_ext <<_ACEOF 2653 /* confdefs.h. */ 2654 _ACEOF 2655 cat confdefs.h >>conftest.$ac_ext 2656 cat >>conftest.$ac_ext <<_ACEOF 3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2657 3261 /* end confdefs.h. */ 2658 3262 #include <ac_nonexistent.h> 2659 3263 _ACEOF 2660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2662 ac_status=$? 2663 grep -v '^ *+' conftest.er1 >conftest.err 2664 rm -f conftest.er1 2665 cat conftest.err >&5 2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2667 (exit $ac_status); } >/dev/null; then 2668 if test -s conftest.err; then 2669 ac_cpp_err=$ac_c_preproc_warn_flag 2670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2671 else 2672 ac_cpp_err= 2673 fi 2674 else 2675 ac_cpp_err=yes 2676 fi 2677 if test -z "$ac_cpp_err"; then 3264 if ac_fn_c_try_cpp "$LINENO"; then : 2678 3265 # Broken: success on invalid input. 2679 3266 continue 2680 3267 else 2681 echo "$as_me: failed program was:" >&52682 sed 's/^/| /' conftest.$ac_ext >&52683 2684 3268 # Passes both tests. 2685 3269 ac_preproc_ok=: … … 2691 3275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2692 3276 rm -f conftest.err conftest.$ac_ext 2693 if $ac_preproc_ok; then 2694 : 2695 else 2696 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2697 See \`config.log' for more details." >&5 2698 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2699 See \`config.log' for more details." >&2;} 2700 { (exit 1); exit 1; }; } 3277 if $ac_preproc_ok; then : 3278 3279 else 3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3282 as_fn_error "C preprocessor \"$CPP\" fails sanity check 3283 See \`config.log' for more details." "$LINENO" 5; } 2701 3284 fi 2702 3285 … … 2708 3291 2709 3292 2710 echo "$as_me:$LINENO: checking for egrep" >&5 2711 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2712 if test "${ac_cv_prog_egrep+set}" = set; then 2713 echo $ECHO_N "(cached) $ECHO_C" >&6 2714 else 2715 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2716 then ac_cv_prog_egrep='grep -E' 2717 else ac_cv_prog_egrep='egrep' 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3294 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3295 if test "${ac_cv_path_GREP+set}" = set; then : 3296 $as_echo_n "(cached) " >&6 3297 else 3298 if test -z "$GREP"; then 3299 ac_path_GREP_found=false 3300 # Loop through the user's path and test for each of PROGNAME-LIST 3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3303 do 3304 IFS=$as_save_IFS 3305 test -z "$as_dir" && as_dir=. 3306 for ac_prog in grep ggrep; do 3307 for ac_exec_ext in '' $ac_executable_extensions; do 3308 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3310 # Check for GNU ac_path_GREP and select it if it is found. 3311 # Check for GNU $ac_path_GREP 3312 case `"$ac_path_GREP" --version 2>&1` in 3313 *GNU*) 3314 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3315 *) 3316 ac_count=0 3317 $as_echo_n 0123456789 >"conftest.in" 3318 while : 3319 do 3320 cat "conftest.in" "conftest.in" >"conftest.tmp" 3321 mv "conftest.tmp" "conftest.in" 3322 cp "conftest.in" "conftest.nl" 3323 $as_echo 'GREP' >> "conftest.nl" 3324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3326 as_fn_arith $ac_count + 1 && ac_count=$as_val 3327 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3328 # Best one so far, save it but keep looking for a better one 3329 ac_cv_path_GREP="$ac_path_GREP" 3330 ac_path_GREP_max=$ac_count 2718 3331 fi 2719 fi 2720 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2721 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2722 EGREP=$ac_cv_prog_egrep 2723 2724 2725 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2726 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2727 if test "${ac_cv_header_stdc+set}" = set; then 2728 echo $ECHO_N "(cached) $ECHO_C" >&6 2729 else 2730 cat >conftest.$ac_ext <<_ACEOF 2731 /* confdefs.h. */ 2732 _ACEOF 2733 cat confdefs.h >>conftest.$ac_ext 2734 cat >>conftest.$ac_ext <<_ACEOF 3332 # 10*(2^10) chars as input seems more than enough 3333 test $ac_count -gt 10 && break 3334 done 3335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3336 esac 3337 3338 $ac_path_GREP_found && break 3 3339 done 3340 done 3341 done 3342 IFS=$as_save_IFS 3343 if test -z "$ac_cv_path_GREP"; then 3344 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3345 fi 3346 else 3347 ac_cv_path_GREP=$GREP 3348 fi 3349 3350 fi 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3352 $as_echo "$ac_cv_path_GREP" >&6; } 3353 GREP="$ac_cv_path_GREP" 3354 3355 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3357 $as_echo_n "checking for egrep... " >&6; } 3358 if test "${ac_cv_path_EGREP+set}" = set; then : 3359 $as_echo_n "(cached) " >&6 3360 else 3361 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3362 then ac_cv_path_EGREP="$GREP -E" 3363 else 3364 if test -z "$EGREP"; then 3365 ac_path_EGREP_found=false 3366 # Loop through the user's path and test for each of PROGNAME-LIST 3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3368 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3369 do 3370 IFS=$as_save_IFS 3371 test -z "$as_dir" && as_dir=. 3372 for ac_prog in egrep; do 3373 for ac_exec_ext in '' $ac_executable_extensions; do 3374 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3375 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3376 # Check for GNU ac_path_EGREP and select it if it is found. 3377 # Check for GNU $ac_path_EGREP 3378 case `"$ac_path_EGREP" --version 2>&1` in 3379 *GNU*) 3380 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3381 *) 3382 ac_count=0 3383 $as_echo_n 0123456789 >"conftest.in" 3384 while : 3385 do 3386 cat "conftest.in" "conftest.in" >"conftest.tmp" 3387 mv "conftest.tmp" "conftest.in" 3388 cp "conftest.in" "conftest.nl" 3389 $as_echo 'EGREP' >> "conftest.nl" 3390 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3392 as_fn_arith $ac_count + 1 && ac_count=$as_val 3393 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3394 # Best one so far, save it but keep looking for a better one 3395 ac_cv_path_EGREP="$ac_path_EGREP" 3396 ac_path_EGREP_max=$ac_count 3397 fi 3398 # 10*(2^10) chars as input seems more than enough 3399 test $ac_count -gt 10 && break 3400 done 3401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3402 esac 3403 3404 $ac_path_EGREP_found && break 3 3405 done 3406 done 3407 done 3408 IFS=$as_save_IFS 3409 if test -z "$ac_cv_path_EGREP"; then 3410 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3411 fi 3412 else 3413 ac_cv_path_EGREP=$EGREP 3414 fi 3415 3416 fi 3417 fi 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3419 $as_echo "$ac_cv_path_EGREP" >&6; } 3420 EGREP="$ac_cv_path_EGREP" 3421 3422 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3424 $as_echo_n "checking for ANSI C header files... " >&6; } 3425 if test "${ac_cv_header_stdc+set}" = set; then : 3426 $as_echo_n "(cached) " >&6 3427 else 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2735 3429 /* end confdefs.h. */ 2736 3430 #include <stdlib.h> … … 2747 3441 } 2748 3442 _ACEOF 2749 rm -f conftest.$ac_objext 2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2751 (eval $ac_compile) 2>conftest.er1 2752 ac_status=$? 2753 grep -v '^ *+' conftest.er1 >conftest.err 2754 rm -f conftest.er1 2755 cat conftest.err >&5 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2757 (exit $ac_status); } && 2758 { ac_try='test -z "$ac_c_werror_flag" 2759 || test ! -s conftest.err' 2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2761 (eval $ac_try) 2>&5 2762 ac_status=$? 2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2764 (exit $ac_status); }; } && 2765 { ac_try='test -s conftest.$ac_objext' 2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2767 (eval $ac_try) 2>&5 2768 ac_status=$? 2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2770 (exit $ac_status); }; }; then 3443 if ac_fn_c_try_compile "$LINENO"; then : 2771 3444 ac_cv_header_stdc=yes 2772 3445 else 2773 echo "$as_me: failed program was:" >&5 2774 sed 's/^/| /' conftest.$ac_ext >&5 2775 2776 ac_cv_header_stdc=no 2777 fi 2778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3446 ac_cv_header_stdc=no 3447 fi 3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2779 3449 2780 3450 if test $ac_cv_header_stdc = yes; then 2781 3451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2782 cat >conftest.$ac_ext <<_ACEOF 2783 /* confdefs.h. */ 2784 _ACEOF 2785 cat confdefs.h >>conftest.$ac_ext 2786 cat >>conftest.$ac_ext <<_ACEOF 3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2787 3453 /* end confdefs.h. */ 2788 3454 #include <string.h> … … 2790 3456 _ACEOF 2791 3457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2792 $EGREP "memchr" >/dev/null 2>&1; then 2793 : 3458 $EGREP "memchr" >/dev/null 2>&1; then : 3459 2794 3460 else 2795 3461 ac_cv_header_stdc=no … … 2801 3467 if test $ac_cv_header_stdc = yes; then 2802 3468 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2803 cat >conftest.$ac_ext <<_ACEOF 2804 /* confdefs.h. */ 2805 _ACEOF 2806 cat confdefs.h >>conftest.$ac_ext 2807 cat >>conftest.$ac_ext <<_ACEOF 3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2808 3470 /* end confdefs.h. */ 2809 3471 #include <stdlib.h> … … 2811 3473 _ACEOF 2812 3474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2813 $EGREP "free" >/dev/null 2>&1; then 2814 : 3475 $EGREP "free" >/dev/null 2>&1; then : 3476 2815 3477 else 2816 3478 ac_cv_header_stdc=no … … 2822 3484 if test $ac_cv_header_stdc = yes; then 2823 3485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2824 if test "$cross_compiling" = yes; then 3486 if test "$cross_compiling" = yes; then : 2825 3487 : 2826 3488 else 2827 cat >conftest.$ac_ext <<_ACEOF 2828 /* confdefs.h. */ 2829 _ACEOF 2830 cat confdefs.h >>conftest.$ac_ext 2831 cat >>conftest.$ac_ext <<_ACEOF 3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2832 3490 /* end confdefs.h. */ 2833 3491 #include <ctype.h> 3492 #include <stdlib.h> 2834 3493 #if ((' ' & 0x0FF) == 0x020) 2835 3494 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') … … 2851 3510 if (XOR (islower (i), ISLOWER (i)) 2852 3511 || toupper (i) != TOUPPER (i)) 2853 exit(2);2854 exit (0);3512 return 2; 3513 return 0; 2855 3514 } 2856 3515 _ACEOF 2857 rm -f conftest$ac_exeext 2858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2859 (eval $ac_link) 2>&5 2860 ac_status=$? 2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2864 (eval $ac_try) 2>&5 2865 ac_status=$? 2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2867 (exit $ac_status); }; }; then 2868 : 2869 else 2870 echo "$as_me: program exited with status $ac_status" >&5 2871 echo "$as_me: failed program was:" >&5 2872 sed 's/^/| /' conftest.$ac_ext >&5 2873 2874 ( exit $ac_status ) 2875 ac_cv_header_stdc=no 2876 fi 2877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2878 fi 2879 fi 2880 fi 2881 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2882 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3516 if ac_fn_c_try_run "$LINENO"; then : 3517 3518 else 3519 ac_cv_header_stdc=no 3520 fi 3521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3522 conftest.$ac_objext conftest.beam conftest.$ac_ext 3523 fi 3524 3525 fi 3526 fi 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3528 $as_echo "$ac_cv_header_stdc" >&6; } 2883 3529 if test $ac_cv_header_stdc = yes; then 2884 3530 2885 cat >>confdefs.h <<\_ACEOF 2886 #define STDC_HEADERS 1 2887 _ACEOF 3531 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 2888 3532 2889 3533 fi 2890 3534 2891 3535 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 3536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 2902 3537 inttypes.h stdint.h unistd.h 2903 do 2904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2905 echo "$as_me:$LINENO: checking for $ac_header" >&5 2906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2907 if eval "test \"\${$as_ac_Header+set}\" = set"; then 2908 echo $ECHO_N "(cached) $ECHO_C" >&6 2909 else 2910 cat >conftest.$ac_ext <<_ACEOF 2911 /* confdefs.h. */ 2912 _ACEOF 2913 cat confdefs.h >>conftest.$ac_ext 2914 cat >>conftest.$ac_ext <<_ACEOF 2915 /* end confdefs.h. */ 2916 $ac_includes_default 2917 2918 #include <$ac_header> 2919 _ACEOF 2920 rm -f conftest.$ac_objext 2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2922 (eval $ac_compile) 2>conftest.er1 2923 ac_status=$? 2924 grep -v '^ *+' conftest.er1 >conftest.err 2925 rm -f conftest.er1 2926 cat conftest.err >&5 2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2928 (exit $ac_status); } && 2929 { ac_try='test -z "$ac_c_werror_flag" 2930 || test ! -s conftest.err' 2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2932 (eval $ac_try) 2>&5 2933 ac_status=$? 2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2935 (exit $ac_status); }; } && 2936 { ac_try='test -s conftest.$ac_objext' 2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2938 (eval $ac_try) 2>&5 2939 ac_status=$? 2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2941 (exit $ac_status); }; }; then 2942 eval "$as_ac_Header=yes" 2943 else 2944 echo "$as_me: failed program was:" >&5 2945 sed 's/^/| /' conftest.$ac_ext >&5 2946 2947 eval "$as_ac_Header=no" 2948 fi 2949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2950 fi 2951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 2952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2953 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3538 do : 3539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3540 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3541 " 3542 eval as_val=\$$as_ac_Header 3543 if test "x$as_val" = x""yes; then : 2954 3544 cat >>confdefs.h <<_ACEOF 2955 #define ` echo "HAVE_$ac_header" | $as_tr_cpp` 13545 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 2956 3546 _ACEOF 2957 3547 … … 2961 3551 2962 3552 2963 echo "$as_me:$LINENO: checking for void *" >&5 2964 echo $ECHO_N "checking for void *... $ECHO_C" >&6 2965 if test "${ac_cv_type_void_p+set}" = set; then 2966 echo $ECHO_N "(cached) $ECHO_C" >&6 2967 else 2968 cat >conftest.$ac_ext <<_ACEOF 2969 /* confdefs.h. */ 2970 _ACEOF 2971 cat confdefs.h >>conftest.$ac_ext 2972 cat >>conftest.$ac_ext <<_ACEOF 2973 /* end confdefs.h. */ 2974 $ac_includes_default 2975 int 2976 main () 2977 { 2978 if ((void * *) 0) 2979 return 0; 2980 if (sizeof (void *)) 2981 return 0; 2982 ; 2983 return 0; 2984 } 2985 _ACEOF 2986 rm -f conftest.$ac_objext 2987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2988 (eval $ac_compile) 2>conftest.er1 2989 ac_status=$? 2990 grep -v '^ *+' conftest.er1 >conftest.err 2991 rm -f conftest.er1 2992 cat conftest.err >&5 2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2994 (exit $ac_status); } && 2995 { ac_try='test -z "$ac_c_werror_flag" 2996 || test ! -s conftest.err' 2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2998 (eval $ac_try) 2>&5 2999 ac_status=$? 3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3001 (exit $ac_status); }; } && 3002 { ac_try='test -s conftest.$ac_objext' 3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3004 (eval $ac_try) 2>&5 3005 ac_status=$? 3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3007 (exit $ac_status); }; }; then 3008 ac_cv_type_void_p=yes 3009 else 3010 echo "$as_me: failed program was:" >&5 3011 sed 's/^/| /' conftest.$ac_ext >&5 3012 3013 ac_cv_type_void_p=no 3014 fi 3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3016 fi 3017 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 3018 echo "${ECHO_T}$ac_cv_type_void_p" >&6 3019 3020 echo "$as_me:$LINENO: checking size of void *" >&5 3021 echo $ECHO_N "checking size of void *... $ECHO_C" >&6 3022 if test "${ac_cv_sizeof_void_p+set}" = set; then 3023 echo $ECHO_N "(cached) $ECHO_C" >&6 3553 # The cast to long int works around a bug in the HP C Compiler 3554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3556 # This bug is HP SR number 8606223364. 3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 3558 $as_echo_n "checking size of void *... " >&6; } 3559 if test "${ac_cv_sizeof_void_p+set}" = set; then : 3560 $as_echo_n "(cached) " >&6 3561 else 3562 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 3563 3024 3564 else 3025 3565 if test "$ac_cv_type_void_p" = yes; then 3026 # The cast to unsigned long works around a bug in the HP C Compiler 3027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3029 # This bug is HP SR number 8606223364. 3030 if test "$cross_compiling" = yes; then 3031 # Depending upon the size, compute the lo and hi bounds. 3032 cat >conftest.$ac_ext <<_ACEOF 3033 /* confdefs.h. */ 3034 _ACEOF 3035 cat confdefs.h >>conftest.$ac_ext 3036 cat >>conftest.$ac_ext <<_ACEOF 3037 /* end confdefs.h. */ 3038 $ac_includes_default 3039 int 3040 main () 3041 { 3042 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; 3043 test_array [0] = 0 3044 3045 ; 3046 return 0; 3047 } 3048 _ACEOF 3049 rm -f conftest.$ac_objext 3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3051 (eval $ac_compile) 2>conftest.er1 3052 ac_status=$? 3053 grep -v '^ *+' conftest.er1 >conftest.err 3054 rm -f conftest.er1 3055 cat conftest.err >&5 3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3057 (exit $ac_status); } && 3058 { ac_try='test -z "$ac_c_werror_flag" 3059 || test ! -s conftest.err' 3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3061 (eval $ac_try) 2>&5 3062 ac_status=$? 3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3064 (exit $ac_status); }; } && 3065 { ac_try='test -s conftest.$ac_objext' 3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3067 (eval $ac_try) 2>&5 3068 ac_status=$? 3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 (exit $ac_status); }; }; then 3071 ac_lo=0 ac_mid=0 3072 while :; do 3073 cat >conftest.$ac_ext <<_ACEOF 3074 /* confdefs.h. */ 3075 _ACEOF 3076 cat confdefs.h >>conftest.$ac_ext 3077 cat >>conftest.$ac_ext <<_ACEOF 3078 /* end confdefs.h. */ 3079 $ac_includes_default 3080 int 3081 main () 3082 { 3083 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 3084 test_array [0] = 0 3085 3086 ; 3087 return 0; 3088 } 3089 _ACEOF 3090 rm -f conftest.$ac_objext 3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3092 (eval $ac_compile) 2>conftest.er1 3093 ac_status=$? 3094 grep -v '^ *+' conftest.er1 >conftest.err 3095 rm -f conftest.er1 3096 cat conftest.err >&5 3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); } && 3099 { ac_try='test -z "$ac_c_werror_flag" 3100 || test ! -s conftest.err' 3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3102 (eval $ac_try) 2>&5 3103 ac_status=$? 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); }; } && 3106 { ac_try='test -s conftest.$ac_objext' 3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3108 (eval $ac_try) 2>&5 3109 ac_status=$? 3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3111 (exit $ac_status); }; }; then 3112 ac_hi=$ac_mid; break 3113 else 3114 echo "$as_me: failed program was:" >&5 3115 sed 's/^/| /' conftest.$ac_ext >&5 3116 3117 ac_lo=`expr $ac_mid + 1` 3118 if test $ac_lo -le $ac_mid; then 3119 ac_lo= ac_hi= 3120 break 3121 fi 3122 ac_mid=`expr 2 '*' $ac_mid + 1` 3123 fi 3124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3125 done 3126 else 3127 echo "$as_me: failed program was:" >&5 3128 sed 's/^/| /' conftest.$ac_ext >&5 3129 3130 cat >conftest.$ac_ext <<_ACEOF 3131 /* confdefs.h. */ 3132 _ACEOF 3133 cat confdefs.h >>conftest.$ac_ext 3134 cat >>conftest.$ac_ext <<_ACEOF 3135 /* end confdefs.h. */ 3136 $ac_includes_default 3137 int 3138 main () 3139 { 3140 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; 3141 test_array [0] = 0 3142 3143 ; 3144 return 0; 3145 } 3146 _ACEOF 3147 rm -f conftest.$ac_objext 3148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3149 (eval $ac_compile) 2>conftest.er1 3150 ac_status=$? 3151 grep -v '^ *+' conftest.er1 >conftest.err 3152 rm -f conftest.er1 3153 cat conftest.err >&5 3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3155 (exit $ac_status); } && 3156 { ac_try='test -z "$ac_c_werror_flag" 3157 || test ! -s conftest.err' 3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3159 (eval $ac_try) 2>&5 3160 ac_status=$? 3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3162 (exit $ac_status); }; } && 3163 { ac_try='test -s conftest.$ac_objext' 3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3165 (eval $ac_try) 2>&5 3166 ac_status=$? 3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3168 (exit $ac_status); }; }; then 3169 ac_hi=-1 ac_mid=-1 3170 while :; do 3171 cat >conftest.$ac_ext <<_ACEOF 3172 /* confdefs.h. */ 3173 _ACEOF 3174 cat confdefs.h >>conftest.$ac_ext 3175 cat >>conftest.$ac_ext <<_ACEOF 3176 /* end confdefs.h. */ 3177 $ac_includes_default 3178 int 3179 main () 3180 { 3181 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; 3182 test_array [0] = 0 3183 3184 ; 3185 return 0; 3186 } 3187 _ACEOF 3188 rm -f conftest.$ac_objext 3189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3190 (eval $ac_compile) 2>conftest.er1 3191 ac_status=$? 3192 grep -v '^ *+' conftest.er1 >conftest.err 3193 rm -f conftest.er1 3194 cat conftest.err >&5 3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 (exit $ac_status); } && 3197 { ac_try='test -z "$ac_c_werror_flag" 3198 || test ! -s conftest.err' 3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3200 (eval $ac_try) 2>&5 3201 ac_status=$? 3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3203 (exit $ac_status); }; } && 3204 { ac_try='test -s conftest.$ac_objext' 3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3206 (eval $ac_try) 2>&5 3207 ac_status=$? 3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3209 (exit $ac_status); }; }; then 3210 ac_lo=$ac_mid; break 3211 else 3212 echo "$as_me: failed program was:" >&5 3213 sed 's/^/| /' conftest.$ac_ext >&5 3214 3215 ac_hi=`expr '(' $ac_mid ')' - 1` 3216 if test $ac_mid -le $ac_hi; then 3217 ac_lo= ac_hi= 3218 break 3219 fi 3220 ac_mid=`expr 2 '*' $ac_mid` 3221 fi 3222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3223 done 3224 else 3225 echo "$as_me: failed program was:" >&5 3226 sed 's/^/| /' conftest.$ac_ext >&5 3227 3228 ac_lo= ac_hi= 3229 fi 3230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3231 fi 3232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3233 # Binary search between lo and hi bounds. 3234 while test "x$ac_lo" != "x$ac_hi"; do 3235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3236 cat >conftest.$ac_ext <<_ACEOF 3237 /* confdefs.h. */ 3238 _ACEOF 3239 cat confdefs.h >>conftest.$ac_ext 3240 cat >>conftest.$ac_ext <<_ACEOF 3241 /* end confdefs.h. */ 3242 $ac_includes_default 3243 int 3244 main () 3245 { 3246 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 3247 test_array [0] = 0 3248 3249 ; 3250 return 0; 3251 } 3252 _ACEOF 3253 rm -f conftest.$ac_objext 3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3255 (eval $ac_compile) 2>conftest.er1 3256 ac_status=$? 3257 grep -v '^ *+' conftest.er1 >conftest.err 3258 rm -f conftest.er1 3259 cat conftest.err >&5 3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3261 (exit $ac_status); } && 3262 { ac_try='test -z "$ac_c_werror_flag" 3263 || test ! -s conftest.err' 3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3265 (eval $ac_try) 2>&5 3266 ac_status=$? 3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3268 (exit $ac_status); }; } && 3269 { ac_try='test -s conftest.$ac_objext' 3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3271 (eval $ac_try) 2>&5 3272 ac_status=$? 3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3274 (exit $ac_status); }; }; then 3275 ac_hi=$ac_mid 3276 else 3277 echo "$as_me: failed program was:" >&5 3278 sed 's/^/| /' conftest.$ac_ext >&5 3279 3280 ac_lo=`expr '(' $ac_mid ')' + 1` 3281 fi 3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3283 done 3284 case $ac_lo in 3285 ?*) ac_cv_sizeof_void_p=$ac_lo;; 3286 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 3287 See \`config.log' for more details." >&5 3288 echo "$as_me: error: cannot compute sizeof (void *), 77 3289 See \`config.log' for more details." >&2;} 3290 { (exit 1); exit 1; }; } ;; 3291 esac 3292 else 3293 if test "$cross_compiling" = yes; then 3294 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 3295 See \`config.log' for more details." >&5 3296 echo "$as_me: error: cannot run test program while cross compiling 3297 See \`config.log' for more details." >&2;} 3298 { (exit 1); exit 1; }; } 3299 else 3300 cat >conftest.$ac_ext <<_ACEOF 3301 /* confdefs.h. */ 3302 _ACEOF 3303 cat confdefs.h >>conftest.$ac_ext 3304 cat >>conftest.$ac_ext <<_ACEOF 3305 /* end confdefs.h. */ 3306 $ac_includes_default 3307 long longval () { return (long) (sizeof (void *)); } 3308 unsigned long ulongval () { return (long) (sizeof (void *)); } 3309 #include <stdio.h> 3310 #include <stdlib.h> 3311 int 3312 main () 3313 { 3314 3315 FILE *f = fopen ("conftest.val", "w"); 3316 if (! f) 3317 exit (1); 3318 if (((long) (sizeof (void *))) < 0) 3319 { 3320 long i = longval (); 3321 if (i != ((long) (sizeof (void *)))) 3322 exit (1); 3323 fprintf (f, "%ld\n", i); 3324 } 3325 else 3326 { 3327 unsigned long i = ulongval (); 3328 if (i != ((long) (sizeof (void *)))) 3329 exit (1); 3330 fprintf (f, "%lu\n", i); 3331 } 3332 exit (ferror (f) || fclose (f) != 0); 3333 3334 ; 3335 return 0; 3336 } 3337 _ACEOF 3338 rm -f conftest$ac_exeext 3339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3340 (eval $ac_link) 2>&5 3341 ac_status=$? 3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3345 (eval $ac_try) 2>&5 3346 ac_status=$? 3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3348 (exit $ac_status); }; }; then 3349 ac_cv_sizeof_void_p=`cat conftest.val` 3350 else 3351 echo "$as_me: program exited with status $ac_status" >&5 3352 echo "$as_me: failed program was:" >&5 3353 sed 's/^/| /' conftest.$ac_ext >&5 3354 3355 ( exit $ac_status ) 3356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 3357 See \`config.log' for more details." >&5 3358 echo "$as_me: error: cannot compute sizeof (void *), 77 3359 See \`config.log' for more details." >&2;} 3360 { (exit 1); exit 1; }; } 3361 fi 3362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3363 fi 3364 fi 3365 rm -f conftest.val 3366 else 3367 ac_cv_sizeof_void_p=0 3368 fi 3369 fi 3370 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 3371 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3568 { as_fn_set_status 77 3569 as_fn_error "cannot compute sizeof (void *) 3570 See \`config.log' for more details." "$LINENO" 5; }; } 3571 else 3572 ac_cv_sizeof_void_p=0 3573 fi 3574 fi 3575 3576 fi 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 3578 $as_echo "$ac_cv_sizeof_void_p" >&6; } 3579 3580 3581 3372 3582 cat >>confdefs.h <<_ACEOF 3373 3583 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p … … 3375 3585 3376 3586 3377 echo "$as_me:$LINENO: checking for int" >&5 3378 echo $ECHO_N "checking for int... $ECHO_C" >&6 3379 if test "${ac_cv_type_int+set}" = set; then 3380 echo $ECHO_N "(cached) $ECHO_C" >&6 3381 else 3382 cat >conftest.$ac_ext <<_ACEOF 3383 /* confdefs.h. */ 3384 _ACEOF 3385 cat confdefs.h >>conftest.$ac_ext 3386 cat >>conftest.$ac_ext <<_ACEOF 3387 /* end confdefs.h. */ 3388 $ac_includes_default 3389 int 3390 main () 3391 { 3392 if ((int *) 0) 3393 return 0; 3394 if (sizeof (int)) 3395 return 0; 3396 ; 3397 return 0; 3398 } 3399 _ACEOF 3400 rm -f conftest.$ac_objext 3401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3402 (eval $ac_compile) 2>conftest.er1 3403 ac_status=$? 3404 grep -v '^ *+' conftest.er1 >conftest.err 3405 rm -f conftest.er1 3406 cat conftest.err >&5 3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3408 (exit $ac_status); } && 3409 { ac_try='test -z "$ac_c_werror_flag" 3410 || test ! -s conftest.err' 3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3412 (eval $ac_try) 2>&5 3413 ac_status=$? 3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3415 (exit $ac_status); }; } && 3416 { ac_try='test -s conftest.$ac_objext' 3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3418 (eval $ac_try) 2>&5 3419 ac_status=$? 3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3421 (exit $ac_status); }; }; then 3422 ac_cv_type_int=yes 3423 else 3424 echo "$as_me: failed program was:" >&5 3425 sed 's/^/| /' conftest.$ac_ext >&5 3426 3427 ac_cv_type_int=no 3428 fi 3429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3430 fi 3431 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 3432 echo "${ECHO_T}$ac_cv_type_int" >&6 3433 3434 echo "$as_me:$LINENO: checking size of int" >&5 3435 echo $ECHO_N "checking size of int... $ECHO_C" >&6 3436 if test "${ac_cv_sizeof_int+set}" = set; then 3437 echo $ECHO_N "(cached) $ECHO_C" >&6 3587 # The cast to long int works around a bug in the HP C Compiler 3588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3590 # This bug is HP SR number 8606223364. 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 3592 $as_echo_n "checking size of int... " >&6; } 3593 if test "${ac_cv_sizeof_int+set}" = set; then : 3594 $as_echo_n "(cached) " >&6 3595 else 3596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 3597 3438 3598 else 3439 3599 if test "$ac_cv_type_int" = yes; then 3440 # The cast to unsigned long works around a bug in the HP C Compiler 3441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3443 # This bug is HP SR number 8606223364. 3444 if test "$cross_compiling" = yes; then 3445 # Depending upon the size, compute the lo and hi bounds. 3446 cat >conftest.$ac_ext <<_ACEOF 3447 /* confdefs.h. */ 3448 _ACEOF 3449 cat confdefs.h >>conftest.$ac_ext 3450 cat >>conftest.$ac_ext <<_ACEOF 3451 /* end confdefs.h. */ 3452 $ac_includes_default 3453 int 3454 main () 3455 { 3456 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 3457 test_array [0] = 0 3458 3459 ; 3460 return 0; 3461 } 3462 _ACEOF 3463 rm -f conftest.$ac_objext 3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3465 (eval $ac_compile) 2>conftest.er1 3466 ac_status=$? 3467 grep -v '^ *+' conftest.er1 >conftest.err 3468 rm -f conftest.er1 3469 cat conftest.err >&5 3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3471 (exit $ac_status); } && 3472 { ac_try='test -z "$ac_c_werror_flag" 3473 || test ! -s conftest.err' 3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3475 (eval $ac_try) 2>&5 3476 ac_status=$? 3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3478 (exit $ac_status); }; } && 3479 { ac_try='test -s conftest.$ac_objext' 3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3481 (eval $ac_try) 2>&5 3482 ac_status=$? 3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3484 (exit $ac_status); }; }; then 3485 ac_lo=0 ac_mid=0 3486 while :; do 3487 cat >conftest.$ac_ext <<_ACEOF 3488 /* confdefs.h. */ 3489 _ACEOF 3490 cat confdefs.h >>conftest.$ac_ext 3491 cat >>conftest.$ac_ext <<_ACEOF 3492 /* end confdefs.h. */ 3493 $ac_includes_default 3494 int 3495 main () 3496 { 3497 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 3498 test_array [0] = 0 3499 3500 ; 3501 return 0; 3502 } 3503 _ACEOF 3504 rm -f conftest.$ac_objext 3505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3506 (eval $ac_compile) 2>conftest.er1 3507 ac_status=$? 3508 grep -v '^ *+' conftest.er1 >conftest.err 3509 rm -f conftest.er1 3510 cat conftest.err >&5 3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3512 (exit $ac_status); } && 3513 { ac_try='test -z "$ac_c_werror_flag" 3514 || test ! -s conftest.err' 3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3516 (eval $ac_try) 2>&5 3517 ac_status=$? 3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3519 (exit $ac_status); }; } && 3520 { ac_try='test -s conftest.$ac_objext' 3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3522 (eval $ac_try) 2>&5 3523 ac_status=$? 3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3525 (exit $ac_status); }; }; then 3526 ac_hi=$ac_mid; break 3527 else 3528 echo "$as_me: failed program was:" >&5 3529 sed 's/^/| /' conftest.$ac_ext >&5 3530 3531 ac_lo=`expr $ac_mid + 1` 3532 if test $ac_lo -le $ac_mid; then 3533 ac_lo= ac_hi= 3534 break 3535 fi 3536 ac_mid=`expr 2 '*' $ac_mid + 1` 3537 fi 3538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3539 done 3540 else 3541 echo "$as_me: failed program was:" >&5 3542 sed 's/^/| /' conftest.$ac_ext >&5 3543 3544 cat >conftest.$ac_ext <<_ACEOF 3545 /* confdefs.h. */ 3546 _ACEOF 3547 cat confdefs.h >>conftest.$ac_ext 3548 cat >>conftest.$ac_ext <<_ACEOF 3549 /* end confdefs.h. */ 3550 $ac_includes_default 3551 int 3552 main () 3553 { 3554 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 3555 test_array [0] = 0 3556 3557 ; 3558 return 0; 3559 } 3560 _ACEOF 3561 rm -f conftest.$ac_objext 3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3563 (eval $ac_compile) 2>conftest.er1 3564 ac_status=$? 3565 grep -v '^ *+' conftest.er1 >conftest.err 3566 rm -f conftest.er1 3567 cat conftest.err >&5 3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3569 (exit $ac_status); } && 3570 { ac_try='test -z "$ac_c_werror_flag" 3571 || test ! -s conftest.err' 3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3573 (eval $ac_try) 2>&5 3574 ac_status=$? 3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3576 (exit $ac_status); }; } && 3577 { ac_try='test -s conftest.$ac_objext' 3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3579 (eval $ac_try) 2>&5 3580 ac_status=$? 3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3582 (exit $ac_status); }; }; then 3583 ac_hi=-1 ac_mid=-1 3584 while :; do 3585 cat >conftest.$ac_ext <<_ACEOF 3586 /* confdefs.h. */ 3587 _ACEOF 3588 cat confdefs.h >>conftest.$ac_ext 3589 cat >>conftest.$ac_ext <<_ACEOF 3590 /* end confdefs.h. */ 3591 $ac_includes_default 3592 int 3593 main () 3594 { 3595 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 3596 test_array [0] = 0 3597 3598 ; 3599 return 0; 3600 } 3601 _ACEOF 3602 rm -f conftest.$ac_objext 3603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3604 (eval $ac_compile) 2>conftest.er1 3605 ac_status=$? 3606 grep -v '^ *+' conftest.er1 >conftest.err 3607 rm -f conftest.er1 3608 cat conftest.err >&5 3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3610 (exit $ac_status); } && 3611 { ac_try='test -z "$ac_c_werror_flag" 3612 || test ! -s conftest.err' 3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3614 (eval $ac_try) 2>&5 3615 ac_status=$? 3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 (exit $ac_status); }; } && 3618 { ac_try='test -s conftest.$ac_objext' 3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3620 (eval $ac_try) 2>&5 3621 ac_status=$? 3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3623 (exit $ac_status); }; }; then 3624 ac_lo=$ac_mid; break 3625 else 3626 echo "$as_me: failed program was:" >&5 3627 sed 's/^/| /' conftest.$ac_ext >&5 3628 3629 ac_hi=`expr '(' $ac_mid ')' - 1` 3630 if test $ac_mid -le $ac_hi; then 3631 ac_lo= ac_hi= 3632 break 3633 fi 3634 ac_mid=`expr 2 '*' $ac_mid` 3635 fi 3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3637 done 3638 else 3639 echo "$as_me: failed program was:" >&5 3640 sed 's/^/| /' conftest.$ac_ext >&5 3641 3642 ac_lo= ac_hi= 3643 fi 3644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3645 fi 3646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3647 # Binary search between lo and hi bounds. 3648 while test "x$ac_lo" != "x$ac_hi"; do 3649 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3650 cat >conftest.$ac_ext <<_ACEOF 3651 /* confdefs.h. */ 3652 _ACEOF 3653 cat confdefs.h >>conftest.$ac_ext 3654 cat >>conftest.$ac_ext <<_ACEOF 3655 /* end confdefs.h. */ 3656 $ac_includes_default 3657 int 3658 main () 3659 { 3660 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 3661 test_array [0] = 0 3662 3663 ; 3664 return 0; 3665 } 3666 _ACEOF 3667 rm -f conftest.$ac_objext 3668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3669 (eval $ac_compile) 2>conftest.er1 3670 ac_status=$? 3671 grep -v '^ *+' conftest.er1 >conftest.err 3672 rm -f conftest.er1 3673 cat conftest.err >&5 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675 (exit $ac_status); } && 3676 { ac_try='test -z "$ac_c_werror_flag" 3677 || test ! -s conftest.err' 3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3679 (eval $ac_try) 2>&5 3680 ac_status=$? 3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3682 (exit $ac_status); }; } && 3683 { ac_try='test -s conftest.$ac_objext' 3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3685 (eval $ac_try) 2>&5 3686 ac_status=$? 3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3688 (exit $ac_status); }; }; then 3689 ac_hi=$ac_mid 3690 else 3691 echo "$as_me: failed program was:" >&5 3692 sed 's/^/| /' conftest.$ac_ext >&5 3693 3694 ac_lo=`expr '(' $ac_mid ')' + 1` 3695 fi 3696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3697 done 3698 case $ac_lo in 3699 ?*) ac_cv_sizeof_int=$ac_lo;; 3700 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 3701 See \`config.log' for more details." >&5 3702 echo "$as_me: error: cannot compute sizeof (int), 77 3703 See \`config.log' for more details." >&2;} 3704 { (exit 1); exit 1; }; } ;; 3705 esac 3706 else 3707 if test "$cross_compiling" = yes; then 3708 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 3709 See \`config.log' for more details." >&5 3710 echo "$as_me: error: cannot run test program while cross compiling 3711 See \`config.log' for more details." >&2;} 3712 { (exit 1); exit 1; }; } 3713 else 3714 cat >conftest.$ac_ext <<_ACEOF 3715 /* confdefs.h. */ 3716 _ACEOF 3717 cat confdefs.h >>conftest.$ac_ext 3718 cat >>conftest.$ac_ext <<_ACEOF 3719 /* end confdefs.h. */ 3720 $ac_includes_default 3721 long longval () { return (long) (sizeof (int)); } 3722 unsigned long ulongval () { return (long) (sizeof (int)); } 3723 #include <stdio.h> 3724 #include <stdlib.h> 3725 int 3726 main () 3727 { 3728 3729 FILE *f = fopen ("conftest.val", "w"); 3730 if (! f) 3731 exit (1); 3732 if (((long) (sizeof (int))) < 0) 3733 { 3734 long i = longval (); 3735 if (i != ((long) (sizeof (int)))) 3736 exit (1); 3737 fprintf (f, "%ld\n", i); 3738 } 3739 else 3740 { 3741 unsigned long i = ulongval (); 3742 if (i != ((long) (sizeof (int)))) 3743 exit (1); 3744 fprintf (f, "%lu\n", i); 3745 } 3746 exit (ferror (f) || fclose (f) != 0); 3747 3748 ; 3749 return 0; 3750 } 3751 _ACEOF 3752 rm -f conftest$ac_exeext 3753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3754 (eval $ac_link) 2>&5 3755 ac_status=$? 3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3759 (eval $ac_try) 2>&5 3760 ac_status=$? 3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3762 (exit $ac_status); }; }; then 3763 ac_cv_sizeof_int=`cat conftest.val` 3764 else 3765 echo "$as_me: program exited with status $ac_status" >&5 3766 echo "$as_me: failed program was:" >&5 3767 sed 's/^/| /' conftest.$ac_ext >&5 3768 3769 ( exit $ac_status ) 3770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 3771 See \`config.log' for more details." >&5 3772 echo "$as_me: error: cannot compute sizeof (int), 77 3773 See \`config.log' for more details." >&2;} 3774 { (exit 1); exit 1; }; } 3775 fi 3776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3777 fi 3778 fi 3779 rm -f conftest.val 3780 else 3781 ac_cv_sizeof_int=0 3782 fi 3783 fi 3784 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 3785 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 3600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3602 { as_fn_set_status 77 3603 as_fn_error "cannot compute sizeof (int) 3604 See \`config.log' for more details." "$LINENO" 5; }; } 3605 else 3606 ac_cv_sizeof_int=0 3607 fi 3608 fi 3609 3610 fi 3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 3612 $as_echo "$ac_cv_sizeof_int" >&6; } 3613 3614 3615 3786 3616 cat >>confdefs.h <<_ACEOF 3787 3617 #define SIZEOF_INT $ac_cv_sizeof_int … … 3789 3619 3790 3620 3791 echo "$as_me:$LINENO: checking for long" >&5 3792 echo $ECHO_N "checking for long... $ECHO_C" >&6 3793 if test "${ac_cv_type_long+set}" = set; then 3794 echo $ECHO_N "(cached) $ECHO_C" >&6 3795 else 3796 cat >conftest.$ac_ext <<_ACEOF 3797 /* confdefs.h. */ 3798 _ACEOF 3799 cat confdefs.h >>conftest.$ac_ext 3800 cat >>conftest.$ac_ext <<_ACEOF 3801 /* end confdefs.h. */ 3802 $ac_includes_default 3803 int 3804 main () 3805 { 3806 if ((long *) 0) 3807 return 0; 3808 if (sizeof (long)) 3809 return 0; 3810 ; 3811 return 0; 3812 } 3813 _ACEOF 3814 rm -f conftest.$ac_objext 3815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3816 (eval $ac_compile) 2>conftest.er1 3817 ac_status=$? 3818 grep -v '^ *+' conftest.er1 >conftest.err 3819 rm -f conftest.er1 3820 cat conftest.err >&5 3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3822 (exit $ac_status); } && 3823 { ac_try='test -z "$ac_c_werror_flag" 3824 || test ! -s conftest.err' 3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3826 (eval $ac_try) 2>&5 3827 ac_status=$? 3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3829 (exit $ac_status); }; } && 3830 { ac_try='test -s conftest.$ac_objext' 3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3832 (eval $ac_try) 2>&5 3833 ac_status=$? 3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3835 (exit $ac_status); }; }; then 3836 ac_cv_type_long=yes 3837 else 3838 echo "$as_me: failed program was:" >&5 3839 sed 's/^/| /' conftest.$ac_ext >&5 3840 3841 ac_cv_type_long=no 3842 fi 3843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3844 fi 3845 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 3846 echo "${ECHO_T}$ac_cv_type_long" >&6 3847 3848 echo "$as_me:$LINENO: checking size of long" >&5 3849 echo $ECHO_N "checking size of long... $ECHO_C" >&6 3850 if test "${ac_cv_sizeof_long+set}" = set; then 3851 echo $ECHO_N "(cached) $ECHO_C" >&6 3621 # The cast to long int works around a bug in the HP C Compiler 3622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3624 # This bug is HP SR number 8606223364. 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 3626 $as_echo_n "checking size of long... " >&6; } 3627 if test "${ac_cv_sizeof_long+set}" = set; then : 3628 $as_echo_n "(cached) " >&6 3629 else 3630 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 3631 3852 3632 else 3853 3633 if test "$ac_cv_type_long" = yes; then 3854 # The cast to unsigned long works around a bug in the HP C Compiler 3855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3857 # This bug is HP SR number 8606223364. 3858 if test "$cross_compiling" = yes; then 3859 # Depending upon the size, compute the lo and hi bounds. 3860 cat >conftest.$ac_ext <<_ACEOF 3861 /* confdefs.h. */ 3862 _ACEOF 3863 cat confdefs.h >>conftest.$ac_ext 3864 cat >>conftest.$ac_ext <<_ACEOF 3865 /* end confdefs.h. */ 3866 $ac_includes_default 3867 int 3868 main () 3869 { 3870 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 3871 test_array [0] = 0 3872 3873 ; 3874 return 0; 3875 } 3876 _ACEOF 3877 rm -f conftest.$ac_objext 3878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3879 (eval $ac_compile) 2>conftest.er1 3880 ac_status=$? 3881 grep -v '^ *+' conftest.er1 >conftest.err 3882 rm -f conftest.er1 3883 cat conftest.err >&5 3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3885 (exit $ac_status); } && 3886 { ac_try='test -z "$ac_c_werror_flag" 3887 || test ! -s conftest.err' 3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3889 (eval $ac_try) 2>&5 3890 ac_status=$? 3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3892 (exit $ac_status); }; } && 3893 { ac_try='test -s conftest.$ac_objext' 3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3895 (eval $ac_try) 2>&5 3896 ac_status=$? 3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3898 (exit $ac_status); }; }; then 3899 ac_lo=0 ac_mid=0 3900 while :; do 3901 cat >conftest.$ac_ext <<_ACEOF 3902 /* confdefs.h. */ 3903 _ACEOF 3904 cat confdefs.h >>conftest.$ac_ext 3905 cat >>conftest.$ac_ext <<_ACEOF 3906 /* end confdefs.h. */ 3907 $ac_includes_default 3908 int 3909 main () 3910 { 3911 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 3912 test_array [0] = 0 3913 3914 ; 3915 return 0; 3916 } 3917 _ACEOF 3918 rm -f conftest.$ac_objext 3919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3920 (eval $ac_compile) 2>conftest.er1 3921 ac_status=$? 3922 grep -v '^ *+' conftest.er1 >conftest.err 3923 rm -f conftest.er1 3924 cat conftest.err >&5 3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3926 (exit $ac_status); } && 3927 { ac_try='test -z "$ac_c_werror_flag" 3928 || test ! -s conftest.err' 3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3930 (eval $ac_try) 2>&5 3931 ac_status=$? 3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3933 (exit $ac_status); }; } && 3934 { ac_try='test -s conftest.$ac_objext' 3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3936 (eval $ac_try) 2>&5 3937 ac_status=$? 3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3939 (exit $ac_status); }; }; then 3940 ac_hi=$ac_mid; break 3941 else 3942 echo "$as_me: failed program was:" >&5 3943 sed 's/^/| /' conftest.$ac_ext >&5 3944 3945 ac_lo=`expr $ac_mid + 1` 3946 if test $ac_lo -le $ac_mid; then 3947 ac_lo= ac_hi= 3948 break 3949 fi 3950 ac_mid=`expr 2 '*' $ac_mid + 1` 3951 fi 3952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3953 done 3954 else 3955 echo "$as_me: failed program was:" >&5 3956 sed 's/^/| /' conftest.$ac_ext >&5 3957 3958 cat >conftest.$ac_ext <<_ACEOF 3959 /* confdefs.h. */ 3960 _ACEOF 3961 cat confdefs.h >>conftest.$ac_ext 3962 cat >>conftest.$ac_ext <<_ACEOF 3963 /* end confdefs.h. */ 3964 $ac_includes_default 3965 int 3966 main () 3967 { 3968 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 3969 test_array [0] = 0 3970 3971 ; 3972 return 0; 3973 } 3974 _ACEOF 3975 rm -f conftest.$ac_objext 3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3977 (eval $ac_compile) 2>conftest.er1 3978 ac_status=$? 3979 grep -v '^ *+' conftest.er1 >conftest.err 3980 rm -f conftest.er1 3981 cat conftest.err >&5 3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3983 (exit $ac_status); } && 3984 { ac_try='test -z "$ac_c_werror_flag" 3985 || test ! -s conftest.err' 3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3987 (eval $ac_try) 2>&5 3988 ac_status=$? 3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3990 (exit $ac_status); }; } && 3991 { ac_try='test -s conftest.$ac_objext' 3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3993 (eval $ac_try) 2>&5 3994 ac_status=$? 3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3996 (exit $ac_status); }; }; then 3997 ac_hi=-1 ac_mid=-1 3998 while :; do 3999 cat >conftest.$ac_ext <<_ACEOF 4000 /* confdefs.h. */ 4001 _ACEOF 4002 cat confdefs.h >>conftest.$ac_ext 4003 cat >>conftest.$ac_ext <<_ACEOF 4004 /* end confdefs.h. */ 4005 $ac_includes_default 4006 int 4007 main () 4008 { 4009 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 4010 test_array [0] = 0 4011 4012 ; 4013 return 0; 4014 } 4015 _ACEOF 4016 rm -f conftest.$ac_objext 4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4018 (eval $ac_compile) 2>conftest.er1 4019 ac_status=$? 4020 grep -v '^ *+' conftest.er1 >conftest.err 4021 rm -f conftest.er1 4022 cat conftest.err >&5 4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4024 (exit $ac_status); } && 4025 { ac_try='test -z "$ac_c_werror_flag" 4026 || test ! -s conftest.err' 4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4028 (eval $ac_try) 2>&5 4029 ac_status=$? 4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4031 (exit $ac_status); }; } && 4032 { ac_try='test -s conftest.$ac_objext' 4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4034 (eval $ac_try) 2>&5 4035 ac_status=$? 4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4037 (exit $ac_status); }; }; then 4038 ac_lo=$ac_mid; break 4039 else 4040 echo "$as_me: failed program was:" >&5 4041 sed 's/^/| /' conftest.$ac_ext >&5 4042 4043 ac_hi=`expr '(' $ac_mid ')' - 1` 4044 if test $ac_mid -le $ac_hi; then 4045 ac_lo= ac_hi= 4046 break 4047 fi 4048 ac_mid=`expr 2 '*' $ac_mid` 4049 fi 4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4051 done 4052 else 4053 echo "$as_me: failed program was:" >&5 4054 sed 's/^/| /' conftest.$ac_ext >&5 4055 4056 ac_lo= ac_hi= 4057 fi 4058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4059 fi 4060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4061 # Binary search between lo and hi bounds. 4062 while test "x$ac_lo" != "x$ac_hi"; do 4063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4064 cat >conftest.$ac_ext <<_ACEOF 4065 /* confdefs.h. */ 4066 _ACEOF 4067 cat confdefs.h >>conftest.$ac_ext 4068 cat >>conftest.$ac_ext <<_ACEOF 4069 /* end confdefs.h. */ 4070 $ac_includes_default 4071 int 4072 main () 4073 { 4074 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 4075 test_array [0] = 0 4076 4077 ; 4078 return 0; 4079 } 4080 _ACEOF 4081 rm -f conftest.$ac_objext 4082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4083 (eval $ac_compile) 2>conftest.er1 4084 ac_status=$? 4085 grep -v '^ *+' conftest.er1 >conftest.err 4086 rm -f conftest.er1 4087 cat conftest.err >&5 4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4089 (exit $ac_status); } && 4090 { ac_try='test -z "$ac_c_werror_flag" 4091 || test ! -s conftest.err' 4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4093 (eval $ac_try) 2>&5 4094 ac_status=$? 4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4096 (exit $ac_status); }; } && 4097 { ac_try='test -s conftest.$ac_objext' 4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4099 (eval $ac_try) 2>&5 4100 ac_status=$? 4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4102 (exit $ac_status); }; }; then 4103 ac_hi=$ac_mid 4104 else 4105 echo "$as_me: failed program was:" >&5 4106 sed 's/^/| /' conftest.$ac_ext >&5 4107 4108 ac_lo=`expr '(' $ac_mid ')' + 1` 4109 fi 4110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4111 done 4112 case $ac_lo in 4113 ?*) ac_cv_sizeof_long=$ac_lo;; 4114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 4115 See \`config.log' for more details." >&5 4116 echo "$as_me: error: cannot compute sizeof (long), 77 4117 See \`config.log' for more details." >&2;} 4118 { (exit 1); exit 1; }; } ;; 4119 esac 4120 else 4121 if test "$cross_compiling" = yes; then 4122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4123 See \`config.log' for more details." >&5 4124 echo "$as_me: error: cannot run test program while cross compiling 4125 See \`config.log' for more details." >&2;} 4126 { (exit 1); exit 1; }; } 4127 else 4128 cat >conftest.$ac_ext <<_ACEOF 4129 /* confdefs.h. */ 4130 _ACEOF 4131 cat confdefs.h >>conftest.$ac_ext 4132 cat >>conftest.$ac_ext <<_ACEOF 4133 /* end confdefs.h. */ 4134 $ac_includes_default 4135 long longval () { return (long) (sizeof (long)); } 4136 unsigned long ulongval () { return (long) (sizeof (long)); } 4137 #include <stdio.h> 4138 #include <stdlib.h> 4139 int 4140 main () 4141 { 4142 4143 FILE *f = fopen ("conftest.val", "w"); 4144 if (! f) 4145 exit (1); 4146 if (((long) (sizeof (long))) < 0) 4147 { 4148 long i = longval (); 4149 if (i != ((long) (sizeof (long)))) 4150 exit (1); 4151 fprintf (f, "%ld\n", i); 4152 } 4153 else 4154 { 4155 unsigned long i = ulongval (); 4156 if (i != ((long) (sizeof (long)))) 4157 exit (1); 4158 fprintf (f, "%lu\n", i); 4159 } 4160 exit (ferror (f) || fclose (f) != 0); 4161 4162 ; 4163 return 0; 4164 } 4165 _ACEOF 4166 rm -f conftest$ac_exeext 4167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4168 (eval $ac_link) 2>&5 4169 ac_status=$? 4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4173 (eval $ac_try) 2>&5 4174 ac_status=$? 4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4176 (exit $ac_status); }; }; then 4177 ac_cv_sizeof_long=`cat conftest.val` 4178 else 4179 echo "$as_me: program exited with status $ac_status" >&5 4180 echo "$as_me: failed program was:" >&5 4181 sed 's/^/| /' conftest.$ac_ext >&5 4182 4183 ( exit $ac_status ) 4184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 4185 See \`config.log' for more details." >&5 4186 echo "$as_me: error: cannot compute sizeof (long), 77 4187 See \`config.log' for more details." >&2;} 4188 { (exit 1); exit 1; }; } 4189 fi 4190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4191 fi 4192 fi 4193 rm -f conftest.val 4194 else 4195 ac_cv_sizeof_long=0 4196 fi 4197 fi 4198 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 4199 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3636 { as_fn_set_status 77 3637 as_fn_error "cannot compute sizeof (long) 3638 See \`config.log' for more details." "$LINENO" 5; }; } 3639 else 3640 ac_cv_sizeof_long=0 3641 fi 3642 fi 3643 3644 fi 3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 3646 $as_echo "$ac_cv_sizeof_long" >&6; } 3647 3648 3649 4200 3650 cat >>confdefs.h <<_ACEOF 4201 3651 #define SIZEOF_LONG $ac_cv_sizeof_long … … 4206 3656 ######## check for the JDK and tools within the JDK 4207 3657 ######## look in the JAVA_HOME environment variable at configure-time 4208 echo "$as_me:$LINENO: checking for the JDK" >&54209 echo $ECHO_N "checking for the JDK... $ECHO_C" >&6 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the JDK" >&5 3659 $as_echo_n "checking for the JDK... " >&6; } 4210 3660 if test "z$JAVA_HOME" != z && 4211 3661 test -d $JAVA_HOME && … … 4213 3663 then 4214 3664 4215 echo "$as_me:$LINENO: result: found in $JAVA_HOME" >&5 4216 echo "${ECHO_T}found in $JAVA_HOME" >&6 4217 else 4218 { { echo "$as_me:$LINENO: error: not found in \$JAVA_HOME" >&5 4219 echo "$as_me: error: not found in \$JAVA_HOME" >&2;} 4220 { (exit 1); exit 1; }; } 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $JAVA_HOME" >&5 3666 $as_echo "found in $JAVA_HOME" >&6; } 3667 else 3668 as_fn_error "not found in \$JAVA_HOME" "$LINENO" 5 4221 3669 fi 4222 3670 … … 4228 3676 # Extract the first word of "javah", so it can be a program name with args. 4229 3677 set dummy javah; ac_word=$2 4230 echo "$as_me:$LINENO: checking for $ac_word" >&54231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4232 if test "${ac_cv_path_javagdbm_cv_path_javah+set}" = set; then 4233 echo $ECHO_N "(cached) $ECHO_C" >&63678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3679 $as_echo_n "checking for $ac_word... " >&6; } 3680 if test "${ac_cv_path_javagdbm_cv_path_javah+set}" = set; then : 3681 $as_echo_n "(cached) " >&6 4234 3682 else 4235 3683 case $javagdbm_cv_path_javah in … … 4243 3691 IFS=$as_save_IFS 4244 3692 test -z "$as_dir" && as_dir=. 4245 for ac_exec_ext in '' $ac_executable_extensions; do4246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then3693 for ac_exec_ext in '' $ac_executable_extensions; do 3694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4247 3695 ac_cv_path_javagdbm_cv_path_javah="$as_dir/$ac_word$ac_exec_ext" 4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4249 3697 break 2 4250 3698 fi 4251 3699 done 4252 done 3700 done 3701 IFS=$as_save_IFS 4253 3702 4254 3703 test -z "$ac_cv_path_javagdbm_cv_path_javah" && ac_cv_path_javagdbm_cv_path_javah="missing_javah" … … 4257 3706 fi 4258 3707 javagdbm_cv_path_javah=$ac_cv_path_javagdbm_cv_path_javah 4259 4260 3708 if test -n "$javagdbm_cv_path_javah"; then 4261 echo "$as_me:$LINENO: result: $javagdbm_cv_path_javah" >&5 4262 echo "${ECHO_T}$javagdbm_cv_path_javah" >&6 4263 else 4264 echo "$as_me:$LINENO: result: no" >&5 4265 echo "${ECHO_T}no" >&6 4266 fi 3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $javagdbm_cv_path_javah" >&5 3710 $as_echo "$javagdbm_cv_path_javah" >&6; } 3711 else 3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3713 $as_echo "no" >&6; } 3714 fi 3715 4267 3716 4268 3717 if test "$javagdbm_cv_path_javah" = missing_javah; then 4269 { { echo "$as_me:$LINENO: error: javah not found." >&5 4270 echo "$as_me: error: javah not found." >&2;} 4271 { (exit 1); exit 1; }; } 3718 as_fn_error "javah not found." "$LINENO" 5 4272 3719 fi 4273 3720 4274 3721 # Extract the first word of "java", so it can be a program name with args. 4275 3722 set dummy java; ac_word=$2 4276 echo "$as_me:$LINENO: checking for $ac_word" >&54277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4278 if test "${ac_cv_path_javagdbm_cv_path_java+set}" = set; then 4279 echo $ECHO_N "(cached) $ECHO_C" >&63723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3724 $as_echo_n "checking for $ac_word... " >&6; } 3725 if test "${ac_cv_path_javagdbm_cv_path_java+set}" = set; then : 3726 $as_echo_n "(cached) " >&6 4280 3727 else 4281 3728 case $javagdbm_cv_path_java in … … 4289 3736 IFS=$as_save_IFS 4290 3737 test -z "$as_dir" && as_dir=. 4291 for ac_exec_ext in '' $ac_executable_extensions; do4292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then3738 for ac_exec_ext in '' $ac_executable_extensions; do 3739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4293 3740 ac_cv_path_javagdbm_cv_path_java="$as_dir/$ac_word$ac_exec_ext" 4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4295 3742 break 2 4296 3743 fi 4297 3744 done 4298 done 3745 done 3746 IFS=$as_save_IFS 4299 3747 4300 3748 test -z "$ac_cv_path_javagdbm_cv_path_java" && ac_cv_path_javagdbm_cv_path_java="missing" … … 4303 3751 fi 4304 3752 javagdbm_cv_path_java=$ac_cv_path_javagdbm_cv_path_java 4305 4306 3753 if test -n "$javagdbm_cv_path_java"; then 4307 echo "$as_me:$LINENO: result: $javagdbm_cv_path_java" >&5 4308 echo "${ECHO_T}$javagdbm_cv_path_java" >&6 4309 else 4310 echo "$as_me:$LINENO: result: no" >&5 4311 echo "${ECHO_T}no" >&6 4312 fi 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $javagdbm_cv_path_java" >&5 3755 $as_echo "$javagdbm_cv_path_java" >&6; } 3756 else 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3758 $as_echo "no" >&6; } 3759 fi 3760 4313 3761 4314 3762 if test "$javagdbm_cv_path_java" = missing; then 4315 { { echo "$as_me:$LINENO: error: java not found." >&5 4316 echo "$as_me: error: java not found." >&2;} 4317 { (exit 1); exit 1; }; } 3763 as_fn_error "java not found." "$LINENO" 5 4318 3764 fi 4319 3765 … … 4329 3775 4330 3776 4331 echo "$as_me:$LINENO: checking that the GDBM library is available" >&54332 echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the GDBM library is available" >&5 3778 $as_echo_n "checking that the GDBM library is available... " >&6; } 4333 3779 if test ! -z "$gdbmdir" ; then 4334 3780 # look in given directory for header file … … 4349 3795 4350 3796 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then 4351 echo "$as_me:$LINENO: result: $gdbmdir" >&54352 echo "${ECHO_T}$gdbmdir" >&6;3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbmdir" >&5 3798 $as_echo "$gdbmdir" >&6; } ; 4353 3799 else 4354 echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&54355 echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;4356 echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&54357 echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5 3801 $as_echo "can't find gdbm.h and libgdbm.a in $gdbmdir" >&6; }; 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for GDBM library in default locations" >&5 3803 $as_echo_n "checking looking for GDBM library in default locations... " >&6; } 4358 3804 fi 4359 3805 fi … … 4362 3808 if test -z "$GDBM_INCLUDE" ; then 4363 3809 # try in system directory 4364 cat >conftest.$ac_ext <<_ACEOF 4365 /* confdefs.h. */ 4366 _ACEOF 4367 cat confdefs.h >>conftest.$ac_ext 4368 cat >>conftest.$ac_ext <<_ACEOF 3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4369 3811 /* end confdefs.h. */ 4370 3812 #include <gdbm.h> … … 4378 3820 } 4379 3821 _ACEOF 4380 rm -f conftest.$ac_objext 4381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4382 (eval $ac_compile) 2>conftest.er1 4383 ac_status=$? 4384 grep -v '^ *+' conftest.er1 >conftest.err 4385 rm -f conftest.er1 4386 cat conftest.err >&5 4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4388 (exit $ac_status); } && 4389 { ac_try='test -z "$ac_c_werror_flag" 4390 || test ! -s conftest.err' 4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4392 (eval $ac_try) 2>&5 4393 ac_status=$? 4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4395 (exit $ac_status); }; } && 4396 { ac_try='test -s conftest.$ac_objext' 4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4398 (eval $ac_try) 2>&5 4399 ac_status=$? 4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4401 (exit $ac_status); }; }; then 3822 if ac_fn_c_try_compile "$LINENO"; then : 4402 3823 success=yes 4403 3824 else 4404 echo "$as_me: failed program was:" >&5 4405 sed 's/^/| /' conftest.$ac_ext >&5 4406 4407 success=no 4408 4409 fi 4410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3825 success=no 3826 3827 fi 3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4411 3829 4412 3830 if test $success = "no"; then … … 4418 3836 CXXFLAGS="$CXXFLAGS -I/usr/local/include" 4419 3837 LIBS="$LIBS -L/usr/local/lib -lgdbm" 4420 cat >conftest.$ac_ext <<_ACEOF 4421 /* confdefs.h. */ 4422 _ACEOF 4423 cat confdefs.h >>conftest.$ac_ext 4424 cat >>conftest.$ac_ext <<_ACEOF 3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4425 3839 /* end confdefs.h. */ 4426 3840 #include <gdbm.h> … … 4435 3849 } 4436 3850 _ACEOF 4437 rm -f conftest.$ac_objext conftest$ac_exeext 4438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4439 (eval $ac_link) 2>conftest.er1 4440 ac_status=$? 4441 grep -v '^ *+' conftest.er1 >conftest.err 4442 rm -f conftest.er1 4443 cat conftest.err >&5 4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4445 (exit $ac_status); } && 4446 { ac_try='test -z "$ac_c_werror_flag" 4447 || test ! -s conftest.err' 4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4449 (eval $ac_try) 2>&5 4450 ac_status=$? 4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4452 (exit $ac_status); }; } && 4453 { ac_try='test -s conftest$ac_exeext' 4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4455 (eval $ac_try) 2>&5 4456 ac_status=$? 4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4458 (exit $ac_status); }; }; then 3851 if ac_fn_c_try_link "$LINENO"; then : 4459 3852 success=/usr/local 4460 3853 else 4461 echo "$as_me: failed program was:" >&5 4462 sed 's/^/| /' conftest.$ac_ext >&5 4463 4464 success=no 4465 4466 fi 4467 rm -f conftest.err conftest.$ac_objext \ 4468 conftest$ac_exeext conftest.$ac_ext 3854 success=no 3855 3856 fi 3857 rm -f core conftest.err conftest.$ac_objext \ 3858 conftest$ac_exeext conftest.$ac_ext 4469 3859 CXXFLAGS=$ac_save_CXXFLAGS 4470 3860 LIBS=$ac_save_LIBS 4471 3861 fi 4472 3862 4473 echo "$as_me:$LINENO: result: $success" >&54474 echo "${ECHO_T}$success" >&6 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $success" >&5 3864 $as_echo "$success" >&6; } 4475 3865 if test $success = "no"; then 4476 { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5 4477 echo "$as_me: error: GDBM Library not available - cannot install" >&2;} 4478 { (exit 1); exit 1; }; } 3866 as_fn_error "GDBM Library not available - cannot install" "$LINENO" 5 4479 3867 fi 4480 3868 fi 4481 cat >>confdefs.h <<\_ACEOF 4482 #define HAVE_LIBGDBM 1 4483 _ACEOF 3869 $as_echo "#define HAVE_LIBGDBM 1" >>confdefs.h 4484 3870 4485 3871 … … 4499 3885 # a non-standard Path 4500 3886 # is there a better way to do this?? 4501 echo "$as_me:$LINENO: checking for OS to set JNI options" >&54502 echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5 3888 $as_echo_n "checking for OS to set JNI options... " >&6; } 4503 3889 # set defaults 4504 3890 JNIINC="" … … 4507 3893 4508 3894 if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then 4509 echo "$as_me:$LINENO: result: Darwin" >&54510 echo "${ECHO_T}Darwin" >&6 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5 3896 $as_echo "Darwin" >&6; } 4511 3897 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ " 4512 3898 JNISUFFIX="jnilib" … … 4514 3900 fi 4515 3901 if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then 4516 echo "$as_me:$LINENO: result: Solaris" >&54517 echo "${ECHO_T}Solaris" >&6 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5 3903 $as_echo "Solaris" >&6; } 4518 3904 JNIINC="-I\$(JAVA_HOME)/include/solaris " 4519 3905 fi 4520 3906 if test "`(uname -s) 2> /dev/null`" = 'Linux'; then 4521 echo "$as_me:$LINENO: result: Linux" >&54522 echo "${ECHO_T}Linux" >&6 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5 3908 $as_echo "Linux" >&6; } 4523 3909 JNIINC="-I\$(JAVA_HOME)/include/linux " 4524 3910 fi … … 4529 3915 4530 3916 # write the output 4531 ac_config_files="$ac_config_files Makefile jni/Makefile java/Makefile" 3917 ac_config_files="$ac_config_files Makefile jni/Makefile java/Makefile" 3918 4532 3919 cat >confcache <<\_ACEOF 4533 3920 # This file is a shell script that caches the results of configure … … 4548 3935 # The following way of writing the cache mishandles newlines in values, 4549 3936 # but we know of no workaround that is simple, portable, and efficient. 4550 # So, don't put newlines in cache variables' values.3937 # So, we kill variables containing newlines. 4551 3938 # Ultrix sh set writes to stderr and can't be redirected directly, 4552 3939 # and sets the high bit in the cache file unless we assign to the vars. 4553 { 3940 ( 3941 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 3942 eval ac_val=\$$ac_var 3943 case $ac_val in #( 3944 *${as_nl}*) 3945 case $ac_var in #( 3946 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3947 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3948 esac 3949 case $ac_var in #( 3950 _ | IFS | as_nl) ;; #( 3951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3952 *) { eval $ac_var=; unset $ac_var;} ;; 3953 esac ;; 3954 esac 3955 done 3956 4554 3957 (set) 2>&1 | 4555 case `(ac_space=' '; set | grep ac_space) 2>&1` in4556 * ac_space=\ *)4557 # `set' does not quote correctly, so add quotes (double-quote4558 # substitution turns \\\\ into \\, and sed turns \\ into \ ).3958 case $as_nl`(ac_space=' '; set) 2>&1` in #( 3959 *${as_nl}ac_space=\ *) 3960 # `set' does not quote correctly, so add quotes: double-quote 3961 # substitution turns \\\\ into \\, and sed turns \\ into \. 4559 3962 sed -n \ 4560 3963 "s/'/'\\\\''/g; 4561 3964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4562 ;; 3965 ;; #( 4563 3966 *) 4564 3967 # `set' quotes correctly as required by POSIX, so do not add quotes. 4565 sed -n \ 4566 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 3968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4567 3969 ;; 4568 esac; 4569 } | 3970 esac | 3971 sort 3972 ) | 4570 3973 sed ' 3974 /^ac_cv_env_/b end 4571 3975 t clear 4572 : 3976 :clear 4573 3977 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4574 3978 t end 4575 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4576 : end' >>confcache 4577 if diff $cache_file confcache >/dev/null 2>&1; then :; else 4578 if test -w $cache_file; then 4579 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 3979 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3980 :end' >>confcache 3981 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 3982 if test -w "$cache_file"; then 3983 test "x$cache_file" != "x/dev/null" && 3984 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 3985 $as_echo "$as_me: updating cache $cache_file" >&6;} 4580 3986 cat confcache >$cache_file 4581 3987 else 4582 echo "not updating unwritable cache $cache_file" 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 3989 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4583 3990 fi 4584 3991 fi … … 4588 3995 # Let make expand exec_prefix. 4589 3996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3997 3998 # Transform confdefs.h into DEFS. 3999 # Protect against shell expansion while executing Makefile rules. 4000 # Protect against Makefile macro expansion. 4001 # 4002 # If the first sed substitution is executed (which looks for macros that 4003 # take arguments), then branch to the quote section. Otherwise, 4004 # look for a macro that doesn't take arguments. 4005 ac_script=' 4006 :mline 4007 /\\$/{ 4008 N 4009 s,\\\n,, 4010 b mline 4011 } 4012 t clear 4013 :clear 4014 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 4015 t quote 4016 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 4017 t quote 4018 b any 4019 :quote 4020 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 4021 s/\[/\\&/g 4022 s/\]/\\&/g 4023 s/\$/$$/g 4024 H 4025 :any 4026 ${ 4027 g 4028 s/^\n// 4029 s/\n/ /g 4030 p 4031 } 4032 ' 4033 DEFS=`sed -n "$ac_script" confdefs.h` 4034 4035 4036 ac_libobjs= 4037 ac_ltlibobjs= 4038 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4039 # 1. Remove the extension, and $U if already installed. 4040 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4041 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 4042 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4043 # will be set to the directory where LIBOBJS objects are built. 4044 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4045 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 4046 done 4047 LIBOBJS=$ac_libobjs 4048 4049 LTLIBOBJS=$ac_ltlibobjs 4050 4051 4052 4053 : ${CONFIG_STATUS=./config.status} 4054 ac_write_fail=0 4055 ac_clean_files_save=$ac_clean_files 4056 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4058 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4059 as_write_fail=0 4060 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 4061 #! $SHELL 4062 # Generated by $as_me. 4063 # Run this file to recreate the current configuration. 4064 # Compiler output produced by configure, useful for debugging 4065 # configure, is in config.log if it exists. 4066 4067 debug=false 4068 ac_cs_recheck=false 4069 ac_cs_silent=false 4070 4071 SHELL=\${CONFIG_SHELL-$SHELL} 4072 export SHELL 4073 _ASEOF 4074 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 4075 ## -------------------- ## 4076 ## M4sh Initialization. ## 4077 ## -------------------- ## 4078 4079 # Be more Bourne compatible 4080 DUALCASE=1; export DUALCASE # for MKS sh 4081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 4082 emulate sh 4083 NULLCMD=: 4084 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 4085 # is contrary to our usage. Disable this feature. 4086 alias -g '${1+"$@"}'='"$@"' 4087 setopt NO_GLOB_SUBST 4088 else 4089 case `(set -o) 2>/dev/null` in #( 4090 *posix*) : 4091 set -o posix ;; #( 4092 *) : 4093 ;; 4094 esac 4095 fi 4096 4097 4098 as_nl=' 4099 ' 4100 export as_nl 4101 # Printing a long string crashes Solaris 7 /usr/bin/printf. 4102 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4103 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4105 # Prefer a ksh shell builtin over an external printf program on Solaris, 4106 # but without wasting forks for bash or zsh. 4107 if test -z "$BASH_VERSION$ZSH_VERSION" \ 4108 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 4109 as_echo='print -r --' 4110 as_echo_n='print -rn --' 4111 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 4112 as_echo='printf %s\n' 4113 as_echo_n='printf %s' 4114 else 4115 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 4116 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 4117 as_echo_n='/usr/ucb/echo -n' 4118 else 4119 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 4120 as_echo_n_body='eval 4121 arg=$1; 4122 case $arg in #( 4123 *"$as_nl"*) 4124 expr "X$arg" : "X\\(.*\\)$as_nl"; 4125 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 4126 esac; 4127 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 4128 ' 4129 export as_echo_n_body 4130 as_echo_n='sh -c $as_echo_n_body as_echo' 4131 fi 4132 export as_echo_body 4133 as_echo='sh -c $as_echo_body as_echo' 4134 fi 4135 4136 # The user is always right. 4137 if test "${PATH_SEPARATOR+set}" != set; then 4138 PATH_SEPARATOR=: 4139 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 4140 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 4141 PATH_SEPARATOR=';' 4142 } 4143 fi 4144 4145 4146 # IFS 4147 # We need space, tab and new line, in precisely that order. Quoting is 4148 # there to prevent editors from complaining about space-tab. 4149 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 4150 # splitting by setting IFS to empty value.) 4151 IFS=" "" $as_nl" 4152 4153 # Find who we are. Look in the path if we contain no directory separator. 4154 case $0 in #(( 4155 *[\\/]* ) as_myself=$0 ;; 4156 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4157 for as_dir in $PATH 4158 do 4159 IFS=$as_save_IFS 4160 test -z "$as_dir" && as_dir=. 4161 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4162 done 4163 IFS=$as_save_IFS 4164 4165 ;; 4166 esac 4167 # We did not find ourselves, most probably we were run as `sh COMMAND' 4168 # in which case we are not to be found in the path. 4169 if test "x$as_myself" = x; then 4170 as_myself=$0 4171 fi 4172 if test ! -f "$as_myself"; then 4173 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 4174 exit 1 4175 fi 4176 4177 # Unset variables that we do not need and which cause bugs (e.g. in 4178 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 4179 # suppresses any "Segmentation fault" message there. '((' could 4180 # trigger a bug in pdksh 5.2.14. 4181 for as_var in BASH_ENV ENV MAIL MAILPATH 4182 do eval test x\${$as_var+set} = xset \ 4183 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 4184 done 4185 PS1='$ ' 4186 PS2='> ' 4187 PS4='+ ' 4188 4189 # NLS nuisances. 4190 LC_ALL=C 4191 export LC_ALL 4192 LANGUAGE=C 4193 export LANGUAGE 4194 4195 # CDPATH. 4196 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4197 4198 4199 # as_fn_error ERROR [LINENO LOG_FD] 4200 # --------------------------------- 4201 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4202 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4203 # script with status $?, using 1 if that was 0. 4204 as_fn_error () 4205 { 4206 as_status=$?; test $as_status -eq 0 && as_status=1 4207 if test "$3"; then 4208 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4209 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 4210 fi 4211 $as_echo "$as_me: error: $1" >&2 4212 as_fn_exit $as_status 4213 } # as_fn_error 4214 4215 4216 # as_fn_set_status STATUS 4217 # ----------------------- 4218 # Set $? to STATUS, without forking. 4219 as_fn_set_status () 4220 { 4221 return $1 4222 } # as_fn_set_status 4223 4224 # as_fn_exit STATUS 4225 # ----------------- 4226 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 4227 as_fn_exit () 4228 { 4229 set +e 4230 as_fn_set_status $1 4231 exit $1 4232 } # as_fn_exit 4233 4234 # as_fn_unset VAR 4235 # --------------- 4236 # Portably unset VAR. 4237 as_fn_unset () 4238 { 4239 { eval $1=; unset $1;} 4240 } 4241 as_unset=as_fn_unset 4242 # as_fn_append VAR VALUE 4243 # ---------------------- 4244 # Append the text in VALUE to the end of the definition contained in VAR. Take 4245 # advantage of any shell optimizations that allow amortized linear growth over 4246 # repeated appends, instead of the typical quadratic growth present in naive 4247 # implementations. 4248 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 4249 eval 'as_fn_append () 4250 { 4251 eval $1+=\$2 4252 }' 4253 else 4254 as_fn_append () 4255 { 4256 eval $1=\$$1\$2 4257 } 4258 fi # as_fn_append 4259 4260 # as_fn_arith ARG... 4261 # ------------------ 4262 # Perform arithmetic evaluation on the ARGs, and store the result in the 4263 # global $as_val. Take advantage of shells that can avoid forks. The arguments 4264 # must be portable across $(()) and expr. 4265 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 4266 eval 'as_fn_arith () 4267 { 4268 as_val=$(( $* )) 4269 }' 4270 else 4271 as_fn_arith () 4272 { 4273 as_val=`expr "$@" || test $? -eq 1` 4274 } 4275 fi # as_fn_arith 4276 4277 4278 if expr a : '\(a\)' >/dev/null 2>&1 && 4279 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4280 as_expr=expr 4281 else 4282 as_expr=false 4283 fi 4284 4285 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4286 as_basename=basename 4287 else 4288 as_basename=false 4289 fi 4290 4291 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4292 as_dirname=dirname 4293 else 4294 as_dirname=false 4295 fi 4296 4297 as_me=`$as_basename -- "$0" || 4298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4299 X"$0" : 'X\(//\)$' \| \ 4300 X"$0" : 'X\(/\)' \| . 2>/dev/null || 4301 $as_echo X/"$0" | 4302 sed '/^.*\/\([^/][^/]*\)\/*$/{ 4303 s//\1/ 4304 q 4305 } 4306 /^X\/\(\/\/\)$/{ 4307 s//\1/ 4308 q 4309 } 4310 /^X\/\(\/\).*/{ 4311 s//\1/ 4312 q 4313 } 4314 s/.*/./; q'` 4315 4316 # Avoid depending upon Character Ranges. 4317 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4318 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4319 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4320 as_cr_digits='0123456789' 4321 as_cr_alnum=$as_cr_Letters$as_cr_digits 4322 4323 ECHO_C= ECHO_N= ECHO_T= 4324 case `echo -n x` in #((((( 4325 -n*) 4326 case `echo 'xy\c'` in 4327 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4328 xy) ECHO_C='\c';; 4329 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4330 ECHO_T=' ';; 4331 esac;; 4332 *) 4333 ECHO_N='-n';; 4334 esac 4335 4336 rm -f conf$$ conf$$.exe conf$$.file 4337 if test -d conf$$.dir; then 4338 rm -f conf$$.dir/conf$$.file 4339 else 4340 rm -f conf$$.dir 4341 mkdir conf$$.dir 2>/dev/null 4342 fi 4343 if (echo >conf$$.file) 2>/dev/null; then 4344 if ln -s conf$$.file conf$$ 2>/dev/null; then 4345 as_ln_s='ln -s' 4346 # ... but there are two gotchas: 4347 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4348 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4349 # In both cases, we have to default to `cp -p'. 4350 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4351 as_ln_s='cp -p' 4352 elif ln conf$$.file conf$$ 2>/dev/null; then 4353 as_ln_s=ln 4354 else 4355 as_ln_s='cp -p' 4356 fi 4357 else 4358 as_ln_s='cp -p' 4359 fi 4360 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4361 rmdir conf$$.dir 2>/dev/null 4362 4363 4364 # as_fn_mkdir_p 4365 # ------------- 4366 # Create "$as_dir" as a directory, including parents if necessary. 4367 as_fn_mkdir_p () 4368 { 4369 4370 case $as_dir in #( 4371 -*) as_dir=./$as_dir;; 4372 esac 4373 test -d "$as_dir" || eval $as_mkdir_p || { 4374 as_dirs= 4375 while :; do 4376 case $as_dir in #( 4377 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 4378 *) as_qdir=$as_dir;; 4379 esac 4380 as_dirs="'$as_qdir' $as_dirs" 4381 as_dir=`$as_dirname -- "$as_dir" || 4382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4383 X"$as_dir" : 'X\(//\)[^/]' \| \ 4384 X"$as_dir" : 'X\(//\)$' \| \ 4385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4386 $as_echo X"$as_dir" | 4387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4388 s//\1/ 4389 q 4390 } 4391 /^X\(\/\/\)[^/].*/{ 4392 s//\1/ 4393 q 4394 } 4395 /^X\(\/\/\)$/{ 4396 s//\1/ 4397 q 4398 } 4399 /^X\(\/\).*/{ 4400 s//\1/ 4401 q 4402 } 4403 s/.*/./; q'` 4404 test -d "$as_dir" && break 4405 done 4406 test -z "$as_dirs" || eval "mkdir $as_dirs" 4407 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 4408 4409 4410 } # as_fn_mkdir_p 4411 if mkdir -p . 2>/dev/null; then 4412 as_mkdir_p='mkdir -p "$as_dir"' 4413 else 4414 test -d ./-p && rmdir ./-p 4415 as_mkdir_p=false 4416 fi 4417 4418 if test -x / >/dev/null 2>&1; then 4419 as_test_x='test -x' 4420 else 4421 if ls -dL / >/dev/null 2>&1; then 4422 as_ls_L_option=L 4423 else 4424 as_ls_L_option= 4425 fi 4426 as_test_x=' 4427 eval sh -c '\'' 4428 if test -d "$1"; then 4429 test -d "$1/."; 4430 else 4431 case $1 in #( 4432 -*)set "./$1";; 4433 esac; 4434 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 4435 ???[sx]*):;;*)false;;esac;fi 4436 '\'' sh 4437 ' 4438 fi 4439 as_executable_p=$as_test_x 4440 4441 # Sed expression to map a string onto a valid CPP name. 4442 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4443 4444 # Sed expression to map a string onto a valid variable name. 4445 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4446 4447 4448 exec 6>&1 4449 ## ----------------------------------- ## 4450 ## Main body of $CONFIG_STATUS script. ## 4451 ## ----------------------------------- ## 4452 _ASEOF 4453 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 4454 4455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4456 # Save the log message, to keep $0 and so on meaningful, and to 4457 # report actual input values of CONFIG_FILES etc. instead of their 4458 # values after options handling. 4459 ac_log=" 4460 This file was extended by $as_me, which was 4461 generated by GNU Autoconf 2.65. Invocation command line was 4462 4463 CONFIG_FILES = $CONFIG_FILES 4464 CONFIG_HEADERS = $CONFIG_HEADERS 4465 CONFIG_LINKS = $CONFIG_LINKS 4466 CONFIG_COMMANDS = $CONFIG_COMMANDS 4467 $ $0 $@ 4468 4469 on `(hostname || uname -n) 2>/dev/null | sed 1q` 4470 " 4471 4472 _ACEOF 4473 4474 case $ac_config_files in *" 4475 "*) set x $ac_config_files; shift; ac_config_files=$*;; 4476 esac 4477 4478 4479 4480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4481 # Files that config.status was made for. 4482 config_files="$ac_config_files" 4483 4484 _ACEOF 4485 4486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4487 ac_cs_usage="\ 4488 \`$as_me' instantiates files and other configuration actions 4489 from templates according to the current configuration. Unless the files 4490 and actions are specified as TAGs, all are instantiated by default. 4491 4492 Usage: $0 [OPTION]... [TAG]... 4493 4494 -h, --help print this help, then exit 4495 -V, --version print version number and configuration settings, then exit 4496 --config print configuration, then exit 4497 -q, --quiet, --silent 4498 do not print progress messages 4499 -d, --debug don't remove temporary files 4500 --recheck update $as_me by reconfiguring in the same conditions 4501 --file=FILE[:TEMPLATE] 4502 instantiate the configuration file FILE 4503 4504 Configuration files: 4505 $config_files 4506 4507 Report bugs to the package provider." 4508 4509 _ACEOF 4510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4511 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 4512 ac_cs_version="\\ 4513 config.status 4514 configured by $0, generated by GNU Autoconf 2.65, 4515 with options \\"\$ac_cs_config\\" 4516 4517 Copyright (C) 2009 Free Software Foundation, Inc. 4518 This config.status script is free software; the Free Software Foundation 4519 gives unlimited permission to copy, distribute and modify it." 4520 4521 ac_pwd='$ac_pwd' 4522 srcdir='$srcdir' 4523 INSTALL='$INSTALL' 4524 test -n "\$AWK" || AWK=awk 4525 _ACEOF 4526 4527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4528 # The default lists apply if the user does not specify any file. 4529 ac_need_defaults=: 4530 while test $# != 0 4531 do 4532 case $1 in 4533 --*=*) 4534 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4535 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4536 ac_shift=: 4537 ;; 4538 *) 4539 ac_option=$1 4540 ac_optarg=$2 4541 ac_shift=shift 4542 ;; 4543 esac 4544 4545 case $ac_option in 4546 # Handling of the options. 4547 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4548 ac_cs_recheck=: ;; 4549 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 4550 $as_echo "$ac_cs_version"; exit ;; 4551 --config | --confi | --conf | --con | --co | --c ) 4552 $as_echo "$ac_cs_config"; exit ;; 4553 --debug | --debu | --deb | --de | --d | -d ) 4554 debug=: ;; 4555 --file | --fil | --fi | --f ) 4556 $ac_shift 4557 case $ac_optarg in 4558 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4559 esac 4560 as_fn_append CONFIG_FILES " '$ac_optarg'" 4561 ac_need_defaults=false;; 4562 --he | --h | --help | --hel | -h ) 4563 $as_echo "$ac_cs_usage"; exit ;; 4564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4565 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4566 ac_cs_silent=: ;; 4567 4568 # This is an error. 4569 -*) as_fn_error "unrecognized option: \`$1' 4570 Try \`$0 --help' for more information." ;; 4571 4572 *) as_fn_append ac_config_targets " $1" 4573 ac_need_defaults=false ;; 4574 4575 esac 4576 shift 4577 done 4578 4579 ac_configure_extra_args= 4580 4581 if $ac_cs_silent; then 4582 exec 6>/dev/null 4583 ac_configure_extra_args="$ac_configure_extra_args --silent" 4584 fi 4585 4586 _ACEOF 4587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4588 if \$ac_cs_recheck; then 4589 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4590 shift 4591 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 4592 CONFIG_SHELL='$SHELL' 4593 export CONFIG_SHELL 4594 exec "\$@" 4595 fi 4596 4597 _ACEOF 4598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4599 exec 5>>config.log 4600 { 4601 echo 4602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4603 ## Running $as_me. ## 4604 _ASBOX 4605 $as_echo "$ac_log" 4606 } >&5 4607 4608 _ACEOF 4609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4610 _ACEOF 4611 4612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4613 4614 # Handling of arguments. 4615 for ac_config_target in $ac_config_targets 4616 do 4617 case $ac_config_target in 4618 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4619 "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;; 4620 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;; 4621 4622 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 4623 esac 4624 done 4625 4626 4627 # If the user did not use the arguments to specify the items to instantiate, 4628 # then the envvar interface is used. Set only those that are not. 4629 # We use the long form for the default assignment because of an extremely 4630 # bizarre bug on SunOS 4.1.3. 4631 if $ac_need_defaults; then 4632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4633 fi 4634 4635 # Have a temporary directory for convenience. Make it in the build tree 4636 # simply because there is no reason against having it here, and in addition, 4637 # creating and moving files from /tmp can sometimes cause problems. 4638 # Hook for its removal unless debugging. 4639 # Note that there is a small window in which the directory will not be cleaned: 4640 # after its creation but before its name has been assigned to `$tmp'. 4641 $debug || 4642 { 4643 tmp= 4644 trap 'exit_status=$? 4645 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 4646 ' 0 4647 trap 'as_fn_exit 1' 1 2 13 15 4648 } 4649 # Create a (secure) tmp directory for tmp files. 4650 4651 { 4652 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4653 test -n "$tmp" && test -d "$tmp" 4654 } || 4655 { 4656 tmp=./conf$$-$RANDOM 4657 (umask 077 && mkdir "$tmp") 4658 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 4659 4660 # Set up the scripts for CONFIG_FILES section. 4661 # No need to generate them if there are no CONFIG_FILES. 4662 # This happens for instance with `./config.status config.h'. 4663 if test -n "$CONFIG_FILES"; then 4664 4665 4666 ac_cr=`echo X | tr X '\015'` 4667 # On cygwin, bash can eat \r inside `` if the user requested igncr. 4668 # But we know of no other shell where ac_cr would be empty at this 4669 # point, so we can use a bashism as a fallback. 4670 if test "x$ac_cr" = x; then 4671 eval ac_cr=\$\'\\r\' 4672 fi 4673 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 4674 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 4675 ac_cs_awk_cr='\r' 4676 else 4677 ac_cs_awk_cr=$ac_cr 4678 fi 4679 4680 echo 'BEGIN {' >"$tmp/subs1.awk" && 4681 _ACEOF 4682 4683 4684 { 4685 echo "cat >conf$$subs.awk <<_ACEOF" && 4686 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 4687 echo "_ACEOF" 4688 } >conf$$subs.sh || 4689 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 4690 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 4691 ac_delim='%!_!# ' 4692 for ac_last_try in false false false false false :; do 4693 . ./conf$$subs.sh || 4694 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 4695 4696 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 4697 if test $ac_delim_n = $ac_delim_num; then 4698 break 4699 elif $ac_last_try; then 4700 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 4701 else 4702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 4703 fi 4704 done 4705 rm -f conf$$subs.sh 4706 4707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4708 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 4709 _ACEOF 4710 sed -n ' 4711 h 4712 s/^/S["/; s/!.*/"]=/ 4713 p 4714 g 4715 s/^[^!]*!// 4716 :repl 4717 t repl 4718 s/'"$ac_delim"'$// 4719 t delim 4720 :nl 4721 h 4722 s/\(.\{148\}\)..*/\1/ 4723 t more1 4724 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 4725 p 4726 n 4727 b repl 4728 :more1 4729 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 4730 p 4731 g 4732 s/.\{148\}// 4733 t nl 4734 :delim 4735 h 4736 s/\(.\{148\}\)..*/\1/ 4737 t more2 4738 s/["\\]/\\&/g; s/^/"/; s/$/"/ 4739 p 4740 b 4741 :more2 4742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 4743 p 4744 g 4745 s/.\{148\}// 4746 t delim 4747 ' <conf$$subs.awk | sed ' 4748 /^[^""]/{ 4749 N 4750 s/\n// 4751 } 4752 ' >>$CONFIG_STATUS || ac_write_fail=1 4753 rm -f conf$$subs.awk 4754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4755 _ACAWK 4756 cat >>"\$tmp/subs1.awk" <<_ACAWK && 4757 for (key in S) S_is_set[key] = 1 4758 FS = "" 4759 4760 } 4761 { 4762 line = $ 0 4763 nfields = split(line, field, "@") 4764 substed = 0 4765 len = length(field[1]) 4766 for (i = 2; i < nfields; i++) { 4767 key = field[i] 4768 keylen = length(key) 4769 if (S_is_set[key]) { 4770 value = S[key] 4771 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 4772 len += length(value) + length(field[++i]) 4773 substed = 1 4774 } else 4775 len += 1 + keylen 4776 } 4777 4778 print line 4779 } 4780 4781 _ACAWK 4782 _ACEOF 4783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4784 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 4785 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 4786 else 4787 cat 4788 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 4789 || as_fn_error "could not setup config files machinery" "$LINENO" 5 4790 _ACEOF 4590 4791 4591 4792 # VPATH may cause trouble with some makes, so we remove $(srcdir), … … 4595 4796 if test "x$srcdir" = x.; then 4596 4797 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4597 s/:*\$(srcdir):*/:/ ;4598 s/:*\${srcdir}:*/:/ ;4599 s/:*@srcdir@:*/:/ ;4600 s/^\([^=]*=[ ]*\):*/\1/ ;4601 s/:*$// ;4602 s/^[^=]*=[ ]*$// ;4798 s/:*\$(srcdir):*/:/ 4799 s/:*\${srcdir}:*/:/ 4800 s/:*@srcdir@:*/:/ 4801 s/^\([^=]*=[ ]*\):*/\1/ 4802 s/:*$// 4803 s/^[^=]*=[ ]*$// 4603 4804 }' 4604 4805 fi 4605 4806 4606 # Transform confdefs.h into DEFS. 4607 # Protect against shell expansion while executing Makefile rules. 4608 # Protect against Makefile macro expansion. 4609 # 4610 # If the first sed substitution is executed (which looks for macros that 4611 # take arguments), then we branch to the quote section. Otherwise, 4612 # look for a macro that doesn't take arguments. 4613 cat >confdef2opt.sed <<\_ACEOF 4614 t clear 4615 : clear 4616 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 4617 t quote 4618 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 4619 t quote 4620 d 4621 : quote 4622 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 4623 s,\[,\\&,g 4624 s,\],\\&,g 4625 s,\$,$$,g 4626 p 4627 _ACEOF 4628 # We use echo to avoid assuming a particular line-breaking character. 4629 # The extra dot is to prevent the shell from consuming trailing 4630 # line-breaks from the sub-command output. A line-break within 4631 # single-quotes doesn't work because, if this script is created in a 4632 # platform that uses two characters for line-breaks (e.g., DOS), tr 4633 # would break. 4634 ac_LF_and_DOT=`echo; echo .` 4635 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 4636 rm -f confdef2opt.sed 4637 4638 4639 ac_libobjs= 4640 ac_ltlibobjs= 4641 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4642 # 1. Remove the extension, and $U if already installed. 4643 ac_i=`echo "$ac_i" | 4644 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 4645 # 2. Add them. 4646 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 4647 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 4648 done 4649 LIBOBJS=$ac_libobjs 4650 4651 LTLIBOBJS=$ac_ltlibobjs 4652 4653 4654 4655 : ${CONFIG_STATUS=./config.status} 4656 ac_clean_files_save=$ac_clean_files 4657 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4658 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 4659 echo "$as_me: creating $CONFIG_STATUS" >&6;} 4660 cat >$CONFIG_STATUS <<_ACEOF 4661 #! $SHELL 4662 # Generated by $as_me. 4663 # Run this file to recreate the current configuration. 4664 # Compiler output produced by configure, useful for debugging 4665 # configure, is in config.log if it exists. 4666 4667 debug=false 4668 ac_cs_recheck=false 4669 ac_cs_silent=false 4670 SHELL=\${CONFIG_SHELL-$SHELL} 4671 _ACEOF 4672 4673 cat >>$CONFIG_STATUS <<\_ACEOF 4674 ## --------------------- ## 4675 ## M4sh Initialization. ## 4676 ## --------------------- ## 4677 4678 # Be Bourne compatible 4679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4680 emulate sh 4681 NULLCMD=: 4682 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 4683 # is contrary to our usage. Disable this feature. 4684 alias -g '${1+"$@"}'='"$@"' 4685 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4686 set -o posix 4687 fi 4688 DUALCASE=1; export DUALCASE # for MKS sh 4689 4690 # Support unset when possible. 4691 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4692 as_unset=unset 4693 else 4694 as_unset=false 4695 fi 4696 4697 4698 # Work around bugs in pre-3.0 UWIN ksh. 4699 $as_unset ENV MAIL MAILPATH 4700 PS1='$ ' 4701 PS2='> ' 4702 PS4='+ ' 4703 4704 # NLS nuisances. 4705 for as_var in \ 4706 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 4707 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 4708 LC_TELEPHONE LC_TIME 4807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4808 fi # test -n "$CONFIG_FILES" 4809 4810 4811 eval set X " :F $CONFIG_FILES " 4812 shift 4813 for ac_tag 4709 4814 do 4710 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 4711 eval $as_var=C; export $as_var 4712 else 4713 $as_unset $as_var 4714 fi 4715 done 4716 4717 # Required to use basename. 4718 if expr a : '\(a\)' >/dev/null 2>&1; then 4719 as_expr=expr 4720 else 4721 as_expr=false 4722 fi 4723 4724 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 4725 as_basename=basename 4726 else 4727 as_basename=false 4728 fi 4729 4730 4731 # Name of the executable. 4732 as_me=`$as_basename "$0" || 4733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4734 X"$0" : 'X\(//\)$' \| \ 4735 X"$0" : 'X\(/\)$' \| \ 4736 . : '\(.\)' 2>/dev/null || 4737 echo X/"$0" | 4738 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 4739 /^X\/\(\/\/\)$/{ s//\1/; q; } 4740 /^X\/\(\/\).*/{ s//\1/; q; } 4741 s/.*/./; q'` 4742 4743 4744 # PATH needs CR, and LINENO needs CR and PATH. 4745 # Avoid depending upon Character Ranges. 4746 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4747 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4748 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4749 as_cr_digits='0123456789' 4750 as_cr_alnum=$as_cr_Letters$as_cr_digits 4751 4752 # The user is always right. 4753 if test "${PATH_SEPARATOR+set}" != set; then 4754 echo "#! /bin/sh" >conf$$.sh 4755 echo "exit 0" >>conf$$.sh 4756 chmod +x conf$$.sh 4757 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4758 PATH_SEPARATOR=';' 4759 else 4760 PATH_SEPARATOR=: 4761 fi 4762 rm -f conf$$.sh 4763 fi 4764 4765 4766 as_lineno_1=$LINENO 4767 as_lineno_2=$LINENO 4768 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4769 test "x$as_lineno_1" != "x$as_lineno_2" && 4770 test "x$as_lineno_3" = "x$as_lineno_2" || { 4771 # Find who we are. Look in the path if we contain no path at all 4772 # relative or not. 4773 case $0 in 4774 *[\\/]* ) as_myself=$0 ;; 4775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4776 for as_dir in $PATH 4777 do 4778 IFS=$as_save_IFS 4779 test -z "$as_dir" && as_dir=. 4780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4781 done 4782 4783 ;; 4815 case $ac_tag in 4816 :[FHLC]) ac_mode=$ac_tag; continue;; 4784 4817 esac 4785 # We did not find ourselves, most probably we were run as `sh COMMAND' 4786 # in which case we are not to be found in the path. 4787 if test "x$as_myself" = x; then 4788 as_myself=$0 4789 fi 4790 if test ! -f "$as_myself"; then 4791 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 4792 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 4793 { (exit 1); exit 1; }; } 4794 fi 4795 case $CONFIG_SHELL in 4796 '') 4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4798 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 4799 do 4800 IFS=$as_save_IFS 4801 test -z "$as_dir" && as_dir=. 4802 for as_base in sh bash ksh sh5; do 4803 case $as_dir in 4804 /*) 4805 if ("$as_dir/$as_base" -c ' 4806 as_lineno_1=$LINENO 4807 as_lineno_2=$LINENO 4808 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4809 test "x$as_lineno_1" != "x$as_lineno_2" && 4810 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 4811 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 4812 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 4813 CONFIG_SHELL=$as_dir/$as_base 4814 export CONFIG_SHELL 4815 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 4816 fi;; 4817 esac 4818 done 4819 done 4820 ;; 4818 case $ac_mode$ac_tag in 4819 :[FHL]*:*);; 4820 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 4821 :[FH]-) ac_tag=-:-;; 4822 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 4821 4823 esac 4822 4823 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 4824 # uniformly replaced by the line number. The first 'sed' inserts a 4825 # line-number line before each line; the second 'sed' does the real 4826 # work. The second script uses 'N' to pair each line-number line 4827 # with the numbered line, and appends trailing '-' during 4828 # substitution so that $LINENO is not a special case at line end. 4829 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 4830 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 4831 sed '=' <$as_myself | 4832 sed ' 4833 N 4834 s,$,-, 4835 : loop 4836 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 4837 t loop 4838 s,-$,, 4839 s,^['$as_cr_digits']*\n,, 4840 ' >$as_me.lineno && 4841 chmod +x $as_me.lineno || 4842 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 4843 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 4844 { (exit 1); exit 1; }; } 4845 4846 # Don't try to exec as it changes $[0], causing all sort of problems 4847 # (the dirname of $[0] is not the place where we might find the 4848 # original and so on. Autoconf is especially sensible to this). 4849 . ./$as_me.lineno 4850 # Exit status is that of the last command. 4851 exit 4852 } 4853 4854 4855 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 4856 *c*,-n*) ECHO_N= ECHO_C=' 4857 ' ECHO_T=' ' ;; 4858 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 4859 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 4860 esac 4861 4862 if expr a : '\(a\)' >/dev/null 2>&1; then 4863 as_expr=expr 4864 else 4865 as_expr=false 4866 fi 4867 4868 rm -f conf$$ conf$$.exe conf$$.file 4869 echo >conf$$.file 4870 if ln -s conf$$.file conf$$ 2>/dev/null; then 4871 # We could just check for DJGPP; but this test a) works b) is more generic 4872 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 4873 if test -f conf$$.exe; then 4874 # Don't use ln at all; we don't have any links 4875 as_ln_s='cp -p' 4876 else 4877 as_ln_s='ln -s' 4878 fi 4879 elif ln conf$$.file conf$$ 2>/dev/null; then 4880 as_ln_s=ln 4881 else 4882 as_ln_s='cp -p' 4883 fi 4884 rm -f conf$$ conf$$.exe conf$$.file 4885 4886 if mkdir -p . 2>/dev/null; then 4887 as_mkdir_p=: 4888 else 4889 test -d ./-p && rmdir ./-p 4890 as_mkdir_p=false 4891 fi 4892 4893 as_executable_p="test -f" 4894 4895 # Sed expression to map a string onto a valid CPP name. 4896 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4897 4898 # Sed expression to map a string onto a valid variable name. 4899 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4900 4901 4902 # IFS 4903 # We need space, tab and new line, in precisely that order. 4904 as_nl=' 4905 ' 4906 IFS=" $as_nl" 4907 4908 # CDPATH. 4909 $as_unset CDPATH 4910 4911 exec 6>&1 4912 4913 # Open the log real soon, to keep \$[0] and so on meaningful, and to 4914 # report actual input values of CONFIG_FILES etc. instead of their 4915 # values after options handling. Logging --version etc. is OK. 4916 exec 5>>config.log 4917 { 4918 echo 4919 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4920 ## Running $as_me. ## 4921 _ASBOX 4922 } >&5 4923 cat >&5 <<_CSEOF 4924 4925 This file was extended by $as_me, which was 4926 generated by GNU Autoconf 2.59. Invocation command line was 4927 4928 CONFIG_FILES = $CONFIG_FILES 4929 CONFIG_HEADERS = $CONFIG_HEADERS 4930 CONFIG_LINKS = $CONFIG_LINKS 4931 CONFIG_COMMANDS = $CONFIG_COMMANDS 4932 $ $0 $@ 4933 4934 _CSEOF 4935 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 4936 echo >&5 4937 _ACEOF 4938 4939 # Files that config.status was made for. 4940 if test -n "$ac_config_files"; then 4941 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 4942 fi 4943 4944 if test -n "$ac_config_headers"; then 4945 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 4946 fi 4947 4948 if test -n "$ac_config_links"; then 4949 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 4950 fi 4951 4952 if test -n "$ac_config_commands"; then 4953 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 4954 fi 4955 4956 cat >>$CONFIG_STATUS <<\_ACEOF 4957 4958 ac_cs_usage="\ 4959 \`$as_me' instantiates files from templates according to the 4960 current configuration. 4961 4962 Usage: $0 [OPTIONS] [FILE]... 4963 4964 -h, --help print this help, then exit 4965 -V, --version print version number, then exit 4966 -q, --quiet do not print progress messages 4967 -d, --debug don't remove temporary files 4968 --recheck update $as_me by reconfiguring in the same conditions 4969 --file=FILE[:TEMPLATE] 4970 instantiate the configuration file FILE 4971 4972 Configuration files: 4973 $config_files 4974 4975 Report bugs to <[email protected]>." 4976 _ACEOF 4977 4978 cat >>$CONFIG_STATUS <<_ACEOF 4979 ac_cs_version="\\ 4980 config.status 4981 configured by $0, generated by GNU Autoconf 2.59, 4982 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 4983 4984 Copyright (C) 2003 Free Software Foundation, Inc. 4985 This config.status script is free software; the Free Software Foundation 4986 gives unlimited permission to copy, distribute and modify it." 4987 srcdir=$srcdir 4988 INSTALL="$INSTALL" 4989 _ACEOF 4990 4991 cat >>$CONFIG_STATUS <<\_ACEOF 4992 # If no file are specified by the user, then we need to provide default 4993 # value. By we need to know if files were specified by the user. 4994 ac_need_defaults=: 4995 while test $# != 0 4996 do 4997 case $1 in 4998 --*=*) 4999 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5000 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5001 ac_shift=: 4824 ac_save_IFS=$IFS 4825 IFS=: 4826 set x $ac_tag 4827 IFS=$ac_save_IFS 4828 shift 4829 ac_file=$1 4830 shift 4831 4832 case $ac_mode in 4833 :L) ac_source=$1;; 4834 :[FH]) 4835 ac_file_inputs= 4836 for ac_f 4837 do 4838 case $ac_f in 4839 -) ac_f="$tmp/stdin";; 4840 *) # Look for the file first in the build tree, then in the source tree 4841 # (if the path is not absolute). The absolute path cannot be DOS-style, 4842 # because $ac_f cannot contain `:'. 4843 test -f "$ac_f" || 4844 case $ac_f in 4845 [\\/$]*) false;; 4846 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 4847 esac || 4848 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 4849 esac 4850 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 4851 as_fn_append ac_file_inputs " '$ac_f'" 4852 done 4853 4854 # Let's still pretend it is `configure' which instantiates (i.e., don't 4855 # use $as_me), people would be surprised to read: 4856 # /* config.h. Generated by config.status. */ 4857 configure_input='Generated from '` 4858 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 4859 `' by configure.' 4860 if test x"$ac_file" != x-; then 4861 configure_input="$ac_file. $configure_input" 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 4863 $as_echo "$as_me: creating $ac_file" >&6;} 4864 fi 4865 # Neutralize special characters interpreted by sed in replacement strings. 4866 case $configure_input in #( 4867 *\&* | *\|* | *\\* ) 4868 ac_sed_conf_input=`$as_echo "$configure_input" | 4869 sed 's/[\\\\&|]/\\\\&/g'`;; #( 4870 *) ac_sed_conf_input=$configure_input;; 4871 esac 4872 4873 case $ac_tag in 4874 *:-:* | *:-) cat >"$tmp/stdin" \ 4875 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 4876 esac 5002 4877 ;; 5003 -*)5004 ac_option=$15005 ac_optarg=$25006 ac_shift=shift5007 ;;5008 *) # This is not an option, so the user has probably given explicit5009 # arguments.5010 ac_option=$15011 ac_need_defaults=false;;5012 4878 esac 5013 4879 5014 case $ac_option in 5015 # Handling of the options. 5016 _ACEOF 5017 cat >>$CONFIG_STATUS <<\_ACEOF 5018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5019 ac_cs_recheck=: ;; 5020 --version | --vers* | -V ) 5021 echo "$ac_cs_version"; exit 0 ;; 5022 --he | --h) 5023 # Conflict between --help and --header 5024 { { echo "$as_me:$LINENO: error: ambiguous option: $1 5025 Try \`$0 --help' for more information." >&5 5026 echo "$as_me: error: ambiguous option: $1 5027 Try \`$0 --help' for more information." >&2;} 5028 { (exit 1); exit 1; }; };; 5029 --help | --hel | -h ) 5030 echo "$ac_cs_usage"; exit 0 ;; 5031 --debug | --d* | -d ) 5032 debug=: ;; 5033 --file | --fil | --fi | --f ) 5034 $ac_shift 5035 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 5036 ac_need_defaults=false;; 5037 --header | --heade | --head | --hea ) 5038 $ac_shift 5039 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 5040 ac_need_defaults=false;; 5041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5042 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5043 ac_cs_silent=: ;; 5044 5045 # This is an error. 5046 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 5047 Try \`$0 --help' for more information." >&5 5048 echo "$as_me: error: unrecognized option: $1 5049 Try \`$0 --help' for more information." >&2;} 5050 { (exit 1); exit 1; }; } ;; 5051 5052 *) ac_config_targets="$ac_config_targets $1" ;; 5053 5054 esac 5055 shift 5056 done 5057 5058 ac_configure_extra_args= 5059 5060 if $ac_cs_silent; then 5061 exec 6>/dev/null 5062 ac_configure_extra_args="$ac_configure_extra_args --silent" 5063 fi 5064 5065 _ACEOF 5066 cat >>$CONFIG_STATUS <<_ACEOF 5067 if \$ac_cs_recheck; then 5068 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 5069 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5070 fi 5071 5072 _ACEOF 5073 5074 5075 5076 5077 5078 cat >>$CONFIG_STATUS <<\_ACEOF 5079 for ac_config_target in $ac_config_targets 5080 do 5081 case "$ac_config_target" in 5082 # Handling of arguments. 5083 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5084 "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;; 5085 "java/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Makefile" ;; 5086 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 5087 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5088 { (exit 1); exit 1; }; };; 5089 esac 5090 done 5091 5092 # If the user did not use the arguments to specify the items to instantiate, 5093 # then the envvar interface is used. Set only those that are not. 5094 # We use the long form for the default assignment because of an extremely 5095 # bizarre bug on SunOS 4.1.3. 5096 if $ac_need_defaults; then 5097 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5098 fi 5099 5100 # Have a temporary directory for convenience. Make it in the build tree 5101 # simply because there is no reason to put it here, and in addition, 5102 # creating and moving files from /tmp can sometimes cause problems. 5103 # Create a temporary directory, and hook for its removal unless debugging. 5104 $debug || 5105 { 5106 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5107 trap '{ (exit 1); exit 1; }' 1 2 13 15 5108 } 5109 5110 # Create a (secure) tmp directory for tmp files. 5111 5112 { 5113 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 5114 test -n "$tmp" && test -d "$tmp" 5115 } || 5116 { 5117 tmp=./confstat$$-$RANDOM 5118 (umask 077 && mkdir $tmp) 5119 } || 5120 { 5121 echo "$me: cannot create a temporary directory in ." >&2 5122 { (exit 1); exit 1; } 5123 } 5124 5125 _ACEOF 5126 5127 cat >>$CONFIG_STATUS <<_ACEOF 5128 5129 # 5130 # CONFIG_FILES section. 5131 # 5132 5133 # No need to generate the scripts if there are no CONFIG_FILES. 5134 # This happens for instance when ./config.status config.h 5135 if test -n "\$CONFIG_FILES"; then 5136 # Protect against being on the right side of a sed subst in config.status. 5137 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5138 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5139 s,@SHELL@,$SHELL,;t t 5140 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5141 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5142 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5143 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5144 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5145 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5146 s,@exec_prefix@,$exec_prefix,;t t 5147 s,@prefix@,$prefix,;t t 5148 s,@program_transform_name@,$program_transform_name,;t t 5149 s,@bindir@,$bindir,;t t 5150 s,@sbindir@,$sbindir,;t t 5151 s,@libexecdir@,$libexecdir,;t t 5152 s,@datadir@,$datadir,;t t 5153 s,@sysconfdir@,$sysconfdir,;t t 5154 s,@sharedstatedir@,$sharedstatedir,;t t 5155 s,@localstatedir@,$localstatedir,;t t 5156 s,@libdir@,$libdir,;t t 5157 s,@includedir@,$includedir,;t t 5158 s,@oldincludedir@,$oldincludedir,;t t 5159 s,@infodir@,$infodir,;t t 5160 s,@mandir@,$mandir,;t t 5161 s,@build_alias@,$build_alias,;t t 5162 s,@host_alias@,$host_alias,;t t 5163 s,@target_alias@,$target_alias,;t t 5164 s,@DEFS@,$DEFS,;t t 5165 s,@ECHO_C@,$ECHO_C,;t t 5166 s,@ECHO_N@,$ECHO_N,;t t 5167 s,@ECHO_T@,$ECHO_T,;t t 5168 s,@LIBS@,$LIBS,;t t 5169 s,@build@,$build,;t t 5170 s,@build_cpu@,$build_cpu,;t t 5171 s,@build_vendor@,$build_vendor,;t t 5172 s,@build_os@,$build_os,;t t 5173 s,@host@,$host,;t t 5174 s,@host_cpu@,$host_cpu,;t t 5175 s,@host_vendor@,$host_vendor,;t t 5176 s,@host_os@,$host_os,;t t 5177 s,@target@,$target,;t t 5178 s,@target_cpu@,$target_cpu,;t t 5179 s,@target_vendor@,$target_vendor,;t t 5180 s,@target_os@,$target_os,;t t 5181 s,@CC@,$CC,;t t 5182 s,@CFLAGS@,$CFLAGS,;t t 5183 s,@LDFLAGS@,$LDFLAGS,;t t 5184 s,@CPPFLAGS@,$CPPFLAGS,;t t 5185 s,@ac_ct_CC@,$ac_ct_CC,;t t 5186 s,@EXEEXT@,$EXEEXT,;t t 5187 s,@OBJEXT@,$OBJEXT,;t t 5188 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5189 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5190 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5191 s,@LN_S@,$LN_S,;t t 5192 s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t 5193 s,@CPP@,$CPP,;t t 5194 s,@EGREP@,$EGREP,;t t 5195 s,@JAVA_HOME@,$JAVA_HOME,;t t 5196 s,@javagdbm_cv_path_javah@,$javagdbm_cv_path_javah,;t t 5197 s,@javagdbm_cv_path_java@,$javagdbm_cv_path_java,;t t 5198 s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t 5199 s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t 5200 s,@PKG@,$PKG,;t t 5201 s,@JNIINC@,$JNIINC,;t t 5202 s,@JNISUFFIX@,$JNISUFFIX,;t t 5203 s,@JNIFLAGS@,$JNIFLAGS,;t t 5204 s,@LIBOBJS@,$LIBOBJS,;t t 5205 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 5206 CEOF 5207 5208 _ACEOF 5209 5210 cat >>$CONFIG_STATUS <<\_ACEOF 5211 # Split the substitutions into bite-sized pieces for seds with 5212 # small command number limits, like on Digital OSF/1 and HP-UX. 5213 ac_max_sed_lines=48 5214 ac_sed_frag=1 # Number of current file. 5215 ac_beg=1 # First line for current file. 5216 ac_end=$ac_max_sed_lines # Line after last line for current file. 5217 ac_more_lines=: 5218 ac_sed_cmds= 5219 while $ac_more_lines; do 5220 if test $ac_beg -gt 1; then 5221 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5222 else 5223 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5224 fi 5225 if test ! -s $tmp/subs.frag; then 5226 ac_more_lines=false 5227 else 5228 # The purpose of the label and of the branching condition is to 5229 # speed up the sed processing (if there are no `@' at all, there 5230 # is no need to browse any of the substitutions). 5231 # These are the two extra sed commands mentioned above. 5232 (echo ':t 5233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5234 if test -z "$ac_sed_cmds"; then 5235 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5236 else 5237 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5238 fi 5239 ac_sed_frag=`expr $ac_sed_frag + 1` 5240 ac_beg=$ac_end 5241 ac_end=`expr $ac_end + $ac_max_sed_lines` 5242 fi 5243 done 5244 if test -z "$ac_sed_cmds"; then 5245 ac_sed_cmds=cat 5246 fi 5247 fi # test -n "$CONFIG_FILES" 5248 5249 _ACEOF 5250 cat >>$CONFIG_STATUS <<\_ACEOF 5251 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5253 case $ac_file in 5254 - | *:- | *:-:* ) # input from stdin 5255 cat >$tmp/stdin 5256 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5258 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5260 * ) ac_file_in=$ac_file.in ;; 5261 esac 5262 5263 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5264 ac_dir=`(dirname "$ac_file") 2>/dev/null || 4880 ac_dir=`$as_dirname -- "$ac_file" || 5265 4881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5266 4882 X"$ac_file" : 'X\(//\)[^/]' \| \ 5267 4883 X"$ac_file" : 'X\(//\)$' \| \ 5268 X"$ac_file" : 'X\(/\)' \| \ 5269 . : '\(.\)' 2>/dev/null || 5270 echo X"$ac_file" | 5271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5272 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5273 /^X\(\/\/\)$/{ s//\1/; q; } 5274 /^X\(\/\).*/{ s//\1/; q; } 5275 s/.*/./; q'` 5276 { if $as_mkdir_p; then 5277 mkdir -p "$ac_dir" 5278 else 5279 as_dir="$ac_dir" 5280 as_dirs= 5281 while test ! -d "$as_dir"; do 5282 as_dirs="$as_dir $as_dirs" 5283 as_dir=`(dirname "$as_dir") 2>/dev/null || 5284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5285 X"$as_dir" : 'X\(//\)[^/]' \| \ 5286 X"$as_dir" : 'X\(//\)$' \| \ 5287 X"$as_dir" : 'X\(/\)' \| \ 5288 . : '\(.\)' 2>/dev/null || 5289 echo X"$as_dir" | 5290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5291 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5292 /^X\(\/\/\)$/{ s//\1/; q; } 5293 /^X\(\/\).*/{ s//\1/; q; } 5294 s/.*/./; q'` 5295 done 5296 test ! -n "$as_dirs" || mkdir $as_dirs 5297 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 5298 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 5299 { (exit 1); exit 1; }; }; } 5300 4884 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 4885 $as_echo X"$ac_file" | 4886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4887 s//\1/ 4888 q 4889 } 4890 /^X\(\/\/\)[^/].*/{ 4891 s//\1/ 4892 q 4893 } 4894 /^X\(\/\/\)$/{ 4895 s//\1/ 4896 q 4897 } 4898 /^X\(\/\).*/{ 4899 s//\1/ 4900 q 4901 } 4902 s/.*/./; q'` 4903 as_dir="$ac_dir"; as_fn_mkdir_p 5301 4904 ac_builddir=. 5302 4905 5303 if test "$ac_dir" != .; then 5304 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5305 # A "../" for each directory in $ac_dir_suffix. 5306 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5307 else 5308 ac_dir_suffix= ac_top_builddir= 5309 fi 4906 case "$ac_dir" in 4907 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 4908 *) 4909 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 4910 # A ".." for each directory in $ac_dir_suffix. 4911 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 4912 case $ac_top_builddir_sub in 4913 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 4914 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 4915 esac ;; 4916 esac 4917 ac_abs_top_builddir=$ac_pwd 4918 ac_abs_builddir=$ac_pwd$ac_dir_suffix 4919 # for backward compatibility: 4920 ac_top_builddir=$ac_top_build_prefix 5310 4921 5311 4922 case $srcdir in 5312 .) # No --srcdir option.We are building in place.4923 .) # We are building in place. 5313 4924 ac_srcdir=. 5314 if test -z "$ac_top_builddir"; then 5315 ac_top_srcdir=. 5316 else 5317 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 5318 fi ;; 5319 [\\/]* | ?:[\\/]* ) # Absolute path. 4925 ac_top_srcdir=$ac_top_builddir_sub 4926 ac_abs_top_srcdir=$ac_pwd ;; 4927 [\\/]* | ?:[\\/]* ) # Absolute name. 5320 4928 ac_srcdir=$srcdir$ac_dir_suffix; 5321 ac_top_srcdir=$srcdir ;; 5322 *) # Relative path. 5323 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 5324 ac_top_srcdir=$ac_top_builddir$srcdir ;; 4929 ac_top_srcdir=$srcdir 4930 ac_abs_top_srcdir=$srcdir ;; 4931 *) # Relative name. 4932 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 4933 ac_top_srcdir=$ac_top_build_prefix$srcdir 4934 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5325 4935 esac 5326 5327 # Do not use `cd foo && pwd` to compute absolute paths, because 5328 # the directories may not exist. 5329 case `pwd` in 5330 .) ac_abs_builddir="$ac_dir";; 5331 *) 5332 case "$ac_dir" in 5333 .) ac_abs_builddir=`pwd`;; 5334 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 5335 *) ac_abs_builddir=`pwd`/"$ac_dir";; 5336 esac;; 5337 esac 5338 case $ac_abs_builddir in 5339 .) ac_abs_top_builddir=${ac_top_builddir}.;; 5340 *) 5341 case ${ac_top_builddir}. in 5342 .) ac_abs_top_builddir=$ac_abs_builddir;; 5343 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 5344 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 5345 esac;; 5346 esac 5347 case $ac_abs_builddir in 5348 .) ac_abs_srcdir=$ac_srcdir;; 5349 *) 5350 case $ac_srcdir in 5351 .) ac_abs_srcdir=$ac_abs_builddir;; 5352 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 5353 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 5354 esac;; 5355 esac 5356 case $ac_abs_builddir in 5357 .) ac_abs_top_srcdir=$ac_top_srcdir;; 5358 *) 5359 case $ac_top_srcdir in 5360 .) ac_abs_top_srcdir=$ac_abs_builddir;; 5361 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 5362 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 5363 esac;; 5364 esac 5365 4936 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 4937 4938 4939 case $ac_mode in 4940 :F) 4941 # 4942 # CONFIG_FILE 4943 # 5366 4944 5367 4945 case $INSTALL in 5368 4946 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5369 *) ac_INSTALL=$ac_top_build dir$INSTALL ;;4947 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 5370 4948 esac 5371 5372 if test x"$ac_file" != x-; then 5373 { echo "$as_me:$LINENO: creating $ac_file" >&5 5374 echo "$as_me: creating $ac_file" >&6;} 5375 rm -f "$ac_file" 5376 fi 5377 # Let's still pretend it is `configure' which instantiates (i.e., don't 5378 # use $as_me), people would be surprised to read: 5379 # /* config.h. Generated by config.status. */ 5380 if test x"$ac_file" = x-; then 5381 configure_input= 5382 else 5383 configure_input="$ac_file. " 5384 fi 5385 configure_input=$configure_input"Generated from `echo $ac_file_in | 5386 sed 's,.*/,,'` by configure." 5387 5388 # First look for the input files in the build tree, otherwise in the 5389 # src tree. 5390 ac_file_inputs=`IFS=: 5391 for f in $ac_file_in; do 5392 case $f in 5393 -) echo $tmp/stdin ;; 5394 [\\/$]*) 5395 # Absolute (can't be DOS-style, as IFS=:) 5396 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5397 echo "$as_me: error: cannot find input file: $f" >&2;} 5398 { (exit 1); exit 1; }; } 5399 echo "$f";; 5400 *) # Relative 5401 if test -f "$f"; then 5402 # Build tree 5403 echo "$f" 5404 elif test -f "$srcdir/$f"; then 5405 # Source tree 5406 echo "$srcdir/$f" 5407 else 5408 # /dev/null tree 5409 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5410 echo "$as_me: error: cannot find input file: $f" >&2;} 5411 { (exit 1); exit 1; }; } 5412 fi;; 5413 esac 5414 done` || { (exit 1); exit 1; } 5415 _ACEOF 5416 cat >>$CONFIG_STATUS <<_ACEOF 5417 sed "$ac_vpsub 4949 _ACEOF 4950 4951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4952 # If the template does not know about datarootdir, expand it. 4953 # FIXME: This hack should be removed a few years after 2.60. 4954 ac_datarootdir_hack=; ac_datarootdir_seen= 4955 ac_sed_dataroot=' 4956 /datarootdir/ { 4957 p 4958 q 4959 } 4960 /@datadir@/p 4961 /@docdir@/p 4962 /@infodir@/p 4963 /@localedir@/p 4964 /@mandir@/p' 4965 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 4966 *datarootdir*) ac_datarootdir_seen=yes;; 4967 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 4969 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 4970 _ACEOF 4971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4972 ac_datarootdir_hack=' 4973 s&@datadir@&$datadir&g 4974 s&@docdir@&$docdir&g 4975 s&@infodir@&$infodir&g 4976 s&@localedir@&$localedir&g 4977 s&@mandir@&$mandir&g 4978 s&\\\${datarootdir}&$datarootdir&g' ;; 4979 esac 4980 _ACEOF 4981 4982 # Neutralize VPATH when `$srcdir' = `.'. 4983 # Shell code in configure.ac might set extrasub. 4984 # FIXME: do we really want to maintain this feature? 4985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4986 ac_sed_extra="$ac_vpsub 5418 4987 $extrasub 5419 4988 _ACEOF 5420 cat >>$CONFIG_STATUS <<\_ACEOF 4989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5421 4990 :t 5422 4991 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5423 s,@configure_input@,$configure_input,;t t 5424 s,@srcdir@,$ac_srcdir,;t t 5425 s,@abs_srcdir@,$ac_abs_srcdir,;t t 5426 s,@top_srcdir@,$ac_top_srcdir,;t t 5427 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 5428 s,@builddir@,$ac_builddir,;t t 5429 s,@abs_builddir@,$ac_abs_builddir,;t t 5430 s,@top_builddir@,$ac_top_builddir,;t t 5431 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5432 s,@INSTALL@,$ac_INSTALL,;t t 5433 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5434 rm -f $tmp/stdin 5435 if test x"$ac_file" != x-; then 5436 mv $tmp/out $ac_file 5437 else 5438 cat $tmp/out 5439 rm -f $tmp/out 5440 fi 5441 5442 done 5443 _ACEOF 5444 5445 cat >>$CONFIG_STATUS <<\_ACEOF 5446 5447 { (exit 0); exit 0; } 5448 _ACEOF 5449 chmod +x $CONFIG_STATUS 4992 s|@configure_input@|$ac_sed_conf_input|;t t 4993 s&@top_builddir@&$ac_top_builddir_sub&;t t 4994 s&@top_build_prefix@&$ac_top_build_prefix&;t t 4995 s&@srcdir@&$ac_srcdir&;t t 4996 s&@abs_srcdir@&$ac_abs_srcdir&;t t 4997 s&@top_srcdir@&$ac_top_srcdir&;t t 4998 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 4999 s&@builddir@&$ac_builddir&;t t 5000 s&@abs_builddir@&$ac_abs_builddir&;t t 5001 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 5002 s&@INSTALL@&$ac_INSTALL&;t t 5003 $ac_datarootdir_hack 5004 " 5005 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 5006 || as_fn_error "could not create $ac_file" "$LINENO" 5 5007 5008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 5009 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 5010 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5012 which seems to be undefined. Please make sure it is defined." >&5 5013 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5014 which seems to be undefined. Please make sure it is defined." >&2;} 5015 5016 rm -f "$tmp/stdin" 5017 case $ac_file in 5018 -) cat "$tmp/out" && rm -f "$tmp/out";; 5019 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 5020 esac \ 5021 || as_fn_error "could not create $ac_file" "$LINENO" 5 5022 ;; 5023 5024 5025 5026 esac 5027 5028 done # for ac_tag 5029 5030 5031 as_fn_exit 0 5032 _ACEOF 5450 5033 ac_clean_files=$ac_clean_files_save 5034 5035 test $ac_write_fail = 0 || 5036 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 5451 5037 5452 5038 … … 5469 5055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5470 5056 # would make configure fail if this is the last instruction. 5471 $ac_cs_success || { (exit 1); exit 1; } 5472 fi 5473 5057 $ac_cs_success || as_fn_exit $? 5058 fi 5059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5061 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5062 fi 5063 -
main/branches/64_bit_Greenstone/greenstone3/src/packages/javagdbm/configure.in
r21433 r23632 42 42 AC_PROG_LN_S 43 43 44 AC_MSG_CHECKING(to see if architecture is 64-bit) 45 arch_64bit=no 46 case "$host_cpu" in 47 x86_64) arch_64bit=yes ;; 48 esac 49 50 if test "$arch_64bit" = yes; then 51 AC_MSG_RESULT(yes) 52 if test -z "$COMPAT32BITFLAGS" ; then 53 COMPAT32BITFLAGS="-m32" 54 fi 55 else 56 AC_MSG_RESULT(no) 57 if test -z "$COMPAT32BITFLAGS" ; then 58 COMPAT32BITFLAGS= 59 fi 60 fi 61 62 # Only need compat32bitflag if using MG or MGPP 63 if test "$ENABLE_MG" = "0" ; then 64 COMPAT32BITFLAGS= 65 else 66 if test "$ENABLE_MGPP" = "0" ; then 67 COMPAT32BITFLAGS= 68 fi 69 fi 70 71 export COMPAT32BITFLAGS 72 AC_SUBST(COMPAT32BITFLAGS) 73 74 44 dnl AC_MSG_CHECKING(to see if architecture is 64-bit) 45 dnl arch_64bit=no 46 dnl case "$host_cpu" in 47 dnl x86_64) arch_64bit=yes ;; 48 dnl esac 75 49 76 50 AC_CHECK_SIZEOF(void *) -
main/branches/64_bit_Greenstone/greenstone3/src/packages/javagdbm/jni/Makefile.in
r18343 r23632 23 23 24 24 CC=@CC@ 25 CFLAGS=-c @CFLAGS@ @COMPAT32BITFLAGS@$(INC) -DWRAPPER_VERSION=\"$(WRAPPER_VERSION)\"25 CFLAGS=-c @CFLAGS@ $(INC) -DWRAPPER_VERSION=\"$(WRAPPER_VERSION)\" 26 26 #PKG=@PKG@ 27 27 GDBM_LIBS=@GDBM_LIBPATH@ -lgdbm 28 28 LIBS= $(GDBM_LIBS) @LIBS@ 29 LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@29 LDFLAGS = @LDFLAGS@ 30 30 JNIFLAGS=@JNIFLAGS@ 31 31 JNISUFFIX=@JNISUFFIX@
Note:
See TracChangeset
for help on using the changeset viewer.