Changeset 26b713 in git
- Timestamp:
- Feb 13, 2013, 4:23:42 PM (11 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4bd32dfef92ec9f5ed8dceee82d14318ae147107')
- Children:
- 81384bd682dd5f3d82dcdbb5f9b03b8e16f90d39
- Parents:
- 7b8818e8f761639646d742a3b11bca3b5a9408da
- git-author:
- Yue Ren <ren@mathematik.uni-kl.de>2013-02-13 16:23:42+01:00
- git-committer:
- Yue Ren <ren@mathematik.uni-kl.de>2013-03-14 15:32:21+01:00
- Location:
- gfanlib
- Files:
-
- 1 added
- 14 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
gfanlib/Makefile.in.save
-
Property
mode
changed from
100644
to100755
r7b8818 r26b713 33 33 ## 34 34 PIPE = -pipe 35 CFLAGS = @CFLAGS@ ${PIPE}36 CXXFLAGS = @CXXFLAGS@ ${PIPE}37 #CXXTEMPLFLAGS = -fno-implicit-templates 35 CFLAGS = -fpic @CFLAGS@ ${PIPE} 36 CXXFLAGS = -fpic @CXXFLAGS@ ${PIPE} 37 #CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions 38 38 CPPFLAGS = -I${srcdir} -I${includedir} 39 39 DEFS = -DGMPRATIONAL -
Property
mode
changed from
-
gfanlib/README.txt
r7b8818 r26b713 5 5 or 6 6 7 export CPPFLAGS="-I/ usr/include/cdd"7 export CPPFLAGS="-I/home/ren/cddlib-094f/lib-src-gmp/" 8 8 ./configure 9 make includedir=/usr/include/cdd 10 9 make includedir=/home/ren/cddlib-094f/lib-src-gmp/ -
gfanlib/configure
r7b8818 r26b713 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.6 3 for FULL-PACKAGE-NAME VERSION.3 # Generated by GNU Autoconf 2.68 for libgfan 0.1. 4 4 # 5 # Report bugs to <BUG-REPORT-ADDRESS>. 5 # Report bugs to <ren@mathematik.uni-kl.de>. 6 # 6 7 # 7 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10 # Foundation, Inc. 11 # 12 # 9 13 # This configure script is free software; the Free Software Foundation 10 14 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- -##12 ## M4sh Initialization. 13 ## -------------------- -##15 ## -------------------- ## 16 ## M4sh Initialization. ## 17 ## -------------------- ## 14 18 15 19 # Be more Bourne compatible 16 20 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 22 emulate sh 19 23 NULLCMD=: … … 23 27 setopt NO_GLOB_SUBST 24 28 else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 27 34 esac 28 29 fi 30 31 32 33 34 # PATH needs CR 35 # Avoid depending upon Character Ranges. 36 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39 as_cr_digits='0123456789' 40 as_cr_alnum=$as_cr_Letters$as_cr_digits 35 fi 36 41 37 42 38 as_nl=' … … 47 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 45 # Prefer a ksh shell builtin over an external printf program on Solaris, 46 # but without wasting forks for bash or zsh. 47 if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 52 as_echo='printf %s\n' 51 53 as_echo_n='printf %s' … … 58 60 as_echo_n_body='eval 59 61 arg=$1; 60 case $arg in 62 case $arg in #( 61 63 *"$as_nl"*) 62 64 expr "X$arg" : "X\\(.*\\)$as_nl"; … … 81 83 fi 82 84 83 # Support unset when possible.84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then85 as_unset=unset86 else87 as_unset=false88 fi89 90 85 91 86 # IFS … … 97 92 98 93 # Find who we are. Look in the path if we contain no directory separator. 99 case $0 in 94 as_myself= 95 case $0 in #(( 100 96 *[\\/]* ) as_myself=$0 ;; 101 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 104 100 IFS=$as_save_IFS 105 101 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break107 done102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 108 104 IFS=$as_save_IFS 109 105 … … 117 113 if test ! -f "$as_myself"; then 118 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120 fi 121 122 # Work around bugs in pre-3.0 UWIN ksh. 123 for as_var in ENV MAIL MAILPATH 124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 115 exit 1 116 fi 117 118 # Unset variables that we do not need and which cause bugs (e.g. in 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120 # suppresses any "Segmentation fault" message there. '((' could 121 # trigger a bug in pdksh 5.2.14. 122 for as_var in BASH_ENV ENV MAIL MAILPATH 123 do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125 125 done 126 126 PS1='$ ' … … 134 134 export LANGUAGE 135 135 136 # Required to use basename. 136 # CDPATH. 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139 if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147 else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153 esac 154 fi 155 " 156 as_required="as_fn_return () { (exit \$1); } 157 as_fn_success () { as_fn_return 0; } 158 as_fn_failure () { as_fn_return 1; } 159 as_fn_ret_success () { return 0; } 160 as_fn_ret_failure () { return 1; } 161 162 exitcode=0 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169 else 170 exitcode=1; echo positional parameters were not saved. 171 fi 172 test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185 test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188 else 189 as_have_required=no 190 fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193 else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195 as_found=false 196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197 do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211 fi 212 fi 213 done;; 214 esac 215 as_found=false 216 done 217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220 fi; } 221 IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240 fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250 $0: ren@mathematik.uni-kl.de about your system, including 251 $0: any error possibly output before this message. Then 252 $0: install a modern shell, or manually run the script 253 $0: under such a shell if you do have one." 254 fi 255 exit 1 256 fi 257 fi 258 fi 259 SHELL=${CONFIG_SHELL-/bin/sh} 260 export SHELL 261 # Unset more variables known to interfere with behavior of common tools. 262 CLICOLOR_FORCE= GREP_OPTIONS= 263 unset CLICOLOR_FORCE GREP_OPTIONS 264 265 ## --------------------- ## 266 ## M4sh Shell Functions. ## 267 ## --------------------- ## 268 # as_fn_unset VAR 269 # --------------- 270 # Portably unset VAR. 271 as_fn_unset () 272 { 273 { eval $1=; unset $1;} 274 } 275 as_unset=as_fn_unset 276 277 # as_fn_set_status STATUS 278 # ----------------------- 279 # Set $? to STATUS, without forking. 280 as_fn_set_status () 281 { 282 return $1 283 } # as_fn_set_status 284 285 # as_fn_exit STATUS 286 # ----------------- 287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288 as_fn_exit () 289 { 290 set +e 291 as_fn_set_status $1 292 exit $1 293 } # as_fn_exit 294 295 # as_fn_mkdir_p 296 # ------------- 297 # Create "$as_dir" as a directory, including parents if necessary. 298 as_fn_mkdir_p () 299 { 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317 $as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341 } # as_fn_mkdir_p 342 # as_fn_append VAR VALUE 343 # ---------------------- 344 # Append the text in VALUE to the end of the definition contained in VAR. Take 345 # advantage of any shell optimizations that allow amortized linear growth over 346 # repeated appends, instead of the typical quadratic growth present in naive 347 # implementations. 348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353 else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358 fi # as_fn_append 359 360 # as_fn_arith ARG... 361 # ------------------ 362 # Perform arithmetic evaluation on the ARGs, and store the result in the 363 # global $as_val. Take advantage of shells that can avoid forks. The arguments 364 # must be portable across $(()) and expr. 365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370 else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375 fi # as_fn_arith 376 377 378 # as_fn_error STATUS ERROR [LINENO LOG_FD] 379 # ---------------------------------------- 380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382 # script with STATUS, using 1 if that was 0. 383 as_fn_error () 384 { 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392 } # as_fn_error 393 137 394 if expr a : '\(a\)' >/dev/null 2>&1 && 138 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then … … 148 405 fi 149 406 150 151 # Name of the executable. 407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409 else 410 as_dirname=false 411 fi 412 152 413 as_me=`$as_basename -- "$0" || 153 414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ … … 169 430 s/.*/./; q'` 170 431 171 # CDPATH. 172 $as_unset CDPATH 173 174 175 if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178 else 179 as_have_required=no 180 fi 181 182 if test $as_have_required = yes && (eval ": 183 (as_func_return () { 184 (exit \$1) 185 } 186 as_func_success () { 187 as_func_return 0 188 } 189 as_func_failure () { 190 as_func_return 1 191 } 192 as_func_ret_success () { 193 return 0 194 } 195 as_func_ret_failure () { 196 return 1 197 } 198 199 exitcode=0 200 if as_func_success; then 201 : 202 else 203 exitcode=1 204 echo as_func_success failed. 205 fi 206 207 if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210 fi 211 212 if as_func_ret_success; then 213 : 214 else 215 exitcode=1 216 echo as_func_ret_success failed. 217 fi 218 219 if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222 fi 223 224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226 else 227 exitcode=1 228 echo positional parameters were not saved. 229 fi 230 231 test \$exitcode = 0) || { (exit 1); exit 1; } 232 233 ( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238 ") 2> /dev/null; then 239 : 240 else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244 do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253 done 254 IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 _ASEOF 278 }; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289 else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292 esac 293 294 fi 295 296 297 : 298 (as_func_return () { 299 (exit $1) 300 } 301 as_func_success () { 302 as_func_return 0 303 } 304 as_func_failure () { 305 as_func_return 1 306 } 307 as_func_ret_success () { 308 return 0 309 } 310 as_func_ret_failure () { 311 return 1 312 } 313 314 exitcode=0 315 if as_func_success; then 316 : 317 else 318 exitcode=1 319 echo as_func_success failed. 320 fi 321 322 if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325 fi 326 327 if as_func_ret_success; then 328 : 329 else 330 exitcode=1 331 echo as_func_ret_success failed. 332 fi 333 334 if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337 fi 338 339 if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341 else 342 exitcode=1 343 echo positional parameters were not saved. 344 fi 345 346 test $exitcode = 0) || { (exit 1); exit 1; } 347 348 ( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354 _ASEOF 355 }; then 356 break 357 fi 358 359 fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369 fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378 fi 379 380 381 fi 382 383 fi 384 385 386 387 (eval "as_func_return () { 388 (exit \$1) 389 } 390 as_func_success () { 391 as_func_return 0 392 } 393 as_func_failure () { 394 as_func_return 1 395 } 396 as_func_ret_success () { 397 return 0 398 } 399 as_func_ret_failure () { 400 return 1 401 } 402 403 exitcode=0 404 if as_func_success; then 405 : 406 else 407 exitcode=1 408 echo as_func_success failed. 409 fi 410 411 if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414 fi 415 416 if as_func_ret_success; then 417 : 418 else 419 exitcode=1 420 echo as_func_ret_success failed. 421 fi 422 423 if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426 fi 427 428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430 else 431 exitcode=1 432 echo positional parameters were not saved. 433 fi 434 435 test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441 } 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 432 # Avoid depending upon Character Ranges. 433 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436 as_cr_digits='0123456789' 437 as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 460 445 sed -n ' 461 446 p … … 474 459 ' >$as_me.lineno && 475 460 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 478 462 479 463 # Don't try to exec as it changes $[0], causing all sort of problems … … 485 469 } 486 470 487 488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then489 as_dirname=dirname490 else491 as_dirname=false492 fi493 494 471 ECHO_C= ECHO_N= ECHO_T= 495 case `echo -n x` in 472 case `echo -n x` in #((((( 496 473 -n*) 497 case `echo 'x \c'` in474 case `echo 'xy\c'` in 498 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 500 479 esac;; 501 480 *) 502 481 ECHO_N='-n';; 503 482 esac 504 if expr a : '\(a\)' >/dev/null 2>&1 &&505 test "X`expr 00001 : '.*\(...\)'`" = X001; then506 as_expr=expr507 else508 as_expr=false509 fi510 483 511 484 rm -f conf$$ conf$$.exe conf$$.file … … 537 510 538 511 if mkdir -p . 2>/dev/null; then 539 as_mkdir_p= :512 as_mkdir_p='mkdir -p "$as_dir"' 540 513 else 541 514 test -d ./-p && rmdir ./-p … … 556 529 test -d "$1/."; 557 530 else 558 case $1 in 531 case $1 in #( 559 532 -*)set "./$1";; 560 533 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 562 535 ???[sx]*):;;*)false;;esac;fi 563 536 '\'' sh … … 572 545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 546 574 575 576 exec 7<&0 </dev/null 6>&1 547 SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550 test -n "$DJDIR" || exec 7<&0 </dev/null 551 exec 6>&1 577 552 578 553 # Name of the host. 579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 580 555 # so uname gets run too. 581 556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` … … 592 567 MFLAGS= 593 568 MAKEFLAGS= 594 SHELL=${CONFIG_SHELL-/bin/sh}595 569 596 570 # Identity of this package. 597 PACKAGE_NAME='FULL-PACKAGE-NAME' 598 PACKAGE_TARNAME='full-package-name' 599 PACKAGE_VERSION='VERSION' 600 PACKAGE_STRING='FULL-PACKAGE-NAME VERSION' 601 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' 571 PACKAGE_NAME='libgfan' 572 PACKAGE_TARNAME='libgfan' 573 PACKAGE_VERSION='0.1' 574 PACKAGE_STRING='libgfan 0.1' 575 PACKAGE_BUGREPORT='ren@mathematik.uni-kl.de' 576 PACKAGE_URL='' 602 577 603 578 ac_unique_file="gfanlib.h" … … 638 613 #endif" 639 614 640 ac_subst_vars='LTLIBOBJS 615 ac_subst_vars='am__EXEEXT_FALSE 616 am__EXEEXT_TRUE 617 LTLIBOBJS 641 618 LIBOBJS 619 WANT_DEBUG_FALSE 620 WANT_DEBUG_TRUE 621 CXXCPP 622 CPP 623 OTOOL64 624 OTOOL 625 LIPO 626 NMEDIT 627 DSYMUTIL 628 MANIFEST_TOOL 629 RANLIB 630 DLLTOOL 631 OBJDUMP 632 NM 633 ac_ct_DUMPBIN 634 DUMPBIN 635 LD 636 FGREP 642 637 EGREP 643 638 GREP 644 CPP 645 RANLIB 639 SED 640 host_os 641 host_vendor 642 host_cpu 643 host 644 build_os 645 build_vendor 646 build_cpu 647 build 648 LIBTOOL 646 649 LN_S 650 am__fastdepCXX_FALSE 651 am__fastdepCXX_TRUE 652 CXXDEPMODE 647 653 ac_ct_CXX 648 654 CXXFLAGS 649 655 CXX 656 am__fastdepCC_FALSE 657 am__fastdepCC_TRUE 658 CCDEPMODE 659 am__nodep 660 AMDEPBACKSLASH 661 AMDEP_FALSE 662 AMDEP_TRUE 663 am__quote 664 am__include 665 DEPDIR 650 666 OBJEXT 651 667 EXEEXT … … 655 671 CFLAGS 656 672 CC 673 ac_ct_AR 674 AR 675 AM_BACKSLASH 676 AM_DEFAULT_VERBOSITY 677 AM_DEFAULT_V 678 AM_V 679 am__untar 680 am__tar 681 AMTAR 682 am__leading_dot 683 SET_MAKE 684 AWK 685 mkdir_p 686 MKDIR_P 687 INSTALL_STRIP_PROGRAM 688 STRIP 689 install_sh 690 MAKEINFO 691 AUTOHEADER 692 AUTOMAKE 693 AUTOCONF 694 ACLOCAL 695 VERSION 696 PACKAGE 697 CYGPATH_W 698 am__isrc 699 INSTALL_DATA 700 INSTALL_SCRIPT 701 INSTALL_PROGRAM 702 MAINT 703 MAINTAINER_MODE_FALSE 704 MAINTAINER_MODE_TRUE 657 705 target_alias 658 706 host_alias … … 685 733 prefix 686 734 exec_prefix 735 PACKAGE_URL 687 736 PACKAGE_BUGREPORT 688 737 PACKAGE_STRING … … 695 744 ac_user_opts=' 696 745 enable_option_checking 746 enable_maintainer_mode 747 enable_silent_rules 748 enable_dependency_tracking 749 enable_shared 750 enable_static 751 with_pic 752 enable_fast_install 753 with_gnu_ld 754 with_sysroot 755 enable_libtool_lock 756 enable_debug 697 757 ' 698 758 ac_precious_vars='build_alias … … 707 767 CXXFLAGS 708 768 CCC 709 CPP' 769 CPP 770 CXXCPP' 710 771 711 772 … … 770 831 771 832 case $ac_option in 772 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 773 *) ac_optarg=yes ;; 833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 834 *=) ac_optarg= ;; 835 *) ac_optarg=yes ;; 774 836 esac 775 837 … … 816 878 # Reject names that are not valid shell variable names. 817 879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 818 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 819 { (exit 1); exit 1; }; } 880 as_fn_error $? "invalid feature name: $ac_useropt" 820 881 ac_useropt_orig=$ac_useropt 821 882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 843 904 # Reject names that are not valid shell variable names. 844 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 845 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 846 { (exit 1); exit 1; }; } 906 as_fn_error $? "invalid feature name: $ac_useropt" 847 907 ac_useropt_orig=$ac_useropt 848 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1048 1108 # Reject names that are not valid shell variable names. 1049 1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1050 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1051 { (exit 1); exit 1; }; } 1110 as_fn_error $? "invalid package name: $ac_useropt" 1052 1111 ac_useropt_orig=$ac_useropt 1053 1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1065 1124 # Reject names that are not valid shell variable names. 1066 1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1067 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1068 { (exit 1); exit 1; }; } 1126 as_fn_error $? "invalid package name: $ac_useropt" 1069 1127 ac_useropt_orig=$ac_useropt 1070 1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1096 1154 x_libraries=$ac_optarg ;; 1097 1155 1098 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1099 Try \`$0 --help' for more information." >&2 1100 { (exit 1); exit 1; }; } 1156 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1157 Try \`$0 --help' for more information" 1101 1158 ;; 1102 1159 … … 1104 1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1105 1162 # Reject names that are not valid shell variable names. 1106 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1107 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1108 { (exit 1); exit 1; }; } 1163 case $ac_envvar in #( 1164 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1165 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1166 esac 1109 1167 eval $ac_envvar=\$ac_optarg 1110 1168 export $ac_envvar ;; … … 1115 1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1116 1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1117 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1118 1176 ;; 1119 1177 … … 1123 1181 if test -n "$ac_prev"; then 1124 1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1125 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1126 { (exit 1); exit 1; }; } 1183 as_fn_error $? "missing argument to $ac_option" 1127 1184 fi 1128 1185 … … 1130 1187 case $enable_option_checking in 1131 1188 no) ;; 1132 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1133 { (exit 1); exit 1; }; } ;; 1189 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1134 1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1135 1191 esac … … 1154 1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1155 1211 esac 1156 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1157 { (exit 1); exit 1; }; } 1212 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1158 1213 done 1159 1214 … … 1169 1224 if test "x$build_alias" = x; then 1170 1225 cross_compiling=maybe 1171 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.1172 If a cross compiler is detected then cross compile mode will be used ." >&21226 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1227 If a cross compiler is detected then cross compile mode will be used" >&2 1173 1228 elif test "x$build_alias" != "x$host_alias"; then 1174 1229 cross_compiling=yes … … 1185 1240 ac_ls_di=`ls -di .` && 1186 1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1187 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1188 { (exit 1); exit 1; }; } 1242 as_fn_error $? "working directory cannot be determined" 1189 1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1190 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1191 { (exit 1); exit 1; }; } 1244 as_fn_error $? "pwd does not report name of working directory" 1192 1245 1193 1246 … … 1228 1281 if test ! -r "$srcdir/$ac_unique_file"; then 1229 1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1230 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1231 { (exit 1); exit 1; }; } 1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1232 1284 fi 1233 1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1234 1286 ac_abs_confdir=`( 1235 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1236 { (exit 1); exit 1; }; } 1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1237 1288 pwd)` 1238 1289 # When building in place, set srcdir=. … … 1260 1311 # This message is too long to be a string in the A/UX 3.1 sh. 1261 1312 cat <<_ACEOF 1262 \`configure' configures FULL-PACKAGE-NAME VERSIONto adapt to many kinds of systems.1313 \`configure' configures libgfan 0.1 to adapt to many kinds of systems. 1263 1314 1264 1315 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1274 1325 --help=recursive display the short help of all the included packages 1275 1326 -V, --version display version information and exit 1276 -q, --quiet, --silent do not print \`checking ...' messages1327 -q, --quiet, --silent do not print \`checking ...' messages 1277 1328 --cache-file=FILE cache test results in FILE [disabled] 1278 1329 -C, --config-cache alias for \`--cache-file=config.cache' … … 1308 1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1309 1360 --mandir=DIR man documentation [DATAROOTDIR/man] 1310 --docdir=DIR documentation root 1311 [DATAROOTDIR/doc/full-package-name] 1361 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfan] 1312 1362 --htmldir=DIR html documentation [DOCDIR] 1313 1363 --dvidir=DIR dvi documentation [DOCDIR] … … 1317 1367 1318 1368 cat <<\_ACEOF 1369 1370 Program names: 1371 --program-prefix=PREFIX prepend PREFIX to installed program names 1372 --program-suffix=SUFFIX append SUFFIX to installed program names 1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1374 1375 System types: 1376 --build=BUILD configure for building on BUILD [guessed] 1377 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1319 1378 _ACEOF 1320 1379 fi … … 1322 1381 if test -n "$ac_init_help"; then 1323 1382 case $ac_init_help in 1324 short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";;1383 short | recursive ) echo "Configuration of libgfan 0.1:";; 1325 1384 esac 1326 1385 cat <<\_ACEOF 1386 1387 Optional Features: 1388 --disable-option-checking ignore unrecognized --enable/--with options 1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1391 --enable-maintainer-mode enable make rules and dependencies not useful 1392 (and sometimes confusing) to the casual installer 1393 --enable-silent-rules less verbose build output (undo: `make V=1') 1394 --disable-silent-rules verbose build output (undo: `make V=0') 1395 --disable-dependency-tracking speeds up one-time build 1396 --enable-dependency-tracking do not reject slow dependency extractors 1397 --enable-shared[=PKGS] build shared libraries [default=yes] 1398 --enable-static[=PKGS] build static libraries [default=yes] 1399 --enable-fast-install[=PKGS] 1400 optimize for fast installation [default=yes] 1401 --disable-libtool-lock avoid locking (might break parallel builds) 1402 --enable-debug build the debugging version of the libraries 1403 1404 Optional Packages: 1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1407 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1408 both] 1409 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1410 --with-sysroot=DIR Search for dependent libraries within DIR 1411 (or the compiler's sysroot if not specified). 1327 1412 1328 1413 Some influential environment variables: … … 1332 1417 nonstandard directory <lib dir> 1333 1418 LIBS libraries to pass to the linker, e.g. -l<library> 1334 CPPFLAGS C/C++/Objective Cpreprocessor flags, e.g. -I<include dir> if1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1335 1420 you have headers in a nonstandard directory <include dir> 1336 1421 CXX C++ compiler command 1337 1422 CXXFLAGS C++ compiler flags 1338 1423 CPP C preprocessor 1424 CXXCPP C++ preprocessor 1339 1425 1340 1426 Use these variables to override the choices made by `configure' or to help 1341 1427 it to find libraries and programs with nonstandard names/locations. 1342 1428 1343 Report bugs to < BUG-REPORT-ADDRESS>.1429 Report bugs to <ren@mathematik.uni-kl.de>. 1344 1430 _ACEOF 1345 1431 ac_status=$? … … 1404 1490 if $ac_init_version; then 1405 1491 cat <<\_ACEOF 1406 FULL-PACKAGE-NAME configure VERSION 1407 generated by GNU Autoconf 2.63 1408 1409 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1410 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1492 libgfan configure 0.1 1493 generated by GNU Autoconf 2.68 1494 1495 Copyright (C) 2010 Free Software Foundation, Inc. 1411 1496 This configure script is free software; the Free Software Foundation 1412 1497 gives unlimited permission to copy, distribute and modify it. … … 1414 1499 exit 1415 1500 fi 1501 1502 ## ------------------------ ## 1503 ## Autoconf initialization. ## 1504 ## ------------------------ ## 1505 1506 # ac_fn_c_try_compile LINENO 1507 # -------------------------- 1508 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1509 ac_fn_c_try_compile () 1510 { 1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1512 rm -f conftest.$ac_objext 1513 if { { ac_try="$ac_compile" 1514 case "(($ac_try" in 1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1516 *) ac_try_echo=$ac_try;; 1517 esac 1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1519 $as_echo "$ac_try_echo"; } >&5 1520 (eval "$ac_compile") 2>conftest.err 1521 ac_status=$? 1522 if test -s conftest.err; then 1523 grep -v '^ *+' conftest.err >conftest.er1 1524 cat conftest.er1 >&5 1525 mv -f conftest.er1 conftest.err 1526 fi 1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1528 test $ac_status = 0; } && { 1529 test -z "$ac_c_werror_flag" || 1530 test ! -s conftest.err 1531 } && test -s conftest.$ac_objext; then : 1532 ac_retval=0 1533 else 1534 $as_echo "$as_me: failed program was:" >&5 1535 sed 's/^/| /' conftest.$ac_ext >&5 1536 1537 ac_retval=1 1538 fi 1539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1540 as_fn_set_status $ac_retval 1541 1542 } # ac_fn_c_try_compile 1543 1544 # ac_fn_cxx_try_compile LINENO 1545 # ---------------------------- 1546 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1547 ac_fn_cxx_try_compile () 1548 { 1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 rm -f conftest.$ac_objext 1551 if { { ac_try="$ac_compile" 1552 case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555 esac 1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557 $as_echo "$ac_try_echo"; } >&5 1558 (eval "$ac_compile") 2>conftest.err 1559 ac_status=$? 1560 if test -s conftest.err; then 1561 grep -v '^ *+' conftest.err >conftest.er1 1562 cat conftest.er1 >&5 1563 mv -f conftest.er1 conftest.err 1564 fi 1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 test $ac_status = 0; } && { 1567 test -z "$ac_cxx_werror_flag" || 1568 test ! -s conftest.err 1569 } && test -s conftest.$ac_objext; then : 1570 ac_retval=0 1571 else 1572 $as_echo "$as_me: failed program was:" >&5 1573 sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576 fi 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 as_fn_set_status $ac_retval 1579 1580 } # ac_fn_cxx_try_compile 1581 1582 # ac_fn_c_try_link LINENO 1583 # ----------------------- 1584 # Try to link conftest.$ac_ext, and return whether this succeeded. 1585 ac_fn_c_try_link () 1586 { 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 rm -f conftest.$ac_objext conftest$ac_exeext 1589 if { { ac_try="$ac_link" 1590 case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593 esac 1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595 $as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_link") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } && { 1605 test -z "$ac_c_werror_flag" || 1606 test ! -s conftest.err 1607 } && test -s conftest$ac_exeext && { 1608 test "$cross_compiling" = yes || 1609 $as_test_x conftest$ac_exeext 1610 }; then : 1611 ac_retval=0 1612 else 1613 $as_echo "$as_me: failed program was:" >&5 1614 sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 1617 fi 1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1620 # interfere with the next link command; also delete a directory that is 1621 # left behind by Apple's compiler. We do this before executing the actions. 1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1624 as_fn_set_status $ac_retval 1625 1626 } # ac_fn_c_try_link 1627 1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1629 # ------------------------------------------------------- 1630 # Tests whether HEADER exists and can be compiled using the include files in 1631 # INCLUDES, setting the cache variable VAR accordingly. 1632 ac_fn_c_check_header_compile () 1633 { 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1636 $as_echo_n "checking for $2... " >&6; } 1637 if eval \${$3+:} false; then : 1638 $as_echo_n "(cached) " >&6 1639 else 1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1641 /* end confdefs.h. */ 1642 $4 1643 #include <$2> 1644 _ACEOF 1645 if ac_fn_c_try_compile "$LINENO"; then : 1646 eval "$3=yes" 1647 else 1648 eval "$3=no" 1649 fi 1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1651 fi 1652 eval ac_res=\$$3 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1654 $as_echo "$ac_res" >&6; } 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 1657 } # ac_fn_c_check_header_compile 1658 1659 # ac_fn_c_try_cpp LINENO 1660 # ---------------------- 1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1662 ac_fn_c_try_cpp () 1663 { 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 if { { ac_try="$ac_cpp conftest.$ac_ext" 1666 case "(($ac_try" in 1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1668 *) ac_try_echo=$ac_try;; 1669 esac 1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1671 $as_echo "$ac_try_echo"; } >&5 1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1673 ac_status=$? 1674 if test -s conftest.err; then 1675 grep -v '^ *+' conftest.err >conftest.er1 1676 cat conftest.er1 >&5 1677 mv -f conftest.er1 conftest.err 1678 fi 1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1680 test $ac_status = 0; } > conftest.i && { 1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1682 test ! -s conftest.err 1683 }; then : 1684 ac_retval=0 1685 else 1686 $as_echo "$as_me: failed program was:" >&5 1687 sed 's/^/| /' conftest.$ac_ext >&5 1688 1689 ac_retval=1 1690 fi 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692 as_fn_set_status $ac_retval 1693 1694 } # ac_fn_c_try_cpp 1695 1696 # ac_fn_c_try_run LINENO 1697 # ---------------------- 1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1699 # that executables *can* be run. 1700 ac_fn_c_try_run () 1701 { 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 if { { ac_try="$ac_link" 1704 case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707 esac 1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709 $as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_link") 2>&5 1711 ac_status=$? 1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1714 { { case "(($ac_try" in 1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1716 *) ac_try_echo=$ac_try;; 1717 esac 1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1719 $as_echo "$ac_try_echo"; } >&5 1720 (eval "$ac_try") 2>&5 1721 ac_status=$? 1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1723 test $ac_status = 0; }; }; then : 1724 ac_retval=0 1725 else 1726 $as_echo "$as_me: program exited with status $ac_status" >&5 1727 $as_echo "$as_me: failed program was:" >&5 1728 sed 's/^/| /' conftest.$ac_ext >&5 1729 1730 ac_retval=$ac_status 1731 fi 1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 as_fn_set_status $ac_retval 1735 1736 } # ac_fn_c_try_run 1737 1738 # ac_fn_c_check_func LINENO FUNC VAR 1739 # ---------------------------------- 1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1741 ac_fn_c_check_func () 1742 { 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745 $as_echo_n "checking for $2... " >&6; } 1746 if eval \${$3+:} false; then : 1747 $as_echo_n "(cached) " >&6 1748 else 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750 /* end confdefs.h. */ 1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1753 #define $2 innocuous_$2 1754 1755 /* System header to define __stub macros and hopefully few prototypes, 1756 which can conflict with char $2 (); below. 1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1758 <limits.h> exists even on freestanding compilers. */ 1759 1760 #ifdef __STDC__ 1761 # include <limits.h> 1762 #else 1763 # include <assert.h> 1764 #endif 1765 1766 #undef $2 1767 1768 /* Override any GCC internal prototype to avoid an error. 1769 Use char because int might match the return type of a GCC 1770 builtin and then its argument prototype would still apply. */ 1771 #ifdef __cplusplus 1772 extern "C" 1773 #endif 1774 char $2 (); 1775 /* The GNU C library defines this for functions which it implements 1776 to always fail with ENOSYS. Some functions are actually named 1777 something starting with __ and the normal name is an alias. */ 1778 #if defined __stub_$2 || defined __stub___$2 1779 choke me 1780 #endif 1781 1782 int 1783 main () 1784 { 1785 return $2 (); 1786 ; 1787 return 0; 1788 } 1789 _ACEOF 1790 if ac_fn_c_try_link "$LINENO"; then : 1791 eval "$3=yes" 1792 else 1793 eval "$3=no" 1794 fi 1795 rm -f core conftest.err conftest.$ac_objext \ 1796 conftest$ac_exeext conftest.$ac_ext 1797 fi 1798 eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800 $as_echo "$ac_res" >&6; } 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803 } # ac_fn_c_check_func 1804 1805 # ac_fn_cxx_try_cpp LINENO 1806 # ------------------------ 1807 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1808 ac_fn_cxx_try_cpp () 1809 { 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 if { { ac_try="$ac_cpp conftest.$ac_ext" 1812 case "(($ac_try" in 1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1814 *) ac_try_echo=$ac_try;; 1815 esac 1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1817 $as_echo "$ac_try_echo"; } >&5 1818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1819 ac_status=$? 1820 if test -s conftest.err; then 1821 grep -v '^ *+' conftest.err >conftest.er1 1822 cat conftest.er1 >&5 1823 mv -f conftest.er1 conftest.err 1824 fi 1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1826 test $ac_status = 0; } > conftest.i && { 1827 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1828 test ! -s conftest.err 1829 }; then : 1830 ac_retval=0 1831 else 1832 $as_echo "$as_me: failed program was:" >&5 1833 sed 's/^/| /' conftest.$ac_ext >&5 1834 1835 ac_retval=1 1836 fi 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 as_fn_set_status $ac_retval 1839 1840 } # ac_fn_cxx_try_cpp 1841 1842 # ac_fn_cxx_try_link LINENO 1843 # ------------------------- 1844 # Try to link conftest.$ac_ext, and return whether this succeeded. 1845 ac_fn_cxx_try_link () 1846 { 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 rm -f conftest.$ac_objext conftest$ac_exeext 1849 if { { ac_try="$ac_link" 1850 case "(($ac_try" in 1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1852 *) ac_try_echo=$ac_try;; 1853 esac 1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1855 $as_echo "$ac_try_echo"; } >&5 1856 (eval "$ac_link") 2>conftest.err 1857 ac_status=$? 1858 if test -s conftest.err; then 1859 grep -v '^ *+' conftest.err >conftest.er1 1860 cat conftest.er1 >&5 1861 mv -f conftest.er1 conftest.err 1862 fi 1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1864 test $ac_status = 0; } && { 1865 test -z "$ac_cxx_werror_flag" || 1866 test ! -s conftest.err 1867 } && test -s conftest$ac_exeext && { 1868 test "$cross_compiling" = yes || 1869 $as_test_x conftest$ac_exeext 1870 }; then : 1871 ac_retval=0 1872 else 1873 $as_echo "$as_me: failed program was:" >&5 1874 sed 's/^/| /' conftest.$ac_ext >&5 1875 1876 ac_retval=1 1877 fi 1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1880 # interfere with the next link command; also delete a directory that is 1881 # left behind by Apple's compiler. We do this before executing the actions. 1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1884 as_fn_set_status $ac_retval 1885 1886 } # ac_fn_cxx_try_link 1887 1888 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1889 # ------------------------------------------------------- 1890 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1891 # the include files in INCLUDES and setting the cache variable VAR 1892 # accordingly. 1893 ac_fn_c_check_header_mongrel () 1894 { 1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1896 if eval \${$3+:} false; then : 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1898 $as_echo_n "checking for $2... " >&6; } 1899 if eval \${$3+:} false; then : 1900 $as_echo_n "(cached) " >&6 1901 fi 1902 eval ac_res=\$$3 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1904 $as_echo "$ac_res" >&6; } 1905 else 1906 # Is the header compilable? 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1908 $as_echo_n "checking $2 usability... " >&6; } 1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910 /* end confdefs.h. */ 1911 $4 1912 #include <$2> 1913 _ACEOF 1914 if ac_fn_c_try_compile "$LINENO"; then : 1915 ac_header_compiler=yes 1916 else 1917 ac_header_compiler=no 1918 fi 1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1921 $as_echo "$ac_header_compiler" >&6; } 1922 1923 # Is the header present? 1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1925 $as_echo_n "checking $2 presence... " >&6; } 1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1927 /* end confdefs.h. */ 1928 #include <$2> 1929 _ACEOF 1930 if ac_fn_c_try_cpp "$LINENO"; then : 1931 ac_header_preproc=yes 1932 else 1933 ac_header_preproc=no 1934 fi 1935 rm -f conftest.err conftest.i conftest.$ac_ext 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1937 $as_echo "$ac_header_preproc" >&6; } 1938 1939 # So? What about this header? 1940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1941 yes:no: ) 1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1943 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1945 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1946 ;; 1947 no:yes:* ) 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1949 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1951 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1953 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1955 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1958 ( $as_echo "## --------------------------------------- ## 1959 ## Report this to ren@mathematik.uni-kl.de ## 1960 ## --------------------------------------- ##" 1961 ) | sed "s/^/$as_me: WARNING: /" >&2 1962 ;; 1963 esac 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1965 $as_echo_n "checking for $2... " >&6; } 1966 if eval \${$3+:} false; then : 1967 $as_echo_n "(cached) " >&6 1968 else 1969 eval "$3=\$ac_header_compiler" 1970 fi 1971 eval ac_res=\$$3 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1973 $as_echo "$ac_res" >&6; } 1974 fi 1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1976 1977 } # ac_fn_c_check_header_mongrel 1416 1978 cat >config.log <<_ACEOF 1417 1979 This file contains any messages produced by compilers while 1418 1980 running configure, to aid debugging if configure makes a mistake. 1419 1981 1420 It was created by FULL-PACKAGE-NAME $as_me VERSION, which was1421 generated by GNU Autoconf 2.6 3. Invocation command line was1982 It was created by libgfan $as_me 0.1, which was 1983 generated by GNU Autoconf 2.68. Invocation command line was 1422 1984 1423 1985 $ $0 $@ … … 1455 2017 IFS=$as_save_IFS 1456 2018 test -z "$as_dir" && as_dir=. 1457 $as_echo "PATH: $as_dir"1458 done2019 $as_echo "PATH: $as_dir" 2020 done 1459 2021 IFS=$as_save_IFS 1460 2022 … … 1493 2055 esac 1494 2056 case $ac_pass in 1495 1) a c_configure_args0="$ac_configure_args0'$ac_arg'" ;;2057 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1496 2058 2) 1497 a c_configure_args1="$ac_configure_args1'$ac_arg'"2059 as_fn_append ac_configure_args1 " '$ac_arg'" 1498 2060 if test $ac_must_keep_next = true; then 1499 2061 ac_must_keep_next=false # Got value, back to normal. … … 1511 2073 esac 1512 2074 fi 1513 a c_configure_args="$ac_configure_args'$ac_arg'"2075 as_fn_append ac_configure_args " '$ac_arg'" 1514 2076 ;; 1515 2077 esac 1516 2078 done 1517 2079 done 1518 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0;}1519 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1;}2080 { ac_configure_args0=; unset ac_configure_args0;} 2081 { ac_configure_args1=; unset ac_configure_args1;} 1520 2082 1521 2083 # When interrupted or exit'd, cleanup temporary files, and complete … … 1529 2091 echo 1530 2092 1531 cat <<\_ASBOX 1532 ## ---------------- ## 2093 $as_echo "## ---------------- ## 1533 2094 ## Cache variables. ## 1534 ## ---------------- ## 1535 _ASBOX 2095 ## ---------------- ##" 1536 2096 echo 1537 2097 # The following way of writing the cache mishandles newlines in values, … … 1542 2102 *${as_nl}*) 1543 2103 case $ac_var in #( 1544 *_cv_*) { $as_echo "$as_me:$ LINENO: WARNING: cache variable $ac_var contains a newline" >&52104 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1545 2105 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1546 2106 esac … … 1548 2108 _ | IFS | as_nl) ;; #( 1549 2109 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1550 *) $as_unset $ac_var;;2110 *) { eval $ac_var=; unset $ac_var;} ;; 1551 2111 esac ;; 1552 2112 esac … … 1567 2127 echo 1568 2128 1569 cat <<\_ASBOX 1570 ## ----------------- ## 2129 $as_echo "## ----------------- ## 1571 2130 ## Output variables. ## 1572 ## ----------------- ## 1573 _ASBOX 2131 ## ----------------- ##" 1574 2132 echo 1575 2133 for ac_var in $ac_subst_vars … … 1584 2142 1585 2143 if test -n "$ac_subst_files"; then 1586 cat <<\_ASBOX 1587 ## ------------------- ## 2144 $as_echo "## ------------------- ## 1588 2145 ## File substitutions. ## 1589 ## ------------------- ## 1590 _ASBOX 2146 ## ------------------- ##" 1591 2147 echo 1592 2148 for ac_var in $ac_subst_files … … 1602 2158 1603 2159 if test -s confdefs.h; then 1604 cat <<\_ASBOX 1605 ## ----------- ## 2160 $as_echo "## ----------- ## 1606 2161 ## confdefs.h. ## 1607 ## ----------- ## 1608 _ASBOX 2162 ## ----------- ##" 1609 2163 echo 1610 2164 cat confdefs.h … … 1620 2174 ' 0 1621 2175 for ac_signal in 1 2 13 15; do 1622 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal2176 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1623 2177 done 1624 2178 ac_signal=0 … … 1626 2180 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1627 2181 rm -f -r conftest* confdefs.h 2182 2183 $as_echo "/* confdefs.h */" > confdefs.h 1628 2184 1629 2185 # Predefined preprocessor variables. … … 1633 2189 _ACEOF 1634 2190 1635 1636 2191 cat >>confdefs.h <<_ACEOF 1637 2192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1638 2193 _ACEOF 1639 2194 1640 1641 2195 cat >>confdefs.h <<_ACEOF 1642 2196 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1643 2197 _ACEOF 1644 2198 1645 1646 2199 cat >>confdefs.h <<_ACEOF 1647 2200 #define PACKAGE_STRING "$PACKAGE_STRING" 1648 2201 _ACEOF 1649 2202 1650 1651 2203 cat >>confdefs.h <<_ACEOF 1652 2204 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2205 _ACEOF 2206 2207 cat >>confdefs.h <<_ACEOF 2208 #define PACKAGE_URL "$PACKAGE_URL" 1653 2209 _ACEOF 1654 2210 … … 1659 2215 ac_site_file2=NONE 1660 2216 if test -n "$CONFIG_SITE"; then 1661 ac_site_file1=$CONFIG_SITE 2217 # We do not want a PATH search for config.site. 2218 case $CONFIG_SITE in #(( 2219 -*) ac_site_file1=./$CONFIG_SITE;; 2220 */*) ac_site_file1=$CONFIG_SITE;; 2221 *) ac_site_file1=./$CONFIG_SITE;; 2222 esac 1662 2223 elif test "x$prefix" != xNONE; then 1663 2224 ac_site_file1=$prefix/share/config.site … … 1670 2231 do 1671 2232 test "x$ac_site_file" = xNONE && continue 1672 if test -r "$ac_site_file"; then1673 { $as_echo "$as_me:$ LINENO: loading site script $ac_site_file" >&52233 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1674 2235 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1675 2236 sed 's/^/| /' "$ac_site_file" >&5 1676 . "$ac_site_file" 2237 . "$ac_site_file" \ 2238 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2240 as_fn_error $? "failed to load site script $ac_site_file 2241 See \`config.log' for more details" "$LINENO" 5; } 1677 2242 fi 1678 2243 done 1679 2244 1680 2245 if test -r "$cache_file"; then 1681 # Some versions of bash will fail to source /dev/null (special 1682 # files actually), so we avoid doing that.1683 if test -f "$cache_file"; then1684 { $as_echo "$as_me:$ LINENO: loading cache $cache_file" >&52246 # Some versions of bash will fail to source /dev/null (special files 2247 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2248 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1685 2250 $as_echo "$as_me: loading cache $cache_file" >&6;} 1686 2251 case $cache_file in … … 1690 2255 fi 1691 2256 else 1692 { $as_echo "$as_me:$ LINENO: creating cache $cache_file" >&52257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1693 2258 $as_echo "$as_me: creating cache $cache_file" >&6;} 1694 2259 >$cache_file … … 1705 2270 case $ac_old_set,$ac_new_set in 1706 2271 set,) 1707 { $as_echo "$as_me:$ LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&52272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1708 2273 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1709 2274 ac_cache_corrupted=: ;; 1710 2275 ,set) 1711 { $as_echo "$as_me:$ LINENO: error: \`$ac_var' was not set in the previous run" >&52276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1712 2277 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1713 2278 ac_cache_corrupted=: ;; … … 1719 2284 ac_new_val_w=`echo x $ac_new_val` 1720 2285 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1721 { $as_echo "$as_me:$ LINENO: error: \`$ac_var' has changed since the previous run:" >&52286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1722 2287 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1723 2288 ac_cache_corrupted=: 1724 2289 else 1725 { $as_echo "$as_me:$ LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&52290 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1726 2291 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1727 2292 eval $ac_var=\$ac_old_val 1728 2293 fi 1729 { $as_echo "$as_me:$ LINENO: former value: \`$ac_old_val'" >&52294 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1730 2295 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1731 { $as_echo "$as_me:$ LINENO: current value: \`$ac_new_val'" >&52296 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1732 2297 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1733 2298 fi;; … … 1741 2306 case " $ac_configure_args " in 1742 2307 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1743 *) a c_configure_args="$ac_configure_args'$ac_arg'" ;;2308 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1744 2309 esac 1745 2310 fi 1746 2311 done 1747 2312 if $ac_cache_corrupted; then 1748 { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&52313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1749 2314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1750 { $as_echo "$as_me:$ LINENO: error: changes in the environment can compromise the build" >&52315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 1751 2316 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1752 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1753 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1754 { (exit 1); exit 1; }; } 1755 fi 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 2317 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2318 fi 2319 ## -------------------- ## 2320 ## Main body of script. ## 2321 ## -------------------- ## 1780 2322 1781 2323 ac_ext=c … … 1787 2329 1788 2330 2331 1789 2332 #AC_CONFIG_HEADERS([config.h]) 1790 2333 1791 # Checks for programs. 2334 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2336 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2337 # Check whether --enable-maintainer-mode was given. 2338 if test "${enable_maintainer_mode+set}" = set; then : 2339 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2340 else 2341 USE_MAINTAINER_MODE=no 2342 fi 2343 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2345 $as_echo "$USE_MAINTAINER_MODE" >&6; } 2346 if test $USE_MAINTAINER_MODE = yes; then 2347 MAINTAINER_MODE_TRUE= 2348 MAINTAINER_MODE_FALSE='#' 2349 else 2350 MAINTAINER_MODE_TRUE='#' 2351 MAINTAINER_MODE_FALSE= 2352 fi 2353 2354 MAINT=$MAINTAINER_MODE_TRUE 2355 2356 2357 am__api_version='1.11' 2358 2359 ac_aux_dir= 2360 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2361 if test -f "$ac_dir/install-sh"; then 2362 ac_aux_dir=$ac_dir 2363 ac_install_sh="$ac_aux_dir/install-sh -c" 2364 break 2365 elif test -f "$ac_dir/install.sh"; then 2366 ac_aux_dir=$ac_dir 2367 ac_install_sh="$ac_aux_dir/install.sh -c" 2368 break 2369 elif test -f "$ac_dir/shtool"; then 2370 ac_aux_dir=$ac_dir 2371 ac_install_sh="$ac_aux_dir/shtool install -c" 2372 break 2373 fi 2374 done 2375 if test -z "$ac_aux_dir"; then 2376 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2377 fi 2378 2379 # These three variables are undocumented and unsupported, 2380 # and are intended to be withdrawn in a future Autoconf release. 2381 # They can cause serious problems if a builder's source tree is in a directory 2382 # whose full name contains unusual characters. 2383 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2384 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2385 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2386 2387 2388 # Find a good install program. We prefer a C program (faster), 2389 # so one script is as good as another. But avoid the broken or 2390 # incompatible versions: 2391 # SysV /etc/install, /usr/sbin/install 2392 # SunOS /usr/etc/install 2393 # IRIX /sbin/install 2394 # AIX /bin/install 2395 # AmigaOS /C/install, which installs bootblocks on floppy discs 2396 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2397 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2398 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2399 # OS/2's system install, which has a completely different semantic 2400 # ./install, which can be erroneously created by make from ./install.sh. 2401 # Reject install programs that cannot install multiple files. 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2403 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2404 if test -z "$INSTALL"; then 2405 if ${ac_cv_path_install+:} false; then : 2406 $as_echo_n "(cached) " >&6 2407 else 2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2409 for as_dir in $PATH 2410 do 2411 IFS=$as_save_IFS 2412 test -z "$as_dir" && as_dir=. 2413 # Account for people who put trailing slashes in PATH elements. 2414 case $as_dir/ in #(( 2415 ./ | .// | /[cC]/* | \ 2416 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2417 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2418 /usr/ucb/* ) ;; 2419 *) 2420 # OSF1 and SCO ODT 3.0 have their own names for install. 2421 # Don't use installbsd from OSF since it installs stuff as root 2422 # by default. 2423 for ac_prog in ginstall scoinst install; do 2424 for ac_exec_ext in '' $ac_executable_extensions; do 2425 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2426 if test $ac_prog = install && 2427 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2428 # AIX install. It has an incompatible calling convention. 2429 : 2430 elif test $ac_prog = install && 2431 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2432 # program-specific install script used by HP pwplus--don't use. 2433 : 2434 else 2435 rm -rf conftest.one conftest.two conftest.dir 2436 echo one > conftest.one 2437 echo two > conftest.two 2438 mkdir conftest.dir 2439 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2440 test -s conftest.one && test -s conftest.two && 2441 test -s conftest.dir/conftest.one && 2442 test -s conftest.dir/conftest.two 2443 then 2444 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2445 break 3 2446 fi 2447 fi 2448 fi 2449 done 2450 done 2451 ;; 2452 esac 2453 2454 done 2455 IFS=$as_save_IFS 2456 2457 rm -rf conftest.one conftest.two conftest.dir 2458 2459 fi 2460 if test "${ac_cv_path_install+set}" = set; then 2461 INSTALL=$ac_cv_path_install 2462 else 2463 # As a last resort, use the slow shell script. Don't cache a 2464 # value for INSTALL within a source directory, because that will 2465 # break other packages using the cache if that directory is 2466 # removed, or if the value is a relative name. 2467 INSTALL=$ac_install_sh 2468 fi 2469 fi 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2471 $as_echo "$INSTALL" >&6; } 2472 2473 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2474 # It thinks the first close brace ends the variable substitution. 2475 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2476 2477 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2478 2479 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2480 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2482 $as_echo_n "checking whether build environment is sane... " >&6; } 2483 # Just in case 2484 sleep 1 2485 echo timestamp > conftest.file 2486 # Reject unsafe characters in $srcdir or the absolute working directory 2487 # name. Accept space and tab only in the latter. 2488 am_lf=' 2489 ' 2490 case `pwd` in 2491 *[\\\"\#\$\&\'\`$am_lf]*) 2492 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2493 esac 2494 case $srcdir in 2495 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2496 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2497 esac 2498 2499 # Do `set' in a subshell so we don't clobber the current shell's 2500 # arguments. Must try -L first in case configure is actually a 2501 # symlink; some systems play weird games with the mod time of symlinks 2502 # (eg FreeBSD returns the mod time of the symlink's containing 2503 # directory). 2504 if ( 2505 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2506 if test "$*" = "X"; then 2507 # -L didn't work. 2508 set X `ls -t "$srcdir/configure" conftest.file` 2509 fi 2510 rm -f conftest.file 2511 if test "$*" != "X $srcdir/configure conftest.file" \ 2512 && test "$*" != "X conftest.file $srcdir/configure"; then 2513 2514 # If neither matched, then we have a broken ls. This can happen 2515 # if, for instance, CONFIG_SHELL is bash and it inherits a 2516 # broken ls alias from the environment. This has actually 2517 # happened. Such a system could not be considered "sane". 2518 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2519 alias in your environment" "$LINENO" 5 2520 fi 2521 2522 test "$2" = conftest.file 2523 ) 2524 then 2525 # Ok. 2526 : 2527 else 2528 as_fn_error $? "newly created file is older than distributed files! 2529 Check your system clock" "$LINENO" 5 2530 fi 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2532 $as_echo "yes" >&6; } 2533 test "$program_prefix" != NONE && 2534 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2535 # Use a double $ so make ignores it. 2536 test "$program_suffix" != NONE && 2537 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2538 # Double any \ or $. 2539 # By default was `s,x,x', remove it if useless. 2540 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2541 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2542 2543 # expand $ac_aux_dir to an absolute path 2544 am_aux_dir=`cd $ac_aux_dir && pwd` 2545 2546 if test x"${MISSING+set}" != xset; then 2547 case $am_aux_dir in 2548 *\ * | *\ *) 2549 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2550 *) 2551 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2552 esac 2553 fi 2554 # Use eval to expand $SHELL 2555 if eval "$MISSING --run true"; then 2556 am_missing_run="$MISSING --run " 2557 else 2558 am_missing_run= 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2560 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2561 fi 2562 2563 if test x"${install_sh}" != xset; then 2564 case $am_aux_dir in 2565 *\ * | *\ *) 2566 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2567 *) 2568 install_sh="\${SHELL} $am_aux_dir/install-sh" 2569 esac 2570 fi 2571 2572 # Installed binaries are usually stripped using `strip' when the user 2573 # run `make install-strip'. However `strip' might not be the right 2574 # tool to use in cross-compilation environments, therefore Automake 2575 # will honor the `STRIP' environment variable to overrule this program. 2576 if test "$cross_compiling" != no; then 2577 if test -n "$ac_tool_prefix"; then 2578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2579 set dummy ${ac_tool_prefix}strip; ac_word=$2 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2581 $as_echo_n "checking for $ac_word... " >&6; } 2582 if ${ac_cv_prog_STRIP+:} false; then : 2583 $as_echo_n "(cached) " >&6 2584 else 2585 if test -n "$STRIP"; then 2586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2587 else 2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589 for as_dir in $PATH 2590 do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2595 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599 done 2600 done 2601 IFS=$as_save_IFS 2602 2603 fi 2604 fi 2605 STRIP=$ac_cv_prog_STRIP 2606 if test -n "$STRIP"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2608 $as_echo "$STRIP" >&6; } 2609 else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2611 $as_echo "no" >&6; } 2612 fi 2613 2614 2615 fi 2616 if test -z "$ac_cv_prog_STRIP"; then 2617 ac_ct_STRIP=$STRIP 2618 # Extract the first word of "strip", so it can be a program name with args. 2619 set dummy strip; ac_word=$2 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621 $as_echo_n "checking for $ac_word... " >&6; } 2622 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624 else 2625 if test -n "$ac_ct_STRIP"; then 2626 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2627 else 2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629 for as_dir in $PATH 2630 do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2635 ac_cv_prog_ac_ct_STRIP="strip" 2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639 done 2640 done 2641 IFS=$as_save_IFS 2642 2643 fi 2644 fi 2645 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2646 if test -n "$ac_ct_STRIP"; then 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2648 $as_echo "$ac_ct_STRIP" >&6; } 2649 else 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2651 $as_echo "no" >&6; } 2652 fi 2653 2654 if test "x$ac_ct_STRIP" = x; then 2655 STRIP=":" 2656 else 2657 case $cross_compiling:$ac_tool_warned in 2658 yes:) 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2661 ac_tool_warned=yes ;; 2662 esac 2663 STRIP=$ac_ct_STRIP 2664 fi 2665 else 2666 STRIP="$ac_cv_prog_STRIP" 2667 fi 2668 2669 fi 2670 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2671 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2673 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2674 if test -z "$MKDIR_P"; then 2675 if ${ac_cv_path_mkdir+:} false; then : 2676 $as_echo_n "(cached) " >&6 2677 else 2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2680 do 2681 IFS=$as_save_IFS 2682 test -z "$as_dir" && as_dir=. 2683 for ac_prog in mkdir gmkdir; do 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2686 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2687 'mkdir (GNU coreutils) '* | \ 2688 'mkdir (coreutils) '* | \ 2689 'mkdir (fileutils) '4.1*) 2690 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2691 break 3;; 2692 esac 2693 done 2694 done 2695 done 2696 IFS=$as_save_IFS 2697 2698 fi 2699 2700 test -d ./--version && rmdir ./--version 2701 if test "${ac_cv_path_mkdir+set}" = set; then 2702 MKDIR_P="$ac_cv_path_mkdir -p" 2703 else 2704 # As a last resort, use the slow shell script. Don't cache a 2705 # value for MKDIR_P within a source directory, because that will 2706 # break other packages using the cache if that directory is 2707 # removed, or if the value is a relative name. 2708 MKDIR_P="$ac_install_sh -d" 2709 fi 2710 fi 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2712 $as_echo "$MKDIR_P" >&6; } 2713 2714 mkdir_p="$MKDIR_P" 2715 case $mkdir_p in 2716 [\\/$]* | ?:[\\/]*) ;; 2717 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2718 esac 2719 2720 for ac_prog in gawk mawk nawk awk 2721 do 2722 # Extract the first word of "$ac_prog", so it can be a program name with args. 2723 set dummy $ac_prog; ac_word=$2 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2725 $as_echo_n "checking for $ac_word... " >&6; } 2726 if ${ac_cv_prog_AWK+:} false; then : 2727 $as_echo_n "(cached) " >&6 2728 else 2729 if test -n "$AWK"; then 2730 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2731 else 2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733 for as_dir in $PATH 2734 do 2735 IFS=$as_save_IFS 2736 test -z "$as_dir" && as_dir=. 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2739 ac_cv_prog_AWK="$ac_prog" 2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2741 break 2 2742 fi 2743 done 2744 done 2745 IFS=$as_save_IFS 2746 2747 fi 2748 fi 2749 AWK=$ac_cv_prog_AWK 2750 if test -n "$AWK"; then 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2752 $as_echo "$AWK" >&6; } 2753 else 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2755 $as_echo "no" >&6; } 2756 fi 2757 2758 2759 test -n "$AWK" && break 2760 done 2761 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2763 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2764 set x ${MAKE-make} 2765 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2766 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2767 $as_echo_n "(cached) " >&6 2768 else 2769 cat >conftest.make <<\_ACEOF 2770 SHELL = /bin/sh 2771 all: 2772 @echo '@@@%%%=$(MAKE)=@@@%%%' 2773 _ACEOF 2774 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2775 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2776 *@@@%%%=?*=@@@%%%*) 2777 eval ac_cv_prog_make_${ac_make}_set=yes;; 2778 *) 2779 eval ac_cv_prog_make_${ac_make}_set=no;; 2780 esac 2781 rm -f conftest.make 2782 fi 2783 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2785 $as_echo "yes" >&6; } 2786 SET_MAKE= 2787 else 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2789 $as_echo "no" >&6; } 2790 SET_MAKE="MAKE=${MAKE-make}" 2791 fi 2792 2793 rm -rf .tst 2>/dev/null 2794 mkdir .tst 2>/dev/null 2795 if test -d .tst; then 2796 am__leading_dot=. 2797 else 2798 am__leading_dot=_ 2799 fi 2800 rmdir .tst 2>/dev/null 2801 2802 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2803 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2804 # is not polluted with repeated "-I." 2805 am__isrc=' -I$(srcdir)' 2806 # test to see if srcdir already configured 2807 if test -f $srcdir/config.status; then 2808 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2809 fi 2810 fi 2811 2812 # test whether we have cygpath 2813 if test -z "$CYGPATH_W"; then 2814 if (cygpath --version) >/dev/null 2>/dev/null; then 2815 CYGPATH_W='cygpath -w' 2816 else 2817 CYGPATH_W=echo 2818 fi 2819 fi 2820 2821 2822 # Define the identity of the package. 2823 PACKAGE='libgfan' 2824 VERSION='0.1' 2825 2826 2827 cat >>confdefs.h <<_ACEOF 2828 #define PACKAGE "$PACKAGE" 2829 _ACEOF 2830 2831 2832 cat >>confdefs.h <<_ACEOF 2833 #define VERSION "$VERSION" 2834 _ACEOF 2835 2836 # Some tools Automake needs. 2837 2838 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2839 2840 2841 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2842 2843 2844 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2845 2846 2847 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2848 2849 2850 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2851 2852 # We need awk for the "check" target. The system "awk" is bad on 2853 # some platforms. 2854 # Always define AMTAR for backward compatibility. Yes, it's still used 2855 # in the wild :-( We should find a proper way to deprecate it ... 2856 AMTAR='$${TAR-tar}' 2857 2858 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2859 2860 2861 2862 2863 # -Wno-extra-portability -Werror silent-rules 2864 # Check whether --enable-silent-rules was given. 2865 if test "${enable_silent_rules+set}" = set; then : 2866 enableval=$enable_silent_rules; 2867 fi 2868 2869 case $enable_silent_rules in 2870 yes) AM_DEFAULT_VERBOSITY=0;; 2871 no) AM_DEFAULT_VERBOSITY=1;; 2872 *) AM_DEFAULT_VERBOSITY=1;; 2873 esac 2874 am_make=${MAKE-make} 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2876 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2877 if ${am_cv_make_support_nested_variables+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879 else 2880 if $as_echo 'TRUE=$(BAR$(V)) 2881 BAR0=false 2882 BAR1=true 2883 V=1 2884 am__doit: 2885 @$(TRUE) 2886 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2887 am_cv_make_support_nested_variables=yes 2888 else 2889 am_cv_make_support_nested_variables=no 2890 fi 2891 fi 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2893 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2894 if test $am_cv_make_support_nested_variables = yes; then 2895 AM_V='$(V)' 2896 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2897 else 2898 AM_V=$AM_DEFAULT_VERBOSITY 2899 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2900 fi 2901 AM_BACKSLASH='\' 2902 2903 DEPDIR="${am__leading_dot}deps" 2904 2905 ac_config_commands="$ac_config_commands depfiles" 2906 2907 2908 am_make=${MAKE-make} 2909 cat > confinc << 'END' 2910 am__doit: 2911 @echo this is the am__doit target 2912 .PHONY: am__doit 2913 END 2914 # If we don't find an include directive, just comment out the code. 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2916 $as_echo_n "checking for style of include used by $am_make... " >&6; } 2917 am__include="#" 2918 am__quote= 2919 _am_result=none 2920 # First try GNU make style include. 2921 echo "include confinc" > confmf 2922 # Ignore all kinds of additional output from `make'. 2923 case `$am_make -s -f confmf 2> /dev/null` in #( 2924 *the\ am__doit\ target*) 2925 am__include=include 2926 am__quote= 2927 _am_result=GNU 2928 ;; 2929 esac 2930 # Now try BSD make style include. 2931 if test "$am__include" = "#"; then 2932 echo '.include "confinc"' > confmf 2933 case `$am_make -s -f confmf 2> /dev/null` in #( 2934 *the\ am__doit\ target*) 2935 am__include=.include 2936 am__quote="\"" 2937 _am_result=BSD 2938 ;; 2939 esac 2940 fi 2941 2942 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2944 $as_echo "$_am_result" >&6; } 2945 rm -f confinc confmf 2946 2947 # Check whether --enable-dependency-tracking was given. 2948 if test "${enable_dependency_tracking+set}" = set; then : 2949 enableval=$enable_dependency_tracking; 2950 fi 2951 2952 if test "x$enable_dependency_tracking" != xno; then 2953 am_depcomp="$ac_aux_dir/depcomp" 2954 AMDEPBACKSLASH='\' 2955 am__nodep='_no' 2956 fi 2957 if test "x$enable_dependency_tracking" != xno; then 2958 AMDEP_TRUE= 2959 AMDEP_FALSE='#' 2960 else 2961 AMDEP_TRUE='#' 2962 AMDEP_FALSE= 2963 fi 2964 2965 1792 2966 ac_ext=c 1793 2967 ac_cpp='$CPP $CPPFLAGS' … … 1798 2972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1799 2973 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1800 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&52974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1801 2975 $as_echo_n "checking for $ac_word... " >&6; } 1802 if test "${ac_cv_prog_CC+set}" = set; then2976 if ${ac_cv_prog_CC+:} false; then : 1803 2977 $as_echo_n "(cached) " >&6 1804 2978 else … … 1811 2985 IFS=$as_save_IFS 1812 2986 test -z "$as_dir" && as_dir=. 1813 for ac_exec_ext in '' $ac_executable_extensions; do2987 for ac_exec_ext in '' $ac_executable_extensions; do 1814 2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1815 2989 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1816 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1817 2991 break 2 1818 2992 fi 1819 2993 done 1820 done2994 done 1821 2995 IFS=$as_save_IFS 1822 2996 … … 1825 2999 CC=$ac_cv_prog_CC 1826 3000 if test -n "$CC"; then 1827 { $as_echo "$as_me:$ LINENO: result: $CC" >&53001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 1828 3002 $as_echo "$CC" >&6; } 1829 3003 else 1830 { $as_echo "$as_me:$ LINENO: result: no" >&53004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1831 3005 $as_echo "no" >&6; } 1832 3006 fi … … 1838 3012 # Extract the first word of "gcc", so it can be a program name with args. 1839 3013 set dummy gcc; ac_word=$2 1840 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1841 3015 $as_echo_n "checking for $ac_word... " >&6; } 1842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then3016 if ${ac_cv_prog_ac_ct_CC+:} false; then : 1843 3017 $as_echo_n "(cached) " >&6 1844 3018 else … … 1851 3025 IFS=$as_save_IFS 1852 3026 test -z "$as_dir" && as_dir=. 1853 for ac_exec_ext in '' $ac_executable_extensions; do3027 for ac_exec_ext in '' $ac_executable_extensions; do 1854 3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1855 3029 ac_cv_prog_ac_ct_CC="gcc" 1856 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1857 3031 break 2 1858 3032 fi 1859 3033 done 1860 done3034 done 1861 3035 IFS=$as_save_IFS 1862 3036 … … 1865 3039 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1866 3040 if test -n "$ac_ct_CC"; then 1867 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CC" >&53041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 1868 3042 $as_echo "$ac_ct_CC" >&6; } 1869 3043 else 1870 { $as_echo "$as_me:$ LINENO: result: no" >&53044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1871 3045 $as_echo "no" >&6; } 1872 3046 fi … … 1877 3051 case $cross_compiling:$ac_tool_warned in 1878 3052 yes:) 1879 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&53053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 1880 3054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 1881 3055 ac_tool_warned=yes ;; … … 1891 3065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1892 3066 set dummy ${ac_tool_prefix}cc; ac_word=$2 1893 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1894 3068 $as_echo_n "checking for $ac_word... " >&6; } 1895 if test "${ac_cv_prog_CC+set}" = set; then3069 if ${ac_cv_prog_CC+:} false; then : 1896 3070 $as_echo_n "(cached) " >&6 1897 3071 else … … 1904 3078 IFS=$as_save_IFS 1905 3079 test -z "$as_dir" && as_dir=. 1906 for ac_exec_ext in '' $ac_executable_extensions; do3080 for ac_exec_ext in '' $ac_executable_extensions; do 1907 3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1908 3082 ac_cv_prog_CC="${ac_tool_prefix}cc" 1909 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1910 3084 break 2 1911 3085 fi 1912 3086 done 1913 done3087 done 1914 3088 IFS=$as_save_IFS 1915 3089 … … 1918 3092 CC=$ac_cv_prog_CC 1919 3093 if test -n "$CC"; then 1920 { $as_echo "$as_me:$ LINENO: result: $CC" >&53094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 1921 3095 $as_echo "$CC" >&6; } 1922 3096 else 1923 { $as_echo "$as_me:$ LINENO: result: no" >&53097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1924 3098 $as_echo "no" >&6; } 1925 3099 fi … … 1931 3105 # Extract the first word of "cc", so it can be a program name with args. 1932 3106 set dummy cc; ac_word=$2 1933 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1934 3108 $as_echo_n "checking for $ac_word... " >&6; } 1935 if test "${ac_cv_prog_CC+set}" = set; then3109 if ${ac_cv_prog_CC+:} false; then : 1936 3110 $as_echo_n "(cached) " >&6 1937 3111 else … … 1945 3119 IFS=$as_save_IFS 1946 3120 test -z "$as_dir" && as_dir=. 1947 for ac_exec_ext in '' $ac_executable_extensions; do3121 for ac_exec_ext in '' $ac_executable_extensions; do 1948 3122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1949 3123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then … … 1952 3126 fi 1953 3127 ac_cv_prog_CC="cc" 1954 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1955 3129 break 2 1956 3130 fi 1957 3131 done 1958 done3132 done 1959 3133 IFS=$as_save_IFS 1960 3134 … … 1975 3149 CC=$ac_cv_prog_CC 1976 3150 if test -n "$CC"; then 1977 { $as_echo "$as_me:$ LINENO: result: $CC" >&53151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 1978 3152 $as_echo "$CC" >&6; } 1979 3153 else 1980 { $as_echo "$as_me:$ LINENO: result: no" >&53154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1981 3155 $as_echo "no" >&6; } 1982 3156 fi … … 1990 3164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1991 3165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1992 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1993 3167 $as_echo_n "checking for $ac_word... " >&6; } 1994 if test "${ac_cv_prog_CC+set}" = set; then3168 if ${ac_cv_prog_CC+:} false; then : 1995 3169 $as_echo_n "(cached) " >&6 1996 3170 else … … 2003 3177 IFS=$as_save_IFS 2004 3178 test -z "$as_dir" && as_dir=. 2005 for ac_exec_ext in '' $ac_executable_extensions; do3179 for ac_exec_ext in '' $ac_executable_extensions; do 2006 3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2007 3181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2008 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2009 3183 break 2 2010 3184 fi 2011 3185 done 2012 done3186 done 2013 3187 IFS=$as_save_IFS 2014 3188 … … 2017 3191 CC=$ac_cv_prog_CC 2018 3192 if test -n "$CC"; then 2019 { $as_echo "$as_me:$ LINENO: result: $CC" >&53193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2020 3194 $as_echo "$CC" >&6; } 2021 3195 else 2022 { $as_echo "$as_me:$ LINENO: result: no" >&53196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2023 3197 $as_echo "no" >&6; } 2024 3198 fi … … 2034 3208 # Extract the first word of "$ac_prog", so it can be a program name with args. 2035 3209 set dummy $ac_prog; ac_word=$2 2036 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2037 3211 $as_echo_n "checking for $ac_word... " >&6; } 2038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then3212 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2039 3213 $as_echo_n "(cached) " >&6 2040 3214 else … … 2047 3221 IFS=$as_save_IFS 2048 3222 test -z "$as_dir" && as_dir=. 2049 for ac_exec_ext in '' $ac_executable_extensions; do3223 for ac_exec_ext in '' $ac_executable_extensions; do 2050 3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2051 3225 ac_cv_prog_ac_ct_CC="$ac_prog" 2052 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2053 3227 break 2 2054 3228 fi 2055 3229 done 2056 done3230 done 2057 3231 IFS=$as_save_IFS 2058 3232 … … 2061 3235 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2062 3236 if test -n "$ac_ct_CC"; then 2063 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CC" >&53237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2064 3238 $as_echo "$ac_ct_CC" >&6; } 2065 3239 else 2066 { $as_echo "$as_me:$ LINENO: result: no" >&53240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2067 3241 $as_echo "no" >&6; } 2068 3242 fi … … 2077 3251 case $cross_compiling:$ac_tool_warned in 2078 3252 yes:) 2079 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&53253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2080 3254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2081 3255 ac_tool_warned=yes ;; … … 2088 3262 2089 3263 2090 test -z "$CC" && { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&53264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2091 3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2092 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2093 See \`config.log' for more details." >&5 2094 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2095 See \`config.log' for more details." >&2;} 2096 { (exit 1); exit 1; }; }; } 3266 as_fn_error $? "no acceptable C compiler found in \$PATH 3267 See \`config.log' for more details" "$LINENO" 5; } 2097 3268 2098 3269 # Provide some information about the compiler. 2099 $as_echo "$as_me:$ LINENO: checking for C compiler version" >&53270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2100 3271 set X $ac_compile 2101 3272 ac_compiler=$2 2102 { (ac_try="$ac_compiler --version >&5" 3273 for ac_option in --version -v -V -qversion; do 3274 { { ac_try="$ac_compiler $ac_option >&5" 2103 3275 case "(($ac_try" in 2104 3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2105 3277 *) ac_try_echo=$ac_try;; 2106 3278 esac 2107 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2108 $as_echo "$ac_try_echo" )>&52109 (eval "$ac_compiler --version >&5") 2>&53279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3280 $as_echo "$ac_try_echo"; } >&5 3281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2110 3282 ac_status=$? 2111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2112 (exit $ac_status); } 2113 { (ac_try="$ac_compiler -v >&5" 2114 case "(($ac_try" in 2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2116 *) ac_try_echo=$ac_try;; 2117 esac 2118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2119 $as_echo "$ac_try_echo") >&5 2120 (eval "$ac_compiler -v >&5") 2>&5 2121 ac_status=$? 2122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2123 (exit $ac_status); } 2124 { (ac_try="$ac_compiler -V >&5" 2125 case "(($ac_try" in 2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2127 *) ac_try_echo=$ac_try;; 2128 esac 2129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2130 $as_echo "$ac_try_echo") >&5 2131 (eval "$ac_compiler -V >&5") 2>&5 2132 ac_status=$? 2133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2134 (exit $ac_status); } 2135 2136 cat >conftest.$ac_ext <<_ACEOF 2137 /* confdefs.h. */ 2138 _ACEOF 2139 cat confdefs.h >>conftest.$ac_ext 2140 cat >>conftest.$ac_ext <<_ACEOF 3283 if test -s conftest.err; then 3284 sed '10a\ 3285 ... rest of stderr output deleted ... 3286 10q' conftest.err >conftest.er1 3287 cat conftest.er1 >&5 3288 fi 3289 rm -f conftest.er1 conftest.err 3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3291 test $ac_status = 0; } 3292 done 3293 3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2141 3295 /* end confdefs.h. */ 2142 3296 … … 2154 3308 # It will help us diagnose broken compilers, and finding out an intuition 2155 3309 # of exeext. 2156 { $as_echo "$as_me:$ LINENO: checking for C compiler default output file name" >&52157 $as_echo_n "checking for C compiler default output file name... " >&6; }3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3311 $as_echo_n "checking whether the C compiler works... " >&6; } 2158 3312 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2159 3313 … … 2171 3325 rm -f $ac_rmfiles 2172 3326 2173 if { (ac_try="$ac_link_default"3327 if { { ac_try="$ac_link_default" 2174 3328 case "(($ac_try" in 2175 3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2176 3330 *) ac_try_echo=$ac_try;; 2177 3331 esac 2178 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2179 $as_echo "$ac_try_echo" )>&53332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3333 $as_echo "$ac_try_echo"; } >&5 2180 3334 (eval "$ac_link_default") 2>&5 2181 3335 ac_status=$? 2182 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&52183 (exit $ac_status); }; then3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3337 test $ac_status = 0; }; then : 2184 3338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2185 3339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' … … 2198 3352 break;; 2199 3353 *.* ) 2200 3354 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2201 3355 then :; else 2202 3356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` … … 2217 3371 ac_file='' 2218 3372 fi 2219 2220 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3373 if test -z "$ac_file"; then : 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375 $as_echo "no" >&6; } 3376 $as_echo "$as_me: failed program was:" >&5 3377 sed 's/^/| /' conftest.$ac_ext >&5 3378 3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3381 as_fn_error 77 "C compiler cannot create executables 3382 See \`config.log' for more details" "$LINENO" 5; } 3383 else 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3385 $as_echo "yes" >&6; } 3386 fi 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3388 $as_echo_n "checking for C compiler default output file name... " >&6; } 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2221 3390 $as_echo "$ac_file" >&6; } 2222 if test -z "$ac_file"; then2223 $as_echo "$as_me: failed program was:" >&52224 sed 's/^/| /' conftest.$ac_ext >&52225 2226 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&52227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2228 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables2229 See \`config.log' for more details." >&52230 $as_echo "$as_me: error: C compiler cannot create executables2231 See \`config.log' for more details." >&2;}2232 { (exit 77); exit 77; }; }; }2233 fi2234 2235 3391 ac_exeext=$ac_cv_exeext 2236 2237 # Check that the compiler produces executables we can run. If not, either2238 # the compiler is broken, or we cross compile.2239 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&52240 $as_echo_n "checking whether the C compiler works... " >&6; }2241 # FIXME: These cross compiler hacks should be removed for Autoconf 3.02242 # If not cross compiling, check that we can run a simple program.2243 if test "$cross_compiling" != yes; then2244 if { ac_try='./$ac_file'2245 { (case "(($ac_try" in2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2247 *) ac_try_echo=$ac_try;;2248 esac2249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""2250 $as_echo "$ac_try_echo") >&52251 (eval "$ac_try") 2>&52252 ac_status=$?2253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&52254 (exit $ac_status); }; }; then2255 cross_compiling=no2256 else2257 if test "$cross_compiling" = maybe; then2258 cross_compiling=yes2259 else2260 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&52261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2262 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.2263 If you meant to cross compile, use \`--host'.2264 See \`config.log' for more details." >&52265 $as_echo "$as_me: error: cannot run C compiled programs.2266 If you meant to cross compile, use \`--host'.2267 See \`config.log' for more details." >&2;}2268 { (exit 1); exit 1; }; }; }2269 fi2270 fi2271 fi2272 { $as_echo "$as_me:$LINENO: result: yes" >&52273 $as_echo "yes" >&6; }2274 3392 2275 3393 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2276 3394 ac_clean_files=$ac_clean_files_save 2277 # Check that the compiler produces executables we can run. If not, either 2278 # the compiler is broken, or we cross compile. 2279 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2280 $as_echo_n "checking whether we are cross compiling... " >&6; } 2281 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2282 $as_echo "$cross_compiling" >&6; } 2283 2284 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2285 3396 $as_echo_n "checking for suffix of executables... " >&6; } 2286 if { (ac_try="$ac_link"3397 if { { ac_try="$ac_link" 2287 3398 case "(($ac_try" in 2288 3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2289 3400 *) ac_try_echo=$ac_try;; 2290 3401 esac 2291 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2292 $as_echo "$ac_try_echo" )>&53402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3403 $as_echo "$ac_try_echo"; } >&5 2293 3404 (eval "$ac_link") 2>&5 2294 3405 ac_status=$? 2295 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&52296 (exit $ac_status); }; then3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3407 test $ac_status = 0; }; then : 2297 3408 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2298 3409 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will … … 2309 3420 done 2310 3421 else 2311 { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&53422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2312 3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2313 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2314 See \`config.log' for more details." >&5 2315 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2316 See \`config.log' for more details." >&2;} 2317 { (exit 1); exit 1; }; }; } 2318 fi 2319 2320 rm -f conftest$ac_cv_exeext 2321 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3424 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3425 See \`config.log' for more details" "$LINENO" 5; } 3426 fi 3427 rm -f conftest conftest$ac_cv_exeext 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2322 3429 $as_echo "$ac_cv_exeext" >&6; } 2323 3430 … … 2325 3432 EXEEXT=$ac_cv_exeext 2326 3433 ac_exeext=$EXEEXT 2327 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3435 /* end confdefs.h. */ 3436 #include <stdio.h> 3437 int 3438 main () 3439 { 3440 FILE *f = fopen ("conftest.out", "w"); 3441 return ferror (f) || fclose (f) != 0; 3442 3443 ; 3444 return 0; 3445 } 3446 _ACEOF 3447 ac_clean_files="$ac_clean_files conftest.out" 3448 # Check that the compiler produces executables we can run. If not, either 3449 # the compiler is broken, or we cross compile. 3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3451 $as_echo_n "checking whether we are cross compiling... " >&6; } 3452 if test "$cross_compiling" != yes; then 3453 { { ac_try="$ac_link" 3454 case "(($ac_try" in 3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3456 *) ac_try_echo=$ac_try;; 3457 esac 3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3459 $as_echo "$ac_try_echo"; } >&5 3460 (eval "$ac_link") 2>&5 3461 ac_status=$? 3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3463 test $ac_status = 0; } 3464 if { ac_try='./conftest$ac_cv_exeext' 3465 { { case "(($ac_try" in 3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3467 *) ac_try_echo=$ac_try;; 3468 esac 3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3470 $as_echo "$ac_try_echo"; } >&5 3471 (eval "$ac_try") 2>&5 3472 ac_status=$? 3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3474 test $ac_status = 0; }; }; then 3475 cross_compiling=no 3476 else 3477 if test "$cross_compiling" = maybe; then 3478 cross_compiling=yes 3479 else 3480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3482 as_fn_error $? "cannot run C compiled programs. 3483 If you meant to cross compile, use \`--host'. 3484 See \`config.log' for more details" "$LINENO" 5; } 3485 fi 3486 fi 3487 fi 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3489 $as_echo "$cross_compiling" >&6; } 3490 3491 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3492 ac_clean_files=$ac_clean_files_save 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2328 3494 $as_echo_n "checking for suffix of object files... " >&6; } 2329 if test "${ac_cv_objext+set}" = set; then3495 if ${ac_cv_objext+:} false; then : 2330 3496 $as_echo_n "(cached) " >&6 2331 3497 else 2332 cat >conftest.$ac_ext <<_ACEOF 2333 /* confdefs.h. */ 2334 _ACEOF 2335 cat confdefs.h >>conftest.$ac_ext 2336 cat >>conftest.$ac_ext <<_ACEOF 3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2337 3499 /* end confdefs.h. */ 2338 3500 … … 2346 3508 _ACEOF 2347 3509 rm -f conftest.o conftest.obj 2348 if { (ac_try="$ac_compile"3510 if { { ac_try="$ac_compile" 2349 3511 case "(($ac_try" in 2350 3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2351 3513 *) ac_try_echo=$ac_try;; 2352 3514 esac 2353 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2354 $as_echo "$ac_try_echo" )>&53515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3516 $as_echo "$ac_try_echo"; } >&5 2355 3517 (eval "$ac_compile") 2>&5 2356 3518 ac_status=$? 2357 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&52358 (exit $ac_status); }; then3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3520 test $ac_status = 0; }; then : 2359 3521 for ac_file in conftest.o conftest.obj conftest.*; do 2360 3522 test -f "$ac_file" || continue; … … 2369 3531 sed 's/^/| /' conftest.$ac_ext >&5 2370 3532 2371 { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&53533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2372 3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2373 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2374 See \`config.log' for more details." >&5 2375 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2376 See \`config.log' for more details." >&2;} 2377 { (exit 1); exit 1; }; }; } 2378 fi 2379 3535 as_fn_error $? "cannot compute suffix of object files: cannot compile 3536 See \`config.log' for more details" "$LINENO" 5; } 3537 fi 2380 3538 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2381 3539 fi 2382 { $as_echo "$as_me:$ LINENO: result: $ac_cv_objext" >&53540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2383 3541 $as_echo "$ac_cv_objext" >&6; } 2384 3542 OBJEXT=$ac_cv_objext 2385 3543 ac_objext=$OBJEXT 2386 { $as_echo "$as_me:$ LINENO: checking whether we are using the GNU C compiler" >&53544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2387 3545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2388 if test "${ac_cv_c_compiler_gnu+set}" = set; then3546 if ${ac_cv_c_compiler_gnu+:} false; then : 2389 3547 $as_echo_n "(cached) " >&6 2390 3548 else 2391 cat >conftest.$ac_ext <<_ACEOF 2392 /* confdefs.h. */ 2393 _ACEOF 2394 cat confdefs.h >>conftest.$ac_ext 2395 cat >>conftest.$ac_ext <<_ACEOF 3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2396 3550 /* end confdefs.h. */ 2397 3551 … … 2407 3561 } 2408 3562 _ACEOF 2409 rm -f conftest.$ac_objext 2410 if { (ac_try="$ac_compile" 2411 case "(($ac_try" in 2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2413 *) ac_try_echo=$ac_try;; 2414 esac 2415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2416 $as_echo "$ac_try_echo") >&5 2417 (eval "$ac_compile") 2>conftest.er1 2418 ac_status=$? 2419 grep -v '^ *+' conftest.er1 >conftest.err 2420 rm -f conftest.er1 2421 cat conftest.err >&5 2422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2423 (exit $ac_status); } && { 2424 test -z "$ac_c_werror_flag" || 2425 test ! -s conftest.err 2426 } && test -s conftest.$ac_objext; then 3563 if ac_fn_c_try_compile "$LINENO"; then : 2427 3564 ac_compiler_gnu=yes 2428 3565 else 2429 $as_echo "$as_me: failed program was:" >&5 2430 sed 's/^/| /' conftest.$ac_ext >&5 2431 2432 ac_compiler_gnu=no 2433 fi 2434 3566 ac_compiler_gnu=no 3567 fi 2435 3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2436 3569 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2437 3570 2438 3571 fi 2439 { $as_echo "$as_me:$ LINENO: result: $ac_cv_c_compiler_gnu" >&53572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2440 3573 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 2441 3574 if test $ac_compiler_gnu = yes; then … … 2446 3579 ac_test_CFLAGS=${CFLAGS+set} 2447 3580 ac_save_CFLAGS=$CFLAGS 2448 { $as_echo "$as_me:$ LINENO: checking whether $CC accepts -g" >&53581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2449 3582 $as_echo_n "checking whether $CC accepts -g... " >&6; } 2450 if test "${ac_cv_prog_cc_g+set}" = set; then3583 if ${ac_cv_prog_cc_g+:} false; then : 2451 3584 $as_echo_n "(cached) " >&6 2452 3585 else … … 2455 3588 ac_cv_prog_cc_g=no 2456 3589 CFLAGS="-g" 2457 cat >conftest.$ac_ext <<_ACEOF 2458 /* confdefs.h. */ 2459 _ACEOF 2460 cat confdefs.h >>conftest.$ac_ext 2461 cat >>conftest.$ac_ext <<_ACEOF 3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2462 3591 /* end confdefs.h. */ 2463 3592 … … 2470 3599 } 2471 3600 _ACEOF 2472 rm -f conftest.$ac_objext 2473 if { (ac_try="$ac_compile" 2474 case "(($ac_try" in 2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2476 *) ac_try_echo=$ac_try;; 2477 esac 2478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2479 $as_echo "$ac_try_echo") >&5 2480 (eval "$ac_compile") 2>conftest.er1 2481 ac_status=$? 2482 grep -v '^ *+' conftest.er1 >conftest.err 2483 rm -f conftest.er1 2484 cat conftest.err >&5 2485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2486 (exit $ac_status); } && { 2487 test -z "$ac_c_werror_flag" || 2488 test ! -s conftest.err 2489 } && test -s conftest.$ac_objext; then 3601 if ac_fn_c_try_compile "$LINENO"; then : 2490 3602 ac_cv_prog_cc_g=yes 2491 3603 else 2492 $as_echo "$as_me: failed program was:" >&5 2493 sed 's/^/| /' conftest.$ac_ext >&5 2494 2495 CFLAGS="" 2496 cat >conftest.$ac_ext <<_ACEOF 2497 /* confdefs.h. */ 2498 _ACEOF 2499 cat confdefs.h >>conftest.$ac_ext 2500 cat >>conftest.$ac_ext <<_ACEOF 3604 CFLAGS="" 3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2501 3606 /* end confdefs.h. */ 2502 3607 … … 2509 3614 } 2510 3615 _ACEOF 2511 rm -f conftest.$ac_objext 2512 if { (ac_try="$ac_compile" 2513 case "(($ac_try" in 2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2515 *) ac_try_echo=$ac_try;; 2516 esac 2517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2518 $as_echo "$ac_try_echo") >&5 2519 (eval "$ac_compile") 2>conftest.er1 2520 ac_status=$? 2521 grep -v '^ *+' conftest.er1 >conftest.err 2522 rm -f conftest.er1 2523 cat conftest.err >&5 2524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); } && { 2526 test -z "$ac_c_werror_flag" || 2527 test ! -s conftest.err 2528 } && test -s conftest.$ac_objext; then 2529 : 2530 else 2531 $as_echo "$as_me: failed program was:" >&5 2532 sed 's/^/| /' conftest.$ac_ext >&5 2533 2534 ac_c_werror_flag=$ac_save_c_werror_flag 3616 if ac_fn_c_try_compile "$LINENO"; then : 3617 3618 else 3619 ac_c_werror_flag=$ac_save_c_werror_flag 2535 3620 CFLAGS="-g" 2536 cat >conftest.$ac_ext <<_ACEOF 2537 /* confdefs.h. */ 2538 _ACEOF 2539 cat confdefs.h >>conftest.$ac_ext 2540 cat >>conftest.$ac_ext <<_ACEOF 3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2541 3622 /* end confdefs.h. */ 2542 3623 … … 2549 3630 } 2550 3631 _ACEOF 2551 rm -f conftest.$ac_objext 2552 if { (ac_try="$ac_compile" 2553 case "(($ac_try" in 2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2555 *) ac_try_echo=$ac_try;; 2556 esac 2557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2558 $as_echo "$ac_try_echo") >&5 2559 (eval "$ac_compile") 2>conftest.er1 2560 ac_status=$? 2561 grep -v '^ *+' conftest.er1 >conftest.err 2562 rm -f conftest.er1 2563 cat conftest.err >&5 2564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2565 (exit $ac_status); } && { 2566 test -z "$ac_c_werror_flag" || 2567 test ! -s conftest.err 2568 } && test -s conftest.$ac_objext; then 3632 if ac_fn_c_try_compile "$LINENO"; then : 2569 3633 ac_cv_prog_cc_g=yes 2570 else 2571 $as_echo "$as_me: failed program was:" >&5 2572 sed 's/^/| /' conftest.$ac_ext >&5 2573 2574 2575 fi 2576 3634 fi 2577 3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2578 3636 fi 2579 2580 3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2581 3638 fi 2582 2583 3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2584 3640 ac_c_werror_flag=$ac_save_c_werror_flag 2585 3641 fi 2586 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cc_g" >&53642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2587 3643 $as_echo "$ac_cv_prog_cc_g" >&6; } 2588 3644 if test "$ac_test_CFLAGS" = set; then … … 2601 3657 fi 2602 3658 fi 2603 { $as_echo "$as_me:$ LINENO: checking for $CC option to accept ISO C89" >&53659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2604 3660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2605 if test "${ac_cv_prog_cc_c89+set}" = set; then3661 if ${ac_cv_prog_cc_c89+:} false; then : 2606 3662 $as_echo_n "(cached) " >&6 2607 3663 else 2608 3664 ac_cv_prog_cc_c89=no 2609 3665 ac_save_CC=$CC 2610 cat >conftest.$ac_ext <<_ACEOF 2611 /* confdefs.h. */ 2612 _ACEOF 2613 cat confdefs.h >>conftest.$ac_ext 2614 cat >>conftest.$ac_ext <<_ACEOF 3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2615 3667 /* end confdefs.h. */ 2616 3668 #include <stdarg.h> … … 2669 3721 do 2670 3722 CC="$ac_save_CC $ac_arg" 2671 rm -f conftest.$ac_objext 2672 if { (ac_try="$ac_compile" 2673 case "(($ac_try" in 2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2675 *) ac_try_echo=$ac_try;; 2676 esac 2677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2678 $as_echo "$ac_try_echo") >&5 2679 (eval "$ac_compile") 2>conftest.er1 2680 ac_status=$? 2681 grep -v '^ *+' conftest.er1 >conftest.err 2682 rm -f conftest.er1 2683 cat conftest.err >&5 2684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2685 (exit $ac_status); } && { 2686 test -z "$ac_c_werror_flag" || 2687 test ! -s conftest.err 2688 } && test -s conftest.$ac_objext; then 3723 if ac_fn_c_try_compile "$LINENO"; then : 2689 3724 ac_cv_prog_cc_c89=$ac_arg 2690 else 2691 $as_echo "$as_me: failed program was:" >&5 2692 sed 's/^/| /' conftest.$ac_ext >&5 2693 2694 2695 fi 2696 3725 fi 2697 3726 rm -f core conftest.err conftest.$ac_objext 2698 3727 test "x$ac_cv_prog_cc_c89" != "xno" && break … … 2705 3734 case "x$ac_cv_prog_cc_c89" in 2706 3735 x) 2707 { $as_echo "$as_me:$ LINENO: result: none needed" >&53736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2708 3737 $as_echo "none needed" >&6; } ;; 2709 3738 xno) 2710 { $as_echo "$as_me:$ LINENO: result: unsupported" >&53739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2711 3740 $as_echo "unsupported" >&6; } ;; 2712 3741 *) 2713 3742 CC="$CC $ac_cv_prog_cc_c89" 2714 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cc_c89" >&53743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2715 3744 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2716 3745 esac 2717 3746 if test "x$ac_cv_prog_cc_c89" != xno; then : 3747 3748 fi 2718 3749 2719 3750 ac_ext=c … … 2722 3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2723 3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3755 3756 depcc="$CC" am_compiler_list= 3757 3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3759 $as_echo_n "checking dependency style of $depcc... " >&6; } 3760 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3761 $as_echo_n "(cached) " >&6 3762 else 3763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3764 # We make a subdir and do the tests there. Otherwise we can end up 3765 # making bogus files that we don't know about and never remove. For 3766 # instance it was reported that on HP-UX the gcc test will end up 3767 # making a dummy file named `D' -- because `-MD' means `put the output 3768 # in D'. 3769 rm -rf conftest.dir 3770 mkdir conftest.dir 3771 # Copy depcomp to subdir because otherwise we won't find it if we're 3772 # using a relative directory. 3773 cp "$am_depcomp" conftest.dir 3774 cd conftest.dir 3775 # We will build objects and dependencies in a subdirectory because 3776 # it helps to detect inapplicable dependency modes. For instance 3777 # both Tru64's cc and ICC support -MD to output dependencies as a 3778 # side effect of compilation, but ICC will put the dependencies in 3779 # the current directory while Tru64 will put them in the object 3780 # directory. 3781 mkdir sub 3782 3783 am_cv_CC_dependencies_compiler_type=none 3784 if test "$am_compiler_list" = ""; then 3785 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3786 fi 3787 am__universal=false 3788 case " $depcc " in #( 3789 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3790 esac 3791 3792 for depmode in $am_compiler_list; do 3793 # Setup a source with many dependencies, because some compilers 3794 # like to wrap large dependency lists on column 80 (with \), and 3795 # we should not choose a depcomp mode which is confused by this. 3796 # 3797 # We need to recreate these files for each test, as the compiler may 3798 # overwrite some of them when testing with obscure command lines. 3799 # This happens at least with the AIX C compiler. 3800 : > sub/conftest.c 3801 for i in 1 2 3 4 5 6; do 3802 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3803 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3804 # Solaris 8's {/usr,}/bin/sh. 3805 touch sub/conftst$i.h 3806 done 3807 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3808 3809 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3810 # mode. It turns out that the SunPro C++ compiler does not properly 3811 # handle `-M -o', and we need to detect this. Also, some Intel 3812 # versions had trouble with output in subdirs 3813 am__obj=sub/conftest.${OBJEXT-o} 3814 am__minus_obj="-o $am__obj" 3815 case $depmode in 3816 gcc) 3817 # This depmode causes a compiler race in universal mode. 3818 test "$am__universal" = false || continue 3819 ;; 3820 nosideeffect) 3821 # after this tag, mechanisms are not by side-effect, so they'll 3822 # only be used when explicitly requested 3823 if test "x$enable_dependency_tracking" = xyes; then 3824 continue 3825 else 3826 break 3827 fi 3828 ;; 3829 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3830 # This compiler won't grok `-c -o', but also, the minuso test has 3831 # not run yet. These depmodes are late enough in the game, and 3832 # so weak that their functioning should not be impacted. 3833 am__obj=conftest.${OBJEXT-o} 3834 am__minus_obj= 3835 ;; 3836 none) break ;; 3837 esac 3838 if depmode=$depmode \ 3839 source=sub/conftest.c object=$am__obj \ 3840 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3841 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3842 >/dev/null 2>conftest.err && 3843 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3844 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3845 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3846 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3847 # icc doesn't choke on unknown options, it will just issue warnings 3848 # or remarks (even with -Werror). So we grep stderr for any message 3849 # that says an option was ignored or not supported. 3850 # When given -MP, icc 7.0 and 7.1 complain thusly: 3851 # icc: Command line warning: ignoring option '-M'; no argument required 3852 # The diagnosis changed in icc 8.0: 3853 # icc: Command line remark: option '-MP' not supported 3854 if (grep 'ignoring option' conftest.err || 3855 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3856 am_cv_CC_dependencies_compiler_type=$depmode 3857 break 3858 fi 3859 fi 3860 done 3861 3862 cd .. 3863 rm -rf conftest.dir 3864 else 3865 am_cv_CC_dependencies_compiler_type=none 3866 fi 3867 3868 fi 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3870 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3871 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3872 3873 if 3874 test "x$enable_dependency_tracking" != xno \ 3875 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3876 am__fastdepCC_TRUE= 3877 am__fastdepCC_FALSE='#' 3878 else 3879 am__fastdepCC_TRUE='#' 3880 am__fastdepCC_FALSE= 3881 fi 3882 3883 3884 3885 if test -n "$ac_tool_prefix"; then 3886 for ac_prog in ar lib "link -lib" 3887 do 3888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3891 $as_echo_n "checking for $ac_word... " >&6; } 3892 if ${ac_cv_prog_AR+:} false; then : 3893 $as_echo_n "(cached) " >&6 3894 else 3895 if test -n "$AR"; then 3896 ac_cv_prog_AR="$AR" # Let the user override the test. 3897 else 3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3899 for as_dir in $PATH 3900 do 3901 IFS=$as_save_IFS 3902 test -z "$as_dir" && as_dir=. 3903 for ac_exec_ext in '' $ac_executable_extensions; do 3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3905 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3907 break 2 3908 fi 3909 done 3910 done 3911 IFS=$as_save_IFS 3912 3913 fi 3914 fi 3915 AR=$ac_cv_prog_AR 3916 if test -n "$AR"; then 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3918 $as_echo "$AR" >&6; } 3919 else 3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3921 $as_echo "no" >&6; } 3922 fi 3923 3924 3925 test -n "$AR" && break 3926 done 3927 fi 3928 if test -z "$AR"; then 3929 ac_ct_AR=$AR 3930 for ac_prog in ar lib "link -lib" 3931 do 3932 # Extract the first word of "$ac_prog", so it can be a program name with args. 3933 set dummy $ac_prog; ac_word=$2 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3935 $as_echo_n "checking for $ac_word... " >&6; } 3936 if ${ac_cv_prog_ac_ct_AR+:} false; then : 3937 $as_echo_n "(cached) " >&6 3938 else 3939 if test -n "$ac_ct_AR"; then 3940 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3941 else 3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3943 for as_dir in $PATH 3944 do 3945 IFS=$as_save_IFS 3946 test -z "$as_dir" && as_dir=. 3947 for ac_exec_ext in '' $ac_executable_extensions; do 3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3949 ac_cv_prog_ac_ct_AR="$ac_prog" 3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3951 break 2 3952 fi 3953 done 3954 done 3955 IFS=$as_save_IFS 3956 3957 fi 3958 fi 3959 ac_ct_AR=$ac_cv_prog_ac_ct_AR 3960 if test -n "$ac_ct_AR"; then 3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 3962 $as_echo "$ac_ct_AR" >&6; } 3963 else 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3965 $as_echo "no" >&6; } 3966 fi 3967 3968 3969 test -n "$ac_ct_AR" && break 3970 done 3971 3972 if test "x$ac_ct_AR" = x; then 3973 AR="false" 3974 else 3975 case $cross_compiling:$ac_tool_warned in 3976 yes:) 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3979 ac_tool_warned=yes ;; 3980 esac 3981 AR=$ac_ct_AR 3982 fi 3983 fi 3984 3985 : ${AR=ar} 3986 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 3988 $as_echo_n "checking the archiver ($AR) interface... " >&6; } 3989 if ${am_cv_ar_interface+:} false; then : 3990 $as_echo_n "(cached) " >&6 3991 else 3992 am_cv_ar_interface=ar 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994 /* end confdefs.h. */ 3995 int some_variable = 0; 3996 _ACEOF 3997 if ac_fn_c_try_compile "$LINENO"; then : 3998 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 3999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4000 (eval $am_ar_try) 2>&5 4001 ac_status=$? 4002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4003 test $ac_status = 0; } 4004 if test "$ac_status" -eq 0; then 4005 am_cv_ar_interface=ar 4006 else 4007 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4009 (eval $am_ar_try) 2>&5 4010 ac_status=$? 4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4012 test $ac_status = 0; } 4013 if test "$ac_status" -eq 0; then 4014 am_cv_ar_interface=lib 4015 else 4016 am_cv_ar_interface=unknown 4017 fi 4018 fi 4019 rm -f conftest.lib libconftest.a 4020 4021 fi 4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4023 4024 fi 4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4026 $as_echo "$am_cv_ar_interface" >&6; } 4027 4028 case $am_cv_ar_interface in 4029 ar) 4030 ;; 4031 lib) 4032 # Microsoft lib, so override with the ar-lib wrapper script. 4033 # FIXME: It is wrong to rewrite AR. 4034 # But if we don't then we get into trouble of one sort or another. 4035 # A longer-term fix would be to have automake use am__AR in this case, 4036 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4037 # similar. 4038 AR="$am_aux_dir/ar-lib $AR" 4039 ;; 4040 unknown) 4041 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4042 ;; 4043 esac 4044 4045 4046 # Checks for programs. 4047 ac_ext=c 4048 ac_cpp='$CPP $CPPFLAGS' 4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4052 if test -n "$ac_tool_prefix"; then 4053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4054 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4056 $as_echo_n "checking for $ac_word... " >&6; } 4057 if ${ac_cv_prog_CC+:} false; then : 4058 $as_echo_n "(cached) " >&6 4059 else 4060 if test -n "$CC"; then 4061 ac_cv_prog_CC="$CC" # Let the user override the test. 4062 else 4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4064 for as_dir in $PATH 4065 do 4066 IFS=$as_save_IFS 4067 test -z "$as_dir" && as_dir=. 4068 for ac_exec_ext in '' $ac_executable_extensions; do 4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4070 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4072 break 2 4073 fi 4074 done 4075 done 4076 IFS=$as_save_IFS 4077 4078 fi 4079 fi 4080 CC=$ac_cv_prog_CC 4081 if test -n "$CC"; then 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4083 $as_echo "$CC" >&6; } 4084 else 4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4086 $as_echo "no" >&6; } 4087 fi 4088 4089 4090 fi 4091 if test -z "$ac_cv_prog_CC"; then 4092 ac_ct_CC=$CC 4093 # Extract the first word of "gcc", so it can be a program name with args. 4094 set dummy gcc; ac_word=$2 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4096 $as_echo_n "checking for $ac_word... " >&6; } 4097 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4098 $as_echo_n "(cached) " >&6 4099 else 4100 if test -n "$ac_ct_CC"; then 4101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4102 else 4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4104 for as_dir in $PATH 4105 do 4106 IFS=$as_save_IFS 4107 test -z "$as_dir" && as_dir=. 4108 for ac_exec_ext in '' $ac_executable_extensions; do 4109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4110 ac_cv_prog_ac_ct_CC="gcc" 4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4112 break 2 4113 fi 4114 done 4115 done 4116 IFS=$as_save_IFS 4117 4118 fi 4119 fi 4120 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4121 if test -n "$ac_ct_CC"; then 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4123 $as_echo "$ac_ct_CC" >&6; } 4124 else 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4126 $as_echo "no" >&6; } 4127 fi 4128 4129 if test "x$ac_ct_CC" = x; then 4130 CC="" 4131 else 4132 case $cross_compiling:$ac_tool_warned in 4133 yes:) 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4136 ac_tool_warned=yes ;; 4137 esac 4138 CC=$ac_ct_CC 4139 fi 4140 else 4141 CC="$ac_cv_prog_CC" 4142 fi 4143 4144 if test -z "$CC"; then 4145 if test -n "$ac_tool_prefix"; then 4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4147 set dummy ${ac_tool_prefix}cc; ac_word=$2 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4149 $as_echo_n "checking for $ac_word... " >&6; } 4150 if ${ac_cv_prog_CC+:} false; then : 4151 $as_echo_n "(cached) " >&6 4152 else 4153 if test -n "$CC"; then 4154 ac_cv_prog_CC="$CC" # Let the user override the test. 4155 else 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 for ac_exec_ext in '' $ac_executable_extensions; do 4162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4163 ac_cv_prog_CC="${ac_tool_prefix}cc" 4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4165 break 2 4166 fi 4167 done 4168 done 4169 IFS=$as_save_IFS 4170 4171 fi 4172 fi 4173 CC=$ac_cv_prog_CC 4174 if test -n "$CC"; then 4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4176 $as_echo "$CC" >&6; } 4177 else 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4179 $as_echo "no" >&6; } 4180 fi 4181 4182 4183 fi 4184 fi 4185 if test -z "$CC"; then 4186 # Extract the first word of "cc", so it can be a program name with args. 4187 set dummy cc; ac_word=$2 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4189 $as_echo_n "checking for $ac_word... " >&6; } 4190 if ${ac_cv_prog_CC+:} false; then : 4191 $as_echo_n "(cached) " >&6 4192 else 4193 if test -n "$CC"; then 4194 ac_cv_prog_CC="$CC" # Let the user override the test. 4195 else 4196 ac_prog_rejected=no 4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4198 for as_dir in $PATH 4199 do 4200 IFS=$as_save_IFS 4201 test -z "$as_dir" && as_dir=. 4202 for ac_exec_ext in '' $ac_executable_extensions; do 4203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4204 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4205 ac_prog_rejected=yes 4206 continue 4207 fi 4208 ac_cv_prog_CC="cc" 4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4210 break 2 4211 fi 4212 done 4213 done 4214 IFS=$as_save_IFS 4215 4216 if test $ac_prog_rejected = yes; then 4217 # We found a bogon in the path, so make sure we never use it. 4218 set dummy $ac_cv_prog_CC 4219 shift 4220 if test $# != 0; then 4221 # We chose a different compiler from the bogus one. 4222 # However, it has the same basename, so the bogon will be chosen 4223 # first if we set CC to just the basename; use the full file name. 4224 shift 4225 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4226 fi 4227 fi 4228 fi 4229 fi 4230 CC=$ac_cv_prog_CC 4231 if test -n "$CC"; then 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4233 $as_echo "$CC" >&6; } 4234 else 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4236 $as_echo "no" >&6; } 4237 fi 4238 4239 4240 fi 4241 if test -z "$CC"; then 4242 if test -n "$ac_tool_prefix"; then 4243 for ac_prog in cl.exe 4244 do 4245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4248 $as_echo_n "checking for $ac_word... " >&6; } 4249 if ${ac_cv_prog_CC+:} false; then : 4250 $as_echo_n "(cached) " >&6 4251 else 4252 if test -n "$CC"; then 4253 ac_cv_prog_CC="$CC" # Let the user override the test. 4254 else 4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4256 for as_dir in $PATH 4257 do 4258 IFS=$as_save_IFS 4259 test -z "$as_dir" && as_dir=. 4260 for ac_exec_ext in '' $ac_executable_extensions; do 4261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4262 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4264 break 2 4265 fi 4266 done 4267 done 4268 IFS=$as_save_IFS 4269 4270 fi 4271 fi 4272 CC=$ac_cv_prog_CC 4273 if test -n "$CC"; then 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4275 $as_echo "$CC" >&6; } 4276 else 4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4278 $as_echo "no" >&6; } 4279 fi 4280 4281 4282 test -n "$CC" && break 4283 done 4284 fi 4285 if test -z "$CC"; then 4286 ac_ct_CC=$CC 4287 for ac_prog in cl.exe 4288 do 4289 # Extract the first word of "$ac_prog", so it can be a program name with args. 4290 set dummy $ac_prog; ac_word=$2 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4292 $as_echo_n "checking for $ac_word... " >&6; } 4293 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4294 $as_echo_n "(cached) " >&6 4295 else 4296 if test -n "$ac_ct_CC"; then 4297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4298 else 4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4300 for as_dir in $PATH 4301 do 4302 IFS=$as_save_IFS 4303 test -z "$as_dir" && as_dir=. 4304 for ac_exec_ext in '' $ac_executable_extensions; do 4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4306 ac_cv_prog_ac_ct_CC="$ac_prog" 4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4308 break 2 4309 fi 4310 done 4311 done 4312 IFS=$as_save_IFS 4313 4314 fi 4315 fi 4316 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4317 if test -n "$ac_ct_CC"; then 4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4319 $as_echo "$ac_ct_CC" >&6; } 4320 else 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4322 $as_echo "no" >&6; } 4323 fi 4324 4325 4326 test -n "$ac_ct_CC" && break 4327 done 4328 4329 if test "x$ac_ct_CC" = x; then 4330 CC="" 4331 else 4332 case $cross_compiling:$ac_tool_warned in 4333 yes:) 4334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4336 ac_tool_warned=yes ;; 4337 esac 4338 CC=$ac_ct_CC 4339 fi 4340 fi 4341 4342 fi 4343 4344 4345 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4347 as_fn_error $? "no acceptable C compiler found in \$PATH 4348 See \`config.log' for more details" "$LINENO" 5; } 4349 4350 # Provide some information about the compiler. 4351 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4352 set X $ac_compile 4353 ac_compiler=$2 4354 for ac_option in --version -v -V -qversion; do 4355 { { ac_try="$ac_compiler $ac_option >&5" 4356 case "(($ac_try" in 4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4358 *) ac_try_echo=$ac_try;; 4359 esac 4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4361 $as_echo "$ac_try_echo"; } >&5 4362 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4363 ac_status=$? 4364 if test -s conftest.err; then 4365 sed '10a\ 4366 ... rest of stderr output deleted ... 4367 10q' conftest.err >conftest.er1 4368 cat conftest.er1 >&5 4369 fi 4370 rm -f conftest.er1 conftest.err 4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4372 test $ac_status = 0; } 4373 done 4374 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4376 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4377 if ${ac_cv_c_compiler_gnu+:} false; then : 4378 $as_echo_n "(cached) " >&6 4379 else 4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4381 /* end confdefs.h. */ 4382 4383 int 4384 main () 4385 { 4386 #ifndef __GNUC__ 4387 choke me 4388 #endif 4389 4390 ; 4391 return 0; 4392 } 4393 _ACEOF 4394 if ac_fn_c_try_compile "$LINENO"; then : 4395 ac_compiler_gnu=yes 4396 else 4397 ac_compiler_gnu=no 4398 fi 4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4400 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4401 4402 fi 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4404 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4405 if test $ac_compiler_gnu = yes; then 4406 GCC=yes 4407 else 4408 GCC= 4409 fi 4410 ac_test_CFLAGS=${CFLAGS+set} 4411 ac_save_CFLAGS=$CFLAGS 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4413 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4414 if ${ac_cv_prog_cc_g+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416 else 4417 ac_save_c_werror_flag=$ac_c_werror_flag 4418 ac_c_werror_flag=yes 4419 ac_cv_prog_cc_g=no 4420 CFLAGS="-g" 4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4422 /* end confdefs.h. */ 4423 4424 int 4425 main () 4426 { 4427 4428 ; 4429 return 0; 4430 } 4431 _ACEOF 4432 if ac_fn_c_try_compile "$LINENO"; then : 4433 ac_cv_prog_cc_g=yes 4434 else 4435 CFLAGS="" 4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4437 /* end confdefs.h. */ 4438 4439 int 4440 main () 4441 { 4442 4443 ; 4444 return 0; 4445 } 4446 _ACEOF 4447 if ac_fn_c_try_compile "$LINENO"; then : 4448 4449 else 4450 ac_c_werror_flag=$ac_save_c_werror_flag 4451 CFLAGS="-g" 4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4453 /* end confdefs.h. */ 4454 4455 int 4456 main () 4457 { 4458 4459 ; 4460 return 0; 4461 } 4462 _ACEOF 4463 if ac_fn_c_try_compile "$LINENO"; then : 4464 ac_cv_prog_cc_g=yes 4465 fi 4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4467 fi 4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4469 fi 4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4471 ac_c_werror_flag=$ac_save_c_werror_flag 4472 fi 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4474 $as_echo "$ac_cv_prog_cc_g" >&6; } 4475 if test "$ac_test_CFLAGS" = set; then 4476 CFLAGS=$ac_save_CFLAGS 4477 elif test $ac_cv_prog_cc_g = yes; then 4478 if test "$GCC" = yes; then 4479 CFLAGS="-g -O2" 4480 else 4481 CFLAGS="-g" 4482 fi 4483 else 4484 if test "$GCC" = yes; then 4485 CFLAGS="-O2" 4486 else 4487 CFLAGS= 4488 fi 4489 fi 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4491 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4492 if ${ac_cv_prog_cc_c89+:} false; then : 4493 $as_echo_n "(cached) " >&6 4494 else 4495 ac_cv_prog_cc_c89=no 4496 ac_save_CC=$CC 4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4498 /* end confdefs.h. */ 4499 #include <stdarg.h> 4500 #include <stdio.h> 4501 #include <sys/types.h> 4502 #include <sys/stat.h> 4503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4504 struct buf { int x; }; 4505 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4506 static char *e (p, i) 4507 char **p; 4508 int i; 4509 { 4510 return p[i]; 4511 } 4512 static char *f (char * (*g) (char **, int), char **p, ...) 4513 { 4514 char *s; 4515 va_list v; 4516 va_start (v,p); 4517 s = g (p, va_arg (v,int)); 4518 va_end (v); 4519 return s; 4520 } 4521 4522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4523 function prototypes and stuff, but not '\xHH' hex character constants. 4524 These don't provoke an error unfortunately, instead are silently treated 4525 as 'x'. The following induces an error, until -std is added to get 4526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4527 array size at least. It's necessary to write '\x00'==0 to get something 4528 that's true only with -std. */ 4529 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4530 4531 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4532 inside strings and character constants. */ 4533 #define FOO(x) 'x' 4534 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4535 4536 int test (int i, double x); 4537 struct s1 {int (*f) (int a);}; 4538 struct s2 {int (*f) (double a);}; 4539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4540 int argc; 4541 char **argv; 4542 int 4543 main () 4544 { 4545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4546 ; 4547 return 0; 4548 } 4549 _ACEOF 4550 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4551 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4552 do 4553 CC="$ac_save_CC $ac_arg" 4554 if ac_fn_c_try_compile "$LINENO"; then : 4555 ac_cv_prog_cc_c89=$ac_arg 4556 fi 4557 rm -f core conftest.err conftest.$ac_objext 4558 test "x$ac_cv_prog_cc_c89" != "xno" && break 4559 done 4560 rm -f conftest.$ac_ext 4561 CC=$ac_save_CC 4562 4563 fi 4564 # AC_CACHE_VAL 4565 case "x$ac_cv_prog_cc_c89" in 4566 x) 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4568 $as_echo "none needed" >&6; } ;; 4569 xno) 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4571 $as_echo "unsupported" >&6; } ;; 4572 *) 4573 CC="$CC $ac_cv_prog_cc_c89" 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4575 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4576 esac 4577 if test "x$ac_cv_prog_cc_c89" != xno; then : 4578 4579 fi 4580 4581 ac_ext=c 4582 ac_cpp='$CPP $CPPFLAGS' 4583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4585 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4586 4587 depcc="$CC" am_compiler_list= 4588 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4590 $as_echo_n "checking dependency style of $depcc... " >&6; } 4591 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4592 $as_echo_n "(cached) " >&6 4593 else 4594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4595 # We make a subdir and do the tests there. Otherwise we can end up 4596 # making bogus files that we don't know about and never remove. For 4597 # instance it was reported that on HP-UX the gcc test will end up 4598 # making a dummy file named `D' -- because `-MD' means `put the output 4599 # in D'. 4600 rm -rf conftest.dir 4601 mkdir conftest.dir 4602 # Copy depcomp to subdir because otherwise we won't find it if we're 4603 # using a relative directory. 4604 cp "$am_depcomp" conftest.dir 4605 cd conftest.dir 4606 # We will build objects and dependencies in a subdirectory because 4607 # it helps to detect inapplicable dependency modes. For instance 4608 # both Tru64's cc and ICC support -MD to output dependencies as a 4609 # side effect of compilation, but ICC will put the dependencies in 4610 # the current directory while Tru64 will put them in the object 4611 # directory. 4612 mkdir sub 4613 4614 am_cv_CC_dependencies_compiler_type=none 4615 if test "$am_compiler_list" = ""; then 4616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4617 fi 4618 am__universal=false 4619 case " $depcc " in #( 4620 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4621 esac 4622 4623 for depmode in $am_compiler_list; do 4624 # Setup a source with many dependencies, because some compilers 4625 # like to wrap large dependency lists on column 80 (with \), and 4626 # we should not choose a depcomp mode which is confused by this. 4627 # 4628 # We need to recreate these files for each test, as the compiler may 4629 # overwrite some of them when testing with obscure command lines. 4630 # This happens at least with the AIX C compiler. 4631 : > sub/conftest.c 4632 for i in 1 2 3 4 5 6; do 4633 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4634 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4635 # Solaris 8's {/usr,}/bin/sh. 4636 touch sub/conftst$i.h 4637 done 4638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4639 4640 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4641 # mode. It turns out that the SunPro C++ compiler does not properly 4642 # handle `-M -o', and we need to detect this. Also, some Intel 4643 # versions had trouble with output in subdirs 4644 am__obj=sub/conftest.${OBJEXT-o} 4645 am__minus_obj="-o $am__obj" 4646 case $depmode in 4647 gcc) 4648 # This depmode causes a compiler race in universal mode. 4649 test "$am__universal" = false || continue 4650 ;; 4651 nosideeffect) 4652 # after this tag, mechanisms are not by side-effect, so they'll 4653 # only be used when explicitly requested 4654 if test "x$enable_dependency_tracking" = xyes; then 4655 continue 4656 else 4657 break 4658 fi 4659 ;; 4660 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4661 # This compiler won't grok `-c -o', but also, the minuso test has 4662 # not run yet. These depmodes are late enough in the game, and 4663 # so weak that their functioning should not be impacted. 4664 am__obj=conftest.${OBJEXT-o} 4665 am__minus_obj= 4666 ;; 4667 none) break ;; 4668 esac 4669 if depmode=$depmode \ 4670 source=sub/conftest.c object=$am__obj \ 4671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4673 >/dev/null 2>conftest.err && 4674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4678 # icc doesn't choke on unknown options, it will just issue warnings 4679 # or remarks (even with -Werror). So we grep stderr for any message 4680 # that says an option was ignored or not supported. 4681 # When given -MP, icc 7.0 and 7.1 complain thusly: 4682 # icc: Command line warning: ignoring option '-M'; no argument required 4683 # The diagnosis changed in icc 8.0: 4684 # icc: Command line remark: option '-MP' not supported 4685 if (grep 'ignoring option' conftest.err || 4686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4687 am_cv_CC_dependencies_compiler_type=$depmode 4688 break 4689 fi 4690 fi 4691 done 4692 4693 cd .. 4694 rm -rf conftest.dir 4695 else 4696 am_cv_CC_dependencies_compiler_type=none 4697 fi 4698 4699 fi 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4701 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4702 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4703 4704 if 4705 test "x$enable_dependency_tracking" != xno \ 4706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4707 am__fastdepCC_TRUE= 4708 am__fastdepCC_FALSE='#' 4709 else 4710 am__fastdepCC_TRUE='#' 4711 am__fastdepCC_FALSE= 4712 fi 4713 2724 4714 2725 4715 ac_ext=cpp … … 2737 4727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2738 4728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2739 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&54729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2740 4730 $as_echo_n "checking for $ac_word... " >&6; } 2741 if test "${ac_cv_prog_CXX+set}" = set; then4731 if ${ac_cv_prog_CXX+:} false; then : 2742 4732 $as_echo_n "(cached) " >&6 2743 4733 else … … 2750 4740 IFS=$as_save_IFS 2751 4741 test -z "$as_dir" && as_dir=. 2752 for ac_exec_ext in '' $ac_executable_extensions; do4742 for ac_exec_ext in '' $ac_executable_extensions; do 2753 4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2754 4744 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2755 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&54745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2756 4746 break 2 2757 4747 fi 2758 4748 done 2759 done4749 done 2760 4750 IFS=$as_save_IFS 2761 4751 … … 2764 4754 CXX=$ac_cv_prog_CXX 2765 4755 if test -n "$CXX"; then 2766 { $as_echo "$as_me:$ LINENO: result: $CXX" >&54756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 2767 4757 $as_echo "$CXX" >&6; } 2768 4758 else 2769 { $as_echo "$as_me:$ LINENO: result: no" >&54759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2770 4760 $as_echo "no" >&6; } 2771 4761 fi … … 2781 4771 # Extract the first word of "$ac_prog", so it can be a program name with args. 2782 4772 set dummy $ac_prog; ac_word=$2 2783 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&54773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2784 4774 $as_echo_n "checking for $ac_word... " >&6; } 2785 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then4775 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 2786 4776 $as_echo_n "(cached) " >&6 2787 4777 else … … 2794 4784 IFS=$as_save_IFS 2795 4785 test -z "$as_dir" && as_dir=. 2796 for ac_exec_ext in '' $ac_executable_extensions; do4786 for ac_exec_ext in '' $ac_executable_extensions; do 2797 4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2798 4788 ac_cv_prog_ac_ct_CXX="$ac_prog" 2799 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&54789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2800 4790 break 2 2801 4791 fi 2802 4792 done 2803 done4793 done 2804 4794 IFS=$as_save_IFS 2805 4795 … … 2808 4798 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2809 4799 if test -n "$ac_ct_CXX"; then 2810 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CXX" >&54800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 2811 4801 $as_echo "$ac_ct_CXX" >&6; } 2812 4802 else 2813 { $as_echo "$as_me:$ LINENO: result: no" >&54803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2814 4804 $as_echo "no" >&6; } 2815 4805 fi … … 2824 4814 case $cross_compiling:$ac_tool_warned in 2825 4815 yes:) 2826 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&54816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2827 4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2828 4818 ac_tool_warned=yes ;; … … 2835 4825 fi 2836 4826 # Provide some information about the compiler. 2837 $as_echo "$as_me:$ LINENO: checking for C++ compiler version" >&54827 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 2838 4828 set X $ac_compile 2839 4829 ac_compiler=$2 2840 { (ac_try="$ac_compiler --version >&5" 4830 for ac_option in --version -v -V -qversion; do 4831 { { ac_try="$ac_compiler $ac_option >&5" 2841 4832 case "(($ac_try" in 2842 4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2843 4834 *) ac_try_echo=$ac_try;; 2844 4835 esac 2845 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2846 $as_echo "$ac_try_echo" )>&52847 (eval "$ac_compiler --version >&5") 2>&54836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4837 $as_echo "$ac_try_echo"; } >&5 4838 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2848 4839 ac_status=$? 2849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2850 (exit $ac_status); } 2851 { (ac_try="$ac_compiler -v >&5" 2852 case "(($ac_try" in 2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2854 *) ac_try_echo=$ac_try;; 2855 esac 2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2857 $as_echo "$ac_try_echo") >&5 2858 (eval "$ac_compiler -v >&5") 2>&5 2859 ac_status=$? 2860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2861 (exit $ac_status); } 2862 { (ac_try="$ac_compiler -V >&5" 2863 case "(($ac_try" in 2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2865 *) ac_try_echo=$ac_try;; 2866 esac 2867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2868 $as_echo "$ac_try_echo") >&5 2869 (eval "$ac_compiler -V >&5") 2>&5 2870 ac_status=$? 2871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2872 (exit $ac_status); } 2873 2874 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4840 if test -s conftest.err; then 4841 sed '10a\ 4842 ... rest of stderr output deleted ... 4843 10q' conftest.err >conftest.er1 4844 cat conftest.er1 >&5 4845 fi 4846 rm -f conftest.er1 conftest.err 4847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4848 test $ac_status = 0; } 4849 done 4850 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 2875 4852 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 2876 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then4853 if ${ac_cv_cxx_compiler_gnu+:} false; then : 2877 4854 $as_echo_n "(cached) " >&6 2878 4855 else 2879 cat >conftest.$ac_ext <<_ACEOF 2880 /* confdefs.h. */ 2881 _ACEOF 2882 cat confdefs.h >>conftest.$ac_ext 2883 cat >>conftest.$ac_ext <<_ACEOF 4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2884 4857 /* end confdefs.h. */ 2885 4858 … … 2895 4868 } 2896 4869 _ACEOF 2897 rm -f conftest.$ac_objext 2898 if { (ac_try="$ac_compile" 2899 case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902 esac 2903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2904 $as_echo "$ac_try_echo") >&5 2905 (eval "$ac_compile") 2>conftest.er1 2906 ac_status=$? 2907 grep -v '^ *+' conftest.er1 >conftest.err 2908 rm -f conftest.er1 2909 cat conftest.err >&5 2910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); } && { 2912 test -z "$ac_cxx_werror_flag" || 2913 test ! -s conftest.err 2914 } && test -s conftest.$ac_objext; then 4870 if ac_fn_cxx_try_compile "$LINENO"; then : 2915 4871 ac_compiler_gnu=yes 2916 4872 else 2917 $as_echo "$as_me: failed program was:" >&5 2918 sed 's/^/| /' conftest.$ac_ext >&5 2919 2920 ac_compiler_gnu=no 2921 fi 2922 4873 ac_compiler_gnu=no 4874 fi 2923 4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2924 4876 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2925 4877 2926 4878 fi 2927 { $as_echo "$as_me:$ LINENO: result: $ac_cv_cxx_compiler_gnu" >&54879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 2928 4880 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 2929 4881 if test $ac_compiler_gnu = yes; then … … 2934 4886 ac_test_CXXFLAGS=${CXXFLAGS+set} 2935 4887 ac_save_CXXFLAGS=$CXXFLAGS 2936 { $as_echo "$as_me:$ LINENO: checking whether $CXX accepts -g" >&54888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 2937 4889 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 2938 if test "${ac_cv_prog_cxx_g+set}" = set; then4890 if ${ac_cv_prog_cxx_g+:} false; then : 2939 4891 $as_echo_n "(cached) " >&6 2940 4892 else … … 2943 4895 ac_cv_prog_cxx_g=no 2944 4896 CXXFLAGS="-g" 2945 cat >conftest.$ac_ext <<_ACEOF 2946 /* confdefs.h. */ 2947 _ACEOF 2948 cat confdefs.h >>conftest.$ac_ext 2949 cat >>conftest.$ac_ext <<_ACEOF 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2950 4898 /* end confdefs.h. */ 2951 4899 … … 2958 4906 } 2959 4907 _ACEOF 2960 rm -f conftest.$ac_objext 2961 if { (ac_try="$ac_compile" 2962 case "(($ac_try" in 2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2964 *) ac_try_echo=$ac_try;; 2965 esac 2966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2967 $as_echo "$ac_try_echo") >&5 2968 (eval "$ac_compile") 2>conftest.er1 2969 ac_status=$? 2970 grep -v '^ *+' conftest.er1 >conftest.err 2971 rm -f conftest.er1 2972 cat conftest.err >&5 2973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2974 (exit $ac_status); } && { 2975 test -z "$ac_cxx_werror_flag" || 2976 test ! -s conftest.err 2977 } && test -s conftest.$ac_objext; then 4908 if ac_fn_cxx_try_compile "$LINENO"; then : 2978 4909 ac_cv_prog_cxx_g=yes 2979 4910 else 2980 $as_echo "$as_me: failed program was:" >&5 2981 sed 's/^/| /' conftest.$ac_ext >&5 2982 2983 CXXFLAGS="" 2984 cat >conftest.$ac_ext <<_ACEOF 2985 /* confdefs.h. */ 2986 _ACEOF 2987 cat confdefs.h >>conftest.$ac_ext 2988 cat >>conftest.$ac_ext <<_ACEOF 4911 CXXFLAGS="" 4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2989 4913 /* end confdefs.h. */ 2990 4914 … … 2997 4921 } 2998 4922 _ACEOF 2999 rm -f conftest.$ac_objext 3000 if { (ac_try="$ac_compile" 3001 case "(($ac_try" in 3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3003 *) ac_try_echo=$ac_try;; 3004 esac 3005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3006 $as_echo "$ac_try_echo") >&5 3007 (eval "$ac_compile") 2>conftest.er1 3008 ac_status=$? 3009 grep -v '^ *+' conftest.er1 >conftest.err 3010 rm -f conftest.er1 3011 cat conftest.err >&5 3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3013 (exit $ac_status); } && { 3014 test -z "$ac_cxx_werror_flag" || 3015 test ! -s conftest.err 3016 } && test -s conftest.$ac_objext; then 3017 : 3018 else 3019 $as_echo "$as_me: failed program was:" >&5 3020 sed 's/^/| /' conftest.$ac_ext >&5 3021 3022 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4923 if ac_fn_cxx_try_compile "$LINENO"; then : 4924 4925 else 4926 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3023 4927 CXXFLAGS="-g" 3024 cat >conftest.$ac_ext <<_ACEOF 3025 /* confdefs.h. */ 3026 _ACEOF 3027 cat confdefs.h >>conftest.$ac_ext 3028 cat >>conftest.$ac_ext <<_ACEOF 4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3029 4929 /* end confdefs.h. */ 3030 4930 … … 3037 4937 } 3038 4938 _ACEOF 3039 rm -f conftest.$ac_objext 3040 if { (ac_try="$ac_compile" 3041 case "(($ac_try" in 3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3043 *) ac_try_echo=$ac_try;; 3044 esac 3045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3046 $as_echo "$ac_try_echo") >&5 3047 (eval "$ac_compile") 2>conftest.er1 3048 ac_status=$? 3049 grep -v '^ *+' conftest.er1 >conftest.err 3050 rm -f conftest.er1 3051 cat conftest.err >&5 3052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3053 (exit $ac_status); } && { 3054 test -z "$ac_cxx_werror_flag" || 3055 test ! -s conftest.err 3056 } && test -s conftest.$ac_objext; then 4939 if ac_fn_cxx_try_compile "$LINENO"; then : 3057 4940 ac_cv_prog_cxx_g=yes 3058 else 3059 $as_echo "$as_me: failed program was:" >&5 3060 sed 's/^/| /' conftest.$ac_ext >&5 3061 3062 3063 fi 3064 4941 fi 3065 4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3066 4943 fi 3067 3068 4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3069 4945 fi 3070 3071 4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3072 4947 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3073 4948 fi 3074 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cxx_g" >&54949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3075 4950 $as_echo "$ac_cv_prog_cxx_g" >&6; } 3076 4951 if test "$ac_test_CXXFLAGS" = set; then … … 3095 4970 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3096 4971 3097 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4972 depcc="$CXX" am_compiler_list= 4973 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4975 $as_echo_n "checking dependency style of $depcc... " >&6; } 4976 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978 else 4979 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4980 # We make a subdir and do the tests there. Otherwise we can end up 4981 # making bogus files that we don't know about and never remove. For 4982 # instance it was reported that on HP-UX the gcc test will end up 4983 # making a dummy file named `D' -- because `-MD' means `put the output 4984 # in D'. 4985 rm -rf conftest.dir 4986 mkdir conftest.dir 4987 # Copy depcomp to subdir because otherwise we won't find it if we're 4988 # using a relative directory. 4989 cp "$am_depcomp" conftest.dir 4990 cd conftest.dir 4991 # We will build objects and dependencies in a subdirectory because 4992 # it helps to detect inapplicable dependency modes. For instance 4993 # both Tru64's cc and ICC support -MD to output dependencies as a 4994 # side effect of compilation, but ICC will put the dependencies in 4995 # the current directory while Tru64 will put them in the object 4996 # directory. 4997 mkdir sub 4998 4999 am_cv_CXX_dependencies_compiler_type=none 5000 if test "$am_compiler_list" = ""; then 5001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5002 fi 5003 am__universal=false 5004 case " $depcc " in #( 5005 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5006 esac 5007 5008 for depmode in $am_compiler_list; do 5009 # Setup a source with many dependencies, because some compilers 5010 # like to wrap large dependency lists on column 80 (with \), and 5011 # we should not choose a depcomp mode which is confused by this. 5012 # 5013 # We need to recreate these files for each test, as the compiler may 5014 # overwrite some of them when testing with obscure command lines. 5015 # This happens at least with the AIX C compiler. 5016 : > sub/conftest.c 5017 for i in 1 2 3 4 5 6; do 5018 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5019 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5020 # Solaris 8's {/usr,}/bin/sh. 5021 touch sub/conftst$i.h 5022 done 5023 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5024 5025 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5026 # mode. It turns out that the SunPro C++ compiler does not properly 5027 # handle `-M -o', and we need to detect this. Also, some Intel 5028 # versions had trouble with output in subdirs 5029 am__obj=sub/conftest.${OBJEXT-o} 5030 am__minus_obj="-o $am__obj" 5031 case $depmode in 5032 gcc) 5033 # This depmode causes a compiler race in universal mode. 5034 test "$am__universal" = false || continue 5035 ;; 5036 nosideeffect) 5037 # after this tag, mechanisms are not by side-effect, so they'll 5038 # only be used when explicitly requested 5039 if test "x$enable_dependency_tracking" = xyes; then 5040 continue 5041 else 5042 break 5043 fi 5044 ;; 5045 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5046 # This compiler won't grok `-c -o', but also, the minuso test has 5047 # not run yet. These depmodes are late enough in the game, and 5048 # so weak that their functioning should not be impacted. 5049 am__obj=conftest.${OBJEXT-o} 5050 am__minus_obj= 5051 ;; 5052 none) break ;; 5053 esac 5054 if depmode=$depmode \ 5055 source=sub/conftest.c object=$am__obj \ 5056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5057 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5058 >/dev/null 2>conftest.err && 5059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5061 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5063 # icc doesn't choke on unknown options, it will just issue warnings 5064 # or remarks (even with -Werror). So we grep stderr for any message 5065 # that says an option was ignored or not supported. 5066 # When given -MP, icc 7.0 and 7.1 complain thusly: 5067 # icc: Command line warning: ignoring option '-M'; no argument required 5068 # The diagnosis changed in icc 8.0: 5069 # icc: Command line remark: option '-MP' not supported 5070 if (grep 'ignoring option' conftest.err || 5071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5072 am_cv_CXX_dependencies_compiler_type=$depmode 5073 break 5074 fi 5075 fi 5076 done 5077 5078 cd .. 5079 rm -rf conftest.dir 5080 else 5081 am_cv_CXX_dependencies_compiler_type=none 5082 fi 5083 5084 fi 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5086 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5087 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5088 5089 if 5090 test "x$enable_dependency_tracking" != xno \ 5091 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5092 am__fastdepCXX_TRUE= 5093 am__fastdepCXX_FALSE='#' 5094 else 5095 am__fastdepCXX_TRUE='#' 5096 am__fastdepCXX_FALSE= 5097 fi 5098 5099 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3098 5101 $as_echo_n "checking whether ln -s works... " >&6; } 3099 5102 LN_S=$as_ln_s 3100 5103 if test "$LN_S" = "ln -s"; then 3101 { $as_echo "$as_me:$ LINENO: result: yes" >&55104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3102 5105 $as_echo "yes" >&6; } 3103 5106 else 3104 { $as_echo "$as_me:$ LINENO: result: no, using $LN_S" >&55107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3105 5108 $as_echo "no, using $LN_S" >&6; } 3106 5109 fi 3107 5110 3108 5111 #AC_PROG_INSTALL 3109 if test -n "$ac_tool_prefix"; then 3110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3113 $as_echo_n "checking for $ac_word... " >&6; } 3114 if test "${ac_cv_prog_RANLIB+set}" = set; then 5112 5113 # Checks for libraries. 5114 5115 case `pwd` in 5116 *\ * | *\ *) 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5118 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5119 esac 5120 5121 5122 5123 macro_version='2.4.2' 5124 macro_revision='1.3337' 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 ltmain="$ac_aux_dir/ltmain.sh" 5139 5140 # Make sure we can run config.sub. 5141 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5142 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5143 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5145 $as_echo_n "checking build system type... " >&6; } 5146 if ${ac_cv_build+:} false; then : 3115 5147 $as_echo_n "(cached) " >&6 3116 5148 else 3117 if test -n "$RANLIB"; then 3118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3119 else 3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5149 ac_build_alias=$build_alias 5150 test "x$ac_build_alias" = x && 5151 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5152 test "x$ac_build_alias" = x && 5153 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5154 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5155 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5156 5157 fi 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5159 $as_echo "$ac_cv_build" >&6; } 5160 case $ac_cv_build in 5161 *-*-*) ;; 5162 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5163 esac 5164 build=$ac_cv_build 5165 ac_save_IFS=$IFS; IFS='-' 5166 set x $ac_cv_build 5167 shift 5168 build_cpu=$1 5169 build_vendor=$2 5170 shift; shift 5171 # Remember, the first character of IFS is used to create $*, 5172 # except with old shells: 5173 build_os=$* 5174 IFS=$ac_save_IFS 5175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5176 5177 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5179 $as_echo_n "checking host system type... " >&6; } 5180 if ${ac_cv_host+:} false; then : 5181 $as_echo_n "(cached) " >&6 5182 else 5183 if test "x$host_alias" = x; then 5184 ac_cv_host=$ac_cv_build 5185 else 5186 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5187 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5188 fi 5189 5190 fi 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5192 $as_echo "$ac_cv_host" >&6; } 5193 case $ac_cv_host in 5194 *-*-*) ;; 5195 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5196 esac 5197 host=$ac_cv_host 5198 ac_save_IFS=$IFS; IFS='-' 5199 set x $ac_cv_host 5200 shift 5201 host_cpu=$1 5202 host_vendor=$2 5203 shift; shift 5204 # Remember, the first character of IFS is used to create $*, 5205 # except with old shells: 5206 host_os=$* 5207 IFS=$ac_save_IFS 5208 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5209 5210 5211 # Backslashify metacharacters that are still active within 5212 # double-quoted strings. 5213 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5214 5215 # Same as above, but do not quote variable references. 5216 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5217 5218 # Sed substitution to delay expansion of an escaped shell variable in a 5219 # double_quote_subst'ed string. 5220 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5221 5222 # Sed substitution to delay expansion of an escaped single quote. 5223 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5224 5225 # Sed substitution to avoid accidental globbing in evaled expressions 5226 no_glob_subst='s/\*/\\\*/g' 5227 5228 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5229 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5230 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5231 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5233 $as_echo_n "checking how to print strings... " >&6; } 5234 # Test print first, because it will be a builtin if present. 5235 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5236 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5237 ECHO='print -r --' 5238 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5239 ECHO='printf %s\n' 5240 else 5241 # Use this function as a fallback that always works. 5242 func_fallback_echo () 5243 { 5244 eval 'cat <<_LTECHO_EOF 5245 $1 5246 _LTECHO_EOF' 5247 } 5248 ECHO='func_fallback_echo' 5249 fi 5250 5251 # func_echo_all arg... 5252 # Invoke $ECHO with all args, space-separated. 5253 func_echo_all () 5254 { 5255 $ECHO "" 5256 } 5257 5258 case "$ECHO" in 5259 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5260 $as_echo "printf" >&6; } ;; 5261 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5262 $as_echo "print -r" >&6; } ;; 5263 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5264 $as_echo "cat" >&6; } ;; 5265 esac 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5281 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5282 if ${ac_cv_path_SED+:} false; then : 5283 $as_echo_n "(cached) " >&6 5284 else 5285 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5286 for ac_i in 1 2 3 4 5 6 7; do 5287 ac_script="$ac_script$as_nl$ac_script" 5288 done 5289 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5290 { ac_script=; unset ac_script;} 5291 if test -z "$SED"; then 5292 ac_path_SED_found=false 5293 # Loop through the user's path and test for each of PROGNAME-LIST 5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3121 5295 for as_dir in $PATH 3122 5296 do 3123 5297 IFS=$as_save_IFS 3124 5298 test -z "$as_dir" && as_dir=. 3125 for ac_exec_ext in '' $ac_executable_extensions; do 3126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3129 break 2 5299 for ac_prog in sed gsed; do 5300 for ac_exec_ext in '' $ac_executable_extensions; do 5301 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5302 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5303 # Check for GNU ac_path_SED and select it if it is found. 5304 # Check for GNU $ac_path_SED 5305 case `"$ac_path_SED" --version 2>&1` in 5306 *GNU*) 5307 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5308 *) 5309 ac_count=0 5310 $as_echo_n 0123456789 >"conftest.in" 5311 while : 5312 do 5313 cat "conftest.in" "conftest.in" >"conftest.tmp" 5314 mv "conftest.tmp" "conftest.in" 5315 cp "conftest.in" "conftest.nl" 5316 $as_echo '' >> "conftest.nl" 5317 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5319 as_fn_arith $ac_count + 1 && ac_count=$as_val 5320 if test $ac_count -gt ${ac_path_SED_max-0}; then 5321 # Best one so far, save it but keep looking for a better one 5322 ac_cv_path_SED="$ac_path_SED" 5323 ac_path_SED_max=$ac_count 5324 fi 5325 # 10*(2^10) chars as input seems more than enough 5326 test $ac_count -gt 10 && break 5327 done 5328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5329 esac 5330 5331 $ac_path_SED_found && break 3 5332 done 5333 done 5334 done 5335 IFS=$as_save_IFS 5336 if test -z "$ac_cv_path_SED"; then 5337 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3130 5338 fi 3131 done 3132 done 3133 IFS=$as_save_IFS 3134 3135 fi 3136 fi 3137 RANLIB=$ac_cv_prog_RANLIB 3138 if test -n "$RANLIB"; then 3139 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 3140 $as_echo "$RANLIB" >&6; } 3141 else 3142 { $as_echo "$as_me:$LINENO: result: no" >&5 3143 $as_echo "no" >&6; } 3144 fi 3145 3146 3147 fi 3148 if test -z "$ac_cv_prog_RANLIB"; then 3149 ac_ct_RANLIB=$RANLIB 3150 # Extract the first word of "ranlib", so it can be a program name with args. 3151 set dummy ranlib; ac_word=$2 3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3153 $as_echo_n "checking for $ac_word... " >&6; } 3154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3155 $as_echo_n "(cached) " >&6 3156 else 3157 if test -n "$ac_ct_RANLIB"; then 3158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3159 else 3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3161 for as_dir in $PATH 3162 do 3163 IFS=$as_save_IFS 3164 test -z "$as_dir" && as_dir=. 3165 for ac_exec_ext in '' $ac_executable_extensions; do 3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3167 ac_cv_prog_ac_ct_RANLIB="ranlib" 3168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3169 break 2 3170 fi 3171 done 3172 done 3173 IFS=$as_save_IFS 3174 3175 fi 3176 fi 3177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3178 if test -n "$ac_ct_RANLIB"; then 3179 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3180 $as_echo "$ac_ct_RANLIB" >&6; } 3181 else 3182 { $as_echo "$as_me:$LINENO: result: no" >&5 3183 $as_echo "no" >&6; } 3184 fi 3185 3186 if test "x$ac_ct_RANLIB" = x; then 3187 RANLIB=":" 3188 else 3189 case $cross_compiling:$ac_tool_warned in 3190 yes:) 3191 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3193 ac_tool_warned=yes ;; 3194 esac 3195 RANLIB=$ac_ct_RANLIB 3196 fi 3197 else 3198 RANLIB="$ac_cv_prog_RANLIB" 3199 fi 3200 3201 3202 # Checks for libraries. 3203 3204 # Checks for header files. 3205 3206 ac_ext=c 3207 ac_cpp='$CPP $CPPFLAGS' 3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3211 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3212 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3213 # On Suns, sometimes $CPP names a directory. 3214 if test -n "$CPP" && test -d "$CPP"; then 3215 CPP= 3216 fi 3217 if test -z "$CPP"; then 3218 if test "${ac_cv_prog_CPP+set}" = set; then 3219 $as_echo_n "(cached) " >&6 3220 else 3221 # Double quotes because CPP needs to be expanded 3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3223 do 3224 ac_preproc_ok=false 3225 for ac_c_preproc_warn_flag in '' yes 3226 do 3227 # Use a header file that comes with gcc, so configuring glibc 3228 # with a fresh cross-compiler works. 3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3230 # <limits.h> exists even on freestanding compilers. 3231 # On the NeXT, cc -E runs the code through the compiler's parser, 3232 # not just through cpp. "Syntax error" is here to catch this case. 3233 cat >conftest.$ac_ext <<_ACEOF 3234 /* confdefs.h. */ 3235 _ACEOF 3236 cat confdefs.h >>conftest.$ac_ext 3237 cat >>conftest.$ac_ext <<_ACEOF 3238 /* end confdefs.h. */ 3239 #ifdef __STDC__ 3240 # include <limits.h> 3241 #else 3242 # include <assert.h> 3243 #endif 3244 Syntax error 3245 _ACEOF 3246 if { (ac_try="$ac_cpp conftest.$ac_ext" 3247 case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250 esac 3251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3252 $as_echo "$ac_try_echo") >&5 3253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3254 ac_status=$? 3255 grep -v '^ *+' conftest.er1 >conftest.err 3256 rm -f conftest.er1 3257 cat conftest.err >&5 3258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3259 (exit $ac_status); } >/dev/null && { 3260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3261 test ! -s conftest.err 3262 }; then 3263 : 3264 else 3265 $as_echo "$as_me: failed program was:" >&5 3266 sed 's/^/| /' conftest.$ac_ext >&5 3267 3268 # Broken: fails on valid input. 3269 continue 3270 fi 3271 3272 rm -f conftest.err conftest.$ac_ext 3273 3274 # OK, works on sane cases. Now check whether nonexistent headers 3275 # can be detected and how. 3276 cat >conftest.$ac_ext <<_ACEOF 3277 /* confdefs.h. */ 3278 _ACEOF 3279 cat confdefs.h >>conftest.$ac_ext 3280 cat >>conftest.$ac_ext <<_ACEOF 3281 /* end confdefs.h. */ 3282 #include <ac_nonexistent.h> 3283 _ACEOF 3284 if { (ac_try="$ac_cpp conftest.$ac_ext" 3285 case "(($ac_try" in 3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3287 *) ac_try_echo=$ac_try;; 3288 esac 3289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3290 $as_echo "$ac_try_echo") >&5 3291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3292 ac_status=$? 3293 grep -v '^ *+' conftest.er1 >conftest.err 3294 rm -f conftest.er1 3295 cat conftest.err >&5 3296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3297 (exit $ac_status); } >/dev/null && { 3298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3299 test ! -s conftest.err 3300 }; then 3301 # Broken: success on invalid input. 3302 continue 3303 else 3304 $as_echo "$as_me: failed program was:" >&5 3305 sed 's/^/| /' conftest.$ac_ext >&5 3306 3307 # Passes both tests. 3308 ac_preproc_ok=: 3309 break 3310 fi 3311 3312 rm -f conftest.err conftest.$ac_ext 3313 3314 done 3315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3316 rm -f conftest.err conftest.$ac_ext 3317 if $ac_preproc_ok; then 3318 break 3319 fi 3320 3321 done 3322 ac_cv_prog_CPP=$CPP 3323 3324 fi 3325 CPP=$ac_cv_prog_CPP 3326 else 3327 ac_cv_prog_CPP=$CPP 3328 fi 3329 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 3330 $as_echo "$CPP" >&6; } 3331 ac_preproc_ok=false 3332 for ac_c_preproc_warn_flag in '' yes 3333 do 3334 # Use a header file that comes with gcc, so configuring glibc 3335 # with a fresh cross-compiler works. 3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3337 # <limits.h> exists even on freestanding compilers. 3338 # On the NeXT, cc -E runs the code through the compiler's parser, 3339 # not just through cpp. "Syntax error" is here to catch this case. 3340 cat >conftest.$ac_ext <<_ACEOF 3341 /* confdefs.h. */ 3342 _ACEOF 3343 cat confdefs.h >>conftest.$ac_ext 3344 cat >>conftest.$ac_ext <<_ACEOF 3345 /* end confdefs.h. */ 3346 #ifdef __STDC__ 3347 # include <limits.h> 3348 #else 3349 # include <assert.h> 3350 #endif 3351 Syntax error 3352 _ACEOF 3353 if { (ac_try="$ac_cpp conftest.$ac_ext" 3354 case "(($ac_try" in 3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3356 *) ac_try_echo=$ac_try;; 3357 esac 3358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3359 $as_echo "$ac_try_echo") >&5 3360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3361 ac_status=$? 3362 grep -v '^ *+' conftest.er1 >conftest.err 3363 rm -f conftest.er1 3364 cat conftest.err >&5 3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3366 (exit $ac_status); } >/dev/null && { 3367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3368 test ! -s conftest.err 3369 }; then 3370 : 3371 else 3372 $as_echo "$as_me: failed program was:" >&5 3373 sed 's/^/| /' conftest.$ac_ext >&5 3374 3375 # Broken: fails on valid input. 3376 continue 3377 fi 3378 3379 rm -f conftest.err conftest.$ac_ext 3380 3381 # OK, works on sane cases. Now check whether nonexistent headers 3382 # can be detected and how. 3383 cat >conftest.$ac_ext <<_ACEOF 3384 /* confdefs.h. */ 3385 _ACEOF 3386 cat confdefs.h >>conftest.$ac_ext 3387 cat >>conftest.$ac_ext <<_ACEOF 3388 /* end confdefs.h. */ 3389 #include <ac_nonexistent.h> 3390 _ACEOF 3391 if { (ac_try="$ac_cpp conftest.$ac_ext" 3392 case "(($ac_try" in 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3394 *) ac_try_echo=$ac_try;; 3395 esac 3396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3397 $as_echo "$ac_try_echo") >&5 3398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3399 ac_status=$? 3400 grep -v '^ *+' conftest.er1 >conftest.err 3401 rm -f conftest.er1 3402 cat conftest.err >&5 3403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3404 (exit $ac_status); } >/dev/null && { 3405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3406 test ! -s conftest.err 3407 }; then 3408 # Broken: success on invalid input. 3409 continue 3410 else 3411 $as_echo "$as_me: failed program was:" >&5 3412 sed 's/^/| /' conftest.$ac_ext >&5 3413 3414 # Passes both tests. 3415 ac_preproc_ok=: 3416 break 3417 fi 3418 3419 rm -f conftest.err conftest.$ac_ext 3420 3421 done 3422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3423 rm -f conftest.err conftest.$ac_ext 3424 if $ac_preproc_ok; then 3425 : 3426 else 3427 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3429 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3430 See \`config.log' for more details." >&5 3431 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3432 See \`config.log' for more details." >&2;} 3433 { (exit 1); exit 1; }; }; } 3434 fi 3435 3436 ac_ext=c 3437 ac_cpp='$CPP $CPPFLAGS' 3438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3440 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3441 3442 3443 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 5339 else 5340 ac_cv_path_SED=$SED 5341 fi 5342 5343 fi 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5345 $as_echo "$ac_cv_path_SED" >&6; } 5346 SED="$ac_cv_path_SED" 5347 rm -f conftest.sed 5348 5349 test -z "$SED" && SED=sed 5350 Xsed="$SED -e 1s/^X//" 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3444 5363 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3445 if test "${ac_cv_path_GREP+set}" = set; then5364 if ${ac_cv_path_GREP+:} false; then : 3446 5365 $as_echo_n "(cached) " >&6 3447 5366 else … … 3454 5373 IFS=$as_save_IFS 3455 5374 test -z "$as_dir" && as_dir=. 3456 for ac_prog in grep ggrep; do5375 for ac_prog in grep ggrep; do 3457 5376 for ac_exec_ext in '' $ac_executable_extensions; do 3458 5377 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" … … 3474 5393 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3475 5394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3476 a c_count=`expr $ac_count + 1`5395 as_fn_arith $ac_count + 1 && ac_count=$as_val 3477 5396 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3478 5397 # Best one so far, save it but keep looking for a better one … … 3489 5408 done 3490 5409 done 3491 done5410 done 3492 5411 IFS=$as_save_IFS 3493 5412 if test -z "$ac_cv_path_GREP"; then 3494 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3495 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3496 { (exit 1); exit 1; }; } 5413 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3497 5414 fi 3498 5415 else … … 3501 5418 3502 5419 fi 3503 { $as_echo "$as_me:$ LINENO: result: $ac_cv_path_GREP" >&55420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3504 5421 $as_echo "$ac_cv_path_GREP" >&6; } 3505 5422 GREP="$ac_cv_path_GREP" 3506 5423 3507 5424 3508 { $as_echo "$as_me:$ LINENO: checking for egrep" >&55425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3509 5426 $as_echo_n "checking for egrep... " >&6; } 3510 if test "${ac_cv_path_EGREP+set}" = set; then5427 if ${ac_cv_path_EGREP+:} false; then : 3511 5428 $as_echo_n "(cached) " >&6 3512 5429 else … … 3522 5439 IFS=$as_save_IFS 3523 5440 test -z "$as_dir" && as_dir=. 3524 for ac_prog in egrep; do5441 for ac_prog in egrep; do 3525 5442 for ac_exec_ext in '' $ac_executable_extensions; do 3526 5443 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" … … 3542 5459 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3543 5460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3544 a c_count=`expr $ac_count + 1`5461 as_fn_arith $ac_count + 1 && ac_count=$as_val 3545 5462 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3546 5463 # Best one so far, save it but keep looking for a better one … … 3557 5474 done 3558 5475 done 3559 done5476 done 3560 5477 IFS=$as_save_IFS 3561 5478 if test -z "$ac_cv_path_EGREP"; then 3562 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3563 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3564 { (exit 1); exit 1; }; } 5479 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3565 5480 fi 3566 5481 else … … 3570 5485 fi 3571 5486 fi 3572 { $as_echo "$as_me:$ LINENO: result: $ac_cv_path_EGREP" >&55487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3573 5488 $as_echo "$ac_cv_path_EGREP" >&6; } 3574 5489 EGREP="$ac_cv_path_EGREP" 3575 5490 3576 5491 3577 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5493 $as_echo_n "checking for fgrep... " >&6; } 5494 if ${ac_cv_path_FGREP+:} false; then : 5495 $as_echo_n "(cached) " >&6 5496 else 5497 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5498 then ac_cv_path_FGREP="$GREP -F" 5499 else 5500 if test -z "$FGREP"; then 5501 ac_path_FGREP_found=false 5502 # Loop through the user's path and test for each of PROGNAME-LIST 5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5505 do 5506 IFS=$as_save_IFS 5507 test -z "$as_dir" && as_dir=. 5508 for ac_prog in fgrep; do 5509 for ac_exec_ext in '' $ac_executable_extensions; do 5510 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5511 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5512 # Check for GNU ac_path_FGREP and select it if it is found. 5513 # Check for GNU $ac_path_FGREP 5514 case `"$ac_path_FGREP" --version 2>&1` in 5515 *GNU*) 5516 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5517 *) 5518 ac_count=0 5519 $as_echo_n 0123456789 >"conftest.in" 5520 while : 5521 do 5522 cat "conftest.in" "conftest.in" >"conftest.tmp" 5523 mv "conftest.tmp" "conftest.in" 5524 cp "conftest.in" "conftest.nl" 5525 $as_echo 'FGREP' >> "conftest.nl" 5526 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5528 as_fn_arith $ac_count + 1 && ac_count=$as_val 5529 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5530 # Best one so far, save it but keep looking for a better one 5531 ac_cv_path_FGREP="$ac_path_FGREP" 5532 ac_path_FGREP_max=$ac_count 5533 fi 5534 # 10*(2^10) chars as input seems more than enough 5535 test $ac_count -gt 10 && break 5536 done 5537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5538 esac 5539 5540 $ac_path_FGREP_found && break 3 5541 done 5542 done 5543 done 5544 IFS=$as_save_IFS 5545 if test -z "$ac_cv_path_FGREP"; then 5546 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5547 fi 5548 else 5549 ac_cv_path_FGREP=$FGREP 5550 fi 5551 5552 fi 5553 fi 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5555 $as_echo "$ac_cv_path_FGREP" >&6; } 5556 FGREP="$ac_cv_path_FGREP" 5557 5558 5559 test -z "$GREP" && GREP=grep 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 # Check whether --with-gnu-ld was given. 5580 if test "${with_gnu_ld+set}" = set; then : 5581 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5582 else 5583 with_gnu_ld=no 5584 fi 5585 5586 ac_prog=ld 5587 if test "$GCC" = yes; then 5588 # Check if gcc -print-prog-name=ld gives a path. 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5590 $as_echo_n "checking for ld used by $CC... " >&6; } 5591 case $host in 5592 *-*-mingw*) 5593 # gcc leaves a trailing carriage return which upsets mingw 5594 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5595 *) 5596 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5597 esac 5598 case $ac_prog in 5599 # Accept absolute paths. 5600 [\\/]* | ?:[\\/]*) 5601 re_direlt='/[^/][^/]*/\.\./' 5602 # Canonicalize the pathname of ld 5603 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5604 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5605 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5606 done 5607 test -z "$LD" && LD="$ac_prog" 5608 ;; 5609 "") 5610 # If it fails, then pretend we aren't using GCC. 5611 ac_prog=ld 5612 ;; 5613 *) 5614 # If it is relative, then search for the first ld in PATH. 5615 with_gnu_ld=unknown 5616 ;; 5617 esac 5618 elif test "$with_gnu_ld" = yes; then 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5620 $as_echo_n "checking for GNU ld... " >&6; } 5621 else 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5623 $as_echo_n "checking for non-GNU ld... " >&6; } 5624 fi 5625 if ${lt_cv_path_LD+:} false; then : 5626 $as_echo_n "(cached) " >&6 5627 else 5628 if test -z "$LD"; then 5629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5630 for ac_dir in $PATH; do 5631 IFS="$lt_save_ifs" 5632 test -z "$ac_dir" && ac_dir=. 5633 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5634 lt_cv_path_LD="$ac_dir/$ac_prog" 5635 # Check to see if the program is GNU ld. I'd rather use --version, 5636 # but apparently some variants of GNU ld only accept -v. 5637 # Break only if it was the GNU/non-GNU ld that we prefer. 5638 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5639 *GNU* | *'with BFD'*) 5640 test "$with_gnu_ld" != no && break 5641 ;; 5642 *) 5643 test "$with_gnu_ld" != yes && break 5644 ;; 5645 esac 5646 fi 5647 done 5648 IFS="$lt_save_ifs" 5649 else 5650 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5651 fi 5652 fi 5653 5654 LD="$lt_cv_path_LD" 5655 if test -n "$LD"; then 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5657 $as_echo "$LD" >&6; } 5658 else 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5660 $as_echo "no" >&6; } 5661 fi 5662 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5664 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5665 if ${lt_cv_prog_gnu_ld+:} false; then : 5666 $as_echo_n "(cached) " >&6 5667 else 5668 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5669 case `$LD -v 2>&1 </dev/null` in 5670 *GNU* | *'with BFD'*) 5671 lt_cv_prog_gnu_ld=yes 5672 ;; 5673 *) 5674 lt_cv_prog_gnu_ld=no 5675 ;; 5676 esac 5677 fi 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5679 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5680 with_gnu_ld=$lt_cv_prog_gnu_ld 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5691 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5692 if ${lt_cv_path_NM+:} false; then : 5693 $as_echo_n "(cached) " >&6 5694 else 5695 if test -n "$NM"; then 5696 # Let the user override the test. 5697 lt_cv_path_NM="$NM" 5698 else 5699 lt_nm_to_check="${ac_tool_prefix}nm" 5700 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5701 lt_nm_to_check="$lt_nm_to_check nm" 5702 fi 5703 for lt_tmp_nm in $lt_nm_to_check; do 5704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5705 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5706 IFS="$lt_save_ifs" 5707 test -z "$ac_dir" && ac_dir=. 5708 tmp_nm="$ac_dir/$lt_tmp_nm" 5709 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5710 # Check to see if the nm accepts a BSD-compat flag. 5711 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5712 # nm: unknown option "B" ignored 5713 # Tru64's nm complains that /dev/null is an invalid object file 5714 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5715 */dev/null* | *'Invalid file or object type'*) 5716 lt_cv_path_NM="$tmp_nm -B" 5717 break 5718 ;; 5719 *) 5720 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5721 */dev/null*) 5722 lt_cv_path_NM="$tmp_nm -p" 5723 break 5724 ;; 5725 *) 5726 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5727 continue # so that we can try to find one that supports BSD flags 5728 ;; 5729 esac 5730 ;; 5731 esac 5732 fi 5733 done 5734 IFS="$lt_save_ifs" 5735 done 5736 : ${lt_cv_path_NM=no} 5737 fi 5738 fi 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5740 $as_echo "$lt_cv_path_NM" >&6; } 5741 if test "$lt_cv_path_NM" != "no"; then 5742 NM="$lt_cv_path_NM" 5743 else 5744 # Didn't find any BSD compatible name lister, look for dumpbin. 5745 if test -n "$DUMPBIN"; then : 5746 # Let the user override the test. 5747 else 5748 if test -n "$ac_tool_prefix"; then 5749 for ac_prog in dumpbin "link -dump" 5750 do 5751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5754 $as_echo_n "checking for $ac_word... " >&6; } 5755 if ${ac_cv_prog_DUMPBIN+:} false; then : 5756 $as_echo_n "(cached) " >&6 5757 else 5758 if test -n "$DUMPBIN"; then 5759 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5760 else 5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5762 for as_dir in $PATH 5763 do 5764 IFS=$as_save_IFS 5765 test -z "$as_dir" && as_dir=. 5766 for ac_exec_ext in '' $ac_executable_extensions; do 5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5768 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5770 break 2 5771 fi 5772 done 5773 done 5774 IFS=$as_save_IFS 5775 5776 fi 5777 fi 5778 DUMPBIN=$ac_cv_prog_DUMPBIN 5779 if test -n "$DUMPBIN"; then 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5781 $as_echo "$DUMPBIN" >&6; } 5782 else 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5784 $as_echo "no" >&6; } 5785 fi 5786 5787 5788 test -n "$DUMPBIN" && break 5789 done 5790 fi 5791 if test -z "$DUMPBIN"; then 5792 ac_ct_DUMPBIN=$DUMPBIN 5793 for ac_prog in dumpbin "link -dump" 5794 do 5795 # Extract the first word of "$ac_prog", so it can be a program name with args. 5796 set dummy $ac_prog; ac_word=$2 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5798 $as_echo_n "checking for $ac_word... " >&6; } 5799 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5800 $as_echo_n "(cached) " >&6 5801 else 5802 if test -n "$ac_ct_DUMPBIN"; then 5803 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5804 else 5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5806 for as_dir in $PATH 5807 do 5808 IFS=$as_save_IFS 5809 test -z "$as_dir" && as_dir=. 5810 for ac_exec_ext in '' $ac_executable_extensions; do 5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5812 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5814 break 2 5815 fi 5816 done 5817 done 5818 IFS=$as_save_IFS 5819 5820 fi 5821 fi 5822 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5823 if test -n "$ac_ct_DUMPBIN"; then 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5825 $as_echo "$ac_ct_DUMPBIN" >&6; } 5826 else 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5828 $as_echo "no" >&6; } 5829 fi 5830 5831 5832 test -n "$ac_ct_DUMPBIN" && break 5833 done 5834 5835 if test "x$ac_ct_DUMPBIN" = x; then 5836 DUMPBIN=":" 5837 else 5838 case $cross_compiling:$ac_tool_warned in 5839 yes:) 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5842 ac_tool_warned=yes ;; 5843 esac 5844 DUMPBIN=$ac_ct_DUMPBIN 5845 fi 5846 fi 5847 5848 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5849 *COFF*) 5850 DUMPBIN="$DUMPBIN -symbols" 5851 ;; 5852 *) 5853 DUMPBIN=: 5854 ;; 5855 esac 5856 fi 5857 5858 if test "$DUMPBIN" != ":"; then 5859 NM="$DUMPBIN" 5860 fi 5861 fi 5862 test -z "$NM" && NM=nm 5863 5864 5865 5866 5867 5868 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5870 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5871 if ${lt_cv_nm_interface+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873 else 5874 lt_cv_nm_interface="BSD nm" 5875 echo "int some_variable = 0;" > conftest.$ac_ext 5876 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5877 (eval "$ac_compile" 2>conftest.err) 5878 cat conftest.err >&5 5879 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5880 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5881 cat conftest.err >&5 5882 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5883 cat conftest.out >&5 5884 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5885 lt_cv_nm_interface="MS dumpbin" 5886 fi 5887 rm -f conftest* 5888 fi 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5890 $as_echo "$lt_cv_nm_interface" >&6; } 5891 5892 # find the maximum length of command line arguments 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5894 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5895 if ${lt_cv_sys_max_cmd_len+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897 else 5898 i=0 5899 teststring="ABCD" 5900 5901 case $build_os in 5902 msdosdjgpp*) 5903 # On DJGPP, this test can blow up pretty badly due to problems in libc 5904 # (any single argument exceeding 2000 bytes causes a buffer overrun 5905 # during glob expansion). Even if it were fixed, the result of this 5906 # check would be larger than it should be. 5907 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5908 ;; 5909 5910 gnu*) 5911 # Under GNU Hurd, this test is not required because there is 5912 # no limit to the length of command line arguments. 5913 # Libtool will interpret -1 as no limit whatsoever 5914 lt_cv_sys_max_cmd_len=-1; 5915 ;; 5916 5917 cygwin* | mingw* | cegcc*) 5918 # On Win9x/ME, this test blows up -- it succeeds, but takes 5919 # about 5 minutes as the teststring grows exponentially. 5920 # Worse, since 9x/ME are not pre-emptively multitasking, 5921 # you end up with a "frozen" computer, even though with patience 5922 # the test eventually succeeds (with a max line length of 256k). 5923 # Instead, let's just punt: use the minimum linelength reported by 5924 # all of the supported platforms: 8192 (on NT/2K/XP). 5925 lt_cv_sys_max_cmd_len=8192; 5926 ;; 5927 5928 mint*) 5929 # On MiNT this can take a long time and run out of memory. 5930 lt_cv_sys_max_cmd_len=8192; 5931 ;; 5932 5933 amigaos*) 5934 # On AmigaOS with pdksh, this test takes hours, literally. 5935 # So we just punt and use a minimum line length of 8192. 5936 lt_cv_sys_max_cmd_len=8192; 5937 ;; 5938 5939 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5940 # This has been around since 386BSD, at least. Likely further. 5941 if test -x /sbin/sysctl; then 5942 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5943 elif test -x /usr/sbin/sysctl; then 5944 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5945 else 5946 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5947 fi 5948 # And add a safety zone 5949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5951 ;; 5952 5953 interix*) 5954 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5955 lt_cv_sys_max_cmd_len=196608 5956 ;; 5957 5958 os2*) 5959 # The test takes a long time on OS/2. 5960 lt_cv_sys_max_cmd_len=8192 5961 ;; 5962 5963 osf*) 5964 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5965 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5966 # nice to cause kernel panics so lets avoid the loop below. 5967 # First set a reasonable default. 5968 lt_cv_sys_max_cmd_len=16384 5969 # 5970 if test -x /sbin/sysconfig; then 5971 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5972 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5973 esac 5974 fi 5975 ;; 5976 sco3.2v5*) 5977 lt_cv_sys_max_cmd_len=102400 5978 ;; 5979 sysv5* | sco5v6* | sysv4.2uw2*) 5980 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5981 if test -n "$kargmax"; then 5982 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5983 else 5984 lt_cv_sys_max_cmd_len=32768 5985 fi 5986 ;; 5987 *) 5988 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5989 if test -n "$lt_cv_sys_max_cmd_len"; then 5990 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5992 else 5993 # Make teststring a little bigger before we do anything with it. 5994 # a 1K string should be a reasonable start. 5995 for i in 1 2 3 4 5 6 7 8 ; do 5996 teststring=$teststring$teststring 5997 done 5998 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5999 # If test is not a shell built-in, we'll probably end up computing a 6000 # maximum length that is only half of the actual maximum length, but 6001 # we can't tell. 6002 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6003 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6004 test $i != 17 # 1/2 MB should be enough 6005 do 6006 i=`expr $i + 1` 6007 teststring=$teststring$teststring 6008 done 6009 # Only check the string length outside the loop. 6010 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6011 teststring= 6012 # Add a significant safety factor because C++ compilers can tack on 6013 # massive amounts of additional arguments before passing them to the 6014 # linker. It appears as though 1/2 is a usable value. 6015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6016 fi 6017 ;; 6018 esac 6019 6020 fi 6021 6022 if test -n $lt_cv_sys_max_cmd_len ; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6024 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6025 else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6027 $as_echo "none" >&6; } 6028 fi 6029 max_cmd_len=$lt_cv_sys_max_cmd_len 6030 6031 6032 6033 6034 6035 6036 : ${CP="cp -f"} 6037 : ${MV="mv -f"} 6038 : ${RM="rm -f"} 6039 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6041 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6042 # Try some XSI features 6043 xsi_shell=no 6044 ( _lt_dummy="a/b/c" 6045 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6046 = c,a/b,b/c, \ 6047 && eval 'test $(( 1 + 1 )) -eq 2 \ 6048 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6049 && xsi_shell=yes 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6051 $as_echo "$xsi_shell" >&6; } 6052 6053 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6055 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6056 lt_shell_append=no 6057 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6058 >/dev/null 2>&1 \ 6059 && lt_shell_append=yes 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6061 $as_echo "$lt_shell_append" >&6; } 6062 6063 6064 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6065 lt_unset=unset 6066 else 6067 lt_unset=false 6068 fi 6069 6070 6071 6072 6073 6074 # test EBCDIC or ASCII 6075 case `echo X|tr X '\101'` in 6076 A) # ASCII based system 6077 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6078 lt_SP2NL='tr \040 \012' 6079 lt_NL2SP='tr \015\012 \040\040' 6080 ;; 6081 *) # EBCDIC based system 6082 lt_SP2NL='tr \100 \n' 6083 lt_NL2SP='tr \r\n \100\100' 6084 ;; 6085 esac 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6096 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6097 if ${lt_cv_to_host_file_cmd+:} false; then : 6098 $as_echo_n "(cached) " >&6 6099 else 6100 case $host in 6101 *-*-mingw* ) 6102 case $build in 6103 *-*-mingw* ) # actually msys 6104 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6105 ;; 6106 *-*-cygwin* ) 6107 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6108 ;; 6109 * ) # otherwise, assume *nix 6110 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6111 ;; 6112 esac 6113 ;; 6114 *-*-cygwin* ) 6115 case $build in 6116 *-*-mingw* ) # actually msys 6117 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6118 ;; 6119 *-*-cygwin* ) 6120 lt_cv_to_host_file_cmd=func_convert_file_noop 6121 ;; 6122 * ) # otherwise, assume *nix 6123 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6124 ;; 6125 esac 6126 ;; 6127 * ) # unhandled hosts (and "normal" native builds) 6128 lt_cv_to_host_file_cmd=func_convert_file_noop 6129 ;; 6130 esac 6131 6132 fi 6133 6134 to_host_file_cmd=$lt_cv_to_host_file_cmd 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6136 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 6137 6138 6139 6140 6141 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6143 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6144 if ${lt_cv_to_tool_file_cmd+:} false; then : 6145 $as_echo_n "(cached) " >&6 6146 else 6147 #assume ordinary cross tools, or native build. 6148 lt_cv_to_tool_file_cmd=func_convert_file_noop 6149 case $host in 6150 *-*-mingw* ) 6151 case $build in 6152 *-*-mingw* ) # actually msys 6153 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6154 ;; 6155 esac 6156 ;; 6157 esac 6158 6159 fi 6160 6161 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6163 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6164 6165 6166 6167 6168 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6170 $as_echo_n "checking for $LD option to reload object files... " >&6; } 6171 if ${lt_cv_ld_reload_flag+:} false; then : 6172 $as_echo_n "(cached) " >&6 6173 else 6174 lt_cv_ld_reload_flag='-r' 6175 fi 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6177 $as_echo "$lt_cv_ld_reload_flag" >&6; } 6178 reload_flag=$lt_cv_ld_reload_flag 6179 case $reload_flag in 6180 "" | " "*) ;; 6181 *) reload_flag=" $reload_flag" ;; 6182 esac 6183 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6184 case $host_os in 6185 cygwin* | mingw* | pw32* | cegcc*) 6186 if test "$GCC" != yes; then 6187 reload_cmds=false 6188 fi 6189 ;; 6190 darwin*) 6191 if test "$GCC" = yes; then 6192 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6193 else 6194 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6195 fi 6196 ;; 6197 esac 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 if test -n "$ac_tool_prefix"; then 6208 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6209 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6211 $as_echo_n "checking for $ac_word... " >&6; } 6212 if ${ac_cv_prog_OBJDUMP+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214 else 6215 if test -n "$OBJDUMP"; then 6216 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6217 else 6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6219 for as_dir in $PATH 6220 do 6221 IFS=$as_save_IFS 6222 test -z "$as_dir" && as_dir=. 6223 for ac_exec_ext in '' $ac_executable_extensions; do 6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6225 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6227 break 2 6228 fi 6229 done 6230 done 6231 IFS=$as_save_IFS 6232 6233 fi 6234 fi 6235 OBJDUMP=$ac_cv_prog_OBJDUMP 6236 if test -n "$OBJDUMP"; then 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6238 $as_echo "$OBJDUMP" >&6; } 6239 else 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6241 $as_echo "no" >&6; } 6242 fi 6243 6244 6245 fi 6246 if test -z "$ac_cv_prog_OBJDUMP"; then 6247 ac_ct_OBJDUMP=$OBJDUMP 6248 # Extract the first word of "objdump", so it can be a program name with args. 6249 set dummy objdump; ac_word=$2 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6251 $as_echo_n "checking for $ac_word... " >&6; } 6252 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6253 $as_echo_n "(cached) " >&6 6254 else 6255 if test -n "$ac_ct_OBJDUMP"; then 6256 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6257 else 6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6259 for as_dir in $PATH 6260 do 6261 IFS=$as_save_IFS 6262 test -z "$as_dir" && as_dir=. 6263 for ac_exec_ext in '' $ac_executable_extensions; do 6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6265 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6267 break 2 6268 fi 6269 done 6270 done 6271 IFS=$as_save_IFS 6272 6273 fi 6274 fi 6275 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6276 if test -n "$ac_ct_OBJDUMP"; then 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6278 $as_echo "$ac_ct_OBJDUMP" >&6; } 6279 else 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6281 $as_echo "no" >&6; } 6282 fi 6283 6284 if test "x$ac_ct_OBJDUMP" = x; then 6285 OBJDUMP="false" 6286 else 6287 case $cross_compiling:$ac_tool_warned in 6288 yes:) 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6291 ac_tool_warned=yes ;; 6292 esac 6293 OBJDUMP=$ac_ct_OBJDUMP 6294 fi 6295 else 6296 OBJDUMP="$ac_cv_prog_OBJDUMP" 6297 fi 6298 6299 test -z "$OBJDUMP" && OBJDUMP=objdump 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6310 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 6311 if ${lt_cv_deplibs_check_method+:} false; then : 6312 $as_echo_n "(cached) " >&6 6313 else 6314 lt_cv_file_magic_cmd='$MAGIC_CMD' 6315 lt_cv_file_magic_test_file= 6316 lt_cv_deplibs_check_method='unknown' 6317 # Need to set the preceding variable on all platforms that support 6318 # interlibrary dependencies. 6319 # 'none' -- dependencies not supported. 6320 # `unknown' -- same as none, but documents that we really don't know. 6321 # 'pass_all' -- all dependencies passed with no checks. 6322 # 'test_compile' -- check by making test program. 6323 # 'file_magic [[regex]]' -- check by looking for files in library path 6324 # which responds to the $file_magic_cmd with a given extended regex. 6325 # If you have `file' or equivalent on your system and you're not sure 6326 # whether `pass_all' will *always* work, you probably want this one. 6327 6328 case $host_os in 6329 aix[4-9]*) 6330 lt_cv_deplibs_check_method=pass_all 6331 ;; 6332 6333 beos*) 6334 lt_cv_deplibs_check_method=pass_all 6335 ;; 6336 6337 bsdi[45]*) 6338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6339 lt_cv_file_magic_cmd='/usr/bin/file -L' 6340 lt_cv_file_magic_test_file=/shlib/libc.so 6341 ;; 6342 6343 cygwin*) 6344 # func_win32_libid is a shell function defined in ltmain.sh 6345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6346 lt_cv_file_magic_cmd='func_win32_libid' 6347 ;; 6348 6349 mingw* | pw32*) 6350 # Base MSYS/MinGW do not provide the 'file' command needed by 6351 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6352 # unless we find 'file', for example because we are cross-compiling. 6353 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6354 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6355 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6356 lt_cv_file_magic_cmd='func_win32_libid' 6357 else 6358 # Keep this pattern in sync with the one in func_win32_libid. 6359 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6360 lt_cv_file_magic_cmd='$OBJDUMP -f' 6361 fi 6362 ;; 6363 6364 cegcc*) 6365 # use the weaker test based on 'objdump'. See mingw*. 6366 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6367 lt_cv_file_magic_cmd='$OBJDUMP -f' 6368 ;; 6369 6370 darwin* | rhapsody*) 6371 lt_cv_deplibs_check_method=pass_all 6372 ;; 6373 6374 freebsd* | dragonfly*) 6375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6376 case $host_cpu in 6377 i*86 ) 6378 # Not sure whether the presence of OpenBSD here was a mistake. 6379 # Let's accept both of them until this is cleared up. 6380 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6381 lt_cv_file_magic_cmd=/usr/bin/file 6382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6383 ;; 6384 esac 6385 else 6386 lt_cv_deplibs_check_method=pass_all 6387 fi 6388 ;; 6389 6390 gnu*) 6391 lt_cv_deplibs_check_method=pass_all 6392 ;; 6393 6394 haiku*) 6395 lt_cv_deplibs_check_method=pass_all 6396 ;; 6397 6398 hpux10.20* | hpux11*) 6399 lt_cv_file_magic_cmd=/usr/bin/file 6400 case $host_cpu in 6401 ia64*) 6402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6404 ;; 6405 hppa*64*) 6406 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6408 ;; 6409 *) 6410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6411 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6412 ;; 6413 esac 6414 ;; 6415 6416 interix[3-9]*) 6417 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6419 ;; 6420 6421 irix5* | irix6* | nonstopux*) 6422 case $LD in 6423 *-32|*"-32 ") libmagic=32-bit;; 6424 *-n32|*"-n32 ") libmagic=N32;; 6425 *-64|*"-64 ") libmagic=64-bit;; 6426 *) libmagic=never-match;; 6427 esac 6428 lt_cv_deplibs_check_method=pass_all 6429 ;; 6430 6431 # This must be glibc/ELF. 6432 linux* | k*bsd*-gnu | kopensolaris*-gnu) 6433 lt_cv_deplibs_check_method=pass_all 6434 ;; 6435 6436 netbsd* | netbsdelf*-gnu) 6437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6439 else 6440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6441 fi 6442 ;; 6443 6444 newos6*) 6445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6446 lt_cv_file_magic_cmd=/usr/bin/file 6447 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6448 ;; 6449 6450 *nto* | *qnx*) 6451 lt_cv_deplibs_check_method=pass_all 6452 ;; 6453 6454 openbsd*) 6455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6457 else 6458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6459 fi 6460 ;; 6461 6462 osf3* | osf4* | osf5*) 6463 lt_cv_deplibs_check_method=pass_all 6464 ;; 6465 6466 rdos*) 6467 lt_cv_deplibs_check_method=pass_all 6468 ;; 6469 6470 solaris*) 6471 lt_cv_deplibs_check_method=pass_all 6472 ;; 6473 6474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6475 lt_cv_deplibs_check_method=pass_all 6476 ;; 6477 6478 sysv4 | sysv4.3*) 6479 case $host_vendor in 6480 motorola) 6481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6483 ;; 6484 ncr) 6485 lt_cv_deplibs_check_method=pass_all 6486 ;; 6487 sequent) 6488 lt_cv_file_magic_cmd='/bin/file' 6489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6490 ;; 6491 sni) 6492 lt_cv_file_magic_cmd='/bin/file' 6493 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6494 lt_cv_file_magic_test_file=/lib/libc.so 6495 ;; 6496 siemens) 6497 lt_cv_deplibs_check_method=pass_all 6498 ;; 6499 pc) 6500 lt_cv_deplibs_check_method=pass_all 6501 ;; 6502 esac 6503 ;; 6504 6505 tpf*) 6506 lt_cv_deplibs_check_method=pass_all 6507 ;; 6508 esac 6509 6510 fi 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6512 $as_echo "$lt_cv_deplibs_check_method" >&6; } 6513 6514 file_magic_glob= 6515 want_nocaseglob=no 6516 if test "$build" = "$host"; then 6517 case $host_os in 6518 mingw* | pw32*) 6519 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6520 want_nocaseglob=yes 6521 else 6522 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6523 fi 6524 ;; 6525 esac 6526 fi 6527 6528 file_magic_cmd=$lt_cv_file_magic_cmd 6529 deplibs_check_method=$lt_cv_deplibs_check_method 6530 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 if test -n "$ac_tool_prefix"; then 6554 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6555 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6557 $as_echo_n "checking for $ac_word... " >&6; } 6558 if ${ac_cv_prog_DLLTOOL+:} false; then : 6559 $as_echo_n "(cached) " >&6 6560 else 6561 if test -n "$DLLTOOL"; then 6562 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6563 else 6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6565 for as_dir in $PATH 6566 do 6567 IFS=$as_save_IFS 6568 test -z "$as_dir" && as_dir=. 6569 for ac_exec_ext in '' $ac_executable_extensions; do 6570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6571 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6573 break 2 6574 fi 6575 done 6576 done 6577 IFS=$as_save_IFS 6578 6579 fi 6580 fi 6581 DLLTOOL=$ac_cv_prog_DLLTOOL 6582 if test -n "$DLLTOOL"; then 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6584 $as_echo "$DLLTOOL" >&6; } 6585 else 6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6587 $as_echo "no" >&6; } 6588 fi 6589 6590 6591 fi 6592 if test -z "$ac_cv_prog_DLLTOOL"; then 6593 ac_ct_DLLTOOL=$DLLTOOL 6594 # Extract the first word of "dlltool", so it can be a program name with args. 6595 set dummy dlltool; ac_word=$2 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6597 $as_echo_n "checking for $ac_word... " >&6; } 6598 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6599 $as_echo_n "(cached) " >&6 6600 else 6601 if test -n "$ac_ct_DLLTOOL"; then 6602 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6603 else 6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6605 for as_dir in $PATH 6606 do 6607 IFS=$as_save_IFS 6608 test -z "$as_dir" && as_dir=. 6609 for ac_exec_ext in '' $ac_executable_extensions; do 6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6611 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6613 break 2 6614 fi 6615 done 6616 done 6617 IFS=$as_save_IFS 6618 6619 fi 6620 fi 6621 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6622 if test -n "$ac_ct_DLLTOOL"; then 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6624 $as_echo "$ac_ct_DLLTOOL" >&6; } 6625 else 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6627 $as_echo "no" >&6; } 6628 fi 6629 6630 if test "x$ac_ct_DLLTOOL" = x; then 6631 DLLTOOL="false" 6632 else 6633 case $cross_compiling:$ac_tool_warned in 6634 yes:) 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6637 ac_tool_warned=yes ;; 6638 esac 6639 DLLTOOL=$ac_ct_DLLTOOL 6640 fi 6641 else 6642 DLLTOOL="$ac_cv_prog_DLLTOOL" 6643 fi 6644 6645 test -z "$DLLTOOL" && DLLTOOL=dlltool 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6657 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6658 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660 else 6661 lt_cv_sharedlib_from_linklib_cmd='unknown' 6662 6663 case $host_os in 6664 cygwin* | mingw* | pw32* | cegcc*) 6665 # two different shell functions defined in ltmain.sh 6666 # decide which to use based on capabilities of $DLLTOOL 6667 case `$DLLTOOL --help 2>&1` in 6668 *--identify-strict*) 6669 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6670 ;; 6671 *) 6672 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6673 ;; 6674 esac 6675 ;; 6676 *) 6677 # fallback: assume linklib IS sharedlib 6678 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6679 ;; 6680 esac 6681 6682 fi 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6684 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6685 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6686 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6687 6688 6689 6690 6691 6692 6693 6694 if test -n "$ac_tool_prefix"; then 6695 for ac_prog in ar 6696 do 6697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6700 $as_echo_n "checking for $ac_word... " >&6; } 6701 if ${ac_cv_prog_AR+:} false; then : 6702 $as_echo_n "(cached) " >&6 6703 else 6704 if test -n "$AR"; then 6705 ac_cv_prog_AR="$AR" # Let the user override the test. 6706 else 6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6708 for as_dir in $PATH 6709 do 6710 IFS=$as_save_IFS 6711 test -z "$as_dir" && as_dir=. 6712 for ac_exec_ext in '' $ac_executable_extensions; do 6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6714 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6716 break 2 6717 fi 6718 done 6719 done 6720 IFS=$as_save_IFS 6721 6722 fi 6723 fi 6724 AR=$ac_cv_prog_AR 6725 if test -n "$AR"; then 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6727 $as_echo "$AR" >&6; } 6728 else 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6730 $as_echo "no" >&6; } 6731 fi 6732 6733 6734 test -n "$AR" && break 6735 done 6736 fi 6737 if test -z "$AR"; then 6738 ac_ct_AR=$AR 6739 for ac_prog in ar 6740 do 6741 # Extract the first word of "$ac_prog", so it can be a program name with args. 6742 set dummy $ac_prog; ac_word=$2 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6744 $as_echo_n "checking for $ac_word... " >&6; } 6745 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6746 $as_echo_n "(cached) " >&6 6747 else 6748 if test -n "$ac_ct_AR"; then 6749 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6750 else 6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6752 for as_dir in $PATH 6753 do 6754 IFS=$as_save_IFS 6755 test -z "$as_dir" && as_dir=. 6756 for ac_exec_ext in '' $ac_executable_extensions; do 6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6758 ac_cv_prog_ac_ct_AR="$ac_prog" 6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6760 break 2 6761 fi 6762 done 6763 done 6764 IFS=$as_save_IFS 6765 6766 fi 6767 fi 6768 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6769 if test -n "$ac_ct_AR"; then 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6771 $as_echo "$ac_ct_AR" >&6; } 6772 else 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6774 $as_echo "no" >&6; } 6775 fi 6776 6777 6778 test -n "$ac_ct_AR" && break 6779 done 6780 6781 if test "x$ac_ct_AR" = x; then 6782 AR="false" 6783 else 6784 case $cross_compiling:$ac_tool_warned in 6785 yes:) 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6788 ac_tool_warned=yes ;; 6789 esac 6790 AR=$ac_ct_AR 6791 fi 6792 fi 6793 6794 : ${AR=ar} 6795 : ${AR_FLAGS=cru} 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6808 $as_echo_n "checking for archiver @FILE support... " >&6; } 6809 if ${lt_cv_ar_at_file+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811 else 6812 lt_cv_ar_at_file=no 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814 /* end confdefs.h. */ 6815 6816 int 6817 main () 6818 { 6819 6820 ; 6821 return 0; 6822 } 6823 _ACEOF 6824 if ac_fn_c_try_compile "$LINENO"; then : 6825 echo conftest.$ac_objext > conftest.lst 6826 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6828 (eval $lt_ar_try) 2>&5 6829 ac_status=$? 6830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6831 test $ac_status = 0; } 6832 if test "$ac_status" -eq 0; then 6833 # Ensure the archiver fails upon bogus file names. 6834 rm -f conftest.$ac_objext libconftest.a 6835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6836 (eval $lt_ar_try) 2>&5 6837 ac_status=$? 6838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6839 test $ac_status = 0; } 6840 if test "$ac_status" -ne 0; then 6841 lt_cv_ar_at_file=@ 6842 fi 6843 fi 6844 rm -f conftest.* libconftest.a 6845 6846 fi 6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6848 6849 fi 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6851 $as_echo "$lt_cv_ar_at_file" >&6; } 6852 6853 if test "x$lt_cv_ar_at_file" = xno; then 6854 archiver_list_spec= 6855 else 6856 archiver_list_spec=$lt_cv_ar_at_file 6857 fi 6858 6859 6860 6861 6862 6863 6864 6865 if test -n "$ac_tool_prefix"; then 6866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6867 set dummy ${ac_tool_prefix}strip; ac_word=$2 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6869 $as_echo_n "checking for $ac_word... " >&6; } 6870 if ${ac_cv_prog_STRIP+:} false; then : 6871 $as_echo_n "(cached) " >&6 6872 else 6873 if test -n "$STRIP"; then 6874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6875 else 6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6877 for as_dir in $PATH 6878 do 6879 IFS=$as_save_IFS 6880 test -z "$as_dir" && as_dir=. 6881 for ac_exec_ext in '' $ac_executable_extensions; do 6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6883 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6885 break 2 6886 fi 6887 done 6888 done 6889 IFS=$as_save_IFS 6890 6891 fi 6892 fi 6893 STRIP=$ac_cv_prog_STRIP 6894 if test -n "$STRIP"; then 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6896 $as_echo "$STRIP" >&6; } 6897 else 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6899 $as_echo "no" >&6; } 6900 fi 6901 6902 6903 fi 6904 if test -z "$ac_cv_prog_STRIP"; then 6905 ac_ct_STRIP=$STRIP 6906 # Extract the first word of "strip", so it can be a program name with args. 6907 set dummy strip; ac_word=$2 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6909 $as_echo_n "checking for $ac_word... " >&6; } 6910 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912 else 6913 if test -n "$ac_ct_STRIP"; then 6914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6915 else 6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917 for as_dir in $PATH 6918 do 6919 IFS=$as_save_IFS 6920 test -z "$as_dir" && as_dir=. 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6923 ac_cv_prog_ac_ct_STRIP="strip" 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927 done 6928 done 6929 IFS=$as_save_IFS 6930 6931 fi 6932 fi 6933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6934 if test -n "$ac_ct_STRIP"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6936 $as_echo "$ac_ct_STRIP" >&6; } 6937 else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939 $as_echo "no" >&6; } 6940 fi 6941 6942 if test "x$ac_ct_STRIP" = x; then 6943 STRIP=":" 6944 else 6945 case $cross_compiling:$ac_tool_warned in 6946 yes:) 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6949 ac_tool_warned=yes ;; 6950 esac 6951 STRIP=$ac_ct_STRIP 6952 fi 6953 else 6954 STRIP="$ac_cv_prog_STRIP" 6955 fi 6956 6957 test -z "$STRIP" && STRIP=: 6958 6959 6960 6961 6962 6963 6964 if test -n "$ac_tool_prefix"; then 6965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6968 $as_echo_n "checking for $ac_word... " >&6; } 6969 if ${ac_cv_prog_RANLIB+:} false; then : 6970 $as_echo_n "(cached) " >&6 6971 else 6972 if test -n "$RANLIB"; then 6973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6974 else 6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6976 for as_dir in $PATH 6977 do 6978 IFS=$as_save_IFS 6979 test -z "$as_dir" && as_dir=. 6980 for ac_exec_ext in '' $ac_executable_extensions; do 6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6984 break 2 6985 fi 6986 done 6987 done 6988 IFS=$as_save_IFS 6989 6990 fi 6991 fi 6992 RANLIB=$ac_cv_prog_RANLIB 6993 if test -n "$RANLIB"; then 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6995 $as_echo "$RANLIB" >&6; } 6996 else 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6998 $as_echo "no" >&6; } 6999 fi 7000 7001 7002 fi 7003 if test -z "$ac_cv_prog_RANLIB"; then 7004 ac_ct_RANLIB=$RANLIB 7005 # Extract the first word of "ranlib", so it can be a program name with args. 7006 set dummy ranlib; ac_word=$2 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7008 $as_echo_n "checking for $ac_word... " >&6; } 7009 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7010 $as_echo_n "(cached) " >&6 7011 else 7012 if test -n "$ac_ct_RANLIB"; then 7013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7014 else 7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7016 for as_dir in $PATH 7017 do 7018 IFS=$as_save_IFS 7019 test -z "$as_dir" && as_dir=. 7020 for ac_exec_ext in '' $ac_executable_extensions; do 7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7022 ac_cv_prog_ac_ct_RANLIB="ranlib" 7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7024 break 2 7025 fi 7026 done 7027 done 7028 IFS=$as_save_IFS 7029 7030 fi 7031 fi 7032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7033 if test -n "$ac_ct_RANLIB"; then 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7035 $as_echo "$ac_ct_RANLIB" >&6; } 7036 else 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7038 $as_echo "no" >&6; } 7039 fi 7040 7041 if test "x$ac_ct_RANLIB" = x; then 7042 RANLIB=":" 7043 else 7044 case $cross_compiling:$ac_tool_warned in 7045 yes:) 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7048 ac_tool_warned=yes ;; 7049 esac 7050 RANLIB=$ac_ct_RANLIB 7051 fi 7052 else 7053 RANLIB="$ac_cv_prog_RANLIB" 7054 fi 7055 7056 test -z "$RANLIB" && RANLIB=: 7057 7058 7059 7060 7061 7062 7063 # Determine commands to create old-style static archives. 7064 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7065 old_postinstall_cmds='chmod 644 $oldlib' 7066 old_postuninstall_cmds= 7067 7068 if test -n "$RANLIB"; then 7069 case $host_os in 7070 openbsd*) 7071 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7072 ;; 7073 *) 7074 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7075 ;; 7076 esac 7077 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7078 fi 7079 7080 case $host_os in 7081 darwin*) 7082 lock_old_archive_extraction=yes ;; 7083 *) 7084 lock_old_archive_extraction=no ;; 7085 esac 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 # If no C compiler was specified, use CC. 7126 LTCC=${LTCC-"$CC"} 7127 7128 # If no C compiler flags were specified, use CFLAGS. 7129 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7130 7131 # Allow CC to be a program name with arguments. 7132 compiler=$CC 7133 7134 7135 # Check for command to grab the raw symbol name followed by C symbol from nm. 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7137 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7138 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7139 $as_echo_n "(cached) " >&6 7140 else 7141 7142 # These are sane defaults that work on at least a few old systems. 7143 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7144 7145 # Character class describing NM global symbol codes. 7146 symcode='[BCDEGRST]' 7147 7148 # Regexp to match symbols that can be accessed directly from C. 7149 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7150 7151 # Define system-specific variables. 7152 case $host_os in 7153 aix*) 7154 symcode='[BCDT]' 7155 ;; 7156 cygwin* | mingw* | pw32* | cegcc*) 7157 symcode='[ABCDGISTW]' 7158 ;; 7159 hpux*) 7160 if test "$host_cpu" = ia64; then 7161 symcode='[ABCDEGRST]' 7162 fi 7163 ;; 7164 irix* | nonstopux*) 7165 symcode='[BCDEGRST]' 7166 ;; 7167 osf*) 7168 symcode='[BCDEGQRST]' 7169 ;; 7170 solaris*) 7171 symcode='[BDRT]' 7172 ;; 7173 sco3.2v5*) 7174 symcode='[DT]' 7175 ;; 7176 sysv4.2uw2*) 7177 symcode='[DT]' 7178 ;; 7179 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7180 symcode='[ABDT]' 7181 ;; 7182 sysv4) 7183 symcode='[DFNSTU]' 7184 ;; 7185 esac 7186 7187 # If we're using GNU nm, then use its standard symbol codes. 7188 case `$NM -V 2>&1` in 7189 *GNU* | *'with BFD'*) 7190 symcode='[ABCDGIRSTW]' ;; 7191 esac 7192 7193 # Transform an extracted symbol line into a proper C declaration. 7194 # Some systems (esp. on ia64) link data and code symbols differently, 7195 # so use this general approach. 7196 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7197 7198 # Transform an extracted symbol line into symbol name and symbol address 7199 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7200 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7201 7202 # Handle CRLF in mingw tool chain 7203 opt_cr= 7204 case $build_os in 7205 mingw*) 7206 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7207 ;; 7208 esac 7209 7210 # Try without a prefix underscore, then with it. 7211 for ac_symprfx in "" "_"; do 7212 7213 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7214 symxfrm="\\1 $ac_symprfx\\2 \\2" 7215 7216 # Write the raw and C identifiers. 7217 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7218 # Fake it for dumpbin and say T for any non-static function 7219 # and D for any global variable. 7220 # Also find C++ and __fastcall symbols from MSVC++, 7221 # which start with @ or ?. 7222 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7223 " {last_section=section; section=\$ 3};"\ 7224 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7225 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7226 " \$ 0!~/External *\|/{next};"\ 7227 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7228 " {if(hide[section]) next};"\ 7229 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7230 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7231 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7232 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7233 " ' prfx=^$ac_symprfx" 7234 else 7235 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7236 fi 7237 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7238 7239 # Check to see that the pipe works correctly. 7240 pipe_works=no 7241 7242 rm -f conftest* 7243 cat > conftest.$ac_ext <<_LT_EOF 7244 #ifdef __cplusplus 7245 extern "C" { 7246 #endif 7247 char nm_test_var; 7248 void nm_test_func(void); 7249 void nm_test_func(void){} 7250 #ifdef __cplusplus 7251 } 7252 #endif 7253 int main(){nm_test_var='a';nm_test_func();return(0);} 7254 _LT_EOF 7255 7256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7257 (eval $ac_compile) 2>&5 7258 ac_status=$? 7259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7260 test $ac_status = 0; }; then 7261 # Now try to grab the symbols. 7262 nlist=conftest.nm 7263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7264 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7265 ac_status=$? 7266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7267 test $ac_status = 0; } && test -s "$nlist"; then 7268 # Try sorting and uniquifying the output. 7269 if sort "$nlist" | uniq > "$nlist"T; then 7270 mv -f "$nlist"T "$nlist" 7271 else 7272 rm -f "$nlist"T 7273 fi 7274 7275 # Make sure that we snagged all the symbols we need. 7276 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7277 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7278 cat <<_LT_EOF > conftest.$ac_ext 7279 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7280 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7281 /* DATA imports from DLLs on WIN32 con't be const, because runtime 7282 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7283 # define LT_DLSYM_CONST 7284 #elif defined(__osf__) 7285 /* This system does not cope well with relocations in const data. */ 7286 # define LT_DLSYM_CONST 7287 #else 7288 # define LT_DLSYM_CONST const 7289 #endif 7290 7291 #ifdef __cplusplus 7292 extern "C" { 7293 #endif 7294 7295 _LT_EOF 7296 # Now generate the symbol file. 7297 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7298 7299 cat <<_LT_EOF >> conftest.$ac_ext 7300 7301 /* The mapping between symbol names and symbols. */ 7302 LT_DLSYM_CONST struct { 7303 const char *name; 7304 void *address; 7305 } 7306 lt__PROGRAM__LTX_preloaded_symbols[] = 7307 { 7308 { "@PROGRAM@", (void *) 0 }, 7309 _LT_EOF 7310 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7311 cat <<\_LT_EOF >> conftest.$ac_ext 7312 {0, (void *) 0} 7313 }; 7314 7315 /* This works around a problem in FreeBSD linker */ 7316 #ifdef FREEBSD_WORKAROUND 7317 static const void *lt_preloaded_setup() { 7318 return lt__PROGRAM__LTX_preloaded_symbols; 7319 } 7320 #endif 7321 7322 #ifdef __cplusplus 7323 } 7324 #endif 7325 _LT_EOF 7326 # Now try linking the two files. 7327 mv conftest.$ac_objext conftstm.$ac_objext 7328 lt_globsym_save_LIBS=$LIBS 7329 lt_globsym_save_CFLAGS=$CFLAGS 7330 LIBS="conftstm.$ac_objext" 7331 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7333 (eval $ac_link) 2>&5 7334 ac_status=$? 7335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7336 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7337 pipe_works=yes 7338 fi 7339 LIBS=$lt_globsym_save_LIBS 7340 CFLAGS=$lt_globsym_save_CFLAGS 7341 else 7342 echo "cannot find nm_test_func in $nlist" >&5 7343 fi 7344 else 7345 echo "cannot find nm_test_var in $nlist" >&5 7346 fi 7347 else 7348 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7349 fi 7350 else 7351 echo "$progname: failed program was:" >&5 7352 cat conftest.$ac_ext >&5 7353 fi 7354 rm -rf conftest* conftst* 7355 7356 # Do not use the global_symbol_pipe unless it works. 7357 if test "$pipe_works" = yes; then 7358 break 7359 else 7360 lt_cv_sys_global_symbol_pipe= 7361 fi 7362 done 7363 7364 fi 7365 7366 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7367 lt_cv_sys_global_symbol_to_cdecl= 7368 fi 7369 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7371 $as_echo "failed" >&6; } 7372 else 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7374 $as_echo "ok" >&6; } 7375 fi 7376 7377 # Response file support. 7378 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7379 nm_file_list_spec='@' 7380 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7381 nm_file_list_spec='@' 7382 fi 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7411 $as_echo_n "checking for sysroot... " >&6; } 7412 7413 # Check whether --with-sysroot was given. 7414 if test "${with_sysroot+set}" = set; then : 7415 withval=$with_sysroot; 7416 else 7417 with_sysroot=no 7418 fi 7419 7420 7421 lt_sysroot= 7422 case ${with_sysroot} in #( 7423 yes) 7424 if test "$GCC" = yes; then 7425 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7426 fi 7427 ;; #( 7428 /*) 7429 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7430 ;; #( 7431 no|'') 7432 ;; #( 7433 *) 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7435 $as_echo "${with_sysroot}" >&6; } 7436 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7437 ;; 7438 esac 7439 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7441 $as_echo "${lt_sysroot:-no}" >&6; } 7442 7443 7444 7445 7446 7447 # Check whether --enable-libtool-lock was given. 7448 if test "${enable_libtool_lock+set}" = set; then : 7449 enableval=$enable_libtool_lock; 7450 fi 7451 7452 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7453 7454 # Some flags need to be propagated to the compiler or linker for good 7455 # libtool support. 7456 case $host in 7457 ia64-*-hpux*) 7458 # Find out which ABI we are using. 7459 echo 'int i;' > conftest.$ac_ext 7460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7461 (eval $ac_compile) 2>&5 7462 ac_status=$? 7463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7464 test $ac_status = 0; }; then 7465 case `/usr/bin/file conftest.$ac_objext` in 7466 *ELF-32*) 7467 HPUX_IA64_MODE="32" 7468 ;; 7469 *ELF-64*) 7470 HPUX_IA64_MODE="64" 7471 ;; 7472 esac 7473 fi 7474 rm -rf conftest* 7475 ;; 7476 *-*-irix6*) 7477 # Find out which ABI we are using. 7478 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7480 (eval $ac_compile) 2>&5 7481 ac_status=$? 7482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7483 test $ac_status = 0; }; then 7484 if test "$lt_cv_prog_gnu_ld" = yes; then 7485 case `/usr/bin/file conftest.$ac_objext` in 7486 *32-bit*) 7487 LD="${LD-ld} -melf32bsmip" 7488 ;; 7489 *N32*) 7490 LD="${LD-ld} -melf32bmipn32" 7491 ;; 7492 *64-bit*) 7493 LD="${LD-ld} -melf64bmip" 7494 ;; 7495 esac 7496 else 7497 case `/usr/bin/file conftest.$ac_objext` in 7498 *32-bit*) 7499 LD="${LD-ld} -32" 7500 ;; 7501 *N32*) 7502 LD="${LD-ld} -n32" 7503 ;; 7504 *64-bit*) 7505 LD="${LD-ld} -64" 7506 ;; 7507 esac 7508 fi 7509 fi 7510 rm -rf conftest* 7511 ;; 7512 7513 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7514 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7515 # Find out which ABI we are using. 7516 echo 'int i;' > conftest.$ac_ext 7517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7518 (eval $ac_compile) 2>&5 7519 ac_status=$? 7520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7521 test $ac_status = 0; }; then 7522 case `/usr/bin/file conftest.o` in 7523 *32-bit*) 7524 case $host in 7525 x86_64-*kfreebsd*-gnu) 7526 LD="${LD-ld} -m elf_i386_fbsd" 7527 ;; 7528 x86_64-*linux*) 7529 LD="${LD-ld} -m elf_i386" 7530 ;; 7531 ppc64-*linux*|powerpc64-*linux*) 7532 LD="${LD-ld} -m elf32ppclinux" 7533 ;; 7534 s390x-*linux*) 7535 LD="${LD-ld} -m elf_s390" 7536 ;; 7537 sparc64-*linux*) 7538 LD="${LD-ld} -m elf32_sparc" 7539 ;; 7540 esac 7541 ;; 7542 *64-bit*) 7543 case $host in 7544 x86_64-*kfreebsd*-gnu) 7545 LD="${LD-ld} -m elf_x86_64_fbsd" 7546 ;; 7547 x86_64-*linux*) 7548 LD="${LD-ld} -m elf_x86_64" 7549 ;; 7550 ppc*-*linux*|powerpc*-*linux*) 7551 LD="${LD-ld} -m elf64ppc" 7552 ;; 7553 s390*-*linux*|s390*-*tpf*) 7554 LD="${LD-ld} -m elf64_s390" 7555 ;; 7556 sparc*-*linux*) 7557 LD="${LD-ld} -m elf64_sparc" 7558 ;; 7559 esac 7560 ;; 7561 esac 7562 fi 7563 rm -rf conftest* 7564 ;; 7565 7566 *-*-sco3.2v5*) 7567 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7568 SAVE_CFLAGS="$CFLAGS" 7569 CFLAGS="$CFLAGS -belf" 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7571 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7572 if ${lt_cv_cc_needs_belf+:} false; then : 7573 $as_echo_n "(cached) " >&6 7574 else 7575 ac_ext=c 7576 ac_cpp='$CPP $CPPFLAGS' 7577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7579 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7580 7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7582 /* end confdefs.h. */ 7583 7584 int 7585 main () 7586 { 7587 7588 ; 7589 return 0; 7590 } 7591 _ACEOF 7592 if ac_fn_c_try_link "$LINENO"; then : 7593 lt_cv_cc_needs_belf=yes 7594 else 7595 lt_cv_cc_needs_belf=no 7596 fi 7597 rm -f core conftest.err conftest.$ac_objext \ 7598 conftest$ac_exeext conftest.$ac_ext 7599 ac_ext=c 7600 ac_cpp='$CPP $CPPFLAGS' 7601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7603 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7604 7605 fi 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7607 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7608 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7609 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7610 CFLAGS="$SAVE_CFLAGS" 7611 fi 7612 ;; 7613 *-*solaris*) 7614 # Find out which ABI we are using. 7615 echo 'int i;' > conftest.$ac_ext 7616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7617 (eval $ac_compile) 2>&5 7618 ac_status=$? 7619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7620 test $ac_status = 0; }; then 7621 case `/usr/bin/file conftest.o` in 7622 *64-bit*) 7623 case $lt_cv_prog_gnu_ld in 7624 yes*) 7625 case $host in 7626 i?86-*-solaris*) 7627 LD="${LD-ld} -m elf_x86_64" 7628 ;; 7629 sparc*-*-solaris*) 7630 LD="${LD-ld} -m elf64_sparc" 7631 ;; 7632 esac 7633 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7634 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7635 LD="${LD-ld}_sol2" 7636 fi 7637 ;; 7638 *) 7639 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7640 LD="${LD-ld} -64" 7641 fi 7642 ;; 7643 esac 7644 ;; 7645 esac 7646 fi 7647 rm -rf conftest* 7648 ;; 7649 esac 7650 7651 need_locks="$enable_libtool_lock" 7652 7653 if test -n "$ac_tool_prefix"; then 7654 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7655 set dummy ${ac_tool_prefix}mt; ac_word=$2 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7657 $as_echo_n "checking for $ac_word... " >&6; } 7658 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660 else 7661 if test -n "$MANIFEST_TOOL"; then 7662 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7663 else 7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7665 for as_dir in $PATH 7666 do 7667 IFS=$as_save_IFS 7668 test -z "$as_dir" && as_dir=. 7669 for ac_exec_ext in '' $ac_executable_extensions; do 7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7671 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7673 break 2 7674 fi 7675 done 7676 done 7677 IFS=$as_save_IFS 7678 7679 fi 7680 fi 7681 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7682 if test -n "$MANIFEST_TOOL"; then 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7684 $as_echo "$MANIFEST_TOOL" >&6; } 7685 else 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7687 $as_echo "no" >&6; } 7688 fi 7689 7690 7691 fi 7692 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7693 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7694 # Extract the first word of "mt", so it can be a program name with args. 7695 set dummy mt; ac_word=$2 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7697 $as_echo_n "checking for $ac_word... " >&6; } 7698 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700 else 7701 if test -n "$ac_ct_MANIFEST_TOOL"; then 7702 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7703 else 7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7705 for as_dir in $PATH 7706 do 7707 IFS=$as_save_IFS 7708 test -z "$as_dir" && as_dir=. 7709 for ac_exec_ext in '' $ac_executable_extensions; do 7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7711 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7713 break 2 7714 fi 7715 done 7716 done 7717 IFS=$as_save_IFS 7718 7719 fi 7720 fi 7721 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7722 if test -n "$ac_ct_MANIFEST_TOOL"; then 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7724 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7725 else 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7727 $as_echo "no" >&6; } 7728 fi 7729 7730 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7731 MANIFEST_TOOL=":" 7732 else 7733 case $cross_compiling:$ac_tool_warned in 7734 yes:) 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7737 ac_tool_warned=yes ;; 7738 esac 7739 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7740 fi 7741 else 7742 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7743 fi 7744 7745 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7747 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7748 if ${lt_cv_path_mainfest_tool+:} false; then : 7749 $as_echo_n "(cached) " >&6 7750 else 7751 lt_cv_path_mainfest_tool=no 7752 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7753 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7754 cat conftest.err >&5 7755 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7756 lt_cv_path_mainfest_tool=yes 7757 fi 7758 rm -f conftest* 7759 fi 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7761 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 7762 if test "x$lt_cv_path_mainfest_tool" != xyes; then 7763 MANIFEST_TOOL=: 7764 fi 7765 7766 7767 7768 7769 7770 7771 case $host_os in 7772 rhapsody* | darwin*) 7773 if test -n "$ac_tool_prefix"; then 7774 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7775 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7777 $as_echo_n "checking for $ac_word... " >&6; } 7778 if ${ac_cv_prog_DSYMUTIL+:} false; then : 7779 $as_echo_n "(cached) " >&6 7780 else 7781 if test -n "$DSYMUTIL"; then 7782 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7783 else 7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7785 for as_dir in $PATH 7786 do 7787 IFS=$as_save_IFS 7788 test -z "$as_dir" && as_dir=. 7789 for ac_exec_ext in '' $ac_executable_extensions; do 7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7791 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7793 break 2 7794 fi 7795 done 7796 done 7797 IFS=$as_save_IFS 7798 7799 fi 7800 fi 7801 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7802 if test -n "$DSYMUTIL"; then 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7804 $as_echo "$DSYMUTIL" >&6; } 7805 else 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7807 $as_echo "no" >&6; } 7808 fi 7809 7810 7811 fi 7812 if test -z "$ac_cv_prog_DSYMUTIL"; then 7813 ac_ct_DSYMUTIL=$DSYMUTIL 7814 # Extract the first word of "dsymutil", so it can be a program name with args. 7815 set dummy dsymutil; ac_word=$2 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7817 $as_echo_n "checking for $ac_word... " >&6; } 7818 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7819 $as_echo_n "(cached) " >&6 7820 else 7821 if test -n "$ac_ct_DSYMUTIL"; then 7822 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7823 else 7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7825 for as_dir in $PATH 7826 do 7827 IFS=$as_save_IFS 7828 test -z "$as_dir" && as_dir=. 7829 for ac_exec_ext in '' $ac_executable_extensions; do 7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7831 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7833 break 2 7834 fi 7835 done 7836 done 7837 IFS=$as_save_IFS 7838 7839 fi 7840 fi 7841 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7842 if test -n "$ac_ct_DSYMUTIL"; then 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7844 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7845 else 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7847 $as_echo "no" >&6; } 7848 fi 7849 7850 if test "x$ac_ct_DSYMUTIL" = x; then 7851 DSYMUTIL=":" 7852 else 7853 case $cross_compiling:$ac_tool_warned in 7854 yes:) 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7857 ac_tool_warned=yes ;; 7858 esac 7859 DSYMUTIL=$ac_ct_DSYMUTIL 7860 fi 7861 else 7862 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7863 fi 7864 7865 if test -n "$ac_tool_prefix"; then 7866 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7867 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7869 $as_echo_n "checking for $ac_word... " >&6; } 7870 if ${ac_cv_prog_NMEDIT+:} false; then : 7871 $as_echo_n "(cached) " >&6 7872 else 7873 if test -n "$NMEDIT"; then 7874 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7875 else 7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7877 for as_dir in $PATH 7878 do 7879 IFS=$as_save_IFS 7880 test -z "$as_dir" && as_dir=. 7881 for ac_exec_ext in '' $ac_executable_extensions; do 7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7883 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7885 break 2 7886 fi 7887 done 7888 done 7889 IFS=$as_save_IFS 7890 7891 fi 7892 fi 7893 NMEDIT=$ac_cv_prog_NMEDIT 7894 if test -n "$NMEDIT"; then 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7896 $as_echo "$NMEDIT" >&6; } 7897 else 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7899 $as_echo "no" >&6; } 7900 fi 7901 7902 7903 fi 7904 if test -z "$ac_cv_prog_NMEDIT"; then 7905 ac_ct_NMEDIT=$NMEDIT 7906 # Extract the first word of "nmedit", so it can be a program name with args. 7907 set dummy nmedit; ac_word=$2 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7909 $as_echo_n "checking for $ac_word... " >&6; } 7910 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7911 $as_echo_n "(cached) " >&6 7912 else 7913 if test -n "$ac_ct_NMEDIT"; then 7914 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7915 else 7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7917 for as_dir in $PATH 7918 do 7919 IFS=$as_save_IFS 7920 test -z "$as_dir" && as_dir=. 7921 for ac_exec_ext in '' $ac_executable_extensions; do 7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7923 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7925 break 2 7926 fi 7927 done 7928 done 7929 IFS=$as_save_IFS 7930 7931 fi 7932 fi 7933 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7934 if test -n "$ac_ct_NMEDIT"; then 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7936 $as_echo "$ac_ct_NMEDIT" >&6; } 7937 else 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7939 $as_echo "no" >&6; } 7940 fi 7941 7942 if test "x$ac_ct_NMEDIT" = x; then 7943 NMEDIT=":" 7944 else 7945 case $cross_compiling:$ac_tool_warned in 7946 yes:) 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7949 ac_tool_warned=yes ;; 7950 esac 7951 NMEDIT=$ac_ct_NMEDIT 7952 fi 7953 else 7954 NMEDIT="$ac_cv_prog_NMEDIT" 7955 fi 7956 7957 if test -n "$ac_tool_prefix"; then 7958 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7959 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7961 $as_echo_n "checking for $ac_word... " >&6; } 7962 if ${ac_cv_prog_LIPO+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964 else 7965 if test -n "$LIPO"; then 7966 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7967 else 7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7969 for as_dir in $PATH 7970 do 7971 IFS=$as_save_IFS 7972 test -z "$as_dir" && as_dir=. 7973 for ac_exec_ext in '' $ac_executable_extensions; do 7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7975 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7977 break 2 7978 fi 7979 done 7980 done 7981 IFS=$as_save_IFS 7982 7983 fi 7984 fi 7985 LIPO=$ac_cv_prog_LIPO 7986 if test -n "$LIPO"; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7988 $as_echo "$LIPO" >&6; } 7989 else 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7991 $as_echo "no" >&6; } 7992 fi 7993 7994 7995 fi 7996 if test -z "$ac_cv_prog_LIPO"; then 7997 ac_ct_LIPO=$LIPO 7998 # Extract the first word of "lipo", so it can be a program name with args. 7999 set dummy lipo; ac_word=$2 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8001 $as_echo_n "checking for $ac_word... " >&6; } 8002 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8003 $as_echo_n "(cached) " >&6 8004 else 8005 if test -n "$ac_ct_LIPO"; then 8006 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8007 else 8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8009 for as_dir in $PATH 8010 do 8011 IFS=$as_save_IFS 8012 test -z "$as_dir" && as_dir=. 8013 for ac_exec_ext in '' $ac_executable_extensions; do 8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8015 ac_cv_prog_ac_ct_LIPO="lipo" 8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8017 break 2 8018 fi 8019 done 8020 done 8021 IFS=$as_save_IFS 8022 8023 fi 8024 fi 8025 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8026 if test -n "$ac_ct_LIPO"; then 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8028 $as_echo "$ac_ct_LIPO" >&6; } 8029 else 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8031 $as_echo "no" >&6; } 8032 fi 8033 8034 if test "x$ac_ct_LIPO" = x; then 8035 LIPO=":" 8036 else 8037 case $cross_compiling:$ac_tool_warned in 8038 yes:) 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8041 ac_tool_warned=yes ;; 8042 esac 8043 LIPO=$ac_ct_LIPO 8044 fi 8045 else 8046 LIPO="$ac_cv_prog_LIPO" 8047 fi 8048 8049 if test -n "$ac_tool_prefix"; then 8050 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8051 set dummy ${ac_tool_prefix}otool; ac_word=$2 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8053 $as_echo_n "checking for $ac_word... " >&6; } 8054 if ${ac_cv_prog_OTOOL+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056 else 8057 if test -n "$OTOOL"; then 8058 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8059 else 8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8061 for as_dir in $PATH 8062 do 8063 IFS=$as_save_IFS 8064 test -z "$as_dir" && as_dir=. 8065 for ac_exec_ext in '' $ac_executable_extensions; do 8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8067 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8069 break 2 8070 fi 8071 done 8072 done 8073 IFS=$as_save_IFS 8074 8075 fi 8076 fi 8077 OTOOL=$ac_cv_prog_OTOOL 8078 if test -n "$OTOOL"; then 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8080 $as_echo "$OTOOL" >&6; } 8081 else 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8083 $as_echo "no" >&6; } 8084 fi 8085 8086 8087 fi 8088 if test -z "$ac_cv_prog_OTOOL"; then 8089 ac_ct_OTOOL=$OTOOL 8090 # Extract the first word of "otool", so it can be a program name with args. 8091 set dummy otool; ac_word=$2 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8093 $as_echo_n "checking for $ac_word... " >&6; } 8094 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8095 $as_echo_n "(cached) " >&6 8096 else 8097 if test -n "$ac_ct_OTOOL"; then 8098 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8099 else 8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8101 for as_dir in $PATH 8102 do 8103 IFS=$as_save_IFS 8104 test -z "$as_dir" && as_dir=. 8105 for ac_exec_ext in '' $ac_executable_extensions; do 8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8107 ac_cv_prog_ac_ct_OTOOL="otool" 8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8109 break 2 8110 fi 8111 done 8112 done 8113 IFS=$as_save_IFS 8114 8115 fi 8116 fi 8117 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8118 if test -n "$ac_ct_OTOOL"; then 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8120 $as_echo "$ac_ct_OTOOL" >&6; } 8121 else 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8123 $as_echo "no" >&6; } 8124 fi 8125 8126 if test "x$ac_ct_OTOOL" = x; then 8127 OTOOL=":" 8128 else 8129 case $cross_compiling:$ac_tool_warned in 8130 yes:) 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8133 ac_tool_warned=yes ;; 8134 esac 8135 OTOOL=$ac_ct_OTOOL 8136 fi 8137 else 8138 OTOOL="$ac_cv_prog_OTOOL" 8139 fi 8140 8141 if test -n "$ac_tool_prefix"; then 8142 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8143 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8145 $as_echo_n "checking for $ac_word... " >&6; } 8146 if ${ac_cv_prog_OTOOL64+:} false; then : 8147 $as_echo_n "(cached) " >&6 8148 else 8149 if test -n "$OTOOL64"; then 8150 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8151 else 8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8153 for as_dir in $PATH 8154 do 8155 IFS=$as_save_IFS 8156 test -z "$as_dir" && as_dir=. 8157 for ac_exec_ext in '' $ac_executable_extensions; do 8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8159 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8161 break 2 8162 fi 8163 done 8164 done 8165 IFS=$as_save_IFS 8166 8167 fi 8168 fi 8169 OTOOL64=$ac_cv_prog_OTOOL64 8170 if test -n "$OTOOL64"; then 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8172 $as_echo "$OTOOL64" >&6; } 8173 else 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8175 $as_echo "no" >&6; } 8176 fi 8177 8178 8179 fi 8180 if test -z "$ac_cv_prog_OTOOL64"; then 8181 ac_ct_OTOOL64=$OTOOL64 8182 # Extract the first word of "otool64", so it can be a program name with args. 8183 set dummy otool64; ac_word=$2 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8185 $as_echo_n "checking for $ac_word... " >&6; } 8186 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8187 $as_echo_n "(cached) " >&6 8188 else 8189 if test -n "$ac_ct_OTOOL64"; then 8190 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8191 else 8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8193 for as_dir in $PATH 8194 do 8195 IFS=$as_save_IFS 8196 test -z "$as_dir" && as_dir=. 8197 for ac_exec_ext in '' $ac_executable_extensions; do 8198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8199 ac_cv_prog_ac_ct_OTOOL64="otool64" 8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8201 break 2 8202 fi 8203 done 8204 done 8205 IFS=$as_save_IFS 8206 8207 fi 8208 fi 8209 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8210 if test -n "$ac_ct_OTOOL64"; then 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8212 $as_echo "$ac_ct_OTOOL64" >&6; } 8213 else 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8215 $as_echo "no" >&6; } 8216 fi 8217 8218 if test "x$ac_ct_OTOOL64" = x; then 8219 OTOOL64=":" 8220 else 8221 case $cross_compiling:$ac_tool_warned in 8222 yes:) 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8225 ac_tool_warned=yes ;; 8226 esac 8227 OTOOL64=$ac_ct_OTOOL64 8228 fi 8229 else 8230 OTOOL64="$ac_cv_prog_OTOOL64" 8231 fi 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8260 $as_echo_n "checking for -single_module linker flag... " >&6; } 8261 if ${lt_cv_apple_cc_single_mod+:} false; then : 8262 $as_echo_n "(cached) " >&6 8263 else 8264 lt_cv_apple_cc_single_mod=no 8265 if test -z "${LT_MULTI_MODULE}"; then 8266 # By default we will add the -single_module flag. You can override 8267 # by either setting the environment variable LT_MULTI_MODULE 8268 # non-empty at configure time, or by adding -multi_module to the 8269 # link flags. 8270 rm -rf libconftest.dylib* 8271 echo "int foo(void){return 1;}" > conftest.c 8272 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8273 -dynamiclib -Wl,-single_module conftest.c" >&5 8274 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8275 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8276 _lt_result=$? 8277 # If there is a non-empty error log, and "single_module" 8278 # appears in it, assume the flag caused a linker warning 8279 if test -s conftest.err && $GREP single_module conftest.err; then 8280 cat conftest.err >&5 8281 # Otherwise, if the output was created with a 0 exit code from 8282 # the compiler, it worked. 8283 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8284 lt_cv_apple_cc_single_mod=yes 8285 else 8286 cat conftest.err >&5 8287 fi 8288 rm -rf libconftest.dylib* 8289 rm -f conftest.* 8290 fi 8291 fi 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8293 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8294 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8296 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8297 if ${lt_cv_ld_exported_symbols_list+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299 else 8300 lt_cv_ld_exported_symbols_list=no 8301 save_LDFLAGS=$LDFLAGS 8302 echo "_main" > conftest.sym 8303 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8305 /* end confdefs.h. */ 8306 8307 int 8308 main () 8309 { 8310 8311 ; 8312 return 0; 8313 } 8314 _ACEOF 8315 if ac_fn_c_try_link "$LINENO"; then : 8316 lt_cv_ld_exported_symbols_list=yes 8317 else 8318 lt_cv_ld_exported_symbols_list=no 8319 fi 8320 rm -f core conftest.err conftest.$ac_objext \ 8321 conftest$ac_exeext conftest.$ac_ext 8322 LDFLAGS="$save_LDFLAGS" 8323 8324 fi 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8326 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8327 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8329 $as_echo_n "checking for -force_load linker flag... " >&6; } 8330 if ${lt_cv_ld_force_load+:} false; then : 8331 $as_echo_n "(cached) " >&6 8332 else 8333 lt_cv_ld_force_load=no 8334 cat > conftest.c << _LT_EOF 8335 int forced_loaded() { return 2;} 8336 _LT_EOF 8337 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8338 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8339 echo "$AR cru libconftest.a conftest.o" >&5 8340 $AR cru libconftest.a conftest.o 2>&5 8341 echo "$RANLIB libconftest.a" >&5 8342 $RANLIB libconftest.a 2>&5 8343 cat > conftest.c << _LT_EOF 8344 int main() { return 0;} 8345 _LT_EOF 8346 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8347 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8348 _lt_result=$? 8349 if test -s conftest.err && $GREP force_load conftest.err; then 8350 cat conftest.err >&5 8351 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8352 lt_cv_ld_force_load=yes 8353 else 8354 cat conftest.err >&5 8355 fi 8356 rm -f conftest.err libconftest.a conftest conftest.c 8357 rm -rf conftest.dSYM 8358 8359 fi 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8361 $as_echo "$lt_cv_ld_force_load" >&6; } 8362 case $host_os in 8363 rhapsody* | darwin1.[012]) 8364 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8365 darwin1.*) 8366 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8367 darwin*) # darwin 5.x on 8368 # if running on 10.5 or later, the deployment target defaults 8369 # to the OS version, if on x86, and 10.4, the deployment 8370 # target defaults to 10.4. Don't you love it? 8371 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8372 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8373 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8374 10.[012]*) 8375 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8376 10.*) 8377 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8378 esac 8379 ;; 8380 esac 8381 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8382 _lt_dar_single_mod='$single_module' 8383 fi 8384 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8385 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8386 else 8387 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8388 fi 8389 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8390 _lt_dsymutil='~$DSYMUTIL $lib || :' 8391 else 8392 _lt_dsymutil= 8393 fi 8394 ;; 8395 esac 8396 8397 ac_ext=c 8398 ac_cpp='$CPP $CPPFLAGS' 8399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8401 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8403 $as_echo_n "checking how to run the C preprocessor... " >&6; } 8404 # On Suns, sometimes $CPP names a directory. 8405 if test -n "$CPP" && test -d "$CPP"; then 8406 CPP= 8407 fi 8408 if test -z "$CPP"; then 8409 if ${ac_cv_prog_CPP+:} false; then : 8410 $as_echo_n "(cached) " >&6 8411 else 8412 # Double quotes because CPP needs to be expanded 8413 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8414 do 8415 ac_preproc_ok=false 8416 for ac_c_preproc_warn_flag in '' yes 8417 do 8418 # Use a header file that comes with gcc, so configuring glibc 8419 # with a fresh cross-compiler works. 8420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8421 # <limits.h> exists even on freestanding compilers. 8422 # On the NeXT, cc -E runs the code through the compiler's parser, 8423 # not just through cpp. "Syntax error" is here to catch this case. 8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8425 /* end confdefs.h. */ 8426 #ifdef __STDC__ 8427 # include <limits.h> 8428 #else 8429 # include <assert.h> 8430 #endif 8431 Syntax error 8432 _ACEOF 8433 if ac_fn_c_try_cpp "$LINENO"; then : 8434 8435 else 8436 # Broken: fails on valid input. 8437 continue 8438 fi 8439 rm -f conftest.err conftest.i conftest.$ac_ext 8440 8441 # OK, works on sane cases. Now check whether nonexistent headers 8442 # can be detected and how. 8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8444 /* end confdefs.h. */ 8445 #include <ac_nonexistent.h> 8446 _ACEOF 8447 if ac_fn_c_try_cpp "$LINENO"; then : 8448 # Broken: success on invalid input. 8449 continue 8450 else 8451 # Passes both tests. 8452 ac_preproc_ok=: 8453 break 8454 fi 8455 rm -f conftest.err conftest.i conftest.$ac_ext 8456 8457 done 8458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8459 rm -f conftest.i conftest.err conftest.$ac_ext 8460 if $ac_preproc_ok; then : 8461 break 8462 fi 8463 8464 done 8465 ac_cv_prog_CPP=$CPP 8466 8467 fi 8468 CPP=$ac_cv_prog_CPP 8469 else 8470 ac_cv_prog_CPP=$CPP 8471 fi 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8473 $as_echo "$CPP" >&6; } 8474 ac_preproc_ok=false 8475 for ac_c_preproc_warn_flag in '' yes 8476 do 8477 # Use a header file that comes with gcc, so configuring glibc 8478 # with a fresh cross-compiler works. 8479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8480 # <limits.h> exists even on freestanding compilers. 8481 # On the NeXT, cc -E runs the code through the compiler's parser, 8482 # not just through cpp. "Syntax error" is here to catch this case. 8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484 /* end confdefs.h. */ 8485 #ifdef __STDC__ 8486 # include <limits.h> 8487 #else 8488 # include <assert.h> 8489 #endif 8490 Syntax error 8491 _ACEOF 8492 if ac_fn_c_try_cpp "$LINENO"; then : 8493 8494 else 8495 # Broken: fails on valid input. 8496 continue 8497 fi 8498 rm -f conftest.err conftest.i conftest.$ac_ext 8499 8500 # OK, works on sane cases. Now check whether nonexistent headers 8501 # can be detected and how. 8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8503 /* end confdefs.h. */ 8504 #include <ac_nonexistent.h> 8505 _ACEOF 8506 if ac_fn_c_try_cpp "$LINENO"; then : 8507 # Broken: success on invalid input. 8508 continue 8509 else 8510 # Passes both tests. 8511 ac_preproc_ok=: 8512 break 8513 fi 8514 rm -f conftest.err conftest.i conftest.$ac_ext 8515 8516 done 8517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8518 rm -f conftest.i conftest.err conftest.$ac_ext 8519 if $ac_preproc_ok; then : 8520 8521 else 8522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8524 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8525 See \`config.log' for more details" "$LINENO" 5; } 8526 fi 8527 8528 ac_ext=c 8529 ac_cpp='$CPP $CPPFLAGS' 8530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8532 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8533 8534 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3578 8536 $as_echo_n "checking for ANSI C header files... " >&6; } 3579 if test "${ac_cv_header_stdc+set}" = set; then8537 if ${ac_cv_header_stdc+:} false; then : 3580 8538 $as_echo_n "(cached) " >&6 3581 8539 else 3582 cat >conftest.$ac_ext <<_ACEOF 3583 /* confdefs.h. */ 3584 _ACEOF 3585 cat confdefs.h >>conftest.$ac_ext 3586 cat >>conftest.$ac_ext <<_ACEOF 8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587 8541 /* end confdefs.h. */ 3588 8542 #include <stdlib.h> … … 3599 8553 } 3600 8554 _ACEOF 3601 rm -f conftest.$ac_objext 3602 if { (ac_try="$ac_compile" 3603 case "(($ac_try" in 3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3605 *) ac_try_echo=$ac_try;; 3606 esac 3607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3608 $as_echo "$ac_try_echo") >&5 3609 (eval "$ac_compile") 2>conftest.er1 3610 ac_status=$? 3611 grep -v '^ *+' conftest.er1 >conftest.err 3612 rm -f conftest.er1 3613 cat conftest.err >&5 3614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3615 (exit $ac_status); } && { 3616 test -z "$ac_c_werror_flag" || 3617 test ! -s conftest.err 3618 } && test -s conftest.$ac_objext; then 8555 if ac_fn_c_try_compile "$LINENO"; then : 3619 8556 ac_cv_header_stdc=yes 3620 8557 else 3621 $as_echo "$as_me: failed program was:" >&5 3622 sed 's/^/| /' conftest.$ac_ext >&5 3623 3624 ac_cv_header_stdc=no 3625 fi 3626 8558 ac_cv_header_stdc=no 8559 fi 3627 8560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3628 8561 3629 8562 if test $ac_cv_header_stdc = yes; then 3630 8563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3631 cat >conftest.$ac_ext <<_ACEOF 3632 /* confdefs.h. */ 3633 _ACEOF 3634 cat confdefs.h >>conftest.$ac_ext 3635 cat >>conftest.$ac_ext <<_ACEOF 8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3636 8565 /* end confdefs.h. */ 3637 8566 #include <string.h> … … 3639 8568 _ACEOF 3640 8569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3641 $EGREP "memchr" >/dev/null 2>&1; then 3642 : 8570 $EGREP "memchr" >/dev/null 2>&1; then : 8571 3643 8572 else 3644 8573 ac_cv_header_stdc=no … … 3650 8579 if test $ac_cv_header_stdc = yes; then 3651 8580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3652 cat >conftest.$ac_ext <<_ACEOF 3653 /* confdefs.h. */ 3654 _ACEOF 3655 cat confdefs.h >>conftest.$ac_ext 3656 cat >>conftest.$ac_ext <<_ACEOF 8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3657 8582 /* end confdefs.h. */ 3658 8583 #include <stdlib.h> … … 3660 8585 _ACEOF 3661 8586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3662 $EGREP "free" >/dev/null 2>&1; then 3663 : 8587 $EGREP "free" >/dev/null 2>&1; then : 8588 3664 8589 else 3665 8590 ac_cv_header_stdc=no … … 3671 8596 if test $ac_cv_header_stdc = yes; then 3672 8597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3673 if test "$cross_compiling" = yes; then 8598 if test "$cross_compiling" = yes; then : 3674 8599 : 3675 8600 else 3676 cat >conftest.$ac_ext <<_ACEOF 3677 /* confdefs.h. */ 3678 _ACEOF 3679 cat confdefs.h >>conftest.$ac_ext 3680 cat >>conftest.$ac_ext <<_ACEOF 8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3681 8602 /* end confdefs.h. */ 3682 8603 #include <ctype.h> … … 3705 8626 } 3706 8627 _ACEOF 3707 rm -f conftest$ac_exeext 3708 if { (ac_try="$ac_link" 3709 case "(($ac_try" in 3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3711 *) ac_try_echo=$ac_try;; 3712 esac 3713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3714 $as_echo "$ac_try_echo") >&5 3715 (eval "$ac_link") 2>&5 3716 ac_status=$? 3717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3719 { (case "(($ac_try" in 3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3721 *) ac_try_echo=$ac_try;; 3722 esac 3723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3724 $as_echo "$ac_try_echo") >&5 3725 (eval "$ac_try") 2>&5 3726 ac_status=$? 3727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3728 (exit $ac_status); }; }; then 3729 : 3730 else 3731 $as_echo "$as_me: program exited with status $ac_status" >&5 3732 $as_echo "$as_me: failed program was:" >&5 3733 sed 's/^/| /' conftest.$ac_ext >&5 3734 3735 ( exit $ac_status ) 3736 ac_cv_header_stdc=no 3737 fi 3738 rm -rf conftest.dSYM 3739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3740 fi 3741 3742 3743 fi 3744 fi 3745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 8628 if ac_fn_c_try_run "$LINENO"; then : 8629 8630 else 8631 ac_cv_header_stdc=no 8632 fi 8633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8634 conftest.$ac_objext conftest.beam conftest.$ac_ext 8635 fi 8636 8637 fi 8638 fi 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3746 8640 $as_echo "$ac_cv_header_stdc" >&6; } 3747 8641 if test $ac_cv_header_stdc = yes; then 3748 8642 3749 cat >>confdefs.h <<\_ACEOF 3750 #define STDC_HEADERS 1 3751 _ACEOF 8643 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 3752 8644 3753 8645 fi 3754 8646 3755 8647 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 8648 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3766 8649 inttypes.h stdint.h unistd.h 3767 do 3768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3769 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3770 $as_echo_n "checking for $ac_header... " >&6; } 3771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3772 $as_echo_n "(cached) " >&6 3773 else 3774 cat >conftest.$ac_ext <<_ACEOF 3775 /* confdefs.h. */ 3776 _ACEOF 3777 cat confdefs.h >>conftest.$ac_ext 3778 cat >>conftest.$ac_ext <<_ACEOF 3779 /* end confdefs.h. */ 3780 $ac_includes_default 3781 3782 #include <$ac_header> 3783 _ACEOF 3784 rm -f conftest.$ac_objext 3785 if { (ac_try="$ac_compile" 3786 case "(($ac_try" in 3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3788 *) ac_try_echo=$ac_try;; 3789 esac 3790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3791 $as_echo "$ac_try_echo") >&5 3792 (eval "$ac_compile") 2>conftest.er1 3793 ac_status=$? 3794 grep -v '^ *+' conftest.er1 >conftest.err 3795 rm -f conftest.er1 3796 cat conftest.err >&5 3797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3798 (exit $ac_status); } && { 3799 test -z "$ac_c_werror_flag" || 3800 test ! -s conftest.err 3801 } && test -s conftest.$ac_objext; then 3802 eval "$as_ac_Header=yes" 3803 else 3804 $as_echo "$as_me: failed program was:" >&5 3805 sed 's/^/| /' conftest.$ac_ext >&5 3806 3807 eval "$as_ac_Header=no" 3808 fi 3809 3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3811 fi 3812 ac_res=`eval 'as_val=${'$as_ac_Header'} 3813 $as_echo "$as_val"'` 3814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3815 $as_echo "$ac_res" >&6; } 3816 as_val=`eval 'as_val=${'$as_ac_Header'} 3817 $as_echo "$as_val"'` 3818 if test "x$as_val" = x""yes; then 8650 do : 8651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8652 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8653 " 8654 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3819 8655 cat >>confdefs.h <<_ACEOF 3820 8656 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 … … 3826 8662 3827 8663 3828 3829 for ac_header in gmp.h 3830 do 3831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3834 $as_echo_n "checking for $ac_header... " >&6; } 3835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8664 for ac_header in dlfcn.h 8665 do : 8666 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8667 " 8668 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8669 cat >>confdefs.h <<_ACEOF 8670 #define HAVE_DLFCN_H 1 8671 _ACEOF 8672 8673 fi 8674 8675 done 8676 8677 8678 8679 8680 func_stripname_cnf () 8681 { 8682 case ${2} in 8683 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 8684 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 8685 esac 8686 } # func_stripname_cnf 8687 8688 8689 8690 8691 8692 # Set options 8693 8694 8695 8696 enable_dlopen=no 8697 8698 8699 enable_win32_dll=no 8700 8701 8702 # Check whether --enable-shared was given. 8703 if test "${enable_shared+set}" = set; then : 8704 enableval=$enable_shared; p=${PACKAGE-default} 8705 case $enableval in 8706 yes) enable_shared=yes ;; 8707 no) enable_shared=no ;; 8708 *) 8709 enable_shared=no 8710 # Look at the argument we got. We use all the common list separators. 8711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8712 for pkg in $enableval; do 8713 IFS="$lt_save_ifs" 8714 if test "X$pkg" = "X$p"; then 8715 enable_shared=yes 8716 fi 8717 done 8718 IFS="$lt_save_ifs" 8719 ;; 8720 esac 8721 else 8722 enable_shared=yes 8723 fi 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 # Check whether --enable-static was given. 8734 if test "${enable_static+set}" = set; then : 8735 enableval=$enable_static; p=${PACKAGE-default} 8736 case $enableval in 8737 yes) enable_static=yes ;; 8738 no) enable_static=no ;; 8739 *) 8740 enable_static=no 8741 # Look at the argument we got. We use all the common list separators. 8742 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8743 for pkg in $enableval; do 8744 IFS="$lt_save_ifs" 8745 if test "X$pkg" = "X$p"; then 8746 enable_static=yes 8747 fi 8748 done 8749 IFS="$lt_save_ifs" 8750 ;; 8751 esac 8752 else 8753 enable_static=yes 8754 fi 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 # Check whether --with-pic was given. 8766 if test "${with_pic+set}" = set; then : 8767 withval=$with_pic; lt_p=${PACKAGE-default} 8768 case $withval in 8769 yes|no) pic_mode=$withval ;; 8770 *) 8771 pic_mode=default 8772 # Look at the argument we got. We use all the common list separators. 8773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8774 for lt_pkg in $withval; do 8775 IFS="$lt_save_ifs" 8776 if test "X$lt_pkg" = "X$lt_p"; then 8777 pic_mode=yes 8778 fi 8779 done 8780 IFS="$lt_save_ifs" 8781 ;; 8782 esac 8783 else 8784 pic_mode=default 8785 fi 8786 8787 8788 test -z "$pic_mode" && pic_mode=default 8789 8790 8791 8792 8793 8794 8795 8796 # Check whether --enable-fast-install was given. 8797 if test "${enable_fast_install+set}" = set; then : 8798 enableval=$enable_fast_install; p=${PACKAGE-default} 8799 case $enableval in 8800 yes) enable_fast_install=yes ;; 8801 no) enable_fast_install=no ;; 8802 *) 8803 enable_fast_install=no 8804 # Look at the argument we got. We use all the common list separators. 8805 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8806 for pkg in $enableval; do 8807 IFS="$lt_save_ifs" 8808 if test "X$pkg" = "X$p"; then 8809 enable_fast_install=yes 8810 fi 8811 done 8812 IFS="$lt_save_ifs" 8813 ;; 8814 esac 8815 else 8816 enable_fast_install=yes 8817 fi 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 # This can be used to rebuild libtool when needed 8830 LIBTOOL_DEPS="$ltmain" 8831 8832 # Always use our own libtool. 8833 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 test -z "$LN_S" && LN_S="ln -s" 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 if test -n "${ZSH_VERSION+set}" ; then 8880 setopt NO_GLOB_SUBST 8881 fi 8882 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8884 $as_echo_n "checking for objdir... " >&6; } 8885 if ${lt_cv_objdir+:} false; then : 3836 8886 $as_echo_n "(cached) " >&6 3837 fi 3838 ac_res=`eval 'as_val=${'$as_ac_Header'} 3839 $as_echo "$as_val"'` 3840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3841 $as_echo "$ac_res" >&6; } 3842 else 3843 # Is the header compilable? 3844 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 3845 $as_echo_n "checking $ac_header usability... " >&6; } 3846 cat >conftest.$ac_ext <<_ACEOF 3847 /* confdefs.h. */ 8887 else 8888 rm -f .libs 2>/dev/null 8889 mkdir .libs 2>/dev/null 8890 if test -d .libs; then 8891 lt_cv_objdir=.libs 8892 else 8893 # MS-DOS does not allow filenames that begin with a dot. 8894 lt_cv_objdir=_libs 8895 fi 8896 rmdir .libs 2>/dev/null 8897 fi 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8899 $as_echo "$lt_cv_objdir" >&6; } 8900 objdir=$lt_cv_objdir 8901 8902 8903 8904 8905 8906 cat >>confdefs.h <<_ACEOF 8907 #define LT_OBJDIR "$lt_cv_objdir/" 3848 8908 _ACEOF 3849 cat confdefs.h >>conftest.$ac_ext 3850 cat >>conftest.$ac_ext <<_ACEOF 3851 /* end confdefs.h. */ 3852 $ac_includes_default 3853 #include <$ac_header> 3854 _ACEOF 3855 rm -f conftest.$ac_objext 3856 if { (ac_try="$ac_compile" 3857 case "(($ac_try" in 3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3859 *) ac_try_echo=$ac_try;; 8909 8910 8911 8912 8913 case $host_os in 8914 aix3*) 8915 # AIX sometimes has problems with the GCC collect2 program. For some 8916 # reason, if we set the COLLECT_NAMES environment variable, the problems 8917 # vanish in a puff of smoke. 8918 if test "X${COLLECT_NAMES+set}" != Xset; then 8919 COLLECT_NAMES= 8920 export COLLECT_NAMES 8921 fi 8922 ;; 3860 8923 esac 3861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3862 $as_echo "$ac_try_echo") >&5 3863 (eval "$ac_compile") 2>conftest.er1 3864 ac_status=$? 3865 grep -v '^ *+' conftest.er1 >conftest.err 3866 rm -f conftest.er1 3867 cat conftest.err >&5 3868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3869 (exit $ac_status); } && { 3870 test -z "$ac_c_werror_flag" || 3871 test ! -s conftest.err 3872 } && test -s conftest.$ac_objext; then 3873 ac_header_compiler=yes 3874 else 3875 $as_echo "$as_me: failed program was:" >&5 3876 sed 's/^/| /' conftest.$ac_ext >&5 3877 3878 ac_header_compiler=no 3879 fi 3880 3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3882 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3883 $as_echo "$ac_header_compiler" >&6; } 3884 3885 # Is the header present? 3886 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 3887 $as_echo_n "checking $ac_header presence... " >&6; } 3888 cat >conftest.$ac_ext <<_ACEOF 3889 /* confdefs.h. */ 3890 _ACEOF 3891 cat confdefs.h >>conftest.$ac_ext 3892 cat >>conftest.$ac_ext <<_ACEOF 3893 /* end confdefs.h. */ 3894 #include <$ac_header> 3895 _ACEOF 3896 if { (ac_try="$ac_cpp conftest.$ac_ext" 3897 case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 8924 8925 # Global variables: 8926 ofile=libtool 8927 can_build_shared=yes 8928 8929 # All known linkers require a `.a' archive for static linking (except MSVC, 8930 # which needs '.lib'). 8931 libext=a 8932 8933 with_gnu_ld="$lt_cv_prog_gnu_ld" 8934 8935 old_CC="$CC" 8936 old_CFLAGS="$CFLAGS" 8937 8938 # Set sane defaults for various variables 8939 test -z "$CC" && CC=cc 8940 test -z "$LTCC" && LTCC=$CC 8941 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8942 test -z "$LD" && LD=ld 8943 test -z "$ac_objext" && ac_objext=o 8944 8945 for cc_temp in $compiler""; do 8946 case $cc_temp in 8947 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8948 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8949 \-*) ;; 8950 *) break;; 8951 esac 8952 done 8953 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8954 8955 8956 # Only perform the check for file, if the check method requires it 8957 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8958 case $deplibs_check_method in 8959 file_magic*) 8960 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8962 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8963 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8964 $as_echo_n "(cached) " >&6 8965 else 8966 case $MAGIC_CMD in 8967 [\\/*] | ?:[\\/]*) 8968 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8969 ;; 8970 *) 8971 lt_save_MAGIC_CMD="$MAGIC_CMD" 8972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8973 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8974 for ac_dir in $ac_dummy; do 8975 IFS="$lt_save_ifs" 8976 test -z "$ac_dir" && ac_dir=. 8977 if test -f $ac_dir/${ac_tool_prefix}file; then 8978 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8979 if test -n "$file_magic_test_file"; then 8980 case $deplibs_check_method in 8981 "file_magic "*) 8982 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8984 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8985 $EGREP "$file_magic_regex" > /dev/null; then 8986 : 8987 else 8988 cat <<_LT_EOF 1>&2 8989 8990 *** Warning: the command libtool uses to detect shared libraries, 8991 *** $file_magic_cmd, produces output that libtool cannot recognize. 8992 *** The result is that libtool may fail to recognize shared libraries 8993 *** as such. This will affect the creation of libtool libraries that 8994 *** depend on shared libraries, but programs linked with such libtool 8995 *** libraries will work regardless of this problem. Nevertheless, you 8996 *** may want to report the problem to your system manager and/or to 8997 *** bug-libtool@gnu.org 8998 8999 _LT_EOF 9000 fi ;; 9001 esac 9002 fi 9003 break 9004 fi 9005 done 9006 IFS="$lt_save_ifs" 9007 MAGIC_CMD="$lt_save_MAGIC_CMD" 9008 ;; 3900 9009 esac 3901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3902 $as_echo "$ac_try_echo") >&5 3903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3904 ac_status=$? 3905 grep -v '^ *+' conftest.er1 >conftest.err 3906 rm -f conftest.er1 3907 cat conftest.err >&5 3908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3909 (exit $ac_status); } >/dev/null && { 3910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3911 test ! -s conftest.err 3912 }; then 3913 ac_header_preproc=yes 3914 else 3915 $as_echo "$as_me: failed program was:" >&5 3916 sed 's/^/| /' conftest.$ac_ext >&5 3917 3918 ac_header_preproc=no 3919 fi 3920 3921 rm -f conftest.err conftest.$ac_ext 3922 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3923 $as_echo "$ac_header_preproc" >&6; } 3924 3925 # So? What about this header? 3926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3927 yes:no: ) 3928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3929 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3932 ac_header_preproc=yes 9010 fi 9011 9012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9013 if test -n "$MAGIC_CMD"; then 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9015 $as_echo "$MAGIC_CMD" >&6; } 9016 else 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9018 $as_echo "no" >&6; } 9019 fi 9020 9021 9022 9023 9024 9025 if test -z "$lt_cv_path_MAGIC_CMD"; then 9026 if test -n "$ac_tool_prefix"; then 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9028 $as_echo_n "checking for file... " >&6; } 9029 if ${lt_cv_path_MAGIC_CMD+:} false; then : 9030 $as_echo_n "(cached) " >&6 9031 else 9032 case $MAGIC_CMD in 9033 [\\/*] | ?:[\\/]*) 9034 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9035 ;; 9036 *) 9037 lt_save_MAGIC_CMD="$MAGIC_CMD" 9038 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9039 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9040 for ac_dir in $ac_dummy; do 9041 IFS="$lt_save_ifs" 9042 test -z "$ac_dir" && ac_dir=. 9043 if test -f $ac_dir/file; then 9044 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9045 if test -n "$file_magic_test_file"; then 9046 case $deplibs_check_method in 9047 "file_magic "*) 9048 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9050 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9051 $EGREP "$file_magic_regex" > /dev/null; then 9052 : 9053 else 9054 cat <<_LT_EOF 1>&2 9055 9056 *** Warning: the command libtool uses to detect shared libraries, 9057 *** $file_magic_cmd, produces output that libtool cannot recognize. 9058 *** The result is that libtool may fail to recognize shared libraries 9059 *** as such. This will affect the creation of libtool libraries that 9060 *** depend on shared libraries, but programs linked with such libtool 9061 *** libraries will work regardless of this problem. Nevertheless, you 9062 *** may want to report the problem to your system manager and/or to 9063 *** bug-libtool@gnu.org 9064 9065 _LT_EOF 9066 fi ;; 9067 esac 9068 fi 9069 break 9070 fi 9071 done 9072 IFS="$lt_save_ifs" 9073 MAGIC_CMD="$lt_save_MAGIC_CMD" 9074 ;; 9075 esac 9076 fi 9077 9078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9079 if test -n "$MAGIC_CMD"; then 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9081 $as_echo "$MAGIC_CMD" >&6; } 9082 else 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9084 $as_echo "no" >&6; } 9085 fi 9086 9087 9088 else 9089 MAGIC_CMD=: 9090 fi 9091 fi 9092 9093 fi 9094 ;; 9095 esac 9096 9097 # Use C for the default configuration in the libtool script 9098 9099 lt_save_CC="$CC" 9100 ac_ext=c 9101 ac_cpp='$CPP $CPPFLAGS' 9102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9104 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9105 9106 9107 # Source file extension for C test sources. 9108 ac_ext=c 9109 9110 # Object file extension for compiled C test sources. 9111 objext=o 9112 objext=$objext 9113 9114 # Code to be used in simple compile tests 9115 lt_simple_compile_test_code="int some_variable = 0;" 9116 9117 # Code to be used in simple link tests 9118 lt_simple_link_test_code='int main(){return(0);}' 9119 9120 9121 9122 9123 9124 9125 9126 # If no C compiler was specified, use CC. 9127 LTCC=${LTCC-"$CC"} 9128 9129 # If no C compiler flags were specified, use CFLAGS. 9130 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9131 9132 # Allow CC to be a program name with arguments. 9133 compiler=$CC 9134 9135 # Save the default compiler, since it gets overwritten when the other 9136 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9137 compiler_DEFAULT=$CC 9138 9139 # save warnings/boilerplate of simple test code 9140 ac_outfile=conftest.$ac_objext 9141 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9142 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9143 _lt_compiler_boilerplate=`cat conftest.err` 9144 $RM conftest* 9145 9146 ac_outfile=conftest.$ac_objext 9147 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9148 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9149 _lt_linker_boilerplate=`cat conftest.err` 9150 $RM -r conftest* 9151 9152 9153 ## CAVEAT EMPTOR: 9154 ## There is no encapsulation within the following macros, do not change 9155 ## the running order or otherwise move them around unless you know exactly 9156 ## what you are doing... 9157 if test -n "$compiler"; then 9158 9159 lt_prog_compiler_no_builtin_flag= 9160 9161 if test "$GCC" = yes; then 9162 case $cc_basename in 9163 nvcc*) 9164 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9165 *) 9166 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9167 esac 9168 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9170 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9171 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9172 $as_echo_n "(cached) " >&6 9173 else 9174 lt_cv_prog_compiler_rtti_exceptions=no 9175 ac_outfile=conftest.$ac_objext 9176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9177 lt_compiler_flag="-fno-rtti -fno-exceptions" 9178 # Insert the option either (1) after the last *FLAGS variable, or 9179 # (2) before a word containing "conftest.", or (3) at the end. 9180 # Note that $ac_compile itself does not contain backslashes and begins 9181 # with a dollar sign (not a hyphen), so the echo should work correctly. 9182 # The option is referenced via a variable to avoid confusing sed. 9183 lt_compile=`echo "$ac_compile" | $SED \ 9184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9186 -e 's:$: $lt_compiler_flag:'` 9187 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9188 (eval "$lt_compile" 2>conftest.err) 9189 ac_status=$? 9190 cat conftest.err >&5 9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9192 if (exit $ac_status) && test -s "$ac_outfile"; then 9193 # The compiler can only warn and ignore the option if not recognized 9194 # So say no if there are warnings other than the usual output. 9195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9196 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9197 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9198 lt_cv_prog_compiler_rtti_exceptions=yes 9199 fi 9200 fi 9201 $RM conftest* 9202 9203 fi 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9205 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9206 9207 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9208 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9209 else 9210 : 9211 fi 9212 9213 fi 9214 9215 9216 9217 9218 9219 9220 lt_prog_compiler_wl= 9221 lt_prog_compiler_pic= 9222 lt_prog_compiler_static= 9223 9224 9225 if test "$GCC" = yes; then 9226 lt_prog_compiler_wl='-Wl,' 9227 lt_prog_compiler_static='-static' 9228 9229 case $host_os in 9230 aix*) 9231 # All AIX code is PIC. 9232 if test "$host_cpu" = ia64; then 9233 # AIX 5 now supports IA64 processor 9234 lt_prog_compiler_static='-Bstatic' 9235 fi 9236 ;; 9237 9238 amigaos*) 9239 case $host_cpu in 9240 powerpc) 9241 # see comment about AmigaOS4 .so support 9242 lt_prog_compiler_pic='-fPIC' 9243 ;; 9244 m68k) 9245 # FIXME: we need at least 68020 code to build shared libraries, but 9246 # adding the `-m68020' flag to GCC prevents building anything better, 9247 # like `-m68040'. 9248 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9249 ;; 9250 esac 9251 ;; 9252 9253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9254 # PIC is the default for these OSes. 9255 ;; 9256 9257 mingw* | cygwin* | pw32* | os2* | cegcc*) 9258 # This hack is so that the source file can tell whether it is being 9259 # built for inclusion in a dll (and should export symbols for example). 9260 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9261 # (--disable-auto-import) libraries 9262 lt_prog_compiler_pic='-DDLL_EXPORT' 9263 ;; 9264 9265 darwin* | rhapsody*) 9266 # PIC is the default on this platform 9267 # Common symbols not allowed in MH_DYLIB files 9268 lt_prog_compiler_pic='-fno-common' 9269 ;; 9270 9271 haiku*) 9272 # PIC is the default for Haiku. 9273 # The "-static" flag exists, but is broken. 9274 lt_prog_compiler_static= 9275 ;; 9276 9277 hpux*) 9278 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9279 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9280 # sets the default TLS model and affects inlining. 9281 case $host_cpu in 9282 hppa*64*) 9283 # +Z the default 9284 ;; 9285 *) 9286 lt_prog_compiler_pic='-fPIC' 9287 ;; 9288 esac 9289 ;; 9290 9291 interix[3-9]*) 9292 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9293 # Instead, we relocate shared libraries at runtime. 9294 ;; 9295 9296 msdosdjgpp*) 9297 # Just because we use GCC doesn't mean we suddenly get shared libraries 9298 # on systems that don't support them. 9299 lt_prog_compiler_can_build_shared=no 9300 enable_shared=no 9301 ;; 9302 9303 *nto* | *qnx*) 9304 # QNX uses GNU C++, but need to define -shared option too, otherwise 9305 # it will coredump. 9306 lt_prog_compiler_pic='-fPIC -shared' 9307 ;; 9308 9309 sysv4*MP*) 9310 if test -d /usr/nec; then 9311 lt_prog_compiler_pic=-Kconform_pic 9312 fi 9313 ;; 9314 9315 *) 9316 lt_prog_compiler_pic='-fPIC' 9317 ;; 9318 esac 9319 9320 case $cc_basename in 9321 nvcc*) # Cuda Compiler Driver 2.2 9322 lt_prog_compiler_wl='-Xlinker ' 9323 if test -n "$lt_prog_compiler_pic"; then 9324 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9325 fi 9326 ;; 9327 esac 9328 else 9329 # PORTME Check for flag to pass linker flags through the system compiler. 9330 case $host_os in 9331 aix*) 9332 lt_prog_compiler_wl='-Wl,' 9333 if test "$host_cpu" = ia64; then 9334 # AIX 5 now supports IA64 processor 9335 lt_prog_compiler_static='-Bstatic' 9336 else 9337 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9338 fi 9339 ;; 9340 9341 mingw* | cygwin* | pw32* | os2* | cegcc*) 9342 # This hack is so that the source file can tell whether it is being 9343 # built for inclusion in a dll (and should export symbols for example). 9344 lt_prog_compiler_pic='-DDLL_EXPORT' 9345 ;; 9346 9347 hpux9* | hpux10* | hpux11*) 9348 lt_prog_compiler_wl='-Wl,' 9349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9350 # not for PA HP-UX. 9351 case $host_cpu in 9352 hppa*64*|ia64*) 9353 # +Z the default 9354 ;; 9355 *) 9356 lt_prog_compiler_pic='+Z' 9357 ;; 9358 esac 9359 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9360 lt_prog_compiler_static='${wl}-a ${wl}archive' 9361 ;; 9362 9363 irix5* | irix6* | nonstopux*) 9364 lt_prog_compiler_wl='-Wl,' 9365 # PIC (with -KPIC) is the default. 9366 lt_prog_compiler_static='-non_shared' 9367 ;; 9368 9369 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9370 case $cc_basename in 9371 # old Intel for x86_64 which still supported -KPIC. 9372 ecc*) 9373 lt_prog_compiler_wl='-Wl,' 9374 lt_prog_compiler_pic='-KPIC' 9375 lt_prog_compiler_static='-static' 9376 ;; 9377 # icc used to be incompatible with GCC. 9378 # ICC 10 doesn't accept -KPIC any more. 9379 icc* | ifort*) 9380 lt_prog_compiler_wl='-Wl,' 9381 lt_prog_compiler_pic='-fPIC' 9382 lt_prog_compiler_static='-static' 9383 ;; 9384 # Lahey Fortran 8.1. 9385 lf95*) 9386 lt_prog_compiler_wl='-Wl,' 9387 lt_prog_compiler_pic='--shared' 9388 lt_prog_compiler_static='--static' 9389 ;; 9390 nagfor*) 9391 # NAG Fortran compiler 9392 lt_prog_compiler_wl='-Wl,-Wl,,' 9393 lt_prog_compiler_pic='-PIC' 9394 lt_prog_compiler_static='-Bstatic' 9395 ;; 9396 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9397 # Portland Group compilers (*not* the Pentium gcc compiler, 9398 # which looks to be a dead project) 9399 lt_prog_compiler_wl='-Wl,' 9400 lt_prog_compiler_pic='-fpic' 9401 lt_prog_compiler_static='-Bstatic' 9402 ;; 9403 ccc*) 9404 lt_prog_compiler_wl='-Wl,' 9405 # All Alpha code is PIC. 9406 lt_prog_compiler_static='-non_shared' 9407 ;; 9408 xl* | bgxl* | bgf* | mpixl*) 9409 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9410 lt_prog_compiler_wl='-Wl,' 9411 lt_prog_compiler_pic='-qpic' 9412 lt_prog_compiler_static='-qstaticlink' 9413 ;; 9414 *) 9415 case `$CC -V 2>&1 | sed 5q` in 9416 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9417 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9418 lt_prog_compiler_pic='-KPIC' 9419 lt_prog_compiler_static='-Bstatic' 9420 lt_prog_compiler_wl='' 9421 ;; 9422 *Sun\ F* | *Sun*Fortran*) 9423 lt_prog_compiler_pic='-KPIC' 9424 lt_prog_compiler_static='-Bstatic' 9425 lt_prog_compiler_wl='-Qoption ld ' 9426 ;; 9427 *Sun\ C*) 9428 # Sun C 5.9 9429 lt_prog_compiler_pic='-KPIC' 9430 lt_prog_compiler_static='-Bstatic' 9431 lt_prog_compiler_wl='-Wl,' 9432 ;; 9433 *Intel*\ [CF]*Compiler*) 9434 lt_prog_compiler_wl='-Wl,' 9435 lt_prog_compiler_pic='-fPIC' 9436 lt_prog_compiler_static='-static' 9437 ;; 9438 *Portland\ Group*) 9439 lt_prog_compiler_wl='-Wl,' 9440 lt_prog_compiler_pic='-fpic' 9441 lt_prog_compiler_static='-Bstatic' 9442 ;; 9443 esac 9444 ;; 9445 esac 9446 ;; 9447 9448 newsos6) 9449 lt_prog_compiler_pic='-KPIC' 9450 lt_prog_compiler_static='-Bstatic' 9451 ;; 9452 9453 *nto* | *qnx*) 9454 # QNX uses GNU C++, but need to define -shared option too, otherwise 9455 # it will coredump. 9456 lt_prog_compiler_pic='-fPIC -shared' 9457 ;; 9458 9459 osf3* | osf4* | osf5*) 9460 lt_prog_compiler_wl='-Wl,' 9461 # All OSF/1 code is PIC. 9462 lt_prog_compiler_static='-non_shared' 9463 ;; 9464 9465 rdos*) 9466 lt_prog_compiler_static='-non_shared' 9467 ;; 9468 9469 solaris*) 9470 lt_prog_compiler_pic='-KPIC' 9471 lt_prog_compiler_static='-Bstatic' 9472 case $cc_basename in 9473 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9474 lt_prog_compiler_wl='-Qoption ld ';; 9475 *) 9476 lt_prog_compiler_wl='-Wl,';; 9477 esac 9478 ;; 9479 9480 sunos4*) 9481 lt_prog_compiler_wl='-Qoption ld ' 9482 lt_prog_compiler_pic='-PIC' 9483 lt_prog_compiler_static='-Bstatic' 9484 ;; 9485 9486 sysv4 | sysv4.2uw2* | sysv4.3*) 9487 lt_prog_compiler_wl='-Wl,' 9488 lt_prog_compiler_pic='-KPIC' 9489 lt_prog_compiler_static='-Bstatic' 9490 ;; 9491 9492 sysv4*MP*) 9493 if test -d /usr/nec ;then 9494 lt_prog_compiler_pic='-Kconform_pic' 9495 lt_prog_compiler_static='-Bstatic' 9496 fi 9497 ;; 9498 9499 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9500 lt_prog_compiler_wl='-Wl,' 9501 lt_prog_compiler_pic='-KPIC' 9502 lt_prog_compiler_static='-Bstatic' 9503 ;; 9504 9505 unicos*) 9506 lt_prog_compiler_wl='-Wl,' 9507 lt_prog_compiler_can_build_shared=no 9508 ;; 9509 9510 uts4*) 9511 lt_prog_compiler_pic='-pic' 9512 lt_prog_compiler_static='-Bstatic' 9513 ;; 9514 9515 *) 9516 lt_prog_compiler_can_build_shared=no 9517 ;; 9518 esac 9519 fi 9520 9521 case $host_os in 9522 # For platforms which do not support PIC, -DPIC is meaningless: 9523 *djgpp*) 9524 lt_prog_compiler_pic= 3933 9525 ;; 3934 no:yes:* ) 3935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3936 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3938 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3940 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3942 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3944 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3946 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3947 ( cat <<\_ASBOX 3948 ## --------------------------------- ## 3949 ## Report this to BUG-REPORT-ADDRESS ## 3950 ## --------------------------------- ## 3951 _ASBOX 3952 ) | sed "s/^/$as_me: WARNING: /" >&2 9526 *) 9527 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 3953 9528 ;; 3954 9529 esac 3955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3956 $as_echo_n "checking for $ac_header... " >&6; } 3957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9530 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9532 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9533 if ${lt_cv_prog_compiler_pic+:} false; then : 3958 9534 $as_echo_n "(cached) " >&6 3959 9535 else 3960 eval "$as_ac_Header=\$ac_header_preproc" 3961 fi 3962 ac_res=`eval 'as_val=${'$as_ac_Header'} 3963 $as_echo "$as_val"'` 3964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3965 $as_echo "$ac_res" >&6; } 3966 3967 fi 3968 as_val=`eval 'as_val=${'$as_ac_Header'} 3969 $as_echo "$as_val"'` 3970 if test "x$as_val" = x""yes; then 3971 cat >>confdefs.h <<_ACEOF 3972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9536 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9537 fi 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9539 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 9540 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9541 9542 # 9543 # Check to make sure the PIC flag actually works. 9544 # 9545 if test -n "$lt_prog_compiler_pic"; then 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9547 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9548 if ${lt_cv_prog_compiler_pic_works+:} false; then : 9549 $as_echo_n "(cached) " >&6 9550 else 9551 lt_cv_prog_compiler_pic_works=no 9552 ac_outfile=conftest.$ac_objext 9553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9554 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9555 # Insert the option either (1) after the last *FLAGS variable, or 9556 # (2) before a word containing "conftest.", or (3) at the end. 9557 # Note that $ac_compile itself does not contain backslashes and begins 9558 # with a dollar sign (not a hyphen), so the echo should work correctly. 9559 # The option is referenced via a variable to avoid confusing sed. 9560 lt_compile=`echo "$ac_compile" | $SED \ 9561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9563 -e 's:$: $lt_compiler_flag:'` 9564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9565 (eval "$lt_compile" 2>conftest.err) 9566 ac_status=$? 9567 cat conftest.err >&5 9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9569 if (exit $ac_status) && test -s "$ac_outfile"; then 9570 # The compiler can only warn and ignore the option if not recognized 9571 # So say no if there are warnings other than the usual output. 9572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9575 lt_cv_prog_compiler_pic_works=yes 9576 fi 9577 fi 9578 $RM conftest* 9579 9580 fi 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9582 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9583 9584 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9585 case $lt_prog_compiler_pic in 9586 "" | " "*) ;; 9587 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9588 esac 9589 else 9590 lt_prog_compiler_pic= 9591 lt_prog_compiler_can_build_shared=no 9592 fi 9593 9594 fi 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 # 9607 # Check to make sure the static flag actually works. 9608 # 9609 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9611 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9612 if ${lt_cv_prog_compiler_static_works+:} false; then : 9613 $as_echo_n "(cached) " >&6 9614 else 9615 lt_cv_prog_compiler_static_works=no 9616 save_LDFLAGS="$LDFLAGS" 9617 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9618 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9619 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9620 # The linker can only warn and ignore the option if not recognized 9621 # So say no if there are warnings 9622 if test -s conftest.err; then 9623 # Append any errors to the config.log. 9624 cat conftest.err 1>&5 9625 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9627 if diff conftest.exp conftest.er2 >/dev/null; then 9628 lt_cv_prog_compiler_static_works=yes 9629 fi 9630 else 9631 lt_cv_prog_compiler_static_works=yes 9632 fi 9633 fi 9634 $RM -r conftest* 9635 LDFLAGS="$save_LDFLAGS" 9636 9637 fi 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9639 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9640 9641 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9642 : 9643 else 9644 lt_prog_compiler_static= 9645 fi 9646 9647 9648 9649 9650 9651 9652 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9654 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9655 if ${lt_cv_prog_compiler_c_o+:} false; then : 9656 $as_echo_n "(cached) " >&6 9657 else 9658 lt_cv_prog_compiler_c_o=no 9659 $RM -r conftest 2>/dev/null 9660 mkdir conftest 9661 cd conftest 9662 mkdir out 9663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9664 9665 lt_compiler_flag="-o out/conftest2.$ac_objext" 9666 # Insert the option either (1) after the last *FLAGS variable, or 9667 # (2) before a word containing "conftest.", or (3) at the end. 9668 # Note that $ac_compile itself does not contain backslashes and begins 9669 # with a dollar sign (not a hyphen), so the echo should work correctly. 9670 lt_compile=`echo "$ac_compile" | $SED \ 9671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9673 -e 's:$: $lt_compiler_flag:'` 9674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9675 (eval "$lt_compile" 2>out/conftest.err) 9676 ac_status=$? 9677 cat out/conftest.err >&5 9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9679 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9680 then 9681 # The compiler can only warn and ignore the option if not recognized 9682 # So say no if there are warnings 9683 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9686 lt_cv_prog_compiler_c_o=yes 9687 fi 9688 fi 9689 chmod u+w . 2>&5 9690 $RM conftest* 9691 # SGI C++ compiler will create directory out/ii_files/ for 9692 # template instantiation 9693 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9694 $RM out/* && rmdir out 9695 cd .. 9696 $RM -r conftest 9697 $RM conftest* 9698 9699 fi 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9701 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9702 9703 9704 9705 9706 9707 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9709 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9710 if ${lt_cv_prog_compiler_c_o+:} false; then : 9711 $as_echo_n "(cached) " >&6 9712 else 9713 lt_cv_prog_compiler_c_o=no 9714 $RM -r conftest 2>/dev/null 9715 mkdir conftest 9716 cd conftest 9717 mkdir out 9718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9719 9720 lt_compiler_flag="-o out/conftest2.$ac_objext" 9721 # Insert the option either (1) after the last *FLAGS variable, or 9722 # (2) before a word containing "conftest.", or (3) at the end. 9723 # Note that $ac_compile itself does not contain backslashes and begins 9724 # with a dollar sign (not a hyphen), so the echo should work correctly. 9725 lt_compile=`echo "$ac_compile" | $SED \ 9726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9728 -e 's:$: $lt_compiler_flag:'` 9729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9730 (eval "$lt_compile" 2>out/conftest.err) 9731 ac_status=$? 9732 cat out/conftest.err >&5 9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9734 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9735 then 9736 # The compiler can only warn and ignore the option if not recognized 9737 # So say no if there are warnings 9738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9739 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9740 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9741 lt_cv_prog_compiler_c_o=yes 9742 fi 9743 fi 9744 chmod u+w . 2>&5 9745 $RM conftest* 9746 # SGI C++ compiler will create directory out/ii_files/ for 9747 # template instantiation 9748 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9749 $RM out/* && rmdir out 9750 cd .. 9751 $RM -r conftest 9752 $RM conftest* 9753 9754 fi 9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9756 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9757 9758 9759 9760 9761 hard_links="nottested" 9762 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9763 # do not overwrite the value of need_locks provided by the user 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9765 $as_echo_n "checking if we can lock with hard links... " >&6; } 9766 hard_links=yes 9767 $RM conftest* 9768 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9769 touch conftest.a 9770 ln conftest.a conftest.b 2>&5 || hard_links=no 9771 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9773 $as_echo "$hard_links" >&6; } 9774 if test "$hard_links" = no; then 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9776 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9777 need_locks=warn 9778 fi 9779 else 9780 need_locks=no 9781 fi 9782 9783 9784 9785 9786 9787 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9789 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9790 9791 runpath_var= 9792 allow_undefined_flag= 9793 always_export_symbols=no 9794 archive_cmds= 9795 archive_expsym_cmds= 9796 compiler_needs_object=no 9797 enable_shared_with_static_runtimes=no 9798 export_dynamic_flag_spec= 9799 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9800 hardcode_automatic=no 9801 hardcode_direct=no 9802 hardcode_direct_absolute=no 9803 hardcode_libdir_flag_spec= 9804 hardcode_libdir_separator= 9805 hardcode_minus_L=no 9806 hardcode_shlibpath_var=unsupported 9807 inherit_rpath=no 9808 link_all_deplibs=unknown 9809 module_cmds= 9810 module_expsym_cmds= 9811 old_archive_from_new_cmds= 9812 old_archive_from_expsyms_cmds= 9813 thread_safe_flag_spec= 9814 whole_archive_flag_spec= 9815 # include_expsyms should be a list of space-separated symbols to be *always* 9816 # included in the symbol list 9817 include_expsyms= 9818 # exclude_expsyms can be an extended regexp of symbols to exclude 9819 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9820 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9821 # as well as any symbol that contains `d'. 9822 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9824 # platforms (ab)use it in PIC code, but their linkers get confused if 9825 # the symbol is explicitly referenced. Since portable code cannot 9826 # rely on this symbol name, it's probably fine to never include it in 9827 # preloaded symbol tables. 9828 # Exclude shared library initialization/finalization symbols. 9829 extract_expsyms_cmds= 9830 9831 case $host_os in 9832 cygwin* | mingw* | pw32* | cegcc*) 9833 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9834 # When not using gcc, we currently assume that we are using 9835 # Microsoft Visual C++. 9836 if test "$GCC" != yes; then 9837 with_gnu_ld=no 9838 fi 9839 ;; 9840 interix*) 9841 # we just hope/assume this is gcc and not c89 (= MSVC++) 9842 with_gnu_ld=yes 9843 ;; 9844 openbsd*) 9845 with_gnu_ld=no 9846 ;; 9847 linux* | k*bsd*-gnu | gnu*) 9848 link_all_deplibs=no 9849 ;; 9850 esac 9851 9852 ld_shlibs=yes 9853 9854 # On some targets, GNU ld is compatible enough with the native linker 9855 # that we're better off using the native interface for both. 9856 lt_use_gnu_ld_interface=no 9857 if test "$with_gnu_ld" = yes; then 9858 case $host_os in 9859 aix*) 9860 # The AIX port of GNU ld has always aspired to compatibility 9861 # with the native linker. However, as the warning in the GNU ld 9862 # block says, versions before 2.19.5* couldn't really create working 9863 # shared libraries, regardless of the interface used. 9864 case `$LD -v 2>&1` in 9865 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9866 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9867 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9868 *) 9869 lt_use_gnu_ld_interface=yes 9870 ;; 9871 esac 9872 ;; 9873 *) 9874 lt_use_gnu_ld_interface=yes 9875 ;; 9876 esac 9877 fi 9878 9879 if test "$lt_use_gnu_ld_interface" = yes; then 9880 # If archive_cmds runs LD, not CC, wlarc should be empty 9881 wlarc='${wl}' 9882 9883 # Set some defaults for GNU ld with shared library support. These 9884 # are reset later if shared libraries are not supported. Putting them 9885 # here allows them to be overridden if necessary. 9886 runpath_var=LD_RUN_PATH 9887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9888 export_dynamic_flag_spec='${wl}--export-dynamic' 9889 # ancient GNU ld didn't support --whole-archive et. al. 9890 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9891 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9892 else 9893 whole_archive_flag_spec= 9894 fi 9895 supports_anon_versioning=no 9896 case `$LD -v 2>&1` in 9897 *GNU\ gold*) supports_anon_versioning=yes ;; 9898 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9899 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9900 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9901 *\ 2.11.*) ;; # other 2.11 versions 9902 *) supports_anon_versioning=yes ;; 9903 esac 9904 9905 # See if GNU ld supports shared libraries. 9906 case $host_os in 9907 aix[3-9]*) 9908 # On AIX/PPC, the GNU linker is very broken 9909 if test "$host_cpu" != ia64; then 9910 ld_shlibs=no 9911 cat <<_LT_EOF 1>&2 9912 9913 *** Warning: the GNU linker, at least up to release 2.19, is reported 9914 *** to be unable to reliably create shared libraries on AIX. 9915 *** Therefore, libtool is disabling shared libraries support. If you 9916 *** really care for shared libraries, you may want to install binutils 9917 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9918 *** You will then need to restart the configuration process. 9919 9920 _LT_EOF 9921 fi 9922 ;; 9923 9924 amigaos*) 9925 case $host_cpu in 9926 powerpc) 9927 # see comment about AmigaOS4 .so support 9928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9929 archive_expsym_cmds='' 9930 ;; 9931 m68k) 9932 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9933 hardcode_libdir_flag_spec='-L$libdir' 9934 hardcode_minus_L=yes 9935 ;; 9936 esac 9937 ;; 9938 9939 beos*) 9940 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9941 allow_undefined_flag=unsupported 9942 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9943 # support --undefined. This deserves some investigation. FIXME 9944 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9945 else 9946 ld_shlibs=no 9947 fi 9948 ;; 9949 9950 cygwin* | mingw* | pw32* | cegcc*) 9951 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9952 # as there is no search path for DLLs. 9953 hardcode_libdir_flag_spec='-L$libdir' 9954 export_dynamic_flag_spec='${wl}--export-all-symbols' 9955 allow_undefined_flag=unsupported 9956 always_export_symbols=no 9957 enable_shared_with_static_runtimes=yes 9958 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9959 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9960 9961 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9963 # If the export-symbols file already is a .def file (1st line 9964 # is EXPORTS), use it as is; otherwise, prepend... 9965 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9966 cp $export_symbols $output_objdir/$soname.def; 9967 else 9968 echo EXPORTS > $output_objdir/$soname.def; 9969 cat $export_symbols >> $output_objdir/$soname.def; 9970 fi~ 9971 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9972 else 9973 ld_shlibs=no 9974 fi 9975 ;; 9976 9977 haiku*) 9978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9979 link_all_deplibs=yes 9980 ;; 9981 9982 interix[3-9]*) 9983 hardcode_direct=no 9984 hardcode_shlibpath_var=no 9985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9986 export_dynamic_flag_spec='${wl}-E' 9987 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9988 # Instead, shared libraries are loaded at an image base (0x10000000 by 9989 # default) and relocated if they conflict, which is a slow very memory 9990 # consuming and fragmenting process. To avoid this, we pick a random, 9991 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9992 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9993 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9994 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9995 ;; 9996 9997 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9998 tmp_diet=no 9999 if test "$host_os" = linux-dietlibc; then 10000 case $cc_basename in 10001 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10002 esac 10003 fi 10004 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10005 && test "$tmp_diet" = no 10006 then 10007 tmp_addflag=' $pic_flag' 10008 tmp_sharedflag='-shared' 10009 case $cc_basename,$host_cpu in 10010 pgcc*) # Portland Group C compiler 10011 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 10012 tmp_addflag=' $pic_flag' 10013 ;; 10014 pgf77* | pgf90* | pgf95* | pgfortran*) 10015 # Portland Group f77 and f90 compilers 10016 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 10017 tmp_addflag=' $pic_flag -Mnomain' ;; 10018 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10019 tmp_addflag=' -i_dynamic' ;; 10020 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10021 tmp_addflag=' -i_dynamic -nofor_main' ;; 10022 ifc* | ifort*) # Intel Fortran compiler 10023 tmp_addflag=' -nofor_main' ;; 10024 lf95*) # Lahey Fortran 8.1 10025 whole_archive_flag_spec= 10026 tmp_sharedflag='--shared' ;; 10027 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10028 tmp_sharedflag='-qmkshrobj' 10029 tmp_addflag= ;; 10030 nvcc*) # Cuda Compiler Driver 2.2 10031 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 10032 compiler_needs_object=yes 10033 ;; 10034 esac 10035 case `$CC -V 2>&1 | sed 5q` in 10036 *Sun\ C*) # Sun C 5.9 10037 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 10038 compiler_needs_object=yes 10039 tmp_sharedflag='-G' ;; 10040 *Sun\ F*) # Sun Fortran 8.3 10041 tmp_sharedflag='-G' ;; 10042 esac 10043 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10044 10045 if test "x$supports_anon_versioning" = xyes; then 10046 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10048 echo "local: *; };" >> $output_objdir/$libname.ver~ 10049 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10050 fi 10051 10052 case $cc_basename in 10053 xlf* | bgf* | bgxlf* | mpixlf*) 10054 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10055 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10057 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10058 if test "x$supports_anon_versioning" = xyes; then 10059 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10061 echo "local: *; };" >> $output_objdir/$libname.ver~ 10062 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10063 fi 10064 ;; 10065 esac 10066 else 10067 ld_shlibs=no 10068 fi 10069 ;; 10070 10071 netbsd* | netbsdelf*-gnu) 10072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10073 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10074 wlarc= 10075 else 10076 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10077 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10078 fi 10079 ;; 10080 10081 solaris*) 10082 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10083 ld_shlibs=no 10084 cat <<_LT_EOF 1>&2 10085 10086 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10087 *** create shared libraries on Solaris systems. Therefore, libtool 10088 *** is disabling shared libraries support. We urge you to upgrade GNU 10089 *** binutils to release 2.9.1 or newer. Another option is to modify 10090 *** your PATH or compiler configuration so that the native linker is 10091 *** used, and then restart. 10092 10093 _LT_EOF 10094 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10096 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10097 else 10098 ld_shlibs=no 10099 fi 10100 ;; 10101 10102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10103 case `$LD -v 2>&1` in 10104 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10105 ld_shlibs=no 10106 cat <<_LT_EOF 1>&2 10107 10108 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10109 *** reliably create shared libraries on SCO systems. Therefore, libtool 10110 *** is disabling shared libraries support. We urge you to upgrade GNU 10111 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10112 *** your PATH or compiler configuration so that the native linker is 10113 *** used, and then restart. 10114 10115 _LT_EOF 10116 ;; 10117 *) 10118 # For security reasons, it is highly recommended that you always 10119 # use absolute paths for naming shared libraries, and exclude the 10120 # DT_RUNPATH tag from executables and libraries. But doing so 10121 # requires that you compile everything twice, which is a pain. 10122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10125 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10126 else 10127 ld_shlibs=no 10128 fi 10129 ;; 10130 esac 10131 ;; 10132 10133 sunos4*) 10134 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10135 wlarc= 10136 hardcode_direct=yes 10137 hardcode_shlibpath_var=no 10138 ;; 10139 10140 *) 10141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10144 else 10145 ld_shlibs=no 10146 fi 10147 ;; 10148 esac 10149 10150 if test "$ld_shlibs" = no; then 10151 runpath_var= 10152 hardcode_libdir_flag_spec= 10153 export_dynamic_flag_spec= 10154 whole_archive_flag_spec= 10155 fi 10156 else 10157 # PORTME fill in a description of your system's linker (not GNU ld) 10158 case $host_os in 10159 aix3*) 10160 allow_undefined_flag=unsupported 10161 always_export_symbols=yes 10162 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 10163 # Note: this linker hardcodes the directories in LIBPATH if there 10164 # are no directories specified by -L. 10165 hardcode_minus_L=yes 10166 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10167 # Neither direct hardcoding nor static linking is supported with a 10168 # broken collect2. 10169 hardcode_direct=unsupported 10170 fi 10171 ;; 10172 10173 aix[4-9]*) 10174 if test "$host_cpu" = ia64; then 10175 # On IA64, the linker does run time linking by default, so we don't 10176 # have to do anything special. 10177 aix_use_runtimelinking=no 10178 exp_sym_flag='-Bexport' 10179 no_entry_flag="" 10180 else 10181 # If we're using GNU nm, then we don't want the "-C" option. 10182 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10183 # Also, AIX nm treats weak defined symbols like other global 10184 # defined symbols, whereas GNU nm marks them as "W". 10185 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10186 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10187 else 10188 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10189 fi 10190 aix_use_runtimelinking=no 10191 10192 # Test if we are trying to use run time linking or normal 10193 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10194 # need to do runtime linking. 10195 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10196 for ld_flag in $LDFLAGS; do 10197 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10198 aix_use_runtimelinking=yes 10199 break 10200 fi 10201 done 10202 ;; 10203 esac 10204 10205 exp_sym_flag='-bexport' 10206 no_entry_flag='-bnoentry' 10207 fi 10208 10209 # When large executables or shared objects are built, AIX ld can 10210 # have problems creating the table of contents. If linking a library 10211 # or program results in "error TOC overflow" add -mminimal-toc to 10212 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10213 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10214 10215 archive_cmds='' 10216 hardcode_direct=yes 10217 hardcode_direct_absolute=yes 10218 hardcode_libdir_separator=':' 10219 link_all_deplibs=yes 10220 file_list_spec='${wl}-f,' 10221 10222 if test "$GCC" = yes; then 10223 case $host_os in aix4.[012]|aix4.[012].*) 10224 # We only want to do this on AIX 4.2 and lower, the check 10225 # below for broken collect2 doesn't work under 4.3+ 10226 collect2name=`${CC} -print-prog-name=collect2` 10227 if test -f "$collect2name" && 10228 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10229 then 10230 # We have reworked collect2 10231 : 10232 else 10233 # We have old collect2 10234 hardcode_direct=unsupported 10235 # It fails to find uninstalled libraries when the uninstalled 10236 # path is not listed in the libpath. Setting hardcode_minus_L 10237 # to unsupported forces relinking 10238 hardcode_minus_L=yes 10239 hardcode_libdir_flag_spec='-L$libdir' 10240 hardcode_libdir_separator= 10241 fi 10242 ;; 10243 esac 10244 shared_flag='-shared' 10245 if test "$aix_use_runtimelinking" = yes; then 10246 shared_flag="$shared_flag "'${wl}-G' 10247 fi 10248 link_all_deplibs=no 10249 else 10250 # not using gcc 10251 if test "$host_cpu" = ia64; then 10252 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10253 # chokes on -Wl,-G. The following line is correct: 10254 shared_flag='-G' 10255 else 10256 if test "$aix_use_runtimelinking" = yes; then 10257 shared_flag='${wl}-G' 10258 else 10259 shared_flag='${wl}-bM:SRE' 10260 fi 10261 fi 10262 fi 10263 10264 export_dynamic_flag_spec='${wl}-bexpall' 10265 # It seems that -bexpall does not export symbols beginning with 10266 # underscore (_), so it is better to generate a list of symbols to export. 10267 always_export_symbols=yes 10268 if test "$aix_use_runtimelinking" = yes; then 10269 # Warning - without using the other runtime loading flags (-brtl), 10270 # -berok will link without error, but may produce a broken library. 10271 allow_undefined_flag='-berok' 10272 # Determine the default libpath from the value encoded in an 10273 # empty executable. 10274 if test "${lt_cv_aix_libpath+set}" = set; then 10275 aix_libpath=$lt_cv_aix_libpath 10276 else 10277 if ${lt_cv_aix_libpath_+:} false; then : 10278 $as_echo_n "(cached) " >&6 10279 else 10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10281 /* end confdefs.h. */ 10282 10283 int 10284 main () 10285 { 10286 10287 ; 10288 return 0; 10289 } 3973 10290 _ACEOF 3974 3975 fi 10291 if ac_fn_c_try_link "$LINENO"; then : 10292 10293 lt_aix_libpath_sed=' 10294 /Import File Strings/,/^$/ { 10295 /^0/ { 10296 s/^0 *\([^ ]*\) *$/\1/ 10297 p 10298 } 10299 }' 10300 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10301 # Check for a 64-bit object if we didn't find anything. 10302 if test -z "$lt_cv_aix_libpath_"; then 10303 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10304 fi 10305 fi 10306 rm -f core conftest.err conftest.$ac_objext \ 10307 conftest$ac_exeext conftest.$ac_ext 10308 if test -z "$lt_cv_aix_libpath_"; then 10309 lt_cv_aix_libpath_="/usr/lib:/lib" 10310 fi 10311 10312 fi 10313 10314 aix_libpath=$lt_cv_aix_libpath_ 10315 fi 10316 10317 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10318 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10319 else 10320 if test "$host_cpu" = ia64; then 10321 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10322 allow_undefined_flag="-z nodefs" 10323 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10324 else 10325 # Determine the default libpath from the value encoded in an 10326 # empty executable. 10327 if test "${lt_cv_aix_libpath+set}" = set; then 10328 aix_libpath=$lt_cv_aix_libpath 10329 else 10330 if ${lt_cv_aix_libpath_+:} false; then : 10331 $as_echo_n "(cached) " >&6 10332 else 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334 /* end confdefs.h. */ 10335 10336 int 10337 main () 10338 { 10339 10340 ; 10341 return 0; 10342 } 10343 _ACEOF 10344 if ac_fn_c_try_link "$LINENO"; then : 10345 10346 lt_aix_libpath_sed=' 10347 /Import File Strings/,/^$/ { 10348 /^0/ { 10349 s/^0 *\([^ ]*\) *$/\1/ 10350 p 10351 } 10352 }' 10353 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10354 # Check for a 64-bit object if we didn't find anything. 10355 if test -z "$lt_cv_aix_libpath_"; then 10356 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10357 fi 10358 fi 10359 rm -f core conftest.err conftest.$ac_objext \ 10360 conftest$ac_exeext conftest.$ac_ext 10361 if test -z "$lt_cv_aix_libpath_"; then 10362 lt_cv_aix_libpath_="/usr/lib:/lib" 10363 fi 10364 10365 fi 10366 10367 aix_libpath=$lt_cv_aix_libpath_ 10368 fi 10369 10370 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10371 # Warning - without using the other run time loading flags, 10372 # -berok will link without error, but may produce a broken library. 10373 no_undefined_flag=' ${wl}-bernotok' 10374 allow_undefined_flag=' ${wl}-berok' 10375 if test "$with_gnu_ld" = yes; then 10376 # We only use this code for GNU lds that support --whole-archive. 10377 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10378 else 10379 # Exported symbols can be pulled into shared objects from archives 10380 whole_archive_flag_spec='$convenience' 10381 fi 10382 archive_cmds_need_lc=yes 10383 # This is similar to how AIX traditionally builds its shared libraries. 10384 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10385 fi 10386 fi 10387 ;; 10388 10389 amigaos*) 10390 case $host_cpu in 10391 powerpc) 10392 # see comment about AmigaOS4 .so support 10393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10394 archive_expsym_cmds='' 10395 ;; 10396 m68k) 10397 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10398 hardcode_libdir_flag_spec='-L$libdir' 10399 hardcode_minus_L=yes 10400 ;; 10401 esac 10402 ;; 10403 10404 bsdi[45]*) 10405 export_dynamic_flag_spec=-rdynamic 10406 ;; 10407 10408 cygwin* | mingw* | pw32* | cegcc*) 10409 # When not using gcc, we currently assume that we are using 10410 # Microsoft Visual C++. 10411 # hardcode_libdir_flag_spec is actually meaningless, as there is 10412 # no search path for DLLs. 10413 case $cc_basename in 10414 cl*) 10415 # Native MSVC 10416 hardcode_libdir_flag_spec=' ' 10417 allow_undefined_flag=unsupported 10418 always_export_symbols=yes 10419 file_list_spec='@' 10420 # Tell ltmain to make .lib files, not .a files. 10421 libext=lib 10422 # Tell ltmain to make .dll files, not .so files. 10423 shrext_cmds=".dll" 10424 # FIXME: Setting linknames here is a bad hack. 10425 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10426 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10427 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10428 else 10429 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10430 fi~ 10431 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10432 linknames=' 10433 # The linker will not automatically build a static lib if we build a DLL. 10434 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10435 enable_shared_with_static_runtimes=yes 10436 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10437 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10438 # Don't use ranlib 10439 old_postinstall_cmds='chmod 644 $oldlib' 10440 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10441 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10442 case $lt_outputfile in 10443 *.exe|*.EXE) ;; 10444 *) 10445 lt_outputfile="$lt_outputfile.exe" 10446 lt_tool_outputfile="$lt_tool_outputfile.exe" 10447 ;; 10448 esac~ 10449 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10450 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10451 $RM "$lt_outputfile.manifest"; 10452 fi' 10453 ;; 10454 *) 10455 # Assume MSVC wrapper 10456 hardcode_libdir_flag_spec=' ' 10457 allow_undefined_flag=unsupported 10458 # Tell ltmain to make .lib files, not .a files. 10459 libext=lib 10460 # Tell ltmain to make .dll files, not .so files. 10461 shrext_cmds=".dll" 10462 # FIXME: Setting linknames here is a bad hack. 10463 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10464 # The linker will automatically build a .lib file if we build a DLL. 10465 old_archive_from_new_cmds='true' 10466 # FIXME: Should let the user specify the lib program. 10467 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10468 enable_shared_with_static_runtimes=yes 10469 ;; 10470 esac 10471 ;; 10472 10473 darwin* | rhapsody*) 10474 10475 10476 archive_cmds_need_lc=no 10477 hardcode_direct=no 10478 hardcode_automatic=yes 10479 hardcode_shlibpath_var=unsupported 10480 if test "$lt_cv_ld_force_load" = "yes"; then 10481 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10482 10483 else 10484 whole_archive_flag_spec='' 10485 fi 10486 link_all_deplibs=yes 10487 allow_undefined_flag="$_lt_dar_allow_undefined" 10488 case $cc_basename in 10489 ifort*) _lt_dar_can_shared=yes ;; 10490 *) _lt_dar_can_shared=$GCC ;; 10491 esac 10492 if test "$_lt_dar_can_shared" = "yes"; then 10493 output_verbose_link_cmd=func_echo_all 10494 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10495 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10496 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 10497 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 10498 10499 else 10500 ld_shlibs=no 10501 fi 10502 10503 ;; 10504 10505 dgux*) 10506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10507 hardcode_libdir_flag_spec='-L$libdir' 10508 hardcode_shlibpath_var=no 10509 ;; 10510 10511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10512 # support. Future versions do this automatically, but an explicit c++rt0.o 10513 # does not break anything, and helps significantly (at the cost of a little 10514 # extra space). 10515 freebsd2.2*) 10516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10517 hardcode_libdir_flag_spec='-R$libdir' 10518 hardcode_direct=yes 10519 hardcode_shlibpath_var=no 10520 ;; 10521 10522 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10523 freebsd2.*) 10524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10525 hardcode_direct=yes 10526 hardcode_minus_L=yes 10527 hardcode_shlibpath_var=no 10528 ;; 10529 10530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10531 freebsd* | dragonfly*) 10532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10533 hardcode_libdir_flag_spec='-R$libdir' 10534 hardcode_direct=yes 10535 hardcode_shlibpath_var=no 10536 ;; 10537 10538 hpux9*) 10539 if test "$GCC" = yes; then 10540 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10541 else 10542 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10543 fi 10544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10545 hardcode_libdir_separator=: 10546 hardcode_direct=yes 10547 10548 # hardcode_minus_L: Not really in the search PATH, 10549 # but as the default location of the library. 10550 hardcode_minus_L=yes 10551 export_dynamic_flag_spec='${wl}-E' 10552 ;; 10553 10554 hpux10*) 10555 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10556 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10557 else 10558 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10559 fi 10560 if test "$with_gnu_ld" = no; then 10561 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10562 hardcode_libdir_separator=: 10563 hardcode_direct=yes 10564 hardcode_direct_absolute=yes 10565 export_dynamic_flag_spec='${wl}-E' 10566 # hardcode_minus_L: Not really in the search PATH, 10567 # but as the default location of the library. 10568 hardcode_minus_L=yes 10569 fi 10570 ;; 10571 10572 hpux11*) 10573 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10574 case $host_cpu in 10575 hppa*64*) 10576 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10577 ;; 10578 ia64*) 10579 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10580 ;; 10581 *) 10582 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10583 ;; 10584 esac 10585 else 10586 case $host_cpu in 10587 hppa*64*) 10588 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10589 ;; 10590 ia64*) 10591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10592 ;; 10593 *) 10594 10595 # Older versions of the 11.00 compiler do not understand -b yet 10596 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10598 $as_echo_n "checking if $CC understands -b... " >&6; } 10599 if ${lt_cv_prog_compiler__b+:} false; then : 10600 $as_echo_n "(cached) " >&6 10601 else 10602 lt_cv_prog_compiler__b=no 10603 save_LDFLAGS="$LDFLAGS" 10604 LDFLAGS="$LDFLAGS -b" 10605 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10606 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10607 # The linker can only warn and ignore the option if not recognized 10608 # So say no if there are warnings 10609 if test -s conftest.err; then 10610 # Append any errors to the config.log. 10611 cat conftest.err 1>&5 10612 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10614 if diff conftest.exp conftest.er2 >/dev/null; then 10615 lt_cv_prog_compiler__b=yes 10616 fi 10617 else 10618 lt_cv_prog_compiler__b=yes 10619 fi 10620 fi 10621 $RM -r conftest* 10622 LDFLAGS="$save_LDFLAGS" 10623 10624 fi 10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10626 $as_echo "$lt_cv_prog_compiler__b" >&6; } 10627 10628 if test x"$lt_cv_prog_compiler__b" = xyes; then 10629 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10630 else 10631 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10632 fi 10633 10634 ;; 10635 esac 10636 fi 10637 if test "$with_gnu_ld" = no; then 10638 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10639 hardcode_libdir_separator=: 10640 10641 case $host_cpu in 10642 hppa*64*|ia64*) 10643 hardcode_direct=no 10644 hardcode_shlibpath_var=no 10645 ;; 10646 *) 10647 hardcode_direct=yes 10648 hardcode_direct_absolute=yes 10649 export_dynamic_flag_spec='${wl}-E' 10650 10651 # hardcode_minus_L: Not really in the search PATH, 10652 # but as the default location of the library. 10653 hardcode_minus_L=yes 10654 ;; 10655 esac 10656 fi 10657 ;; 10658 10659 irix5* | irix6* | nonstopux*) 10660 if test "$GCC" = yes; then 10661 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10662 # Try to use the -exported_symbol ld option, if it does not 10663 # work, assume that -exports_file does not work either and 10664 # implicitly export all symbols. 10665 # This should be the same for all languages, so no per-tag cache variable. 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10667 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10668 if ${lt_cv_irix_exported_symbol+:} false; then : 10669 $as_echo_n "(cached) " >&6 10670 else 10671 save_LDFLAGS="$LDFLAGS" 10672 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10674 /* end confdefs.h. */ 10675 int foo (void) { return 0; } 10676 _ACEOF 10677 if ac_fn_c_try_link "$LINENO"; then : 10678 lt_cv_irix_exported_symbol=yes 10679 else 10680 lt_cv_irix_exported_symbol=no 10681 fi 10682 rm -f core conftest.err conftest.$ac_objext \ 10683 conftest$ac_exeext conftest.$ac_ext 10684 LDFLAGS="$save_LDFLAGS" 10685 fi 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10687 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 10688 if test "$lt_cv_irix_exported_symbol" = yes; then 10689 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10690 fi 10691 else 10692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10693 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10694 fi 10695 archive_cmds_need_lc='no' 10696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10697 hardcode_libdir_separator=: 10698 inherit_rpath=yes 10699 link_all_deplibs=yes 10700 ;; 10701 10702 netbsd* | netbsdelf*-gnu) 10703 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10705 else 10706 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10707 fi 10708 hardcode_libdir_flag_spec='-R$libdir' 10709 hardcode_direct=yes 10710 hardcode_shlibpath_var=no 10711 ;; 10712 10713 newsos6) 10714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10715 hardcode_direct=yes 10716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10717 hardcode_libdir_separator=: 10718 hardcode_shlibpath_var=no 10719 ;; 10720 10721 *nto* | *qnx*) 10722 ;; 10723 10724 openbsd*) 10725 if test -f /usr/libexec/ld.so; then 10726 hardcode_direct=yes 10727 hardcode_shlibpath_var=no 10728 hardcode_direct_absolute=yes 10729 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10730 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10731 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10732 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10733 export_dynamic_flag_spec='${wl}-E' 10734 else 10735 case $host_os in 10736 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10738 hardcode_libdir_flag_spec='-R$libdir' 10739 ;; 10740 *) 10741 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10742 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10743 ;; 10744 esac 10745 fi 10746 else 10747 ld_shlibs=no 10748 fi 10749 ;; 10750 10751 os2*) 10752 hardcode_libdir_flag_spec='-L$libdir' 10753 hardcode_minus_L=yes 10754 allow_undefined_flag=unsupported 10755 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10756 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10757 ;; 10758 10759 osf3*) 10760 if test "$GCC" = yes; then 10761 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10762 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10763 else 10764 allow_undefined_flag=' -expect_unresolved \*' 10765 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10766 fi 10767 archive_cmds_need_lc='no' 10768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10769 hardcode_libdir_separator=: 10770 ;; 10771 10772 osf4* | osf5*) # as osf3* with the addition of -msym flag 10773 if test "$GCC" = yes; then 10774 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10775 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10777 else 10778 allow_undefined_flag=' -expect_unresolved \*' 10779 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10780 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10781 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10782 10783 # Both c and cxx compiler support -rpath directly 10784 hardcode_libdir_flag_spec='-rpath $libdir' 10785 fi 10786 archive_cmds_need_lc='no' 10787 hardcode_libdir_separator=: 10788 ;; 10789 10790 solaris*) 10791 no_undefined_flag=' -z defs' 10792 if test "$GCC" = yes; then 10793 wlarc='${wl}' 10794 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10795 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10796 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10797 else 10798 case `$CC -V 2>&1` in 10799 *"Compilers 5.0"*) 10800 wlarc='' 10801 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10802 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10803 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10804 ;; 10805 *) 10806 wlarc='${wl}' 10807 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10808 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10809 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10810 ;; 10811 esac 10812 fi 10813 hardcode_libdir_flag_spec='-R$libdir' 10814 hardcode_shlibpath_var=no 10815 case $host_os in 10816 solaris2.[0-5] | solaris2.[0-5].*) ;; 10817 *) 10818 # The compiler driver will combine and reorder linker options, 10819 # but understands `-z linker_flag'. GCC discards it without `$wl', 10820 # but is careful enough not to reorder. 10821 # Supported since Solaris 2.6 (maybe 2.5.1?) 10822 if test "$GCC" = yes; then 10823 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10824 else 10825 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10826 fi 10827 ;; 10828 esac 10829 link_all_deplibs=yes 10830 ;; 10831 10832 sunos4*) 10833 if test "x$host_vendor" = xsequent; then 10834 # Use $CC to link under sequent, because it throws in some extra .o 10835 # files that make .init and .fini sections work. 10836 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10837 else 10838 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10839 fi 10840 hardcode_libdir_flag_spec='-L$libdir' 10841 hardcode_direct=yes 10842 hardcode_minus_L=yes 10843 hardcode_shlibpath_var=no 10844 ;; 10845 10846 sysv4) 10847 case $host_vendor in 10848 sni) 10849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10850 hardcode_direct=yes # is this really true??? 10851 ;; 10852 siemens) 10853 ## LD is ld it makes a PLAMLIB 10854 ## CC just makes a GrossModule. 10855 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10856 reload_cmds='$CC -r -o $output$reload_objs' 10857 hardcode_direct=no 10858 ;; 10859 motorola) 10860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10861 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10862 ;; 10863 esac 10864 runpath_var='LD_RUN_PATH' 10865 hardcode_shlibpath_var=no 10866 ;; 10867 10868 sysv4.3*) 10869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10870 hardcode_shlibpath_var=no 10871 export_dynamic_flag_spec='-Bexport' 10872 ;; 10873 10874 sysv4*MP*) 10875 if test -d /usr/nec; then 10876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10877 hardcode_shlibpath_var=no 10878 runpath_var=LD_RUN_PATH 10879 hardcode_runpath_var=yes 10880 ld_shlibs=yes 10881 fi 10882 ;; 10883 10884 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10885 no_undefined_flag='${wl}-z,text' 10886 archive_cmds_need_lc=no 10887 hardcode_shlibpath_var=no 10888 runpath_var='LD_RUN_PATH' 10889 10890 if test "$GCC" = yes; then 10891 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10892 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10893 else 10894 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10895 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10896 fi 10897 ;; 10898 10899 sysv5* | sco3.2v5* | sco5v6*) 10900 # Note: We can NOT use -z defs as we might desire, because we do not 10901 # link with -lc, and that would cause any symbols used from libc to 10902 # always be unresolved, which means just about no library would 10903 # ever link correctly. If we're not using GNU ld we use -z text 10904 # though, which does catch some bad symbols but isn't as heavy-handed 10905 # as -z defs. 10906 no_undefined_flag='${wl}-z,text' 10907 allow_undefined_flag='${wl}-z,nodefs' 10908 archive_cmds_need_lc=no 10909 hardcode_shlibpath_var=no 10910 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10911 hardcode_libdir_separator=':' 10912 link_all_deplibs=yes 10913 export_dynamic_flag_spec='${wl}-Bexport' 10914 runpath_var='LD_RUN_PATH' 10915 10916 if test "$GCC" = yes; then 10917 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10918 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10919 else 10920 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10921 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10922 fi 10923 ;; 10924 10925 uts4*) 10926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10927 hardcode_libdir_flag_spec='-L$libdir' 10928 hardcode_shlibpath_var=no 10929 ;; 10930 10931 *) 10932 ld_shlibs=no 10933 ;; 10934 esac 10935 10936 if test x$host_vendor = xsni; then 10937 case $host in 10938 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10939 export_dynamic_flag_spec='${wl}-Blargedynsym' 10940 ;; 10941 esac 10942 fi 10943 fi 10944 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10946 $as_echo "$ld_shlibs" >&6; } 10947 test "$ld_shlibs" = no && can_build_shared=no 10948 10949 with_gnu_ld=$with_gnu_ld 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 # 10966 # Do we need to explicitly link libc? 10967 # 10968 case "x$archive_cmds_need_lc" in 10969 x|xyes) 10970 # Assume -lc should be added 10971 archive_cmds_need_lc=yes 10972 10973 if test "$enable_shared" = yes && test "$GCC" = yes; then 10974 case $archive_cmds in 10975 *'~'*) 10976 # FIXME: we may have to deal with multi-command sequences. 10977 ;; 10978 '$CC '*) 10979 # Test whether the compiler implicitly links with -lc since on some 10980 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10981 # to ld, don't add -lc before -lgcc. 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10983 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10984 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10985 $as_echo_n "(cached) " >&6 10986 else 10987 $RM conftest* 10988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10989 10990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10991 (eval $ac_compile) 2>&5 10992 ac_status=$? 10993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10994 test $ac_status = 0; } 2>conftest.err; then 10995 soname=conftest 10996 lib=conftest 10997 libobjs=conftest.$ac_objext 10998 deplibs= 10999 wl=$lt_prog_compiler_wl 11000 pic_flag=$lt_prog_compiler_pic 11001 compiler_flags=-v 11002 linker_flags=-v 11003 verstring= 11004 output_objdir=. 11005 libname=conftest 11006 lt_save_allow_undefined_flag=$allow_undefined_flag 11007 allow_undefined_flag= 11008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11009 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11010 ac_status=$? 11011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11012 test $ac_status = 0; } 11013 then 11014 lt_cv_archive_cmds_need_lc=no 11015 else 11016 lt_cv_archive_cmds_need_lc=yes 11017 fi 11018 allow_undefined_flag=$lt_save_allow_undefined_flag 11019 else 11020 cat conftest.err 1>&5 11021 fi 11022 $RM conftest* 11023 11024 fi 11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11026 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11027 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11028 ;; 11029 esac 11030 fi 11031 ;; 11032 esac 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11186 $as_echo_n "checking dynamic linker characteristics... " >&6; } 11187 11188 if test "$GCC" = yes; then 11189 case $host_os in 11190 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11191 *) lt_awk_arg="/^libraries:/" ;; 11192 esac 11193 case $host_os in 11194 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11195 *) lt_sed_strip_eq="s,=/,/,g" ;; 11196 esac 11197 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11198 case $lt_search_path_spec in 11199 *\;*) 11200 # if the path contains ";" then we assume it to be the separator 11201 # otherwise default to the standard path separator (i.e. ":") - it is 11202 # assumed that no part of a normal pathname contains ";" but that should 11203 # okay in the real world where ";" in dirpaths is itself problematic. 11204 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11205 ;; 11206 *) 11207 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11208 ;; 11209 esac 11210 # Ok, now we have the path, separated by spaces, we can step through it 11211 # and add multilib dir if necessary. 11212 lt_tmp_lt_search_path_spec= 11213 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11214 for lt_sys_path in $lt_search_path_spec; do 11215 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11216 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11217 else 11218 test -d "$lt_sys_path" && \ 11219 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11220 fi 11221 done 11222 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11223 BEGIN {RS=" "; FS="/|\n";} { 11224 lt_foo=""; 11225 lt_count=0; 11226 for (lt_i = NF; lt_i > 0; lt_i--) { 11227 if ($lt_i != "" && $lt_i != ".") { 11228 if ($lt_i == "..") { 11229 lt_count++; 11230 } else { 11231 if (lt_count == 0) { 11232 lt_foo="/" $lt_i lt_foo; 11233 } else { 11234 lt_count--; 11235 } 11236 } 11237 } 11238 } 11239 if (lt_foo != "") { lt_freq[lt_foo]++; } 11240 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11241 }'` 11242 # AWK program above erroneously prepends '/' to C:/dos/paths 11243 # for these hosts. 11244 case $host_os in 11245 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11246 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11247 esac 11248 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11249 else 11250 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11251 fi 11252 library_names_spec= 11253 libname_spec='lib$name' 11254 soname_spec= 11255 shrext_cmds=".so" 11256 postinstall_cmds= 11257 postuninstall_cmds= 11258 finish_cmds= 11259 finish_eval= 11260 shlibpath_var= 11261 shlibpath_overrides_runpath=unknown 11262 version_type=none 11263 dynamic_linker="$host_os ld.so" 11264 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11265 need_lib_prefix=unknown 11266 hardcode_into_libs=no 11267 11268 # when you set need_version to no, make sure it does not cause -set_version 11269 # flags to be left without arguments 11270 need_version=unknown 11271 11272 case $host_os in 11273 aix3*) 11274 version_type=linux # correct to gnu/linux during the next big refactor 11275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11276 shlibpath_var=LIBPATH 11277 11278 # AIX 3 has no versioning support, so we append a major version to the name. 11279 soname_spec='${libname}${release}${shared_ext}$major' 11280 ;; 11281 11282 aix[4-9]*) 11283 version_type=linux # correct to gnu/linux during the next big refactor 11284 need_lib_prefix=no 11285 need_version=no 11286 hardcode_into_libs=yes 11287 if test "$host_cpu" = ia64; then 11288 # AIX 5 supports IA64 11289 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11290 shlibpath_var=LD_LIBRARY_PATH 11291 else 11292 # With GCC up to 2.95.x, collect2 would create an import file 11293 # for dependence libraries. The import file would start with 11294 # the line `#! .'. This would cause the generated library to 11295 # depend on `.', always an invalid library. This was fixed in 11296 # development snapshots of GCC prior to 3.0. 11297 case $host_os in 11298 aix4 | aix4.[01] | aix4.[01].*) 11299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11300 echo ' yes ' 11301 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11302 : 11303 else 11304 can_build_shared=no 11305 fi 11306 ;; 11307 esac 11308 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11309 # soname into executable. Probably we can add versioning support to 11310 # collect2, so additional links can be useful in future. 11311 if test "$aix_use_runtimelinking" = yes; then 11312 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11313 # instead of lib<name>.a to let people know that these are not 11314 # typical AIX shared libraries. 11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11316 else 11317 # We preserve .a as extension for shared libraries through AIX4.2 11318 # and later when we are not doing run time linking. 11319 library_names_spec='${libname}${release}.a $libname.a' 11320 soname_spec='${libname}${release}${shared_ext}$major' 11321 fi 11322 shlibpath_var=LIBPATH 11323 fi 11324 ;; 11325 11326 amigaos*) 11327 case $host_cpu in 11328 powerpc) 11329 # Since July 2007 AmigaOS4 officially supports .so libraries. 11330 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11332 ;; 11333 m68k) 11334 library_names_spec='$libname.ixlibrary $libname.a' 11335 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11336 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11337 ;; 11338 esac 11339 ;; 11340 11341 beos*) 11342 library_names_spec='${libname}${shared_ext}' 11343 dynamic_linker="$host_os ld.so" 11344 shlibpath_var=LIBRARY_PATH 11345 ;; 11346 11347 bsdi[45]*) 11348 version_type=linux # correct to gnu/linux during the next big refactor 11349 need_version=no 11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11351 soname_spec='${libname}${release}${shared_ext}$major' 11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11353 shlibpath_var=LD_LIBRARY_PATH 11354 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11355 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11356 # the default ld.so.conf also contains /usr/contrib/lib and 11357 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11358 # libtool to hard-code these into programs 11359 ;; 11360 11361 cygwin* | mingw* | pw32* | cegcc*) 11362 version_type=windows 11363 shrext_cmds=".dll" 11364 need_version=no 11365 need_lib_prefix=no 11366 11367 case $GCC,$cc_basename in 11368 yes,*) 11369 # gcc 11370 library_names_spec='$libname.dll.a' 11371 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11372 postinstall_cmds='base_file=`basename \${file}`~ 11373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11374 dldir=$destdir/`dirname \$dlpath`~ 11375 test -d \$dldir || mkdir -p \$dldir~ 11376 $install_prog $dir/$dlname \$dldir/$dlname~ 11377 chmod a+x \$dldir/$dlname~ 11378 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11379 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11380 fi' 11381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11382 dlpath=$dir/\$dldll~ 11383 $RM \$dlpath' 11384 shlibpath_overrides_runpath=yes 11385 11386 case $host_os in 11387 cygwin*) 11388 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11389 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11390 11391 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11392 ;; 11393 mingw* | cegcc*) 11394 # MinGW DLLs use traditional 'lib' prefix 11395 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11396 ;; 11397 pw32*) 11398 # pw32 DLLs use 'pw' prefix rather than 'lib' 11399 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11400 ;; 11401 esac 11402 dynamic_linker='Win32 ld.exe' 11403 ;; 11404 11405 *,cl*) 11406 # Native MSVC 11407 libname_spec='$name' 11408 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11409 library_names_spec='${libname}.dll.lib' 11410 11411 case $build_os in 11412 mingw*) 11413 sys_lib_search_path_spec= 11414 lt_save_ifs=$IFS 11415 IFS=';' 11416 for lt_path in $LIB 11417 do 11418 IFS=$lt_save_ifs 11419 # Let DOS variable expansion print the short 8.3 style file name. 11420 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11421 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11422 done 11423 IFS=$lt_save_ifs 11424 # Convert to MSYS style. 11425 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11426 ;; 11427 cygwin*) 11428 # Convert to unix form, then to dos form, then back to unix form 11429 # but this time dos style (no spaces!) so that the unix form looks 11430 # like /cygdrive/c/PROGRA~1:/cygdr... 11431 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11432 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11433 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11434 ;; 11435 *) 11436 sys_lib_search_path_spec="$LIB" 11437 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11438 # It is most probably a Windows format PATH. 11439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11440 else 11441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11442 fi 11443 # FIXME: find the short name or the path components, as spaces are 11444 # common. (e.g. "Program Files" -> "PROGRA~1") 11445 ;; 11446 esac 11447 11448 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11449 postinstall_cmds='base_file=`basename \${file}`~ 11450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11451 dldir=$destdir/`dirname \$dlpath`~ 11452 test -d \$dldir || mkdir -p \$dldir~ 11453 $install_prog $dir/$dlname \$dldir/$dlname' 11454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11455 dlpath=$dir/\$dldll~ 11456 $RM \$dlpath' 11457 shlibpath_overrides_runpath=yes 11458 dynamic_linker='Win32 link.exe' 11459 ;; 11460 11461 *) 11462 # Assume MSVC wrapper 11463 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11464 dynamic_linker='Win32 ld.exe' 11465 ;; 11466 esac 11467 # FIXME: first we should search . and the directory the executable is in 11468 shlibpath_var=PATH 11469 ;; 11470 11471 darwin* | rhapsody*) 11472 dynamic_linker="$host_os dyld" 11473 version_type=darwin 11474 need_lib_prefix=no 11475 need_version=no 11476 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11477 soname_spec='${libname}${release}${major}$shared_ext' 11478 shlibpath_overrides_runpath=yes 11479 shlibpath_var=DYLD_LIBRARY_PATH 11480 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11481 11482 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11483 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11484 ;; 11485 11486 dgux*) 11487 version_type=linux # correct to gnu/linux during the next big refactor 11488 need_lib_prefix=no 11489 need_version=no 11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11491 soname_spec='${libname}${release}${shared_ext}$major' 11492 shlibpath_var=LD_LIBRARY_PATH 11493 ;; 11494 11495 freebsd* | dragonfly*) 11496 # DragonFly does not have aout. When/if they implement a new 11497 # versioning mechanism, adjust this. 11498 if test -x /usr/bin/objformat; then 11499 objformat=`/usr/bin/objformat` 11500 else 11501 case $host_os in 11502 freebsd[23].*) objformat=aout ;; 11503 *) objformat=elf ;; 11504 esac 11505 fi 11506 version_type=freebsd-$objformat 11507 case $version_type in 11508 freebsd-elf*) 11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11510 need_version=no 11511 need_lib_prefix=no 11512 ;; 11513 freebsd-*) 11514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11515 need_version=yes 11516 ;; 11517 esac 11518 shlibpath_var=LD_LIBRARY_PATH 11519 case $host_os in 11520 freebsd2.*) 11521 shlibpath_overrides_runpath=yes 11522 ;; 11523 freebsd3.[01]* | freebsdelf3.[01]*) 11524 shlibpath_overrides_runpath=yes 11525 hardcode_into_libs=yes 11526 ;; 11527 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11528 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11529 shlibpath_overrides_runpath=no 11530 hardcode_into_libs=yes 11531 ;; 11532 *) # from 4.6 on, and DragonFly 11533 shlibpath_overrides_runpath=yes 11534 hardcode_into_libs=yes 11535 ;; 11536 esac 11537 ;; 11538 11539 gnu*) 11540 version_type=linux # correct to gnu/linux during the next big refactor 11541 need_lib_prefix=no 11542 need_version=no 11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11544 soname_spec='${libname}${release}${shared_ext}$major' 11545 shlibpath_var=LD_LIBRARY_PATH 11546 shlibpath_overrides_runpath=no 11547 hardcode_into_libs=yes 11548 ;; 11549 11550 haiku*) 11551 version_type=linux # correct to gnu/linux during the next big refactor 11552 need_lib_prefix=no 11553 need_version=no 11554 dynamic_linker="$host_os runtime_loader" 11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11556 soname_spec='${libname}${release}${shared_ext}$major' 11557 shlibpath_var=LIBRARY_PATH 11558 shlibpath_overrides_runpath=yes 11559 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11560 hardcode_into_libs=yes 11561 ;; 11562 11563 hpux9* | hpux10* | hpux11*) 11564 # Give a soname corresponding to the major version so that dld.sl refuses to 11565 # link against other versions. 11566 version_type=sunos 11567 need_lib_prefix=no 11568 need_version=no 11569 case $host_cpu in 11570 ia64*) 11571 shrext_cmds='.so' 11572 hardcode_into_libs=yes 11573 dynamic_linker="$host_os dld.so" 11574 shlibpath_var=LD_LIBRARY_PATH 11575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11577 soname_spec='${libname}${release}${shared_ext}$major' 11578 if test "X$HPUX_IA64_MODE" = X32; then 11579 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11580 else 11581 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11582 fi 11583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11584 ;; 11585 hppa*64*) 11586 shrext_cmds='.sl' 11587 hardcode_into_libs=yes 11588 dynamic_linker="$host_os dld.sl" 11589 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11590 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11592 soname_spec='${libname}${release}${shared_ext}$major' 11593 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11595 ;; 11596 *) 11597 shrext_cmds='.sl' 11598 dynamic_linker="$host_os dld.sl" 11599 shlibpath_var=SHLIB_PATH 11600 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11602 soname_spec='${libname}${release}${shared_ext}$major' 11603 ;; 11604 esac 11605 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11606 postinstall_cmds='chmod 555 $lib' 11607 # or fails outright, so override atomically: 11608 install_override_mode=555 11609 ;; 11610 11611 interix[3-9]*) 11612 version_type=linux # correct to gnu/linux during the next big refactor 11613 need_lib_prefix=no 11614 need_version=no 11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11616 soname_spec='${libname}${release}${shared_ext}$major' 11617 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11618 shlibpath_var=LD_LIBRARY_PATH 11619 shlibpath_overrides_runpath=no 11620 hardcode_into_libs=yes 11621 ;; 11622 11623 irix5* | irix6* | nonstopux*) 11624 case $host_os in 11625 nonstopux*) version_type=nonstopux ;; 11626 *) 11627 if test "$lt_cv_prog_gnu_ld" = yes; then 11628 version_type=linux # correct to gnu/linux during the next big refactor 11629 else 11630 version_type=irix 11631 fi ;; 11632 esac 11633 need_lib_prefix=no 11634 need_version=no 11635 soname_spec='${libname}${release}${shared_ext}$major' 11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11637 case $host_os in 11638 irix5* | nonstopux*) 11639 libsuff= shlibsuff= 11640 ;; 11641 *) 11642 case $LD in # libtool.m4 will add one of these switches to LD 11643 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11644 libsuff= shlibsuff= libmagic=32-bit;; 11645 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11646 libsuff=32 shlibsuff=N32 libmagic=N32;; 11647 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11648 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11649 *) libsuff= shlibsuff= libmagic=never-match;; 11650 esac 11651 ;; 11652 esac 11653 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11654 shlibpath_overrides_runpath=no 11655 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11656 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11657 hardcode_into_libs=yes 11658 ;; 11659 11660 # No shared lib support for Linux oldld, aout, or coff. 11661 linux*oldld* | linux*aout* | linux*coff*) 11662 dynamic_linker=no 11663 ;; 11664 11665 # This must be glibc/ELF. 11666 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11667 version_type=linux # correct to gnu/linux during the next big refactor 11668 need_lib_prefix=no 11669 need_version=no 11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11671 soname_spec='${libname}${release}${shared_ext}$major' 11672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11673 shlibpath_var=LD_LIBRARY_PATH 11674 shlibpath_overrides_runpath=no 11675 11676 # Some binutils ld are patched to set DT_RUNPATH 11677 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11678 $as_echo_n "(cached) " >&6 11679 else 11680 lt_cv_shlibpath_overrides_runpath=no 11681 save_LDFLAGS=$LDFLAGS 11682 save_libdir=$libdir 11683 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11684 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11686 /* end confdefs.h. */ 11687 11688 int 11689 main () 11690 { 11691 11692 ; 11693 return 0; 11694 } 11695 _ACEOF 11696 if ac_fn_c_try_link "$LINENO"; then : 11697 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11698 lt_cv_shlibpath_overrides_runpath=yes 11699 fi 11700 fi 11701 rm -f core conftest.err conftest.$ac_objext \ 11702 conftest$ac_exeext conftest.$ac_ext 11703 LDFLAGS=$save_LDFLAGS 11704 libdir=$save_libdir 11705 11706 fi 11707 11708 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11709 11710 # This implies no fast_install, which is unacceptable. 11711 # Some rework will be needed to allow for fast_install 11712 # before this can be enabled. 11713 hardcode_into_libs=yes 11714 11715 # Append ld.so.conf contents to the search path 11716 if test -f /etc/ld.so.conf; then 11717 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11718 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11719 fi 11720 11721 # We used to test for /lib/ld.so.1 and disable shared libraries on 11722 # powerpc, because MkLinux only supported shared libraries with the 11723 # GNU dynamic linker. Since this was broken with cross compilers, 11724 # most powerpc-linux boxes support dynamic linking these days and 11725 # people can always --disable-shared, the test was removed, and we 11726 # assume the GNU/Linux dynamic linker is in use. 11727 dynamic_linker='GNU/Linux ld.so' 11728 ;; 11729 11730 netbsdelf*-gnu) 11731 version_type=linux 11732 need_lib_prefix=no 11733 need_version=no 11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11735 soname_spec='${libname}${release}${shared_ext}$major' 11736 shlibpath_var=LD_LIBRARY_PATH 11737 shlibpath_overrides_runpath=no 11738 hardcode_into_libs=yes 11739 dynamic_linker='NetBSD ld.elf_so' 11740 ;; 11741 11742 netbsd*) 11743 version_type=sunos 11744 need_lib_prefix=no 11745 need_version=no 11746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11749 dynamic_linker='NetBSD (a.out) ld.so' 11750 else 11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11752 soname_spec='${libname}${release}${shared_ext}$major' 11753 dynamic_linker='NetBSD ld.elf_so' 11754 fi 11755 shlibpath_var=LD_LIBRARY_PATH 11756 shlibpath_overrides_runpath=yes 11757 hardcode_into_libs=yes 11758 ;; 11759 11760 newsos6) 11761 version_type=linux # correct to gnu/linux during the next big refactor 11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11763 shlibpath_var=LD_LIBRARY_PATH 11764 shlibpath_overrides_runpath=yes 11765 ;; 11766 11767 *nto* | *qnx*) 11768 version_type=qnx 11769 need_lib_prefix=no 11770 need_version=no 11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11772 soname_spec='${libname}${release}${shared_ext}$major' 11773 shlibpath_var=LD_LIBRARY_PATH 11774 shlibpath_overrides_runpath=no 11775 hardcode_into_libs=yes 11776 dynamic_linker='ldqnx.so' 11777 ;; 11778 11779 openbsd*) 11780 version_type=sunos 11781 sys_lib_dlsearch_path_spec="/usr/lib" 11782 need_lib_prefix=no 11783 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11784 case $host_os in 11785 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11786 *) need_version=no ;; 11787 esac 11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11790 shlibpath_var=LD_LIBRARY_PATH 11791 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11792 case $host_os in 11793 openbsd2.[89] | openbsd2.[89].*) 11794 shlibpath_overrides_runpath=no 11795 ;; 11796 *) 11797 shlibpath_overrides_runpath=yes 11798 ;; 11799 esac 11800 else 11801 shlibpath_overrides_runpath=yes 11802 fi 11803 ;; 11804 11805 os2*) 11806 libname_spec='$name' 11807 shrext_cmds=".dll" 11808 need_lib_prefix=no 11809 library_names_spec='$libname${shared_ext} $libname.a' 11810 dynamic_linker='OS/2 ld.exe' 11811 shlibpath_var=LIBPATH 11812 ;; 11813 11814 osf3* | osf4* | osf5*) 11815 version_type=osf 11816 need_lib_prefix=no 11817 need_version=no 11818 soname_spec='${libname}${release}${shared_ext}$major' 11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11820 shlibpath_var=LD_LIBRARY_PATH 11821 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11822 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11823 ;; 11824 11825 rdos*) 11826 dynamic_linker=no 11827 ;; 11828 11829 solaris*) 11830 version_type=linux # correct to gnu/linux during the next big refactor 11831 need_lib_prefix=no 11832 need_version=no 11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11834 soname_spec='${libname}${release}${shared_ext}$major' 11835 shlibpath_var=LD_LIBRARY_PATH 11836 shlibpath_overrides_runpath=yes 11837 hardcode_into_libs=yes 11838 # ldd complains unless libraries are executable 11839 postinstall_cmds='chmod +x $lib' 11840 ;; 11841 11842 sunos4*) 11843 version_type=sunos 11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11846 shlibpath_var=LD_LIBRARY_PATH 11847 shlibpath_overrides_runpath=yes 11848 if test "$with_gnu_ld" = yes; then 11849 need_lib_prefix=no 11850 fi 11851 need_version=yes 11852 ;; 11853 11854 sysv4 | sysv4.3*) 11855 version_type=linux # correct to gnu/linux during the next big refactor 11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11857 soname_spec='${libname}${release}${shared_ext}$major' 11858 shlibpath_var=LD_LIBRARY_PATH 11859 case $host_vendor in 11860 sni) 11861 shlibpath_overrides_runpath=no 11862 need_lib_prefix=no 11863 runpath_var=LD_RUN_PATH 11864 ;; 11865 siemens) 11866 need_lib_prefix=no 11867 ;; 11868 motorola) 11869 need_lib_prefix=no 11870 need_version=no 11871 shlibpath_overrides_runpath=no 11872 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11873 ;; 11874 esac 11875 ;; 11876 11877 sysv4*MP*) 11878 if test -d /usr/nec ;then 11879 version_type=linux # correct to gnu/linux during the next big refactor 11880 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11881 soname_spec='$libname${shared_ext}.$major' 11882 shlibpath_var=LD_LIBRARY_PATH 11883 fi 11884 ;; 11885 11886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11887 version_type=freebsd-elf 11888 need_lib_prefix=no 11889 need_version=no 11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11891 soname_spec='${libname}${release}${shared_ext}$major' 11892 shlibpath_var=LD_LIBRARY_PATH 11893 shlibpath_overrides_runpath=yes 11894 hardcode_into_libs=yes 11895 if test "$with_gnu_ld" = yes; then 11896 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11897 else 11898 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11899 case $host_os in 11900 sco3.2v5*) 11901 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11902 ;; 11903 esac 11904 fi 11905 sys_lib_dlsearch_path_spec='/usr/lib' 11906 ;; 11907 11908 tpf*) 11909 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11910 version_type=linux # correct to gnu/linux during the next big refactor 11911 need_lib_prefix=no 11912 need_version=no 11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11914 shlibpath_var=LD_LIBRARY_PATH 11915 shlibpath_overrides_runpath=no 11916 hardcode_into_libs=yes 11917 ;; 11918 11919 uts4*) 11920 version_type=linux # correct to gnu/linux during the next big refactor 11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11922 soname_spec='${libname}${release}${shared_ext}$major' 11923 shlibpath_var=LD_LIBRARY_PATH 11924 ;; 11925 11926 *) 11927 dynamic_linker=no 11928 ;; 11929 esac 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11931 $as_echo "$dynamic_linker" >&6; } 11932 test "$dynamic_linker" = no && can_build_shared=no 11933 11934 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11935 if test "$GCC" = yes; then 11936 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11937 fi 11938 11939 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11940 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11941 fi 11942 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11943 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11944 fi 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12038 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12039 hardcode_action= 12040 if test -n "$hardcode_libdir_flag_spec" || 12041 test -n "$runpath_var" || 12042 test "X$hardcode_automatic" = "Xyes" ; then 12043 12044 # We can hardcode non-existent directories. 12045 if test "$hardcode_direct" != no && 12046 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12047 # have to relink, otherwise we might link with an installed library 12048 # when we should be linking with a yet-to-be-installed one 12049 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12050 test "$hardcode_minus_L" != no; then 12051 # Linking always hardcodes the temporary library directory. 12052 hardcode_action=relink 12053 else 12054 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12055 hardcode_action=immediate 12056 fi 12057 else 12058 # We cannot hardcode anything, or else we can only hardcode existing 12059 # directories. 12060 hardcode_action=unsupported 12061 fi 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12063 $as_echo "$hardcode_action" >&6; } 12064 12065 if test "$hardcode_action" = relink || 12066 test "$inherit_rpath" = yes; then 12067 # Fast installation is not supported 12068 enable_fast_install=no 12069 elif test "$shlibpath_overrides_runpath" = yes || 12070 test "$enable_shared" = no; then 12071 # Fast installation is not necessary 12072 enable_fast_install=needless 12073 fi 12074 12075 12076 12077 12078 12079 12080 if test "x$enable_dlopen" != xyes; then 12081 enable_dlopen=unknown 12082 enable_dlopen_self=unknown 12083 enable_dlopen_self_static=unknown 12084 else 12085 lt_cv_dlopen=no 12086 lt_cv_dlopen_libs= 12087 12088 case $host_os in 12089 beos*) 12090 lt_cv_dlopen="load_add_on" 12091 lt_cv_dlopen_libs= 12092 lt_cv_dlopen_self=yes 12093 ;; 12094 12095 mingw* | pw32* | cegcc*) 12096 lt_cv_dlopen="LoadLibrary" 12097 lt_cv_dlopen_libs= 12098 ;; 12099 12100 cygwin*) 12101 lt_cv_dlopen="dlopen" 12102 lt_cv_dlopen_libs= 12103 ;; 12104 12105 darwin*) 12106 # if libdl is installed we need to link against it 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12108 $as_echo_n "checking for dlopen in -ldl... " >&6; } 12109 if ${ac_cv_lib_dl_dlopen+:} false; then : 12110 $as_echo_n "(cached) " >&6 12111 else 12112 ac_check_lib_save_LIBS=$LIBS 12113 LIBS="-ldl $LIBS" 12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12115 /* end confdefs.h. */ 12116 12117 /* Override any GCC internal prototype to avoid an error. 12118 Use char because int might match the return type of a GCC 12119 builtin and then its argument prototype would still apply. */ 12120 #ifdef __cplusplus 12121 extern "C" 12122 #endif 12123 char dlopen (); 12124 int 12125 main () 12126 { 12127 return dlopen (); 12128 ; 12129 return 0; 12130 } 12131 _ACEOF 12132 if ac_fn_c_try_link "$LINENO"; then : 12133 ac_cv_lib_dl_dlopen=yes 12134 else 12135 ac_cv_lib_dl_dlopen=no 12136 fi 12137 rm -f core conftest.err conftest.$ac_objext \ 12138 conftest$ac_exeext conftest.$ac_ext 12139 LIBS=$ac_check_lib_save_LIBS 12140 fi 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12142 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12143 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12144 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12145 else 12146 12147 lt_cv_dlopen="dyld" 12148 lt_cv_dlopen_libs= 12149 lt_cv_dlopen_self=yes 12150 12151 fi 12152 12153 ;; 12154 12155 *) 12156 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12157 if test "x$ac_cv_func_shl_load" = xyes; then : 12158 lt_cv_dlopen="shl_load" 12159 else 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12161 $as_echo_n "checking for shl_load in -ldld... " >&6; } 12162 if ${ac_cv_lib_dld_shl_load+:} false; then : 12163 $as_echo_n "(cached) " >&6 12164 else 12165 ac_check_lib_save_LIBS=$LIBS 12166 LIBS="-ldld $LIBS" 12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12168 /* end confdefs.h. */ 12169 12170 /* Override any GCC internal prototype to avoid an error. 12171 Use char because int might match the return type of a GCC 12172 builtin and then its argument prototype would still apply. */ 12173 #ifdef __cplusplus 12174 extern "C" 12175 #endif 12176 char shl_load (); 12177 int 12178 main () 12179 { 12180 return shl_load (); 12181 ; 12182 return 0; 12183 } 12184 _ACEOF 12185 if ac_fn_c_try_link "$LINENO"; then : 12186 ac_cv_lib_dld_shl_load=yes 12187 else 12188 ac_cv_lib_dld_shl_load=no 12189 fi 12190 rm -f core conftest.err conftest.$ac_objext \ 12191 conftest$ac_exeext conftest.$ac_ext 12192 LIBS=$ac_check_lib_save_LIBS 12193 fi 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12195 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12196 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12197 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12198 else 12199 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12200 if test "x$ac_cv_func_dlopen" = xyes; then : 12201 lt_cv_dlopen="dlopen" 12202 else 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12204 $as_echo_n "checking for dlopen in -ldl... " >&6; } 12205 if ${ac_cv_lib_dl_dlopen+:} false; then : 12206 $as_echo_n "(cached) " >&6 12207 else 12208 ac_check_lib_save_LIBS=$LIBS 12209 LIBS="-ldl $LIBS" 12210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12211 /* end confdefs.h. */ 12212 12213 /* Override any GCC internal prototype to avoid an error. 12214 Use char because int might match the return type of a GCC 12215 builtin and then its argument prototype would still apply. */ 12216 #ifdef __cplusplus 12217 extern "C" 12218 #endif 12219 char dlopen (); 12220 int 12221 main () 12222 { 12223 return dlopen (); 12224 ; 12225 return 0; 12226 } 12227 _ACEOF 12228 if ac_fn_c_try_link "$LINENO"; then : 12229 ac_cv_lib_dl_dlopen=yes 12230 else 12231 ac_cv_lib_dl_dlopen=no 12232 fi 12233 rm -f core conftest.err conftest.$ac_objext \ 12234 conftest$ac_exeext conftest.$ac_ext 12235 LIBS=$ac_check_lib_save_LIBS 12236 fi 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12238 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12239 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12241 else 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12243 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 12244 if ${ac_cv_lib_svld_dlopen+:} false; then : 12245 $as_echo_n "(cached) " >&6 12246 else 12247 ac_check_lib_save_LIBS=$LIBS 12248 LIBS="-lsvld $LIBS" 12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12250 /* end confdefs.h. */ 12251 12252 /* Override any GCC internal prototype to avoid an error. 12253 Use char because int might match the return type of a GCC 12254 builtin and then its argument prototype would still apply. */ 12255 #ifdef __cplusplus 12256 extern "C" 12257 #endif 12258 char dlopen (); 12259 int 12260 main () 12261 { 12262 return dlopen (); 12263 ; 12264 return 0; 12265 } 12266 _ACEOF 12267 if ac_fn_c_try_link "$LINENO"; then : 12268 ac_cv_lib_svld_dlopen=yes 12269 else 12270 ac_cv_lib_svld_dlopen=no 12271 fi 12272 rm -f core conftest.err conftest.$ac_objext \ 12273 conftest$ac_exeext conftest.$ac_ext 12274 LIBS=$ac_check_lib_save_LIBS 12275 fi 12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12277 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12278 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12280 else 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12282 $as_echo_n "checking for dld_link in -ldld... " >&6; } 12283 if ${ac_cv_lib_dld_dld_link+:} false; then : 12284 $as_echo_n "(cached) " >&6 12285 else 12286 ac_check_lib_save_LIBS=$LIBS 12287 LIBS="-ldld $LIBS" 12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12289 /* end confdefs.h. */ 12290 12291 /* Override any GCC internal prototype to avoid an error. 12292 Use char because int might match the return type of a GCC 12293 builtin and then its argument prototype would still apply. */ 12294 #ifdef __cplusplus 12295 extern "C" 12296 #endif 12297 char dld_link (); 12298 int 12299 main () 12300 { 12301 return dld_link (); 12302 ; 12303 return 0; 12304 } 12305 _ACEOF 12306 if ac_fn_c_try_link "$LINENO"; then : 12307 ac_cv_lib_dld_dld_link=yes 12308 else 12309 ac_cv_lib_dld_dld_link=no 12310 fi 12311 rm -f core conftest.err conftest.$ac_objext \ 12312 conftest$ac_exeext conftest.$ac_ext 12313 LIBS=$ac_check_lib_save_LIBS 12314 fi 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12316 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12317 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12318 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12319 fi 12320 12321 12322 fi 12323 12324 12325 fi 12326 12327 12328 fi 12329 12330 12331 fi 12332 12333 12334 fi 12335 12336 ;; 12337 esac 12338 12339 if test "x$lt_cv_dlopen" != xno; then 12340 enable_dlopen=yes 12341 else 12342 enable_dlopen=no 12343 fi 12344 12345 case $lt_cv_dlopen in 12346 dlopen) 12347 save_CPPFLAGS="$CPPFLAGS" 12348 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12349 12350 save_LDFLAGS="$LDFLAGS" 12351 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12352 12353 save_LIBS="$LIBS" 12354 LIBS="$lt_cv_dlopen_libs $LIBS" 12355 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12357 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 12358 if ${lt_cv_dlopen_self+:} false; then : 12359 $as_echo_n "(cached) " >&6 12360 else 12361 if test "$cross_compiling" = yes; then : 12362 lt_cv_dlopen_self=cross 12363 else 12364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12365 lt_status=$lt_dlunknown 12366 cat > conftest.$ac_ext <<_LT_EOF 12367 #line $LINENO "configure" 12368 #include "confdefs.h" 12369 12370 #if HAVE_DLFCN_H 12371 #include <dlfcn.h> 12372 #endif 12373 12374 #include <stdio.h> 12375 12376 #ifdef RTLD_GLOBAL 12377 # define LT_DLGLOBAL RTLD_GLOBAL 12378 #else 12379 # ifdef DL_GLOBAL 12380 # define LT_DLGLOBAL DL_GLOBAL 12381 # else 12382 # define LT_DLGLOBAL 0 12383 # endif 12384 #endif 12385 12386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12387 find out it does not work in some platform. */ 12388 #ifndef LT_DLLAZY_OR_NOW 12389 # ifdef RTLD_LAZY 12390 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12391 # else 12392 # ifdef DL_LAZY 12393 # define LT_DLLAZY_OR_NOW DL_LAZY 12394 # else 12395 # ifdef RTLD_NOW 12396 # define LT_DLLAZY_OR_NOW RTLD_NOW 12397 # else 12398 # ifdef DL_NOW 12399 # define LT_DLLAZY_OR_NOW DL_NOW 12400 # else 12401 # define LT_DLLAZY_OR_NOW 0 12402 # endif 12403 # endif 12404 # endif 12405 # endif 12406 #endif 12407 12408 /* When -fvisbility=hidden is used, assume the code has been annotated 12409 correspondingly for the symbols needed. */ 12410 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12411 int fnord () __attribute__((visibility("default"))); 12412 #endif 12413 12414 int fnord () { return 42; } 12415 int main () 12416 { 12417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12418 int status = $lt_dlunknown; 12419 12420 if (self) 12421 { 12422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12423 else 12424 { 12425 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12426 else puts (dlerror ()); 12427 } 12428 /* dlclose (self); */ 12429 } 12430 else 12431 puts (dlerror ()); 12432 12433 return status; 12434 } 12435 _LT_EOF 12436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12437 (eval $ac_link) 2>&5 12438 ac_status=$? 12439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12440 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12441 (./conftest; exit; ) >&5 2>/dev/null 12442 lt_status=$? 12443 case x$lt_status in 12444 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12445 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12446 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12447 esac 12448 else : 12449 # compilation failed 12450 lt_cv_dlopen_self=no 12451 fi 12452 fi 12453 rm -fr conftest* 12454 12455 12456 fi 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12458 $as_echo "$lt_cv_dlopen_self" >&6; } 12459 12460 if test "x$lt_cv_dlopen_self" = xyes; then 12461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12463 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12464 if ${lt_cv_dlopen_self_static+:} false; then : 12465 $as_echo_n "(cached) " >&6 12466 else 12467 if test "$cross_compiling" = yes; then : 12468 lt_cv_dlopen_self_static=cross 12469 else 12470 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12471 lt_status=$lt_dlunknown 12472 cat > conftest.$ac_ext <<_LT_EOF 12473 #line $LINENO "configure" 12474 #include "confdefs.h" 12475 12476 #if HAVE_DLFCN_H 12477 #include <dlfcn.h> 12478 #endif 12479 12480 #include <stdio.h> 12481 12482 #ifdef RTLD_GLOBAL 12483 # define LT_DLGLOBAL RTLD_GLOBAL 12484 #else 12485 # ifdef DL_GLOBAL 12486 # define LT_DLGLOBAL DL_GLOBAL 12487 # else 12488 # define LT_DLGLOBAL 0 12489 # endif 12490 #endif 12491 12492 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12493 find out it does not work in some platform. */ 12494 #ifndef LT_DLLAZY_OR_NOW 12495 # ifdef RTLD_LAZY 12496 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12497 # else 12498 # ifdef DL_LAZY 12499 # define LT_DLLAZY_OR_NOW DL_LAZY 12500 # else 12501 # ifdef RTLD_NOW 12502 # define LT_DLLAZY_OR_NOW RTLD_NOW 12503 # else 12504 # ifdef DL_NOW 12505 # define LT_DLLAZY_OR_NOW DL_NOW 12506 # else 12507 # define LT_DLLAZY_OR_NOW 0 12508 # endif 12509 # endif 12510 # endif 12511 # endif 12512 #endif 12513 12514 /* When -fvisbility=hidden is used, assume the code has been annotated 12515 correspondingly for the symbols needed. */ 12516 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12517 int fnord () __attribute__((visibility("default"))); 12518 #endif 12519 12520 int fnord () { return 42; } 12521 int main () 12522 { 12523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12524 int status = $lt_dlunknown; 12525 12526 if (self) 12527 { 12528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12529 else 12530 { 12531 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12532 else puts (dlerror ()); 12533 } 12534 /* dlclose (self); */ 12535 } 12536 else 12537 puts (dlerror ()); 12538 12539 return status; 12540 } 12541 _LT_EOF 12542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12543 (eval $ac_link) 2>&5 12544 ac_status=$? 12545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12546 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12547 (./conftest; exit; ) >&5 2>/dev/null 12548 lt_status=$? 12549 case x$lt_status in 12550 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12551 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12552 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12553 esac 12554 else : 12555 # compilation failed 12556 lt_cv_dlopen_self_static=no 12557 fi 12558 fi 12559 rm -fr conftest* 12560 12561 12562 fi 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12564 $as_echo "$lt_cv_dlopen_self_static" >&6; } 12565 fi 12566 12567 CPPFLAGS="$save_CPPFLAGS" 12568 LDFLAGS="$save_LDFLAGS" 12569 LIBS="$save_LIBS" 12570 ;; 12571 esac 12572 12573 case $lt_cv_dlopen_self in 12574 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12575 *) enable_dlopen_self=unknown ;; 12576 esac 12577 12578 case $lt_cv_dlopen_self_static in 12579 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12580 *) enable_dlopen_self_static=unknown ;; 12581 esac 12582 fi 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 striplib= 12601 old_striplib= 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12603 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 12604 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12605 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12606 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12608 $as_echo "yes" >&6; } 12609 else 12610 # FIXME - insert some real tests, host_os isn't really good enough 12611 case $host_os in 12612 darwin*) 12613 if test -n "$STRIP" ; then 12614 striplib="$STRIP -x" 12615 old_striplib="$STRIP -S" 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12617 $as_echo "yes" >&6; } 12618 else 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12620 $as_echo "no" >&6; } 12621 fi 12622 ;; 12623 *) 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12625 $as_echo "no" >&6; } 12626 ;; 12627 esac 12628 fi 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 # Report which library types will actually be built 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12643 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12645 $as_echo "$can_build_shared" >&6; } 12646 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12648 $as_echo_n "checking whether to build shared libraries... " >&6; } 12649 test "$can_build_shared" = "no" && enable_shared=no 12650 12651 # On AIX, shared libraries and static libraries use the same namespace, and 12652 # are all built from PIC. 12653 case $host_os in 12654 aix3*) 12655 test "$enable_shared" = yes && enable_static=no 12656 if test -n "$RANLIB"; then 12657 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12658 postinstall_cmds='$RANLIB $lib' 12659 fi 12660 ;; 12661 12662 aix[4-9]*) 12663 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12664 test "$enable_shared" = yes && enable_static=no 12665 fi 12666 ;; 12667 esac 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12669 $as_echo "$enable_shared" >&6; } 12670 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12672 $as_echo_n "checking whether to build static libraries... " >&6; } 12673 # Make sure either enable_shared or enable_static is yes. 12674 test "$enable_shared" = yes || enable_static=yes 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12676 $as_echo "$enable_static" >&6; } 12677 12678 12679 12680 12681 fi 12682 ac_ext=c 12683 ac_cpp='$CPP $CPPFLAGS' 12684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12686 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12687 12688 CC="$lt_save_CC" 12689 12690 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12691 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12692 (test "X$CXX" != "Xg++"))) ; then 12693 ac_ext=cpp 12694 ac_cpp='$CXXCPP $CPPFLAGS' 12695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12699 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12700 if test -z "$CXXCPP"; then 12701 if ${ac_cv_prog_CXXCPP+:} false; then : 12702 $as_echo_n "(cached) " >&6 12703 else 12704 # Double quotes because CXXCPP needs to be expanded 12705 for CXXCPP in "$CXX -E" "/lib/cpp" 12706 do 12707 ac_preproc_ok=false 12708 for ac_cxx_preproc_warn_flag in '' yes 12709 do 12710 # Use a header file that comes with gcc, so configuring glibc 12711 # with a fresh cross-compiler works. 12712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12713 # <limits.h> exists even on freestanding compilers. 12714 # On the NeXT, cc -E runs the code through the compiler's parser, 12715 # not just through cpp. "Syntax error" is here to catch this case. 12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12717 /* end confdefs.h. */ 12718 #ifdef __STDC__ 12719 # include <limits.h> 12720 #else 12721 # include <assert.h> 12722 #endif 12723 Syntax error 12724 _ACEOF 12725 if ac_fn_cxx_try_cpp "$LINENO"; then : 12726 12727 else 12728 # Broken: fails on valid input. 12729 continue 12730 fi 12731 rm -f conftest.err conftest.i conftest.$ac_ext 12732 12733 # OK, works on sane cases. Now check whether nonexistent headers 12734 # can be detected and how. 12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12736 /* end confdefs.h. */ 12737 #include <ac_nonexistent.h> 12738 _ACEOF 12739 if ac_fn_cxx_try_cpp "$LINENO"; then : 12740 # Broken: success on invalid input. 12741 continue 12742 else 12743 # Passes both tests. 12744 ac_preproc_ok=: 12745 break 12746 fi 12747 rm -f conftest.err conftest.i conftest.$ac_ext 3976 12748 3977 12749 done 3978 3979 3980 for ac_header in cdd.h 12750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12751 rm -f conftest.i conftest.err conftest.$ac_ext 12752 if $ac_preproc_ok; then : 12753 break 12754 fi 12755 12756 done 12757 ac_cv_prog_CXXCPP=$CXXCPP 12758 12759 fi 12760 CXXCPP=$ac_cv_prog_CXXCPP 12761 else 12762 ac_cv_prog_CXXCPP=$CXXCPP 12763 fi 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12765 $as_echo "$CXXCPP" >&6; } 12766 ac_preproc_ok=false 12767 for ac_cxx_preproc_warn_flag in '' yes 3981 12768 do 3982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3985 $as_echo_n "checking for $ac_header... " >&6; } 3986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12769 # Use a header file that comes with gcc, so configuring glibc 12770 # with a fresh cross-compiler works. 12771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12772 # <limits.h> exists even on freestanding compilers. 12773 # On the NeXT, cc -E runs the code through the compiler's parser, 12774 # not just through cpp. "Syntax error" is here to catch this case. 12775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12776 /* end confdefs.h. */ 12777 #ifdef __STDC__ 12778 # include <limits.h> 12779 #else 12780 # include <assert.h> 12781 #endif 12782 Syntax error 12783 _ACEOF 12784 if ac_fn_cxx_try_cpp "$LINENO"; then : 12785 12786 else 12787 # Broken: fails on valid input. 12788 continue 12789 fi 12790 rm -f conftest.err conftest.i conftest.$ac_ext 12791 12792 # OK, works on sane cases. Now check whether nonexistent headers 12793 # can be detected and how. 12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12795 /* end confdefs.h. */ 12796 #include <ac_nonexistent.h> 12797 _ACEOF 12798 if ac_fn_cxx_try_cpp "$LINENO"; then : 12799 # Broken: success on invalid input. 12800 continue 12801 else 12802 # Passes both tests. 12803 ac_preproc_ok=: 12804 break 12805 fi 12806 rm -f conftest.err conftest.i conftest.$ac_ext 12807 12808 done 12809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12810 rm -f conftest.i conftest.err conftest.$ac_ext 12811 if $ac_preproc_ok; then : 12812 12813 else 12814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12816 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12817 See \`config.log' for more details" "$LINENO" 5; } 12818 fi 12819 12820 ac_ext=c 12821 ac_cpp='$CPP $CPPFLAGS' 12822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12824 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12825 12826 else 12827 _lt_caught_CXX_error=yes 12828 fi 12829 12830 ac_ext=cpp 12831 ac_cpp='$CXXCPP $CPPFLAGS' 12832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12835 12836 archive_cmds_need_lc_CXX=no 12837 allow_undefined_flag_CXX= 12838 always_export_symbols_CXX=no 12839 archive_expsym_cmds_CXX= 12840 compiler_needs_object_CXX=no 12841 export_dynamic_flag_spec_CXX= 12842 hardcode_direct_CXX=no 12843 hardcode_direct_absolute_CXX=no 12844 hardcode_libdir_flag_spec_CXX= 12845 hardcode_libdir_separator_CXX= 12846 hardcode_minus_L_CXX=no 12847 hardcode_shlibpath_var_CXX=unsupported 12848 hardcode_automatic_CXX=no 12849 inherit_rpath_CXX=no 12850 module_cmds_CXX= 12851 module_expsym_cmds_CXX= 12852 link_all_deplibs_CXX=unknown 12853 old_archive_cmds_CXX=$old_archive_cmds 12854 reload_flag_CXX=$reload_flag 12855 reload_cmds_CXX=$reload_cmds 12856 no_undefined_flag_CXX= 12857 whole_archive_flag_spec_CXX= 12858 enable_shared_with_static_runtimes_CXX=no 12859 12860 # Source file extension for C++ test sources. 12861 ac_ext=cpp 12862 12863 # Object file extension for compiled C++ test sources. 12864 objext=o 12865 objext_CXX=$objext 12866 12867 # No sense in running all these tests if we already determined that 12868 # the CXX compiler isn't working. Some variables (like enable_shared) 12869 # are currently assumed to apply to all compilers on this platform, 12870 # and will be corrupted by setting them based on a non-working compiler. 12871 if test "$_lt_caught_CXX_error" != yes; then 12872 # Code to be used in simple compile tests 12873 lt_simple_compile_test_code="int some_variable = 0;" 12874 12875 # Code to be used in simple link tests 12876 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12877 12878 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12879 12880 12881 12882 12883 12884 12885 # If no C compiler was specified, use CC. 12886 LTCC=${LTCC-"$CC"} 12887 12888 # If no C compiler flags were specified, use CFLAGS. 12889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12890 12891 # Allow CC to be a program name with arguments. 12892 compiler=$CC 12893 12894 12895 # save warnings/boilerplate of simple test code 12896 ac_outfile=conftest.$ac_objext 12897 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12899 _lt_compiler_boilerplate=`cat conftest.err` 12900 $RM conftest* 12901 12902 ac_outfile=conftest.$ac_objext 12903 echo "$lt_simple_link_test_code" >conftest.$ac_ext 12904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12905 _lt_linker_boilerplate=`cat conftest.err` 12906 $RM -r conftest* 12907 12908 12909 # Allow CC to be a program name with arguments. 12910 lt_save_CC=$CC 12911 lt_save_CFLAGS=$CFLAGS 12912 lt_save_LD=$LD 12913 lt_save_GCC=$GCC 12914 GCC=$GXX 12915 lt_save_with_gnu_ld=$with_gnu_ld 12916 lt_save_path_LD=$lt_cv_path_LD 12917 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12918 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12919 else 12920 $as_unset lt_cv_prog_gnu_ld 12921 fi 12922 if test -n "${lt_cv_path_LDCXX+set}"; then 12923 lt_cv_path_LD=$lt_cv_path_LDCXX 12924 else 12925 $as_unset lt_cv_path_LD 12926 fi 12927 test -z "${LDCXX+set}" || LD=$LDCXX 12928 CC=${CXX-"c++"} 12929 CFLAGS=$CXXFLAGS 12930 compiler=$CC 12931 compiler_CXX=$CC 12932 for cc_temp in $compiler""; do 12933 case $cc_temp in 12934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12936 \-*) ;; 12937 *) break;; 12938 esac 12939 done 12940 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12941 12942 12943 if test -n "$compiler"; then 12944 # We don't want -fno-exception when compiling C++ code, so set the 12945 # no_builtin_flag separately 12946 if test "$GXX" = yes; then 12947 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12948 else 12949 lt_prog_compiler_no_builtin_flag_CXX= 12950 fi 12951 12952 if test "$GXX" = yes; then 12953 # Set up default GNU C++ configuration 12954 12955 12956 12957 # Check whether --with-gnu-ld was given. 12958 if test "${with_gnu_ld+set}" = set; then : 12959 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12960 else 12961 with_gnu_ld=no 12962 fi 12963 12964 ac_prog=ld 12965 if test "$GCC" = yes; then 12966 # Check if gcc -print-prog-name=ld gives a path. 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12968 $as_echo_n "checking for ld used by $CC... " >&6; } 12969 case $host in 12970 *-*-mingw*) 12971 # gcc leaves a trailing carriage return which upsets mingw 12972 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12973 *) 12974 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12975 esac 12976 case $ac_prog in 12977 # Accept absolute paths. 12978 [\\/]* | ?:[\\/]*) 12979 re_direlt='/[^/][^/]*/\.\./' 12980 # Canonicalize the pathname of ld 12981 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12982 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12983 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12984 done 12985 test -z "$LD" && LD="$ac_prog" 12986 ;; 12987 "") 12988 # If it fails, then pretend we aren't using GCC. 12989 ac_prog=ld 12990 ;; 12991 *) 12992 # If it is relative, then search for the first ld in PATH. 12993 with_gnu_ld=unknown 12994 ;; 12995 esac 12996 elif test "$with_gnu_ld" = yes; then 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12998 $as_echo_n "checking for GNU ld... " >&6; } 12999 else 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13001 $as_echo_n "checking for non-GNU ld... " >&6; } 13002 fi 13003 if ${lt_cv_path_LD+:} false; then : 3987 13004 $as_echo_n "(cached) " >&6 3988 fi 3989 ac_res=`eval 'as_val=${'$as_ac_Header'} 3990 $as_echo "$as_val"'` 3991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3992 $as_echo "$ac_res" >&6; } 3993 else 3994 # Is the header compilable? 3995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 3996 $as_echo_n "checking $ac_header usability... " >&6; } 3997 cat >conftest.$ac_ext <<_ACEOF 3998 /* confdefs.h. */ 13005 else 13006 if test -z "$LD"; then 13007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13008 for ac_dir in $PATH; do 13009 IFS="$lt_save_ifs" 13010 test -z "$ac_dir" && ac_dir=. 13011 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13012 lt_cv_path_LD="$ac_dir/$ac_prog" 13013 # Check to see if the program is GNU ld. I'd rather use --version, 13014 # but apparently some variants of GNU ld only accept -v. 13015 # Break only if it was the GNU/non-GNU ld that we prefer. 13016 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13017 *GNU* | *'with BFD'*) 13018 test "$with_gnu_ld" != no && break 13019 ;; 13020 *) 13021 test "$with_gnu_ld" != yes && break 13022 ;; 13023 esac 13024 fi 13025 done 13026 IFS="$lt_save_ifs" 13027 else 13028 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13029 fi 13030 fi 13031 13032 LD="$lt_cv_path_LD" 13033 if test -n "$LD"; then 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13035 $as_echo "$LD" >&6; } 13036 else 13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13038 $as_echo "no" >&6; } 13039 fi 13040 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13042 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13043 if ${lt_cv_prog_gnu_ld+:} false; then : 13044 $as_echo_n "(cached) " >&6 13045 else 13046 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13047 case `$LD -v 2>&1 </dev/null` in 13048 *GNU* | *'with BFD'*) 13049 lt_cv_prog_gnu_ld=yes 13050 ;; 13051 *) 13052 lt_cv_prog_gnu_ld=no 13053 ;; 13054 esac 13055 fi 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13057 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 13058 with_gnu_ld=$lt_cv_prog_gnu_ld 13059 13060 13061 13062 13063 13064 13065 13066 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13067 # archiving commands below assume that GNU ld is being used. 13068 if test "$with_gnu_ld" = yes; then 13069 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13070 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13071 13072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13073 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13074 13075 # If archive_cmds runs LD, not CC, wlarc should be empty 13076 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13077 # investigate it a little bit more. (MM) 13078 wlarc='${wl}' 13079 13080 # ancient GNU ld didn't support --whole-archive et. al. 13081 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13082 $GREP 'no-whole-archive' > /dev/null; then 13083 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13084 else 13085 whole_archive_flag_spec_CXX= 13086 fi 13087 else 13088 with_gnu_ld=no 13089 wlarc= 13090 13091 # A generic and very simple default shared library creation 13092 # command for GNU C++ for the case where it uses the native 13093 # linker, instead of GNU ld. If possible, this setting should 13094 # overridden to take advantage of the native linker features on 13095 # the platform it is being used on. 13096 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13097 fi 13098 13099 # Commands to make compiler produce verbose output that lists 13100 # what "hidden" libraries, object files and flags are used when 13101 # linking a shared library. 13102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13103 13104 else 13105 GXX=no 13106 with_gnu_ld=no 13107 wlarc= 13108 fi 13109 13110 # PORTME: fill in a description of your system's C++ link characteristics 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13112 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13113 ld_shlibs_CXX=yes 13114 case $host_os in 13115 aix3*) 13116 # FIXME: insert proper C++ library support 13117 ld_shlibs_CXX=no 13118 ;; 13119 aix[4-9]*) 13120 if test "$host_cpu" = ia64; then 13121 # On IA64, the linker does run time linking by default, so we don't 13122 # have to do anything special. 13123 aix_use_runtimelinking=no 13124 exp_sym_flag='-Bexport' 13125 no_entry_flag="" 13126 else 13127 aix_use_runtimelinking=no 13128 13129 # Test if we are trying to use run time linking or normal 13130 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13131 # need to do runtime linking. 13132 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13133 for ld_flag in $LDFLAGS; do 13134 case $ld_flag in 13135 *-brtl*) 13136 aix_use_runtimelinking=yes 13137 break 13138 ;; 13139 esac 13140 done 13141 ;; 13142 esac 13143 13144 exp_sym_flag='-bexport' 13145 no_entry_flag='-bnoentry' 13146 fi 13147 13148 # When large executables or shared objects are built, AIX ld can 13149 # have problems creating the table of contents. If linking a library 13150 # or program results in "error TOC overflow" add -mminimal-toc to 13151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13153 13154 archive_cmds_CXX='' 13155 hardcode_direct_CXX=yes 13156 hardcode_direct_absolute_CXX=yes 13157 hardcode_libdir_separator_CXX=':' 13158 link_all_deplibs_CXX=yes 13159 file_list_spec_CXX='${wl}-f,' 13160 13161 if test "$GXX" = yes; then 13162 case $host_os in aix4.[012]|aix4.[012].*) 13163 # We only want to do this on AIX 4.2 and lower, the check 13164 # below for broken collect2 doesn't work under 4.3+ 13165 collect2name=`${CC} -print-prog-name=collect2` 13166 if test -f "$collect2name" && 13167 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13168 then 13169 # We have reworked collect2 13170 : 13171 else 13172 # We have old collect2 13173 hardcode_direct_CXX=unsupported 13174 # It fails to find uninstalled libraries when the uninstalled 13175 # path is not listed in the libpath. Setting hardcode_minus_L 13176 # to unsupported forces relinking 13177 hardcode_minus_L_CXX=yes 13178 hardcode_libdir_flag_spec_CXX='-L$libdir' 13179 hardcode_libdir_separator_CXX= 13180 fi 13181 esac 13182 shared_flag='-shared' 13183 if test "$aix_use_runtimelinking" = yes; then 13184 shared_flag="$shared_flag "'${wl}-G' 13185 fi 13186 else 13187 # not using gcc 13188 if test "$host_cpu" = ia64; then 13189 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13190 # chokes on -Wl,-G. The following line is correct: 13191 shared_flag='-G' 13192 else 13193 if test "$aix_use_runtimelinking" = yes; then 13194 shared_flag='${wl}-G' 13195 else 13196 shared_flag='${wl}-bM:SRE' 13197 fi 13198 fi 13199 fi 13200 13201 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13202 # It seems that -bexpall does not export symbols beginning with 13203 # underscore (_), so it is better to generate a list of symbols to 13204 # export. 13205 always_export_symbols_CXX=yes 13206 if test "$aix_use_runtimelinking" = yes; then 13207 # Warning - without using the other runtime loading flags (-brtl), 13208 # -berok will link without error, but may produce a broken library. 13209 allow_undefined_flag_CXX='-berok' 13210 # Determine the default libpath from the value encoded in an empty 13211 # executable. 13212 if test "${lt_cv_aix_libpath+set}" = set; then 13213 aix_libpath=$lt_cv_aix_libpath 13214 else 13215 if ${lt_cv_aix_libpath__CXX+:} false; then : 13216 $as_echo_n "(cached) " >&6 13217 else 13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13219 /* end confdefs.h. */ 13220 13221 int 13222 main () 13223 { 13224 13225 ; 13226 return 0; 13227 } 3999 13228 _ACEOF 4000 cat confdefs.h >>conftest.$ac_ext 4001 cat >>conftest.$ac_ext <<_ACEOF 13229 if ac_fn_cxx_try_link "$LINENO"; then : 13230 13231 lt_aix_libpath_sed=' 13232 /Import File Strings/,/^$/ { 13233 /^0/ { 13234 s/^0 *\([^ ]*\) *$/\1/ 13235 p 13236 } 13237 }' 13238 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13239 # Check for a 64-bit object if we didn't find anything. 13240 if test -z "$lt_cv_aix_libpath__CXX"; then 13241 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13242 fi 13243 fi 13244 rm -f core conftest.err conftest.$ac_objext \ 13245 conftest$ac_exeext conftest.$ac_ext 13246 if test -z "$lt_cv_aix_libpath__CXX"; then 13247 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13248 fi 13249 13250 fi 13251 13252 aix_libpath=$lt_cv_aix_libpath__CXX 13253 fi 13254 13255 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13256 13257 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13258 else 13259 if test "$host_cpu" = ia64; then 13260 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13261 allow_undefined_flag_CXX="-z nodefs" 13262 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13263 else 13264 # Determine the default libpath from the value encoded in an 13265 # empty executable. 13266 if test "${lt_cv_aix_libpath+set}" = set; then 13267 aix_libpath=$lt_cv_aix_libpath 13268 else 13269 if ${lt_cv_aix_libpath__CXX+:} false; then : 13270 $as_echo_n "(cached) " >&6 13271 else 13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4002 13273 /* end confdefs.h. */ 4003 $ac_includes_default 4004 #include <$ac_header> 13274 13275 int 13276 main () 13277 { 13278 13279 ; 13280 return 0; 13281 } 4005 13282 _ACEOF 4006 rm -f conftest.$ac_objext 4007 if { (ac_try="$ac_compile" 4008 case "(($ac_try" in 4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4010 *) ac_try_echo=$ac_try;; 13283 if ac_fn_cxx_try_link "$LINENO"; then : 13284 13285 lt_aix_libpath_sed=' 13286 /Import File Strings/,/^$/ { 13287 /^0/ { 13288 s/^0 *\([^ ]*\) *$/\1/ 13289 p 13290 } 13291 }' 13292 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13293 # Check for a 64-bit object if we didn't find anything. 13294 if test -z "$lt_cv_aix_libpath__CXX"; then 13295 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13296 fi 13297 fi 13298 rm -f core conftest.err conftest.$ac_objext \ 13299 conftest$ac_exeext conftest.$ac_ext 13300 if test -z "$lt_cv_aix_libpath__CXX"; then 13301 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13302 fi 13303 13304 fi 13305 13306 aix_libpath=$lt_cv_aix_libpath__CXX 13307 fi 13308 13309 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13310 # Warning - without using the other run time loading flags, 13311 # -berok will link without error, but may produce a broken library. 13312 no_undefined_flag_CXX=' ${wl}-bernotok' 13313 allow_undefined_flag_CXX=' ${wl}-berok' 13314 if test "$with_gnu_ld" = yes; then 13315 # We only use this code for GNU lds that support --whole-archive. 13316 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13317 else 13318 # Exported symbols can be pulled into shared objects from archives 13319 whole_archive_flag_spec_CXX='$convenience' 13320 fi 13321 archive_cmds_need_lc_CXX=yes 13322 # This is similar to how AIX traditionally builds its shared 13323 # libraries. 13324 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13325 fi 13326 fi 13327 ;; 13328 13329 beos*) 13330 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13331 allow_undefined_flag_CXX=unsupported 13332 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13333 # support --undefined. This deserves some investigation. FIXME 13334 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13335 else 13336 ld_shlibs_CXX=no 13337 fi 13338 ;; 13339 13340 chorus*) 13341 case $cc_basename in 13342 *) 13343 # FIXME: insert proper C++ library support 13344 ld_shlibs_CXX=no 13345 ;; 13346 esac 13347 ;; 13348 13349 cygwin* | mingw* | pw32* | cegcc*) 13350 case $GXX,$cc_basename in 13351 ,cl* | no,cl*) 13352 # Native MSVC 13353 # hardcode_libdir_flag_spec is actually meaningless, as there is 13354 # no search path for DLLs. 13355 hardcode_libdir_flag_spec_CXX=' ' 13356 allow_undefined_flag_CXX=unsupported 13357 always_export_symbols_CXX=yes 13358 file_list_spec_CXX='@' 13359 # Tell ltmain to make .lib files, not .a files. 13360 libext=lib 13361 # Tell ltmain to make .dll files, not .so files. 13362 shrext_cmds=".dll" 13363 # FIXME: Setting linknames here is a bad hack. 13364 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13365 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13366 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13367 else 13368 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13369 fi~ 13370 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13371 linknames=' 13372 # The linker will not automatically build a static lib if we build a DLL. 13373 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13374 enable_shared_with_static_runtimes_CXX=yes 13375 # Don't use ranlib 13376 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13377 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13378 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13379 case $lt_outputfile in 13380 *.exe|*.EXE) ;; 13381 *) 13382 lt_outputfile="$lt_outputfile.exe" 13383 lt_tool_outputfile="$lt_tool_outputfile.exe" 13384 ;; 13385 esac~ 13386 func_to_tool_file "$lt_outputfile"~ 13387 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13388 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13389 $RM "$lt_outputfile.manifest"; 13390 fi' 13391 ;; 13392 *) 13393 # g++ 13394 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13395 # as there is no search path for DLLs. 13396 hardcode_libdir_flag_spec_CXX='-L$libdir' 13397 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13398 allow_undefined_flag_CXX=unsupported 13399 always_export_symbols_CXX=no 13400 enable_shared_with_static_runtimes_CXX=yes 13401 13402 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13403 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13404 # If the export-symbols file already is a .def file (1st line 13405 # is EXPORTS), use it as is; otherwise, prepend... 13406 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13407 cp $export_symbols $output_objdir/$soname.def; 13408 else 13409 echo EXPORTS > $output_objdir/$soname.def; 13410 cat $export_symbols >> $output_objdir/$soname.def; 13411 fi~ 13412 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13413 else 13414 ld_shlibs_CXX=no 13415 fi 13416 ;; 13417 esac 13418 ;; 13419 darwin* | rhapsody*) 13420 13421 13422 archive_cmds_need_lc_CXX=no 13423 hardcode_direct_CXX=no 13424 hardcode_automatic_CXX=yes 13425 hardcode_shlibpath_var_CXX=unsupported 13426 if test "$lt_cv_ld_force_load" = "yes"; then 13427 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13428 13429 else 13430 whole_archive_flag_spec_CXX='' 13431 fi 13432 link_all_deplibs_CXX=yes 13433 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13434 case $cc_basename in 13435 ifort*) _lt_dar_can_shared=yes ;; 13436 *) _lt_dar_can_shared=$GCC ;; 13437 esac 13438 if test "$_lt_dar_can_shared" = "yes"; then 13439 output_verbose_link_cmd=func_echo_all 13440 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13441 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13442 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 13443 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 13444 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13445 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 13446 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 13447 fi 13448 13449 else 13450 ld_shlibs_CXX=no 13451 fi 13452 13453 ;; 13454 13455 dgux*) 13456 case $cc_basename in 13457 ec++*) 13458 # FIXME: insert proper C++ library support 13459 ld_shlibs_CXX=no 13460 ;; 13461 ghcx*) 13462 # Green Hills C++ Compiler 13463 # FIXME: insert proper C++ library support 13464 ld_shlibs_CXX=no 13465 ;; 13466 *) 13467 # FIXME: insert proper C++ library support 13468 ld_shlibs_CXX=no 13469 ;; 13470 esac 13471 ;; 13472 13473 freebsd2.*) 13474 # C++ shared libraries reported to be fairly broken before 13475 # switch to ELF 13476 ld_shlibs_CXX=no 13477 ;; 13478 13479 freebsd-elf*) 13480 archive_cmds_need_lc_CXX=no 13481 ;; 13482 13483 freebsd* | dragonfly*) 13484 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13485 # conventions 13486 ld_shlibs_CXX=yes 13487 ;; 13488 13489 gnu*) 13490 ;; 13491 13492 haiku*) 13493 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13494 link_all_deplibs_CXX=yes 13495 ;; 13496 13497 hpux9*) 13498 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13499 hardcode_libdir_separator_CXX=: 13500 export_dynamic_flag_spec_CXX='${wl}-E' 13501 hardcode_direct_CXX=yes 13502 hardcode_minus_L_CXX=yes # Not in the search PATH, 13503 # but as the default 13504 # location of the library. 13505 13506 case $cc_basename in 13507 CC*) 13508 # FIXME: insert proper C++ library support 13509 ld_shlibs_CXX=no 13510 ;; 13511 aCC*) 13512 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13513 # Commands to make compiler produce verbose output that lists 13514 # what "hidden" libraries, object files and flags are used when 13515 # linking a shared library. 13516 # 13517 # There doesn't appear to be a way to prevent this compiler from 13518 # explicitly linking system object files so we need to strip them 13519 # from the output so that they don't get included in the library 13520 # dependencies. 13521 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13522 ;; 13523 *) 13524 if test "$GXX" = yes; then 13525 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13526 else 13527 # FIXME: insert proper C++ library support 13528 ld_shlibs_CXX=no 13529 fi 13530 ;; 13531 esac 13532 ;; 13533 13534 hpux10*|hpux11*) 13535 if test $with_gnu_ld = no; then 13536 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13537 hardcode_libdir_separator_CXX=: 13538 13539 case $host_cpu in 13540 hppa*64*|ia64*) 13541 ;; 13542 *) 13543 export_dynamic_flag_spec_CXX='${wl}-E' 13544 ;; 13545 esac 13546 fi 13547 case $host_cpu in 13548 hppa*64*|ia64*) 13549 hardcode_direct_CXX=no 13550 hardcode_shlibpath_var_CXX=no 13551 ;; 13552 *) 13553 hardcode_direct_CXX=yes 13554 hardcode_direct_absolute_CXX=yes 13555 hardcode_minus_L_CXX=yes # Not in the search PATH, 13556 # but as the default 13557 # location of the library. 13558 ;; 13559 esac 13560 13561 case $cc_basename in 13562 CC*) 13563 # FIXME: insert proper C++ library support 13564 ld_shlibs_CXX=no 13565 ;; 13566 aCC*) 13567 case $host_cpu in 13568 hppa*64*) 13569 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13570 ;; 13571 ia64*) 13572 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13573 ;; 13574 *) 13575 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13576 ;; 13577 esac 13578 # Commands to make compiler produce verbose output that lists 13579 # what "hidden" libraries, object files and flags are used when 13580 # linking a shared library. 13581 # 13582 # There doesn't appear to be a way to prevent this compiler from 13583 # explicitly linking system object files so we need to strip them 13584 # from the output so that they don't get included in the library 13585 # dependencies. 13586 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13587 ;; 13588 *) 13589 if test "$GXX" = yes; then 13590 if test $with_gnu_ld = no; then 13591 case $host_cpu in 13592 hppa*64*) 13593 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13594 ;; 13595 ia64*) 13596 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13597 ;; 13598 *) 13599 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13600 ;; 13601 esac 13602 fi 13603 else 13604 # FIXME: insert proper C++ library support 13605 ld_shlibs_CXX=no 13606 fi 13607 ;; 13608 esac 13609 ;; 13610 13611 interix[3-9]*) 13612 hardcode_direct_CXX=no 13613 hardcode_shlibpath_var_CXX=no 13614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13615 export_dynamic_flag_spec_CXX='${wl}-E' 13616 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13617 # Instead, shared libraries are loaded at an image base (0x10000000 by 13618 # default) and relocated if they conflict, which is a slow very memory 13619 # consuming and fragmenting process. To avoid this, we pick a random, 13620 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13621 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13622 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13623 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13624 ;; 13625 irix5* | irix6*) 13626 case $cc_basename in 13627 CC*) 13628 # SGI C++ 13629 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13630 13631 # Archives containing C++ object files must be created using 13632 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13633 # necessary to make sure instantiated templates are included 13634 # in the archive. 13635 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13636 ;; 13637 *) 13638 if test "$GXX" = yes; then 13639 if test "$with_gnu_ld" = no; then 13640 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13641 else 13642 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 13643 fi 13644 fi 13645 link_all_deplibs_CXX=yes 13646 ;; 13647 esac 13648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13649 hardcode_libdir_separator_CXX=: 13650 inherit_rpath_CXX=yes 13651 ;; 13652 13653 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13654 case $cc_basename in 13655 KCC*) 13656 # Kuck and Associates, Inc. (KAI) C++ Compiler 13657 13658 # KCC will only create a shared library if the output file 13659 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13660 # to its proper name (with version) after linking. 13661 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13662 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13663 # Commands to make compiler produce verbose output that lists 13664 # what "hidden" libraries, object files and flags are used when 13665 # linking a shared library. 13666 # 13667 # There doesn't appear to be a way to prevent this compiler from 13668 # explicitly linking system object files so we need to strip them 13669 # from the output so that they don't get included in the library 13670 # dependencies. 13671 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13672 13673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13674 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13675 13676 # Archives containing C++ object files must be created using 13677 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13678 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13679 ;; 13680 icpc* | ecpc* ) 13681 # Intel C++ 13682 with_gnu_ld=yes 13683 # version 8.0 and above of icpc choke on multiply defined symbols 13684 # if we add $predep_objects and $postdep_objects, however 7.1 and 13685 # earlier do not add the objects themselves. 13686 case `$CC -V 2>&1` in 13687 *"Version 7."*) 13688 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13689 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13690 ;; 13691 *) # Version 8.0 or newer 13692 tmp_idyn= 13693 case $host_cpu in 13694 ia64*) tmp_idyn=' -i_dynamic';; 13695 esac 13696 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13697 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13698 ;; 13699 esac 13700 archive_cmds_need_lc_CXX=no 13701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13703 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13704 ;; 13705 pgCC* | pgcpp*) 13706 # Portland Group C++ compiler 13707 case `$CC -V` in 13708 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13709 prelink_cmds_CXX='tpldir=Template.dir~ 13710 rm -rf $tpldir~ 13711 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13712 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13713 old_archive_cmds_CXX='tpldir=Template.dir~ 13714 rm -rf $tpldir~ 13715 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13716 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13717 $RANLIB $oldlib' 13718 archive_cmds_CXX='tpldir=Template.dir~ 13719 rm -rf $tpldir~ 13720 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13721 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13722 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13723 rm -rf $tpldir~ 13724 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13725 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13726 ;; 13727 *) # Version 6 and above use weak symbols 13728 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13729 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13730 ;; 13731 esac 13732 13733 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13734 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13735 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 13736 ;; 13737 cxx*) 13738 # Compaq C++ 13739 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13740 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13741 13742 runpath_var=LD_RUN_PATH 13743 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13744 hardcode_libdir_separator_CXX=: 13745 13746 # Commands to make compiler produce verbose output that lists 13747 # what "hidden" libraries, object files and flags are used when 13748 # linking a shared library. 13749 # 13750 # There doesn't appear to be a way to prevent this compiler from 13751 # explicitly linking system object files so we need to strip them 13752 # from the output so that they don't get included in the library 13753 # dependencies. 13754 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 13755 ;; 13756 xl* | mpixl* | bgxl*) 13757 # IBM XL 8.0 on PPC, with GNU ld 13758 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13759 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13760 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13761 if test "x$supports_anon_versioning" = xyes; then 13762 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13764 echo "local: *; };" >> $output_objdir/$libname.ver~ 13765 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13766 fi 13767 ;; 13768 *) 13769 case `$CC -V 2>&1 | sed 5q` in 13770 *Sun\ C*) 13771 # Sun C++ 5.9 13772 no_undefined_flag_CXX=' -zdefs' 13773 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13774 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13775 hardcode_libdir_flag_spec_CXX='-R$libdir' 13776 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 13777 compiler_needs_object_CXX=yes 13778 13779 # Not sure whether something based on 13780 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13781 # would be better. 13782 output_verbose_link_cmd='func_echo_all' 13783 13784 # Archives containing C++ object files must be created using 13785 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13786 # necessary to make sure instantiated templates are included 13787 # in the archive. 13788 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13789 ;; 13790 esac 13791 ;; 13792 esac 13793 ;; 13794 13795 lynxos*) 13796 # FIXME: insert proper C++ library support 13797 ld_shlibs_CXX=no 13798 ;; 13799 13800 m88k*) 13801 # FIXME: insert proper C++ library support 13802 ld_shlibs_CXX=no 13803 ;; 13804 13805 mvs*) 13806 case $cc_basename in 13807 cxx*) 13808 # FIXME: insert proper C++ library support 13809 ld_shlibs_CXX=no 13810 ;; 13811 *) 13812 # FIXME: insert proper C++ library support 13813 ld_shlibs_CXX=no 13814 ;; 13815 esac 13816 ;; 13817 13818 netbsd*) 13819 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13820 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13821 wlarc= 13822 hardcode_libdir_flag_spec_CXX='-R$libdir' 13823 hardcode_direct_CXX=yes 13824 hardcode_shlibpath_var_CXX=no 13825 fi 13826 # Workaround some broken pre-1.5 toolchains 13827 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13828 ;; 13829 13830 *nto* | *qnx*) 13831 ld_shlibs_CXX=yes 13832 ;; 13833 13834 openbsd2*) 13835 # C++ shared libraries are fairly broken 13836 ld_shlibs_CXX=no 13837 ;; 13838 13839 openbsd*) 13840 if test -f /usr/libexec/ld.so; then 13841 hardcode_direct_CXX=yes 13842 hardcode_shlibpath_var_CXX=no 13843 hardcode_direct_absolute_CXX=yes 13844 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13845 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13847 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13848 export_dynamic_flag_spec_CXX='${wl}-E' 13849 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13850 fi 13851 output_verbose_link_cmd=func_echo_all 13852 else 13853 ld_shlibs_CXX=no 13854 fi 13855 ;; 13856 13857 osf3* | osf4* | osf5*) 13858 case $cc_basename in 13859 KCC*) 13860 # Kuck and Associates, Inc. (KAI) C++ Compiler 13861 13862 # KCC will only create a shared library if the output file 13863 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13864 # to its proper name (with version) after linking. 13865 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13866 13867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13868 hardcode_libdir_separator_CXX=: 13869 13870 # Archives containing C++ object files must be created using 13871 # the KAI C++ compiler. 13872 case $host in 13873 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13874 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13875 esac 13876 ;; 13877 RCC*) 13878 # Rational C++ 2.4.1 13879 # FIXME: insert proper C++ library support 13880 ld_shlibs_CXX=no 13881 ;; 13882 cxx*) 13883 case $host in 13884 osf3*) 13885 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13886 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13887 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13888 ;; 13889 *) 13890 allow_undefined_flag_CXX=' -expect_unresolved \*' 13891 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13892 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13893 echo "-hidden">> $lib.exp~ 13894 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 13895 $RM $lib.exp' 13896 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13897 ;; 13898 esac 13899 13900 hardcode_libdir_separator_CXX=: 13901 13902 # Commands to make compiler produce verbose output that lists 13903 # what "hidden" libraries, object files and flags are used when 13904 # linking a shared library. 13905 # 13906 # There doesn't appear to be a way to prevent this compiler from 13907 # explicitly linking system object files so we need to strip them 13908 # from the output so that they don't get included in the library 13909 # dependencies. 13910 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13911 ;; 13912 *) 13913 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13914 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13915 case $host in 13916 osf3*) 13917 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13918 ;; 13919 *) 13920 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13921 ;; 13922 esac 13923 13924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13925 hardcode_libdir_separator_CXX=: 13926 13927 # Commands to make compiler produce verbose output that lists 13928 # what "hidden" libraries, object files and flags are used when 13929 # linking a shared library. 13930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13931 13932 else 13933 # FIXME: insert proper C++ library support 13934 ld_shlibs_CXX=no 13935 fi 13936 ;; 13937 esac 13938 ;; 13939 13940 psos*) 13941 # FIXME: insert proper C++ library support 13942 ld_shlibs_CXX=no 13943 ;; 13944 13945 sunos4*) 13946 case $cc_basename in 13947 CC*) 13948 # Sun C++ 4.x 13949 # FIXME: insert proper C++ library support 13950 ld_shlibs_CXX=no 13951 ;; 13952 lcc*) 13953 # Lucid 13954 # FIXME: insert proper C++ library support 13955 ld_shlibs_CXX=no 13956 ;; 13957 *) 13958 # FIXME: insert proper C++ library support 13959 ld_shlibs_CXX=no 13960 ;; 13961 esac 13962 ;; 13963 13964 solaris*) 13965 case $cc_basename in 13966 CC* | sunCC*) 13967 # Sun C++ 4.2, 5.x and Centerline C++ 13968 archive_cmds_need_lc_CXX=yes 13969 no_undefined_flag_CXX=' -zdefs' 13970 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13971 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13972 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13973 13974 hardcode_libdir_flag_spec_CXX='-R$libdir' 13975 hardcode_shlibpath_var_CXX=no 13976 case $host_os in 13977 solaris2.[0-5] | solaris2.[0-5].*) ;; 13978 *) 13979 # The compiler driver will combine and reorder linker options, 13980 # but understands `-z linker_flag'. 13981 # Supported since Solaris 2.6 (maybe 2.5.1?) 13982 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13983 ;; 13984 esac 13985 link_all_deplibs_CXX=yes 13986 13987 output_verbose_link_cmd='func_echo_all' 13988 13989 # Archives containing C++ object files must be created using 13990 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13991 # necessary to make sure instantiated templates are included 13992 # in the archive. 13993 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13994 ;; 13995 gcx*) 13996 # Green Hills C++ Compiler 13997 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13998 13999 # The C++ compiler must be used to create the archive. 14000 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14001 ;; 14002 *) 14003 # GNU C++ compiler with Solaris linker 14004 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14005 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14006 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14007 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14008 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14009 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14010 14011 # Commands to make compiler produce verbose output that lists 14012 # what "hidden" libraries, object files and flags are used when 14013 # linking a shared library. 14014 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14015 else 14016 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14017 # platform. 14018 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14019 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14020 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14021 14022 # Commands to make compiler produce verbose output that lists 14023 # what "hidden" libraries, object files and flags are used when 14024 # linking a shared library. 14025 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14026 fi 14027 14028 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14029 case $host_os in 14030 solaris2.[0-5] | solaris2.[0-5].*) ;; 14031 *) 14032 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14033 ;; 14034 esac 14035 fi 14036 ;; 14037 esac 14038 ;; 14039 14040 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14041 no_undefined_flag_CXX='${wl}-z,text' 14042 archive_cmds_need_lc_CXX=no 14043 hardcode_shlibpath_var_CXX=no 14044 runpath_var='LD_RUN_PATH' 14045 14046 case $cc_basename in 14047 CC*) 14048 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14049 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14050 ;; 14051 *) 14052 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14053 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14054 ;; 14055 esac 14056 ;; 14057 14058 sysv5* | sco3.2v5* | sco5v6*) 14059 # Note: We can NOT use -z defs as we might desire, because we do not 14060 # link with -lc, and that would cause any symbols used from libc to 14061 # always be unresolved, which means just about no library would 14062 # ever link correctly. If we're not using GNU ld we use -z text 14063 # though, which does catch some bad symbols but isn't as heavy-handed 14064 # as -z defs. 14065 no_undefined_flag_CXX='${wl}-z,text' 14066 allow_undefined_flag_CXX='${wl}-z,nodefs' 14067 archive_cmds_need_lc_CXX=no 14068 hardcode_shlibpath_var_CXX=no 14069 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14070 hardcode_libdir_separator_CXX=':' 14071 link_all_deplibs_CXX=yes 14072 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14073 runpath_var='LD_RUN_PATH' 14074 14075 case $cc_basename in 14076 CC*) 14077 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14078 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14079 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14080 '"$old_archive_cmds_CXX" 14081 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14082 '"$reload_cmds_CXX" 14083 ;; 14084 *) 14085 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14086 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14087 ;; 14088 esac 14089 ;; 14090 14091 tandem*) 14092 case $cc_basename in 14093 NCC*) 14094 # NonStop-UX NCC 3.20 14095 # FIXME: insert proper C++ library support 14096 ld_shlibs_CXX=no 14097 ;; 14098 *) 14099 # FIXME: insert proper C++ library support 14100 ld_shlibs_CXX=no 14101 ;; 14102 esac 14103 ;; 14104 14105 vxworks*) 14106 # FIXME: insert proper C++ library support 14107 ld_shlibs_CXX=no 14108 ;; 14109 14110 *) 14111 # FIXME: insert proper C++ library support 14112 ld_shlibs_CXX=no 14113 ;; 14114 esac 14115 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14117 $as_echo "$ld_shlibs_CXX" >&6; } 14118 test "$ld_shlibs_CXX" = no && can_build_shared=no 14119 14120 GCC_CXX="$GXX" 14121 LD_CXX="$LD" 14122 14123 ## CAVEAT EMPTOR: 14124 ## There is no encapsulation within the following macros, do not change 14125 ## the running order or otherwise move them around unless you know exactly 14126 ## what you are doing... 14127 # Dependencies to place before and after the object being linked: 14128 predep_objects_CXX= 14129 postdep_objects_CXX= 14130 predeps_CXX= 14131 postdeps_CXX= 14132 compiler_lib_search_path_CXX= 14133 14134 cat > conftest.$ac_ext <<_LT_EOF 14135 class Foo 14136 { 14137 public: 14138 Foo (void) { a = 0; } 14139 private: 14140 int a; 14141 }; 14142 _LT_EOF 14143 14144 14145 _lt_libdeps_save_CFLAGS=$CFLAGS 14146 case "$CC $CFLAGS " in #( 14147 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14148 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14149 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 4011 14150 esac 4012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4013 $as_echo "$ac_try_echo")>&54014 (eval "$ac_compile") 2>conftest.er114151 14152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14153 (eval $ac_compile) 2>&5 4015 14154 ac_status=$? 4016 grep -v '^ *+' conftest.er1 >conftest.err 4017 rm -f conftest.er1 4018 cat conftest.err >&5 4019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4020 (exit $ac_status); } && { 4021 test -z "$ac_c_werror_flag" || 4022 test ! -s conftest.err 4023 } && test -s conftest.$ac_objext; then 4024 ac_header_compiler=yes 4025 else 4026 $as_echo "$as_me: failed program was:" >&5 4027 sed 's/^/| /' conftest.$ac_ext >&5 4028 4029 ac_header_compiler=no 4030 fi 4031 4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4034 $as_echo "$ac_header_compiler" >&6; } 4035 4036 # Is the header present? 4037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 4038 $as_echo_n "checking $ac_header presence... " >&6; } 4039 cat >conftest.$ac_ext <<_ACEOF 4040 /* confdefs.h. */ 4041 _ACEOF 4042 cat confdefs.h >>conftest.$ac_ext 4043 cat >>conftest.$ac_ext <<_ACEOF 4044 /* end confdefs.h. */ 4045 #include <$ac_header> 4046 _ACEOF 4047 if { (ac_try="$ac_cpp conftest.$ac_ext" 4048 case "(($ac_try" in 4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4050 *) ac_try_echo=$ac_try;; 14155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14156 test $ac_status = 0; }; then 14157 # Parse the compiler output and extract the necessary 14158 # objects, libraries and library flags. 14159 14160 # Sentinel used to keep track of whether or not we are before 14161 # the conftest object file. 14162 pre_test_object_deps_done=no 14163 14164 for p in `eval "$output_verbose_link_cmd"`; do 14165 case ${prev}${p} in 14166 14167 -L* | -R* | -l*) 14168 # Some compilers place space between "-{L,R}" and the path. 14169 # Remove the space. 14170 if test $p = "-L" || 14171 test $p = "-R"; then 14172 prev=$p 14173 continue 14174 fi 14175 14176 # Expand the sysroot to ease extracting the directories later. 14177 if test -z "$prev"; then 14178 case $p in 14179 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14180 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14181 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14182 esac 14183 fi 14184 case $p in 14185 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14186 esac 14187 if test "$pre_test_object_deps_done" = no; then 14188 case ${prev} in 14189 -L | -R) 14190 # Internal compiler library paths should come after those 14191 # provided the user. The postdeps already come after the 14192 # user supplied libs so there is no need to process them. 14193 if test -z "$compiler_lib_search_path_CXX"; then 14194 compiler_lib_search_path_CXX="${prev}${p}" 14195 else 14196 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14197 fi 14198 ;; 14199 # The "-l" case would never come before the object being 14200 # linked, so don't bother handling this case. 14201 esac 14202 else 14203 if test -z "$postdeps_CXX"; then 14204 postdeps_CXX="${prev}${p}" 14205 else 14206 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14207 fi 14208 fi 14209 prev= 14210 ;; 14211 14212 *.lto.$objext) ;; # Ignore GCC LTO objects 14213 *.$objext) 14214 # This assumes that the test object file only shows up 14215 # once in the compiler output. 14216 if test "$p" = "conftest.$objext"; then 14217 pre_test_object_deps_done=yes 14218 continue 14219 fi 14220 14221 if test "$pre_test_object_deps_done" = no; then 14222 if test -z "$predep_objects_CXX"; then 14223 predep_objects_CXX="$p" 14224 else 14225 predep_objects_CXX="$predep_objects_CXX $p" 14226 fi 14227 else 14228 if test -z "$postdep_objects_CXX"; then 14229 postdep_objects_CXX="$p" 14230 else 14231 postdep_objects_CXX="$postdep_objects_CXX $p" 14232 fi 14233 fi 14234 ;; 14235 14236 *) ;; # Ignore the rest. 14237 14238 esac 14239 done 14240 14241 # Clean up. 14242 rm -f a.out a.exe 14243 else 14244 echo "libtool.m4: error: problem compiling CXX test program" 14245 fi 14246 14247 $RM -f confest.$objext 14248 CFLAGS=$_lt_libdeps_save_CFLAGS 14249 14250 # PORTME: override above test on systems where it is broken 14251 case $host_os in 14252 interix[3-9]*) 14253 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14254 # hack all around it, let's just trust "g++" to DTRT. 14255 predep_objects_CXX= 14256 postdep_objects_CXX= 14257 postdeps_CXX= 14258 ;; 14259 14260 linux*) 14261 case `$CC -V 2>&1 | sed 5q` in 14262 *Sun\ C*) 14263 # Sun C++ 5.9 14264 14265 # The more standards-conforming stlport4 library is 14266 # incompatible with the Cstd library. Avoid specifying 14267 # it if it's in CXXFLAGS. Ignore libCrun as 14268 # -library=stlport4 depends on it. 14269 case " $CXX $CXXFLAGS " in 14270 *" -library=stlport4 "*) 14271 solaris_use_stlport4=yes 14272 ;; 14273 esac 14274 14275 if test "$solaris_use_stlport4" != yes; then 14276 postdeps_CXX='-library=Cstd -library=Crun' 14277 fi 14278 ;; 14279 esac 14280 ;; 14281 14282 solaris*) 14283 case $cc_basename in 14284 CC* | sunCC*) 14285 # The more standards-conforming stlport4 library is 14286 # incompatible with the Cstd library. Avoid specifying 14287 # it if it's in CXXFLAGS. Ignore libCrun as 14288 # -library=stlport4 depends on it. 14289 case " $CXX $CXXFLAGS " in 14290 *" -library=stlport4 "*) 14291 solaris_use_stlport4=yes 14292 ;; 14293 esac 14294 14295 # Adding this requires a known-good setup of shared libraries for 14296 # Sun compiler versions before 5.6, else PIC objects from an old 14297 # archive will be linked into the output, leading to subtle bugs. 14298 if test "$solaris_use_stlport4" != yes; then 14299 postdeps_CXX='-library=Cstd -library=Crun' 14300 fi 14301 ;; 14302 esac 14303 ;; 4051 14304 esac 4052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4053 $as_echo "$ac_try_echo") >&5 4054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4055 ac_status=$? 4056 grep -v '^ *+' conftest.er1 >conftest.err 4057 rm -f conftest.er1 4058 cat conftest.err >&5 4059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4060 (exit $ac_status); } >/dev/null && { 4061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4062 test ! -s conftest.err 4063 }; then 4064 ac_header_preproc=yes 4065 else 4066 $as_echo "$as_me: failed program was:" >&5 4067 sed 's/^/| /' conftest.$ac_ext >&5 4068 4069 ac_header_preproc=no 4070 fi 4071 4072 rm -f conftest.err conftest.$ac_ext 4073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4074 $as_echo "$ac_header_preproc" >&6; } 4075 4076 # So? What about this header? 4077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4078 yes:no: ) 4079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4083 ac_header_preproc=yes 14305 14306 14307 case " $postdeps_CXX " in 14308 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 14309 esac 14310 compiler_lib_search_dirs_CXX= 14311 if test -n "${compiler_lib_search_path_CXX}"; then 14312 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14313 fi 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 lt_prog_compiler_wl_CXX= 14346 lt_prog_compiler_pic_CXX= 14347 lt_prog_compiler_static_CXX= 14348 14349 14350 # C++ specific cases for pic, static, wl, etc. 14351 if test "$GXX" = yes; then 14352 lt_prog_compiler_wl_CXX='-Wl,' 14353 lt_prog_compiler_static_CXX='-static' 14354 14355 case $host_os in 14356 aix*) 14357 # All AIX code is PIC. 14358 if test "$host_cpu" = ia64; then 14359 # AIX 5 now supports IA64 processor 14360 lt_prog_compiler_static_CXX='-Bstatic' 14361 fi 14362 ;; 14363 14364 amigaos*) 14365 case $host_cpu in 14366 powerpc) 14367 # see comment about AmigaOS4 .so support 14368 lt_prog_compiler_pic_CXX='-fPIC' 14369 ;; 14370 m68k) 14371 # FIXME: we need at least 68020 code to build shared libraries, but 14372 # adding the `-m68020' flag to GCC prevents building anything better, 14373 # like `-m68040'. 14374 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14375 ;; 14376 esac 14377 ;; 14378 14379 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14380 # PIC is the default for these OSes. 14381 ;; 14382 mingw* | cygwin* | os2* | pw32* | cegcc*) 14383 # This hack is so that the source file can tell whether it is being 14384 # built for inclusion in a dll (and should export symbols for example). 14385 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14386 # (--disable-auto-import) libraries 14387 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14388 ;; 14389 darwin* | rhapsody*) 14390 # PIC is the default on this platform 14391 # Common symbols not allowed in MH_DYLIB files 14392 lt_prog_compiler_pic_CXX='-fno-common' 14393 ;; 14394 *djgpp*) 14395 # DJGPP does not support shared libraries at all 14396 lt_prog_compiler_pic_CXX= 14397 ;; 14398 haiku*) 14399 # PIC is the default for Haiku. 14400 # The "-static" flag exists, but is broken. 14401 lt_prog_compiler_static_CXX= 14402 ;; 14403 interix[3-9]*) 14404 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14405 # Instead, we relocate shared libraries at runtime. 14406 ;; 14407 sysv4*MP*) 14408 if test -d /usr/nec; then 14409 lt_prog_compiler_pic_CXX=-Kconform_pic 14410 fi 14411 ;; 14412 hpux*) 14413 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14414 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14415 # sets the default TLS model and affects inlining. 14416 case $host_cpu in 14417 hppa*64*) 14418 ;; 14419 *) 14420 lt_prog_compiler_pic_CXX='-fPIC' 14421 ;; 14422 esac 14423 ;; 14424 *qnx* | *nto*) 14425 # QNX uses GNU C++, but need to define -shared option too, otherwise 14426 # it will coredump. 14427 lt_prog_compiler_pic_CXX='-fPIC -shared' 14428 ;; 14429 *) 14430 lt_prog_compiler_pic_CXX='-fPIC' 14431 ;; 14432 esac 14433 else 14434 case $host_os in 14435 aix[4-9]*) 14436 # All AIX code is PIC. 14437 if test "$host_cpu" = ia64; then 14438 # AIX 5 now supports IA64 processor 14439 lt_prog_compiler_static_CXX='-Bstatic' 14440 else 14441 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14442 fi 14443 ;; 14444 chorus*) 14445 case $cc_basename in 14446 cxch68*) 14447 # Green Hills C++ Compiler 14448 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14449 ;; 14450 esac 14451 ;; 14452 mingw* | cygwin* | os2* | pw32* | cegcc*) 14453 # This hack is so that the source file can tell whether it is being 14454 # built for inclusion in a dll (and should export symbols for example). 14455 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14456 ;; 14457 dgux*) 14458 case $cc_basename in 14459 ec++*) 14460 lt_prog_compiler_pic_CXX='-KPIC' 14461 ;; 14462 ghcx*) 14463 # Green Hills C++ Compiler 14464 lt_prog_compiler_pic_CXX='-pic' 14465 ;; 14466 *) 14467 ;; 14468 esac 14469 ;; 14470 freebsd* | dragonfly*) 14471 # FreeBSD uses GNU C++ 14472 ;; 14473 hpux9* | hpux10* | hpux11*) 14474 case $cc_basename in 14475 CC*) 14476 lt_prog_compiler_wl_CXX='-Wl,' 14477 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14478 if test "$host_cpu" != ia64; then 14479 lt_prog_compiler_pic_CXX='+Z' 14480 fi 14481 ;; 14482 aCC*) 14483 lt_prog_compiler_wl_CXX='-Wl,' 14484 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14485 case $host_cpu in 14486 hppa*64*|ia64*) 14487 # +Z the default 14488 ;; 14489 *) 14490 lt_prog_compiler_pic_CXX='+Z' 14491 ;; 14492 esac 14493 ;; 14494 *) 14495 ;; 14496 esac 14497 ;; 14498 interix*) 14499 # This is c89, which is MS Visual C++ (no shared libs) 14500 # Anyone wants to do a port? 14501 ;; 14502 irix5* | irix6* | nonstopux*) 14503 case $cc_basename in 14504 CC*) 14505 lt_prog_compiler_wl_CXX='-Wl,' 14506 lt_prog_compiler_static_CXX='-non_shared' 14507 # CC pic flag -KPIC is the default. 14508 ;; 14509 *) 14510 ;; 14511 esac 14512 ;; 14513 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14514 case $cc_basename in 14515 KCC*) 14516 # KAI C++ Compiler 14517 lt_prog_compiler_wl_CXX='--backend -Wl,' 14518 lt_prog_compiler_pic_CXX='-fPIC' 14519 ;; 14520 ecpc* ) 14521 # old Intel C++ for x86_64 which still supported -KPIC. 14522 lt_prog_compiler_wl_CXX='-Wl,' 14523 lt_prog_compiler_pic_CXX='-KPIC' 14524 lt_prog_compiler_static_CXX='-static' 14525 ;; 14526 icpc* ) 14527 # Intel C++, used to be incompatible with GCC. 14528 # ICC 10 doesn't accept -KPIC any more. 14529 lt_prog_compiler_wl_CXX='-Wl,' 14530 lt_prog_compiler_pic_CXX='-fPIC' 14531 lt_prog_compiler_static_CXX='-static' 14532 ;; 14533 pgCC* | pgcpp*) 14534 # Portland Group C++ compiler 14535 lt_prog_compiler_wl_CXX='-Wl,' 14536 lt_prog_compiler_pic_CXX='-fpic' 14537 lt_prog_compiler_static_CXX='-Bstatic' 14538 ;; 14539 cxx*) 14540 # Compaq C++ 14541 # Make sure the PIC flag is empty. It appears that all Alpha 14542 # Linux and Compaq Tru64 Unix objects are PIC. 14543 lt_prog_compiler_pic_CXX= 14544 lt_prog_compiler_static_CXX='-non_shared' 14545 ;; 14546 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14547 # IBM XL 8.0, 9.0 on PPC and BlueGene 14548 lt_prog_compiler_wl_CXX='-Wl,' 14549 lt_prog_compiler_pic_CXX='-qpic' 14550 lt_prog_compiler_static_CXX='-qstaticlink' 14551 ;; 14552 *) 14553 case `$CC -V 2>&1 | sed 5q` in 14554 *Sun\ C*) 14555 # Sun C++ 5.9 14556 lt_prog_compiler_pic_CXX='-KPIC' 14557 lt_prog_compiler_static_CXX='-Bstatic' 14558 lt_prog_compiler_wl_CXX='-Qoption ld ' 14559 ;; 14560 esac 14561 ;; 14562 esac 14563 ;; 14564 lynxos*) 14565 ;; 14566 m88k*) 14567 ;; 14568 mvs*) 14569 case $cc_basename in 14570 cxx*) 14571 lt_prog_compiler_pic_CXX='-W c,exportall' 14572 ;; 14573 *) 14574 ;; 14575 esac 14576 ;; 14577 netbsd* | netbsdelf*-gnu) 14578 ;; 14579 *qnx* | *nto*) 14580 # QNX uses GNU C++, but need to define -shared option too, otherwise 14581 # it will coredump. 14582 lt_prog_compiler_pic_CXX='-fPIC -shared' 14583 ;; 14584 osf3* | osf4* | osf5*) 14585 case $cc_basename in 14586 KCC*) 14587 lt_prog_compiler_wl_CXX='--backend -Wl,' 14588 ;; 14589 RCC*) 14590 # Rational C++ 2.4.1 14591 lt_prog_compiler_pic_CXX='-pic' 14592 ;; 14593 cxx*) 14594 # Digital/Compaq C++ 14595 lt_prog_compiler_wl_CXX='-Wl,' 14596 # Make sure the PIC flag is empty. It appears that all Alpha 14597 # Linux and Compaq Tru64 Unix objects are PIC. 14598 lt_prog_compiler_pic_CXX= 14599 lt_prog_compiler_static_CXX='-non_shared' 14600 ;; 14601 *) 14602 ;; 14603 esac 14604 ;; 14605 psos*) 14606 ;; 14607 solaris*) 14608 case $cc_basename in 14609 CC* | sunCC*) 14610 # Sun C++ 4.2, 5.x and Centerline C++ 14611 lt_prog_compiler_pic_CXX='-KPIC' 14612 lt_prog_compiler_static_CXX='-Bstatic' 14613 lt_prog_compiler_wl_CXX='-Qoption ld ' 14614 ;; 14615 gcx*) 14616 # Green Hills C++ Compiler 14617 lt_prog_compiler_pic_CXX='-PIC' 14618 ;; 14619 *) 14620 ;; 14621 esac 14622 ;; 14623 sunos4*) 14624 case $cc_basename in 14625 CC*) 14626 # Sun C++ 4.x 14627 lt_prog_compiler_pic_CXX='-pic' 14628 lt_prog_compiler_static_CXX='-Bstatic' 14629 ;; 14630 lcc*) 14631 # Lucid 14632 lt_prog_compiler_pic_CXX='-pic' 14633 ;; 14634 *) 14635 ;; 14636 esac 14637 ;; 14638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14639 case $cc_basename in 14640 CC*) 14641 lt_prog_compiler_wl_CXX='-Wl,' 14642 lt_prog_compiler_pic_CXX='-KPIC' 14643 lt_prog_compiler_static_CXX='-Bstatic' 14644 ;; 14645 esac 14646 ;; 14647 tandem*) 14648 case $cc_basename in 14649 NCC*) 14650 # NonStop-UX NCC 3.20 14651 lt_prog_compiler_pic_CXX='-KPIC' 14652 ;; 14653 *) 14654 ;; 14655 esac 14656 ;; 14657 vxworks*) 14658 ;; 14659 *) 14660 lt_prog_compiler_can_build_shared_CXX=no 14661 ;; 14662 esac 14663 fi 14664 14665 case $host_os in 14666 # For platforms which do not support PIC, -DPIC is meaningless: 14667 *djgpp*) 14668 lt_prog_compiler_pic_CXX= 4084 14669 ;; 4085 no:yes:* ) 4086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4089 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4093 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4098 ( cat <<\_ASBOX 4099 ## --------------------------------- ## 4100 ## Report this to BUG-REPORT-ADDRESS ## 4101 ## --------------------------------- ## 4102 _ASBOX 4103 ) | sed "s/^/$as_me: WARNING: /" >&2 14670 *) 14671 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 4104 14672 ;; 4105 14673 esac 4106 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4107 $as_echo_n "checking for $ac_header... " >&6; } 4108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14674 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14676 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14677 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 4109 14678 $as_echo_n "(cached) " >&6 4110 14679 else 4111 eval "$as_ac_Header=\$ac_header_preproc" 4112 fi 4113 ac_res=`eval 'as_val=${'$as_ac_Header'} 4114 $as_echo "$as_val"'` 4115 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4116 $as_echo "$ac_res" >&6; } 4117 4118 fi 4119 as_val=`eval 'as_val=${'$as_ac_Header'} 4120 $as_echo "$as_val"'` 4121 if test "x$as_val" = x""yes; then 14680 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14681 fi 14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14683 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14684 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14685 14686 # 14687 # Check to make sure the PIC flag actually works. 14688 # 14689 if test -n "$lt_prog_compiler_pic_CXX"; then 14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14691 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14692 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14693 $as_echo_n "(cached) " >&6 14694 else 14695 lt_cv_prog_compiler_pic_works_CXX=no 14696 ac_outfile=conftest.$ac_objext 14697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14698 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14699 # Insert the option either (1) after the last *FLAGS variable, or 14700 # (2) before a word containing "conftest.", or (3) at the end. 14701 # Note that $ac_compile itself does not contain backslashes and begins 14702 # with a dollar sign (not a hyphen), so the echo should work correctly. 14703 # The option is referenced via a variable to avoid confusing sed. 14704 lt_compile=`echo "$ac_compile" | $SED \ 14705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14707 -e 's:$: $lt_compiler_flag:'` 14708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14709 (eval "$lt_compile" 2>conftest.err) 14710 ac_status=$? 14711 cat conftest.err >&5 14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14713 if (exit $ac_status) && test -s "$ac_outfile"; then 14714 # The compiler can only warn and ignore the option if not recognized 14715 # So say no if there are warnings other than the usual output. 14716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14719 lt_cv_prog_compiler_pic_works_CXX=yes 14720 fi 14721 fi 14722 $RM conftest* 14723 14724 fi 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14726 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14727 14728 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14729 case $lt_prog_compiler_pic_CXX in 14730 "" | " "*) ;; 14731 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14732 esac 14733 else 14734 lt_prog_compiler_pic_CXX= 14735 lt_prog_compiler_can_build_shared_CXX=no 14736 fi 14737 14738 fi 14739 14740 14741 14742 14743 14744 # 14745 # Check to make sure the static flag actually works. 14746 # 14747 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14749 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14750 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14751 $as_echo_n "(cached) " >&6 14752 else 14753 lt_cv_prog_compiler_static_works_CXX=no 14754 save_LDFLAGS="$LDFLAGS" 14755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14756 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14758 # The linker can only warn and ignore the option if not recognized 14759 # So say no if there are warnings 14760 if test -s conftest.err; then 14761 # Append any errors to the config.log. 14762 cat conftest.err 1>&5 14763 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14765 if diff conftest.exp conftest.er2 >/dev/null; then 14766 lt_cv_prog_compiler_static_works_CXX=yes 14767 fi 14768 else 14769 lt_cv_prog_compiler_static_works_CXX=yes 14770 fi 14771 fi 14772 $RM -r conftest* 14773 LDFLAGS="$save_LDFLAGS" 14774 14775 fi 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14777 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14778 14779 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14780 : 14781 else 14782 lt_prog_compiler_static_CXX= 14783 fi 14784 14785 14786 14787 14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14789 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14790 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14791 $as_echo_n "(cached) " >&6 14792 else 14793 lt_cv_prog_compiler_c_o_CXX=no 14794 $RM -r conftest 2>/dev/null 14795 mkdir conftest 14796 cd conftest 14797 mkdir out 14798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14799 14800 lt_compiler_flag="-o out/conftest2.$ac_objext" 14801 # Insert the option either (1) after the last *FLAGS variable, or 14802 # (2) before a word containing "conftest.", or (3) at the end. 14803 # Note that $ac_compile itself does not contain backslashes and begins 14804 # with a dollar sign (not a hyphen), so the echo should work correctly. 14805 lt_compile=`echo "$ac_compile" | $SED \ 14806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14808 -e 's:$: $lt_compiler_flag:'` 14809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14810 (eval "$lt_compile" 2>out/conftest.err) 14811 ac_status=$? 14812 cat out/conftest.err >&5 14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14814 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14815 then 14816 # The compiler can only warn and ignore the option if not recognized 14817 # So say no if there are warnings 14818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14821 lt_cv_prog_compiler_c_o_CXX=yes 14822 fi 14823 fi 14824 chmod u+w . 2>&5 14825 $RM conftest* 14826 # SGI C++ compiler will create directory out/ii_files/ for 14827 # template instantiation 14828 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14829 $RM out/* && rmdir out 14830 cd .. 14831 $RM -r conftest 14832 $RM conftest* 14833 14834 fi 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14836 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14837 14838 14839 14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14841 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14842 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14843 $as_echo_n "(cached) " >&6 14844 else 14845 lt_cv_prog_compiler_c_o_CXX=no 14846 $RM -r conftest 2>/dev/null 14847 mkdir conftest 14848 cd conftest 14849 mkdir out 14850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14851 14852 lt_compiler_flag="-o out/conftest2.$ac_objext" 14853 # Insert the option either (1) after the last *FLAGS variable, or 14854 # (2) before a word containing "conftest.", or (3) at the end. 14855 # Note that $ac_compile itself does not contain backslashes and begins 14856 # with a dollar sign (not a hyphen), so the echo should work correctly. 14857 lt_compile=`echo "$ac_compile" | $SED \ 14858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14860 -e 's:$: $lt_compiler_flag:'` 14861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14862 (eval "$lt_compile" 2>out/conftest.err) 14863 ac_status=$? 14864 cat out/conftest.err >&5 14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14866 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14867 then 14868 # The compiler can only warn and ignore the option if not recognized 14869 # So say no if there are warnings 14870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14873 lt_cv_prog_compiler_c_o_CXX=yes 14874 fi 14875 fi 14876 chmod u+w . 2>&5 14877 $RM conftest* 14878 # SGI C++ compiler will create directory out/ii_files/ for 14879 # template instantiation 14880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14881 $RM out/* && rmdir out 14882 cd .. 14883 $RM -r conftest 14884 $RM conftest* 14885 14886 fi 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14888 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14889 14890 14891 14892 14893 hard_links="nottested" 14894 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14895 # do not overwrite the value of need_locks provided by the user 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14897 $as_echo_n "checking if we can lock with hard links... " >&6; } 14898 hard_links=yes 14899 $RM conftest* 14900 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14901 touch conftest.a 14902 ln conftest.a conftest.b 2>&5 || hard_links=no 14903 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14905 $as_echo "$hard_links" >&6; } 14906 if test "$hard_links" = no; then 14907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14908 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14909 need_locks=warn 14910 fi 14911 else 14912 need_locks=no 14913 fi 14914 14915 14916 14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14918 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14919 14920 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14921 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14922 case $host_os in 14923 aix[4-9]*) 14924 # If we're using GNU nm, then we don't want the "-C" option. 14925 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14926 # Also, AIX nm treats weak defined symbols like other global defined 14927 # symbols, whereas GNU nm marks them as "W". 14928 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14929 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14930 else 14931 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14932 fi 14933 ;; 14934 pw32*) 14935 export_symbols_cmds_CXX="$ltdll_cmds" 14936 ;; 14937 cygwin* | mingw* | cegcc*) 14938 case $cc_basename in 14939 cl*) 14940 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14941 ;; 14942 *) 14943 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14944 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14945 ;; 14946 esac 14947 ;; 14948 linux* | k*bsd*-gnu | gnu*) 14949 link_all_deplibs_CXX=no 14950 ;; 14951 *) 14952 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14953 ;; 14954 esac 14955 14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14957 $as_echo "$ld_shlibs_CXX" >&6; } 14958 test "$ld_shlibs_CXX" = no && can_build_shared=no 14959 14960 with_gnu_ld_CXX=$with_gnu_ld 14961 14962 14963 14964 14965 14966 14967 # 14968 # Do we need to explicitly link libc? 14969 # 14970 case "x$archive_cmds_need_lc_CXX" in 14971 x|xyes) 14972 # Assume -lc should be added 14973 archive_cmds_need_lc_CXX=yes 14974 14975 if test "$enable_shared" = yes && test "$GCC" = yes; then 14976 case $archive_cmds_CXX in 14977 *'~'*) 14978 # FIXME: we may have to deal with multi-command sequences. 14979 ;; 14980 '$CC '*) 14981 # Test whether the compiler implicitly links with -lc since on some 14982 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14983 # to ld, don't add -lc before -lgcc. 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14985 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14986 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14987 $as_echo_n "(cached) " >&6 14988 else 14989 $RM conftest* 14990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14991 14992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14993 (eval $ac_compile) 2>&5 14994 ac_status=$? 14995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14996 test $ac_status = 0; } 2>conftest.err; then 14997 soname=conftest 14998 lib=conftest 14999 libobjs=conftest.$ac_objext 15000 deplibs= 15001 wl=$lt_prog_compiler_wl_CXX 15002 pic_flag=$lt_prog_compiler_pic_CXX 15003 compiler_flags=-v 15004 linker_flags=-v 15005 verstring= 15006 output_objdir=. 15007 libname=conftest 15008 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15009 allow_undefined_flag_CXX= 15010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15011 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15012 ac_status=$? 15013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15014 test $ac_status = 0; } 15015 then 15016 lt_cv_archive_cmds_need_lc_CXX=no 15017 else 15018 lt_cv_archive_cmds_need_lc_CXX=yes 15019 fi 15020 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15021 else 15022 cat conftest.err 1>&5 15023 fi 15024 $RM conftest* 15025 15026 fi 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15028 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15029 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15030 ;; 15031 esac 15032 fi 15033 ;; 15034 esac 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15098 $as_echo_n "checking dynamic linker characteristics... " >&6; } 15099 15100 library_names_spec= 15101 libname_spec='lib$name' 15102 soname_spec= 15103 shrext_cmds=".so" 15104 postinstall_cmds= 15105 postuninstall_cmds= 15106 finish_cmds= 15107 finish_eval= 15108 shlibpath_var= 15109 shlibpath_overrides_runpath=unknown 15110 version_type=none 15111 dynamic_linker="$host_os ld.so" 15112 sys_lib_dlsearch_path_spec="/lib /usr/lib" 15113 need_lib_prefix=unknown 15114 hardcode_into_libs=no 15115 15116 # when you set need_version to no, make sure it does not cause -set_version 15117 # flags to be left without arguments 15118 need_version=unknown 15119 15120 case $host_os in 15121 aix3*) 15122 version_type=linux # correct to gnu/linux during the next big refactor 15123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15124 shlibpath_var=LIBPATH 15125 15126 # AIX 3 has no versioning support, so we append a major version to the name. 15127 soname_spec='${libname}${release}${shared_ext}$major' 15128 ;; 15129 15130 aix[4-9]*) 15131 version_type=linux # correct to gnu/linux during the next big refactor 15132 need_lib_prefix=no 15133 need_version=no 15134 hardcode_into_libs=yes 15135 if test "$host_cpu" = ia64; then 15136 # AIX 5 supports IA64 15137 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15138 shlibpath_var=LD_LIBRARY_PATH 15139 else 15140 # With GCC up to 2.95.x, collect2 would create an import file 15141 # for dependence libraries. The import file would start with 15142 # the line `#! .'. This would cause the generated library to 15143 # depend on `.', always an invalid library. This was fixed in 15144 # development snapshots of GCC prior to 3.0. 15145 case $host_os in 15146 aix4 | aix4.[01] | aix4.[01].*) 15147 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15148 echo ' yes ' 15149 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15150 : 15151 else 15152 can_build_shared=no 15153 fi 15154 ;; 15155 esac 15156 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15157 # soname into executable. Probably we can add versioning support to 15158 # collect2, so additional links can be useful in future. 15159 if test "$aix_use_runtimelinking" = yes; then 15160 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15161 # instead of lib<name>.a to let people know that these are not 15162 # typical AIX shared libraries. 15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15164 else 15165 # We preserve .a as extension for shared libraries through AIX4.2 15166 # and later when we are not doing run time linking. 15167 library_names_spec='${libname}${release}.a $libname.a' 15168 soname_spec='${libname}${release}${shared_ext}$major' 15169 fi 15170 shlibpath_var=LIBPATH 15171 fi 15172 ;; 15173 15174 amigaos*) 15175 case $host_cpu in 15176 powerpc) 15177 # Since July 2007 AmigaOS4 officially supports .so libraries. 15178 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15180 ;; 15181 m68k) 15182 library_names_spec='$libname.ixlibrary $libname.a' 15183 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15184 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15185 ;; 15186 esac 15187 ;; 15188 15189 beos*) 15190 library_names_spec='${libname}${shared_ext}' 15191 dynamic_linker="$host_os ld.so" 15192 shlibpath_var=LIBRARY_PATH 15193 ;; 15194 15195 bsdi[45]*) 15196 version_type=linux # correct to gnu/linux during the next big refactor 15197 need_version=no 15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15199 soname_spec='${libname}${release}${shared_ext}$major' 15200 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15201 shlibpath_var=LD_LIBRARY_PATH 15202 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15203 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15204 # the default ld.so.conf also contains /usr/contrib/lib and 15205 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15206 # libtool to hard-code these into programs 15207 ;; 15208 15209 cygwin* | mingw* | pw32* | cegcc*) 15210 version_type=windows 15211 shrext_cmds=".dll" 15212 need_version=no 15213 need_lib_prefix=no 15214 15215 case $GCC,$cc_basename in 15216 yes,*) 15217 # gcc 15218 library_names_spec='$libname.dll.a' 15219 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15220 postinstall_cmds='base_file=`basename \${file}`~ 15221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15222 dldir=$destdir/`dirname \$dlpath`~ 15223 test -d \$dldir || mkdir -p \$dldir~ 15224 $install_prog $dir/$dlname \$dldir/$dlname~ 15225 chmod a+x \$dldir/$dlname~ 15226 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15227 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15228 fi' 15229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15230 dlpath=$dir/\$dldll~ 15231 $RM \$dlpath' 15232 shlibpath_overrides_runpath=yes 15233 15234 case $host_os in 15235 cygwin*) 15236 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15238 15239 ;; 15240 mingw* | cegcc*) 15241 # MinGW DLLs use traditional 'lib' prefix 15242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15243 ;; 15244 pw32*) 15245 # pw32 DLLs use 'pw' prefix rather than 'lib' 15246 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15247 ;; 15248 esac 15249 dynamic_linker='Win32 ld.exe' 15250 ;; 15251 15252 *,cl*) 15253 # Native MSVC 15254 libname_spec='$name' 15255 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15256 library_names_spec='${libname}.dll.lib' 15257 15258 case $build_os in 15259 mingw*) 15260 sys_lib_search_path_spec= 15261 lt_save_ifs=$IFS 15262 IFS=';' 15263 for lt_path in $LIB 15264 do 15265 IFS=$lt_save_ifs 15266 # Let DOS variable expansion print the short 8.3 style file name. 15267 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15268 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15269 done 15270 IFS=$lt_save_ifs 15271 # Convert to MSYS style. 15272 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15273 ;; 15274 cygwin*) 15275 # Convert to unix form, then to dos form, then back to unix form 15276 # but this time dos style (no spaces!) so that the unix form looks 15277 # like /cygdrive/c/PROGRA~1:/cygdr... 15278 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15279 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15280 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15281 ;; 15282 *) 15283 sys_lib_search_path_spec="$LIB" 15284 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15285 # It is most probably a Windows format PATH. 15286 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15287 else 15288 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15289 fi 15290 # FIXME: find the short name or the path components, as spaces are 15291 # common. (e.g. "Program Files" -> "PROGRA~1") 15292 ;; 15293 esac 15294 15295 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15296 postinstall_cmds='base_file=`basename \${file}`~ 15297 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15298 dldir=$destdir/`dirname \$dlpath`~ 15299 test -d \$dldir || mkdir -p \$dldir~ 15300 $install_prog $dir/$dlname \$dldir/$dlname' 15301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15302 dlpath=$dir/\$dldll~ 15303 $RM \$dlpath' 15304 shlibpath_overrides_runpath=yes 15305 dynamic_linker='Win32 link.exe' 15306 ;; 15307 15308 *) 15309 # Assume MSVC wrapper 15310 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15311 dynamic_linker='Win32 ld.exe' 15312 ;; 15313 esac 15314 # FIXME: first we should search . and the directory the executable is in 15315 shlibpath_var=PATH 15316 ;; 15317 15318 darwin* | rhapsody*) 15319 dynamic_linker="$host_os dyld" 15320 version_type=darwin 15321 need_lib_prefix=no 15322 need_version=no 15323 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15324 soname_spec='${libname}${release}${major}$shared_ext' 15325 shlibpath_overrides_runpath=yes 15326 shlibpath_var=DYLD_LIBRARY_PATH 15327 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15328 15329 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15330 ;; 15331 15332 dgux*) 15333 version_type=linux # correct to gnu/linux during the next big refactor 15334 need_lib_prefix=no 15335 need_version=no 15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15337 soname_spec='${libname}${release}${shared_ext}$major' 15338 shlibpath_var=LD_LIBRARY_PATH 15339 ;; 15340 15341 freebsd* | dragonfly*) 15342 # DragonFly does not have aout. When/if they implement a new 15343 # versioning mechanism, adjust this. 15344 if test -x /usr/bin/objformat; then 15345 objformat=`/usr/bin/objformat` 15346 else 15347 case $host_os in 15348 freebsd[23].*) objformat=aout ;; 15349 *) objformat=elf ;; 15350 esac 15351 fi 15352 version_type=freebsd-$objformat 15353 case $version_type in 15354 freebsd-elf*) 15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15356 need_version=no 15357 need_lib_prefix=no 15358 ;; 15359 freebsd-*) 15360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15361 need_version=yes 15362 ;; 15363 esac 15364 shlibpath_var=LD_LIBRARY_PATH 15365 case $host_os in 15366 freebsd2.*) 15367 shlibpath_overrides_runpath=yes 15368 ;; 15369 freebsd3.[01]* | freebsdelf3.[01]*) 15370 shlibpath_overrides_runpath=yes 15371 hardcode_into_libs=yes 15372 ;; 15373 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15374 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15375 shlibpath_overrides_runpath=no 15376 hardcode_into_libs=yes 15377 ;; 15378 *) # from 4.6 on, and DragonFly 15379 shlibpath_overrides_runpath=yes 15380 hardcode_into_libs=yes 15381 ;; 15382 esac 15383 ;; 15384 15385 gnu*) 15386 version_type=linux # correct to gnu/linux during the next big refactor 15387 need_lib_prefix=no 15388 need_version=no 15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15390 soname_spec='${libname}${release}${shared_ext}$major' 15391 shlibpath_var=LD_LIBRARY_PATH 15392 shlibpath_overrides_runpath=no 15393 hardcode_into_libs=yes 15394 ;; 15395 15396 haiku*) 15397 version_type=linux # correct to gnu/linux during the next big refactor 15398 need_lib_prefix=no 15399 need_version=no 15400 dynamic_linker="$host_os runtime_loader" 15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15402 soname_spec='${libname}${release}${shared_ext}$major' 15403 shlibpath_var=LIBRARY_PATH 15404 shlibpath_overrides_runpath=yes 15405 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15406 hardcode_into_libs=yes 15407 ;; 15408 15409 hpux9* | hpux10* | hpux11*) 15410 # Give a soname corresponding to the major version so that dld.sl refuses to 15411 # link against other versions. 15412 version_type=sunos 15413 need_lib_prefix=no 15414 need_version=no 15415 case $host_cpu in 15416 ia64*) 15417 shrext_cmds='.so' 15418 hardcode_into_libs=yes 15419 dynamic_linker="$host_os dld.so" 15420 shlibpath_var=LD_LIBRARY_PATH 15421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15423 soname_spec='${libname}${release}${shared_ext}$major' 15424 if test "X$HPUX_IA64_MODE" = X32; then 15425 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15426 else 15427 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15428 fi 15429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15430 ;; 15431 hppa*64*) 15432 shrext_cmds='.sl' 15433 hardcode_into_libs=yes 15434 dynamic_linker="$host_os dld.sl" 15435 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15438 soname_spec='${libname}${release}${shared_ext}$major' 15439 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15441 ;; 15442 *) 15443 shrext_cmds='.sl' 15444 dynamic_linker="$host_os dld.sl" 15445 shlibpath_var=SHLIB_PATH 15446 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15448 soname_spec='${libname}${release}${shared_ext}$major' 15449 ;; 15450 esac 15451 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15452 postinstall_cmds='chmod 555 $lib' 15453 # or fails outright, so override atomically: 15454 install_override_mode=555 15455 ;; 15456 15457 interix[3-9]*) 15458 version_type=linux # correct to gnu/linux during the next big refactor 15459 need_lib_prefix=no 15460 need_version=no 15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15462 soname_spec='${libname}${release}${shared_ext}$major' 15463 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15464 shlibpath_var=LD_LIBRARY_PATH 15465 shlibpath_overrides_runpath=no 15466 hardcode_into_libs=yes 15467 ;; 15468 15469 irix5* | irix6* | nonstopux*) 15470 case $host_os in 15471 nonstopux*) version_type=nonstopux ;; 15472 *) 15473 if test "$lt_cv_prog_gnu_ld" = yes; then 15474 version_type=linux # correct to gnu/linux during the next big refactor 15475 else 15476 version_type=irix 15477 fi ;; 15478 esac 15479 need_lib_prefix=no 15480 need_version=no 15481 soname_spec='${libname}${release}${shared_ext}$major' 15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15483 case $host_os in 15484 irix5* | nonstopux*) 15485 libsuff= shlibsuff= 15486 ;; 15487 *) 15488 case $LD in # libtool.m4 will add one of these switches to LD 15489 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15490 libsuff= shlibsuff= libmagic=32-bit;; 15491 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15492 libsuff=32 shlibsuff=N32 libmagic=N32;; 15493 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15494 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15495 *) libsuff= shlibsuff= libmagic=never-match;; 15496 esac 15497 ;; 15498 esac 15499 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15500 shlibpath_overrides_runpath=no 15501 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15502 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15503 hardcode_into_libs=yes 15504 ;; 15505 15506 # No shared lib support for Linux oldld, aout, or coff. 15507 linux*oldld* | linux*aout* | linux*coff*) 15508 dynamic_linker=no 15509 ;; 15510 15511 # This must be glibc/ELF. 15512 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15513 version_type=linux # correct to gnu/linux during the next big refactor 15514 need_lib_prefix=no 15515 need_version=no 15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15517 soname_spec='${libname}${release}${shared_ext}$major' 15518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15519 shlibpath_var=LD_LIBRARY_PATH 15520 shlibpath_overrides_runpath=no 15521 15522 # Some binutils ld are patched to set DT_RUNPATH 15523 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15524 $as_echo_n "(cached) " >&6 15525 else 15526 lt_cv_shlibpath_overrides_runpath=no 15527 save_LDFLAGS=$LDFLAGS 15528 save_libdir=$libdir 15529 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15530 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15532 /* end confdefs.h. */ 15533 15534 int 15535 main () 15536 { 15537 15538 ; 15539 return 0; 15540 } 15541 _ACEOF 15542 if ac_fn_cxx_try_link "$LINENO"; then : 15543 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15544 lt_cv_shlibpath_overrides_runpath=yes 15545 fi 15546 fi 15547 rm -f core conftest.err conftest.$ac_objext \ 15548 conftest$ac_exeext conftest.$ac_ext 15549 LDFLAGS=$save_LDFLAGS 15550 libdir=$save_libdir 15551 15552 fi 15553 15554 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15555 15556 # This implies no fast_install, which is unacceptable. 15557 # Some rework will be needed to allow for fast_install 15558 # before this can be enabled. 15559 hardcode_into_libs=yes 15560 15561 # Append ld.so.conf contents to the search path 15562 if test -f /etc/ld.so.conf; then 15563 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 15564 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15565 fi 15566 15567 # We used to test for /lib/ld.so.1 and disable shared libraries on 15568 # powerpc, because MkLinux only supported shared libraries with the 15569 # GNU dynamic linker. Since this was broken with cross compilers, 15570 # most powerpc-linux boxes support dynamic linking these days and 15571 # people can always --disable-shared, the test was removed, and we 15572 # assume the GNU/Linux dynamic linker is in use. 15573 dynamic_linker='GNU/Linux ld.so' 15574 ;; 15575 15576 netbsdelf*-gnu) 15577 version_type=linux 15578 need_lib_prefix=no 15579 need_version=no 15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15581 soname_spec='${libname}${release}${shared_ext}$major' 15582 shlibpath_var=LD_LIBRARY_PATH 15583 shlibpath_overrides_runpath=no 15584 hardcode_into_libs=yes 15585 dynamic_linker='NetBSD ld.elf_so' 15586 ;; 15587 15588 netbsd*) 15589 version_type=sunos 15590 need_lib_prefix=no 15591 need_version=no 15592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15595 dynamic_linker='NetBSD (a.out) ld.so' 15596 else 15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15598 soname_spec='${libname}${release}${shared_ext}$major' 15599 dynamic_linker='NetBSD ld.elf_so' 15600 fi 15601 shlibpath_var=LD_LIBRARY_PATH 15602 shlibpath_overrides_runpath=yes 15603 hardcode_into_libs=yes 15604 ;; 15605 15606 newsos6) 15607 version_type=linux # correct to gnu/linux during the next big refactor 15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15609 shlibpath_var=LD_LIBRARY_PATH 15610 shlibpath_overrides_runpath=yes 15611 ;; 15612 15613 *nto* | *qnx*) 15614 version_type=qnx 15615 need_lib_prefix=no 15616 need_version=no 15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15618 soname_spec='${libname}${release}${shared_ext}$major' 15619 shlibpath_var=LD_LIBRARY_PATH 15620 shlibpath_overrides_runpath=no 15621 hardcode_into_libs=yes 15622 dynamic_linker='ldqnx.so' 15623 ;; 15624 15625 openbsd*) 15626 version_type=sunos 15627 sys_lib_dlsearch_path_spec="/usr/lib" 15628 need_lib_prefix=no 15629 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15630 case $host_os in 15631 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15632 *) need_version=no ;; 15633 esac 15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15636 shlibpath_var=LD_LIBRARY_PATH 15637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15638 case $host_os in 15639 openbsd2.[89] | openbsd2.[89].*) 15640 shlibpath_overrides_runpath=no 15641 ;; 15642 *) 15643 shlibpath_overrides_runpath=yes 15644 ;; 15645 esac 15646 else 15647 shlibpath_overrides_runpath=yes 15648 fi 15649 ;; 15650 15651 os2*) 15652 libname_spec='$name' 15653 shrext_cmds=".dll" 15654 need_lib_prefix=no 15655 library_names_spec='$libname${shared_ext} $libname.a' 15656 dynamic_linker='OS/2 ld.exe' 15657 shlibpath_var=LIBPATH 15658 ;; 15659 15660 osf3* | osf4* | osf5*) 15661 version_type=osf 15662 need_lib_prefix=no 15663 need_version=no 15664 soname_spec='${libname}${release}${shared_ext}$major' 15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15666 shlibpath_var=LD_LIBRARY_PATH 15667 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15668 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15669 ;; 15670 15671 rdos*) 15672 dynamic_linker=no 15673 ;; 15674 15675 solaris*) 15676 version_type=linux # correct to gnu/linux during the next big refactor 15677 need_lib_prefix=no 15678 need_version=no 15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15680 soname_spec='${libname}${release}${shared_ext}$major' 15681 shlibpath_var=LD_LIBRARY_PATH 15682 shlibpath_overrides_runpath=yes 15683 hardcode_into_libs=yes 15684 # ldd complains unless libraries are executable 15685 postinstall_cmds='chmod +x $lib' 15686 ;; 15687 15688 sunos4*) 15689 version_type=sunos 15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15691 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15692 shlibpath_var=LD_LIBRARY_PATH 15693 shlibpath_overrides_runpath=yes 15694 if test "$with_gnu_ld" = yes; then 15695 need_lib_prefix=no 15696 fi 15697 need_version=yes 15698 ;; 15699 15700 sysv4 | sysv4.3*) 15701 version_type=linux # correct to gnu/linux during the next big refactor 15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15703 soname_spec='${libname}${release}${shared_ext}$major' 15704 shlibpath_var=LD_LIBRARY_PATH 15705 case $host_vendor in 15706 sni) 15707 shlibpath_overrides_runpath=no 15708 need_lib_prefix=no 15709 runpath_var=LD_RUN_PATH 15710 ;; 15711 siemens) 15712 need_lib_prefix=no 15713 ;; 15714 motorola) 15715 need_lib_prefix=no 15716 need_version=no 15717 shlibpath_overrides_runpath=no 15718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15719 ;; 15720 esac 15721 ;; 15722 15723 sysv4*MP*) 15724 if test -d /usr/nec ;then 15725 version_type=linux # correct to gnu/linux during the next big refactor 15726 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15727 soname_spec='$libname${shared_ext}.$major' 15728 shlibpath_var=LD_LIBRARY_PATH 15729 fi 15730 ;; 15731 15732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15733 version_type=freebsd-elf 15734 need_lib_prefix=no 15735 need_version=no 15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15737 soname_spec='${libname}${release}${shared_ext}$major' 15738 shlibpath_var=LD_LIBRARY_PATH 15739 shlibpath_overrides_runpath=yes 15740 hardcode_into_libs=yes 15741 if test "$with_gnu_ld" = yes; then 15742 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15743 else 15744 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15745 case $host_os in 15746 sco3.2v5*) 15747 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15748 ;; 15749 esac 15750 fi 15751 sys_lib_dlsearch_path_spec='/usr/lib' 15752 ;; 15753 15754 tpf*) 15755 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15756 version_type=linux # correct to gnu/linux during the next big refactor 15757 need_lib_prefix=no 15758 need_version=no 15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15760 shlibpath_var=LD_LIBRARY_PATH 15761 shlibpath_overrides_runpath=no 15762 hardcode_into_libs=yes 15763 ;; 15764 15765 uts4*) 15766 version_type=linux # correct to gnu/linux during the next big refactor 15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15768 soname_spec='${libname}${release}${shared_ext}$major' 15769 shlibpath_var=LD_LIBRARY_PATH 15770 ;; 15771 15772 *) 15773 dynamic_linker=no 15774 ;; 15775 esac 15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15777 $as_echo "$dynamic_linker" >&6; } 15778 test "$dynamic_linker" = no && can_build_shared=no 15779 15780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15781 if test "$GCC" = yes; then 15782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15783 fi 15784 15785 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15786 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15787 fi 15788 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15789 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15790 fi 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15830 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15831 hardcode_action_CXX= 15832 if test -n "$hardcode_libdir_flag_spec_CXX" || 15833 test -n "$runpath_var_CXX" || 15834 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15835 15836 # We can hardcode non-existent directories. 15837 if test "$hardcode_direct_CXX" != no && 15838 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15839 # have to relink, otherwise we might link with an installed library 15840 # when we should be linking with a yet-to-be-installed one 15841 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15842 test "$hardcode_minus_L_CXX" != no; then 15843 # Linking always hardcodes the temporary library directory. 15844 hardcode_action_CXX=relink 15845 else 15846 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15847 hardcode_action_CXX=immediate 15848 fi 15849 else 15850 # We cannot hardcode anything, or else we can only hardcode existing 15851 # directories. 15852 hardcode_action_CXX=unsupported 15853 fi 15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15855 $as_echo "$hardcode_action_CXX" >&6; } 15856 15857 if test "$hardcode_action_CXX" = relink || 15858 test "$inherit_rpath_CXX" = yes; then 15859 # Fast installation is not supported 15860 enable_fast_install=no 15861 elif test "$shlibpath_overrides_runpath" = yes || 15862 test "$enable_shared" = no; then 15863 # Fast installation is not necessary 15864 enable_fast_install=needless 15865 fi 15866 15867 15868 15869 15870 15871 15872 15873 fi # test -n "$compiler" 15874 15875 CC=$lt_save_CC 15876 CFLAGS=$lt_save_CFLAGS 15877 LDCXX=$LD 15878 LD=$lt_save_LD 15879 GCC=$lt_save_GCC 15880 with_gnu_ld=$lt_save_with_gnu_ld 15881 lt_cv_path_LDCXX=$lt_cv_path_LD 15882 lt_cv_path_LD=$lt_save_path_LD 15883 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15884 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15885 fi # test "$_lt_caught_CXX_error" != yes 15886 15887 ac_ext=c 15888 ac_cpp='$CPP $CPPFLAGS' 15889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15891 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 ac_config_commands="$ac_config_commands libtool" 15908 15909 15910 15911 15912 # Only expand once: 15913 15914 15915 15916 # Checks for header files. 15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15918 $as_echo_n "checking for ANSI C header files... " >&6; } 15919 if ${ac_cv_header_stdc+:} false; then : 15920 $as_echo_n "(cached) " >&6 15921 else 15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15923 /* end confdefs.h. */ 15924 #include <stdlib.h> 15925 #include <stdarg.h> 15926 #include <string.h> 15927 #include <float.h> 15928 15929 int 15930 main () 15931 { 15932 15933 ; 15934 return 0; 15935 } 15936 _ACEOF 15937 if ac_fn_c_try_compile "$LINENO"; then : 15938 ac_cv_header_stdc=yes 15939 else 15940 ac_cv_header_stdc=no 15941 fi 15942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15943 15944 if test $ac_cv_header_stdc = yes; then 15945 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15947 /* end confdefs.h. */ 15948 #include <string.h> 15949 15950 _ACEOF 15951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15952 $EGREP "memchr" >/dev/null 2>&1; then : 15953 15954 else 15955 ac_cv_header_stdc=no 15956 fi 15957 rm -f conftest* 15958 15959 fi 15960 15961 if test $ac_cv_header_stdc = yes; then 15962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15964 /* end confdefs.h. */ 15965 #include <stdlib.h> 15966 15967 _ACEOF 15968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15969 $EGREP "free" >/dev/null 2>&1; then : 15970 15971 else 15972 ac_cv_header_stdc=no 15973 fi 15974 rm -f conftest* 15975 15976 fi 15977 15978 if test $ac_cv_header_stdc = yes; then 15979 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15980 if test "$cross_compiling" = yes; then : 15981 : 15982 else 15983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15984 /* end confdefs.h. */ 15985 #include <ctype.h> 15986 #include <stdlib.h> 15987 #if ((' ' & 0x0FF) == 0x020) 15988 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15989 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15990 #else 15991 # define ISLOWER(c) \ 15992 (('a' <= (c) && (c) <= 'i') \ 15993 || ('j' <= (c) && (c) <= 'r') \ 15994 || ('s' <= (c) && (c) <= 'z')) 15995 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15996 #endif 15997 15998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15999 int 16000 main () 16001 { 16002 int i; 16003 for (i = 0; i < 256; i++) 16004 if (XOR (islower (i), ISLOWER (i)) 16005 || toupper (i) != TOUPPER (i)) 16006 return 2; 16007 return 0; 16008 } 16009 _ACEOF 16010 if ac_fn_c_try_run "$LINENO"; then : 16011 16012 else 16013 ac_cv_header_stdc=no 16014 fi 16015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16016 conftest.$ac_objext conftest.beam conftest.$ac_ext 16017 fi 16018 16019 fi 16020 fi 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16022 $as_echo "$ac_cv_header_stdc" >&6; } 16023 if test $ac_cv_header_stdc = yes; then 16024 16025 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 16026 16027 fi 16028 16029 for ac_header in gmp.h 16030 do : 16031 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" 16032 if test "x$ac_cv_header_gmp_h" = xyes; then : 4122 16033 cat >>confdefs.h <<_ACEOF 4123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp`116034 #define HAVE_GMP_H 1 4124 16035 _ACEOF 4125 16036 … … 4128 16039 done 4129 16040 4130 4131 16041 for ac_header in setoper.h 4132 do 4133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4136 $as_echo_n "checking for $ac_header... " >&6; } 4137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4138 $as_echo_n "(cached) " >&6 4139 fi 4140 ac_res=`eval 'as_val=${'$as_ac_Header'} 4141 $as_echo "$as_val"'` 4142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4143 $as_echo "$ac_res" >&6; } 4144 else 4145 # Is the header compilable? 4146 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 4147 $as_echo_n "checking $ac_header usability... " >&6; } 4148 cat >conftest.$ac_ext <<_ACEOF 4149 /* confdefs.h. */ 16042 do : 16043 ac_fn_c_check_header_mongrel "$LINENO" "setoper.h" "ac_cv_header_setoper_h" "$ac_includes_default" 16044 if test "x$ac_cv_header_setoper_h" = xyes; then : 16045 cat >>confdefs.h <<_ACEOF 16046 #define HAVE_SETOPER_H 1 4150 16047 _ACEOF 4151 cat confdefs.h >>conftest.$ac_ext 4152 cat >>conftest.$ac_ext <<_ACEOF 4153 /* end confdefs.h. */ 4154 $ac_includes_default 4155 #include <$ac_header> 4156 _ACEOF 4157 rm -f conftest.$ac_objext 4158 if { (ac_try="$ac_compile" 4159 case "(($ac_try" in 4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4161 *) ac_try_echo=$ac_try;; 4162 esac 4163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4164 $as_echo "$ac_try_echo") >&5 4165 (eval "$ac_compile") 2>conftest.er1 4166 ac_status=$? 4167 grep -v '^ *+' conftest.er1 >conftest.err 4168 rm -f conftest.er1 4169 cat conftest.err >&5 4170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4171 (exit $ac_status); } && { 4172 test -z "$ac_c_werror_flag" || 4173 test ! -s conftest.err 4174 } && test -s conftest.$ac_objext; then 4175 ac_header_compiler=yes 4176 else 4177 $as_echo "$as_me: failed program was:" >&5 4178 sed 's/^/| /' conftest.$ac_ext >&5 4179 4180 ac_header_compiler=no 4181 fi 4182 4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4184 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4185 $as_echo "$ac_header_compiler" >&6; } 4186 4187 # Is the header present? 4188 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 4189 $as_echo_n "checking $ac_header presence... " >&6; } 4190 cat >conftest.$ac_ext <<_ACEOF 4191 /* confdefs.h. */ 4192 _ACEOF 4193 cat confdefs.h >>conftest.$ac_ext 4194 cat >>conftest.$ac_ext <<_ACEOF 4195 /* end confdefs.h. */ 4196 #include <$ac_header> 4197 _ACEOF 4198 if { (ac_try="$ac_cpp conftest.$ac_ext" 4199 case "(($ac_try" in 4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4201 *) ac_try_echo=$ac_try;; 4202 esac 4203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4204 $as_echo "$ac_try_echo") >&5 4205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4206 ac_status=$? 4207 grep -v '^ *+' conftest.er1 >conftest.err 4208 rm -f conftest.er1 4209 cat conftest.err >&5 4210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4211 (exit $ac_status); } >/dev/null && { 4212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4213 test ! -s conftest.err 4214 }; then 4215 ac_header_preproc=yes 4216 else 4217 $as_echo "$as_me: failed program was:" >&5 4218 sed 's/^/| /' conftest.$ac_ext >&5 4219 4220 ac_header_preproc=no 4221 fi 4222 4223 rm -f conftest.err conftest.$ac_ext 4224 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4225 $as_echo "$ac_header_preproc" >&6; } 4226 4227 # So? What about this header? 4228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4229 yes:no: ) 4230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4231 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4233 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4234 ac_header_preproc=yes 4235 ;; 4236 no:yes:* ) 4237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4238 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4240 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4242 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4244 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4246 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4248 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4249 ( cat <<\_ASBOX 4250 ## --------------------------------- ## 4251 ## Report this to BUG-REPORT-ADDRESS ## 4252 ## --------------------------------- ## 4253 _ASBOX 4254 ) | sed "s/^/$as_me: WARNING: /" >&2 4255 ;; 4256 esac 4257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4258 $as_echo_n "checking for $ac_header... " >&6; } 4259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4260 $as_echo_n "(cached) " >&6 4261 else 4262 eval "$as_ac_Header=\$ac_header_preproc" 4263 fi 4264 ac_res=`eval 'as_val=${'$as_ac_Header'} 4265 $as_echo "$as_val"'` 4266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4267 $as_echo "$ac_res" >&6; } 4268 4269 fi 4270 as_val=`eval 'as_val=${'$as_ac_Header'} 4271 $as_echo "$as_val"'` 4272 if test "x$as_val" = x""yes; then 16048 16049 fi 16050 16051 done 16052 16053 for ac_header in cdd.h 16054 do : 16055 ac_fn_c_check_header_compile "$LINENO" "cdd.h" "ac_cv_header_cdd_h" " 16056 # include <setoper.h> 16057 16058 " 16059 if test "x$ac_cv_header_cdd_h" = xyes; then : 4273 16060 cat >>confdefs.h <<_ACEOF 4274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp`116061 #define HAVE_CDD_H 1 4275 16062 _ACEOF 4276 16063 … … 4282 16069 if test "$ac_cv_header_gmp_h" == no 4283 16070 then 4284 { $as_echo "$as_me:$ LINENO: WARNING: Error, gmp.h is missing!" >&516071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Error, gmp.h is missing!" >&5 4285 16072 $as_echo "$as_me: WARNING: Error, gmp.h is missing!" >&2;} 4286 16073 exit 1 … … 4289 16076 if test "$ac_cv_header_cdd_h" == no 4290 16077 then 4291 { $as_echo "$as_me:$ LINENO: WARNING: Error, cdd.h is missing!" >&516078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Error, cdd.h is missing!" >&5 4292 16079 $as_echo "$as_me: WARNING: Error, cdd.h is missing!" >&2;} 4293 16080 exit 1 … … 4296 16083 if test "$ac_cv_header_setoper_h" == no 4297 16084 then 4298 { $as_echo "$as_me:$ LINENO: WARNING: Error, setoper.h is missing!" >&516085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Error, setoper.h is missing!" >&5 4299 16086 $as_echo "$as_me: WARNING: Error, setoper.h is missing!" >&2;} 4300 16087 exit 1 … … 4302 16089 4303 16090 # Checks for typedefs, structures, and compiler characteristics. 4304 { $as_echo "$as_me:$ LINENO: checking for inline" >&516091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4305 16092 $as_echo_n "checking for inline... " >&6; } 4306 if test "${ac_cv_c_inline+set}" = set; then16093 if ${ac_cv_c_inline+:} false; then : 4307 16094 $as_echo_n "(cached) " >&6 4308 16095 else 4309 16096 ac_cv_c_inline=no 4310 16097 for ac_kw in inline __inline__ __inline; do 4311 cat >conftest.$ac_ext <<_ACEOF 4312 /* confdefs.h. */ 4313 _ACEOF 4314 cat confdefs.h >>conftest.$ac_ext 4315 cat >>conftest.$ac_ext <<_ACEOF 16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4316 16099 /* end confdefs.h. */ 4317 16100 #ifndef __cplusplus … … 4322 16105 4323 16106 _ACEOF 4324 rm -f conftest.$ac_objext 4325 if { (ac_try="$ac_compile" 4326 case "(($ac_try" in 4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4328 *) ac_try_echo=$ac_try;; 4329 esac 4330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4331 $as_echo "$ac_try_echo") >&5 4332 (eval "$ac_compile") 2>conftest.er1 4333 ac_status=$? 4334 grep -v '^ *+' conftest.er1 >conftest.err 4335 rm -f conftest.er1 4336 cat conftest.err >&5 4337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4338 (exit $ac_status); } && { 4339 test -z "$ac_c_werror_flag" || 4340 test ! -s conftest.err 4341 } && test -s conftest.$ac_objext; then 16107 if ac_fn_c_try_compile "$LINENO"; then : 4342 16108 ac_cv_c_inline=$ac_kw 4343 else 4344 $as_echo "$as_me: failed program was:" >&5 4345 sed 's/^/| /' conftest.$ac_ext >&5 4346 4347 4348 fi 4349 16109 fi 4350 16110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4351 16111 test "$ac_cv_c_inline" != no && break … … 4353 16113 4354 16114 fi 4355 { $as_echo "$as_me:$ LINENO: result: $ac_cv_c_inline" >&516115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 4356 16116 $as_echo "$ac_cv_c_inline" >&6; } 4357 4358 16117 4359 16118 case $ac_cv_c_inline in … … 4373 16132 4374 16133 16134 # Check whether --enable-debug was given. 16135 if test "${enable_debug+set}" = set; then : 16136 enableval=$enable_debug; if test "x$enableval" = "xyes"; then 16137 ENABLE_DEBUG=yes 16138 fi 16139 else 16140 ENABLE_DEBUG=no 16141 fi 16142 16143 16144 if test x"${ENABLE_DEBUG}" == xyes; then 16145 WANT_DEBUG_TRUE= 16146 WANT_DEBUG_FALSE='#' 16147 else 16148 WANT_DEBUG_TRUE='#' 16149 WANT_DEBUG_FALSE= 16150 fi 16151 16152 4375 16153 #AC_MSG_RESULT($ac_cv_singuname) 4376 16154 #if test "$ac_cv_singuname" = unknown; then … … 4411 16189 *${as_nl}*) 4412 16190 case $ac_var in #( 4413 *_cv_*) { $as_echo "$as_me:$ LINENO: WARNING: cache variable $ac_var contains a newline" >&516191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4414 16192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4415 16193 esac … … 4417 16195 _ | IFS | as_nl) ;; #( 4418 16196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4419 *) $as_unset $ac_var;;16197 *) { eval $ac_var=; unset $ac_var;} ;; 4420 16198 esac ;; 4421 16199 esac … … 4425 16203 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4426 16204 *${as_nl}ac_space=\ *) 4427 # `set' does not quote correctly, so add quotes (double-quote4428 # substitution turns \\\\ into \\, and sed turns \\ into \ ).16205 # `set' does not quote correctly, so add quotes: double-quote 16206 # substitution turns \\\\ into \\, and sed turns \\ into \. 4429 16207 sed -n \ 4430 16208 "s/'/'\\\\''/g; … … 4448 16226 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4449 16227 if test -w "$cache_file"; then 4450 test "x$cache_file" != "x/dev/null" &&4451 { $as_echo "$as_me:$ LINENO: updating cache $cache_file" >&516228 if test "x$cache_file" != "x/dev/null"; then 16229 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4452 16230 $as_echo "$as_me: updating cache $cache_file" >&6;} 4453 cat confcache >$cache_file 16231 if test ! -f "$cache_file" || test -h "$cache_file"; then 16232 cat confcache >"$cache_file" 16233 else 16234 case $cache_file in #( 16235 */* | ?:*) 16236 mv -f confcache "$cache_file"$$ && 16237 mv -f "$cache_file"$$ "$cache_file" ;; #( 16238 *) 16239 mv -f confcache "$cache_file" ;; 16240 esac 16241 fi 16242 fi 4454 16243 else 4455 { $as_echo "$as_me:$ LINENO: not updating unwritable cache $cache_file" >&516244 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4456 16245 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4457 16246 fi … … 4503 16292 ac_libobjs= 4504 16293 ac_ltlibobjs= 16294 U= 4505 16295 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4506 16296 # 1. Remove the extension, and $U if already installed. … … 4509 16299 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4510 16300 # will be set to the directory where LIBOBJS objects are built. 4511 a c_libobjs="$ac_libobjs\${LIBOBJDIR}$ac_i\$U.$ac_objext"4512 a c_ltlibobjs="$ac_ltlibobjs\${LIBOBJDIR}$ac_i"'$U.lo'16301 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16302 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 4513 16303 done 4514 16304 LIBOBJS=$ac_libobjs … … 4517 16307 4518 16308 4519 4520 : ${CONFIG_STATUS=./config.status} 16309 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16310 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 16311 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16312 fi 16313 if test -n "$EXEEXT"; then 16314 am__EXEEXT_TRUE= 16315 am__EXEEXT_FALSE='#' 16316 else 16317 am__EXEEXT_TRUE='#' 16318 am__EXEEXT_FALSE= 16319 fi 16320 16321 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16322 as_fn_error $? "conditional \"AMDEP\" was never defined. 16323 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16324 fi 16325 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16326 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16327 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16328 fi 16329 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16330 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16331 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16332 fi 16333 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16334 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16335 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16336 fi 16337 if test -z "${WANT_DEBUG_TRUE}" && test -z "${WANT_DEBUG_FALSE}"; then 16338 as_fn_error $? "conditional \"WANT_DEBUG\" was never defined. 16339 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16340 fi 16341 16342 : "${CONFIG_STATUS=./config.status}" 4521 16343 ac_write_fail=0 4522 16344 ac_clean_files_save=$ac_clean_files 4523 16345 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4524 { $as_echo "$as_me:$ LINENO: creating $CONFIG_STATUS" >&516346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4525 16347 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4526 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16348 as_write_fail=0 16349 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 4527 16350 #! $SHELL 4528 16351 # Generated by $as_me. … … 4534 16357 ac_cs_recheck=false 4535 16358 ac_cs_silent=false 16359 4536 16360 SHELL=\${CONFIG_SHELL-$SHELL} 4537 _ACEOF 4538 4539 cat >>$CONFIG_STATUS <<\_A CEOF || ac_write_fail=14540 ## -------------------- -##4541 ## M4sh Initialization. 4542 ## -------------------- -##16361 export SHELL 16362 _ASEOF 16363 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16364 ## -------------------- ## 16365 ## M4sh Initialization. ## 16366 ## -------------------- ## 4543 16367 4544 16368 # Be more Bourne compatible 4545 16369 DUALCASE=1; export DUALCASE # for MKS sh 4546 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16370 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 4547 16371 emulate sh 4548 16372 NULLCMD=: … … 4552 16376 setopt NO_GLOB_SUBST 4553 16377 else 4554 case `(set -o) 2>/dev/null` in 4555 *posix*) set -o posix ;; 16378 case `(set -o) 2>/dev/null` in #( 16379 *posix*) : 16380 set -o posix ;; #( 16381 *) : 16382 ;; 4556 16383 esac 4557 4558 fi 4559 4560 4561 4562 4563 # PATH needs CR 4564 # Avoid depending upon Character Ranges. 4565 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4566 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4567 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4568 as_cr_digits='0123456789' 4569 as_cr_alnum=$as_cr_Letters$as_cr_digits 16384 fi 16385 4570 16386 4571 16387 as_nl=' … … 4576 16392 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4577 16393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4578 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16394 # Prefer a ksh shell builtin over an external printf program on Solaris, 16395 # but without wasting forks for bash or zsh. 16396 if test -z "$BASH_VERSION$ZSH_VERSION" \ 16397 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16398 as_echo='print -r --' 16399 as_echo_n='print -rn --' 16400 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 4579 16401 as_echo='printf %s\n' 4580 16402 as_echo_n='printf %s' … … 4587 16409 as_echo_n_body='eval 4588 16410 arg=$1; 4589 case $arg in 16411 case $arg in #( 4590 16412 *"$as_nl"*) 4591 16413 expr "X$arg" : "X\\(.*\\)$as_nl"; … … 4610 16432 fi 4611 16433 4612 # Support unset when possible.4613 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then4614 as_unset=unset4615 else4616 as_unset=false4617 fi4618 4619 16434 4620 16435 # IFS … … 4626 16441 4627 16442 # Find who we are. Look in the path if we contain no directory separator. 4628 case $0 in 16443 as_myself= 16444 case $0 in #(( 4629 16445 *[\\/]* ) as_myself=$0 ;; 4630 16446 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 4633 16449 IFS=$as_save_IFS 4634 16450 test -z "$as_dir" && as_dir=. 4635 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break4636 done16451 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16452 done 4637 16453 IFS=$as_save_IFS 4638 16454 … … 4646 16462 if test ! -f "$as_myself"; then 4647 16463 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 4648 { (exit 1); exit 1; } 4649 fi 4650 4651 # Work around bugs in pre-3.0 UWIN ksh. 4652 for as_var in ENV MAIL MAILPATH 4653 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 16464 exit 1 16465 fi 16466 16467 # Unset variables that we do not need and which cause bugs (e.g. in 16468 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16469 # suppresses any "Segmentation fault" message there. '((' could 16470 # trigger a bug in pdksh 5.2.14. 16471 for as_var in BASH_ENV ENV MAIL MAILPATH 16472 do eval test x\${$as_var+set} = xset \ 16473 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 4654 16474 done 4655 16475 PS1='$ ' … … 4663 16483 export LANGUAGE 4664 16484 4665 # Required to use basename. 16485 # CDPATH. 16486 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16487 16488 16489 # as_fn_error STATUS ERROR [LINENO LOG_FD] 16490 # ---------------------------------------- 16491 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16492 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16493 # script with STATUS, using 1 if that was 0. 16494 as_fn_error () 16495 { 16496 as_status=$1; test $as_status -eq 0 && as_status=1 16497 if test "$4"; then 16498 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16499 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16500 fi 16501 $as_echo "$as_me: error: $2" >&2 16502 as_fn_exit $as_status 16503 } # as_fn_error 16504 16505 16506 # as_fn_set_status STATUS 16507 # ----------------------- 16508 # Set $? to STATUS, without forking. 16509 as_fn_set_status () 16510 { 16511 return $1 16512 } # as_fn_set_status 16513 16514 # as_fn_exit STATUS 16515 # ----------------- 16516 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16517 as_fn_exit () 16518 { 16519 set +e 16520 as_fn_set_status $1 16521 exit $1 16522 } # as_fn_exit 16523 16524 # as_fn_unset VAR 16525 # --------------- 16526 # Portably unset VAR. 16527 as_fn_unset () 16528 { 16529 { eval $1=; unset $1;} 16530 } 16531 as_unset=as_fn_unset 16532 # as_fn_append VAR VALUE 16533 # ---------------------- 16534 # Append the text in VALUE to the end of the definition contained in VAR. Take 16535 # advantage of any shell optimizations that allow amortized linear growth over 16536 # repeated appends, instead of the typical quadratic growth present in naive 16537 # implementations. 16538 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16539 eval 'as_fn_append () 16540 { 16541 eval $1+=\$2 16542 }' 16543 else 16544 as_fn_append () 16545 { 16546 eval $1=\$$1\$2 16547 } 16548 fi # as_fn_append 16549 16550 # as_fn_arith ARG... 16551 # ------------------ 16552 # Perform arithmetic evaluation on the ARGs, and store the result in the 16553 # global $as_val. Take advantage of shells that can avoid forks. The arguments 16554 # must be portable across $(()) and expr. 16555 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16556 eval 'as_fn_arith () 16557 { 16558 as_val=$(( $* )) 16559 }' 16560 else 16561 as_fn_arith () 16562 { 16563 as_val=`expr "$@" || test $? -eq 1` 16564 } 16565 fi # as_fn_arith 16566 16567 4666 16568 if expr a : '\(a\)' >/dev/null 2>&1 && 4667 16569 test "X`expr 00001 : '.*\(...\)'`" = X001; then … … 4677 16579 fi 4678 16580 4679 4680 # Name of the executable. 16581 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16582 as_dirname=dirname 16583 else 16584 as_dirname=false 16585 fi 16586 4681 16587 as_me=`$as_basename -- "$0" || 4682 16588 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ … … 4698 16604 s/.*/./; q'` 4699 16605 4700 # CDPATH. 4701 $as_unset CDPATH 4702 4703 4704 4705 as_lineno_1=$LINENO 4706 as_lineno_2=$LINENO 4707 test "x$as_lineno_1" != "x$as_lineno_2" && 4708 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 4709 4710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 4711 # uniformly replaced by the line number. The first 'sed' inserts a 4712 # line-number line after each line using $LINENO; the second 'sed' 4713 # does the real work. The second script uses 'N' to pair each 4714 # line-number line with the line containing $LINENO, and appends 4715 # trailing '-' during substitution so that $LINENO is not a special 4716 # case at line end. 4717 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 4718 # scripts with optimization help from Paolo Bonzini. Blame Lee 4719 # E. McMahon (1931-1989) for sed's syntax. :-) 4720 sed -n ' 4721 p 4722 /[$]LINENO/= 4723 ' <$as_myself | 4724 sed ' 4725 s/[$]LINENO.*/&-/ 4726 t lineno 4727 b 4728 :lineno 4729 N 4730 :loop 4731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4732 t loop 4733 s/-\n.*// 4734 ' >$as_me.lineno && 4735 chmod +x "$as_me.lineno" || 4736 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 4737 { (exit 1); exit 1; }; } 4738 4739 # Don't try to exec as it changes $[0], causing all sort of problems 4740 # (the dirname of $[0] is not the place where we might find the 4741 # original and so on. Autoconf is especially sensitive to this). 4742 . "./$as_me.lineno" 4743 # Exit status is that of the last command. 4744 exit 4745 } 4746 4747 4748 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4749 as_dirname=dirname 4750 else 4751 as_dirname=false 4752 fi 16606 # Avoid depending upon Character Ranges. 16607 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16608 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16609 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16610 as_cr_digits='0123456789' 16611 as_cr_alnum=$as_cr_Letters$as_cr_digits 4753 16612 4754 16613 ECHO_C= ECHO_N= ECHO_T= 4755 case `echo -n x` in 16614 case `echo -n x` in #((((( 4756 16615 -n*) 4757 case `echo 'x \c'` in16616 case `echo 'xy\c'` in 4758 16617 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4759 *) ECHO_C='\c';; 16618 xy) ECHO_C='\c';; 16619 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16620 ECHO_T=' ';; 4760 16621 esac;; 4761 16622 *) 4762 16623 ECHO_N='-n';; 4763 16624 esac 4764 if expr a : '\(a\)' >/dev/null 2>&1 &&4765 test "X`expr 00001 : '.*\(...\)'`" = X001; then4766 as_expr=expr4767 else4768 as_expr=false4769 fi4770 16625 4771 16626 rm -f conf$$ conf$$.exe conf$$.file … … 4796 16651 rmdir conf$$.dir 2>/dev/null 4797 16652 4798 if mkdir -p . 2>/dev/null; then 4799 as_mkdir_p=: 4800 else 4801 test -d ./-p && rmdir ./-p 4802 as_mkdir_p=false 4803 fi 4804 4805 if test -x / >/dev/null 2>&1; then 4806 as_test_x='test -x' 4807 else 4808 if ls -dL / >/dev/null 2>&1; then 4809 as_ls_L_option=L 4810 else 4811 as_ls_L_option= 4812 fi 4813 as_test_x=' 4814 eval sh -c '\'' 4815 if test -d "$1"; then 4816 test -d "$1/."; 4817 else 4818 case $1 in 4819 -*)set "./$1";; 4820 esac; 4821 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 4822 ???[sx]*):;;*)false;;esac;fi 4823 '\'' sh 4824 ' 4825 fi 4826 as_executable_p=$as_test_x 4827 4828 # Sed expression to map a string onto a valid CPP name. 4829 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4830 4831 # Sed expression to map a string onto a valid variable name. 4832 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4833 4834 4835 exec 6>&1 4836 4837 # Save the log message, to keep $[0] and so on meaningful, and to 4838 # report actual input values of CONFIG_FILES etc. instead of their 4839 # values after options handling. 4840 ac_log=" 4841 This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was 4842 generated by GNU Autoconf 2.63. Invocation command line was 4843 4844 CONFIG_FILES = $CONFIG_FILES 4845 CONFIG_HEADERS = $CONFIG_HEADERS 4846 CONFIG_LINKS = $CONFIG_LINKS 4847 CONFIG_COMMANDS = $CONFIG_COMMANDS 4848 $ $0 $@ 4849 4850 on `(hostname || uname -n) 2>/dev/null | sed 1q` 4851 " 4852 4853 _ACEOF 4854 4855 case $ac_config_files in *" 4856 "*) set x $ac_config_files; shift; ac_config_files=$*;; 4857 esac 4858 4859 4860 4861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4862 # Files that config.status was made for. 4863 config_files="$ac_config_files" 4864 4865 _ACEOF 4866 4867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4868 ac_cs_usage="\ 4869 \`$as_me' instantiates files from templates according to the 4870 current configuration. 4871 4872 Usage: $0 [OPTION]... [FILE]... 4873 4874 -h, --help print this help, then exit 4875 -V, --version print version number and configuration settings, then exit 4876 -q, --quiet, --silent 4877 do not print progress messages 4878 -d, --debug don't remove temporary files 4879 --recheck update $as_me by reconfiguring in the same conditions 4880 --file=FILE[:TEMPLATE] 4881 instantiate the configuration file FILE 4882 4883 Configuration files: 4884 $config_files 4885 4886 Report bugs to <bug-autoconf@gnu.org>." 4887 4888 _ACEOF 4889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4890 ac_cs_version="\\ 4891 FULL-PACKAGE-NAME config.status VERSION 4892 configured by $0, generated by GNU Autoconf 2.63, 4893 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 4894 4895 Copyright (C) 2008 Free Software Foundation, Inc. 4896 This config.status script is free software; the Free Software Foundation 4897 gives unlimited permission to copy, distribute and modify it." 4898 4899 ac_pwd='$ac_pwd' 4900 srcdir='$srcdir' 4901 test -n "\$AWK" || AWK=awk 4902 _ACEOF 4903 4904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4905 # The default lists apply if the user does not specify any file. 4906 ac_need_defaults=: 4907 while test $# != 0 4908 do 4909 case $1 in 4910 --*=*) 4911 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4912 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4913 ac_shift=: 4914 ;; 4915 *) 4916 ac_option=$1 4917 ac_optarg=$2 4918 ac_shift=shift 4919 ;; 4920 esac 4921 4922 case $ac_option in 4923 # Handling of the options. 4924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4925 ac_cs_recheck=: ;; 4926 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 4927 $as_echo "$ac_cs_version"; exit ;; 4928 --debug | --debu | --deb | --de | --d | -d ) 4929 debug=: ;; 4930 --file | --fil | --fi | --f ) 4931 $ac_shift 4932 case $ac_optarg in 4933 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4934 esac 4935 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 4936 ac_need_defaults=false;; 4937 --he | --h | --help | --hel | -h ) 4938 $as_echo "$ac_cs_usage"; exit ;; 4939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4940 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4941 ac_cs_silent=: ;; 4942 4943 # This is an error. 4944 -*) { $as_echo "$as_me: error: unrecognized option: $1 4945 Try \`$0 --help' for more information." >&2 4946 { (exit 1); exit 1; }; } ;; 4947 4948 *) ac_config_targets="$ac_config_targets $1" 4949 ac_need_defaults=false ;; 4950 4951 esac 4952 shift 4953 done 4954 4955 ac_configure_extra_args= 4956 4957 if $ac_cs_silent; then 4958 exec 6>/dev/null 4959 ac_configure_extra_args="$ac_configure_extra_args --silent" 4960 fi 4961 4962 _ACEOF 4963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4964 if \$ac_cs_recheck; then 4965 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4966 shift 4967 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 4968 CONFIG_SHELL='$SHELL' 4969 export CONFIG_SHELL 4970 exec "\$@" 4971 fi 4972 4973 _ACEOF 4974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4975 exec 5>>config.log 16653 16654 # as_fn_mkdir_p 16655 # ------------- 16656 # Create "$as_dir" as a directory, including parents if necessary. 16657 as_fn_mkdir_p () 4976 16658 { 4977 echo 4978 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4979 ## Running $as_me. ## 4980 _ASBOX 4981 $as_echo "$ac_log" 4982 } >&5 4983 4984 _ACEOF 4985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4986 _ACEOF 4987 4988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4989 4990 # Handling of arguments. 4991 for ac_config_target in $ac_config_targets 4992 do 4993 case $ac_config_target in 4994 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4995 4996 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 4997 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 4998 { (exit 1); exit 1; }; };; 4999 esac 5000 done 5001 5002 5003 # If the user did not use the arguments to specify the items to instantiate, 5004 # then the envvar interface is used. Set only those that are not. 5005 # We use the long form for the default assignment because of an extremely 5006 # bizarre bug on SunOS 4.1.3. 5007 if $ac_need_defaults; then 5008 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5009 fi 5010 5011 # Have a temporary directory for convenience. Make it in the build tree 5012 # simply because there is no reason against having it here, and in addition, 5013 # creating and moving files from /tmp can sometimes cause problems. 5014 # Hook for its removal unless debugging. 5015 # Note that there is a small window in which the directory will not be cleaned: 5016 # after its creation but before its name has been assigned to `$tmp'. 5017 $debug || 5018 { 5019 tmp= 5020 trap 'exit_status=$? 5021 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5022 ' 0 5023 trap '{ (exit 1); exit 1; }' 1 2 13 15 5024 } 5025 # Create a (secure) tmp directory for tmp files. 5026 5027 { 5028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5029 test -n "$tmp" && test -d "$tmp" 5030 } || 5031 { 5032 tmp=./conf$$-$RANDOM 5033 (umask 077 && mkdir "$tmp") 5034 } || 5035 { 5036 $as_echo "$as_me: cannot create a temporary directory in ." >&2 5037 { (exit 1); exit 1; } 5038 } 5039 5040 # Set up the scripts for CONFIG_FILES section. 5041 # No need to generate them if there are no CONFIG_FILES. 5042 # This happens for instance with `./config.status config.h'. 5043 if test -n "$CONFIG_FILES"; then 5044 5045 5046 ac_cr=' 5047 ' 5048 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5049 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5050 ac_cs_awk_cr='\\r' 5051 else 5052 ac_cs_awk_cr=$ac_cr 5053 fi 5054 5055 echo 'BEGIN {' >"$tmp/subs1.awk" && 5056 _ACEOF 5057 5058 5059 { 5060 echo "cat >conf$$subs.awk <<_ACEOF" && 5061 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5062 echo "_ACEOF" 5063 } >conf$$subs.sh || 5064 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 5065 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 5066 { (exit 1); exit 1; }; } 5067 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 5068 ac_delim='%!_!# ' 5069 for ac_last_try in false false false false false :; do 5070 . ./conf$$subs.sh || 5071 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 5072 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 5073 { (exit 1); exit 1; }; } 5074 5075 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5076 if test $ac_delim_n = $ac_delim_num; then 5077 break 5078 elif $ac_last_try; then 5079 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 5080 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 5081 { (exit 1); exit 1; }; } 5082 else 5083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5084 fi 5085 done 5086 rm -f conf$$subs.sh 5087 5088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5089 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 5090 _ACEOF 5091 sed -n ' 5092 h 5093 s/^/S["/; s/!.*/"]=/ 5094 p 5095 g 5096 s/^[^!]*!// 5097 :repl 5098 t repl 5099 s/'"$ac_delim"'$// 5100 t delim 5101 :nl 5102 h 5103 s/\(.\{148\}\).*/\1/ 5104 t more1 5105 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5106 p 5107 n 5108 b repl 5109 :more1 5110 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5111 p 5112 g 5113 s/.\{148\}// 5114 t nl 5115 :delim 5116 h 5117 s/\(.\{148\}\).*/\1/ 5118 t more2 5119 s/["\\]/\\&/g; s/^/"/; s/$/"/ 5120 p 5121 b 5122 :more2 5123 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5124 p 5125 g 5126 s/.\{148\}// 5127 t delim 5128 ' <conf$$subs.awk | sed ' 5129 /^[^""]/{ 5130 N 5131 s/\n// 5132 } 5133 ' >>$CONFIG_STATUS || ac_write_fail=1 5134 rm -f conf$$subs.awk 5135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5136 _ACAWK 5137 cat >>"\$tmp/subs1.awk" <<_ACAWK && 5138 for (key in S) S_is_set[key] = 1 5139 FS = "" 5140 5141 } 5142 { 5143 line = $ 0 5144 nfields = split(line, field, "@") 5145 substed = 0 5146 len = length(field[1]) 5147 for (i = 2; i < nfields; i++) { 5148 key = field[i] 5149 keylen = length(key) 5150 if (S_is_set[key]) { 5151 value = S[key] 5152 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5153 len += length(value) + length(field[++i]) 5154 substed = 1 5155 } else 5156 len += 1 + keylen 5157 } 5158 5159 print line 5160 } 5161 5162 _ACAWK 5163 _ACEOF 5164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5165 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 5166 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 5167 else 5168 cat 5169 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 5170 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 5171 $as_echo "$as_me: error: could not setup config files machinery" >&2;} 5172 { (exit 1); exit 1; }; } 5173 _ACEOF 5174 5175 # VPATH may cause trouble with some makes, so we remove $(srcdir), 5176 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5177 # trailing colons and then remove the whole line if VPATH becomes empty 5178 # (actually we leave an empty line to preserve line numbers). 5179 if test "x$srcdir" = x.; then 5180 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5181 s/:*\$(srcdir):*/:/ 5182 s/:*\${srcdir}:*/:/ 5183 s/:*@srcdir@:*/:/ 5184 s/^\([^=]*=[ ]*\):*/\1/ 5185 s/:*$// 5186 s/^[^=]*=[ ]*$// 5187 }' 5188 fi 5189 5190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5191 fi # test -n "$CONFIG_FILES" 5192 5193 5194 eval set X " :F $CONFIG_FILES " 5195 shift 5196 for ac_tag 5197 do 5198 case $ac_tag in 5199 :[FHLC]) ac_mode=$ac_tag; continue;; 5200 esac 5201 case $ac_mode$ac_tag in 5202 :[FHL]*:*);; 5203 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 5204 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 5205 { (exit 1); exit 1; }; };; 5206 :[FH]-) ac_tag=-:-;; 5207 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5208 esac 5209 ac_save_IFS=$IFS 5210 IFS=: 5211 set x $ac_tag 5212 IFS=$ac_save_IFS 5213 shift 5214 ac_file=$1 5215 shift 5216 5217 case $ac_mode in 5218 :L) ac_source=$1;; 5219 :[FH]) 5220 ac_file_inputs= 5221 for ac_f 5222 do 5223 case $ac_f in 5224 -) ac_f="$tmp/stdin";; 5225 *) # Look for the file first in the build tree, then in the source tree 5226 # (if the path is not absolute). The absolute path cannot be DOS-style, 5227 # because $ac_f cannot contain `:'. 5228 test -f "$ac_f" || 5229 case $ac_f in 5230 [\\/$]*) false;; 5231 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5232 esac || 5233 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 5234 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 5235 { (exit 1); exit 1; }; };; 5236 esac 5237 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 5238 ac_file_inputs="$ac_file_inputs '$ac_f'" 5239 done 5240 5241 # Let's still pretend it is `configure' which instantiates (i.e., don't 5242 # use $as_me), people would be surprised to read: 5243 # /* config.h. Generated by config.status. */ 5244 configure_input='Generated from '` 5245 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 5246 `' by configure.' 5247 if test x"$ac_file" != x-; then 5248 configure_input="$ac_file. $configure_input" 5249 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 5250 $as_echo "$as_me: creating $ac_file" >&6;} 5251 fi 5252 # Neutralize special characters interpreted by sed in replacement strings. 5253 case $configure_input in #( 5254 *\&* | *\|* | *\\* ) 5255 ac_sed_conf_input=`$as_echo "$configure_input" | 5256 sed 's/[\\\\&|]/\\\\&/g'`;; #( 5257 *) ac_sed_conf_input=$configure_input;; 5258 esac 5259 5260 case $ac_tag in 5261 *:-:* | *:-) cat >"$tmp/stdin" \ 5262 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 5263 $as_echo "$as_me: error: could not create $ac_file" >&2;} 5264 { (exit 1); exit 1; }; } ;; 5265 esac 5266 ;; 5267 esac 5268 5269 ac_dir=`$as_dirname -- "$ac_file" || 5270 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5271 X"$ac_file" : 'X\(//\)[^/]' \| \ 5272 X"$ac_file" : 'X\(//\)$' \| \ 5273 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5274 $as_echo X"$ac_file" | 5275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5276 s//\1/ 5277 q 5278 } 5279 /^X\(\/\/\)[^/].*/{ 5280 s//\1/ 5281 q 5282 } 5283 /^X\(\/\/\)$/{ 5284 s//\1/ 5285 q 5286 } 5287 /^X\(\/\).*/{ 5288 s//\1/ 5289 q 5290 } 5291 s/.*/./; q'` 5292 { as_dir="$ac_dir" 16659 5293 16660 case $as_dir in #( 5294 16661 -*) as_dir=./$as_dir;; 5295 16662 esac 5296 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; }|| {16663 test -d "$as_dir" || eval $as_mkdir_p || { 5297 16664 as_dirs= 5298 16665 while :; do … … 5328 16695 done 5329 16696 test -z "$as_dirs" || eval "mkdir $as_dirs" 5330 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 5331 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 5332 { (exit 1); exit 1; }; }; } 16697 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16698 16699 16700 } # as_fn_mkdir_p 16701 if mkdir -p . 2>/dev/null; then 16702 as_mkdir_p='mkdir -p "$as_dir"' 16703 else 16704 test -d ./-p && rmdir ./-p 16705 as_mkdir_p=false 16706 fi 16707 16708 if test -x / >/dev/null 2>&1; then 16709 as_test_x='test -x' 16710 else 16711 if ls -dL / >/dev/null 2>&1; then 16712 as_ls_L_option=L 16713 else 16714 as_ls_L_option= 16715 fi 16716 as_test_x=' 16717 eval sh -c '\'' 16718 if test -d "$1"; then 16719 test -d "$1/."; 16720 else 16721 case $1 in #( 16722 -*)set "./$1";; 16723 esac; 16724 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16725 ???[sx]*):;;*)false;;esac;fi 16726 '\'' sh 16727 ' 16728 fi 16729 as_executable_p=$as_test_x 16730 16731 # Sed expression to map a string onto a valid CPP name. 16732 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16733 16734 # Sed expression to map a string onto a valid variable name. 16735 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16736 16737 16738 exec 6>&1 16739 ## ----------------------------------- ## 16740 ## Main body of $CONFIG_STATUS script. ## 16741 ## ----------------------------------- ## 16742 _ASEOF 16743 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16744 16745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16746 # Save the log message, to keep $0 and so on meaningful, and to 16747 # report actual input values of CONFIG_FILES etc. instead of their 16748 # values after options handling. 16749 ac_log=" 16750 This file was extended by libgfan $as_me 0.1, which was 16751 generated by GNU Autoconf 2.68. Invocation command line was 16752 16753 CONFIG_FILES = $CONFIG_FILES 16754 CONFIG_HEADERS = $CONFIG_HEADERS 16755 CONFIG_LINKS = $CONFIG_LINKS 16756 CONFIG_COMMANDS = $CONFIG_COMMANDS 16757 $ $0 $@ 16758 16759 on `(hostname || uname -n) 2>/dev/null | sed 1q` 16760 " 16761 16762 _ACEOF 16763 16764 case $ac_config_files in *" 16765 "*) set x $ac_config_files; shift; ac_config_files=$*;; 16766 esac 16767 16768 16769 16770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16771 # Files that config.status was made for. 16772 config_files="$ac_config_files" 16773 config_commands="$ac_config_commands" 16774 16775 _ACEOF 16776 16777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16778 ac_cs_usage="\ 16779 \`$as_me' instantiates files and other configuration actions 16780 from templates according to the current configuration. Unless the files 16781 and actions are specified as TAGs, all are instantiated by default. 16782 16783 Usage: $0 [OPTION]... [TAG]... 16784 16785 -h, --help print this help, then exit 16786 -V, --version print version number and configuration settings, then exit 16787 --config print configuration, then exit 16788 -q, --quiet, --silent 16789 do not print progress messages 16790 -d, --debug don't remove temporary files 16791 --recheck update $as_me by reconfiguring in the same conditions 16792 --file=FILE[:TEMPLATE] 16793 instantiate the configuration file FILE 16794 16795 Configuration files: 16796 $config_files 16797 16798 Configuration commands: 16799 $config_commands 16800 16801 Report bugs to <ren@mathematik.uni-kl.de>." 16802 16803 _ACEOF 16804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16805 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16806 ac_cs_version="\\ 16807 libgfan config.status 0.1 16808 configured by $0, generated by GNU Autoconf 2.68, 16809 with options \\"\$ac_cs_config\\" 16810 16811 Copyright (C) 2010 Free Software Foundation, Inc. 16812 This config.status script is free software; the Free Software Foundation 16813 gives unlimited permission to copy, distribute and modify it." 16814 16815 ac_pwd='$ac_pwd' 16816 srcdir='$srcdir' 16817 INSTALL='$INSTALL' 16818 MKDIR_P='$MKDIR_P' 16819 AWK='$AWK' 16820 test -n "\$AWK" || AWK=awk 16821 _ACEOF 16822 16823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16824 # The default lists apply if the user does not specify any file. 16825 ac_need_defaults=: 16826 while test $# != 0 16827 do 16828 case $1 in 16829 --*=?*) 16830 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16831 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16832 ac_shift=: 16833 ;; 16834 --*=) 16835 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16836 ac_optarg= 16837 ac_shift=: 16838 ;; 16839 *) 16840 ac_option=$1 16841 ac_optarg=$2 16842 ac_shift=shift 16843 ;; 16844 esac 16845 16846 case $ac_option in 16847 # Handling of the options. 16848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16849 ac_cs_recheck=: ;; 16850 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16851 $as_echo "$ac_cs_version"; exit ;; 16852 --config | --confi | --conf | --con | --co | --c ) 16853 $as_echo "$ac_cs_config"; exit ;; 16854 --debug | --debu | --deb | --de | --d | -d ) 16855 debug=: ;; 16856 --file | --fil | --fi | --f ) 16857 $ac_shift 16858 case $ac_optarg in 16859 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16860 '') as_fn_error $? "missing file argument" ;; 16861 esac 16862 as_fn_append CONFIG_FILES " '$ac_optarg'" 16863 ac_need_defaults=false;; 16864 --he | --h | --help | --hel | -h ) 16865 $as_echo "$ac_cs_usage"; exit ;; 16866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16867 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16868 ac_cs_silent=: ;; 16869 16870 # This is an error. 16871 -*) as_fn_error $? "unrecognized option: \`$1' 16872 Try \`$0 --help' for more information." ;; 16873 16874 *) as_fn_append ac_config_targets " $1" 16875 ac_need_defaults=false ;; 16876 16877 esac 16878 shift 16879 done 16880 16881 ac_configure_extra_args= 16882 16883 if $ac_cs_silent; then 16884 exec 6>/dev/null 16885 ac_configure_extra_args="$ac_configure_extra_args --silent" 16886 fi 16887 16888 _ACEOF 16889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16890 if \$ac_cs_recheck; then 16891 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16892 shift 16893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16894 CONFIG_SHELL='$SHELL' 16895 export CONFIG_SHELL 16896 exec "\$@" 16897 fi 16898 16899 _ACEOF 16900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16901 exec 5>>config.log 16902 { 16903 echo 16904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16905 ## Running $as_me. ## 16906 _ASBOX 16907 $as_echo "$ac_log" 16908 } >&5 16909 16910 _ACEOF 16911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16912 # 16913 # INIT-COMMANDS 16914 # 16915 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16916 16917 16918 # The HP-UX ksh and POSIX shell print the target directory to stdout 16919 # if CDPATH is set. 16920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16921 16922 sed_quote_subst='$sed_quote_subst' 16923 double_quote_subst='$double_quote_subst' 16924 delay_variable_subst='$delay_variable_subst' 16925 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16926 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16927 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16928 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16929 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16930 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16931 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16932 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16933 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16934 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16935 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16936 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16937 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16938 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16939 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16940 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16941 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16942 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16943 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16944 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16945 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16946 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16947 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16948 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16949 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16950 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16951 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16952 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16953 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16954 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16955 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16956 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16957 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16958 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16959 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16960 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16961 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16962 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16963 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16964 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16965 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16966 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16967 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16968 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16969 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16970 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16971 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16972 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16973 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16974 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16975 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16976 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16977 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16978 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16979 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16980 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16981 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 16982 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16983 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16984 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16985 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16986 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16987 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16988 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16989 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16990 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16991 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16992 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16993 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16994 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16995 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16996 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16997 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16998 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16999 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17000 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17001 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17002 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17003 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17004 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17005 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17006 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17007 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17008 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17009 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17010 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17011 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17012 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17013 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17014 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17015 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17016 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17017 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17018 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17019 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17020 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17021 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17022 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17023 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17024 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17025 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17026 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17027 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17028 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17029 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17030 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17031 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17032 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17033 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17034 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17035 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17036 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17037 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17038 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17039 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17040 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17041 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17042 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17043 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17044 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17045 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17046 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17047 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17048 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17049 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17050 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17051 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17052 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17053 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17054 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17055 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17056 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17057 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17058 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17059 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17060 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17061 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17062 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17063 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17064 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17065 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17066 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17067 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17068 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17069 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17070 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17071 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17072 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17073 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17074 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17075 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17076 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17077 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17078 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17079 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17080 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17081 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17082 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17083 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17084 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17085 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17086 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17087 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17088 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17089 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17090 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17091 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17092 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17093 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17094 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17095 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17096 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17097 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17098 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17099 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17100 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17101 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17102 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17103 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17104 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17105 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17106 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17107 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17108 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17109 17110 LTCC='$LTCC' 17111 LTCFLAGS='$LTCFLAGS' 17112 compiler='$compiler_DEFAULT' 17113 17114 # A function that is used when there is no print builtin or printf. 17115 func_fallback_echo () 17116 { 17117 eval 'cat <<_LTECHO_EOF 17118 \$1 17119 _LTECHO_EOF' 17120 } 17121 17122 # Quote evaled strings. 17123 for var in SHELL \ 17124 ECHO \ 17125 PATH_SEPARATOR \ 17126 SED \ 17127 GREP \ 17128 EGREP \ 17129 FGREP \ 17130 LD \ 17131 NM \ 17132 LN_S \ 17133 lt_SP2NL \ 17134 lt_NL2SP \ 17135 reload_flag \ 17136 OBJDUMP \ 17137 deplibs_check_method \ 17138 file_magic_cmd \ 17139 file_magic_glob \ 17140 want_nocaseglob \ 17141 DLLTOOL \ 17142 sharedlib_from_linklib_cmd \ 17143 AR \ 17144 AR_FLAGS \ 17145 archiver_list_spec \ 17146 STRIP \ 17147 RANLIB \ 17148 CC \ 17149 CFLAGS \ 17150 compiler \ 17151 lt_cv_sys_global_symbol_pipe \ 17152 lt_cv_sys_global_symbol_to_cdecl \ 17153 lt_cv_sys_global_symbol_to_c_name_address \ 17154 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17155 nm_file_list_spec \ 17156 lt_prog_compiler_no_builtin_flag \ 17157 lt_prog_compiler_pic \ 17158 lt_prog_compiler_wl \ 17159 lt_prog_compiler_static \ 17160 lt_cv_prog_compiler_c_o \ 17161 need_locks \ 17162 MANIFEST_TOOL \ 17163 DSYMUTIL \ 17164 NMEDIT \ 17165 LIPO \ 17166 OTOOL \ 17167 OTOOL64 \ 17168 shrext_cmds \ 17169 export_dynamic_flag_spec \ 17170 whole_archive_flag_spec \ 17171 compiler_needs_object \ 17172 with_gnu_ld \ 17173 allow_undefined_flag \ 17174 no_undefined_flag \ 17175 hardcode_libdir_flag_spec \ 17176 hardcode_libdir_separator \ 17177 exclude_expsyms \ 17178 include_expsyms \ 17179 file_list_spec \ 17180 variables_saved_for_relink \ 17181 libname_spec \ 17182 library_names_spec \ 17183 soname_spec \ 17184 install_override_mode \ 17185 finish_eval \ 17186 old_striplib \ 17187 striplib \ 17188 compiler_lib_search_dirs \ 17189 predep_objects \ 17190 postdep_objects \ 17191 predeps \ 17192 postdeps \ 17193 compiler_lib_search_path \ 17194 LD_CXX \ 17195 reload_flag_CXX \ 17196 compiler_CXX \ 17197 lt_prog_compiler_no_builtin_flag_CXX \ 17198 lt_prog_compiler_pic_CXX \ 17199 lt_prog_compiler_wl_CXX \ 17200 lt_prog_compiler_static_CXX \ 17201 lt_cv_prog_compiler_c_o_CXX \ 17202 export_dynamic_flag_spec_CXX \ 17203 whole_archive_flag_spec_CXX \ 17204 compiler_needs_object_CXX \ 17205 with_gnu_ld_CXX \ 17206 allow_undefined_flag_CXX \ 17207 no_undefined_flag_CXX \ 17208 hardcode_libdir_flag_spec_CXX \ 17209 hardcode_libdir_separator_CXX \ 17210 exclude_expsyms_CXX \ 17211 include_expsyms_CXX \ 17212 file_list_spec_CXX \ 17213 compiler_lib_search_dirs_CXX \ 17214 predep_objects_CXX \ 17215 postdep_objects_CXX \ 17216 predeps_CXX \ 17217 postdeps_CXX \ 17218 compiler_lib_search_path_CXX; do 17219 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17220 *[\\\\\\\`\\"\\\$]*) 17221 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17222 ;; 17223 *) 17224 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17225 ;; 17226 esac 17227 done 17228 17229 # Double-quote double-evaled strings. 17230 for var in reload_cmds \ 17231 old_postinstall_cmds \ 17232 old_postuninstall_cmds \ 17233 old_archive_cmds \ 17234 extract_expsyms_cmds \ 17235 old_archive_from_new_cmds \ 17236 old_archive_from_expsyms_cmds \ 17237 archive_cmds \ 17238 archive_expsym_cmds \ 17239 module_cmds \ 17240 module_expsym_cmds \ 17241 export_symbols_cmds \ 17242 prelink_cmds \ 17243 postlink_cmds \ 17244 postinstall_cmds \ 17245 postuninstall_cmds \ 17246 finish_cmds \ 17247 sys_lib_search_path_spec \ 17248 sys_lib_dlsearch_path_spec \ 17249 reload_cmds_CXX \ 17250 old_archive_cmds_CXX \ 17251 old_archive_from_new_cmds_CXX \ 17252 old_archive_from_expsyms_cmds_CXX \ 17253 archive_cmds_CXX \ 17254 archive_expsym_cmds_CXX \ 17255 module_cmds_CXX \ 17256 module_expsym_cmds_CXX \ 17257 export_symbols_cmds_CXX \ 17258 prelink_cmds_CXX \ 17259 postlink_cmds_CXX; do 17260 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17261 *[\\\\\\\`\\"\\\$]*) 17262 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17263 ;; 17264 *) 17265 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17266 ;; 17267 esac 17268 done 17269 17270 ac_aux_dir='$ac_aux_dir' 17271 xsi_shell='$xsi_shell' 17272 lt_shell_append='$lt_shell_append' 17273 17274 # See if we are running on zsh, and set the options which allow our 17275 # commands through without removal of \ escapes INIT. 17276 if test -n "\${ZSH_VERSION+set}" ; then 17277 setopt NO_GLOB_SUBST 17278 fi 17279 17280 17281 PACKAGE='$PACKAGE' 17282 VERSION='$VERSION' 17283 TIMESTAMP='$TIMESTAMP' 17284 RM='$RM' 17285 ofile='$ofile' 17286 17287 17288 17289 17290 17291 17292 _ACEOF 17293 17294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17295 17296 # Handling of arguments. 17297 for ac_config_target in $ac_config_targets 17298 do 17299 case $ac_config_target in 17300 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17301 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17302 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17303 17304 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17305 esac 17306 done 17307 17308 17309 # If the user did not use the arguments to specify the items to instantiate, 17310 # then the envvar interface is used. Set only those that are not. 17311 # We use the long form for the default assignment because of an extremely 17312 # bizarre bug on SunOS 4.1.3. 17313 if $ac_need_defaults; then 17314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17316 fi 17317 17318 # Have a temporary directory for convenience. Make it in the build tree 17319 # simply because there is no reason against having it here, and in addition, 17320 # creating and moving files from /tmp can sometimes cause problems. 17321 # Hook for its removal unless debugging. 17322 # Note that there is a small window in which the directory will not be cleaned: 17323 # after its creation but before its name has been assigned to `$tmp'. 17324 $debug || 17325 { 17326 tmp= ac_tmp= 17327 trap 'exit_status=$? 17328 : "${ac_tmp:=$tmp}" 17329 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17330 ' 0 17331 trap 'as_fn_exit 1' 1 2 13 15 17332 } 17333 # Create a (secure) tmp directory for tmp files. 17334 17335 { 17336 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17337 test -d "$tmp" 17338 } || 17339 { 17340 tmp=./conf$$-$RANDOM 17341 (umask 077 && mkdir "$tmp") 17342 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17343 ac_tmp=$tmp 17344 17345 # Set up the scripts for CONFIG_FILES section. 17346 # No need to generate them if there are no CONFIG_FILES. 17347 # This happens for instance with `./config.status config.h'. 17348 if test -n "$CONFIG_FILES"; then 17349 17350 17351 ac_cr=`echo X | tr X '\015'` 17352 # On cygwin, bash can eat \r inside `` if the user requested igncr. 17353 # But we know of no other shell where ac_cr would be empty at this 17354 # point, so we can use a bashism as a fallback. 17355 if test "x$ac_cr" = x; then 17356 eval ac_cr=\$\'\\r\' 17357 fi 17358 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17359 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17360 ac_cs_awk_cr='\\r' 17361 else 17362 ac_cs_awk_cr=$ac_cr 17363 fi 17364 17365 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17366 _ACEOF 17367 17368 17369 { 17370 echo "cat >conf$$subs.awk <<_ACEOF" && 17371 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17372 echo "_ACEOF" 17373 } >conf$$subs.sh || 17374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17375 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17376 ac_delim='%!_!# ' 17377 for ac_last_try in false false false false false :; do 17378 . ./conf$$subs.sh || 17379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17380 17381 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17382 if test $ac_delim_n = $ac_delim_num; then 17383 break 17384 elif $ac_last_try; then 17385 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17386 else 17387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17388 fi 17389 done 17390 rm -f conf$$subs.sh 17391 17392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17393 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17394 _ACEOF 17395 sed -n ' 17396 h 17397 s/^/S["/; s/!.*/"]=/ 17398 p 17399 g 17400 s/^[^!]*!// 17401 :repl 17402 t repl 17403 s/'"$ac_delim"'$// 17404 t delim 17405 :nl 17406 h 17407 s/\(.\{148\}\)..*/\1/ 17408 t more1 17409 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17410 p 17411 n 17412 b repl 17413 :more1 17414 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17415 p 17416 g 17417 s/.\{148\}// 17418 t nl 17419 :delim 17420 h 17421 s/\(.\{148\}\)..*/\1/ 17422 t more2 17423 s/["\\]/\\&/g; s/^/"/; s/$/"/ 17424 p 17425 b 17426 :more2 17427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17428 p 17429 g 17430 s/.\{148\}// 17431 t delim 17432 ' <conf$$subs.awk | sed ' 17433 /^[^""]/{ 17434 N 17435 s/\n// 17436 } 17437 ' >>$CONFIG_STATUS || ac_write_fail=1 17438 rm -f conf$$subs.awk 17439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17440 _ACAWK 17441 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17442 for (key in S) S_is_set[key] = 1 17443 FS = "" 17444 17445 } 17446 { 17447 line = $ 0 17448 nfields = split(line, field, "@") 17449 substed = 0 17450 len = length(field[1]) 17451 for (i = 2; i < nfields; i++) { 17452 key = field[i] 17453 keylen = length(key) 17454 if (S_is_set[key]) { 17455 value = S[key] 17456 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17457 len += length(value) + length(field[++i]) 17458 substed = 1 17459 } else 17460 len += 1 + keylen 17461 } 17462 17463 print line 17464 } 17465 17466 _ACAWK 17467 _ACEOF 17468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17469 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17470 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17471 else 17472 cat 17473 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17474 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17475 _ACEOF 17476 17477 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17478 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17479 # trailing colons and then remove the whole line if VPATH becomes empty 17480 # (actually we leave an empty line to preserve line numbers). 17481 if test "x$srcdir" = x.; then 17482 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17483 h 17484 s/// 17485 s/^/:/ 17486 s/[ ]*$/:/ 17487 s/:\$(srcdir):/:/g 17488 s/:\${srcdir}:/:/g 17489 s/:@srcdir@:/:/g 17490 s/^:*// 17491 s/:*$// 17492 x 17493 s/\(=[ ]*\).*/\1/ 17494 G 17495 s/\n// 17496 s/^[^=]*=[ ]*$// 17497 }' 17498 fi 17499 17500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17501 fi # test -n "$CONFIG_FILES" 17502 17503 17504 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 17505 shift 17506 for ac_tag 17507 do 17508 case $ac_tag in 17509 :[FHLC]) ac_mode=$ac_tag; continue;; 17510 esac 17511 case $ac_mode$ac_tag in 17512 :[FHL]*:*);; 17513 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17514 :[FH]-) ac_tag=-:-;; 17515 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17516 esac 17517 ac_save_IFS=$IFS 17518 IFS=: 17519 set x $ac_tag 17520 IFS=$ac_save_IFS 17521 shift 17522 ac_file=$1 17523 shift 17524 17525 case $ac_mode in 17526 :L) ac_source=$1;; 17527 :[FH]) 17528 ac_file_inputs= 17529 for ac_f 17530 do 17531 case $ac_f in 17532 -) ac_f="$ac_tmp/stdin";; 17533 *) # Look for the file first in the build tree, then in the source tree 17534 # (if the path is not absolute). The absolute path cannot be DOS-style, 17535 # because $ac_f cannot contain `:'. 17536 test -f "$ac_f" || 17537 case $ac_f in 17538 [\\/$]*) false;; 17539 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17540 esac || 17541 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17542 esac 17543 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17544 as_fn_append ac_file_inputs " '$ac_f'" 17545 done 17546 17547 # Let's still pretend it is `configure' which instantiates (i.e., don't 17548 # use $as_me), people would be surprised to read: 17549 # /* config.h. Generated by config.status. */ 17550 configure_input='Generated from '` 17551 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17552 `' by configure.' 17553 if test x"$ac_file" != x-; then 17554 configure_input="$ac_file. $configure_input" 17555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17556 $as_echo "$as_me: creating $ac_file" >&6;} 17557 fi 17558 # Neutralize special characters interpreted by sed in replacement strings. 17559 case $configure_input in #( 17560 *\&* | *\|* | *\\* ) 17561 ac_sed_conf_input=`$as_echo "$configure_input" | 17562 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17563 *) ac_sed_conf_input=$configure_input;; 17564 esac 17565 17566 case $ac_tag in 17567 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17568 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17569 esac 17570 ;; 17571 esac 17572 17573 ac_dir=`$as_dirname -- "$ac_file" || 17574 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17575 X"$ac_file" : 'X\(//\)[^/]' \| \ 17576 X"$ac_file" : 'X\(//\)$' \| \ 17577 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17578 $as_echo X"$ac_file" | 17579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17580 s//\1/ 17581 q 17582 } 17583 /^X\(\/\/\)[^/].*/{ 17584 s//\1/ 17585 q 17586 } 17587 /^X\(\/\/\)$/{ 17588 s//\1/ 17589 q 17590 } 17591 /^X\(\/\).*/{ 17592 s//\1/ 17593 q 17594 } 17595 s/.*/./; q'` 17596 as_dir="$ac_dir"; as_fn_mkdir_p 5333 17597 ac_builddir=. 5334 17598 … … 5372 17636 # 5373 17637 17638 case $INSTALL in 17639 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17640 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17641 esac 17642 ac_MKDIR_P=$MKDIR_P 17643 case $MKDIR_P in 17644 [\\/$]* | ?:[\\/]* ) ;; 17645 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17646 esac 5374 17647 _ACEOF 5375 17648 … … 5378 17651 # FIXME: This hack should be removed a few years after 2.60. 5379 17652 ac_datarootdir_hack=; ac_datarootdir_seen= 5380 5381 17653 ac_sed_dataroot=' 5382 17654 /datarootdir/ { … … 5388 17660 /@infodir@/p 5389 17661 /@localedir@/p 5390 /@mandir@/p 5391 ' 17662 /@mandir@/p' 5392 17663 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 5393 17664 *datarootdir*) ac_datarootdir_seen=yes;; 5394 17665 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 5395 { $as_echo "$as_me:$ LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&517666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 5396 17667 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 5397 17668 _ACEOF … … 5403 17674 s&@localedir@&$localedir&g 5404 17675 s&@mandir@&$mandir&g 5405 17676 s&\\\${datarootdir}&$datarootdir&g' ;; 5406 17677 esac 5407 17678 _ACEOF … … 5427 17698 s&@abs_builddir@&$ac_abs_builddir&;t t 5428 17699 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17700 s&@INSTALL@&$ac_INSTALL&;t t 17701 s&@MKDIR_P@&$ac_MKDIR_P&;t t 5429 17702 $ac_datarootdir_hack 5430 17703 " 5431 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 5432 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 5433 $as_echo "$as_me: error: could not create $ac_file" >&2;} 5434 { (exit 1); exit 1; }; } 17704 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17705 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5435 17706 5436 17707 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 5437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 5438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 5439 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5440 which seems to be undefined. Please make sure it is defined." >&5 17708 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17709 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17710 "$ac_tmp/out"`; test -z "$ac_out"; } && 17711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17712 which seems to be undefined. Please make sure it is defined" >&5 5441 17713 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5442 which seems to be undefined. Please make sure it is defined ." >&2;}5443 5444 rm -f "$ tmp/stdin"17714 which seems to be undefined. Please make sure it is defined" >&2;} 17715 17716 rm -f "$ac_tmp/stdin" 5445 17717 case $ac_file in 5446 -) cat "$ tmp/out" && rm -f "$tmp/out";;5447 *) rm -f "$ac_file" && mv "$ tmp/out" "$ac_file";;17718 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17719 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 5448 17720 esac \ 5449 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 5450 $as_echo "$as_me: error: could not create $ac_file" >&2;} 5451 { (exit 1); exit 1; }; } 17721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5452 17722 ;; 5453 17723 5454 17724 5455 17725 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17726 $as_echo "$as_me: executing $ac_file commands" >&6;} 17727 ;; 5456 17728 esac 5457 17729 17730 17731 case $ac_file$ac_mode in 17732 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17733 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17734 # are listed without --file. Let's play safe and only enable the eval 17735 # if we detect the quoting. 17736 case $CONFIG_FILES in 17737 *\'*) eval set x "$CONFIG_FILES" ;; 17738 *) set x $CONFIG_FILES ;; 17739 esac 17740 shift 17741 for mf 17742 do 17743 # Strip MF so we end up with the name of the file. 17744 mf=`echo "$mf" | sed -e 's/:.*$//'` 17745 # Check whether this is an Automake generated Makefile or not. 17746 # We used to match only the files named `Makefile.in', but 17747 # some people rename them; so instead we look at the file content. 17748 # Grep'ing the first line is not enough: some people post-process 17749 # each Makefile.in and add a new line on top of each file to say so. 17750 # Grep'ing the whole file is not good either: AIX grep has a line 17751 # limit of 2048, but all sed's we know have understand at least 4000. 17752 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17753 dirpart=`$as_dirname -- "$mf" || 17754 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17755 X"$mf" : 'X\(//\)[^/]' \| \ 17756 X"$mf" : 'X\(//\)$' \| \ 17757 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17758 $as_echo X"$mf" | 17759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17760 s//\1/ 17761 q 17762 } 17763 /^X\(\/\/\)[^/].*/{ 17764 s//\1/ 17765 q 17766 } 17767 /^X\(\/\/\)$/{ 17768 s//\1/ 17769 q 17770 } 17771 /^X\(\/\).*/{ 17772 s//\1/ 17773 q 17774 } 17775 s/.*/./; q'` 17776 else 17777 continue 17778 fi 17779 # Extract the definition of DEPDIR, am__include, and am__quote 17780 # from the Makefile without running `make'. 17781 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17782 test -z "$DEPDIR" && continue 17783 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17784 test -z "am__include" && continue 17785 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17786 # When using ansi2knr, U may be empty or an underscore; expand it 17787 U=`sed -n 's/^U = //p' < "$mf"` 17788 # Find all dependency output files, they are included files with 17789 # $(DEPDIR) in their names. We invoke sed twice because it is the 17790 # simplest approach to changing $(DEPDIR) to its actual value in the 17791 # expansion. 17792 for file in `sed -n " 17793 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17794 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17795 # Make sure the directory exists. 17796 test -f "$dirpart/$file" && continue 17797 fdir=`$as_dirname -- "$file" || 17798 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17799 X"$file" : 'X\(//\)[^/]' \| \ 17800 X"$file" : 'X\(//\)$' \| \ 17801 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17802 $as_echo X"$file" | 17803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17804 s//\1/ 17805 q 17806 } 17807 /^X\(\/\/\)[^/].*/{ 17808 s//\1/ 17809 q 17810 } 17811 /^X\(\/\/\)$/{ 17812 s//\1/ 17813 q 17814 } 17815 /^X\(\/\).*/{ 17816 s//\1/ 17817 q 17818 } 17819 s/.*/./; q'` 17820 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17821 # echo "creating $dirpart/$file" 17822 echo '# dummy' > "$dirpart/$file" 17823 done 17824 done 17825 } 17826 ;; 17827 "libtool":C) 17828 17829 # See if we are running on zsh, and set the options which allow our 17830 # commands through without removal of \ escapes. 17831 if test -n "${ZSH_VERSION+set}" ; then 17832 setopt NO_GLOB_SUBST 17833 fi 17834 17835 cfgfile="${ofile}T" 17836 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17837 $RM "$cfgfile" 17838 17839 cat <<_LT_EOF >> "$cfgfile" 17840 #! $SHELL 17841 17842 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17843 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17844 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17845 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 17846 # 17847 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17848 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17849 # Foundation, Inc. 17850 # Written by Gordon Matzigkeit, 1996 17851 # 17852 # This file is part of GNU Libtool. 17853 # 17854 # GNU Libtool is free software; you can redistribute it and/or 17855 # modify it under the terms of the GNU General Public License as 17856 # published by the Free Software Foundation; either version 2 of 17857 # the License, or (at your option) any later version. 17858 # 17859 # As a special exception to the GNU General Public License, 17860 # if you distribute this file as part of a program or library that 17861 # is built using GNU Libtool, you may include this file under the 17862 # same distribution terms that you use for the rest of that program. 17863 # 17864 # GNU Libtool is distributed in the hope that it will be useful, 17865 # but WITHOUT ANY WARRANTY; without even the implied warranty of 17866 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17867 # GNU General Public License for more details. 17868 # 17869 # You should have received a copy of the GNU General Public License 17870 # along with GNU Libtool; see the file COPYING. If not, a copy 17871 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17872 # obtained by writing to the Free Software Foundation, Inc., 17873 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17874 17875 17876 # The names of the tagged configurations supported by this script. 17877 available_tags="CXX " 17878 17879 # ### BEGIN LIBTOOL CONFIG 17880 17881 # Which release of libtool.m4 was used? 17882 macro_version=$macro_version 17883 macro_revision=$macro_revision 17884 17885 # Whether or not to build shared libraries. 17886 build_libtool_libs=$enable_shared 17887 17888 # Whether or not to build static libraries. 17889 build_old_libs=$enable_static 17890 17891 # What type of objects to build. 17892 pic_mode=$pic_mode 17893 17894 # Whether or not to optimize for fast installation. 17895 fast_install=$enable_fast_install 17896 17897 # Shell to use when invoking shell scripts. 17898 SHELL=$lt_SHELL 17899 17900 # An echo program that protects backslashes. 17901 ECHO=$lt_ECHO 17902 17903 # The PATH separator for the build system. 17904 PATH_SEPARATOR=$lt_PATH_SEPARATOR 17905 17906 # The host system. 17907 host_alias=$host_alias 17908 host=$host 17909 host_os=$host_os 17910 17911 # The build system. 17912 build_alias=$build_alias 17913 build=$build 17914 build_os=$build_os 17915 17916 # A sed program that does not truncate output. 17917 SED=$lt_SED 17918 17919 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 17920 Xsed="\$SED -e 1s/^X//" 17921 17922 # A grep program that handles long lines. 17923 GREP=$lt_GREP 17924 17925 # An ERE matcher. 17926 EGREP=$lt_EGREP 17927 17928 # A literal string matcher. 17929 FGREP=$lt_FGREP 17930 17931 # A BSD- or MS-compatible name lister. 17932 NM=$lt_NM 17933 17934 # Whether we need soft or hard links. 17935 LN_S=$lt_LN_S 17936 17937 # What is the maximum length of a command? 17938 max_cmd_len=$max_cmd_len 17939 17940 # Object file suffix (normally "o"). 17941 objext=$ac_objext 17942 17943 # Executable file suffix (normally ""). 17944 exeext=$exeext 17945 17946 # whether the shell understands "unset". 17947 lt_unset=$lt_unset 17948 17949 # turn spaces into newlines. 17950 SP2NL=$lt_lt_SP2NL 17951 17952 # turn newlines into spaces. 17953 NL2SP=$lt_lt_NL2SP 17954 17955 # convert \$build file names to \$host format. 17956 to_host_file_cmd=$lt_cv_to_host_file_cmd 17957 17958 # convert \$build files to toolchain format. 17959 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17960 17961 # An object symbol dumper. 17962 OBJDUMP=$lt_OBJDUMP 17963 17964 # Method to check whether dependent libraries are shared objects. 17965 deplibs_check_method=$lt_deplibs_check_method 17966 17967 # Command to use when deplibs_check_method = "file_magic". 17968 file_magic_cmd=$lt_file_magic_cmd 17969 17970 # How to find potential files when deplibs_check_method = "file_magic". 17971 file_magic_glob=$lt_file_magic_glob 17972 17973 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17974 want_nocaseglob=$lt_want_nocaseglob 17975 17976 # DLL creation program. 17977 DLLTOOL=$lt_DLLTOOL 17978 17979 # Command to associate shared and link libraries. 17980 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17981 17982 # The archiver. 17983 AR=$lt_AR 17984 17985 # Flags to create an archive. 17986 AR_FLAGS=$lt_AR_FLAGS 17987 17988 # How to feed a file listing to the archiver. 17989 archiver_list_spec=$lt_archiver_list_spec 17990 17991 # A symbol stripping program. 17992 STRIP=$lt_STRIP 17993 17994 # Commands used to install an old-style archive. 17995 RANLIB=$lt_RANLIB 17996 old_postinstall_cmds=$lt_old_postinstall_cmds 17997 old_postuninstall_cmds=$lt_old_postuninstall_cmds 17998 17999 # Whether to use a lock for old archive extraction. 18000 lock_old_archive_extraction=$lock_old_archive_extraction 18001 18002 # A C compiler. 18003 LTCC=$lt_CC 18004 18005 # LTCC compiler flags. 18006 LTCFLAGS=$lt_CFLAGS 18007 18008 # Take the output of nm and produce a listing of raw symbols and C names. 18009 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18010 18011 # Transform the output of nm in a proper C declaration. 18012 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18013 18014 # Transform the output of nm in a C name address pair. 18015 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18016 18017 # Transform the output of nm in a C name address pair when lib prefix is needed. 18018 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18019 18020 # Specify filename containing input files for \$NM. 18021 nm_file_list_spec=$lt_nm_file_list_spec 18022 18023 # The root where to search for dependent libraries,and in which our libraries should be installed. 18024 lt_sysroot=$lt_sysroot 18025 18026 # The name of the directory that contains temporary libtool files. 18027 objdir=$objdir 18028 18029 # Used to examine libraries when file_magic_cmd begins with "file". 18030 MAGIC_CMD=$MAGIC_CMD 18031 18032 # Must we lock files when doing compilation? 18033 need_locks=$lt_need_locks 18034 18035 # Manifest tool. 18036 MANIFEST_TOOL=$lt_MANIFEST_TOOL 18037 18038 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18039 DSYMUTIL=$lt_DSYMUTIL 18040 18041 # Tool to change global to local symbols on Mac OS X. 18042 NMEDIT=$lt_NMEDIT 18043 18044 # Tool to manipulate fat objects and archives on Mac OS X. 18045 LIPO=$lt_LIPO 18046 18047 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 18048 OTOOL=$lt_OTOOL 18049 18050 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18051 OTOOL64=$lt_OTOOL64 18052 18053 # Old archive suffix (normally "a"). 18054 libext=$libext 18055 18056 # Shared library suffix (normally ".so"). 18057 shrext_cmds=$lt_shrext_cmds 18058 18059 # The commands to extract the exported symbol list from a shared archive. 18060 extract_expsyms_cmds=$lt_extract_expsyms_cmds 18061 18062 # Variables whose values should be saved in libtool wrapper scripts and 18063 # restored at link time. 18064 variables_saved_for_relink=$lt_variables_saved_for_relink 18065 18066 # Do we need the "lib" prefix for modules? 18067 need_lib_prefix=$need_lib_prefix 18068 18069 # Do we need a version for libraries? 18070 need_version=$need_version 18071 18072 # Library versioning type. 18073 version_type=$version_type 18074 18075 # Shared library runtime path variable. 18076 runpath_var=$runpath_var 18077 18078 # Shared library path variable. 18079 shlibpath_var=$shlibpath_var 18080 18081 # Is shlibpath searched before the hard-coded library search path? 18082 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18083 18084 # Format of library name prefix. 18085 libname_spec=$lt_libname_spec 18086 18087 # List of archive names. First name is the real one, the rest are links. 18088 # The last name is the one that the linker finds with -lNAME 18089 library_names_spec=$lt_library_names_spec 18090 18091 # The coded name of the library, if different from the real name. 18092 soname_spec=$lt_soname_spec 18093 18094 # Permission mode override for installation of shared libraries. 18095 install_override_mode=$lt_install_override_mode 18096 18097 # Command to use after installation of a shared archive. 18098 postinstall_cmds=$lt_postinstall_cmds 18099 18100 # Command to use after uninstallation of a shared archive. 18101 postuninstall_cmds=$lt_postuninstall_cmds 18102 18103 # Commands used to finish a libtool library installation in a directory. 18104 finish_cmds=$lt_finish_cmds 18105 18106 # As "finish_cmds", except a single script fragment to be evaled but 18107 # not shown. 18108 finish_eval=$lt_finish_eval 18109 18110 # Whether we should hardcode library paths into libraries. 18111 hardcode_into_libs=$hardcode_into_libs 18112 18113 # Compile-time system search path for libraries. 18114 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18115 18116 # Run-time system search path for libraries. 18117 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18118 18119 # Whether dlopen is supported. 18120 dlopen_support=$enable_dlopen 18121 18122 # Whether dlopen of programs is supported. 18123 dlopen_self=$enable_dlopen_self 18124 18125 # Whether dlopen of statically linked programs is supported. 18126 dlopen_self_static=$enable_dlopen_self_static 18127 18128 # Commands to strip libraries. 18129 old_striplib=$lt_old_striplib 18130 striplib=$lt_striplib 18131 18132 18133 # The linker used to build libraries. 18134 LD=$lt_LD 18135 18136 # How to create reloadable object files. 18137 reload_flag=$lt_reload_flag 18138 reload_cmds=$lt_reload_cmds 18139 18140 # Commands used to build an old-style archive. 18141 old_archive_cmds=$lt_old_archive_cmds 18142 18143 # A language specific compiler. 18144 CC=$lt_compiler 18145 18146 # Is the compiler the GNU compiler? 18147 with_gcc=$GCC 18148 18149 # Compiler flag to turn off builtin functions. 18150 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18151 18152 # Additional compiler flags for building library objects. 18153 pic_flag=$lt_lt_prog_compiler_pic 18154 18155 # How to pass a linker flag through the compiler. 18156 wl=$lt_lt_prog_compiler_wl 18157 18158 # Compiler flag to prevent dynamic linking. 18159 link_static_flag=$lt_lt_prog_compiler_static 18160 18161 # Does compiler simultaneously support -c and -o options? 18162 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18163 18164 # Whether or not to add -lc for building shared libraries. 18165 build_libtool_need_lc=$archive_cmds_need_lc 18166 18167 # Whether or not to disallow shared libs when runtime libs are static. 18168 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18169 18170 # Compiler flag to allow reflexive dlopens. 18171 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18172 18173 # Compiler flag to generate shared objects directly from archives. 18174 whole_archive_flag_spec=$lt_whole_archive_flag_spec 18175 18176 # Whether the compiler copes with passing no objects directly. 18177 compiler_needs_object=$lt_compiler_needs_object 18178 18179 # Create an old-style archive from a shared archive. 18180 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18181 18182 # Create a temporary old-style archive to link instead of a shared archive. 18183 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18184 18185 # Commands used to build a shared archive. 18186 archive_cmds=$lt_archive_cmds 18187 archive_expsym_cmds=$lt_archive_expsym_cmds 18188 18189 # Commands used to build a loadable module if different from building 18190 # a shared archive. 18191 module_cmds=$lt_module_cmds 18192 module_expsym_cmds=$lt_module_expsym_cmds 18193 18194 # Whether we are building with GNU ld or not. 18195 with_gnu_ld=$lt_with_gnu_ld 18196 18197 # Flag that allows shared libraries with undefined symbols to be built. 18198 allow_undefined_flag=$lt_allow_undefined_flag 18199 18200 # Flag that enforces no undefined symbols. 18201 no_undefined_flag=$lt_no_undefined_flag 18202 18203 # Flag to hardcode \$libdir into a binary during linking. 18204 # This must work even if \$libdir does not exist 18205 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18206 18207 # Whether we need a single "-rpath" flag with a separated argument. 18208 hardcode_libdir_separator=$lt_hardcode_libdir_separator 18209 18210 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18211 # DIR into the resulting binary. 18212 hardcode_direct=$hardcode_direct 18213 18214 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18215 # DIR into the resulting binary and the resulting library dependency is 18216 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18217 # library is relocated. 18218 hardcode_direct_absolute=$hardcode_direct_absolute 18219 18220 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18221 # into the resulting binary. 18222 hardcode_minus_L=$hardcode_minus_L 18223 18224 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18225 # into the resulting binary. 18226 hardcode_shlibpath_var=$hardcode_shlibpath_var 18227 18228 # Set to "yes" if building a shared library automatically hardcodes DIR 18229 # into the library and all subsequent libraries and executables linked 18230 # against it. 18231 hardcode_automatic=$hardcode_automatic 18232 18233 # Set to yes if linker adds runtime paths of dependent libraries 18234 # to runtime path list. 18235 inherit_rpath=$inherit_rpath 18236 18237 # Whether libtool must link a program against all its dependency libraries. 18238 link_all_deplibs=$link_all_deplibs 18239 18240 # Set to "yes" if exported symbols are required. 18241 always_export_symbols=$always_export_symbols 18242 18243 # The commands to list exported symbols. 18244 export_symbols_cmds=$lt_export_symbols_cmds 18245 18246 # Symbols that should not be listed in the preloaded symbols. 18247 exclude_expsyms=$lt_exclude_expsyms 18248 18249 # Symbols that must always be exported. 18250 include_expsyms=$lt_include_expsyms 18251 18252 # Commands necessary for linking programs (against libraries) with templates. 18253 prelink_cmds=$lt_prelink_cmds 18254 18255 # Commands necessary for finishing linking programs. 18256 postlink_cmds=$lt_postlink_cmds 18257 18258 # Specify filename containing input files. 18259 file_list_spec=$lt_file_list_spec 18260 18261 # How to hardcode a shared library path into an executable. 18262 hardcode_action=$hardcode_action 18263 18264 # The directories searched by this compiler when creating a shared library. 18265 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18266 18267 # Dependencies to place before and after the objects being linked to 18268 # create a shared library. 18269 predep_objects=$lt_predep_objects 18270 postdep_objects=$lt_postdep_objects 18271 predeps=$lt_predeps 18272 postdeps=$lt_postdeps 18273 18274 # The library search path used internally by the compiler when linking 18275 # a shared library. 18276 compiler_lib_search_path=$lt_compiler_lib_search_path 18277 18278 # ### END LIBTOOL CONFIG 18279 18280 _LT_EOF 18281 18282 case $host_os in 18283 aix3*) 18284 cat <<\_LT_EOF >> "$cfgfile" 18285 # AIX sometimes has problems with the GCC collect2 program. For some 18286 # reason, if we set the COLLECT_NAMES environment variable, the problems 18287 # vanish in a puff of smoke. 18288 if test "X${COLLECT_NAMES+set}" != Xset; then 18289 COLLECT_NAMES= 18290 export COLLECT_NAMES 18291 fi 18292 _LT_EOF 18293 ;; 18294 esac 18295 18296 18297 ltmain="$ac_aux_dir/ltmain.sh" 18298 18299 18300 # We use sed instead of cat because bash on DJGPP gets confused if 18301 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18302 # text mode, it properly converts lines to CR/LF. This bash problem 18303 # is reportedly fixed, but why not run on old versions too? 18304 sed '$q' "$ltmain" >> "$cfgfile" \ 18305 || (rm -f "$cfgfile"; exit 1) 18306 18307 if test x"$xsi_shell" = xyes; then 18308 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18309 func_dirname ()\ 18310 {\ 18311 \ case ${1} in\ 18312 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 18313 \ * ) func_dirname_result="${3}" ;;\ 18314 \ esac\ 18315 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18316 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18318 test 0 -eq $? || _lt_function_replace_fail=: 18319 18320 18321 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18322 func_basename ()\ 18323 {\ 18324 \ func_basename_result="${1##*/}"\ 18325 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18326 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18327 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18328 test 0 -eq $? || _lt_function_replace_fail=: 18329 18330 18331 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18332 func_dirname_and_basename ()\ 18333 {\ 18334 \ case ${1} in\ 18335 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 18336 \ * ) func_dirname_result="${3}" ;;\ 18337 \ esac\ 18338 \ func_basename_result="${1##*/}"\ 18339 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18340 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18341 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18342 test 0 -eq $? || _lt_function_replace_fail=: 18343 18344 18345 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18346 func_stripname ()\ 18347 {\ 18348 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18349 \ # positional parameters, so assign one to ordinary parameter first.\ 18350 \ func_stripname_result=${3}\ 18351 \ func_stripname_result=${func_stripname_result#"${1}"}\ 18352 \ func_stripname_result=${func_stripname_result%"${2}"}\ 18353 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18354 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18355 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18356 test 0 -eq $? || _lt_function_replace_fail=: 18357 18358 18359 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18360 func_split_long_opt ()\ 18361 {\ 18362 \ func_split_long_opt_name=${1%%=*}\ 18363 \ func_split_long_opt_arg=${1#*=}\ 18364 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18365 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18367 test 0 -eq $? || _lt_function_replace_fail=: 18368 18369 18370 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18371 func_split_short_opt ()\ 18372 {\ 18373 \ func_split_short_opt_arg=${1#??}\ 18374 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18375 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18376 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18377 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18378 test 0 -eq $? || _lt_function_replace_fail=: 18379 18380 18381 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18382 func_lo2o ()\ 18383 {\ 18384 \ case ${1} in\ 18385 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18386 \ *) func_lo2o_result=${1} ;;\ 18387 \ esac\ 18388 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18389 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18390 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18391 test 0 -eq $? || _lt_function_replace_fail=: 18392 18393 18394 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18395 func_xform ()\ 18396 {\ 18397 func_xform_result=${1%.*}.lo\ 18398 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18399 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18400 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18401 test 0 -eq $? || _lt_function_replace_fail=: 18402 18403 18404 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18405 func_arith ()\ 18406 {\ 18407 func_arith_result=$(( $* ))\ 18408 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18409 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18410 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18411 test 0 -eq $? || _lt_function_replace_fail=: 18412 18413 18414 sed -e '/^func_len ()$/,/^} # func_len /c\ 18415 func_len ()\ 18416 {\ 18417 func_len_result=${#1}\ 18418 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18419 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18420 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18421 test 0 -eq $? || _lt_function_replace_fail=: 18422 18423 fi 18424 18425 if test x"$lt_shell_append" = xyes; then 18426 sed -e '/^func_append ()$/,/^} # func_append /c\ 18427 func_append ()\ 18428 {\ 18429 eval "${1}+=\\${2}"\ 18430 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18431 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18433 test 0 -eq $? || _lt_function_replace_fail=: 18434 18435 18436 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18437 func_append_quoted ()\ 18438 {\ 18439 \ func_quote_for_eval "${2}"\ 18440 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18441 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18442 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18444 test 0 -eq $? || _lt_function_replace_fail=: 18445 18446 18447 # Save a `func_append' function call where possible by direct use of '+=' 18448 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18449 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18451 test 0 -eq $? || _lt_function_replace_fail=: 18452 else 18453 # Save a `func_append' function call even when '+=' is not available 18454 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18455 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18457 test 0 -eq $? || _lt_function_replace_fail=: 18458 fi 18459 18460 if test x"$_lt_function_replace_fail" = x":"; then 18461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18462 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18463 fi 18464 18465 18466 mv -f "$cfgfile" "$ofile" || 18467 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18468 chmod +x "$ofile" 18469 18470 18471 cat <<_LT_EOF >> "$ofile" 18472 18473 # ### BEGIN LIBTOOL TAG CONFIG: CXX 18474 18475 # The linker used to build libraries. 18476 LD=$lt_LD_CXX 18477 18478 # How to create reloadable object files. 18479 reload_flag=$lt_reload_flag_CXX 18480 reload_cmds=$lt_reload_cmds_CXX 18481 18482 # Commands used to build an old-style archive. 18483 old_archive_cmds=$lt_old_archive_cmds_CXX 18484 18485 # A language specific compiler. 18486 CC=$lt_compiler_CXX 18487 18488 # Is the compiler the GNU compiler? 18489 with_gcc=$GCC_CXX 18490 18491 # Compiler flag to turn off builtin functions. 18492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18493 18494 # Additional compiler flags for building library objects. 18495 pic_flag=$lt_lt_prog_compiler_pic_CXX 18496 18497 # How to pass a linker flag through the compiler. 18498 wl=$lt_lt_prog_compiler_wl_CXX 18499 18500 # Compiler flag to prevent dynamic linking. 18501 link_static_flag=$lt_lt_prog_compiler_static_CXX 18502 18503 # Does compiler simultaneously support -c and -o options? 18504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18505 18506 # Whether or not to add -lc for building shared libraries. 18507 build_libtool_need_lc=$archive_cmds_need_lc_CXX 18508 18509 # Whether or not to disallow shared libs when runtime libs are static. 18510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18511 18512 # Compiler flag to allow reflexive dlopens. 18513 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18514 18515 # Compiler flag to generate shared objects directly from archives. 18516 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18517 18518 # Whether the compiler copes with passing no objects directly. 18519 compiler_needs_object=$lt_compiler_needs_object_CXX 18520 18521 # Create an old-style archive from a shared archive. 18522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18523 18524 # Create a temporary old-style archive to link instead of a shared archive. 18525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18526 18527 # Commands used to build a shared archive. 18528 archive_cmds=$lt_archive_cmds_CXX 18529 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18530 18531 # Commands used to build a loadable module if different from building 18532 # a shared archive. 18533 module_cmds=$lt_module_cmds_CXX 18534 module_expsym_cmds=$lt_module_expsym_cmds_CXX 18535 18536 # Whether we are building with GNU ld or not. 18537 with_gnu_ld=$lt_with_gnu_ld_CXX 18538 18539 # Flag that allows shared libraries with undefined symbols to be built. 18540 allow_undefined_flag=$lt_allow_undefined_flag_CXX 18541 18542 # Flag that enforces no undefined symbols. 18543 no_undefined_flag=$lt_no_undefined_flag_CXX 18544 18545 # Flag to hardcode \$libdir into a binary during linking. 18546 # This must work even if \$libdir does not exist 18547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18548 18549 # Whether we need a single "-rpath" flag with a separated argument. 18550 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18551 18552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18553 # DIR into the resulting binary. 18554 hardcode_direct=$hardcode_direct_CXX 18555 18556 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18557 # DIR into the resulting binary and the resulting library dependency is 18558 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18559 # library is relocated. 18560 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18561 18562 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18563 # into the resulting binary. 18564 hardcode_minus_L=$hardcode_minus_L_CXX 18565 18566 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18567 # into the resulting binary. 18568 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18569 18570 # Set to "yes" if building a shared library automatically hardcodes DIR 18571 # into the library and all subsequent libraries and executables linked 18572 # against it. 18573 hardcode_automatic=$hardcode_automatic_CXX 18574 18575 # Set to yes if linker adds runtime paths of dependent libraries 18576 # to runtime path list. 18577 inherit_rpath=$inherit_rpath_CXX 18578 18579 # Whether libtool must link a program against all its dependency libraries. 18580 link_all_deplibs=$link_all_deplibs_CXX 18581 18582 # Set to "yes" if exported symbols are required. 18583 always_export_symbols=$always_export_symbols_CXX 18584 18585 # The commands to list exported symbols. 18586 export_symbols_cmds=$lt_export_symbols_cmds_CXX 18587 18588 # Symbols that should not be listed in the preloaded symbols. 18589 exclude_expsyms=$lt_exclude_expsyms_CXX 18590 18591 # Symbols that must always be exported. 18592 include_expsyms=$lt_include_expsyms_CXX 18593 18594 # Commands necessary for linking programs (against libraries) with templates. 18595 prelink_cmds=$lt_prelink_cmds_CXX 18596 18597 # Commands necessary for finishing linking programs. 18598 postlink_cmds=$lt_postlink_cmds_CXX 18599 18600 # Specify filename containing input files. 18601 file_list_spec=$lt_file_list_spec_CXX 18602 18603 # How to hardcode a shared library path into an executable. 18604 hardcode_action=$hardcode_action_CXX 18605 18606 # The directories searched by this compiler when creating a shared library. 18607 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18608 18609 # Dependencies to place before and after the objects being linked to 18610 # create a shared library. 18611 predep_objects=$lt_predep_objects_CXX 18612 postdep_objects=$lt_postdep_objects_CXX 18613 predeps=$lt_predeps_CXX 18614 postdeps=$lt_postdeps_CXX 18615 18616 # The library search path used internally by the compiler when linking 18617 # a shared library. 18618 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18619 18620 # ### END LIBTOOL TAG CONFIG: CXX 18621 _LT_EOF 18622 18623 ;; 18624 18625 esac 5458 18626 done # for ac_tag 5459 18627 5460 18628 5461 { (exit 0); exit 0; } 18629 as_fn_exit 0 5462 18630 _ACEOF 5463 chmod +x $CONFIG_STATUS5464 18631 ac_clean_files=$ac_clean_files_save 5465 18632 5466 18633 test $ac_write_fail = 0 || 5467 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 5468 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 5469 { (exit 1); exit 1; }; } 18634 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 5470 18635 5471 18636 … … 5488 18653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5489 18654 # would make configure fail if this is the last instruction. 5490 $ac_cs_success || { (exit 1); exit 1; }18655 $ac_cs_success || as_fn_exit 1 5491 18656 fi 5492 18657 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5493 { $as_echo "$as_me:$ LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&518658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5494 18659 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5495 18660 fi -
gfanlib/configure.ac
-
Property
mode
changed from
100644
to100755
r7b8818 r26b713 3 3 4 4 AC_PREREQ([2.63]) 5 AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS]) 5 AC_INIT([libgfan], [0.1], [ren@mathematik.uni-kl.de]) 6 AC_CONFIG_MACRO_DIR([../m4]) 6 7 AC_CONFIG_SRCDIR([gfanlib.h]) 7 8 #AC_CONFIG_HEADERS([config.h]) 9 10 AM_MAINTAINER_MODE 11 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules 12 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) 13 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 8 14 9 15 # Checks for programs. … … 12 18 AC_PROG_LN_S 13 19 #AC_PROG_INSTALL 14 AC_PROG_RANLIB15 20 16 21 # Checks for libraries. 22 23 LT_INIT 17 24 18 25 # Checks for header files. 19 26 AC_HEADER_STDC 20 27 AC_CHECK_HEADERS([gmp.h]) 21 AC_CHECK_HEADERS([cdd.h])22 28 AC_CHECK_HEADERS([setoper.h]) 29 AC_CHECK_HEADERS([cdd.h],,, 30 [ 31 # include <setoper.h> 32 ]) 23 33 24 34 if test "$ac_cv_header_gmp_h" == no … … 43 53 AC_C_INLINE 44 54 55 AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]), 56 [if test "x$enableval" = "xyes"; then 57 ENABLE_DEBUG=yes 58 fi], ENABLE_DEBUG=no) 59 60 AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes) 61 45 62 #AC_MSG_RESULT($ac_cv_singuname) 46 63 #if test "$ac_cv_singuname" = unknown; then -
Property
mode
changed from
-
gfanlib/gfanlib_matrix.h
r7b8818 r26b713 21 21 inline int getHeight()const{return height;}; 22 22 inline int getWidth()const{return width;}; 23 Matrix(const Matrix &a): rows(a.rows),width(a.getWidth()),height(a.getHeight()){24 } 25 Matrix(int height_, int width_): rows(height_),height(height_),width(width_){23 Matrix(const Matrix &a):width(a.getWidth()),height(a.getHeight()),rows(a.rows){ 24 } 25 Matrix(int height_, int width_):width(width_),height(height_),rows(height_){ 26 26 assert(height>=0); 27 27 assert(width>=0); … … 104 104 return p; 105 105 } 106 /*friend Matrix operator*(const Matrix& a, const Matrix& b)106 friend Matrix operator*(const Matrix& a, const Matrix& b) 107 107 { 108 108 assert(a.width==b.height); … … 111 111 ret[i]=a.vectormultiply(b.column(i)); 112 112 return ret.transposed(); 113 } */113 } 114 114 /* template<class T> 115 115 Matrix<T>(const Matrix<T>& c):v(c.size()){ … … 306 306 the determinant is zero. 307 307 */ 308 int reduce(bool returnIfZeroDeterminant=false, bool integral=false )308 int reduce(bool returnIfZeroDeterminant=false, bool integral=false, bool makePivotsOne=false) 309 309 { 310 310 assert(integral || typ::isField()); … … 322 322 swapRows(currentRow,s); 323 323 retSwaps++; 324 } 325 if(makePivotsOne) 326 {//THE PIVOT SHOULD BE SET TO ONE IF INTEGRAL IS FALSE 327 if(!rows[currentRow][i].sign()<0)retSwaps++; 328 typ inverse=typ(1)/rows[currentRow][i]; 329 // if(!rows[currentRow][i].isOne()) 330 { 331 for(int k=0;k<width;k++) 332 if(!rows[currentRow][k].isZero()) 333 rows[currentRow][k]*=inverse; 334 } 324 335 } 325 336 for(int j=currentRow+1;j<height;j++) … … 505 516 int reduceAndComputeRank() 506 517 { 507 reduce(); 518 if (typ::isField()) 519 reduce(); 520 else 521 reduce(false,true,false); 508 522 int ret=0; 509 523 int pivotI=-1; -
gfanlib/gfanlib_polyhedralfan.cpp
r7b8818 r26b713 425 425 if(!c.contains(theCone)) 426 426 { 427 428 427 c.insert(theCone); 429 // log0 fprintf(Stderr,"ADDING\n");430 428 list<SymmetricComplex::Cone> facets=computeFacets(theCone,rays,facetCandidates,c/*,linealityDim*/); 431 429 clist.splice(clist.end(),facets); … … 494 492 for(PolyhedralConeList::const_iterator i=cones.begin();i!=cones.end();i++) 495 493 { 496 {497 static int t;498 // log1 fprintf(Stderr,"Adding faces of cone %i\n",t++);499 }500 // log2 fprintf(Stderr,"Dim: %i\n",i->dimension());501 502 494 addFacesToSymmetricComplex(symCom,*i,i->getFacets(),generatorsOfLinealitySpace); 503 495 } … … 870 862 int PolyhedralFan::dimensionOfLinealitySpace()const 871 863 { 872 assert(cones.size());//slow! 873 return cones.begin()->dimensionOfLinealitySpace(); 864 if(cones.size()) //slow! 865 return 0; 866 else 867 return cones.begin()->dimensionOfLinealitySpace(); 874 868 } 875 869 -
gfanlib/gfanlib_q.h
r7b8818 r26b713 31 31 { 32 32 mpq_init(value); 33 mpz_ init_set_si(mpq_numref(value), value_);34 mpz_ init_set_ui(mpq_denref(value), 1);33 mpz_set_si(mpq_numref(value), value_); 34 mpz_set_ui(mpq_denref(value), 1); 35 35 mpq_canonicalize(value); 36 36 } … … 48 48 { 49 49 mpq_init(value); 50 mpz_ init_set(mpq_numref(value), value_.value);51 mpz_ init_set_ui(mpq_denref(value), 1);50 mpz_set(mpq_numref(value), value_.value); 51 mpz_set_ui(mpq_denref(value), 1); 52 52 mpq_canonicalize(value); 53 53 } -
gfanlib/gfanlib_symmetriccomplex.cpp
r7b8818 r26b713 200 200 201 201 202 int SymmetricComplex::getLinDim()const 203 { 204 ZMatrix zm=linealitySpace; 205 return zm.reduceAndComputeRank(); 206 } 207 202 208 bool SymmetricComplex::isMaximal(Cone const &c)const 203 209 { … … 259 265 if(i->dimension==d) 260 266 { 261 267 numberOfOrbitsOfThisDimension++; 262 268 if(!onlyMaximal || isMaximal(*i)) 263 269 { -
gfanlib/gfanlib_symmetriccomplex.h
r7b8818 r26b713 81 81 int getMaxDim()const; 82 82 int getMinDim()const; 83 int getLinDim()const; 83 84 bool isMaximal(Cone const &c)const; 84 85 bool isPure()const; -
gfanlib/gfanlib_vector.h
r7b8818 r26b713 73 73 typ& operator[](int n) 74 74 { 75 if(!(n>=0 && n< v.size()))outOfRange(n,v.size());75 if(!(n>=0 && n<(int)v.size()))outOfRange(n,v.size()); 76 76 return (v[n]); 77 77 } 78 const typ& operator[](int n)const{assert(n>=0 && n< v.size());return (v[n]);}78 const typ& operator[](int n)const{assert(n>=0 && n<(int)v.size());return (v[n]);} 79 79 const typ& UNCHECKEDACCESS(int n)const{return (v[n]);} 80 80 … … 180 180 inline friend Vektor operator+(const Vektor& p, const Vektor& q){assert(p.size()==q.size());Vektor p1=p;for(int i=0;i<p.size();i++)p1[i]+=q[i];return p1;} 181 181 */ 182 inline friend Vector operator/(const Vector& p, typ const &s){Vector ret(p.size());for( inti=0;i<p.size();i++)ret[i]=p[i]/s;return ret;}182 inline friend Vector operator/(const Vector& p, typ const &s){Vector ret(p.size());for(unsigned i=0;i<p.size();i++)ret[i]=p[i]/s;return ret;} 183 183 inline friend Vector operator+(const Vector& p, const Vector& q){assert(p.size()==q.size());Vector p1=p;for(int i=0;i<p.size();i++)p1[i]+=q[i];return p1;} 184 184 inline friend Vector operator-(const Vector& p, const Vector& q){assert(p.size()==q.size());Vector p1=p;for(int i=0;i<p.size();i++)p1[i]-=q[i];return p1;} … … 279 279 } 280 280 */ 281 friend std::ostream &operator<<(std::ostream &f, Vector const &a){ 281 friend std::ostream &operator<<(std::ostream &f, Vector const &a) 282 { 282 283 f<<"("; 283 284 284 for(typename std::vector<typ>::const_iterator i=a.v.begin();i!=a.v.end();i++) 285 { 286 if(i!=a.v.begin()) 287 f<<","; 288 f<<*i; 289 } 290 f<<")"; 291 } 285 { 286 if(i!=a.v.begin()) f<<","; 287 f<<*i; 288 } 289 return f<<")"; 290 } 292 291 typ gcd()const 293 292 { … … 312 311 { 313 312 QVector ret(v.size()); 314 for( inti=0;i<v.size();i++)ret[i]=Rational(v[i]);313 for(unsigned i=0;i<v.size();i++)ret[i]=Rational(v[i]); 315 314 return ret; 316 315 } … … 320 319 { 321 320 IntVector ret(v.size()); 322 for( inti=0;i<v.size();i++)ret[i]=v[i].toInt();321 for(unsigned i=0;i<v.size();i++)ret[i]=v[i].toInt(); 323 322 return ret; 324 323 } … … 328 327 { 329 328 ZVector ret(v.size()); 330 for( inti=0;i<v.size();i++)ret[i]=Integer(v[i]);329 for(unsigned i=0;i<v.size();i++)ret[i]=Integer(v[i]); 331 330 return ret; 332 331 } -
gfanlib/gfanlib_z.h
r7b8818 r26b713 11 11 #include <string.h> 12 12 #include <ostream> 13 14 #define OLD 1 15 #if OLD 13 16 #include "gmp.h" 14 17 … … 190 193 } 191 194 192 195 #else 196 namespace gfan{ 197 typedef signed long int word;//processor type for integers 198 typedef int64_t LimbWord;//memory word. Assumed to be at least as big as word 199 typedef uint64_t uLimbWord;//memory word. Assumed to be at least as big as word 200 const int limbSizeInBytes=8; 201 #include <stdint.h> 202 struct spec64malloc{ 203 int64_t data; 204 bool hasLimbs() 205 { 206 return data&1; 207 } 208 word fitsMask() 209 { 210 return 0xc000000000000000; 211 } 212 void assign(word value)//assuming data fits 213 { 214 data=value<<1; 215 } 216 void alloc(int nlimbs)//one limb is added since that will tell the number of remaining limbs 217 { 218 int64_t temp=(int64_t)malloc((nlimbs+1)*limbSizeInBytes); 219 assert(temp); 220 data=temp+1; 221 } 222 LimbWord *limbs()//assuming that limbs exist 223 { 224 return (LimbWord*)(data-1); 225 } 226 word nlimbs()//assuming limbs exist 227 { 228 return (word)*limbs(); 229 } 230 void copy(spec64malloc b) 231 { 232 if(hasLimbs()) 233 { 234 word n2=b.nlimbs()+1; 235 int64_t temp=(int64_t)malloc((n2)*limbSizeInBytes); 236 assert(temp); 237 238 data=temp+1; 239 memcpy((LimbWord*)temp,limbs(),n2*limbSizeInBytes); 240 } 241 else 242 { 243 data=b.data; 244 } 245 } 246 void doFree()//assuming that limbs exist 247 { 248 free((void*)(data-1)); 249 } 250 word valueToWord()//assume no limbs and that word is big enough to contain int64_t 251 { 252 return data>>1; 253 } 254 }; 255 template <struct spec> struct IntegerTemplate : public spec 256 { 257 private: 258 bool fits(word v) 259 { 260 return !((value_&fitsMask())^((value_<<1)&fitsMask)); 261 } 262 public: 263 static bool isField() 264 { 265 return false; 266 } 267 IntegerTemplate() 268 { 269 spec.data=0; 270 } 271 void assignWordNoFree() 272 { 273 if(fits(value_)) 274 { 275 assign(value); 276 } 277 else 278 { 279 alloc(1); 280 limbs()[0]=1; 281 limbs()[1]=value_; 282 } 283 } 284 IntegerTemplate(word value_) 285 { 286 assignWordNoFree(value_); 287 } 288 IntegerTemplate(IntegerTemplate const & value_) 289 { 290 if(value_.hasLimbs()) 291 { 292 copy(value_); 293 } 294 else 295 data=value.data; 296 } 297 /* Integer(mpz_t value_) 298 { 299 mpz_init_set(value,value_); 300 }*/ 301 ~IntegerTemplate() 302 { 303 if(hasLimbs())doFree(); 304 } 305 IntegerTemplate& operator=(const IntegerTemplate& a) 306 { 307 if(this!=&a) 308 { 309 if(hasLimps())doFree(); 310 copy(a); 311 } 312 return *this; 313 } 314 bool isZero()const{ 315 return data==0; 316 } 317 friend std::ostream &operator<<(std::ostream &f, IntegerTemplate const &a) 318 { 319 if(hasLimps()) 320 { 321 LimpWord *p=limbs(); 322 int l=*p++; 323 for(int i=0;i<l;i++) 324 f<<":"<<p[i]; 325 } 326 else 327 { 328 f<<valueToWord(); 329 } 330 return f; 331 } 332 LimbWord signExtension(LimbWord a) 333 { 334 return 0-(a<0); 335 } 336 void addWordToLimbs(word v) 337 { 338 int n=nlimbs(); 339 LimbWord V=v; 340 LimbWord *p=limbs()+1; 341 LimbWord s=signExtension(V); 342 for(int i=0;i<n;i++) 343 { 344 LimbWord r=V+*p; 345 bool carry=(uLimbWord)r<(uLimbWord)V; 346 V=carry+s; 347 } 348 349 } 350 351 352 IntegerTemplate& operator+=(const IntegerTemplate& a) 353 { 354 if(hasLimbs()||a.hasLimbs()) 355 { 356 if(!hasLimbs()) 357 { 358 359 } 360 else 361 { 362 } 363 364 } 365 else 366 { 367 word C=valueToWord(); 368 word A=a.valueToWord(); 369 word D=A+C; 370 assignWordNoFree(D); 371 } 372 return *this; 373 } 374 375 }; 376 377 typedef IntegerTemplate<spec64malloc> Integer; 378 }; 379 #endif 193 380 194 381 #endif /* LIB_Z_H_ */ -
gfanlib/gfanlib_zcone.cpp
r7b8818 r26b713 691 691 QMatrix m=ZToQMatrix(equations); 692 692 m.reduce(); 693 m.REformToRREform(); 693 694 ZMatrix inequalities2(0,equations.getWidth()); 694 695 for(int i=0;i<inequalities.getHeight();i++) … … 708 709 { 709 710 QMatrix equations2=ZToQMatrix(equations); 710 equations2.reduce( );711 711 equations2.reduce(false,false,true); 712 equations2.REformToRREform(); 712 713 for(int i=0;i<inequalities.getHeight();i++) 713 714 { … … 732 733 733 734 ZCone::ZCone(int ambientDimension): 735 inequalities(ZMatrix(0,ambientDimension)), 736 equations(ZMatrix(0,ambientDimension)), 734 737 n(ambientDimension), 735 738 state(1), … … 920 923 ZCone ZCone::givenByRays(ZMatrix const &generators, ZMatrix const &linealitySpace) 921 924 { 922 //rewrite modulo lineality space 923 ZMatrix newGenerators(generators.getHeight(),generators.getWidth()); 924 { 925 QMatrix l=ZToQMatrix(linealitySpace); 926 l.reduce(); 927 for(int i=0;i<generators.getHeight();i++) 928 newGenerators[i]=QToZVectorPrimitive(l.canonicalize(ZToQVector(generators[i]))); 929 } 930 931 ZCone dual(newGenerators,linealitySpace); 932 dual.findFacets(); 933 dual.canonicalize(); 925 ZCone dual(generators,linealitySpace); 934 926 ZMatrix inequalities=dual.extremeRays(); 935 936 ZMatrix span=generators; 937 span.append(linealitySpace); 938 QMatrix m2Q=ZToQMatrix(span); 939 ZMatrix equations=QToZMatrixPrimitive(m2Q.reduceAndComputeKernel()); 940 941 return ZCone(inequalities,equations); 927 ZMatrix equations=dual.generatorsOfLinealitySpace(); 928 929 return ZCone(inequalities,equations,3); 942 930 } 943 931 … … 1221 1209 } 1222 1210 1211 bool ZCone::hasFace(ZCone const &f)const 1212 { 1213 if(!contains(f.getRelativeInteriorPoint()))return false; 1214 ZCone temp1=faceContaining(f.getRelativeInteriorPoint()); 1215 temp1.canonicalize(); 1216 ZCone temp2=f; 1217 temp2.canonicalize(); 1218 1219 return !(temp2!=temp1); 1220 } 1221 1223 1222 ZCone ZCone::faceContaining(ZVector const &v)const 1224 1223 { -
gfanlib/gfanlib_zcone.h
r7b8818 r26b713 338 338 Tests if f is a face of the cone. 339 339 */ 340 // bool hasFace(ZCone const &f)const; TODO: make implementation of this340 bool hasFace(ZCone const &f)const; 341 341 /** 342 342 Computes the face of the cone containing v in its relative interior. -
gfanlib/gfanlib_zfan.cpp
r7b8818 r26b713 31 31 int ZFan::numberOfConesOfDimension(int d, bool orbit, bool maximal)const 32 32 { 33 this->ensureComplex(); 33 34 return numberOf(table(orbit,maximal),d); 34 35 } … … 202 203 ZFan::ZFan(ZFan const& f): 203 204 complex(0), 204 coneCollection(0) 205 coneCollection(0), 206 cones(f.table(0,0)), 207 maximalCones(f.table(0,1)), 208 coneOrbits(f.table(1,0)), 209 maximalConeOrbits(f.table(1,1)) 205 210 { 206 211 if(f.coneCollection) … … 269 274 return 0; 270 275 } 276 int ZFan::getCodimension()const 277 { 278 if(complex) 279 return complex->getAmbientDimension()-complex->getMaxDim(); 280 if(coneCollection) 281 return coneCollection->getAmbientDimension()-coneCollection->getMaxDimension(); 282 assert(0); 283 return 0; 284 } 285 int ZFan::getDimension()const 286 { 287 if(complex) 288 return complex->getMaxDim(); 289 if(coneCollection) 290 return coneCollection->getMaxDimension(); 291 assert(0); 292 return 0; 293 } 294 int ZFan::getLinealityDimension()const 295 { 296 if(complex) 297 return complex->getLinDim(); 298 if(coneCollection) 299 return coneCollection->dimensionOfLinealitySpace(); 300 assert(0); 301 return 0; 302 } 303 ZVector ZFan::getFVector()const 304 { 305 ensureComplex(); 306 return complex->fvector(); 307 } 308 bool ZFan::isSimplicial()const 309 { 310 ensureComplex(); 311 return complex->isSimplicial(); 312 } 313 bool ZFan::isPure()const 314 { 315 ensureComplex(); 316 return complex->isPure(); 317 } 318 bool ZFan::isComplete()const 319 { 320 ensureConeCollection(); 321 if(coneCollection->isEmpty()) 322 return 0; 323 int ambientdim=coneCollection->getAmbientDimension(); 324 int linealitydim=coneCollection->dimensionOfLinealitySpace(); 325 return (ambientdim==linealitydim); 326 } 271 327 void ZFan::insert(ZCone const &c) 272 328 { … … 274 330 killComplex(); 275 331 coneCollection->insert(c); 332 } 333 void ZFan::remove(ZCone const &c) 334 { 335 ensureConeCollection(); 336 killComplex(); 337 coneCollection->remove(c); 276 338 } 277 339 -
gfanlib/gfanlib_zfan.h
r7b8818 r26b713 59 59 void ensureComplex()const; 60 60 void killComplex()const; 61 public: 61 62 std::vector<std::vector<IntVector> > &table(bool orbit, bool maximal)const; 62 public:63 63 ~ZFan(); 64 ZFan(): 65 coneCollection(0), 66 complex(0) 67 {} 64 68 ZFan(ZFan const& f); 65 69 /** … … 105 109 */ 106 110 int getAmbientDimension()const; 111 int getCodimension()const; 112 int getDimension()const; 113 int getLinealityDimension()const; 114 ZVector getFVector()const; 115 bool isSimplicial()const; 116 bool isPure()const; 117 bool isComplete()const; 107 118 /** 108 119 * Inserts c into the fan. … … 118 129 */ 119 130 void insert(ZCone const &c); 120 //void remove(ZCone const &c);131 void remove(ZCone const &c); 121 132 /** 122 133 * Returns the number of cones of dimension d in the collection. … … 132 143 * empty fan is the ambient space. 133 144 */ 134 int dimensionOfLinealitySpace();145 // int getLinealityDimension(); 135 146 /** 136 147 * Returns the cone in the collection given by the index. It is a mistake to specify an index which
Note: See TracChangeset
for help on using the changeset viewer.