Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Rasqal RDF Query Library 0.9.33.
4 #
5 # Report bugs to <http://bugs.librdf.org/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: http://bugs.librdf.org/ about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569 as_awk_strverscmp='
570 # Use only awk features that work with 7th edition Unix awk (1978).
571 # My, what an old awk you have, Mr. Solaris!
572 END {
573 while (length(v1) && length(v2)) {
574 # Set d1 to be the next thing to compare from v1, and likewise for d2.
575 # Normally this is a single character, but if v1 and v2 contain digits,
576 # compare them as integers and fractions as strverscmp does.
577 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
578 # Split v1 and v2 into their leading digit string components d1 and d2,
579 # and advance v1 and v2 past the leading digit strings.
580 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
581 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
582 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
583 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
584 if (d1 ~ /^0/) {
585 if (d2 ~ /^0/) {
586 # Compare two fractions.
587 while (d1 ~ /^0/ && d2 ~ /^0/) {
588 d1 = substr(d1, 2); len1--
589 d2 = substr(d2, 2); len2--
590 }
591 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
592 # The two components differ in length, and the common prefix
593 # contains only leading zeros. Consider the longer to be less.
594 d1 = -len1
595 d2 = -len2
596 } else {
597 # Otherwise, compare as strings.
598 d1 = "x" d1
599 d2 = "x" d2
600 }
601 } else {
602 # A fraction is less than an integer.
603 exit 1
604 }
605 } else {
606 if (d2 ~ /^0/) {
607 # An integer is greater than a fraction.
608 exit 2
609 } else {
610 # Compare two integers.
611 d1 += 0
612 d2 += 0
613 }
614 }
615 } else {
616 # The normal case, without worrying about digits.
617 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
618 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
619 }
620 if (d1 < d2) exit 1
621 if (d1 > d2) exit 2
622 }
623 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
624 # which mishandles some comparisons of empty strings to integers.
625 if (length(v2)) exit 1
626 if (length(v1)) exit 2
627 }
628 '
629
630 test -n "$DJDIR" || exec 7<&0 </dev/null
631 exec 6>&1
632
633 # Name of the host.
634 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
635 # so uname gets run too.
636 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
637
638 #
639 # Initializations.
640 #
641 ac_default_prefix=/usr/local
642 ac_clean_files=
643 ac_config_libobj_dir=.
644 LIBOBJS=
645 cross_compiling=no
646 subdirs=
647 MFLAGS=
648 MAKEFLAGS=
649
650 # Identity of this package.
651 PACKAGE_NAME='Rasqal RDF Query Library'
652 PACKAGE_TARNAME='rasqal'
653 PACKAGE_VERSION='0.9.33'
654 PACKAGE_STRING='Rasqal RDF Query Library 0.9.33'
655 PACKAGE_BUGREPORT='http://bugs.librdf.org/'
656 PACKAGE_URL=''
657
658 ac_unique_file="src/rasqal_general.c"
659 # Factoring default headers for most tests.
660 ac_includes_default="\
661 #include <stdio.h>
662 #ifdef HAVE_SYS_TYPES_H
663 # include <sys/types.h>
664 #endif
665 #ifdef HAVE_SYS_STAT_H
666 # include <sys/stat.h>
667 #endif
668 #ifdef STDC_HEADERS
669 # include <stdlib.h>
670 # include <stddef.h>
671 #else
672 # ifdef HAVE_STDLIB_H
673 # include <stdlib.h>
674 # endif
675 #endif
676 #ifdef HAVE_STRING_H
677 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
678 # include <memory.h>
679 # endif
680 # include <string.h>
681 #endif
682 #ifdef HAVE_STRINGS_H
683 # include <strings.h>
684 #endif
685 #ifdef HAVE_INTTYPES_H
686 # include <inttypes.h>
687 #endif
688 #ifdef HAVE_STDINT_H
689 # include <stdint.h>
690 #endif
691 #ifdef HAVE_UNISTD_H
692 # include <unistd.h>
693 #endif"
694
695 ac_c_werror_flag=
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 GTK_DOC_USE_REBASE_FALSE
701 GTK_DOC_USE_REBASE_TRUE
702 GTK_DOC_USE_LIBTOOL_FALSE
703 GTK_DOC_USE_LIBTOOL_TRUE
704 GTK_DOC_BUILD_PDF_FALSE
705 GTK_DOC_BUILD_PDF_TRUE
706 GTK_DOC_BUILD_HTML_FALSE
707 GTK_DOC_BUILD_HTML_TRUE
708 ENABLE_GTK_DOC_FALSE
709 ENABLE_GTK_DOC_TRUE
710 GTKDOC_DEPS_LIBS
711 GTKDOC_DEPS_CFLAGS
712 HTML_DIR
713 GTKDOC_MKPDF
714 GTKDOC_REBASE
715 GTKDOC_CHECK
716 AM_BACKSLASH
717 AM_DEFAULT_VERBOSITY
718 AM_DEFAULT_V
719 AM_V
720 abs_top_builddir
721 abs_top_srcdir
722 PKGCONFIG_CFLAGS
723 PKGCONFIG_LIBS
724 PKGCONFIG_REQUIRES
725 RASQAL_LIBTOOLLIBS
726 RECHO_C
727 RECHO_N
728 STANDARD_CFLAGS
729 MEM_LIBS
730 MEM
731 RASQAL_INTERNAL_LIBS
732 RASQAL_INTERNAL_CPPFLAGS
733 RASQAL_EXTERNAL_LIBS
734 RASQAL_MTWIST_FALSE
735 RASQAL_MTWIST_TRUE
736 RASQAL_QUERY_SPARQL_FALSE
737 RASQAL_QUERY_SPARQL_TRUE
738 RASQAL_QUERY_LAQRS_FALSE
739 RASQAL_QUERY_LAQRS_TRUE
740 XML_CONFIG
741 UUID_CONFIG
742 UUID_LIBS
743 UUID_CFLAGS
744 RASQAL_DIGEST_INTERNAL_FALSE
745 RASQAL_DIGEST_INTERNAL_TRUE
746 LIBGCRYPT_CONFIG
747 PCRE_CONFIG
748 RASQAL_SORT_FALSE
749 RASQAL_SORT_TRUE
750 RAPTOR_MIN_VERSION
751 RAPTOR_VERSION_DEC
752 RAPTOR2_LIBS
753 RAPTOR2_CFLAGS
754 PKG_CONFIG_LIBDIR
755 PKG_CONFIG_PATH
756 PKG_CONFIG
757 GETTIMEOFDAY_FALSE
758 GETTIMEOFDAY_TRUE
759 TIMEGM_FALSE
760 TIMEGM_TRUE
761 GETOPT_FALSE
762 GETOPT_TRUE
763 STRCASECMP_FALSE
764 STRCASECMP_TRUE
765 RASQAL_VERSION_DECIMAL
766 RASQAL_VERSION_RELEASE
767 RASQAL_VERSION_MINOR
768 RASQAL_VERSION_MAJOR
769 RASQAL_VERSION
770 RASQAL_LIBTOOL_VERSION
771 HAVE_TIME_H
772 HAVE_SYS_TIME_H
773 RECHO
774 PERL
775 TAR
776 BISON
777 LEXLIB
778 LEX_OUTPUT_ROOT
779 LEX
780 CPP
781 OTOOL64
782 OTOOL
783 LIPO
784 NMEDIT
785 DSYMUTIL
786 MANIFEST_TOOL
787 RANLIB
788 DLLTOOL
789 OBJDUMP
790 LN_S
791 NM
792 ac_ct_DUMPBIN
793 DUMPBIN
794 LD
795 FGREP
796 EGREP
797 GREP
798 SED
799 LIBTOOL
800 am__fastdepCC_FALSE
801 am__fastdepCC_TRUE
802 CCDEPMODE
803 am__nodep
804 AMDEPBACKSLASH
805 AMDEP_FALSE
806 AMDEP_TRUE
807 am__quote
808 am__include
809 DEPDIR
810 OBJEXT
811 EXEEXT
812 ac_ct_CC
813 CPPFLAGS
814 LDFLAGS
815 CFLAGS
816 CC
817 ac_ct_AR
818 AR
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 MAINT
828 MAINTAINER_MODE_FALSE
829 MAINTAINER_MODE_TRUE
830 am__untar
831 am__tar
832 AMTAR
833 am__leading_dot
834 SET_MAKE
835 AWK
836 mkdir_p
837 MKDIR_P
838 INSTALL_STRIP_PROGRAM
839 STRIP
840 install_sh
841 MAKEINFO
842 AUTOHEADER
843 AUTOMAKE
844 AUTOCONF
845 ACLOCAL
846 VERSION
847 PACKAGE
848 CYGPATH_W
849 am__isrc
850 INSTALL_DATA
851 INSTALL_SCRIPT
852 INSTALL_PROGRAM
853 target_alias
854 host_alias
855 build_alias
856 LIBS
857 ECHO_T
858 ECHO_N
859 ECHO_C
860 DEFS
861 mandir
862 localedir
863 libdir
864 psdir
865 pdfdir
866 dvidir
867 htmldir
868 infodir
869 docdir
870 oldincludedir
871 includedir
872 localstatedir
873 sharedstatedir
874 sysconfdir
875 datadir
876 datarootdir
877 libexecdir
878 sbindir
879 bindir
880 program_transform_name
881 prefix
882 exec_prefix
883 PACKAGE_URL
884 PACKAGE_BUGREPORT
885 PACKAGE_STRING
886 PACKAGE_VERSION
887 PACKAGE_TARNAME
888 PACKAGE_NAME
889 PATH_SEPARATOR
890 SHELL'
891 ac_subst_files=''
892 ac_user_opts='
893 enable_option_checking
894 enable_maintainer_mode
895 enable_release
896 enable_dependency_tracking
897 enable_shared
898 enable_static
899 with_pic
900 enable_fast_install
901 with_gnu_ld
902 with_sysroot
903 enable_libtool_lock
904 enable_pcre
905 with_pcre_config
906 with_regex_library
907 with_mhash
908 with_libgcrypt_config
909 with_digest_library
910 with_uuid_library
911 enable_xml2
912 with_xml2_config
913 enable_query_languages
914 with_gmp
915 with_mpfr
916 with_decimal
917 with_random_approach
918 enable_debug
919 with_memory_signing
920 enable_silent_rules
921 with_html_dir
922 enable_gtk_doc
923 enable_gtk_doc_html
924 enable_gtk_doc_pdf
925 '
926 ac_precious_vars='build_alias
927 host_alias
928 target_alias
929 CC
930 CFLAGS
931 LDFLAGS
932 LIBS
933 CPPFLAGS
934 CPP
935 PKG_CONFIG
936 PKG_CONFIG_PATH
937 PKG_CONFIG_LIBDIR
938 RAPTOR2_CFLAGS
939 RAPTOR2_LIBS
940 UUID_CFLAGS
941 UUID_LIBS
942 GTKDOC_DEPS_CFLAGS
943 GTKDOC_DEPS_LIBS'
944
945
946 # Initialize some variables set by options.
947 ac_init_help=
948 ac_init_version=false
949 ac_unrecognized_opts=
950 ac_unrecognized_sep=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
967
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
993
994 ac_prev=
995 ac_dashdash=
996 for ac_option
997 do
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1001 ac_prev=
1002 continue
1003 fi
1004
1005 case $ac_option in
1006 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 *=) ac_optarg= ;;
1008 *) ac_optarg=yes ;;
1009 esac
1010
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1012
1013 case $ac_dashdash$ac_option in
1014 --)
1015 ac_dashdash=yes ;;
1016
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1021
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1026
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1033
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1036
1037 -datadir | --datadir | --datadi | --datad)
1038 ac_prev=datadir ;;
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1041
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1048
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1057 *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=no ;;
1064
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1069
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1074
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error $? "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1294
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error $? "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1303 *"
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=no ;;
1310
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1314
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1321
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1328
1329 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information"
1331 ;;
1332
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1339 esac
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1342
1343 *)
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1349 ;;
1350
1351 esac
1352 done
1353
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error $? "missing argument to $ac_option"
1357 fi
1358
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
1362 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1365 fi
1366
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1372 do
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
1385 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1387
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1394
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 elif test "x$build_alias" != "x$host_alias"; then
1400 cross_compiling=yes
1401 fi
1402 fi
1403
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407 test "$silent" = yes && exec 6>/dev/null
1408
1409
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413 as_fn_error $? "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 as_fn_error $? "pwd does not report name of working directory"
1416
1417
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\).*/{
1441 s//\1/
1442 q
1443 }
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1448 fi
1449 else
1450 ac_srcdir_defaulted=no
1451 fi
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1455 fi
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1459 pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 srcdir=.
1463 fi
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1476
1477 #
1478 # Report the --help message.
1479 #
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1483 cat <<_ACEOF
1484 \`configure' configures Rasqal RDF Query Library 0.9.33 to adapt to many kinds of systems.
1485
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1487
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1490
1491 Defaults for the options are specified in brackets.
1492
1493 Configuration:
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking ...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 [PREFIX]
1509
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1514
1515 For better control, use the options below.
1516
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/rasqal]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1537 _ACEOF
1538
1539 cat <<\_ACEOF
1540
1541 Program names:
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545
1546 System types:
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 _ACEOF
1550 fi
1551
1552 if test -n "$ac_init_help"; then
1553 case $ac_init_help in
1554 short | recursive ) echo "Configuration of Rasqal RDF Query Library 0.9.33:";;
1555 esac
1556 cat <<\_ACEOF
1557
1558 Optional Features:
1559 --disable-option-checking ignore unrecognized --enable/--with options
1560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1562 --enable-maintainer-mode enable make rules and dependencies not useful
1563 (and sometimes confusing) to the casual installer
1564 --enable-release Turn on optimizations (for maintainer).
1565 --disable-dependency-tracking speeds up one-time build
1566 --enable-dependency-tracking do not reject slow dependency extractors
1567 --enable-shared[=PKGS] build shared libraries [default=yes]
1568 --enable-static[=PKGS] build static libraries [default=yes]
1569 --enable-fast-install[=PKGS]
1570 optimize for fast installation [default=yes]
1571 --disable-libtool-lock avoid locking (might break parallel builds)
1572 --disable-pcre Disable PCRE support (default auto)
1573 --disable-xml2 Disable XML2 support (default auto)
1574 --enable-query-languages=LIST Enable query languages (default=all)
1575 --enable-debug Enable debug messages (default no).
1576 --enable-silent-rules less verbose build output (undo: `make V=1')
1577 --disable-silent-rules verbose build output (undo: `make V=0')
1578 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1579 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1580 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1581
1582 Optional Packages:
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1585 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1586 both]
1587 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1588 --with-sysroot=DIR Search for dependent libraries within DIR
1589 (or the compiler's sysroot if not specified).
1590 --with-pcre-config=PATH Location of PCRE pcre-config (auto)
1591 --with-regex-library=NAME Use regex library - posix, pcre (auto)
1592 --with-mhash=DIR mhash installation prefix (no default)
1593 --with-libgcrypt-config=PATH Location of GCRYPT libgcrypt-config (auto)
1594 --with-digest-library=NAME Use message digest library - mhash, gcrypt, internal (auto)
1595 --with-uuid-library=NAME Use UUID library - libuuid, libc (auto)
1596 --with-xml2-config=PATH Location of libxml xml2-config ()
1597 --with-gmp=DIR GMP install area
1598 --with-mpfr=DIR MPFR install area
1599 --with-decimal=NAME Use decimal library - mpfr (default), gmp, none
1600 --with-random-approach=NAME Use random approach - mtwist, random_r, rand_r, random, rand (auto)
1601 --with-memory-signing Sign allocated memory (default=no)
1602 --with-html-dir=PATH path to installed docs
1603
1604 Some influential environment variables:
1605 CC C compiler command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
1609 LIBS libraries to pass to the linker, e.g. -l<library>
1610 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1611 you have headers in a nonstandard directory <include dir>
1612 CPP C preprocessor
1613 PKG_CONFIG path to pkg-config utility
1614 PKG_CONFIG_PATH
1615 directories to add to pkg-config's search path
1616 PKG_CONFIG_LIBDIR
1617 path overriding pkg-config's built-in search path
1618 RAPTOR2_CFLAGS
1619 C compiler flags for RAPTOR2, overriding pkg-config
1620 RAPTOR2_LIBS
1621 linker flags for RAPTOR2, overriding pkg-config
1622 UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1623 UUID_LIBS linker flags for UUID, overriding pkg-config
1624 GTKDOC_DEPS_CFLAGS
1625 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1626 GTKDOC_DEPS_LIBS
1627 linker flags for GTKDOC_DEPS, overriding pkg-config
1628
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1631
1632 Report bugs to <http://bugs.librdf.org/>.
1633 _ACEOF
1634 ac_status=$?
1635 fi
1636
1637 if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642 continue
1643 ac_builddir=.
1644
1645 case "$ac_dir" in
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *)
1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649 # A ".." for each directory in $ac_dir_suffix.
1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 esac ;;
1655 esac
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1660
1661 case $srcdir in
1662 .) # We are building in place.
1663 ac_srcdir=.
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
1667 ac_srcdir=$srcdir$ac_dir_suffix;
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1670 *) # Relative name.
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 esac
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure" --help=recursive
1685 else
1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687 fi || ac_status=$?
1688 cd "$ac_pwd" || { ac_status=$?; break; }
1689 done
1690 fi
1691
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1694 cat <<\_ACEOF
1695 Rasqal RDF Query Library configure 0.9.33
1696 generated by GNU Autoconf 2.69
1697
1698 Copyright (C) 2012 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1701 _ACEOF
1702 exit
1703 fi
1704
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1708
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_compile
1746
1747 # ac_fn_c_try_link LINENO
1748 # -----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_link ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext conftest$ac_exeext
1754 if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest$ac_exeext && {
1773 test "$cross_compiling" = yes ||
1774 test -x conftest$ac_exeext
1775 }; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782 fi
1783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785 # interfere with the next link command; also delete a directory that is
1786 # left behind by Apple's compiler. We do this before executing the actions.
1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1790
1791 } # ac_fn_c_try_link
1792
1793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists and can be compiled using the include files in
1796 # INCLUDES, setting the cache variable VAR accordingly.
1797 ac_fn_c_check_header_compile ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1804 else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811 eval "$3=yes"
1812 else
1813 eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_header_compile
1823
1824 # ac_fn_c_try_cpp LINENO
1825 # ----------------------
1826 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_cpp ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_cpp conftest.$ac_ext"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1843 fi
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } > conftest.i && {
1846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1847 test ! -s conftest.err
1848 }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 ac_retval=1
1855 fi
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1858
1859 } # ac_fn_c_try_cpp
1860
1861 # ac_fn_c_try_run LINENO
1862 # ----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864 # that executables *can* be run.
1865 ac_fn_c_try_run ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879 { { case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_try") 2>&5
1886 ac_status=$?
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; }; }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: program exited with status $ac_status" >&5
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 ac_retval=$ac_status
1896 fi
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1900
1901 } # ac_fn_c_try_run
1902
1903 # ac_fn_c_check_func LINENO FUNC VAR
1904 # ----------------------------------
1905 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1906 ac_fn_c_check_func ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1913 else
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1918 #define $2 innocuous_$2
1919
1920 /* System header to define __stub macros and hopefully few prototypes,
1921 which can conflict with char $2 (); below.
1922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1923 <limits.h> exists even on freestanding compilers. */
1924
1925 #ifdef __STDC__
1926 # include <limits.h>
1927 #else
1928 # include <assert.h>
1929 #endif
1930
1931 #undef $2
1932
1933 /* Override any GCC internal prototype to avoid an error.
1934 Use char because int might match the return type of a GCC
1935 builtin and then its argument prototype would still apply. */
1936 #ifdef __cplusplus
1937 extern "C"
1938 #endif
1939 char $2 ();
1940 /* The GNU C library defines this for functions which it implements
1941 to always fail with ENOSYS. Some functions are actually named
1942 something starting with __ and the normal name is an alias. */
1943 #if defined __stub_$2 || defined __stub___$2
1944 choke me
1945 #endif
1946
1947 int
1948 main ()
1949 {
1950 return $2 ();
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_link "$LINENO"; then :
1956 eval "$3=yes"
1957 else
1958 eval "$3=no"
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext \
1961 conftest$ac_exeext conftest.$ac_ext
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967
1968 } # ac_fn_c_check_func
1969
1970 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1971 # -------------------------------------------------------
1972 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1973 # the include files in INCLUDES and setting the cache variable VAR
1974 # accordingly.
1975 ac_fn_c_check_header_mongrel ()
1976 {
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if eval \${$3+:} false; then :
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if eval \${$3+:} false; then :
1982 $as_echo_n "(cached) " >&6
1983 fi
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 else
1988 # Is the header compilable?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1990 $as_echo_n "checking $2 usability... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 $4
1994 #include <$2>
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_header_compiler=yes
1998 else
1999 ac_header_compiler=no
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2003 $as_echo "$ac_header_compiler" >&6; }
2004
2005 # Is the header present?
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2007 $as_echo_n "checking $2 presence... " >&6; }
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 #include <$2>
2011 _ACEOF
2012 if ac_fn_c_try_cpp "$LINENO"; then :
2013 ac_header_preproc=yes
2014 else
2015 ac_header_preproc=no
2016 fi
2017 rm -f conftest.err conftest.i conftest.$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2019 $as_echo "$ac_header_preproc" >&6; }
2020
2021 # So? What about this header?
2022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2023 yes:no: )
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2025 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2027 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2028 ;;
2029 no:yes:* )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2031 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2033 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2035 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2037 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040 ( $as_echo "## -------------------------------------- ##
2041 ## Report this to http://bugs.librdf.org/ ##
2042 ## -------------------------------------- ##"
2043 ) | sed "s/^/$as_me: WARNING: /" >&2
2044 ;;
2045 esac
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 $as_echo_n "checking for $2... " >&6; }
2048 if eval \${$3+:} false; then :
2049 $as_echo_n "(cached) " >&6
2050 else
2051 eval "$3=\$ac_header_compiler"
2052 fi
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 fi
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059 } # ac_fn_c_check_header_mongrel
2060 cat >config.log <<_ACEOF
2061 This file contains any messages produced by compilers while
2062 running configure, to aid debugging if configure makes a mistake.
2063
2064 It was created by Rasqal RDF Query Library $as_me 0.9.33, which was
2065 generated by GNU Autoconf 2.69. Invocation command line was
2066
2067 $ $0 $@
2068
2069 _ACEOF
2070 exec 5>>config.log
2071 {
2072 cat <<_ASUNAME
2073 ## --------- ##
2074 ## Platform. ##
2075 ## --------- ##
2076
2077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082
2083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2085
2086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2089 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2093
2094 _ASUNAME
2095
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 $as_echo "PATH: $as_dir"
2102 done
2103 IFS=$as_save_IFS
2104
2105 } >&5
2106
2107 cat >&5 <<_ACEOF
2108
2109
2110 ## ----------- ##
2111 ## Core tests. ##
2112 ## ----------- ##
2113
2114 _ACEOF
2115
2116
2117 # Keep a trace of the command line.
2118 # Strip out --no-create and --no-recursion so they do not pile up.
2119 # Strip out --silent because we don't want to record it for future runs.
2120 # Also quote any args containing shell meta-characters.
2121 # Make two passes to allow for proper duplicate-argument suppression.
2122 ac_configure_args=
2123 ac_configure_args0=
2124 ac_configure_args1=
2125 ac_must_keep_next=false
2126 for ac_pass in 1 2
2127 do
2128 for ac_arg
2129 do
2130 case $ac_arg in
2131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2133 | -silent | --silent | --silen | --sile | --sil)
2134 continue ;;
2135 *\'*)
2136 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2137 esac
2138 case $ac_pass in
2139 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140 2)
2141 as_fn_append ac_configure_args1 " '$ac_arg'"
2142 if test $ac_must_keep_next = true; then
2143 ac_must_keep_next=false # Got value, back to normal.
2144 else
2145 case $ac_arg in
2146 *=* | --config-cache | -C | -disable-* | --disable-* \
2147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2149 | -with-* | --with-* | -without-* | --without-* | --x)
2150 case "$ac_configure_args0 " in
2151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2152 esac
2153 ;;
2154 -* ) ac_must_keep_next=true ;;
2155 esac
2156 fi
2157 as_fn_append ac_configure_args " '$ac_arg'"
2158 ;;
2159 esac
2160 done
2161 done
2162 { ac_configure_args0=; unset ac_configure_args0;}
2163 { ac_configure_args1=; unset ac_configure_args1;}
2164
2165 # When interrupted or exit'd, cleanup temporary files, and complete
2166 # config.log. We remove comments because anyway the quotes in there
2167 # would cause problems or look ugly.
2168 # WARNING: Use '\'' to represent an apostrophe within the trap.
2169 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2170 trap 'exit_status=$?
2171 # Save into config.log some information that might help in debugging.
2172 {
2173 echo
2174
2175 $as_echo "## ---------------- ##
2176 ## Cache variables. ##
2177 ## ---------------- ##"
2178 echo
2179 # The following way of writing the cache mishandles newlines in values,
2180 (
2181 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2182 eval ac_val=\$$ac_var
2183 case $ac_val in #(
2184 *${as_nl}*)
2185 case $ac_var in #(
2186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2188 esac
2189 case $ac_var in #(
2190 _ | IFS | as_nl) ;; #(
2191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2192 *) { eval $ac_var=; unset $ac_var;} ;;
2193 esac ;;
2194 esac
2195 done
2196 (set) 2>&1 |
2197 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2198 *${as_nl}ac_space=\ *)
2199 sed -n \
2200 "s/'\''/'\''\\\\'\'''\''/g;
2201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2202 ;; #(
2203 *)
2204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2205 ;;
2206 esac |
2207 sort
2208 )
2209 echo
2210
2211 $as_echo "## ----------------- ##
2212 ## Output variables. ##
2213 ## ----------------- ##"
2214 echo
2215 for ac_var in $ac_subst_vars
2216 do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in
2219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 esac
2221 $as_echo "$ac_var='\''$ac_val'\''"
2222 done | sort
2223 echo
2224
2225 if test -n "$ac_subst_files"; then
2226 $as_echo "## ------------------- ##
2227 ## File substitutions. ##
2228 ## ------------------- ##"
2229 echo
2230 for ac_var in $ac_subst_files
2231 do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 esac
2236 $as_echo "$ac_var='\''$ac_val'\''"
2237 done | sort
2238 echo
2239 fi
2240
2241 if test -s confdefs.h; then
2242 $as_echo "## ----------- ##
2243 ## confdefs.h. ##
2244 ## ----------- ##"
2245 echo
2246 cat confdefs.h
2247 echo
2248 fi
2249 test "$ac_signal" != 0 &&
2250 $as_echo "$as_me: caught signal $ac_signal"
2251 $as_echo "$as_me: exit $exit_status"
2252 } >&5
2253 rm -f core *.core core.conftest.* &&
2254 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2255 exit $exit_status
2256 ' 0
2257 for ac_signal in 1 2 13 15; do
2258 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2259 done
2260 ac_signal=0
2261
2262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2263 rm -f -r conftest* confdefs.h
2264
2265 $as_echo "/* confdefs.h */" > confdefs.h
2266
2267 # Predefined preprocessor variables.
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_NAME "$PACKAGE_NAME"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_STRING "$PACKAGE_STRING"
2283 _ACEOF
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2287 _ACEOF
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_URL "$PACKAGE_URL"
2291 _ACEOF
2292
2293
2294 # Let the site file select an alternate cache file if it wants to.
2295 # Prefer an explicitly selected file to automatically selected ones.
2296 ac_site_file1=NONE
2297 ac_site_file2=NONE
2298 if test -n "$CONFIG_SITE"; then
2299 # We do not want a PATH search for config.site.
2300 case $CONFIG_SITE in #((
2301 -*) ac_site_file1=./$CONFIG_SITE;;
2302 */*) ac_site_file1=$CONFIG_SITE;;
2303 *) ac_site_file1=./$CONFIG_SITE;;
2304 esac
2305 elif test "x$prefix" != xNONE; then
2306 ac_site_file1=$prefix/share/config.site
2307 ac_site_file2=$prefix/etc/config.site
2308 else
2309 ac_site_file1=$ac_default_prefix/share/config.site
2310 ac_site_file2=$ac_default_prefix/etc/config.site
2311 fi
2312 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 do
2314 test "x$ac_site_file" = xNONE && continue
2315 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2318 sed 's/^/| /' "$ac_site_file" >&5
2319 . "$ac_site_file" \
2320 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 as_fn_error $? "failed to load site script $ac_site_file
2323 See \`config.log' for more details" "$LINENO" 5; }
2324 fi
2325 done
2326
2327 if test -r "$cache_file"; then
2328 # Some versions of bash will fail to source /dev/null (special files
2329 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2330 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2332 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333 case $cache_file in
2334 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2335 *) . "./$cache_file";;
2336 esac
2337 fi
2338 else
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2340 $as_echo "$as_me: creating cache $cache_file" >&6;}
2341 >$cache_file
2342 fi
2343
2344 # Check that the precious variables saved in the cache have kept the same
2345 # value.
2346 ac_cache_corrupted=false
2347 for ac_var in $ac_precious_vars; do
2348 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2349 eval ac_new_set=\$ac_env_${ac_var}_set
2350 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2351 eval ac_new_val=\$ac_env_${ac_var}_value
2352 case $ac_old_set,$ac_new_set in
2353 set,)
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2357 ,set)
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2360 ac_cache_corrupted=: ;;
2361 ,);;
2362 *)
2363 if test "x$ac_old_val" != "x$ac_new_val"; then
2364 # differences in whitespace do not lead to failure.
2365 ac_old_val_w=`echo x $ac_old_val`
2366 ac_new_val_w=`echo x $ac_new_val`
2367 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2369 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2370 ac_cache_corrupted=:
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2373 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2374 eval $ac_var=\$ac_old_val
2375 fi
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2377 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2379 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2380 fi;;
2381 esac
2382 # Pass precious variables to config.status.
2383 if test "$ac_new_set" = set; then
2384 case $ac_new_val in
2385 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 *) ac_arg=$ac_var=$ac_new_val ;;
2387 esac
2388 case " $ac_configure_args " in
2389 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2390 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2391 esac
2392 fi
2393 done
2394 if $ac_cache_corrupted; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2398 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2399 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2400 fi
2401 ## -------------------- ##
2402 ## Main body of script. ##
2403 ## -------------------- ##
2404
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410
2411
2412
2413 ac_config_headers="$ac_config_headers src/rasqal_config.h"
2414
2415 ac_aux_dir=
2416 for ac_dir in build "$srcdir"/build; do
2417 if test -f "$ac_dir/install-sh"; then
2418 ac_aux_dir=$ac_dir
2419 ac_install_sh="$ac_aux_dir/install-sh -c"
2420 break
2421 elif test -f "$ac_dir/install.sh"; then
2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/install.sh -c"
2424 break
2425 elif test -f "$ac_dir/shtool"; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/shtool install -c"
2428 break
2429 fi
2430 done
2431 if test -z "$ac_aux_dir"; then
2432 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2433 fi
2434
2435 # These three variables are undocumented and unsupported,
2436 # and are intended to be withdrawn in a future Autoconf release.
2437 # They can cause serious problems if a builder's source tree is in a directory
2438 # whose full name contains unusual characters.
2439 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2440 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2441 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2442
2443
2444
2445 am__api_version='1.11'
2446
2447 # Find a good install program. We prefer a C program (faster),
2448 # so one script is as good as another. But avoid the broken or
2449 # incompatible versions:
2450 # SysV /etc/install, /usr/sbin/install
2451 # SunOS /usr/etc/install
2452 # IRIX /sbin/install
2453 # AIX /bin/install
2454 # AmigaOS /C/install, which installs bootblocks on floppy discs
2455 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2456 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2457 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2458 # OS/2's system install, which has a completely different semantic
2459 # ./install, which can be erroneously created by make from ./install.sh.
2460 # Reject install programs that cannot install multiple files.
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2462 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2463 if test -z "$INSTALL"; then
2464 if ${ac_cv_path_install+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 # Account for people who put trailing slashes in PATH elements.
2473 case $as_dir/ in #((
2474 ./ | .// | /[cC]/* | \
2475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2476 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2477 /usr/ucb/* ) ;;
2478 *)
2479 # OSF1 and SCO ODT 3.0 have their own names for install.
2480 # Don't use installbsd from OSF since it installs stuff as root
2481 # by default.
2482 for ac_prog in ginstall scoinst install; do
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2485 if test $ac_prog = install &&
2486 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # AIX install. It has an incompatible calling convention.
2488 :
2489 elif test $ac_prog = install &&
2490 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491 # program-specific install script used by HP pwplus--don't use.
2492 :
2493 else
2494 rm -rf conftest.one conftest.two conftest.dir
2495 echo one > conftest.one
2496 echo two > conftest.two
2497 mkdir conftest.dir
2498 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2499 test -s conftest.one && test -s conftest.two &&
2500 test -s conftest.dir/conftest.one &&
2501 test -s conftest.dir/conftest.two
2502 then
2503 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2504 break 3
2505 fi
2506 fi
2507 fi
2508 done
2509 done
2510 ;;
2511 esac
2512
2513 done
2514 IFS=$as_save_IFS
2515
2516 rm -rf conftest.one conftest.two conftest.dir
2517
2518 fi
2519 if test "${ac_cv_path_install+set}" = set; then
2520 INSTALL=$ac_cv_path_install
2521 else
2522 # As a last resort, use the slow shell script. Don't cache a
2523 # value for INSTALL within a source directory, because that will
2524 # break other packages using the cache if that directory is
2525 # removed, or if the value is a relative name.
2526 INSTALL=$ac_install_sh
2527 fi
2528 fi
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2530 $as_echo "$INSTALL" >&6; }
2531
2532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2533 # It thinks the first close brace ends the variable substitution.
2534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2535
2536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2537
2538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2539
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2541 $as_echo_n "checking whether build environment is sane... " >&6; }
2542 # Just in case
2543 sleep 1
2544 echo timestamp > conftest.file
2545 # Reject unsafe characters in $srcdir or the absolute working directory
2546 # name. Accept space and tab only in the latter.
2547 am_lf='
2548 '
2549 case `pwd` in
2550 *[\\\"\#\$\&\'\`$am_lf]*)
2551 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2552 esac
2553 case $srcdir in
2554 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2555 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2556 esac
2557
2558 # Do `set' in a subshell so we don't clobber the current shell's
2559 # arguments. Must try -L first in case configure is actually a
2560 # symlink; some systems play weird games with the mod time of symlinks
2561 # (eg FreeBSD returns the mod time of the symlink's containing
2562 # directory).
2563 if (
2564 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2565 if test "$*" = "X"; then
2566 # -L didn't work.
2567 set X `ls -t "$srcdir/configure" conftest.file`
2568 fi
2569 rm -f conftest.file
2570 if test "$*" != "X $srcdir/configure conftest.file" \
2571 && test "$*" != "X conftest.file $srcdir/configure"; then
2572
2573 # If neither matched, then we have a broken ls. This can happen
2574 # if, for instance, CONFIG_SHELL is bash and it inherits a
2575 # broken ls alias from the environment. This has actually
2576 # happened. Such a system could not be considered "sane".
2577 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2578 alias in your environment" "$LINENO" 5
2579 fi
2580
2581 test "$2" = conftest.file
2582 )
2583 then
2584 # Ok.
2585 :
2586 else
2587 as_fn_error $? "newly created file is older than distributed files!
2588 Check your system clock" "$LINENO" 5
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2591 $as_echo "yes" >&6; }
2592 test "$program_prefix" != NONE &&
2593 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2594 # Use a double $ so make ignores it.
2595 test "$program_suffix" != NONE &&
2596 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2597 # Double any \ or $.
2598 # By default was `s,x,x', remove it if useless.
2599 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2600 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2601
2602 # expand $ac_aux_dir to an absolute path
2603 am_aux_dir=`cd $ac_aux_dir && pwd`
2604
2605 if test x"${MISSING+set}" != xset; then
2606 case $am_aux_dir in
2607 *\ * | *\ *)
2608 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2609 *)
2610 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2611 esac
2612 fi
2613 # Use eval to expand $SHELL
2614 if eval "$MISSING --run true"; then
2615 am_missing_run="$MISSING --run "
2616 else
2617 am_missing_run=
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2619 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2620 fi
2621
2622 if test x"${install_sh}" != xset; then
2623 case $am_aux_dir in
2624 *\ * | *\ *)
2625 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2626 *)
2627 install_sh="\${SHELL} $am_aux_dir/install-sh"
2628 esac
2629 fi
2630
2631 # Installed binaries are usually stripped using `strip' when the user
2632 # run `make install-strip'. However `strip' might not be the right
2633 # tool to use in cross-compilation environments, therefore Automake
2634 # will honor the `STRIP' environment variable to overrule this program.
2635 if test "$cross_compiling" != no; then
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}strip; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if ${ac_cv_prog_STRIP+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$STRIP"; then
2645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 STRIP=$ac_cv_prog_STRIP
2665 if test -n "$STRIP"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2667 $as_echo "$STRIP" >&6; }
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2671 fi
2672
2673
2674 fi
2675 if test -z "$ac_cv_prog_STRIP"; then
2676 ac_ct_STRIP=$STRIP
2677 # Extract the first word of "strip", so it can be a program name with args.
2678 set dummy strip; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$ac_ct_STRIP"; then
2685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_ac_ct_STRIP="strip"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2705 if test -n "$ac_ct_STRIP"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2707 $as_echo "$ac_ct_STRIP" >&6; }
2708 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713 if test "x$ac_ct_STRIP" = x; then
2714 STRIP=":"
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717 yes:)
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2720 ac_tool_warned=yes ;;
2721 esac
2722 STRIP=$ac_ct_STRIP
2723 fi
2724 else
2725 STRIP="$ac_cv_prog_STRIP"
2726 fi
2727
2728 fi
2729 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2730
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2732 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2733 if test -z "$MKDIR_P"; then
2734 if ${ac_cv_path_mkdir+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2739 do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_prog in mkdir gmkdir; do
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2745 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2746 'mkdir (GNU coreutils) '* | \
2747 'mkdir (coreutils) '* | \
2748 'mkdir (fileutils) '4.1*)
2749 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2750 break 3;;
2751 esac
2752 done
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758
2759 test -d ./--version && rmdir ./--version
2760 if test "${ac_cv_path_mkdir+set}" = set; then
2761 MKDIR_P="$ac_cv_path_mkdir -p"
2762 else
2763 # As a last resort, use the slow shell script. Don't cache a
2764 # value for MKDIR_P within a source directory, because that will
2765 # break other packages using the cache if that directory is
2766 # removed, or if the value is a relative name.
2767 MKDIR_P="$ac_install_sh -d"
2768 fi
2769 fi
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2771 $as_echo "$MKDIR_P" >&6; }
2772
2773 mkdir_p="$MKDIR_P"
2774 case $mkdir_p in
2775 [\\/$]* | ?:[\\/]*) ;;
2776 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2777 esac
2778
2779 for ac_prog in gawk mawk nawk awk
2780 do
2781 # Extract the first word of "$ac_prog", so it can be a program name with args.
2782 set dummy $ac_prog; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if ${ac_cv_prog_AWK+:} false; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test -n "$AWK"; then
2789 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2798 ac_cv_prog_AWK="$ac_prog"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 AWK=$ac_cv_prog_AWK
2809 if test -n "$AWK"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2811 $as_echo "$AWK" >&6; }
2812 else
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 fi
2816
2817
2818 test -n "$AWK" && break
2819 done
2820
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2822 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2823 set x ${MAKE-make}
2824 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2825 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 cat >conftest.make <<\_ACEOF
2829 SHELL = /bin/sh
2830 all:
2831 @echo '@@@%%%=$(MAKE)=@@@%%%'
2832 _ACEOF
2833 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2834 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2835 *@@@%%%=?*=@@@%%%*)
2836 eval ac_cv_prog_make_${ac_make}_set=yes;;
2837 *)
2838 eval ac_cv_prog_make_${ac_make}_set=no;;
2839 esac
2840 rm -f conftest.make
2841 fi
2842 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2844 $as_echo "yes" >&6; }
2845 SET_MAKE=
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 SET_MAKE="MAKE=${MAKE-make}"
2850 fi
2851
2852 rm -rf .tst 2>/dev/null
2853 mkdir .tst 2>/dev/null
2854 if test -d .tst; then
2855 am__leading_dot=.
2856 else
2857 am__leading_dot=_
2858 fi
2859 rmdir .tst 2>/dev/null
2860
2861 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2862 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2863 # is not polluted with repeated "-I."
2864 am__isrc=' -I$(srcdir)'
2865 # test to see if srcdir already configured
2866 if test -f $srcdir/config.status; then
2867 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2868 fi
2869 fi
2870
2871 # test whether we have cygpath
2872 if test -z "$CYGPATH_W"; then
2873 if (cygpath --version) >/dev/null 2>/dev/null; then
2874 CYGPATH_W='cygpath -w'
2875 else
2876 CYGPATH_W=echo
2877 fi
2878 fi
2879
2880
2881 # Define the identity of the package.
2882 PACKAGE='rasqal'
2883 VERSION='0.9.33'
2884
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE "$PACKAGE"
2888 _ACEOF
2889
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define VERSION "$VERSION"
2893 _ACEOF
2894
2895 # Some tools Automake needs.
2896
2897 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2898
2899
2900 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2901
2902
2903 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2904
2905
2906 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2907
2908
2909 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2910
2911 # We need awk for the "check" target. The system "awk" is bad on
2912 # some platforms.
2913 # Always define AMTAR for backward compatibility. Yes, it's still used
2914 # in the wild :-( We should find a proper way to deprecate it ...
2915 AMTAR='$${TAR-tar}'
2916
2917 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2918
2919
2920
2921
2922
2923
2924
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2926 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2927 # Check whether --enable-maintainer-mode was given.
2928 if test "${enable_maintainer_mode+set}" = set; then :
2929 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2930 else
2931 USE_MAINTAINER_MODE=no
2932 fi
2933
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2935 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2936 if test $USE_MAINTAINER_MODE = yes; then
2937 MAINTAINER_MODE_TRUE=
2938 MAINTAINER_MODE_FALSE='#'
2939 else
2940 MAINTAINER_MODE_TRUE='#'
2941 MAINTAINER_MODE_FALSE=
2942 fi
2943
2944 MAINT=$MAINTAINER_MODE_TRUE
2945
2946
2947
2948 release_version=no
2949 # Check whether --enable-release was given.
2950 if test "${enable_release+set}" = set; then :
2951 enableval=$enable_release; \
2952 if test "$enableval" = "yes"; then \
2953 release_version=yes
2954 fi;
2955 fi
2956
2957
2958 if test "$USE_MAINTAINER_MODE" = yes -a $release_version = no; then
2959 CFLAGS=`echo $CFLAGS | sed -e "s/-OA-Za-z0-9*//"`
2960 CXXFLAGS=`echo $CXXFLAGS | sed -e "s/-OA-Za-z0-9*//"`
2961 CPPFLAGS=`echo $CPPFLAGS | sed -e "s/-OA-Za-z0-9*//"`
2962 fi
2963
2964 # Make sure we can run config.sub.
2965 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2966 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2967
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2969 $as_echo_n "checking build system type... " >&6; }
2970 if ${ac_cv_build+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 ac_build_alias=$build_alias
2974 test "x$ac_build_alias" = x &&
2975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2976 test "x$ac_build_alias" = x &&
2977 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2978 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2979 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2980
2981 fi
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2983 $as_echo "$ac_cv_build" >&6; }
2984 case $ac_cv_build in
2985 *-*-*) ;;
2986 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2987 esac
2988 build=$ac_cv_build
2989 ac_save_IFS=$IFS; IFS='-'
2990 set x $ac_cv_build
2991 shift
2992 build_cpu=$1
2993 build_vendor=$2
2994 shift; shift
2995 # Remember, the first character of IFS is used to create $*,
2996 # except with old shells:
2997 build_os=$*
2998 IFS=$ac_save_IFS
2999 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3000
3001
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3003 $as_echo_n "checking host system type... " >&6; }
3004 if ${ac_cv_host+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test "x$host_alias" = x; then
3008 ac_cv_host=$ac_cv_build
3009 else
3010 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3011 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3012 fi
3013
3014 fi
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3016 $as_echo "$ac_cv_host" >&6; }
3017 case $ac_cv_host in
3018 *-*-*) ;;
3019 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3020 esac
3021 host=$ac_cv_host
3022 ac_save_IFS=$IFS; IFS='-'
3023 set x $ac_cv_host
3024 shift
3025 host_cpu=$1
3026 host_vendor=$2
3027 shift; shift
3028 # Remember, the first character of IFS is used to create $*,
3029 # except with old shells:
3030 host_os=$*
3031 IFS=$ac_save_IFS
3032 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3033
3034
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3036 $as_echo_n "checking whether build environment is sane... " >&6; }
3037 # Just in case
3038 sleep 1
3039 echo timestamp > conftest.file
3040 # Reject unsafe characters in $srcdir or the absolute working directory
3041 # name. Accept space and tab only in the latter.
3042 am_lf='
3043 '
3044 case `pwd` in
3045 *[\\\"\#\$\&\'\`$am_lf]*)
3046 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3047 esac
3048 case $srcdir in
3049 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3050 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3051 esac
3052
3053 # Do `set' in a subshell so we don't clobber the current shell's
3054 # arguments. Must try -L first in case configure is actually a
3055 # symlink; some systems play weird games with the mod time of symlinks
3056 # (eg FreeBSD returns the mod time of the symlink's containing
3057 # directory).
3058 if (
3059 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3060 if test "$*" = "X"; then
3061 # -L didn't work.
3062 set X `ls -t "$srcdir/configure" conftest.file`
3063 fi
3064 rm -f conftest.file
3065 if test "$*" != "X $srcdir/configure conftest.file" \
3066 && test "$*" != "X conftest.file $srcdir/configure"; then
3067
3068 # If neither matched, then we have a broken ls. This can happen
3069 # if, for instance, CONFIG_SHELL is bash and it inherits a
3070 # broken ls alias from the environment. This has actually
3071 # happened. Such a system could not be considered "sane".
3072 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3073 alias in your environment" "$LINENO" 5
3074 fi
3075
3076 test "$2" = conftest.file
3077 )
3078 then
3079 # Ok.
3080 :
3081 else
3082 as_fn_error $? "newly created file is older than distributed files!
3083 Check your system clock" "$LINENO" 5
3084 fi
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 $as_echo "yes" >&6; }
3087 DEPDIR="${am__leading_dot}deps"
3088
3089 ac_config_commands="$ac_config_commands depfiles"
3090
3091
3092 am_make=${MAKE-make}
3093 cat > confinc << 'END'
3094 am__doit:
3095 @echo this is the am__doit target
3096 .PHONY: am__doit
3097 END
3098 # If we don't find an include directive, just comment out the code.
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3100 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3101 am__include="#"
3102 am__quote=
3103 _am_result=none
3104 # First try GNU make style include.
3105 echo "include confinc" > confmf
3106 # Ignore all kinds of additional output from `make'.
3107 case `$am_make -s -f confmf 2> /dev/null` in #(
3108 *the\ am__doit\ target*)
3109 am__include=include
3110 am__quote=
3111 _am_result=GNU
3112 ;;
3113 esac
3114 # Now try BSD make style include.
3115 if test "$am__include" = "#"; then
3116 echo '.include "confinc"' > confmf
3117 case `$am_make -s -f confmf 2> /dev/null` in #(
3118 *the\ am__doit\ target*)
3119 am__include=.include
3120 am__quote="\""
3121 _am_result=BSD
3122 ;;
3123 esac
3124 fi
3125
3126
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3128 $as_echo "$_am_result" >&6; }
3129 rm -f confinc confmf
3130
3131 # Check whether --enable-dependency-tracking was given.
3132 if test "${enable_dependency_tracking+set}" = set; then :
3133 enableval=$enable_dependency_tracking;
3134 fi
3135
3136 if test "x$enable_dependency_tracking" != xno; then
3137 am_depcomp="$ac_aux_dir/depcomp"
3138 AMDEPBACKSLASH='\'
3139 am__nodep='_no'
3140 fi
3141 if test "x$enable_dependency_tracking" != xno; then
3142 AMDEP_TRUE=
3143 AMDEP_FALSE='#'
3144 else
3145 AMDEP_TRUE='#'
3146 AMDEP_FALSE=
3147 fi
3148
3149
3150 ac_ext=c
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193 fi
3194 if test -z "$ac_cv_prog_CC"; then
3195 ac_ct_CC=$CC
3196 # Extract the first word of "gcc", so it can be a program name with args.
3197 set dummy gcc; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_ac_ct_CC="gcc"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224 if test -n "$ac_ct_CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226 $as_echo "$ac_ct_CC" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232 if test "x$ac_ct_CC" = x; then
3233 CC=""
3234 else
3235 case $cross_compiling:$ac_tool_warned in
3236 yes:)
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3240 esac
3241 CC=$ac_ct_CC
3242 fi
3243 else
3244 CC="$ac_cv_prog_CC"
3245 fi
3246
3247 if test -z "$CC"; then
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}cc; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_CC+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_CC="${ac_tool_prefix}cc"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 $as_echo "$CC" >&6; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285
3286 fi
3287 fi
3288 if test -z "$CC"; then
3289 # Extract the first word of "cc", so it can be a program name with args.
3290 set dummy cc; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if ${ac_cv_prog_CC+:} false; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3298 else
3299 ac_prog_rejected=no
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3308 ac_prog_rejected=yes
3309 continue
3310 fi
3311 ac_cv_prog_CC="cc"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3314 fi
3315 done
3316 done
3317 IFS=$as_save_IFS
3318
3319 if test $ac_prog_rejected = yes; then
3320 # We found a bogon in the path, so make sure we never use it.
3321 set dummy $ac_cv_prog_CC
3322 shift
3323 if test $# != 0; then
3324 # We chose a different compiler from the bogus one.
3325 # However, it has the same basename, so the bogon will be chosen
3326 # first if we set CC to just the basename; use the full file name.
3327 shift
3328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3329 fi
3330 fi
3331 fi
3332 fi
3333 CC=$ac_cv_prog_CC
3334 if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3337 else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342
3343 fi
3344 if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 for ac_prog in cl.exe
3347 do
3348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_CC+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3368 fi
3369 done
3370 done
3371 IFS=$as_save_IFS
3372
3373 fi
3374 fi
3375 CC=$ac_cv_prog_CC
3376 if test -n "$CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378 $as_echo "$CC" >&6; }
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 fi
3383
3384
3385 test -n "$CC" && break
3386 done
3387 fi
3388 if test -z "$CC"; then
3389 ac_ct_CC=$CC
3390 for ac_prog in cl.exe
3391 do
3392 # Extract the first word of "$ac_prog", so it can be a program name with args.
3393 set dummy $ac_prog; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 if test -n "$ac_ct_CC"; then
3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_ac_ct_CC="$ac_prog"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 $as_echo "$ac_ct_CC" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427
3428
3429 test -n "$ac_ct_CC" && break
3430 done
3431
3432 if test "x$ac_ct_CC" = x; then
3433 CC=""
3434 else
3435 case $cross_compiling:$ac_tool_warned in
3436 yes:)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439 ac_tool_warned=yes ;;
3440 esac
3441 CC=$ac_ct_CC
3442 fi
3443 fi
3444
3445 fi
3446
3447
3448 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "no acceptable C compiler found in \$PATH
3451 See \`config.log' for more details" "$LINENO" 5; }
3452
3453 # Provide some information about the compiler.
3454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3455 set X $ac_compile
3456 ac_compiler=$2
3457 for ac_option in --version -v -V -qversion; do
3458 { { ac_try="$ac_compiler $ac_option >&5"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3466 ac_status=$?
3467 if test -s conftest.err; then
3468 sed '10a\
3469 ... rest of stderr output deleted ...
3470 10q' conftest.err >conftest.er1
3471 cat conftest.er1 >&5
3472 fi
3473 rm -f conftest.er1 conftest.err
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }
3476 done
3477
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480
3481 int
3482 main ()
3483 {
3484
3485 ;
3486 return 0;
3487 }
3488 _ACEOF
3489 ac_clean_files_save=$ac_clean_files
3490 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3491 # Try to create an executable without -o first, disregard a.out.
3492 # It will help us diagnose broken compilers, and finding out an intuition
3493 # of exeext.
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3495 $as_echo_n "checking whether the C compiler works... " >&6; }
3496 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3497
3498 # The possible output files:
3499 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3500
3501 ac_rmfiles=
3502 for ac_file in $ac_files
3503 do
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3507 esac
3508 done
3509 rm -f $ac_rmfiles
3510
3511 if { { ac_try="$ac_link_default"
3512 case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_link_default") 2>&5
3519 ac_status=$?
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; then :
3522 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3523 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3524 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3525 # so that the user can short-circuit this test for compilers unknown to
3526 # Autoconf.
3527 for ac_file in $ac_files ''
3528 do
3529 test -f "$ac_file" || continue
3530 case $ac_file in
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3532 ;;
3533 [ab].out )
3534 # We found the default executable, but exeext='' is most
3535 # certainly right.
3536 break;;
3537 *.* )
3538 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3539 then :; else
3540 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3541 fi
3542 # We set ac_cv_exeext here because the later test for it is not
3543 # safe: cross compilers may not add the suffix if given an `-o'
3544 # argument, so we may need to know it at that point already.
3545 # Even if this section looks crufty: it has the advantage of
3546 # actually working.
3547 break;;
3548 * )
3549 break;;
3550 esac
3551 done
3552 test "$ac_cv_exeext" = no && ac_cv_exeext=
3553
3554 else
3555 ac_file=''
3556 fi
3557 if test -z "$ac_file"; then :
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 $as_echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error 77 "C compiler cannot create executables
3566 See \`config.log' for more details" "$LINENO" 5; }
3567 else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3569 $as_echo "yes" >&6; }
3570 fi
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3572 $as_echo_n "checking for C compiler default output file name... " >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3574 $as_echo "$ac_file" >&6; }
3575 ac_exeext=$ac_cv_exeext
3576
3577 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3578 ac_clean_files=$ac_clean_files_save
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3580 $as_echo_n "checking for suffix of executables... " >&6; }
3581 if { { ac_try="$ac_link"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3593 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3594 # work properly (i.e., refer to `conftest.exe'), while it won't with
3595 # `rm'.
3596 for ac_file in conftest.exe conftest conftest.*; do
3597 test -f "$ac_file" || continue
3598 case $ac_file in
3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3600 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601 break;;
3602 * ) break;;
3603 esac
3604 done
3605 else
3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3609 See \`config.log' for more details" "$LINENO" 5; }
3610 fi
3611 rm -f conftest conftest$ac_cv_exeext
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3613 $as_echo "$ac_cv_exeext" >&6; }
3614
3615 rm -f conftest.$ac_ext
3616 EXEEXT=$ac_cv_exeext
3617 ac_exeext=$EXEEXT
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620 #include <stdio.h>
3621 int
3622 main ()
3623 {
3624 FILE *f = fopen ("conftest.out", "w");
3625 return ferror (f) || fclose (f) != 0;
3626
3627 ;
3628 return 0;
3629 }
3630 _ACEOF
3631 ac_clean_files="$ac_clean_files conftest.out"
3632 # Check that the compiler produces executables we can run. If not, either
3633 # the compiler is broken, or we cross compile.
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3635 $as_echo_n "checking whether we are cross compiling... " >&6; }
3636 if test "$cross_compiling" != yes; then
3637 { { ac_try="$ac_link"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_link") 2>&5
3645 ac_status=$?
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }
3648 if { ac_try='./conftest$ac_cv_exeext'
3649 { { case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_try") 2>&5
3656 ac_status=$?
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; }; then
3659 cross_compiling=no
3660 else
3661 if test "$cross_compiling" = maybe; then
3662 cross_compiling=yes
3663 else
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error $? "cannot run C compiled programs.
3667 If you meant to cross compile, use \`--host'.
3668 See \`config.log' for more details" "$LINENO" 5; }
3669 fi
3670 fi
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3673 $as_echo "$cross_compiling" >&6; }
3674
3675 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3676 ac_clean_files=$ac_clean_files_save
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3678 $as_echo_n "checking for suffix of object files... " >&6; }
3679 if ${ac_cv_objext+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684
3685 int
3686 main ()
3687 {
3688
3689 ;
3690 return 0;
3691 }
3692 _ACEOF
3693 rm -f conftest.o conftest.obj
3694 if { { ac_try="$ac_compile"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_compile") 2>&5
3702 ac_status=$?
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }; then :
3705 for ac_file in conftest.o conftest.obj conftest.*; do
3706 test -f "$ac_file" || continue;
3707 case $ac_file in
3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3709 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3710 break;;
3711 esac
3712 done
3713 else
3714 $as_echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3716
3717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3719 as_fn_error $? "cannot compute suffix of object files: cannot compile
3720 See \`config.log' for more details" "$LINENO" 5; }
3721 fi
3722 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3725 $as_echo "$ac_cv_objext" >&6; }
3726 OBJEXT=$ac_cv_objext
3727 ac_objext=$OBJEXT
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3729 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3730 if ${ac_cv_c_compiler_gnu+:} false; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735
3736 int
3737 main ()
3738 {
3739 #ifndef __GNUC__
3740 choke me
3741 #endif
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_compiler_gnu=yes
3749 else
3750 ac_compiler_gnu=no
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3754
3755 fi
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3757 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3758 if test $ac_compiler_gnu = yes; then
3759 GCC=yes
3760 else
3761 GCC=
3762 fi
3763 ac_test_CFLAGS=${CFLAGS+set}
3764 ac_save_CFLAGS=$CFLAGS
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3766 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3767 if ${ac_cv_prog_cc_g+:} false; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 ac_save_c_werror_flag=$ac_c_werror_flag
3771 ac_c_werror_flag=yes
3772 ac_cv_prog_cc_g=no
3773 CFLAGS="-g"
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776
3777 int
3778 main ()
3779 {
3780
3781 ;
3782 return 0;
3783 }
3784 _ACEOF
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_cv_prog_cc_g=yes
3787 else
3788 CFLAGS=""
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791
3792 int
3793 main ()
3794 {
3795
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801
3802 else
3803 ac_c_werror_flag=$ac_save_c_werror_flag
3804 CFLAGS="-g"
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3807
3808 int
3809 main ()
3810 {
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 if ac_fn_c_try_compile "$LINENO"; then :
3817 ac_cv_prog_cc_g=yes
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_c_werror_flag=$ac_save_c_werror_flag
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3827 $as_echo "$ac_cv_prog_cc_g" >&6; }
3828 if test "$ac_test_CFLAGS" = set; then
3829 CFLAGS=$ac_save_CFLAGS
3830 elif test $ac_cv_prog_cc_g = yes; then
3831 if test "$GCC" = yes; then
3832 CFLAGS="-g -O2"
3833 else
3834 CFLAGS="-g"
3835 fi
3836 else
3837 if test "$GCC" = yes; then
3838 CFLAGS="-O2"
3839 else
3840 CFLAGS=
3841 fi
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3844 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3845 if ${ac_cv_prog_cc_c89+:} false; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 ac_cv_prog_cc_c89=no
3849 ac_save_CC=$CC
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852 #include <stdarg.h>
3853 #include <stdio.h>
3854 struct stat;
3855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3856 struct buf { int x; };
3857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3858 static char *e (p, i)
3859 char **p;
3860 int i;
3861 {
3862 return p[i];
3863 }
3864 static char *f (char * (*g) (char **, int), char **p, ...)
3865 {
3866 char *s;
3867 va_list v;
3868 va_start (v,p);
3869 s = g (p, va_arg (v,int));
3870 va_end (v);
3871 return s;
3872 }
3873
3874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3875 function prototypes and stuff, but not '\xHH' hex character constants.
3876 These don't provoke an error unfortunately, instead are silently treated
3877 as 'x'. The following induces an error, until -std is added to get
3878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3879 array size at least. It's necessary to write '\x00'==0 to get something
3880 that's true only with -std. */
3881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3882
3883 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3884 inside strings and character constants. */
3885 #define FOO(x) 'x'
3886 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3887
3888 int test (int i, double x);
3889 struct s1 {int (*f) (int a);};
3890 struct s2 {int (*f) (double a);};
3891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3892 int argc;
3893 char **argv;
3894 int
3895 main ()
3896 {
3897 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3904 do
3905 CC="$ac_save_CC $ac_arg"
3906 if ac_fn_c_try_compile "$LINENO"; then :
3907 ac_cv_prog_cc_c89=$ac_arg
3908 fi
3909 rm -f core conftest.err conftest.$ac_objext
3910 test "x$ac_cv_prog_cc_c89" != "xno" && break
3911 done
3912 rm -f conftest.$ac_ext
3913 CC=$ac_save_CC
3914
3915 fi
3916 # AC_CACHE_VAL
3917 case "x$ac_cv_prog_cc_c89" in
3918 x)
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3920 $as_echo "none needed" >&6; } ;;
3921 xno)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3923 $as_echo "unsupported" >&6; } ;;
3924 *)
3925 CC="$CC $ac_cv_prog_cc_c89"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3928 esac
3929 if test "x$ac_cv_prog_cc_c89" != xno; then :
3930
3931 fi
3932
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938
3939 depcc="$CC" am_compiler_list=
3940
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3942 $as_echo_n "checking dependency style of $depcc... " >&6; }
3943 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3947 # We make a subdir and do the tests there. Otherwise we can end up
3948 # making bogus files that we don't know about and never remove. For
3949 # instance it was reported that on HP-UX the gcc test will end up
3950 # making a dummy file named `D' -- because `-MD' means `put the output
3951 # in D'.
3952 rm -rf conftest.dir
3953 mkdir conftest.dir
3954 # Copy depcomp to subdir because otherwise we won't find it if we're
3955 # using a relative directory.
3956 cp "$am_depcomp" conftest.dir
3957 cd conftest.dir
3958 # We will build objects and dependencies in a subdirectory because
3959 # it helps to detect inapplicable dependency modes. For instance
3960 # both Tru64's cc and ICC support -MD to output dependencies as a
3961 # side effect of compilation, but ICC will put the dependencies in
3962 # the current directory while Tru64 will put them in the object
3963 # directory.
3964 mkdir sub
3965
3966 am_cv_CC_dependencies_compiler_type=none
3967 if test "$am_compiler_list" = ""; then
3968 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3969 fi
3970 am__universal=false
3971 case " $depcc " in #(
3972 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3973 esac
3974
3975 for depmode in $am_compiler_list; do
3976 # Setup a source with many dependencies, because some compilers
3977 # like to wrap large dependency lists on column 80 (with \), and
3978 # we should not choose a depcomp mode which is confused by this.
3979 #
3980 # We need to recreate these files for each test, as the compiler may
3981 # overwrite some of them when testing with obscure command lines.
3982 # This happens at least with the AIX C compiler.
3983 : > sub/conftest.c
3984 for i in 1 2 3 4 5 6; do
3985 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3986 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3987 # Solaris 8's {/usr,}/bin/sh.
3988 touch sub/conftst$i.h
3989 done
3990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3991
3992 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3993 # mode. It turns out that the SunPro C++ compiler does not properly
3994 # handle `-M -o', and we need to detect this. Also, some Intel
3995 # versions had trouble with output in subdirs
3996 am__obj=sub/conftest.${OBJEXT-o}
3997 am__minus_obj="-o $am__obj"
3998 case $depmode in
3999 gcc)
4000 # This depmode causes a compiler race in universal mode.
4001 test "$am__universal" = false || continue
4002 ;;
4003 nosideeffect)
4004 # after this tag, mechanisms are not by side-effect, so they'll
4005 # only be used when explicitly requested
4006 if test "x$enable_dependency_tracking" = xyes; then
4007 continue
4008 else
4009 break
4010 fi
4011 ;;
4012 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4013 # This compiler won't grok `-c -o', but also, the minuso test has
4014 # not run yet. These depmodes are late enough in the game, and
4015 # so weak that their functioning should not be impacted.
4016 am__obj=conftest.${OBJEXT-o}
4017 am__minus_obj=
4018 ;;
4019 none) break ;;
4020 esac
4021 if depmode=$depmode \
4022 source=sub/conftest.c object=$am__obj \
4023 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4024 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4025 >/dev/null 2>conftest.err &&
4026 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4027 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4028 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4029 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4030 # icc doesn't choke on unknown options, it will just issue warnings
4031 # or remarks (even with -Werror). So we grep stderr for any message
4032 # that says an option was ignored or not supported.
4033 # When given -MP, icc 7.0 and 7.1 complain thusly:
4034 # icc: Command line warning: ignoring option '-M'; no argument required
4035 # The diagnosis changed in icc 8.0:
4036 # icc: Command line remark: option '-MP' not supported
4037 if (grep 'ignoring option' conftest.err ||
4038 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4039 am_cv_CC_dependencies_compiler_type=$depmode
4040 break
4041 fi
4042 fi
4043 done
4044
4045 cd ..
4046 rm -rf conftest.dir
4047 else
4048 am_cv_CC_dependencies_compiler_type=none
4049 fi
4050
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4053 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4054 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4055
4056 if
4057 test "x$enable_dependency_tracking" != xno \
4058 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4059 am__fastdepCC_TRUE=
4060 am__fastdepCC_FALSE='#'
4061 else
4062 am__fastdepCC_TRUE='#'
4063 am__fastdepCC_FALSE=
4064 fi
4065
4066
4067
4068 if test -n "$ac_tool_prefix"; then
4069 for ac_prog in ar lib "link -lib"
4070 do
4071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if ${ac_cv_prog_AR+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -n "$AR"; then
4079 ac_cv_prog_AR="$AR" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4091 fi
4092 done
4093 done
4094 IFS=$as_save_IFS
4095
4096 fi
4097 fi
4098 AR=$ac_cv_prog_AR
4099 if test -n "$AR"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4101 $as_echo "$AR" >&6; }
4102 else
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4105 fi
4106
4107
4108 test -n "$AR" && break
4109 done
4110 fi
4111 if test -z "$AR"; then
4112 ac_ct_AR=$AR
4113 for ac_prog in ar lib "link -lib"
4114 do
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test -n "$ac_ct_AR"; then
4123 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_ac_ct_AR="$ac_prog"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136 done
4137 done
4138 IFS=$as_save_IFS
4139
4140 fi
4141 fi
4142 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4143 if test -n "$ac_ct_AR"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4145 $as_echo "$ac_ct_AR" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149 fi
4150
4151
4152 test -n "$ac_ct_AR" && break
4153 done
4154
4155 if test "x$ac_ct_AR" = x; then
4156 AR="false"
4157 else
4158 case $cross_compiling:$ac_tool_warned in
4159 yes:)
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4162 ac_tool_warned=yes ;;
4163 esac
4164 AR=$ac_ct_AR
4165 fi
4166 fi
4167
4168 : ${AR=ar}
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4171 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4172 if ${am_cv_ar_interface+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 am_cv_ar_interface=ar
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178 int some_variable = 0;
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4183 (eval $am_ar_try) 2>&5
4184 ac_status=$?
4185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }
4187 if test "$ac_status" -eq 0; then
4188 am_cv_ar_interface=ar
4189 else
4190 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4192 (eval $am_ar_try) 2>&5
4193 ac_status=$?
4194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195 test $ac_status = 0; }
4196 if test "$ac_status" -eq 0; then
4197 am_cv_ar_interface=lib
4198 else
4199 am_cv_ar_interface=unknown
4200 fi
4201 fi
4202 rm -f conftest.lib libconftest.a
4203
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206
4207 fi
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4209 $as_echo "$am_cv_ar_interface" >&6; }
4210
4211 case $am_cv_ar_interface in
4212 ar)
4213 ;;
4214 lib)
4215 # Microsoft lib, so override with the ar-lib wrapper script.
4216 # FIXME: It is wrong to rewrite AR.
4217 # But if we don't then we get into trouble of one sort or another.
4218 # A longer-term fix would be to have automake use am__AR in this case,
4219 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4220 # similar.
4221 AR="$am_aux_dir/ar-lib $AR"
4222 ;;
4223 unknown)
4224 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4225 ;;
4226 esac
4227
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_CC+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255 done
4256 done
4257 IFS=$as_save_IFS
4258
4259 fi
4260 fi
4261 CC=$ac_cv_prog_CC
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4268 fi
4269
4270
4271 fi
4272 if test -z "$ac_cv_prog_CC"; then
4273 ac_ct_CC=$CC
4274 # Extract the first word of "gcc", so it can be a program name with args.
4275 set dummy gcc; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$ac_ct_CC"; then
4282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_ac_ct_CC="gcc"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295 done
4296 done
4297 IFS=$as_save_IFS
4298
4299 fi
4300 fi
4301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4302 if test -n "$ac_ct_CC"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4304 $as_echo "$ac_ct_CC" >&6; }
4305 else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4308 fi
4309
4310 if test "x$ac_ct_CC" = x; then
4311 CC=""
4312 else
4313 case $cross_compiling:$ac_tool_warned in
4314 yes:)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4318 esac
4319 CC=$ac_ct_CC
4320 fi
4321 else
4322 CC="$ac_cv_prog_CC"
4323 fi
4324
4325 if test -z "$CC"; then
4326 if test -n "$ac_tool_prefix"; then
4327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4328 set dummy ${ac_tool_prefix}cc; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_prog_CC+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 if test -n "$CC"; then
4335 ac_cv_prog_CC="$CC" # Let the user override the test.
4336 else
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344 ac_cv_prog_CC="${ac_tool_prefix}cc"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348 done
4349 done
4350 IFS=$as_save_IFS
4351
4352 fi
4353 fi
4354 CC=$ac_cv_prog_CC
4355 if test -n "$CC"; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4357 $as_echo "$CC" >&6; }
4358 else
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 fi
4362
4363
4364 fi
4365 fi
4366 if test -z "$CC"; then
4367 # Extract the first word of "cc", so it can be a program name with args.
4368 set dummy cc; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_prog_CC+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if test -n "$CC"; then
4375 ac_cv_prog_CC="$CC" # Let the user override the test.
4376 else
4377 ac_prog_rejected=no
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4386 ac_prog_rejected=yes
4387 continue
4388 fi
4389 ac_cv_prog_CC="cc"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393 done
4394 done
4395 IFS=$as_save_IFS
4396
4397 if test $ac_prog_rejected = yes; then
4398 # We found a bogon in the path, so make sure we never use it.
4399 set dummy $ac_cv_prog_CC
4400 shift
4401 if test $# != 0; then
4402 # We chose a different compiler from the bogus one.
4403 # However, it has the same basename, so the bogon will be chosen
4404 # first if we set CC to just the basename; use the full file name.
4405 shift
4406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4407 fi
4408 fi
4409 fi
4410 fi
4411 CC=$ac_cv_prog_CC
4412 if test -n "$CC"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4414 $as_echo "$CC" >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420
4421 fi
4422 if test -z "$CC"; then
4423 if test -n "$ac_tool_prefix"; then
4424 for ac_prog in cl.exe
4425 do
4426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if ${ac_cv_prog_CC+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -n "$CC"; then
4434 ac_cv_prog_CC="$CC" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4446 fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4450
4451 fi
4452 fi
4453 CC=$ac_cv_prog_CC
4454 if test -n "$CC"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4456 $as_echo "$CC" >&6; }
4457 else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4460 fi
4461
4462
4463 test -n "$CC" && break
4464 done
4465 fi
4466 if test -z "$CC"; then
4467 ac_ct_CC=$CC
4468 for ac_prog in cl.exe
4469 do
4470 # Extract the first word of "$ac_prog", so it can be a program name with args.
4471 set dummy $ac_prog; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 if test -n "$ac_ct_CC"; then
4478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_ac_ct_CC="$ac_prog"
4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 fi
4496 fi
4497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4498 if test -n "$ac_ct_CC"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4500 $as_echo "$ac_ct_CC" >&6; }
4501 else
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4504 fi
4505
4506
4507 test -n "$ac_ct_CC" && break
4508 done
4509
4510 if test "x$ac_ct_CC" = x; then
4511 CC=""
4512 else
4513 case $cross_compiling:$ac_tool_warned in
4514 yes:)
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517 ac_tool_warned=yes ;;
4518 esac
4519 CC=$ac_ct_CC
4520 fi
4521 fi
4522
4523 fi
4524
4525
4526 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4528 as_fn_error $? "no acceptable C compiler found in \$PATH
4529 See \`config.log' for more details" "$LINENO" 5; }
4530
4531 # Provide some information about the compiler.
4532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4533 set X $ac_compile
4534 ac_compiler=$2
4535 for ac_option in --version -v -V -qversion; do
4536 { { ac_try="$ac_compiler $ac_option >&5"
4537 case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4540 esac
4541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4542 $as_echo "$ac_try_echo"; } >&5
4543 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4544 ac_status=$?
4545 if test -s conftest.err; then
4546 sed '10a\
4547 ... rest of stderr output deleted ...
4548 10q' conftest.err >conftest.er1
4549 cat conftest.er1 >&5
4550 fi
4551 rm -f conftest.er1 conftest.err
4552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4553 test $ac_status = 0; }
4554 done
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4557 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4558 if ${ac_cv_c_compiler_gnu+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563
4564 int
4565 main ()
4566 {
4567 #ifndef __GNUC__
4568 choke me
4569 #endif
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_c_try_compile "$LINENO"; then :
4576 ac_compiler_gnu=yes
4577 else
4578 ac_compiler_gnu=no
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4582
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4586 if test $ac_compiler_gnu = yes; then
4587 GCC=yes
4588 else
4589 GCC=
4590 fi
4591 ac_test_CFLAGS=${CFLAGS+set}
4592 ac_save_CFLAGS=$CFLAGS
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4595 if ${ac_cv_prog_cc_g+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 ac_save_c_werror_flag=$ac_c_werror_flag
4599 ac_c_werror_flag=yes
4600 ac_cv_prog_cc_g=no
4601 CFLAGS="-g"
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604
4605 int
4606 main ()
4607 {
4608
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 if ac_fn_c_try_compile "$LINENO"; then :
4614 ac_cv_prog_cc_g=yes
4615 else
4616 CFLAGS=""
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619
4620 int
4621 main ()
4622 {
4623
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_compile "$LINENO"; then :
4629
4630 else
4631 ac_c_werror_flag=$ac_save_c_werror_flag
4632 CFLAGS="-g"
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635
4636 int
4637 main ()
4638 {
4639
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 if ac_fn_c_try_compile "$LINENO"; then :
4645 ac_cv_prog_cc_g=yes
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 ac_c_werror_flag=$ac_save_c_werror_flag
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4655 $as_echo "$ac_cv_prog_cc_g" >&6; }
4656 if test "$ac_test_CFLAGS" = set; then
4657 CFLAGS=$ac_save_CFLAGS
4658 elif test $ac_cv_prog_cc_g = yes; then
4659 if test "$GCC" = yes; then
4660 CFLAGS="-g -O2"
4661 else
4662 CFLAGS="-g"
4663 fi
4664 else
4665 if test "$GCC" = yes; then
4666 CFLAGS="-O2"
4667 else
4668 CFLAGS=
4669 fi
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4672 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4673 if ${ac_cv_prog_cc_c89+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 ac_cv_prog_cc_c89=no
4677 ac_save_CC=$CC
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #include <stdarg.h>
4681 #include <stdio.h>
4682 struct stat;
4683 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4684 struct buf { int x; };
4685 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4686 static char *e (p, i)
4687 char **p;
4688 int i;
4689 {
4690 return p[i];
4691 }
4692 static char *f (char * (*g) (char **, int), char **p, ...)
4693 {
4694 char *s;
4695 va_list v;
4696 va_start (v,p);
4697 s = g (p, va_arg (v,int));
4698 va_end (v);
4699 return s;
4700 }
4701
4702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4703 function prototypes and stuff, but not '\xHH' hex character constants.
4704 These don't provoke an error unfortunately, instead are silently treated
4705 as 'x'. The following induces an error, until -std is added to get
4706 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4707 array size at least. It's necessary to write '\x00'==0 to get something
4708 that's true only with -std. */
4709 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4710
4711 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4712 inside strings and character constants. */
4713 #define FOO(x) 'x'
4714 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4715
4716 int test (int i, double x);
4717 struct s1 {int (*f) (int a);};
4718 struct s2 {int (*f) (double a);};
4719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4720 int argc;
4721 char **argv;
4722 int
4723 main ()
4724 {
4725 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4731 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4732 do
4733 CC="$ac_save_CC $ac_arg"
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735 ac_cv_prog_cc_c89=$ac_arg
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext
4738 test "x$ac_cv_prog_cc_c89" != "xno" && break
4739 done
4740 rm -f conftest.$ac_ext
4741 CC=$ac_save_CC
4742
4743 fi
4744 # AC_CACHE_VAL
4745 case "x$ac_cv_prog_cc_c89" in
4746 x)
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4748 $as_echo "none needed" >&6; } ;;
4749 xno)
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4751 $as_echo "unsupported" >&6; } ;;
4752 *)
4753 CC="$CC $ac_cv_prog_cc_c89"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4755 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4756 esac
4757 if test "x$ac_cv_prog_cc_c89" != xno; then :
4758
4759 fi
4760
4761 ac_ext=c
4762 ac_cpp='$CPP $CPPFLAGS'
4763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766
4767 depcc="$CC" am_compiler_list=
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4770 $as_echo_n "checking dependency style of $depcc... " >&6; }
4771 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4775 # We make a subdir and do the tests there. Otherwise we can end up
4776 # making bogus files that we don't know about and never remove. For
4777 # instance it was reported that on HP-UX the gcc test will end up
4778 # making a dummy file named `D' -- because `-MD' means `put the output
4779 # in D'.
4780 rm -rf conftest.dir
4781 mkdir conftest.dir
4782 # Copy depcomp to subdir because otherwise we won't find it if we're
4783 # using a relative directory.
4784 cp "$am_depcomp" conftest.dir
4785 cd conftest.dir
4786 # We will build objects and dependencies in a subdirectory because
4787 # it helps to detect inapplicable dependency modes. For instance
4788 # both Tru64's cc and ICC support -MD to output dependencies as a
4789 # side effect of compilation, but ICC will put the dependencies in
4790 # the current directory while Tru64 will put them in the object
4791 # directory.
4792 mkdir sub
4793
4794 am_cv_CC_dependencies_compiler_type=none
4795 if test "$am_compiler_list" = ""; then
4796 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4797 fi
4798 am__universal=false
4799 case " $depcc " in #(
4800 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4801 esac
4802
4803 for depmode in $am_compiler_list; do
4804 # Setup a source with many dependencies, because some compilers
4805 # like to wrap large dependency lists on column 80 (with \), and
4806 # we should not choose a depcomp mode which is confused by this.
4807 #
4808 # We need to recreate these files for each test, as the compiler may
4809 # overwrite some of them when testing with obscure command lines.
4810 # This happens at least with the AIX C compiler.
4811 : > sub/conftest.c
4812 for i in 1 2 3 4 5 6; do
4813 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4814 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4815 # Solaris 8's {/usr,}/bin/sh.
4816 touch sub/conftst$i.h
4817 done
4818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4819
4820 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4821 # mode. It turns out that the SunPro C++ compiler does not properly
4822 # handle `-M -o', and we need to detect this. Also, some Intel
4823 # versions had trouble with output in subdirs
4824 am__obj=sub/conftest.${OBJEXT-o}
4825 am__minus_obj="-o $am__obj"
4826 case $depmode in
4827 gcc)
4828 # This depmode causes a compiler race in universal mode.
4829 test "$am__universal" = false || continue
4830 ;;
4831 nosideeffect)
4832 # after this tag, mechanisms are not by side-effect, so they'll
4833 # only be used when explicitly requested
4834 if test "x$enable_dependency_tracking" = xyes; then
4835 continue
4836 else
4837 break
4838 fi
4839 ;;
4840 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4841 # This compiler won't grok `-c -o', but also, the minuso test has
4842 # not run yet. These depmodes are late enough in the game, and
4843 # so weak that their functioning should not be impacted.
4844 am__obj=conftest.${OBJEXT-o}
4845 am__minus_obj=
4846 ;;
4847 none) break ;;
4848 esac
4849 if depmode=$depmode \
4850 source=sub/conftest.c object=$am__obj \
4851 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4852 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4853 >/dev/null 2>conftest.err &&
4854 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4856 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4858 # icc doesn't choke on unknown options, it will just issue warnings
4859 # or remarks (even with -Werror). So we grep stderr for any message
4860 # that says an option was ignored or not supported.
4861 # When given -MP, icc 7.0 and 7.1 complain thusly:
4862 # icc: Command line warning: ignoring option '-M'; no argument required
4863 # The diagnosis changed in icc 8.0:
4864 # icc: Command line remark: option '-MP' not supported
4865 if (grep 'ignoring option' conftest.err ||
4866 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4867 am_cv_CC_dependencies_compiler_type=$depmode
4868 break
4869 fi
4870 fi
4871 done
4872
4873 cd ..
4874 rm -rf conftest.dir
4875 else
4876 am_cv_CC_dependencies_compiler_type=none
4877 fi
4878
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4881 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4882 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4883
4884 if
4885 test "x$enable_dependency_tracking" != xno \
4886 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4887 am__fastdepCC_TRUE=
4888 am__fastdepCC_FALSE='#'
4889 else
4890 am__fastdepCC_TRUE='#'
4891 am__fastdepCC_FALSE=
4892 fi
4893
4894
4895 if test "x$CC" != xcc; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4897 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4900 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4901 fi
4902 set dummy $CC; ac_cc=`$as_echo "$2" |
4903 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4904 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4909
4910 int
4911 main ()
4912 {
4913
4914 ;
4915 return 0;
4916 }
4917 _ACEOF
4918 # Make sure it works both with $CC and with simple cc.
4919 # We do the test twice because some compilers refuse to overwrite an
4920 # existing .o file with -o, though they will create one.
4921 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4922 rm -f conftest2.*
4923 if { { case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928 $as_echo "$ac_try_echo"; } >&5
4929 (eval "$ac_try") 2>&5
4930 ac_status=$?
4931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4932 test $ac_status = 0; } &&
4933 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4938 $as_echo "$ac_try_echo"; } >&5
4939 (eval "$ac_try") 2>&5
4940 ac_status=$?
4941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942 test $ac_status = 0; };
4943 then
4944 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4945 if test "x$CC" != xcc; then
4946 # Test first that cc exists at all.
4947 if { ac_try='cc -c conftest.$ac_ext >&5'
4948 { { case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4953 $as_echo "$ac_try_echo"; } >&5
4954 (eval "$ac_try") 2>&5
4955 ac_status=$?
4956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4957 test $ac_status = 0; }; }; then
4958 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4959 rm -f conftest2.*
4960 if { { case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963 esac
4964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4965 $as_echo "$ac_try_echo"; } >&5
4966 (eval "$ac_try") 2>&5
4967 ac_status=$?
4968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4969 test $ac_status = 0; } &&
4970 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972 *) ac_try_echo=$ac_try;;
4973 esac
4974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4975 $as_echo "$ac_try_echo"; } >&5
4976 (eval "$ac_try") 2>&5
4977 ac_status=$?
4978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4979 test $ac_status = 0; };
4980 then
4981 # cc works too.
4982 :
4983 else
4984 # cc exists but doesn't like -o.
4985 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4986 fi
4987 fi
4988 fi
4989 else
4990 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4991 fi
4992 rm -f core conftest*
4993
4994 fi
4995 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4997 $as_echo "yes" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5001
5002 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5003
5004 fi
5005
5006 # FIXME: we rely on the cache variable name because
5007 # there is no other way.
5008 set dummy $CC
5009 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5010 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5011 if test "$am_t" != yes; then
5012 # Losing compiler, so override with the script.
5013 # FIXME: It is wrong to rewrite CC.
5014 # But if we don't then we get into trouble of one sort or another.
5015 # A longer-term fix would be to have automake use am__CC in this case,
5016 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5017 CC="$am_aux_dir/compile $CC"
5018 fi
5019
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is clang" >&5
5022 $as_echo_n "checking whether $CC is clang... " >&6; }
5023
5024 case `pwd` in
5025 *\ * | *\ *)
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5027 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5028 esac
5029
5030
5031
5032 macro_version='2.4.2'
5033 macro_revision='1.3337'
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047 ltmain="$ac_aux_dir/ltmain.sh"
5048
5049 # Backslashify metacharacters that are still active within
5050 # double-quoted strings.
5051 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5052
5053 # Same as above, but do not quote variable references.
5054 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5055
5056 # Sed substitution to delay expansion of an escaped shell variable in a
5057 # double_quote_subst'ed string.
5058 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5059
5060 # Sed substitution to delay expansion of an escaped single quote.
5061 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5062
5063 # Sed substitution to avoid accidental globbing in evaled expressions
5064 no_glob_subst='s/\*/\\\*/g'
5065
5066 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5067 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5068 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5069
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5071 $as_echo_n "checking how to print strings... " >&6; }
5072 # Test print first, because it will be a builtin if present.
5073 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5074 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5075 ECHO='print -r --'
5076 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5077 ECHO='printf %s\n'
5078 else
5079 # Use this function as a fallback that always works.
5080 func_fallback_echo ()
5081 {
5082 eval 'cat <<_LTECHO_EOF
5083 $1
5084 _LTECHO_EOF'
5085 }
5086 ECHO='func_fallback_echo'
5087 fi
5088
5089 # func_echo_all arg...
5090 # Invoke $ECHO with all args, space-separated.
5091 func_echo_all ()
5092 {
5093 $ECHO ""
5094 }
5095
5096 case "$ECHO" in
5097 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5098 $as_echo "printf" >&6; } ;;
5099 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5100 $as_echo "print -r" >&6; } ;;
5101 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5102 $as_echo "cat" >&6; } ;;
5103 esac
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5119 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5120 if ${ac_cv_path_SED+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5124 for ac_i in 1 2 3 4 5 6 7; do
5125 ac_script="$ac_script$as_nl$ac_script"
5126 done
5127 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5128 { ac_script=; unset ac_script;}
5129 if test -z "$SED"; then
5130 ac_path_SED_found=false
5131 # Loop through the user's path and test for each of PROGNAME-LIST
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5134 do
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_prog in sed gsed; do
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5140 as_fn_executable_p "$ac_path_SED" || continue
5141 # Check for GNU ac_path_SED and select it if it is found.
5142 # Check for GNU $ac_path_SED
5143 case `"$ac_path_SED" --version 2>&1` in
5144 *GNU*)
5145 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5146 *)
5147 ac_count=0
5148 $as_echo_n 0123456789 >"conftest.in"
5149 while :
5150 do
5151 cat "conftest.in" "conftest.in" >"conftest.tmp"
5152 mv "conftest.tmp" "conftest.in"
5153 cp "conftest.in" "conftest.nl"
5154 $as_echo '' >> "conftest.nl"
5155 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5157 as_fn_arith $ac_count + 1 && ac_count=$as_val
5158 if test $ac_count -gt ${ac_path_SED_max-0}; then
5159 # Best one so far, save it but keep looking for a better one
5160 ac_cv_path_SED="$ac_path_SED"
5161 ac_path_SED_max=$ac_count
5162 fi
5163 # 10*(2^10) chars as input seems more than enough
5164 test $ac_count -gt 10 && break
5165 done
5166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5167 esac
5168
5169 $ac_path_SED_found && break 3
5170 done
5171 done
5172 done
5173 IFS=$as_save_IFS
5174 if test -z "$ac_cv_path_SED"; then
5175 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5176 fi
5177 else
5178 ac_cv_path_SED=$SED
5179 fi
5180
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5183 $as_echo "$ac_cv_path_SED" >&6; }
5184 SED="$ac_cv_path_SED"
5185 rm -f conftest.sed
5186
5187 test -z "$SED" && SED=sed
5188 Xsed="$SED -e 1s/^X//"
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5201 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5202 if ${ac_cv_path_GREP+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -z "$GREP"; then
5206 ac_path_GREP_found=false
5207 # Loop through the user's path and test for each of PROGNAME-LIST
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5210 do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_prog in grep ggrep; do
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5216 as_fn_executable_p "$ac_path_GREP" || continue
5217 # Check for GNU ac_path_GREP and select it if it is found.
5218 # Check for GNU $ac_path_GREP
5219 case `"$ac_path_GREP" --version 2>&1` in
5220 *GNU*)
5221 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5222 *)
5223 ac_count=0
5224 $as_echo_n 0123456789 >"conftest.in"
5225 while :
5226 do
5227 cat "conftest.in" "conftest.in" >"conftest.tmp"
5228 mv "conftest.tmp" "conftest.in"
5229 cp "conftest.in" "conftest.nl"
5230 $as_echo 'GREP' >> "conftest.nl"
5231 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5233 as_fn_arith $ac_count + 1 && ac_count=$as_val
5234 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5235 # Best one so far, save it but keep looking for a better one
5236 ac_cv_path_GREP="$ac_path_GREP"
5237 ac_path_GREP_max=$ac_count
5238 fi
5239 # 10*(2^10) chars as input seems more than enough
5240 test $ac_count -gt 10 && break
5241 done
5242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5243 esac
5244
5245 $ac_path_GREP_found && break 3
5246 done
5247 done
5248 done
5249 IFS=$as_save_IFS
5250 if test -z "$ac_cv_path_GREP"; then
5251 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5252 fi
5253 else
5254 ac_cv_path_GREP=$GREP
5255 fi
5256
5257 fi
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5259 $as_echo "$ac_cv_path_GREP" >&6; }
5260 GREP="$ac_cv_path_GREP"
5261
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5264 $as_echo_n "checking for egrep... " >&6; }
5265 if ${ac_cv_path_EGREP+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5269 then ac_cv_path_EGREP="$GREP -E"
5270 else
5271 if test -z "$EGREP"; then
5272 ac_path_EGREP_found=false
5273 # Loop through the user's path and test for each of PROGNAME-LIST
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_prog in egrep; do
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5282 as_fn_executable_p "$ac_path_EGREP" || continue
5283 # Check for GNU ac_path_EGREP and select it if it is found.
5284 # Check for GNU $ac_path_EGREP
5285 case `"$ac_path_EGREP" --version 2>&1` in
5286 *GNU*)
5287 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5288 *)
5289 ac_count=0
5290 $as_echo_n 0123456789 >"conftest.in"
5291 while :
5292 do
5293 cat "conftest.in" "conftest.in" >"conftest.tmp"
5294 mv "conftest.tmp" "conftest.in"
5295 cp "conftest.in" "conftest.nl"
5296 $as_echo 'EGREP' >> "conftest.nl"
5297 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5299 as_fn_arith $ac_count + 1 && ac_count=$as_val
5300 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5301 # Best one so far, save it but keep looking for a better one
5302 ac_cv_path_EGREP="$ac_path_EGREP"
5303 ac_path_EGREP_max=$ac_count
5304 fi
5305 # 10*(2^10) chars as input seems more than enough
5306 test $ac_count -gt 10 && break
5307 done
5308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5309 esac
5310
5311 $ac_path_EGREP_found && break 3
5312 done
5313 done
5314 done
5315 IFS=$as_save_IFS
5316 if test -z "$ac_cv_path_EGREP"; then
5317 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5318 fi
5319 else
5320 ac_cv_path_EGREP=$EGREP
5321 fi
5322
5323 fi
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5326 $as_echo "$ac_cv_path_EGREP" >&6; }
5327 EGREP="$ac_cv_path_EGREP"
5328
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5331 $as_echo_n "checking for fgrep... " >&6; }
5332 if ${ac_cv_path_FGREP+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5336 then ac_cv_path_FGREP="$GREP -F"
5337 else
5338 if test -z "$FGREP"; then
5339 ac_path_FGREP_found=false
5340 # Loop through the user's path and test for each of PROGNAME-LIST
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5343 do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_prog in fgrep; do
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5349 as_fn_executable_p "$ac_path_FGREP" || continue
5350 # Check for GNU ac_path_FGREP and select it if it is found.
5351 # Check for GNU $ac_path_FGREP
5352 case `"$ac_path_FGREP" --version 2>&1` in
5353 *GNU*)
5354 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5355 *)
5356 ac_count=0
5357 $as_echo_n 0123456789 >"conftest.in"
5358 while :
5359 do
5360 cat "conftest.in" "conftest.in" >"conftest.tmp"
5361 mv "conftest.tmp" "conftest.in"
5362 cp "conftest.in" "conftest.nl"
5363 $as_echo 'FGREP' >> "conftest.nl"
5364 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5366 as_fn_arith $ac_count + 1 && ac_count=$as_val
5367 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5368 # Best one so far, save it but keep looking for a better one
5369 ac_cv_path_FGREP="$ac_path_FGREP"
5370 ac_path_FGREP_max=$ac_count
5371 fi
5372 # 10*(2^10) chars as input seems more than enough
5373 test $ac_count -gt 10 && break
5374 done
5375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5376 esac
5377
5378 $ac_path_FGREP_found && break 3
5379 done
5380 done
5381 done
5382 IFS=$as_save_IFS
5383 if test -z "$ac_cv_path_FGREP"; then
5384 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5385 fi
5386 else
5387 ac_cv_path_FGREP=$FGREP
5388 fi
5389
5390 fi
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5393 $as_echo "$ac_cv_path_FGREP" >&6; }
5394 FGREP="$ac_cv_path_FGREP"
5395
5396
5397 test -z "$GREP" && GREP=grep
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 # Check whether --with-gnu-ld was given.
5418 if test "${with_gnu_ld+set}" = set; then :
5419 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5420 else
5421 with_gnu_ld=no
5422 fi
5423
5424 ac_prog=ld
5425 if test "$GCC" = yes; then
5426 # Check if gcc -print-prog-name=ld gives a path.
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5428 $as_echo_n "checking for ld used by $CC... " >&6; }
5429 case $host in
5430 *-*-mingw*)
5431 # gcc leaves a trailing carriage return which upsets mingw
5432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5433 *)
5434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5435 esac
5436 case $ac_prog in
5437 # Accept absolute paths.
5438 [\\/]* | ?:[\\/]*)
5439 re_direlt='/[^/][^/]*/\.\./'
5440 # Canonicalize the pathname of ld
5441 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5442 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5443 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5444 done
5445 test -z "$LD" && LD="$ac_prog"
5446 ;;
5447 "")
5448 # If it fails, then pretend we aren't using GCC.
5449 ac_prog=ld
5450 ;;
5451 *)
5452 # If it is relative, then search for the first ld in PATH.
5453 with_gnu_ld=unknown
5454 ;;
5455 esac
5456 elif test "$with_gnu_ld" = yes; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5458 $as_echo_n "checking for GNU ld... " >&6; }
5459 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5461 $as_echo_n "checking for non-GNU ld... " >&6; }
5462 fi
5463 if ${lt_cv_path_LD+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -z "$LD"; then
5467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5468 for ac_dir in $PATH; do
5469 IFS="$lt_save_ifs"
5470 test -z "$ac_dir" && ac_dir=.
5471 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5472 lt_cv_path_LD="$ac_dir/$ac_prog"
5473 # Check to see if the program is GNU ld. I'd rather use --version,
5474 # but apparently some variants of GNU ld only accept -v.
5475 # Break only if it was the GNU/non-GNU ld that we prefer.
5476 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5477 *GNU* | *'with BFD'*)
5478 test "$with_gnu_ld" != no && break
5479 ;;
5480 *)
5481 test "$with_gnu_ld" != yes && break
5482 ;;
5483 esac
5484 fi
5485 done
5486 IFS="$lt_save_ifs"
5487 else
5488 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5489 fi
5490 fi
5491
5492 LD="$lt_cv_path_LD"
5493 if test -n "$LD"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5495 $as_echo "$LD" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5502 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5503 if ${lt_cv_prog_gnu_ld+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5507 case `$LD -v 2>&1 </dev/null` in
5508 *GNU* | *'with BFD'*)
5509 lt_cv_prog_gnu_ld=yes
5510 ;;
5511 *)
5512 lt_cv_prog_gnu_ld=no
5513 ;;
5514 esac
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5517 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5518 with_gnu_ld=$lt_cv_prog_gnu_ld
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5529 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5530 if ${lt_cv_path_NM+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$NM"; then
5534 # Let the user override the test.
5535 lt_cv_path_NM="$NM"
5536 else
5537 lt_nm_to_check="${ac_tool_prefix}nm"
5538 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5539 lt_nm_to_check="$lt_nm_to_check nm"
5540 fi
5541 for lt_tmp_nm in $lt_nm_to_check; do
5542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5543 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5544 IFS="$lt_save_ifs"
5545 test -z "$ac_dir" && ac_dir=.
5546 tmp_nm="$ac_dir/$lt_tmp_nm"
5547 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5548 # Check to see if the nm accepts a BSD-compat flag.
5549 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5550 # nm: unknown option "B" ignored
5551 # Tru64's nm complains that /dev/null is an invalid object file
5552 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5553 */dev/null* | *'Invalid file or object type'*)
5554 lt_cv_path_NM="$tmp_nm -B"
5555 break
5556 ;;
5557 *)
5558 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5559 */dev/null*)
5560 lt_cv_path_NM="$tmp_nm -p"
5561 break
5562 ;;
5563 *)
5564 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5565 continue # so that we can try to find one that supports BSD flags
5566 ;;
5567 esac
5568 ;;
5569 esac
5570 fi
5571 done
5572 IFS="$lt_save_ifs"
5573 done
5574 : ${lt_cv_path_NM=no}
5575 fi
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5578 $as_echo "$lt_cv_path_NM" >&6; }
5579 if test "$lt_cv_path_NM" != "no"; then
5580 NM="$lt_cv_path_NM"
5581 else
5582 # Didn't find any BSD compatible name lister, look for dumpbin.
5583 if test -n "$DUMPBIN"; then :
5584 # Let the user override the test.
5585 else
5586 if test -n "$ac_tool_prefix"; then
5587 for ac_prog in dumpbin "link -dump"
5588 do
5589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_prog_DUMPBIN+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if test -n "$DUMPBIN"; then
5597 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5609 fi
5610 done
5611 done
5612 IFS=$as_save_IFS
5613
5614 fi
5615 fi
5616 DUMPBIN=$ac_cv_prog_DUMPBIN
5617 if test -n "$DUMPBIN"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5619 $as_echo "$DUMPBIN" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 fi
5624
5625
5626 test -n "$DUMPBIN" && break
5627 done
5628 fi
5629 if test -z "$DUMPBIN"; then
5630 ac_ct_DUMPBIN=$DUMPBIN
5631 for ac_prog in dumpbin "link -dump"
5632 do
5633 # Extract the first word of "$ac_prog", so it can be a program name with args.
5634 set dummy $ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$ac_ct_DUMPBIN"; then
5641 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5661 if test -n "$ac_ct_DUMPBIN"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5663 $as_echo "$ac_ct_DUMPBIN" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 test -n "$ac_ct_DUMPBIN" && break
5671 done
5672
5673 if test "x$ac_ct_DUMPBIN" = x; then
5674 DUMPBIN=":"
5675 else
5676 case $cross_compiling:$ac_tool_warned in
5677 yes:)
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5680 ac_tool_warned=yes ;;
5681 esac
5682 DUMPBIN=$ac_ct_DUMPBIN
5683 fi
5684 fi
5685
5686 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5687 *COFF*)
5688 DUMPBIN="$DUMPBIN -symbols"
5689 ;;
5690 *)
5691 DUMPBIN=:
5692 ;;
5693 esac
5694 fi
5695
5696 if test "$DUMPBIN" != ":"; then
5697 NM="$DUMPBIN"
5698 fi
5699 fi
5700 test -z "$NM" && NM=nm
5701
5702
5703
5704
5705
5706
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5708 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5709 if ${lt_cv_nm_interface+:} false; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 lt_cv_nm_interface="BSD nm"
5713 echo "int some_variable = 0;" > conftest.$ac_ext
5714 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5715 (eval "$ac_compile" 2>conftest.err)
5716 cat conftest.err >&5
5717 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5718 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5719 cat conftest.err >&5
5720 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5721 cat conftest.out >&5
5722 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5723 lt_cv_nm_interface="MS dumpbin"
5724 fi
5725 rm -f conftest*
5726 fi
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5728 $as_echo "$lt_cv_nm_interface" >&6; }
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5731 $as_echo_n "checking whether ln -s works... " >&6; }
5732 LN_S=$as_ln_s
5733 if test "$LN_S" = "ln -s"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735 $as_echo "yes" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5738 $as_echo "no, using $LN_S" >&6; }
5739 fi
5740
5741 # find the maximum length of command line arguments
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5743 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5744 if ${lt_cv_sys_max_cmd_len+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 i=0
5748 teststring="ABCD"
5749
5750 case $build_os in
5751 msdosdjgpp*)
5752 # On DJGPP, this test can blow up pretty badly due to problems in libc
5753 # (any single argument exceeding 2000 bytes causes a buffer overrun
5754 # during glob expansion). Even if it were fixed, the result of this
5755 # check would be larger than it should be.
5756 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5757 ;;
5758
5759 gnu*)
5760 # Under GNU Hurd, this test is not required because there is
5761 # no limit to the length of command line arguments.
5762 # Libtool will interpret -1 as no limit whatsoever
5763 lt_cv_sys_max_cmd_len=-1;
5764 ;;
5765
5766 cygwin* | mingw* | cegcc*)
5767 # On Win9x/ME, this test blows up -- it succeeds, but takes
5768 # about 5 minutes as the teststring grows exponentially.
5769 # Worse, since 9x/ME are not pre-emptively multitasking,
5770 # you end up with a "frozen" computer, even though with patience
5771 # the test eventually succeeds (with a max line length of 256k).
5772 # Instead, let's just punt: use the minimum linelength reported by
5773 # all of the supported platforms: 8192 (on NT/2K/XP).
5774 lt_cv_sys_max_cmd_len=8192;
5775 ;;
5776
5777 mint*)
5778 # On MiNT this can take a long time and run out of memory.
5779 lt_cv_sys_max_cmd_len=8192;
5780 ;;
5781
5782 amigaos*)
5783 # On AmigaOS with pdksh, this test takes hours, literally.
5784 # So we just punt and use a minimum line length of 8192.
5785 lt_cv_sys_max_cmd_len=8192;
5786 ;;
5787
5788 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5789 # This has been around since 386BSD, at least. Likely further.
5790 if test -x /sbin/sysctl; then
5791 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5792 elif test -x /usr/sbin/sysctl; then
5793 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5794 else
5795 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5796 fi
5797 # And add a safety zone
5798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5800 ;;
5801
5802 interix*)
5803 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5804 lt_cv_sys_max_cmd_len=196608
5805 ;;
5806
5807 os2*)
5808 # The test takes a long time on OS/2.
5809 lt_cv_sys_max_cmd_len=8192
5810 ;;
5811
5812 osf*)
5813 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5814 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5815 # nice to cause kernel panics so lets avoid the loop below.
5816 # First set a reasonable default.
5817 lt_cv_sys_max_cmd_len=16384
5818 #
5819 if test -x /sbin/sysconfig; then
5820 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5821 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5822 esac
5823 fi
5824 ;;
5825 sco3.2v5*)
5826 lt_cv_sys_max_cmd_len=102400
5827 ;;
5828 sysv5* | sco5v6* | sysv4.2uw2*)
5829 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5830 if test -n "$kargmax"; then
5831 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5832 else
5833 lt_cv_sys_max_cmd_len=32768
5834 fi
5835 ;;
5836 *)
5837 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5838 if test -n "$lt_cv_sys_max_cmd_len"; then
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5841 else
5842 # Make teststring a little bigger before we do anything with it.
5843 # a 1K string should be a reasonable start.
5844 for i in 1 2 3 4 5 6 7 8 ; do
5845 teststring=$teststring$teststring
5846 done
5847 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5848 # If test is not a shell built-in, we'll probably end up computing a
5849 # maximum length that is only half of the actual maximum length, but
5850 # we can't tell.
5851 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5852 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5853 test $i != 17 # 1/2 MB should be enough
5854 do
5855 i=`expr $i + 1`
5856 teststring=$teststring$teststring
5857 done
5858 # Only check the string length outside the loop.
5859 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5860 teststring=
5861 # Add a significant safety factor because C++ compilers can tack on
5862 # massive amounts of additional arguments before passing them to the
5863 # linker. It appears as though 1/2 is a usable value.
5864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5865 fi
5866 ;;
5867 esac
5868
5869 fi
5870
5871 if test -n $lt_cv_sys_max_cmd_len ; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5873 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5876 $as_echo "none" >&6; }
5877 fi
5878 max_cmd_len=$lt_cv_sys_max_cmd_len
5879
5880
5881
5882
5883
5884
5885 : ${CP="cp -f"}
5886 : ${MV="mv -f"}
5887 : ${RM="rm -f"}
5888
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5890 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5891 # Try some XSI features
5892 xsi_shell=no
5893 ( _lt_dummy="a/b/c"
5894 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5895 = c,a/b,b/c, \
5896 && eval 'test $(( 1 + 1 )) -eq 2 \
5897 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5898 && xsi_shell=yes
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5900 $as_echo "$xsi_shell" >&6; }
5901
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5904 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5905 lt_shell_append=no
5906 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5907 >/dev/null 2>&1 \
5908 && lt_shell_append=yes
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5910 $as_echo "$lt_shell_append" >&6; }
5911
5912
5913 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5914 lt_unset=unset
5915 else
5916 lt_unset=false
5917 fi
5918
5919
5920
5921
5922
5923 # test EBCDIC or ASCII
5924 case `echo X|tr X '\101'` in
5925 A) # ASCII based system
5926 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5927 lt_SP2NL='tr \040 \012'
5928 lt_NL2SP='tr \015\012 \040\040'
5929 ;;
5930 *) # EBCDIC based system
5931 lt_SP2NL='tr \100 \n'
5932 lt_NL2SP='tr \r\n \100\100'
5933 ;;
5934 esac
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5945 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5946 if ${lt_cv_to_host_file_cmd+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 case $host in
5950 *-*-mingw* )
5951 case $build in
5952 *-*-mingw* ) # actually msys
5953 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5954 ;;
5955 *-*-cygwin* )
5956 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5957 ;;
5958 * ) # otherwise, assume *nix
5959 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5960 ;;
5961 esac
5962 ;;
5963 *-*-cygwin* )
5964 case $build in
5965 *-*-mingw* ) # actually msys
5966 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5967 ;;
5968 *-*-cygwin* )
5969 lt_cv_to_host_file_cmd=func_convert_file_noop
5970 ;;
5971 * ) # otherwise, assume *nix
5972 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5973 ;;
5974 esac
5975 ;;
5976 * ) # unhandled hosts (and "normal" native builds)
5977 lt_cv_to_host_file_cmd=func_convert_file_noop
5978 ;;
5979 esac
5980
5981 fi
5982
5983 to_host_file_cmd=$lt_cv_to_host_file_cmd
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5985 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5986
5987
5988
5989
5990
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5992 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5993 if ${lt_cv_to_tool_file_cmd+:} false; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 #assume ordinary cross tools, or native build.
5997 lt_cv_to_tool_file_cmd=func_convert_file_noop
5998 case $host in
5999 *-*-mingw* )
6000 case $build in
6001 *-*-mingw* ) # actually msys
6002 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6003 ;;
6004 esac
6005 ;;
6006 esac
6007
6008 fi
6009
6010 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6012 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6013
6014
6015
6016
6017
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6019 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6020 if ${lt_cv_ld_reload_flag+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 lt_cv_ld_reload_flag='-r'
6024 fi
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6026 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6027 reload_flag=$lt_cv_ld_reload_flag
6028 case $reload_flag in
6029 "" | " "*) ;;
6030 *) reload_flag=" $reload_flag" ;;
6031 esac
6032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6033 case $host_os in
6034 cygwin* | mingw* | pw32* | cegcc*)
6035 if test "$GCC" != yes; then
6036 reload_cmds=false
6037 fi
6038 ;;
6039 darwin*)
6040 if test "$GCC" = yes; then
6041 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6042 else
6043 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6044 fi
6045 ;;
6046 esac
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056 if test -n "$ac_tool_prefix"; then
6057 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6058 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if ${ac_cv_prog_OBJDUMP+:} false; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 if test -n "$OBJDUMP"; then
6065 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6069 do
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6074 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 break 2
6077 fi
6078 done
6079 done
6080 IFS=$as_save_IFS
6081
6082 fi
6083 fi
6084 OBJDUMP=$ac_cv_prog_OBJDUMP
6085 if test -n "$OBJDUMP"; then
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6087 $as_echo "$OBJDUMP" >&6; }
6088 else
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 $as_echo "no" >&6; }
6091 fi
6092
6093
6094 fi
6095 if test -z "$ac_cv_prog_OBJDUMP"; then
6096 ac_ct_OBJDUMP=$OBJDUMP
6097 # Extract the first word of "objdump", so it can be a program name with args.
6098 set dummy objdump; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 if test -n "$ac_ct_OBJDUMP"; then
6105 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118 done
6119 done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6125 if test -n "$ac_ct_OBJDUMP"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6127 $as_echo "$ac_ct_OBJDUMP" >&6; }
6128 else
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133 if test "x$ac_ct_OBJDUMP" = x; then
6134 OBJDUMP="false"
6135 else
6136 case $cross_compiling:$ac_tool_warned in
6137 yes:)
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6140 ac_tool_warned=yes ;;
6141 esac
6142 OBJDUMP=$ac_ct_OBJDUMP
6143 fi
6144 else
6145 OBJDUMP="$ac_cv_prog_OBJDUMP"
6146 fi
6147
6148 test -z "$OBJDUMP" && OBJDUMP=objdump
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6159 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6160 if ${lt_cv_deplibs_check_method+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 lt_cv_file_magic_cmd='$MAGIC_CMD'
6164 lt_cv_file_magic_test_file=
6165 lt_cv_deplibs_check_method='unknown'
6166 # Need to set the preceding variable on all platforms that support
6167 # interlibrary dependencies.
6168 # 'none' -- dependencies not supported.
6169 # `unknown' -- same as none, but documents that we really don't know.
6170 # 'pass_all' -- all dependencies passed with no checks.
6171 # 'test_compile' -- check by making test program.
6172 # 'file_magic [[regex]]' -- check by looking for files in library path
6173 # which responds to the $file_magic_cmd with a given extended regex.
6174 # If you have `file' or equivalent on your system and you're not sure
6175 # whether `pass_all' will *always* work, you probably want this one.
6176
6177 case $host_os in
6178 aix[4-9]*)
6179 lt_cv_deplibs_check_method=pass_all
6180 ;;
6181
6182 beos*)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
6185
6186 bsdi[45]*)
6187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6188 lt_cv_file_magic_cmd='/usr/bin/file -L'
6189 lt_cv_file_magic_test_file=/shlib/libc.so
6190 ;;
6191
6192 cygwin*)
6193 # func_win32_libid is a shell function defined in ltmain.sh
6194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6195 lt_cv_file_magic_cmd='func_win32_libid'
6196 ;;
6197
6198 mingw* | pw32*)
6199 # Base MSYS/MinGW do not provide the 'file' command needed by
6200 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6201 # unless we find 'file', for example because we are cross-compiling.
6202 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6203 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6205 lt_cv_file_magic_cmd='func_win32_libid'
6206 else
6207 # Keep this pattern in sync with the one in func_win32_libid.
6208 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6209 lt_cv_file_magic_cmd='$OBJDUMP -f'
6210 fi
6211 ;;
6212
6213 cegcc*)
6214 # use the weaker test based on 'objdump'. See mingw*.
6215 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6216 lt_cv_file_magic_cmd='$OBJDUMP -f'
6217 ;;
6218
6219 darwin* | rhapsody*)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222
6223 freebsd* | dragonfly*)
6224 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6225 case $host_cpu in
6226 i*86 )
6227 # Not sure whether the presence of OpenBSD here was a mistake.
6228 # Let's accept both of them until this is cleared up.
6229 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6230 lt_cv_file_magic_cmd=/usr/bin/file
6231 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6232 ;;
6233 esac
6234 else
6235 lt_cv_deplibs_check_method=pass_all
6236 fi
6237 ;;
6238
6239 haiku*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 hpux10.20* | hpux11*)
6244 lt_cv_file_magic_cmd=/usr/bin/file
6245 case $host_cpu in
6246 ia64*)
6247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6248 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6249 ;;
6250 hppa*64*)
6251 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]'
6252 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6253 ;;
6254 *)
6255 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6256 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6257 ;;
6258 esac
6259 ;;
6260
6261 interix[3-9]*)
6262 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6264 ;;
6265
6266 irix5* | irix6* | nonstopux*)
6267 case $LD in
6268 *-32|*"-32 ") libmagic=32-bit;;
6269 *-n32|*"-n32 ") libmagic=N32;;
6270 *-64|*"-64 ") libmagic=64-bit;;
6271 *) libmagic=never-match;;
6272 esac
6273 lt_cv_deplibs_check_method=pass_all
6274 ;;
6275
6276 # This must be glibc/ELF.
6277 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280
6281 netbsd* | netbsdelf*-gnu)
6282 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6284 else
6285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6286 fi
6287 ;;
6288
6289 newos6*)
6290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6291 lt_cv_file_magic_cmd=/usr/bin/file
6292 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6293 ;;
6294
6295 *nto* | *qnx*)
6296 lt_cv_deplibs_check_method=pass_all
6297 ;;
6298
6299 openbsd*)
6300 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6302 else
6303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6304 fi
6305 ;;
6306
6307 osf3* | osf4* | osf5*)
6308 lt_cv_deplibs_check_method=pass_all
6309 ;;
6310
6311 rdos*)
6312 lt_cv_deplibs_check_method=pass_all
6313 ;;
6314
6315 solaris*)
6316 lt_cv_deplibs_check_method=pass_all
6317 ;;
6318
6319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6320 lt_cv_deplibs_check_method=pass_all
6321 ;;
6322
6323 sysv4 | sysv4.3*)
6324 case $host_vendor in
6325 motorola)
6326 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]'
6327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6328 ;;
6329 ncr)
6330 lt_cv_deplibs_check_method=pass_all
6331 ;;
6332 sequent)
6333 lt_cv_file_magic_cmd='/bin/file'
6334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6335 ;;
6336 sni)
6337 lt_cv_file_magic_cmd='/bin/file'
6338 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6339 lt_cv_file_magic_test_file=/lib/libc.so
6340 ;;
6341 siemens)
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
6344 pc)
6345 lt_cv_deplibs_check_method=pass_all
6346 ;;
6347 esac
6348 ;;
6349
6350 tpf*)
6351 lt_cv_deplibs_check_method=pass_all
6352 ;;
6353 esac
6354
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6357 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6358
6359 file_magic_glob=
6360 want_nocaseglob=no
6361 if test "$build" = "$host"; then
6362 case $host_os in
6363 mingw* | pw32*)
6364 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6365 want_nocaseglob=yes
6366 else
6367 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6368 fi
6369 ;;
6370 esac
6371 fi
6372
6373 file_magic_cmd=$lt_cv_file_magic_cmd
6374 deplibs_check_method=$lt_cv_deplibs_check_method
6375 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_DLLTOOL+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 if test -n "$DLLTOOL"; then
6407 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6419 fi
6420 done
6421 done
6422 IFS=$as_save_IFS
6423
6424 fi
6425 fi
6426 DLLTOOL=$ac_cv_prog_DLLTOOL
6427 if test -n "$DLLTOOL"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6429 $as_echo "$DLLTOOL" >&6; }
6430 else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434
6435
6436 fi
6437 if test -z "$ac_cv_prog_DLLTOOL"; then
6438 ac_ct_DLLTOOL=$DLLTOOL
6439 # Extract the first word of "dlltool", so it can be a program name with args.
6440 set dummy dlltool; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$ac_ct_DLLTOOL"; then
6447 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460 done
6461 done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6467 if test -n "$ac_ct_DLLTOOL"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6469 $as_echo "$ac_ct_DLLTOOL" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475 if test "x$ac_ct_DLLTOOL" = x; then
6476 DLLTOOL="false"
6477 else
6478 case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484 DLLTOOL=$ac_ct_DLLTOOL
6485 fi
6486 else
6487 DLLTOOL="$ac_cv_prog_DLLTOOL"
6488 fi
6489
6490 test -z "$DLLTOOL" && DLLTOOL=dlltool
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6502 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6503 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 lt_cv_sharedlib_from_linklib_cmd='unknown'
6507
6508 case $host_os in
6509 cygwin* | mingw* | pw32* | cegcc*)
6510 # two different shell functions defined in ltmain.sh
6511 # decide which to use based on capabilities of $DLLTOOL
6512 case `$DLLTOOL --help 2>&1` in
6513 *--identify-strict*)
6514 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6515 ;;
6516 *)
6517 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6518 ;;
6519 esac
6520 ;;
6521 *)
6522 # fallback: assume linklib IS sharedlib
6523 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6524 ;;
6525 esac
6526
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6529 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6530 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6531 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6532
6533
6534
6535
6536
6537
6538
6539 if test -n "$ac_tool_prefix"; then
6540 for ac_prog in ar
6541 do
6542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_AR+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 if test -n "$AR"; then
6550 ac_cv_prog_AR="$AR" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 AR=$ac_cv_prog_AR
6570 if test -n "$AR"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6572 $as_echo "$AR" >&6; }
6573 else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578
6579 test -n "$AR" && break
6580 done
6581 fi
6582 if test -z "$AR"; then
6583 ac_ct_AR=$AR
6584 for ac_prog in ar
6585 do
6586 # Extract the first word of "$ac_prog", so it can be a program name with args.
6587 set dummy $ac_prog; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 if test -n "$ac_ct_AR"; then
6594 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_ac_ct_AR="$ac_prog"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6614 if test -n "$ac_ct_AR"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6616 $as_echo "$ac_ct_AR" >&6; }
6617 else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622
6623 test -n "$ac_ct_AR" && break
6624 done
6625
6626 if test "x$ac_ct_AR" = x; then
6627 AR="false"
6628 else
6629 case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633 ac_tool_warned=yes ;;
6634 esac
6635 AR=$ac_ct_AR
6636 fi
6637 fi
6638
6639 : ${AR=ar}
6640 : ${AR_FLAGS=cru}
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6653 $as_echo_n "checking for archiver @FILE support... " >&6; }
6654 if ${lt_cv_ar_at_file+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 lt_cv_ar_at_file=no
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660
6661 int
6662 main ()
6663 {
6664
6665 ;
6666 return 0;
6667 }
6668 _ACEOF
6669 if ac_fn_c_try_compile "$LINENO"; then :
6670 echo conftest.$ac_objext > conftest.lst
6671 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6673 (eval $lt_ar_try) 2>&5
6674 ac_status=$?
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; }
6677 if test "$ac_status" -eq 0; then
6678 # Ensure the archiver fails upon bogus file names.
6679 rm -f conftest.$ac_objext libconftest.a
6680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6681 (eval $lt_ar_try) 2>&5
6682 ac_status=$?
6683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684 test $ac_status = 0; }
6685 if test "$ac_status" -ne 0; then
6686 lt_cv_ar_at_file=@
6687 fi
6688 fi
6689 rm -f conftest.* libconftest.a
6690
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6696 $as_echo "$lt_cv_ar_at_file" >&6; }
6697
6698 if test "x$lt_cv_ar_at_file" = xno; then
6699 archiver_list_spec=
6700 else
6701 archiver_list_spec=$lt_cv_ar_at_file
6702 fi
6703
6704
6705
6706
6707
6708
6709
6710 if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6712 set dummy ${ac_tool_prefix}strip; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if ${ac_cv_prog_STRIP+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 if test -n "$STRIP"; then
6719 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736 fi
6737 fi
6738 STRIP=$ac_cv_prog_STRIP
6739 if test -n "$STRIP"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6741 $as_echo "$STRIP" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6746
6747
6748 fi
6749 if test -z "$ac_cv_prog_STRIP"; then
6750 ac_ct_STRIP=$STRIP
6751 # Extract the first word of "strip", so it can be a program name with args.
6752 set dummy strip; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if test -n "$ac_ct_STRIP"; then
6759 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_ac_ct_STRIP="strip"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6779 if test -n "$ac_ct_STRIP"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6781 $as_echo "$ac_ct_STRIP" >&6; }
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6785 fi
6786
6787 if test "x$ac_ct_STRIP" = x; then
6788 STRIP=":"
6789 else
6790 case $cross_compiling:$ac_tool_warned in
6791 yes:)
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794 ac_tool_warned=yes ;;
6795 esac
6796 STRIP=$ac_ct_STRIP
6797 fi
6798 else
6799 STRIP="$ac_cv_prog_STRIP"
6800 fi
6801
6802 test -z "$STRIP" && STRIP=:
6803
6804
6805
6806
6807
6808
6809 if test -n "$ac_tool_prefix"; then
6810 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if ${ac_cv_prog_RANLIB+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 if test -n "$RANLIB"; then
6818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6827 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835 fi
6836 fi
6837 RANLIB=$ac_cv_prog_RANLIB
6838 if test -n "$RANLIB"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6840 $as_echo "$RANLIB" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 $as_echo "no" >&6; }
6844 fi
6845
6846
6847 fi
6848 if test -z "$ac_cv_prog_RANLIB"; then
6849 ac_ct_RANLIB=$RANLIB
6850 # Extract the first word of "ranlib", so it can be a program name with args.
6851 set dummy ranlib; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 if test -n "$ac_ct_RANLIB"; then
6858 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867 ac_cv_prog_ac_ct_RANLIB="ranlib"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6878 if test -n "$ac_ct_RANLIB"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6880 $as_echo "$ac_ct_RANLIB" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885
6886 if test "x$ac_ct_RANLIB" = x; then
6887 RANLIB=":"
6888 else
6889 case $cross_compiling:$ac_tool_warned in
6890 yes:)
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 ac_tool_warned=yes ;;
6894 esac
6895 RANLIB=$ac_ct_RANLIB
6896 fi
6897 else
6898 RANLIB="$ac_cv_prog_RANLIB"
6899 fi
6900
6901 test -z "$RANLIB" && RANLIB=:
6902
6903
6904
6905
6906
6907
6908 # Determine commands to create old-style static archives.
6909 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6910 old_postinstall_cmds='chmod 644 $oldlib'
6911 old_postuninstall_cmds=
6912
6913 if test -n "$RANLIB"; then
6914 case $host_os in
6915 openbsd*)
6916 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6917 ;;
6918 *)
6919 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6920 ;;
6921 esac
6922 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6923 fi
6924
6925 case $host_os in
6926 darwin*)
6927 lock_old_archive_extraction=yes ;;
6928 *)
6929 lock_old_archive_extraction=no ;;
6930 esac
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970 # If no C compiler was specified, use CC.
6971 LTCC=${LTCC-"$CC"}
6972
6973 # If no C compiler flags were specified, use CFLAGS.
6974 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6975
6976 # Allow CC to be a program name with arguments.
6977 compiler=$CC
6978
6979
6980 # Check for command to grab the raw symbol name followed by C symbol from nm.
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6982 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6983 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986
6987 # These are sane defaults that work on at least a few old systems.
6988 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6989
6990 # Character class describing NM global symbol codes.
6991 symcode='[BCDEGRST]'
6992
6993 # Regexp to match symbols that can be accessed directly from C.
6994 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6995
6996 # Define system-specific variables.
6997 case $host_os in
6998 aix*)
6999 symcode='[BCDT]'
7000 ;;
7001 cygwin* | mingw* | pw32* | cegcc*)
7002 symcode='[ABCDGISTW]'
7003 ;;
7004 hpux*)
7005 if test "$host_cpu" = ia64; then
7006 symcode='[ABCDEGRST]'
7007 fi
7008 ;;
7009 irix* | nonstopux*)
7010 symcode='[BCDEGRST]'
7011 ;;
7012 osf*)
7013 symcode='[BCDEGQRST]'
7014 ;;
7015 solaris*)
7016 symcode='[BDRT]'
7017 ;;
7018 sco3.2v5*)
7019 symcode='[DT]'
7020 ;;
7021 sysv4.2uw2*)
7022 symcode='[DT]'
7023 ;;
7024 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7025 symcode='[ABDT]'
7026 ;;
7027 sysv4)
7028 symcode='[DFNSTU]'
7029 ;;
7030 esac
7031
7032 # If we're using GNU nm, then use its standard symbol codes.
7033 case `$NM -V 2>&1` in
7034 *GNU* | *'with BFD'*)
7035 symcode='[ABCDGIRSTW]' ;;
7036 esac
7037
7038 # Transform an extracted symbol line into a proper C declaration.
7039 # Some systems (esp. on ia64) link data and code symbols differently,
7040 # so use this general approach.
7041 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7042
7043 # Transform an extracted symbol line into symbol name and symbol address
7044 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7045 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'"
7046
7047 # Handle CRLF in mingw tool chain
7048 opt_cr=
7049 case $build_os in
7050 mingw*)
7051 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7052 ;;
7053 esac
7054
7055 # Try without a prefix underscore, then with it.
7056 for ac_symprfx in "" "_"; do
7057
7058 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7059 symxfrm="\\1 $ac_symprfx\\2 \\2"
7060
7061 # Write the raw and C identifiers.
7062 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7063 # Fake it for dumpbin and say T for any non-static function
7064 # and D for any global variable.
7065 # Also find C++ and __fastcall symbols from MSVC++,
7066 # which start with @ or ?.
7067 lt_cv_sys_global_symbol_pipe="$AWK '"\
7068 " {last_section=section; section=\$ 3};"\
7069 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7070 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7071 " \$ 0!~/External *\|/{next};"\
7072 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7073 " {if(hide[section]) next};"\
7074 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7075 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7076 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7077 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7078 " ' prfx=^$ac_symprfx"
7079 else
7080 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7081 fi
7082 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7083
7084 # Check to see that the pipe works correctly.
7085 pipe_works=no
7086
7087 rm -f conftest*
7088 cat > conftest.$ac_ext <<_LT_EOF
7089 #ifdef __cplusplus
7090 extern "C" {
7091 #endif
7092 char nm_test_var;
7093 void nm_test_func(void);
7094 void nm_test_func(void){}
7095 #ifdef __cplusplus
7096 }
7097 #endif
7098 int main(){nm_test_var='a';nm_test_func();return(0);}
7099 _LT_EOF
7100
7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7102 (eval $ac_compile) 2>&5
7103 ac_status=$?
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 # Now try to grab the symbols.
7107 nlist=conftest.nm
7108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7109 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7110 ac_status=$?
7111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112 test $ac_status = 0; } && test -s "$nlist"; then
7113 # Try sorting and uniquifying the output.
7114 if sort "$nlist" | uniq > "$nlist"T; then
7115 mv -f "$nlist"T "$nlist"
7116 else
7117 rm -f "$nlist"T
7118 fi
7119
7120 # Make sure that we snagged all the symbols we need.
7121 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7122 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7123 cat <<_LT_EOF > conftest.$ac_ext
7124 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7125 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7126 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7127 relocations are performed -- see ld's documentation on pseudo-relocs. */
7128 # define LT_DLSYM_CONST
7129 #elif defined(__osf__)
7130 /* This system does not cope well with relocations in const data. */
7131 # define LT_DLSYM_CONST
7132 #else
7133 # define LT_DLSYM_CONST const
7134 #endif
7135
7136 #ifdef __cplusplus
7137 extern "C" {
7138 #endif
7139
7140 _LT_EOF
7141 # Now generate the symbol file.
7142 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7143
7144 cat <<_LT_EOF >> conftest.$ac_ext
7145
7146 /* The mapping between symbol names and symbols. */
7147 LT_DLSYM_CONST struct {
7148 const char *name;
7149 void *address;
7150 }
7151 lt__PROGRAM__LTX_preloaded_symbols[] =
7152 {
7153 { "@PROGRAM@", (void *) 0 },
7154 _LT_EOF
7155 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7156 cat <<\_LT_EOF >> conftest.$ac_ext
7157 {0, (void *) 0}
7158 };
7159
7160 /* This works around a problem in FreeBSD linker */
7161 #ifdef FREEBSD_WORKAROUND
7162 static const void *lt_preloaded_setup() {
7163 return lt__PROGRAM__LTX_preloaded_symbols;
7164 }
7165 #endif
7166
7167 #ifdef __cplusplus
7168 }
7169 #endif
7170 _LT_EOF
7171 # Now try linking the two files.
7172 mv conftest.$ac_objext conftstm.$ac_objext
7173 lt_globsym_save_LIBS=$LIBS
7174 lt_globsym_save_CFLAGS=$CFLAGS
7175 LIBS="conftstm.$ac_objext"
7176 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7178 (eval $ac_link) 2>&5
7179 ac_status=$?
7180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7181 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7182 pipe_works=yes
7183 fi
7184 LIBS=$lt_globsym_save_LIBS
7185 CFLAGS=$lt_globsym_save_CFLAGS
7186 else
7187 echo "cannot find nm_test_func in $nlist" >&5
7188 fi
7189 else
7190 echo "cannot find nm_test_var in $nlist" >&5
7191 fi
7192 else
7193 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7194 fi
7195 else
7196 echo "$progname: failed program was:" >&5
7197 cat conftest.$ac_ext >&5
7198 fi
7199 rm -rf conftest* conftst*
7200
7201 # Do not use the global_symbol_pipe unless it works.
7202 if test "$pipe_works" = yes; then
7203 break
7204 else
7205 lt_cv_sys_global_symbol_pipe=
7206 fi
7207 done
7208
7209 fi
7210
7211 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7212 lt_cv_sys_global_symbol_to_cdecl=
7213 fi
7214 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7216 $as_echo "failed" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7219 $as_echo "ok" >&6; }
7220 fi
7221
7222 # Response file support.
7223 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7224 nm_file_list_spec='@'
7225 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7226 nm_file_list_spec='@'
7227 fi
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7256 $as_echo_n "checking for sysroot... " >&6; }
7257
7258 # Check whether --with-sysroot was given.
7259 if test "${with_sysroot+set}" = set; then :
7260 withval=$with_sysroot;
7261 else
7262 with_sysroot=no
7263 fi
7264
7265
7266 lt_sysroot=
7267 case ${with_sysroot} in #(
7268 yes)
7269 if test "$GCC" = yes; then
7270 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7271 fi
7272 ;; #(
7273 /*)
7274 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7275 ;; #(
7276 no|'')
7277 ;; #(
7278 *)
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7280 $as_echo "${with_sysroot}" >&6; }
7281 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7282 ;;
7283 esac
7284
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7286 $as_echo "${lt_sysroot:-no}" >&6; }
7287
7288
7289
7290
7291
7292 # Check whether --enable-libtool-lock was given.
7293 if test "${enable_libtool_lock+set}" = set; then :
7294 enableval=$enable_libtool_lock;
7295 fi
7296
7297 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7298
7299 # Some flags need to be propagated to the compiler or linker for good
7300 # libtool support.
7301 case $host in
7302 ia64-*-hpux*)
7303 # Find out which ABI we are using.
7304 echo 'int i;' > conftest.$ac_ext
7305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7306 (eval $ac_compile) 2>&5
7307 ac_status=$?
7308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7309 test $ac_status = 0; }; then
7310 case `/usr/bin/file conftest.$ac_objext` in
7311 *ELF-32*)
7312 HPUX_IA64_MODE="32"
7313 ;;
7314 *ELF-64*)
7315 HPUX_IA64_MODE="64"
7316 ;;
7317 esac
7318 fi
7319 rm -rf conftest*
7320 ;;
7321 *-*-irix6*)
7322 # Find out which ABI we are using.
7323 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7325 (eval $ac_compile) 2>&5
7326 ac_status=$?
7327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328 test $ac_status = 0; }; then
7329 if test "$lt_cv_prog_gnu_ld" = yes; then
7330 case `/usr/bin/file conftest.$ac_objext` in
7331 *32-bit*)
7332 LD="${LD-ld} -melf32bsmip"
7333 ;;
7334 *N32*)
7335 LD="${LD-ld} -melf32bmipn32"
7336 ;;
7337 *64-bit*)
7338 LD="${LD-ld} -melf64bmip"
7339 ;;
7340 esac
7341 else
7342 case `/usr/bin/file conftest.$ac_objext` in
7343 *32-bit*)
7344 LD="${LD-ld} -32"
7345 ;;
7346 *N32*)
7347 LD="${LD-ld} -n32"
7348 ;;
7349 *64-bit*)
7350 LD="${LD-ld} -64"
7351 ;;
7352 esac
7353 fi
7354 fi
7355 rm -rf conftest*
7356 ;;
7357
7358 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7359 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7360 # Find out which ABI we are using.
7361 echo 'int i;' > conftest.$ac_ext
7362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7363 (eval $ac_compile) 2>&5
7364 ac_status=$?
7365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7366 test $ac_status = 0; }; then
7367 case `/usr/bin/file conftest.o` in
7368 *32-bit*)
7369 case $host in
7370 x86_64-*kfreebsd*-gnu)
7371 LD="${LD-ld} -m elf_i386_fbsd"
7372 ;;
7373 x86_64-*linux*)
7374 LD="${LD-ld} -m elf_i386"
7375 ;;
7376 ppc64-*linux*|powerpc64-*linux*)
7377 LD="${LD-ld} -m elf32ppclinux"
7378 ;;
7379 s390x-*linux*)
7380 LD="${LD-ld} -m elf_s390"
7381 ;;
7382 sparc64-*linux*)
7383 LD="${LD-ld} -m elf32_sparc"
7384 ;;
7385 esac
7386 ;;
7387 *64-bit*)
7388 case $host in
7389 x86_64-*kfreebsd*-gnu)
7390 LD="${LD-ld} -m elf_x86_64_fbsd"
7391 ;;
7392 x86_64-*linux*)
7393 LD="${LD-ld} -m elf_x86_64"
7394 ;;
7395 ppc*-*linux*|powerpc*-*linux*)
7396 LD="${LD-ld} -m elf64ppc"
7397 ;;
7398 s390*-*linux*|s390*-*tpf*)
7399 LD="${LD-ld} -m elf64_s390"
7400 ;;
7401 sparc*-*linux*)
7402 LD="${LD-ld} -m elf64_sparc"
7403 ;;
7404 esac
7405 ;;
7406 esac
7407 fi
7408 rm -rf conftest*
7409 ;;
7410
7411 *-*-sco3.2v5*)
7412 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7413 SAVE_CFLAGS="$CFLAGS"
7414 CFLAGS="$CFLAGS -belf"
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7416 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7417 if ${lt_cv_cc_needs_belf+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 ac_ext=c
7421 ac_cpp='$CPP $CPPFLAGS'
7422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7425
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428
7429 int
7430 main ()
7431 {
7432
7433 ;
7434 return 0;
7435 }
7436 _ACEOF
7437 if ac_fn_c_try_link "$LINENO"; then :
7438 lt_cv_cc_needs_belf=yes
7439 else
7440 lt_cv_cc_needs_belf=no
7441 fi
7442 rm -f core conftest.err conftest.$ac_objext \
7443 conftest$ac_exeext conftest.$ac_ext
7444 ac_ext=c
7445 ac_cpp='$CPP $CPPFLAGS'
7446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7449
7450 fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7452 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7453 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7454 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7455 CFLAGS="$SAVE_CFLAGS"
7456 fi
7457 ;;
7458 *-*solaris*)
7459 # Find out which ABI we are using.
7460 echo 'int i;' > conftest.$ac_ext
7461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7462 (eval $ac_compile) 2>&5
7463 ac_status=$?
7464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7465 test $ac_status = 0; }; then
7466 case `/usr/bin/file conftest.o` in
7467 *64-bit*)
7468 case $lt_cv_prog_gnu_ld in
7469 yes*)
7470 case $host in
7471 i?86-*-solaris*)
7472 LD="${LD-ld} -m elf_x86_64"
7473 ;;
7474 sparc*-*-solaris*)
7475 LD="${LD-ld} -m elf64_sparc"
7476 ;;
7477 esac
7478 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7479 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7480 LD="${LD-ld}_sol2"
7481 fi
7482 ;;
7483 *)
7484 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7485 LD="${LD-ld} -64"
7486 fi
7487 ;;
7488 esac
7489 ;;
7490 esac
7491 fi
7492 rm -rf conftest*
7493 ;;
7494 esac
7495
7496 need_locks="$enable_libtool_lock"
7497
7498 if test -n "$ac_tool_prefix"; then
7499 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}mt; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 if test -n "$MANIFEST_TOOL"; then
7507 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520 done
7521 done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7527 if test -n "$MANIFEST_TOOL"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7529 $as_echo "$MANIFEST_TOOL" >&6; }
7530 else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535
7536 fi
7537 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7538 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7539 # Extract the first word of "mt", so it can be a program name with args.
7540 set dummy mt; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 if test -n "$ac_ct_MANIFEST_TOOL"; then
7547 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7567 if test -n "$ac_ct_MANIFEST_TOOL"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7569 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7570 else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7576 MANIFEST_TOOL=":"
7577 else
7578 case $cross_compiling:$ac_tool_warned in
7579 yes:)
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7583 esac
7584 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7585 fi
7586 else
7587 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7588 fi
7589
7590 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7592 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7593 if ${lt_cv_path_mainfest_tool+:} false; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 lt_cv_path_mainfest_tool=no
7597 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7598 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7599 cat conftest.err >&5
7600 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7601 lt_cv_path_mainfest_tool=yes
7602 fi
7603 rm -f conftest*
7604 fi
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7606 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7607 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7608 MANIFEST_TOOL=:
7609 fi
7610
7611
7612
7613
7614
7615
7616 case $host_os in
7617 rhapsody* | darwin*)
7618 if test -n "$ac_tool_prefix"; then
7619 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7620 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 if test -n "$DSYMUTIL"; then
7627 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640 done
7641 done
7642 IFS=$as_save_IFS
7643
7644 fi
7645 fi
7646 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7647 if test -n "$DSYMUTIL"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7649 $as_echo "$DSYMUTIL" >&6; }
7650 else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653 fi
7654
7655
7656 fi
7657 if test -z "$ac_cv_prog_DSYMUTIL"; then
7658 ac_ct_DSYMUTIL=$DSYMUTIL
7659 # Extract the first word of "dsymutil", so it can be a program name with args.
7660 set dummy dsymutil; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$ac_ct_DSYMUTIL"; then
7667 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7683
7684 fi
7685 fi
7686 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7687 if test -n "$ac_ct_DSYMUTIL"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7689 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 fi
7694
7695 if test "x$ac_ct_DSYMUTIL" = x; then
7696 DSYMUTIL=":"
7697 else
7698 case $cross_compiling:$ac_tool_warned in
7699 yes:)
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702 ac_tool_warned=yes ;;
7703 esac
7704 DSYMUTIL=$ac_ct_DSYMUTIL
7705 fi
7706 else
7707 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7708 fi
7709
7710 if test -n "$ac_tool_prefix"; then
7711 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7712 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_NMEDIT+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 if test -n "$NMEDIT"; then
7719 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 NMEDIT=$ac_cv_prog_NMEDIT
7739 if test -n "$NMEDIT"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7741 $as_echo "$NMEDIT" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748 fi
7749 if test -z "$ac_cv_prog_NMEDIT"; then
7750 ac_ct_NMEDIT=$NMEDIT
7751 # Extract the first word of "nmedit", so it can be a program name with args.
7752 set dummy nmedit; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 if test -n "$ac_ct_NMEDIT"; then
7759 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7771 fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7775
7776 fi
7777 fi
7778 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7779 if test -n "$ac_ct_NMEDIT"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7781 $as_echo "$ac_ct_NMEDIT" >&6; }
7782 else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7785 fi
7786
7787 if test "x$ac_ct_NMEDIT" = x; then
7788 NMEDIT=":"
7789 else
7790 case $cross_compiling:$ac_tool_warned in
7791 yes:)
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7794 ac_tool_warned=yes ;;
7795 esac
7796 NMEDIT=$ac_ct_NMEDIT
7797 fi
7798 else
7799 NMEDIT="$ac_cv_prog_NMEDIT"
7800 fi
7801
7802 if test -n "$ac_tool_prefix"; then
7803 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7804 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if ${ac_cv_prog_LIPO+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 if test -n "$LIPO"; then
7811 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 break 2
7823 fi
7824 done
7825 done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 LIPO=$ac_cv_prog_LIPO
7831 if test -n "$LIPO"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7833 $as_echo "$LIPO" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 fi
7838
7839
7840 fi
7841 if test -z "$ac_cv_prog_LIPO"; then
7842 ac_ct_LIPO=$LIPO
7843 # Extract the first word of "lipo", so it can be a program name with args.
7844 set dummy lipo; ac_word=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 if test -n "$ac_ct_LIPO"; then
7851 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860 ac_cv_prog_ac_ct_LIPO="lipo"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7863 fi
7864 done
7865 done
7866 IFS=$as_save_IFS
7867
7868 fi
7869 fi
7870 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7871 if test -n "$ac_ct_LIPO"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7873 $as_echo "$ac_ct_LIPO" >&6; }
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7877 fi
7878
7879 if test "x$ac_ct_LIPO" = x; then
7880 LIPO=":"
7881 else
7882 case $cross_compiling:$ac_tool_warned in
7883 yes:)
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7886 ac_tool_warned=yes ;;
7887 esac
7888 LIPO=$ac_ct_LIPO
7889 fi
7890 else
7891 LIPO="$ac_cv_prog_LIPO"
7892 fi
7893
7894 if test -n "$ac_tool_prefix"; then
7895 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7896 set dummy ${ac_tool_prefix}otool; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_OTOOL+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 if test -n "$OTOOL"; then
7903 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916 done
7917 done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 OTOOL=$ac_cv_prog_OTOOL
7923 if test -n "$OTOOL"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7925 $as_echo "$OTOOL" >&6; }
7926 else
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931
7932 fi
7933 if test -z "$ac_cv_prog_OTOOL"; then
7934 ac_ct_OTOOL=$OTOOL
7935 # Extract the first word of "otool", so it can be a program name with args.
7936 set dummy otool; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 if test -n "$ac_ct_OTOOL"; then
7943 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_ac_ct_OTOOL="otool"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 break 2
7955 fi
7956 done
7957 done
7958 IFS=$as_save_IFS
7959
7960 fi
7961 fi
7962 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7963 if test -n "$ac_ct_OTOOL"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7965 $as_echo "$ac_ct_OTOOL" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7969 fi
7970
7971 if test "x$ac_ct_OTOOL" = x; then
7972 OTOOL=":"
7973 else
7974 case $cross_compiling:$ac_tool_warned in
7975 yes:)
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7978 ac_tool_warned=yes ;;
7979 esac
7980 OTOOL=$ac_ct_OTOOL
7981 fi
7982 else
7983 OTOOL="$ac_cv_prog_OTOOL"
7984 fi
7985
7986 if test -n "$ac_tool_prefix"; then
7987 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if ${ac_cv_prog_OTOOL64+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 if test -n "$OTOOL64"; then
7995 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008 done
8009 done
8010 IFS=$as_save_IFS
8011
8012 fi
8013 fi
8014 OTOOL64=$ac_cv_prog_OTOOL64
8015 if test -n "$OTOOL64"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8017 $as_echo "$OTOOL64" >&6; }
8018 else
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8021 fi
8022
8023
8024 fi
8025 if test -z "$ac_cv_prog_OTOOL64"; then
8026 ac_ct_OTOOL64=$OTOOL64
8027 # Extract the first word of "otool64", so it can be a program name with args.
8028 set dummy otool64; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 if test -n "$ac_ct_OTOOL64"; then
8035 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8039 do
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8044 ac_cv_prog_ac_ct_OTOOL64="otool64"
8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 break 2
8047 fi
8048 done
8049 done
8050 IFS=$as_save_IFS
8051
8052 fi
8053 fi
8054 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8055 if test -n "$ac_ct_OTOOL64"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8057 $as_echo "$ac_ct_OTOOL64" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8061 fi
8062
8063 if test "x$ac_ct_OTOOL64" = x; then
8064 OTOOL64=":"
8065 else
8066 case $cross_compiling:$ac_tool_warned in
8067 yes:)
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8070 ac_tool_warned=yes ;;
8071 esac
8072 OTOOL64=$ac_ct_OTOOL64
8073 fi
8074 else
8075 OTOOL64="$ac_cv_prog_OTOOL64"
8076 fi
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8105 $as_echo_n "checking for -single_module linker flag... " >&6; }
8106 if ${lt_cv_apple_cc_single_mod+:} false; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 lt_cv_apple_cc_single_mod=no
8110 if test -z "${LT_MULTI_MODULE}"; then
8111 # By default we will add the -single_module flag. You can override
8112 # by either setting the environment variable LT_MULTI_MODULE
8113 # non-empty at configure time, or by adding -multi_module to the
8114 # link flags.
8115 rm -rf libconftest.dylib*
8116 echo "int foo(void){return 1;}" > conftest.c
8117 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8118 -dynamiclib -Wl,-single_module conftest.c" >&5
8119 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8120 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8121 _lt_result=$?
8122 # If there is a non-empty error log, and "single_module"
8123 # appears in it, assume the flag caused a linker warning
8124 if test -s conftest.err && $GREP single_module conftest.err; then
8125 cat conftest.err >&5
8126 # Otherwise, if the output was created with a 0 exit code from
8127 # the compiler, it worked.
8128 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8129 lt_cv_apple_cc_single_mod=yes
8130 else
8131 cat conftest.err >&5
8132 fi
8133 rm -rf libconftest.dylib*
8134 rm -f conftest.*
8135 fi
8136 fi
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8138 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8139
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8141 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8142 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144 else
8145 lt_cv_ld_exported_symbols_list=no
8146 save_LDFLAGS=$LDFLAGS
8147 echo "_main" > conftest.sym
8148 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151
8152 int
8153 main ()
8154 {
8155
8156 ;
8157 return 0;
8158 }
8159 _ACEOF
8160 if ac_fn_c_try_link "$LINENO"; then :
8161 lt_cv_ld_exported_symbols_list=yes
8162 else
8163 lt_cv_ld_exported_symbols_list=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext \
8166 conftest$ac_exeext conftest.$ac_ext
8167 LDFLAGS="$save_LDFLAGS"
8168
8169 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8171 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8172
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8174 $as_echo_n "checking for -force_load linker flag... " >&6; }
8175 if ${lt_cv_ld_force_load+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 lt_cv_ld_force_load=no
8179 cat > conftest.c << _LT_EOF
8180 int forced_loaded() { return 2;}
8181 _LT_EOF
8182 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8183 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8184 echo "$AR cru libconftest.a conftest.o" >&5
8185 $AR cru libconftest.a conftest.o 2>&5
8186 echo "$RANLIB libconftest.a" >&5
8187 $RANLIB libconftest.a 2>&5
8188 cat > conftest.c << _LT_EOF
8189 int main() { return 0;}
8190 _LT_EOF
8191 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8192 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8193 _lt_result=$?
8194 if test -s conftest.err && $GREP force_load conftest.err; then
8195 cat conftest.err >&5
8196 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8197 lt_cv_ld_force_load=yes
8198 else
8199 cat conftest.err >&5
8200 fi
8201 rm -f conftest.err libconftest.a conftest conftest.c
8202 rm -rf conftest.dSYM
8203
8204 fi
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8206 $as_echo "$lt_cv_ld_force_load" >&6; }
8207 case $host_os in
8208 rhapsody* | darwin1.[012])
8209 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8210 darwin1.*)
8211 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8212 darwin*) # darwin 5.x on
8213 # if running on 10.5 or later, the deployment target defaults
8214 # to the OS version, if on x86, and 10.4, the deployment
8215 # target defaults to 10.4. Don't you love it?
8216 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8217 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8218 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8219 10.[012]*)
8220 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8221 10.*)
8222 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8223 esac
8224 ;;
8225 esac
8226 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8227 _lt_dar_single_mod='$single_module'
8228 fi
8229 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8230 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8231 else
8232 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8233 fi
8234 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8235 _lt_dsymutil='~$DSYMUTIL $lib || :'
8236 else
8237 _lt_dsymutil=
8238 fi
8239 ;;
8240 esac
8241
8242 ac_ext=c
8243 ac_cpp='$CPP $CPPFLAGS'
8244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8248 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8249 # On Suns, sometimes $CPP names a directory.
8250 if test -n "$CPP" && test -d "$CPP"; then
8251 CPP=
8252 fi
8253 if test -z "$CPP"; then
8254 if ${ac_cv_prog_CPP+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 # Double quotes because CPP needs to be expanded
8258 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8259 do
8260 ac_preproc_ok=false
8261 for ac_c_preproc_warn_flag in '' yes
8262 do
8263 # Use a header file that comes with gcc, so configuring glibc
8264 # with a fresh cross-compiler works.
8265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8266 # <limits.h> exists even on freestanding compilers.
8267 # On the NeXT, cc -E runs the code through the compiler's parser,
8268 # not just through cpp. "Syntax error" is here to catch this case.
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 #ifdef __STDC__
8272 # include <limits.h>
8273 #else
8274 # include <assert.h>
8275 #endif
8276 Syntax error
8277 _ACEOF
8278 if ac_fn_c_try_cpp "$LINENO"; then :
8279
8280 else
8281 # Broken: fails on valid input.
8282 continue
8283 fi
8284 rm -f conftest.err conftest.i conftest.$ac_ext
8285
8286 # OK, works on sane cases. Now check whether nonexistent headers
8287 # can be detected and how.
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8290 #include <ac_nonexistent.h>
8291 _ACEOF
8292 if ac_fn_c_try_cpp "$LINENO"; then :
8293 # Broken: success on invalid input.
8294 continue
8295 else
8296 # Passes both tests.
8297 ac_preproc_ok=:
8298 break
8299 fi
8300 rm -f conftest.err conftest.i conftest.$ac_ext
8301
8302 done
8303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8304 rm -f conftest.i conftest.err conftest.$ac_ext
8305 if $ac_preproc_ok; then :
8306 break
8307 fi
8308
8309 done
8310 ac_cv_prog_CPP=$CPP
8311
8312 fi
8313 CPP=$ac_cv_prog_CPP
8314 else
8315 ac_cv_prog_CPP=$CPP
8316 fi
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8318 $as_echo "$CPP" >&6; }
8319 ac_preproc_ok=false
8320 for ac_c_preproc_warn_flag in '' yes
8321 do
8322 # Use a header file that comes with gcc, so configuring glibc
8323 # with a fresh cross-compiler works.
8324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8325 # <limits.h> exists even on freestanding compilers.
8326 # On the NeXT, cc -E runs the code through the compiler's parser,
8327 # not just through cpp. "Syntax error" is here to catch this case.
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 #ifdef __STDC__
8331 # include <limits.h>
8332 #else
8333 # include <assert.h>
8334 #endif
8335 Syntax error
8336 _ACEOF
8337 if ac_fn_c_try_cpp "$LINENO"; then :
8338
8339 else
8340 # Broken: fails on valid input.
8341 continue
8342 fi
8343 rm -f conftest.err conftest.i conftest.$ac_ext
8344
8345 # OK, works on sane cases. Now check whether nonexistent headers
8346 # can be detected and how.
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 #include <ac_nonexistent.h>
8350 _ACEOF
8351 if ac_fn_c_try_cpp "$LINENO"; then :
8352 # Broken: success on invalid input.
8353 continue
8354 else
8355 # Passes both tests.
8356 ac_preproc_ok=:
8357 break
8358 fi
8359 rm -f conftest.err conftest.i conftest.$ac_ext
8360
8361 done
8362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8363 rm -f conftest.i conftest.err conftest.$ac_ext
8364 if $ac_preproc_ok; then :
8365
8366 else
8367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8369 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8370 See \`config.log' for more details" "$LINENO" 5; }
8371 fi
8372
8373 ac_ext=c
8374 ac_cpp='$CPP $CPPFLAGS'
8375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8378
8379
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8381 $as_echo_n "checking for ANSI C header files... " >&6; }
8382 if ${ac_cv_header_stdc+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 #include <stdlib.h>
8388 #include <stdarg.h>
8389 #include <string.h>
8390 #include <float.h>
8391
8392 int
8393 main ()
8394 {
8395
8396 ;
8397 return 0;
8398 }
8399 _ACEOF
8400 if ac_fn_c_try_compile "$LINENO"; then :
8401 ac_cv_header_stdc=yes
8402 else
8403 ac_cv_header_stdc=no
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406
8407 if test $ac_cv_header_stdc = yes; then
8408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8411 #include <string.h>
8412
8413 _ACEOF
8414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8415 $EGREP "memchr" >/dev/null 2>&1; then :
8416
8417 else
8418 ac_cv_header_stdc=no
8419 fi
8420 rm -f conftest*
8421
8422 fi
8423
8424 if test $ac_cv_header_stdc = yes; then
8425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 #include <stdlib.h>
8429
8430 _ACEOF
8431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8432 $EGREP "free" >/dev/null 2>&1; then :
8433
8434 else
8435 ac_cv_header_stdc=no
8436 fi
8437 rm -f conftest*
8438
8439 fi
8440
8441 if test $ac_cv_header_stdc = yes; then
8442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8443 if test "$cross_compiling" = yes; then :
8444 :
8445 else
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 #include <ctype.h>
8449 #include <stdlib.h>
8450 #if ((' ' & 0x0FF) == 0x020)
8451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8453 #else
8454 # define ISLOWER(c) \
8455 (('a' <= (c) && (c) <= 'i') \
8456 || ('j' <= (c) && (c) <= 'r') \
8457 || ('s' <= (c) && (c) <= 'z'))
8458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8459 #endif
8460
8461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8462 int
8463 main ()
8464 {
8465 int i;
8466 for (i = 0; i < 256; i++)
8467 if (XOR (islower (i), ISLOWER (i))
8468 || toupper (i) != TOUPPER (i))
8469 return 2;
8470 return 0;
8471 }
8472 _ACEOF
8473 if ac_fn_c_try_run "$LINENO"; then :
8474
8475 else
8476 ac_cv_header_stdc=no
8477 fi
8478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8479 conftest.$ac_objext conftest.beam conftest.$ac_ext
8480 fi
8481
8482 fi
8483 fi
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8485 $as_echo "$ac_cv_header_stdc" >&6; }
8486 if test $ac_cv_header_stdc = yes; then
8487
8488 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8489
8490 fi
8491
8492 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8493 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8494 inttypes.h stdint.h unistd.h
8495 do :
8496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8497 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8498 "
8499 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8500 cat >>confdefs.h <<_ACEOF
8501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8502 _ACEOF
8503
8504 fi
8505
8506 done
8507
8508
8509 for ac_header in dlfcn.h
8510 do :
8511 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8512 "
8513 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8514 cat >>confdefs.h <<_ACEOF
8515 #define HAVE_DLFCN_H 1
8516 _ACEOF
8517
8518 fi
8519
8520 done
8521
8522
8523
8524
8525
8526 # Set options
8527
8528
8529
8530 enable_dlopen=no
8531
8532
8533 enable_win32_dll=no
8534
8535
8536 # Check whether --enable-shared was given.
8537 if test "${enable_shared+set}" = set; then :
8538 enableval=$enable_shared; p=${PACKAGE-default}
8539 case $enableval in
8540 yes) enable_shared=yes ;;
8541 no) enable_shared=no ;;
8542 *)
8543 enable_shared=no
8544 # Look at the argument we got. We use all the common list separators.
8545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8546 for pkg in $enableval; do
8547 IFS="$lt_save_ifs"
8548 if test "X$pkg" = "X$p"; then
8549 enable_shared=yes
8550 fi
8551 done
8552 IFS="$lt_save_ifs"
8553 ;;
8554 esac
8555 else
8556 enable_shared=yes
8557 fi
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567 # Check whether --enable-static was given.
8568 if test "${enable_static+set}" = set; then :
8569 enableval=$enable_static; p=${PACKAGE-default}
8570 case $enableval in
8571 yes) enable_static=yes ;;
8572 no) enable_static=no ;;
8573 *)
8574 enable_static=no
8575 # Look at the argument we got. We use all the common list separators.
8576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8577 for pkg in $enableval; do
8578 IFS="$lt_save_ifs"
8579 if test "X$pkg" = "X$p"; then
8580 enable_static=yes
8581 fi
8582 done
8583 IFS="$lt_save_ifs"
8584 ;;
8585 esac
8586 else
8587 enable_static=yes
8588 fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 # Check whether --with-pic was given.
8600 if test "${with_pic+set}" = set; then :
8601 withval=$with_pic; lt_p=${PACKAGE-default}
8602 case $withval in
8603 yes|no) pic_mode=$withval ;;
8604 *)
8605 pic_mode=default
8606 # Look at the argument we got. We use all the common list separators.
8607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8608 for lt_pkg in $withval; do
8609 IFS="$lt_save_ifs"
8610 if test "X$lt_pkg" = "X$lt_p"; then
8611 pic_mode=yes
8612 fi
8613 done
8614 IFS="$lt_save_ifs"
8615 ;;
8616 esac
8617 else
8618 pic_mode=default
8619 fi
8620
8621
8622 test -z "$pic_mode" && pic_mode=default
8623
8624
8625
8626
8627
8628
8629
8630 # Check whether --enable-fast-install was given.
8631 if test "${enable_fast_install+set}" = set; then :
8632 enableval=$enable_fast_install; p=${PACKAGE-default}
8633 case $enableval in
8634 yes) enable_fast_install=yes ;;
8635 no) enable_fast_install=no ;;
8636 *)
8637 enable_fast_install=no
8638 # Look at the argument we got. We use all the common list separators.
8639 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8640 for pkg in $enableval; do
8641 IFS="$lt_save_ifs"
8642 if test "X$pkg" = "X$p"; then
8643 enable_fast_install=yes
8644 fi
8645 done
8646 IFS="$lt_save_ifs"
8647 ;;
8648 esac
8649 else
8650 enable_fast_install=yes
8651 fi
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663 # This can be used to rebuild libtool when needed
8664 LIBTOOL_DEPS="$ltmain"
8665
8666 # Always use our own libtool.
8667 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698 test -z "$LN_S" && LN_S="ln -s"
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713 if test -n "${ZSH_VERSION+set}" ; then
8714 setopt NO_GLOB_SUBST
8715 fi
8716
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8718 $as_echo_n "checking for objdir... " >&6; }
8719 if ${lt_cv_objdir+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 rm -f .libs 2>/dev/null
8723 mkdir .libs 2>/dev/null
8724 if test -d .libs; then
8725 lt_cv_objdir=.libs
8726 else
8727 # MS-DOS does not allow filenames that begin with a dot.
8728 lt_cv_objdir=_libs
8729 fi
8730 rmdir .libs 2>/dev/null
8731 fi
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8733 $as_echo "$lt_cv_objdir" >&6; }
8734 objdir=$lt_cv_objdir
8735
8736
8737
8738
8739
8740 cat >>confdefs.h <<_ACEOF
8741 #define LT_OBJDIR "$lt_cv_objdir/"
8742 _ACEOF
8743
8744
8745
8746
8747 case $host_os in
8748 aix3*)
8749 # AIX sometimes has problems with the GCC collect2 program. For some
8750 # reason, if we set the COLLECT_NAMES environment variable, the problems
8751 # vanish in a puff of smoke.
8752 if test "X${COLLECT_NAMES+set}" != Xset; then
8753 COLLECT_NAMES=
8754 export COLLECT_NAMES
8755 fi
8756 ;;
8757 esac
8758
8759 # Global variables:
8760 ofile=libtool
8761 can_build_shared=yes
8762
8763 # All known linkers require a `.a' archive for static linking (except MSVC,
8764 # which needs '.lib').
8765 libext=a
8766
8767 with_gnu_ld="$lt_cv_prog_gnu_ld"
8768
8769 old_CC="$CC"
8770 old_CFLAGS="$CFLAGS"
8771
8772 # Set sane defaults for various variables
8773 test -z "$CC" && CC=cc
8774 test -z "$LTCC" && LTCC=$CC
8775 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8776 test -z "$LD" && LD=ld
8777 test -z "$ac_objext" && ac_objext=o
8778
8779 for cc_temp in $compiler""; do
8780 case $cc_temp in
8781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8783 \-*) ;;
8784 *) break;;
8785 esac
8786 done
8787 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8788
8789
8790 # Only perform the check for file, if the check method requires it
8791 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8792 case $deplibs_check_method in
8793 file_magic*)
8794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8796 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8797 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 case $MAGIC_CMD in
8801 [\\/*] | ?:[\\/]*)
8802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8803 ;;
8804 *)
8805 lt_save_MAGIC_CMD="$MAGIC_CMD"
8806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8808 for ac_dir in $ac_dummy; do
8809 IFS="$lt_save_ifs"
8810 test -z "$ac_dir" && ac_dir=.
8811 if test -f $ac_dir/${ac_tool_prefix}file; then
8812 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8813 if test -n "$file_magic_test_file"; then
8814 case $deplibs_check_method in
8815 "file_magic "*)
8816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8819 $EGREP "$file_magic_regex" > /dev/null; then
8820 :
8821 else
8822 cat <<_LT_EOF 1>&2
8823
8824 *** Warning: the command libtool uses to detect shared libraries,
8825 *** $file_magic_cmd, produces output that libtool cannot recognize.
8826 *** The result is that libtool may fail to recognize shared libraries
8827 *** as such. This will affect the creation of libtool libraries that
8828 *** depend on shared libraries, but programs linked with such libtool
8829 *** libraries will work regardless of this problem. Nevertheless, you
8830 *** may want to report the problem to your system manager and/or to
8831 *** [email protected]
8832
8833 _LT_EOF
8834 fi ;;
8835 esac
8836 fi
8837 break
8838 fi
8839 done
8840 IFS="$lt_save_ifs"
8841 MAGIC_CMD="$lt_save_MAGIC_CMD"
8842 ;;
8843 esac
8844 fi
8845
8846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8847 if test -n "$MAGIC_CMD"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8849 $as_echo "$MAGIC_CMD" >&6; }
8850 else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853 fi
8854
8855
8856
8857
8858
8859 if test -z "$lt_cv_path_MAGIC_CMD"; then
8860 if test -n "$ac_tool_prefix"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8862 $as_echo_n "checking for file... " >&6; }
8863 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 case $MAGIC_CMD in
8867 [\\/*] | ?:[\\/]*)
8868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8869 ;;
8870 *)
8871 lt_save_MAGIC_CMD="$MAGIC_CMD"
8872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8874 for ac_dir in $ac_dummy; do
8875 IFS="$lt_save_ifs"
8876 test -z "$ac_dir" && ac_dir=.
8877 if test -f $ac_dir/file; then
8878 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8879 if test -n "$file_magic_test_file"; then
8880 case $deplibs_check_method in
8881 "file_magic "*)
8882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8885 $EGREP "$file_magic_regex" > /dev/null; then
8886 :
8887 else
8888 cat <<_LT_EOF 1>&2
8889
8890 *** Warning: the command libtool uses to detect shared libraries,
8891 *** $file_magic_cmd, produces output that libtool cannot recognize.
8892 *** The result is that libtool may fail to recognize shared libraries
8893 *** as such. This will affect the creation of libtool libraries that
8894 *** depend on shared libraries, but programs linked with such libtool
8895 *** libraries will work regardless of this problem. Nevertheless, you
8896 *** may want to report the problem to your system manager and/or to
8897 *** [email protected]
8898
8899 _LT_EOF
8900 fi ;;
8901 esac
8902 fi
8903 break
8904 fi
8905 done
8906 IFS="$lt_save_ifs"
8907 MAGIC_CMD="$lt_save_MAGIC_CMD"
8908 ;;
8909 esac
8910 fi
8911
8912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8913 if test -n "$MAGIC_CMD"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8915 $as_echo "$MAGIC_CMD" >&6; }
8916 else
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8919 fi
8920
8921
8922 else
8923 MAGIC_CMD=:
8924 fi
8925 fi
8926
8927 fi
8928 ;;
8929 esac
8930
8931 # Use C for the default configuration in the libtool script
8932
8933 lt_save_CC="$CC"
8934 ac_ext=c
8935 ac_cpp='$CPP $CPPFLAGS'
8936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8939
8940
8941 # Source file extension for C test sources.
8942 ac_ext=c
8943
8944 # Object file extension for compiled C test sources.
8945 objext=o
8946 objext=$objext
8947
8948 # Code to be used in simple compile tests
8949 lt_simple_compile_test_code="int some_variable = 0;"
8950
8951 # Code to be used in simple link tests
8952 lt_simple_link_test_code='int main(){return(0);}'
8953
8954
8955
8956
8957
8958
8959
8960 # If no C compiler was specified, use CC.
8961 LTCC=${LTCC-"$CC"}
8962
8963 # If no C compiler flags were specified, use CFLAGS.
8964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8965
8966 # Allow CC to be a program name with arguments.
8967 compiler=$CC
8968
8969 # Save the default compiler, since it gets overwritten when the other
8970 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8971 compiler_DEFAULT=$CC
8972
8973 # save warnings/boilerplate of simple test code
8974 ac_outfile=conftest.$ac_objext
8975 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8977 _lt_compiler_boilerplate=`cat conftest.err`
8978 $RM conftest*
8979
8980 ac_outfile=conftest.$ac_objext
8981 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8983 _lt_linker_boilerplate=`cat conftest.err`
8984 $RM -r conftest*
8985
8986
8987 ## CAVEAT EMPTOR:
8988 ## There is no encapsulation within the following macros, do not change
8989 ## the running order or otherwise move them around unless you know exactly
8990 ## what you are doing...
8991 if test -n "$compiler"; then
8992
8993 lt_prog_compiler_no_builtin_flag=
8994
8995 if test "$GCC" = yes; then
8996 case $cc_basename in
8997 nvcc*)
8998 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8999 *)
9000 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9001 esac
9002
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9004 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9005 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 lt_cv_prog_compiler_rtti_exceptions=no
9009 ac_outfile=conftest.$ac_objext
9010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9011 lt_compiler_flag="-fno-rtti -fno-exceptions"
9012 # Insert the option either (1) after the last *FLAGS variable, or
9013 # (2) before a word containing "conftest.", or (3) at the end.
9014 # Note that $ac_compile itself does not contain backslashes and begins
9015 # with a dollar sign (not a hyphen), so the echo should work correctly.
9016 # The option is referenced via a variable to avoid confusing sed.
9017 lt_compile=`echo "$ac_compile" | $SED \
9018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9020 -e 's:$: $lt_compiler_flag:'`
9021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9022 (eval "$lt_compile" 2>conftest.err)
9023 ac_status=$?
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 if (exit $ac_status) && test -s "$ac_outfile"; then
9027 # The compiler can only warn and ignore the option if not recognized
9028 # So say no if there are warnings other than the usual output.
9029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9032 lt_cv_prog_compiler_rtti_exceptions=yes
9033 fi
9034 fi
9035 $RM conftest*
9036
9037 fi
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9039 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9040
9041 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9042 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9043 else
9044 :
9045 fi
9046
9047 fi
9048
9049
9050
9051
9052
9053
9054 lt_prog_compiler_wl=
9055 lt_prog_compiler_pic=
9056 lt_prog_compiler_static=
9057
9058
9059 if test "$GCC" = yes; then
9060 lt_prog_compiler_wl='-Wl,'
9061 lt_prog_compiler_static='-static'
9062
9063 case $host_os in
9064 aix*)
9065 # All AIX code is PIC.
9066 if test "$host_cpu" = ia64; then
9067 # AIX 5 now supports IA64 processor
9068 lt_prog_compiler_static='-Bstatic'
9069 fi
9070 ;;
9071
9072 amigaos*)
9073 case $host_cpu in
9074 powerpc)
9075 # see comment about AmigaOS4 .so support
9076 lt_prog_compiler_pic='-fPIC'
9077 ;;
9078 m68k)
9079 # FIXME: we need at least 68020 code to build shared libraries, but
9080 # adding the `-m68020' flag to GCC prevents building anything better,
9081 # like `-m68040'.
9082 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9083 ;;
9084 esac
9085 ;;
9086
9087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9088 # PIC is the default for these OSes.
9089 ;;
9090
9091 mingw* | cygwin* | pw32* | os2* | cegcc*)
9092 # This hack is so that the source file can tell whether it is being
9093 # built for inclusion in a dll (and should export symbols for example).
9094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9095 # (--disable-auto-import) libraries
9096 lt_prog_compiler_pic='-DDLL_EXPORT'
9097 ;;
9098
9099 darwin* | rhapsody*)
9100 # PIC is the default on this platform
9101 # Common symbols not allowed in MH_DYLIB files
9102 lt_prog_compiler_pic='-fno-common'
9103 ;;
9104
9105 haiku*)
9106 # PIC is the default for Haiku.
9107 # The "-static" flag exists, but is broken.
9108 lt_prog_compiler_static=
9109 ;;
9110
9111 hpux*)
9112 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9113 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9114 # sets the default TLS model and affects inlining.
9115 case $host_cpu in
9116 hppa*64*)
9117 # +Z the default
9118 ;;
9119 *)
9120 lt_prog_compiler_pic='-fPIC'
9121 ;;
9122 esac
9123 ;;
9124
9125 interix[3-9]*)
9126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9127 # Instead, we relocate shared libraries at runtime.
9128 ;;
9129
9130 msdosdjgpp*)
9131 # Just because we use GCC doesn't mean we suddenly get shared libraries
9132 # on systems that don't support them.
9133 lt_prog_compiler_can_build_shared=no
9134 enable_shared=no
9135 ;;
9136
9137 *nto* | *qnx*)
9138 # QNX uses GNU C++, but need to define -shared option too, otherwise
9139 # it will coredump.
9140 lt_prog_compiler_pic='-fPIC -shared'
9141 ;;
9142
9143 sysv4*MP*)
9144 if test -d /usr/nec; then
9145 lt_prog_compiler_pic=-Kconform_pic
9146 fi
9147 ;;
9148
9149 *)
9150 lt_prog_compiler_pic='-fPIC'
9151 ;;
9152 esac
9153
9154 case $cc_basename in
9155 nvcc*) # Cuda Compiler Driver 2.2
9156 lt_prog_compiler_wl='-Xlinker '
9157 if test -n "$lt_prog_compiler_pic"; then
9158 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9159 fi
9160 ;;
9161 esac
9162 else
9163 # PORTME Check for flag to pass linker flags through the system compiler.
9164 case $host_os in
9165 aix*)
9166 lt_prog_compiler_wl='-Wl,'
9167 if test "$host_cpu" = ia64; then
9168 # AIX 5 now supports IA64 processor
9169 lt_prog_compiler_static='-Bstatic'
9170 else
9171 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9172 fi
9173 ;;
9174
9175 mingw* | cygwin* | pw32* | os2* | cegcc*)
9176 # This hack is so that the source file can tell whether it is being
9177 # built for inclusion in a dll (and should export symbols for example).
9178 lt_prog_compiler_pic='-DDLL_EXPORT'
9179 ;;
9180
9181 hpux9* | hpux10* | hpux11*)
9182 lt_prog_compiler_wl='-Wl,'
9183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9184 # not for PA HP-UX.
9185 case $host_cpu in
9186 hppa*64*|ia64*)
9187 # +Z the default
9188 ;;
9189 *)
9190 lt_prog_compiler_pic='+Z'
9191 ;;
9192 esac
9193 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9194 lt_prog_compiler_static='${wl}-a ${wl}archive'
9195 ;;
9196
9197 irix5* | irix6* | nonstopux*)
9198 lt_prog_compiler_wl='-Wl,'
9199 # PIC (with -KPIC) is the default.
9200 lt_prog_compiler_static='-non_shared'
9201 ;;
9202
9203 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9204 case $cc_basename in
9205 # old Intel for x86_64 which still supported -KPIC.
9206 ecc*)
9207 lt_prog_compiler_wl='-Wl,'
9208 lt_prog_compiler_pic='-KPIC'
9209 lt_prog_compiler_static='-static'
9210 ;;
9211 # icc used to be incompatible with GCC.
9212 # ICC 10 doesn't accept -KPIC any more.
9213 icc* | ifort*)
9214 lt_prog_compiler_wl='-Wl,'
9215 lt_prog_compiler_pic='-fPIC'
9216 lt_prog_compiler_static='-static'
9217 ;;
9218 # Lahey Fortran 8.1.
9219 lf95*)
9220 lt_prog_compiler_wl='-Wl,'
9221 lt_prog_compiler_pic='--shared'
9222 lt_prog_compiler_static='--static'
9223 ;;
9224 nagfor*)
9225 # NAG Fortran compiler
9226 lt_prog_compiler_wl='-Wl,-Wl,,'
9227 lt_prog_compiler_pic='-PIC'
9228 lt_prog_compiler_static='-Bstatic'
9229 ;;
9230 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9231 # Portland Group compilers (*not* the Pentium gcc compiler,
9232 # which looks to be a dead project)
9233 lt_prog_compiler_wl='-Wl,'
9234 lt_prog_compiler_pic='-fpic'
9235 lt_prog_compiler_static='-Bstatic'
9236 ;;
9237 ccc*)
9238 lt_prog_compiler_wl='-Wl,'
9239 # All Alpha code is PIC.
9240 lt_prog_compiler_static='-non_shared'
9241 ;;
9242 xl* | bgxl* | bgf* | mpixl*)
9243 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9244 lt_prog_compiler_wl='-Wl,'
9245 lt_prog_compiler_pic='-qpic'
9246 lt_prog_compiler_static='-qstaticlink'
9247 ;;
9248 *)
9249 case `$CC -V 2>&1 | sed 5q` in
9250 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9251 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9252 lt_prog_compiler_pic='-KPIC'
9253 lt_prog_compiler_static='-Bstatic'
9254 lt_prog_compiler_wl=''
9255 ;;
9256 *Sun\ F* | *Sun*Fortran*)
9257 lt_prog_compiler_pic='-KPIC'
9258 lt_prog_compiler_static='-Bstatic'
9259 lt_prog_compiler_wl='-Qoption ld '
9260 ;;
9261 *Sun\ C*)
9262 # Sun C 5.9
9263 lt_prog_compiler_pic='-KPIC'
9264 lt_prog_compiler_static='-Bstatic'
9265 lt_prog_compiler_wl='-Wl,'
9266 ;;
9267 *Intel*\ [CF]*Compiler*)
9268 lt_prog_compiler_wl='-Wl,'
9269 lt_prog_compiler_pic='-fPIC'
9270 lt_prog_compiler_static='-static'
9271 ;;
9272 *Portland\ Group*)
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_pic='-fpic'
9275 lt_prog_compiler_static='-Bstatic'
9276 ;;
9277 esac
9278 ;;
9279 esac
9280 ;;
9281
9282 newsos6)
9283 lt_prog_compiler_pic='-KPIC'
9284 lt_prog_compiler_static='-Bstatic'
9285 ;;
9286
9287 *nto* | *qnx*)
9288 # QNX uses GNU C++, but need to define -shared option too, otherwise
9289 # it will coredump.
9290 lt_prog_compiler_pic='-fPIC -shared'
9291 ;;
9292
9293 osf3* | osf4* | osf5*)
9294 lt_prog_compiler_wl='-Wl,'
9295 # All OSF/1 code is PIC.
9296 lt_prog_compiler_static='-non_shared'
9297 ;;
9298
9299 rdos*)
9300 lt_prog_compiler_static='-non_shared'
9301 ;;
9302
9303 solaris*)
9304 lt_prog_compiler_pic='-KPIC'
9305 lt_prog_compiler_static='-Bstatic'
9306 case $cc_basename in
9307 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9308 lt_prog_compiler_wl='-Qoption ld ';;
9309 *)
9310 lt_prog_compiler_wl='-Wl,';;
9311 esac
9312 ;;
9313
9314 sunos4*)
9315 lt_prog_compiler_wl='-Qoption ld '
9316 lt_prog_compiler_pic='-PIC'
9317 lt_prog_compiler_static='-Bstatic'
9318 ;;
9319
9320 sysv4 | sysv4.2uw2* | sysv4.3*)
9321 lt_prog_compiler_wl='-Wl,'
9322 lt_prog_compiler_pic='-KPIC'
9323 lt_prog_compiler_static='-Bstatic'
9324 ;;
9325
9326 sysv4*MP*)
9327 if test -d /usr/nec ;then
9328 lt_prog_compiler_pic='-Kconform_pic'
9329 lt_prog_compiler_static='-Bstatic'
9330 fi
9331 ;;
9332
9333 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9334 lt_prog_compiler_wl='-Wl,'
9335 lt_prog_compiler_pic='-KPIC'
9336 lt_prog_compiler_static='-Bstatic'
9337 ;;
9338
9339 unicos*)
9340 lt_prog_compiler_wl='-Wl,'
9341 lt_prog_compiler_can_build_shared=no
9342 ;;
9343
9344 uts4*)
9345 lt_prog_compiler_pic='-pic'
9346 lt_prog_compiler_static='-Bstatic'
9347 ;;
9348
9349 *)
9350 lt_prog_compiler_can_build_shared=no
9351 ;;
9352 esac
9353 fi
9354
9355 case $host_os in
9356 # For platforms which do not support PIC, -DPIC is meaningless:
9357 *djgpp*)
9358 lt_prog_compiler_pic=
9359 ;;
9360 *)
9361 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9362 ;;
9363 esac
9364
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9367 if ${lt_cv_prog_compiler_pic+:} false; then :
9368 $as_echo_n "(cached) " >&6
9369 else
9370 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9371 fi
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9373 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9374 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9375
9376 #
9377 # Check to make sure the PIC flag actually works.
9378 #
9379 if test -n "$lt_prog_compiler_pic"; then
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9381 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9382 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 lt_cv_prog_compiler_pic_works=no
9386 ac_outfile=conftest.$ac_objext
9387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9388 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9389 # Insert the option either (1) after the last *FLAGS variable, or
9390 # (2) before a word containing "conftest.", or (3) at the end.
9391 # Note that $ac_compile itself does not contain backslashes and begins
9392 # with a dollar sign (not a hyphen), so the echo should work correctly.
9393 # The option is referenced via a variable to avoid confusing sed.
9394 lt_compile=`echo "$ac_compile" | $SED \
9395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9397 -e 's:$: $lt_compiler_flag:'`
9398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9399 (eval "$lt_compile" 2>conftest.err)
9400 ac_status=$?
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 if (exit $ac_status) && test -s "$ac_outfile"; then
9404 # The compiler can only warn and ignore the option if not recognized
9405 # So say no if there are warnings other than the usual output.
9406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9409 lt_cv_prog_compiler_pic_works=yes
9410 fi
9411 fi
9412 $RM conftest*
9413
9414 fi
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9416 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9417
9418 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9419 case $lt_prog_compiler_pic in
9420 "" | " "*) ;;
9421 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9422 esac
9423 else
9424 lt_prog_compiler_pic=
9425 lt_prog_compiler_can_build_shared=no
9426 fi
9427
9428 fi
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440 #
9441 # Check to make sure the static flag actually works.
9442 #
9443 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9445 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9446 if ${lt_cv_prog_compiler_static_works+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 lt_cv_prog_compiler_static_works=no
9450 save_LDFLAGS="$LDFLAGS"
9451 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9452 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9454 # The linker can only warn and ignore the option if not recognized
9455 # So say no if there are warnings
9456 if test -s conftest.err; then
9457 # Append any errors to the config.log.
9458 cat conftest.err 1>&5
9459 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9461 if diff conftest.exp conftest.er2 >/dev/null; then
9462 lt_cv_prog_compiler_static_works=yes
9463 fi
9464 else
9465 lt_cv_prog_compiler_static_works=yes
9466 fi
9467 fi
9468 $RM -r conftest*
9469 LDFLAGS="$save_LDFLAGS"
9470
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9473 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9474
9475 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9476 :
9477 else
9478 lt_prog_compiler_static=
9479 fi
9480
9481
9482
9483
9484
9485
9486
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9489 if ${lt_cv_prog_compiler_c_o+:} false; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 lt_cv_prog_compiler_c_o=no
9493 $RM -r conftest 2>/dev/null
9494 mkdir conftest
9495 cd conftest
9496 mkdir out
9497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9498
9499 lt_compiler_flag="-o out/conftest2.$ac_objext"
9500 # Insert the option either (1) after the last *FLAGS variable, or
9501 # (2) before a word containing "conftest.", or (3) at the end.
9502 # Note that $ac_compile itself does not contain backslashes and begins
9503 # with a dollar sign (not a hyphen), so the echo should work correctly.
9504 lt_compile=`echo "$ac_compile" | $SED \
9505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9507 -e 's:$: $lt_compiler_flag:'`
9508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9509 (eval "$lt_compile" 2>out/conftest.err)
9510 ac_status=$?
9511 cat out/conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9514 then
9515 # The compiler can only warn and ignore the option if not recognized
9516 # So say no if there are warnings
9517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9520 lt_cv_prog_compiler_c_o=yes
9521 fi
9522 fi
9523 chmod u+w . 2>&5
9524 $RM conftest*
9525 # SGI C++ compiler will create directory out/ii_files/ for
9526 # template instantiation
9527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9528 $RM out/* && rmdir out
9529 cd ..
9530 $RM -r conftest
9531 $RM conftest*
9532
9533 fi
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9535 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9536
9537
9538
9539
9540
9541
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9543 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9544 if ${lt_cv_prog_compiler_c_o+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 lt_cv_prog_compiler_c_o=no
9548 $RM -r conftest 2>/dev/null
9549 mkdir conftest
9550 cd conftest
9551 mkdir out
9552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9553
9554 lt_compiler_flag="-o out/conftest2.$ac_objext"
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 lt_compile=`echo "$ac_compile" | $SED \
9560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9562 -e 's:$: $lt_compiler_flag:'`
9563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9564 (eval "$lt_compile" 2>out/conftest.err)
9565 ac_status=$?
9566 cat out/conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9569 then
9570 # The compiler can only warn and ignore the option if not recognized
9571 # So say no if there are warnings
9572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9575 lt_cv_prog_compiler_c_o=yes
9576 fi
9577 fi
9578 chmod u+w . 2>&5
9579 $RM conftest*
9580 # SGI C++ compiler will create directory out/ii_files/ for
9581 # template instantiation
9582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9583 $RM out/* && rmdir out
9584 cd ..
9585 $RM -r conftest
9586 $RM conftest*
9587
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9591
9592
9593
9594
9595 hard_links="nottested"
9596 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9597 # do not overwrite the value of need_locks provided by the user
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9599 $as_echo_n "checking if we can lock with hard links... " >&6; }
9600 hard_links=yes
9601 $RM conftest*
9602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9603 touch conftest.a
9604 ln conftest.a conftest.b 2>&5 || hard_links=no
9605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9607 $as_echo "$hard_links" >&6; }
9608 if test "$hard_links" = no; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9610 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9611 need_locks=warn
9612 fi
9613 else
9614 need_locks=no
9615 fi
9616
9617
9618
9619
9620
9621
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9623 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9624
9625 runpath_var=
9626 allow_undefined_flag=
9627 always_export_symbols=no
9628 archive_cmds=
9629 archive_expsym_cmds=
9630 compiler_needs_object=no
9631 enable_shared_with_static_runtimes=no
9632 export_dynamic_flag_spec=
9633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9634 hardcode_automatic=no
9635 hardcode_direct=no
9636 hardcode_direct_absolute=no
9637 hardcode_libdir_flag_spec=
9638 hardcode_libdir_separator=
9639 hardcode_minus_L=no
9640 hardcode_shlibpath_var=unsupported
9641 inherit_rpath=no
9642 link_all_deplibs=unknown
9643 module_cmds=
9644 module_expsym_cmds=
9645 old_archive_from_new_cmds=
9646 old_archive_from_expsyms_cmds=
9647 thread_safe_flag_spec=
9648 whole_archive_flag_spec=
9649 # include_expsyms should be a list of space-separated symbols to be *always*
9650 # included in the symbol list
9651 include_expsyms=
9652 # exclude_expsyms can be an extended regexp of symbols to exclude
9653 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9654 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9655 # as well as any symbol that contains `d'.
9656 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9657 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9658 # platforms (ab)use it in PIC code, but their linkers get confused if
9659 # the symbol is explicitly referenced. Since portable code cannot
9660 # rely on this symbol name, it's probably fine to never include it in
9661 # preloaded symbol tables.
9662 # Exclude shared library initialization/finalization symbols.
9663 extract_expsyms_cmds=
9664
9665 case $host_os in
9666 cygwin* | mingw* | pw32* | cegcc*)
9667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9668 # When not using gcc, we currently assume that we are using
9669 # Microsoft Visual C++.
9670 if test "$GCC" != yes; then
9671 with_gnu_ld=no
9672 fi
9673 ;;
9674 interix*)
9675 # we just hope/assume this is gcc and not c89 (= MSVC++)
9676 with_gnu_ld=yes
9677 ;;
9678 openbsd*)
9679 with_gnu_ld=no
9680 ;;
9681 linux* | k*bsd*-gnu | gnu*)
9682 link_all_deplibs=no
9683 ;;
9684 esac
9685
9686 ld_shlibs=yes
9687
9688 # On some targets, GNU ld is compatible enough with the native linker
9689 # that we're better off using the native interface for both.
9690 lt_use_gnu_ld_interface=no
9691 if test "$with_gnu_ld" = yes; then
9692 case $host_os in
9693 aix*)
9694 # The AIX port of GNU ld has always aspired to compatibility
9695 # with the native linker. However, as the warning in the GNU ld
9696 # block says, versions before 2.19.5* couldn't really create working
9697 # shared libraries, regardless of the interface used.
9698 case `$LD -v 2>&1` in
9699 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9700 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9701 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9702 *)
9703 lt_use_gnu_ld_interface=yes
9704 ;;
9705 esac
9706 ;;
9707 *)
9708 lt_use_gnu_ld_interface=yes
9709 ;;
9710 esac
9711 fi
9712
9713 if test "$lt_use_gnu_ld_interface" = yes; then
9714 # If archive_cmds runs LD, not CC, wlarc should be empty
9715 wlarc='${wl}'
9716
9717 # Set some defaults for GNU ld with shared library support. These
9718 # are reset later if shared libraries are not supported. Putting them
9719 # here allows them to be overridden if necessary.
9720 runpath_var=LD_RUN_PATH
9721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9722 export_dynamic_flag_spec='${wl}--export-dynamic'
9723 # ancient GNU ld didn't support --whole-archive et. al.
9724 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9725 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9726 else
9727 whole_archive_flag_spec=
9728 fi
9729 supports_anon_versioning=no
9730 case `$LD -v 2>&1` in
9731 *GNU\ gold*) supports_anon_versioning=yes ;;
9732 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9733 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9734 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9735 *\ 2.11.*) ;; # other 2.11 versions
9736 *) supports_anon_versioning=yes ;;
9737 esac
9738
9739 # See if GNU ld supports shared libraries.
9740 case $host_os in
9741 aix[3-9]*)
9742 # On AIX/PPC, the GNU linker is very broken
9743 if test "$host_cpu" != ia64; then
9744 ld_shlibs=no
9745 cat <<_LT_EOF 1>&2
9746
9747 *** Warning: the GNU linker, at least up to release 2.19, is reported
9748 *** to be unable to reliably create shared libraries on AIX.
9749 *** Therefore, libtool is disabling shared libraries support. If you
9750 *** really care for shared libraries, you may want to install binutils
9751 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9752 *** You will then need to restart the configuration process.
9753
9754 _LT_EOF
9755 fi
9756 ;;
9757
9758 amigaos*)
9759 case $host_cpu in
9760 powerpc)
9761 # see comment about AmigaOS4 .so support
9762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9763 archive_expsym_cmds=''
9764 ;;
9765 m68k)
9766 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)'
9767 hardcode_libdir_flag_spec='-L$libdir'
9768 hardcode_minus_L=yes
9769 ;;
9770 esac
9771 ;;
9772
9773 beos*)
9774 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9775 allow_undefined_flag=unsupported
9776 # Joseph Beckenbach <[email protected]> says some releases of gcc
9777 # support --undefined. This deserves some investigation. FIXME
9778 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9779 else
9780 ld_shlibs=no
9781 fi
9782 ;;
9783
9784 cygwin* | mingw* | pw32* | cegcc*)
9785 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9786 # as there is no search path for DLLs.
9787 hardcode_libdir_flag_spec='-L$libdir'
9788 export_dynamic_flag_spec='${wl}--export-all-symbols'
9789 allow_undefined_flag=unsupported
9790 always_export_symbols=no
9791 enable_shared_with_static_runtimes=yes
9792 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'
9793 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9794
9795 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9797 # If the export-symbols file already is a .def file (1st line
9798 # is EXPORTS), use it as is; otherwise, prepend...
9799 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9800 cp $export_symbols $output_objdir/$soname.def;
9801 else
9802 echo EXPORTS > $output_objdir/$soname.def;
9803 cat $export_symbols >> $output_objdir/$soname.def;
9804 fi~
9805 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9806 else
9807 ld_shlibs=no
9808 fi
9809 ;;
9810
9811 haiku*)
9812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9813 link_all_deplibs=yes
9814 ;;
9815
9816 interix[3-9]*)
9817 hardcode_direct=no
9818 hardcode_shlibpath_var=no
9819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9820 export_dynamic_flag_spec='${wl}-E'
9821 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9822 # Instead, shared libraries are loaded at an image base (0x10000000 by
9823 # default) and relocated if they conflict, which is a slow very memory
9824 # consuming and fragmenting process. To avoid this, we pick a random,
9825 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9826 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9828 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'
9829 ;;
9830
9831 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9832 tmp_diet=no
9833 if test "$host_os" = linux-dietlibc; then
9834 case $cc_basename in
9835 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9836 esac
9837 fi
9838 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9839 && test "$tmp_diet" = no
9840 then
9841 tmp_addflag=' $pic_flag'
9842 tmp_sharedflag='-shared'
9843 case $cc_basename,$host_cpu in
9844 pgcc*) # Portland Group C compiler
9845 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'
9846 tmp_addflag=' $pic_flag'
9847 ;;
9848 pgf77* | pgf90* | pgf95* | pgfortran*)
9849 # Portland Group f77 and f90 compilers
9850 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'
9851 tmp_addflag=' $pic_flag -Mnomain' ;;
9852 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9853 tmp_addflag=' -i_dynamic' ;;
9854 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9855 tmp_addflag=' -i_dynamic -nofor_main' ;;
9856 ifc* | ifort*) # Intel Fortran compiler
9857 tmp_addflag=' -nofor_main' ;;
9858 lf95*) # Lahey Fortran 8.1
9859 whole_archive_flag_spec=
9860 tmp_sharedflag='--shared' ;;
9861 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9862 tmp_sharedflag='-qmkshrobj'
9863 tmp_addflag= ;;
9864 nvcc*) # Cuda Compiler Driver 2.2
9865 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'
9866 compiler_needs_object=yes
9867 ;;
9868 esac
9869 case `$CC -V 2>&1 | sed 5q` in
9870 *Sun\ C*) # Sun C 5.9
9871 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'
9872 compiler_needs_object=yes
9873 tmp_sharedflag='-G' ;;
9874 *Sun\ F*) # Sun Fortran 8.3
9875 tmp_sharedflag='-G' ;;
9876 esac
9877 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878
9879 if test "x$supports_anon_versioning" = xyes; then
9880 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9881 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9882 echo "local: *; };" >> $output_objdir/$libname.ver~
9883 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9884 fi
9885
9886 case $cc_basename in
9887 xlf* | bgf* | bgxlf* | mpixlf*)
9888 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9889 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9891 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9892 if test "x$supports_anon_versioning" = xyes; then
9893 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9895 echo "local: *; };" >> $output_objdir/$libname.ver~
9896 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9897 fi
9898 ;;
9899 esac
9900 else
9901 ld_shlibs=no
9902 fi
9903 ;;
9904
9905 netbsd* | netbsdelf*-gnu)
9906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9907 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9908 wlarc=
9909 else
9910 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9911 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9912 fi
9913 ;;
9914
9915 solaris*)
9916 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9917 ld_shlibs=no
9918 cat <<_LT_EOF 1>&2
9919
9920 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9921 *** create shared libraries on Solaris systems. Therefore, libtool
9922 *** is disabling shared libraries support. We urge you to upgrade GNU
9923 *** binutils to release 2.9.1 or newer. Another option is to modify
9924 *** your PATH or compiler configuration so that the native linker is
9925 *** used, and then restart.
9926
9927 _LT_EOF
9928 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9929 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9930 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9931 else
9932 ld_shlibs=no
9933 fi
9934 ;;
9935
9936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9937 case `$LD -v 2>&1` in
9938 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9939 ld_shlibs=no
9940 cat <<_LT_EOF 1>&2
9941
9942 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9943 *** reliably create shared libraries on SCO systems. Therefore, libtool
9944 *** is disabling shared libraries support. We urge you to upgrade GNU
9945 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9946 *** your PATH or compiler configuration so that the native linker is
9947 *** used, and then restart.
9948
9949 _LT_EOF
9950 ;;
9951 *)
9952 # For security reasons, it is highly recommended that you always
9953 # use absolute paths for naming shared libraries, and exclude the
9954 # DT_RUNPATH tag from executables and libraries. But doing so
9955 # requires that you compile everything twice, which is a pain.
9956 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9959 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9960 else
9961 ld_shlibs=no
9962 fi
9963 ;;
9964 esac
9965 ;;
9966
9967 sunos4*)
9968 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9969 wlarc=
9970 hardcode_direct=yes
9971 hardcode_shlibpath_var=no
9972 ;;
9973
9974 *)
9975 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9976 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9977 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9978 else
9979 ld_shlibs=no
9980 fi
9981 ;;
9982 esac
9983
9984 if test "$ld_shlibs" = no; then
9985 runpath_var=
9986 hardcode_libdir_flag_spec=
9987 export_dynamic_flag_spec=
9988 whole_archive_flag_spec=
9989 fi
9990 else
9991 # PORTME fill in a description of your system's linker (not GNU ld)
9992 case $host_os in
9993 aix3*)
9994 allow_undefined_flag=unsupported
9995 always_export_symbols=yes
9996 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'
9997 # Note: this linker hardcodes the directories in LIBPATH if there
9998 # are no directories specified by -L.
9999 hardcode_minus_L=yes
10000 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10001 # Neither direct hardcoding nor static linking is supported with a
10002 # broken collect2.
10003 hardcode_direct=unsupported
10004 fi
10005 ;;
10006
10007 aix[4-9]*)
10008 if test "$host_cpu" = ia64; then
10009 # On IA64, the linker does run time linking by default, so we don't
10010 # have to do anything special.
10011 aix_use_runtimelinking=no
10012 exp_sym_flag='-Bexport'
10013 no_entry_flag=""
10014 else
10015 # If we're using GNU nm, then we don't want the "-C" option.
10016 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10017 # Also, AIX nm treats weak defined symbols like other global
10018 # defined symbols, whereas GNU nm marks them as "W".
10019 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10020 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'
10021 else
10022 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'
10023 fi
10024 aix_use_runtimelinking=no
10025
10026 # Test if we are trying to use run time linking or normal
10027 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10028 # need to do runtime linking.
10029 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10030 for ld_flag in $LDFLAGS; do
10031 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10032 aix_use_runtimelinking=yes
10033 break
10034 fi
10035 done
10036 ;;
10037 esac
10038
10039 exp_sym_flag='-bexport'
10040 no_entry_flag='-bnoentry'
10041 fi
10042
10043 # When large executables or shared objects are built, AIX ld can
10044 # have problems creating the table of contents. If linking a library
10045 # or program results in "error TOC overflow" add -mminimal-toc to
10046 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10047 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10048
10049 archive_cmds=''
10050 hardcode_direct=yes
10051 hardcode_direct_absolute=yes
10052 hardcode_libdir_separator=':'
10053 link_all_deplibs=yes
10054 file_list_spec='${wl}-f,'
10055
10056 if test "$GCC" = yes; then
10057 case $host_os in aix4.[012]|aix4.[012].*)
10058 # We only want to do this on AIX 4.2 and lower, the check
10059 # below for broken collect2 doesn't work under 4.3+
10060 collect2name=`${CC} -print-prog-name=collect2`
10061 if test -f "$collect2name" &&
10062 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10063 then
10064 # We have reworked collect2
10065 :
10066 else
10067 # We have old collect2
10068 hardcode_direct=unsupported
10069 # It fails to find uninstalled libraries when the uninstalled
10070 # path is not listed in the libpath. Setting hardcode_minus_L
10071 # to unsupported forces relinking
10072 hardcode_minus_L=yes
10073 hardcode_libdir_flag_spec='-L$libdir'
10074 hardcode_libdir_separator=
10075 fi
10076 ;;
10077 esac
10078 shared_flag='-shared'
10079 if test "$aix_use_runtimelinking" = yes; then
10080 shared_flag="$shared_flag "'${wl}-G'
10081 fi
10082 link_all_deplibs=no
10083 else
10084 # not using gcc
10085 if test "$host_cpu" = ia64; then
10086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10087 # chokes on -Wl,-G. The following line is correct:
10088 shared_flag='-G'
10089 else
10090 if test "$aix_use_runtimelinking" = yes; then
10091 shared_flag='${wl}-G'
10092 else
10093 shared_flag='${wl}-bM:SRE'
10094 fi
10095 fi
10096 fi
10097
10098 export_dynamic_flag_spec='${wl}-bexpall'
10099 # It seems that -bexpall does not export symbols beginning with
10100 # underscore (_), so it is better to generate a list of symbols to export.
10101 always_export_symbols=yes
10102 if test "$aix_use_runtimelinking" = yes; then
10103 # Warning - without using the other runtime loading flags (-brtl),
10104 # -berok will link without error, but may produce a broken library.
10105 allow_undefined_flag='-berok'
10106 # Determine the default libpath from the value encoded in an
10107 # empty executable.
10108 if test "${lt_cv_aix_libpath+set}" = set; then
10109 aix_libpath=$lt_cv_aix_libpath
10110 else
10111 if ${lt_cv_aix_libpath_+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10116
10117 int
10118 main ()
10119 {
10120
10121 ;
10122 return 0;
10123 }
10124 _ACEOF
10125 if ac_fn_c_try_link "$LINENO"; then :
10126
10127 lt_aix_libpath_sed='
10128 /Import File Strings/,/^$/ {
10129 /^0/ {
10130 s/^0 *\([^ ]*\) *$/\1/
10131 p
10132 }
10133 }'
10134 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10135 # Check for a 64-bit object if we didn't find anything.
10136 if test -z "$lt_cv_aix_libpath_"; then
10137 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10138 fi
10139 fi
10140 rm -f core conftest.err conftest.$ac_objext \
10141 conftest$ac_exeext conftest.$ac_ext
10142 if test -z "$lt_cv_aix_libpath_"; then
10143 lt_cv_aix_libpath_="/usr/lib:/lib"
10144 fi
10145
10146 fi
10147
10148 aix_libpath=$lt_cv_aix_libpath_
10149 fi
10150
10151 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10152 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"
10153 else
10154 if test "$host_cpu" = ia64; then
10155 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10156 allow_undefined_flag="-z nodefs"
10157 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"
10158 else
10159 # Determine the default libpath from the value encoded in an
10160 # empty executable.
10161 if test "${lt_cv_aix_libpath+set}" = set; then
10162 aix_libpath=$lt_cv_aix_libpath
10163 else
10164 if ${lt_cv_aix_libpath_+:} false; then :
10165 $as_echo_n "(cached) " >&6
10166 else
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10169
10170 int
10171 main ()
10172 {
10173
10174 ;
10175 return 0;
10176 }
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then :
10179
10180 lt_aix_libpath_sed='
10181 /Import File Strings/,/^$/ {
10182 /^0/ {
10183 s/^0 *\([^ ]*\) *$/\1/
10184 p
10185 }
10186 }'
10187 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10188 # Check for a 64-bit object if we didn't find anything.
10189 if test -z "$lt_cv_aix_libpath_"; then
10190 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10191 fi
10192 fi
10193 rm -f core conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext conftest.$ac_ext
10195 if test -z "$lt_cv_aix_libpath_"; then
10196 lt_cv_aix_libpath_="/usr/lib:/lib"
10197 fi
10198
10199 fi
10200
10201 aix_libpath=$lt_cv_aix_libpath_
10202 fi
10203
10204 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10205 # Warning - without using the other run time loading flags,
10206 # -berok will link without error, but may produce a broken library.
10207 no_undefined_flag=' ${wl}-bernotok'
10208 allow_undefined_flag=' ${wl}-berok'
10209 if test "$with_gnu_ld" = yes; then
10210 # We only use this code for GNU lds that support --whole-archive.
10211 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10212 else
10213 # Exported symbols can be pulled into shared objects from archives
10214 whole_archive_flag_spec='$convenience'
10215 fi
10216 archive_cmds_need_lc=yes
10217 # This is similar to how AIX traditionally builds its shared libraries.
10218 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'
10219 fi
10220 fi
10221 ;;
10222
10223 amigaos*)
10224 case $host_cpu in
10225 powerpc)
10226 # see comment about AmigaOS4 .so support
10227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10228 archive_expsym_cmds=''
10229 ;;
10230 m68k)
10231 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)'
10232 hardcode_libdir_flag_spec='-L$libdir'
10233 hardcode_minus_L=yes
10234 ;;
10235 esac
10236 ;;
10237
10238 bsdi[45]*)
10239 export_dynamic_flag_spec=-rdynamic
10240 ;;
10241
10242 cygwin* | mingw* | pw32* | cegcc*)
10243 # When not using gcc, we currently assume that we are using
10244 # Microsoft Visual C++.
10245 # hardcode_libdir_flag_spec is actually meaningless, as there is
10246 # no search path for DLLs.
10247 case $cc_basename in
10248 cl*)
10249 # Native MSVC
10250 hardcode_libdir_flag_spec=' '
10251 allow_undefined_flag=unsupported
10252 always_export_symbols=yes
10253 file_list_spec='@'
10254 # Tell ltmain to make .lib files, not .a files.
10255 libext=lib
10256 # Tell ltmain to make .dll files, not .so files.
10257 shrext_cmds=".dll"
10258 # FIXME: Setting linknames here is a bad hack.
10259 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10260 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10261 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10262 else
10263 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10264 fi~
10265 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10266 linknames='
10267 # The linker will not automatically build a static lib if we build a DLL.
10268 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10269 enable_shared_with_static_runtimes=yes
10270 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10271 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10272 # Don't use ranlib
10273 old_postinstall_cmds='chmod 644 $oldlib'
10274 postlink_cmds='lt_outputfile="@OUTPUT@"~
10275 lt_tool_outputfile="@TOOL_OUTPUT@"~
10276 case $lt_outputfile in
10277 *.exe|*.EXE) ;;
10278 *)
10279 lt_outputfile="$lt_outputfile.exe"
10280 lt_tool_outputfile="$lt_tool_outputfile.exe"
10281 ;;
10282 esac~
10283 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10284 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10285 $RM "$lt_outputfile.manifest";
10286 fi'
10287 ;;
10288 *)
10289 # Assume MSVC wrapper
10290 hardcode_libdir_flag_spec=' '
10291 allow_undefined_flag=unsupported
10292 # Tell ltmain to make .lib files, not .a files.
10293 libext=lib
10294 # Tell ltmain to make .dll files, not .so files.
10295 shrext_cmds=".dll"
10296 # FIXME: Setting linknames here is a bad hack.
10297 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10298 # The linker will automatically build a .lib file if we build a DLL.
10299 old_archive_from_new_cmds='true'
10300 # FIXME: Should let the user specify the lib program.
10301 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10302 enable_shared_with_static_runtimes=yes
10303 ;;
10304 esac
10305 ;;
10306
10307 darwin* | rhapsody*)
10308
10309
10310 archive_cmds_need_lc=no
10311 hardcode_direct=no
10312 hardcode_automatic=yes
10313 hardcode_shlibpath_var=unsupported
10314 if test "$lt_cv_ld_force_load" = "yes"; then
10315 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\"`'
10316
10317 else
10318 whole_archive_flag_spec=''
10319 fi
10320 link_all_deplibs=yes
10321 allow_undefined_flag="$_lt_dar_allow_undefined"
10322 case $cc_basename in
10323 ifort*) _lt_dar_can_shared=yes ;;
10324 *) _lt_dar_can_shared=$GCC ;;
10325 esac
10326 if test "$_lt_dar_can_shared" = "yes"; then
10327 output_verbose_link_cmd=func_echo_all
10328 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10329 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10330 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}"
10331 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}"
10332
10333 else
10334 ld_shlibs=no
10335 fi
10336
10337 ;;
10338
10339 dgux*)
10340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10341 hardcode_libdir_flag_spec='-L$libdir'
10342 hardcode_shlibpath_var=no
10343 ;;
10344
10345 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10346 # support. Future versions do this automatically, but an explicit c++rt0.o
10347 # does not break anything, and helps significantly (at the cost of a little
10348 # extra space).
10349 freebsd2.2*)
10350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10351 hardcode_libdir_flag_spec='-R$libdir'
10352 hardcode_direct=yes
10353 hardcode_shlibpath_var=no
10354 ;;
10355
10356 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10357 freebsd2.*)
10358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10359 hardcode_direct=yes
10360 hardcode_minus_L=yes
10361 hardcode_shlibpath_var=no
10362 ;;
10363
10364 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10365 freebsd* | dragonfly*)
10366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10367 hardcode_libdir_flag_spec='-R$libdir'
10368 hardcode_direct=yes
10369 hardcode_shlibpath_var=no
10370 ;;
10371
10372 hpux9*)
10373 if test "$GCC" = yes; then
10374 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'
10375 else
10376 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'
10377 fi
10378 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10379 hardcode_libdir_separator=:
10380 hardcode_direct=yes
10381
10382 # hardcode_minus_L: Not really in the search PATH,
10383 # but as the default location of the library.
10384 hardcode_minus_L=yes
10385 export_dynamic_flag_spec='${wl}-E'
10386 ;;
10387
10388 hpux10*)
10389 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10390 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10391 else
10392 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10393 fi
10394 if test "$with_gnu_ld" = no; then
10395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10396 hardcode_libdir_separator=:
10397 hardcode_direct=yes
10398 hardcode_direct_absolute=yes
10399 export_dynamic_flag_spec='${wl}-E'
10400 # hardcode_minus_L: Not really in the search PATH,
10401 # but as the default location of the library.
10402 hardcode_minus_L=yes
10403 fi
10404 ;;
10405
10406 hpux11*)
10407 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10408 case $host_cpu in
10409 hppa*64*)
10410 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10411 ;;
10412 ia64*)
10413 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10414 ;;
10415 *)
10416 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10417 ;;
10418 esac
10419 else
10420 case $host_cpu in
10421 hppa*64*)
10422 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10423 ;;
10424 ia64*)
10425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10426 ;;
10427 *)
10428
10429 # Older versions of the 11.00 compiler do not understand -b yet
10430 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10432 $as_echo_n "checking if $CC understands -b... " >&6; }
10433 if ${lt_cv_prog_compiler__b+:} false; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 lt_cv_prog_compiler__b=no
10437 save_LDFLAGS="$LDFLAGS"
10438 LDFLAGS="$LDFLAGS -b"
10439 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10441 # The linker can only warn and ignore the option if not recognized
10442 # So say no if there are warnings
10443 if test -s conftest.err; then
10444 # Append any errors to the config.log.
10445 cat conftest.err 1>&5
10446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10448 if diff conftest.exp conftest.er2 >/dev/null; then
10449 lt_cv_prog_compiler__b=yes
10450 fi
10451 else
10452 lt_cv_prog_compiler__b=yes
10453 fi
10454 fi
10455 $RM -r conftest*
10456 LDFLAGS="$save_LDFLAGS"
10457
10458 fi
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10460 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10461
10462 if test x"$lt_cv_prog_compiler__b" = xyes; then
10463 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10464 else
10465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10466 fi
10467
10468 ;;
10469 esac
10470 fi
10471 if test "$with_gnu_ld" = no; then
10472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10473 hardcode_libdir_separator=:
10474
10475 case $host_cpu in
10476 hppa*64*|ia64*)
10477 hardcode_direct=no
10478 hardcode_shlibpath_var=no
10479 ;;
10480 *)
10481 hardcode_direct=yes
10482 hardcode_direct_absolute=yes
10483 export_dynamic_flag_spec='${wl}-E'
10484
10485 # hardcode_minus_L: Not really in the search PATH,
10486 # but as the default location of the library.
10487 hardcode_minus_L=yes
10488 ;;
10489 esac
10490 fi
10491 ;;
10492
10493 irix5* | irix6* | nonstopux*)
10494 if test "$GCC" = yes; then
10495 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'
10496 # Try to use the -exported_symbol ld option, if it does not
10497 # work, assume that -exports_file does not work either and
10498 # implicitly export all symbols.
10499 # This should be the same for all languages, so no per-tag cache variable.
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10501 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10502 if ${lt_cv_irix_exported_symbol+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 save_LDFLAGS="$LDFLAGS"
10506 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 int foo (void) { return 0; }
10510 _ACEOF
10511 if ac_fn_c_try_link "$LINENO"; then :
10512 lt_cv_irix_exported_symbol=yes
10513 else
10514 lt_cv_irix_exported_symbol=no
10515 fi
10516 rm -f core conftest.err conftest.$ac_objext \
10517 conftest$ac_exeext conftest.$ac_ext
10518 LDFLAGS="$save_LDFLAGS"
10519 fi
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10521 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10522 if test "$lt_cv_irix_exported_symbol" = yes; then
10523 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'
10524 fi
10525 else
10526 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'
10527 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'
10528 fi
10529 archive_cmds_need_lc='no'
10530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10531 hardcode_libdir_separator=:
10532 inherit_rpath=yes
10533 link_all_deplibs=yes
10534 ;;
10535
10536 netbsd* | netbsdelf*-gnu)
10537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10539 else
10540 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10541 fi
10542 hardcode_libdir_flag_spec='-R$libdir'
10543 hardcode_direct=yes
10544 hardcode_shlibpath_var=no
10545 ;;
10546
10547 newsos6)
10548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10549 hardcode_direct=yes
10550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10551 hardcode_libdir_separator=:
10552 hardcode_shlibpath_var=no
10553 ;;
10554
10555 *nto* | *qnx*)
10556 ;;
10557
10558 openbsd*)
10559 if test -f /usr/libexec/ld.so; then
10560 hardcode_direct=yes
10561 hardcode_shlibpath_var=no
10562 hardcode_direct_absolute=yes
10563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10565 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10567 export_dynamic_flag_spec='${wl}-E'
10568 else
10569 case $host_os in
10570 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10572 hardcode_libdir_flag_spec='-R$libdir'
10573 ;;
10574 *)
10575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10576 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10577 ;;
10578 esac
10579 fi
10580 else
10581 ld_shlibs=no
10582 fi
10583 ;;
10584
10585 os2*)
10586 hardcode_libdir_flag_spec='-L$libdir'
10587 hardcode_minus_L=yes
10588 allow_undefined_flag=unsupported
10589 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'
10590 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10591 ;;
10592
10593 osf3*)
10594 if test "$GCC" = yes; then
10595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10596 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'
10597 else
10598 allow_undefined_flag=' -expect_unresolved \*'
10599 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'
10600 fi
10601 archive_cmds_need_lc='no'
10602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10603 hardcode_libdir_separator=:
10604 ;;
10605
10606 osf4* | osf5*) # as osf3* with the addition of -msym flag
10607 if test "$GCC" = yes; then
10608 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10609 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'
10610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10611 else
10612 allow_undefined_flag=' -expect_unresolved \*'
10613 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'
10614 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~
10615 $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'
10616
10617 # Both c and cxx compiler support -rpath directly
10618 hardcode_libdir_flag_spec='-rpath $libdir'
10619 fi
10620 archive_cmds_need_lc='no'
10621 hardcode_libdir_separator=:
10622 ;;
10623
10624 solaris*)
10625 no_undefined_flag=' -z defs'
10626 if test "$GCC" = yes; then
10627 wlarc='${wl}'
10628 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10630 $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'
10631 else
10632 case `$CC -V 2>&1` in
10633 *"Compilers 5.0"*)
10634 wlarc=''
10635 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10637 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10638 ;;
10639 *)
10640 wlarc='${wl}'
10641 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10643 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10644 ;;
10645 esac
10646 fi
10647 hardcode_libdir_flag_spec='-R$libdir'
10648 hardcode_shlibpath_var=no
10649 case $host_os in
10650 solaris2.[0-5] | solaris2.[0-5].*) ;;
10651 *)
10652 # The compiler driver will combine and reorder linker options,
10653 # but understands `-z linker_flag'. GCC discards it without `$wl',
10654 # but is careful enough not to reorder.
10655 # Supported since Solaris 2.6 (maybe 2.5.1?)
10656 if test "$GCC" = yes; then
10657 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10658 else
10659 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10660 fi
10661 ;;
10662 esac
10663 link_all_deplibs=yes
10664 ;;
10665
10666 sunos4*)
10667 if test "x$host_vendor" = xsequent; then
10668 # Use $CC to link under sequent, because it throws in some extra .o
10669 # files that make .init and .fini sections work.
10670 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10671 else
10672 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10673 fi
10674 hardcode_libdir_flag_spec='-L$libdir'
10675 hardcode_direct=yes
10676 hardcode_minus_L=yes
10677 hardcode_shlibpath_var=no
10678 ;;
10679
10680 sysv4)
10681 case $host_vendor in
10682 sni)
10683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10684 hardcode_direct=yes # is this really true???
10685 ;;
10686 siemens)
10687 ## LD is ld it makes a PLAMLIB
10688 ## CC just makes a GrossModule.
10689 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10690 reload_cmds='$CC -r -o $output$reload_objs'
10691 hardcode_direct=no
10692 ;;
10693 motorola)
10694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10695 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10696 ;;
10697 esac
10698 runpath_var='LD_RUN_PATH'
10699 hardcode_shlibpath_var=no
10700 ;;
10701
10702 sysv4.3*)
10703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10704 hardcode_shlibpath_var=no
10705 export_dynamic_flag_spec='-Bexport'
10706 ;;
10707
10708 sysv4*MP*)
10709 if test -d /usr/nec; then
10710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711 hardcode_shlibpath_var=no
10712 runpath_var=LD_RUN_PATH
10713 hardcode_runpath_var=yes
10714 ld_shlibs=yes
10715 fi
10716 ;;
10717
10718 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10719 no_undefined_flag='${wl}-z,text'
10720 archive_cmds_need_lc=no
10721 hardcode_shlibpath_var=no
10722 runpath_var='LD_RUN_PATH'
10723
10724 if test "$GCC" = yes; then
10725 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10726 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10727 else
10728 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10729 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10730 fi
10731 ;;
10732
10733 sysv5* | sco3.2v5* | sco5v6*)
10734 # Note: We can NOT use -z defs as we might desire, because we do not
10735 # link with -lc, and that would cause any symbols used from libc to
10736 # always be unresolved, which means just about no library would
10737 # ever link correctly. If we're not using GNU ld we use -z text
10738 # though, which does catch some bad symbols but isn't as heavy-handed
10739 # as -z defs.
10740 no_undefined_flag='${wl}-z,text'
10741 allow_undefined_flag='${wl}-z,nodefs'
10742 archive_cmds_need_lc=no
10743 hardcode_shlibpath_var=no
10744 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10745 hardcode_libdir_separator=':'
10746 link_all_deplibs=yes
10747 export_dynamic_flag_spec='${wl}-Bexport'
10748 runpath_var='LD_RUN_PATH'
10749
10750 if test "$GCC" = yes; then
10751 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10753 else
10754 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10756 fi
10757 ;;
10758
10759 uts4*)
10760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10761 hardcode_libdir_flag_spec='-L$libdir'
10762 hardcode_shlibpath_var=no
10763 ;;
10764
10765 *)
10766 ld_shlibs=no
10767 ;;
10768 esac
10769
10770 if test x$host_vendor = xsni; then
10771 case $host in
10772 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10773 export_dynamic_flag_spec='${wl}-Blargedynsym'
10774 ;;
10775 esac
10776 fi
10777 fi
10778
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10780 $as_echo "$ld_shlibs" >&6; }
10781 test "$ld_shlibs" = no && can_build_shared=no
10782
10783 with_gnu_ld=$with_gnu_ld
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799 #
10800 # Do we need to explicitly link libc?
10801 #
10802 case "x$archive_cmds_need_lc" in
10803 x|xyes)
10804 # Assume -lc should be added
10805 archive_cmds_need_lc=yes
10806
10807 if test "$enable_shared" = yes && test "$GCC" = yes; then
10808 case $archive_cmds in
10809 *'~'*)
10810 # FIXME: we may have to deal with multi-command sequences.
10811 ;;
10812 '$CC '*)
10813 # Test whether the compiler implicitly links with -lc since on some
10814 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10815 # to ld, don't add -lc before -lgcc.
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10817 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10818 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821 $RM conftest*
10822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10823
10824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10825 (eval $ac_compile) 2>&5
10826 ac_status=$?
10827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10828 test $ac_status = 0; } 2>conftest.err; then
10829 soname=conftest
10830 lib=conftest
10831 libobjs=conftest.$ac_objext
10832 deplibs=
10833 wl=$lt_prog_compiler_wl
10834 pic_flag=$lt_prog_compiler_pic
10835 compiler_flags=-v
10836 linker_flags=-v
10837 verstring=
10838 output_objdir=.
10839 libname=conftest
10840 lt_save_allow_undefined_flag=$allow_undefined_flag
10841 allow_undefined_flag=
10842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10843 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10844 ac_status=$?
10845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10846 test $ac_status = 0; }
10847 then
10848 lt_cv_archive_cmds_need_lc=no
10849 else
10850 lt_cv_archive_cmds_need_lc=yes
10851 fi
10852 allow_undefined_flag=$lt_save_allow_undefined_flag
10853 else
10854 cat conftest.err 1>&5
10855 fi
10856 $RM conftest*
10857
10858 fi
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10860 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10861 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10862 ;;
10863 esac
10864 fi
10865 ;;
10866 esac
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11020 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11021
11022 if test "$GCC" = yes; then
11023 case $host_os in
11024 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11025 *) lt_awk_arg="/^libraries:/" ;;
11026 esac
11027 case $host_os in
11028 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11029 *) lt_sed_strip_eq="s,=/,/,g" ;;
11030 esac
11031 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11032 case $lt_search_path_spec in
11033 *\;*)
11034 # if the path contains ";" then we assume it to be the separator
11035 # otherwise default to the standard path separator (i.e. ":") - it is
11036 # assumed that no part of a normal pathname contains ";" but that should
11037 # okay in the real world where ";" in dirpaths is itself problematic.
11038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11039 ;;
11040 *)
11041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11042 ;;
11043 esac
11044 # Ok, now we have the path, separated by spaces, we can step through it
11045 # and add multilib dir if necessary.
11046 lt_tmp_lt_search_path_spec=
11047 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11048 for lt_sys_path in $lt_search_path_spec; do
11049 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11051 else
11052 test -d "$lt_sys_path" && \
11053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11054 fi
11055 done
11056 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11057 BEGIN {RS=" "; FS="/|\n";} {
11058 lt_foo="";
11059 lt_count=0;
11060 for (lt_i = NF; lt_i > 0; lt_i--) {
11061 if ($lt_i != "" && $lt_i != ".") {
11062 if ($lt_i == "..") {
11063 lt_count++;
11064 } else {
11065 if (lt_count == 0) {
11066 lt_foo="/" $lt_i lt_foo;
11067 } else {
11068 lt_count--;
11069 }
11070 }
11071 }
11072 }
11073 if (lt_foo != "") { lt_freq[lt_foo]++; }
11074 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11075 }'`
11076 # AWK program above erroneously prepends '/' to C:/dos/paths
11077 # for these hosts.
11078 case $host_os in
11079 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11080 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11081 esac
11082 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11083 else
11084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11085 fi
11086 library_names_spec=
11087 libname_spec='lib$name'
11088 soname_spec=
11089 shrext_cmds=".so"
11090 postinstall_cmds=
11091 postuninstall_cmds=
11092 finish_cmds=
11093 finish_eval=
11094 shlibpath_var=
11095 shlibpath_overrides_runpath=unknown
11096 version_type=none
11097 dynamic_linker="$host_os ld.so"
11098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11099 need_lib_prefix=unknown
11100 hardcode_into_libs=no
11101
11102 # when you set need_version to no, make sure it does not cause -set_version
11103 # flags to be left without arguments
11104 need_version=unknown
11105
11106 case $host_os in
11107 aix3*)
11108 version_type=linux # correct to gnu/linux during the next big refactor
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11110 shlibpath_var=LIBPATH
11111
11112 # AIX 3 has no versioning support, so we append a major version to the name.
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 ;;
11115
11116 aix[4-9]*)
11117 version_type=linux # correct to gnu/linux during the next big refactor
11118 need_lib_prefix=no
11119 need_version=no
11120 hardcode_into_libs=yes
11121 if test "$host_cpu" = ia64; then
11122 # AIX 5 supports IA64
11123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 else
11126 # With GCC up to 2.95.x, collect2 would create an import file
11127 # for dependence libraries. The import file would start with
11128 # the line `#! .'. This would cause the generated library to
11129 # depend on `.', always an invalid library. This was fixed in
11130 # development snapshots of GCC prior to 3.0.
11131 case $host_os in
11132 aix4 | aix4.[01] | aix4.[01].*)
11133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11134 echo ' yes '
11135 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11136 :
11137 else
11138 can_build_shared=no
11139 fi
11140 ;;
11141 esac
11142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11143 # soname into executable. Probably we can add versioning support to
11144 # collect2, so additional links can be useful in future.
11145 if test "$aix_use_runtimelinking" = yes; then
11146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11147 # instead of lib<name>.a to let people know that these are not
11148 # typical AIX shared libraries.
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11150 else
11151 # We preserve .a as extension for shared libraries through AIX4.2
11152 # and later when we are not doing run time linking.
11153 library_names_spec='${libname}${release}.a $libname.a'
11154 soname_spec='${libname}${release}${shared_ext}$major'
11155 fi
11156 shlibpath_var=LIBPATH
11157 fi
11158 ;;
11159
11160 amigaos*)
11161 case $host_cpu in
11162 powerpc)
11163 # Since July 2007 AmigaOS4 officially supports .so libraries.
11164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166 ;;
11167 m68k)
11168 library_names_spec='$libname.ixlibrary $libname.a'
11169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11170 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'
11171 ;;
11172 esac
11173 ;;
11174
11175 beos*)
11176 library_names_spec='${libname}${shared_ext}'
11177 dynamic_linker="$host_os ld.so"
11178 shlibpath_var=LIBRARY_PATH
11179 ;;
11180
11181 bsdi[45]*)
11182 version_type=linux # correct to gnu/linux during the next big refactor
11183 need_version=no
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11190 # the default ld.so.conf also contains /usr/contrib/lib and
11191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11192 # libtool to hard-code these into programs
11193 ;;
11194
11195 cygwin* | mingw* | pw32* | cegcc*)
11196 version_type=windows
11197 shrext_cmds=".dll"
11198 need_version=no
11199 need_lib_prefix=no
11200
11201 case $GCC,$cc_basename in
11202 yes,*)
11203 # gcc
11204 library_names_spec='$libname.dll.a'
11205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11206 postinstall_cmds='base_file=`basename \${file}`~
11207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11208 dldir=$destdir/`dirname \$dlpath`~
11209 test -d \$dldir || mkdir -p \$dldir~
11210 $install_prog $dir/$dlname \$dldir/$dlname~
11211 chmod a+x \$dldir/$dlname~
11212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11214 fi'
11215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11216 dlpath=$dir/\$dldll~
11217 $RM \$dlpath'
11218 shlibpath_overrides_runpath=yes
11219
11220 case $host_os in
11221 cygwin*)
11222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11224
11225 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11226 ;;
11227 mingw* | cegcc*)
11228 # MinGW DLLs use traditional 'lib' prefix
11229 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11230 ;;
11231 pw32*)
11232 # pw32 DLLs use 'pw' prefix rather than 'lib'
11233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11234 ;;
11235 esac
11236 dynamic_linker='Win32 ld.exe'
11237 ;;
11238
11239 *,cl*)
11240 # Native MSVC
11241 libname_spec='$name'
11242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11243 library_names_spec='${libname}.dll.lib'
11244
11245 case $build_os in
11246 mingw*)
11247 sys_lib_search_path_spec=
11248 lt_save_ifs=$IFS
11249 IFS=';'
11250 for lt_path in $LIB
11251 do
11252 IFS=$lt_save_ifs
11253 # Let DOS variable expansion print the short 8.3 style file name.
11254 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11255 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11256 done
11257 IFS=$lt_save_ifs
11258 # Convert to MSYS style.
11259 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11260 ;;
11261 cygwin*)
11262 # Convert to unix form, then to dos form, then back to unix form
11263 # but this time dos style (no spaces!) so that the unix form looks
11264 # like /cygdrive/c/PROGRA~1:/cygdr...
11265 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11266 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11267 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11268 ;;
11269 *)
11270 sys_lib_search_path_spec="$LIB"
11271 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11272 # It is most probably a Windows format PATH.
11273 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11274 else
11275 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11276 fi
11277 # FIXME: find the short name or the path components, as spaces are
11278 # common. (e.g. "Program Files" -> "PROGRA~1")
11279 ;;
11280 esac
11281
11282 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11283 postinstall_cmds='base_file=`basename \${file}`~
11284 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11285 dldir=$destdir/`dirname \$dlpath`~
11286 test -d \$dldir || mkdir -p \$dldir~
11287 $install_prog $dir/$dlname \$dldir/$dlname'
11288 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11289 dlpath=$dir/\$dldll~
11290 $RM \$dlpath'
11291 shlibpath_overrides_runpath=yes
11292 dynamic_linker='Win32 link.exe'
11293 ;;
11294
11295 *)
11296 # Assume MSVC wrapper
11297 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11298 dynamic_linker='Win32 ld.exe'
11299 ;;
11300 esac
11301 # FIXME: first we should search . and the directory the executable is in
11302 shlibpath_var=PATH
11303 ;;
11304
11305 darwin* | rhapsody*)
11306 dynamic_linker="$host_os dyld"
11307 version_type=darwin
11308 need_lib_prefix=no
11309 need_version=no
11310 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11311 soname_spec='${libname}${release}${major}$shared_ext'
11312 shlibpath_overrides_runpath=yes
11313 shlibpath_var=DYLD_LIBRARY_PATH
11314 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11315
11316 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11317 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11318 ;;
11319
11320 dgux*)
11321 version_type=linux # correct to gnu/linux during the next big refactor
11322 need_lib_prefix=no
11323 need_version=no
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11325 soname_spec='${libname}${release}${shared_ext}$major'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 ;;
11328
11329 freebsd* | dragonfly*)
11330 # DragonFly does not have aout. When/if they implement a new
11331 # versioning mechanism, adjust this.
11332 if test -x /usr/bin/objformat; then
11333 objformat=`/usr/bin/objformat`
11334 else
11335 case $host_os in
11336 freebsd[23].*) objformat=aout ;;
11337 *) objformat=elf ;;
11338 esac
11339 fi
11340 version_type=freebsd-$objformat
11341 case $version_type in
11342 freebsd-elf*)
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11344 need_version=no
11345 need_lib_prefix=no
11346 ;;
11347 freebsd-*)
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11349 need_version=yes
11350 ;;
11351 esac
11352 shlibpath_var=LD_LIBRARY_PATH
11353 case $host_os in
11354 freebsd2.*)
11355 shlibpath_overrides_runpath=yes
11356 ;;
11357 freebsd3.[01]* | freebsdelf3.[01]*)
11358 shlibpath_overrides_runpath=yes
11359 hardcode_into_libs=yes
11360 ;;
11361 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11362 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11363 shlibpath_overrides_runpath=no
11364 hardcode_into_libs=yes
11365 ;;
11366 *) # from 4.6 on, and DragonFly
11367 shlibpath_overrides_runpath=yes
11368 hardcode_into_libs=yes
11369 ;;
11370 esac
11371 ;;
11372
11373 haiku*)
11374 version_type=linux # correct to gnu/linux during the next big refactor
11375 need_lib_prefix=no
11376 need_version=no
11377 dynamic_linker="$host_os runtime_loader"
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 shlibpath_var=LIBRARY_PATH
11381 shlibpath_overrides_runpath=yes
11382 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11383 hardcode_into_libs=yes
11384 ;;
11385
11386 hpux9* | hpux10* | hpux11*)
11387 # Give a soname corresponding to the major version so that dld.sl refuses to
11388 # link against other versions.
11389 version_type=sunos
11390 need_lib_prefix=no
11391 need_version=no
11392 case $host_cpu in
11393 ia64*)
11394 shrext_cmds='.so'
11395 hardcode_into_libs=yes
11396 dynamic_linker="$host_os dld.so"
11397 shlibpath_var=LD_LIBRARY_PATH
11398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11400 soname_spec='${libname}${release}${shared_ext}$major'
11401 if test "X$HPUX_IA64_MODE" = X32; then
11402 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11403 else
11404 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11405 fi
11406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11407 ;;
11408 hppa*64*)
11409 shrext_cmds='.sl'
11410 hardcode_into_libs=yes
11411 dynamic_linker="$host_os dld.sl"
11412 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11418 ;;
11419 *)
11420 shrext_cmds='.sl'
11421 dynamic_linker="$host_os dld.sl"
11422 shlibpath_var=SHLIB_PATH
11423 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 ;;
11427 esac
11428 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11429 postinstall_cmds='chmod 555 $lib'
11430 # or fails outright, so override atomically:
11431 install_override_mode=555
11432 ;;
11433
11434 interix[3-9]*)
11435 version_type=linux # correct to gnu/linux during the next big refactor
11436 need_lib_prefix=no
11437 need_version=no
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11439 soname_spec='${libname}${release}${shared_ext}$major'
11440 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=no
11443 hardcode_into_libs=yes
11444 ;;
11445
11446 irix5* | irix6* | nonstopux*)
11447 case $host_os in
11448 nonstopux*) version_type=nonstopux ;;
11449 *)
11450 if test "$lt_cv_prog_gnu_ld" = yes; then
11451 version_type=linux # correct to gnu/linux during the next big refactor
11452 else
11453 version_type=irix
11454 fi ;;
11455 esac
11456 need_lib_prefix=no
11457 need_version=no
11458 soname_spec='${libname}${release}${shared_ext}$major'
11459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11460 case $host_os in
11461 irix5* | nonstopux*)
11462 libsuff= shlibsuff=
11463 ;;
11464 *)
11465 case $LD in # libtool.m4 will add one of these switches to LD
11466 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11467 libsuff= shlibsuff= libmagic=32-bit;;
11468 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11469 libsuff=32 shlibsuff=N32 libmagic=N32;;
11470 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11471 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11472 *) libsuff= shlibsuff= libmagic=never-match;;
11473 esac
11474 ;;
11475 esac
11476 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11477 shlibpath_overrides_runpath=no
11478 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11479 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11480 hardcode_into_libs=yes
11481 ;;
11482
11483 # No shared lib support for Linux oldld, aout, or coff.
11484 linux*oldld* | linux*aout* | linux*coff*)
11485 dynamic_linker=no
11486 ;;
11487
11488 # This must be glibc/ELF.
11489 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11490 version_type=linux # correct to gnu/linux during the next big refactor
11491 need_lib_prefix=no
11492 need_version=no
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11494 soname_spec='${libname}${release}${shared_ext}$major'
11495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=no
11498
11499 # Some binutils ld are patched to set DT_RUNPATH
11500 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 lt_cv_shlibpath_overrides_runpath=no
11504 save_LDFLAGS=$LDFLAGS
11505 save_libdir=$libdir
11506 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11507 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510
11511 int
11512 main ()
11513 {
11514
11515 ;
11516 return 0;
11517 }
11518 _ACEOF
11519 if ac_fn_c_try_link "$LINENO"; then :
11520 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11521 lt_cv_shlibpath_overrides_runpath=yes
11522 fi
11523 fi
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526 LDFLAGS=$save_LDFLAGS
11527 libdir=$save_libdir
11528
11529 fi
11530
11531 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11532
11533 # This implies no fast_install, which is unacceptable.
11534 # Some rework will be needed to allow for fast_install
11535 # before this can be enabled.
11536 hardcode_into_libs=yes
11537
11538 # Append ld.so.conf contents to the search path
11539 if test -f /etc/ld.so.conf; then
11540 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' ' '`
11541 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11542 fi
11543
11544 # We used to test for /lib/ld.so.1 and disable shared libraries on
11545 # powerpc, because MkLinux only supported shared libraries with the
11546 # GNU dynamic linker. Since this was broken with cross compilers,
11547 # most powerpc-linux boxes support dynamic linking these days and
11548 # people can always --disable-shared, the test was removed, and we
11549 # assume the GNU/Linux dynamic linker is in use.
11550 dynamic_linker='GNU/Linux ld.so'
11551 ;;
11552
11553 netbsdelf*-gnu)
11554 version_type=linux
11555 need_lib_prefix=no
11556 need_version=no
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 shlibpath_overrides_runpath=no
11561 hardcode_into_libs=yes
11562 dynamic_linker='NetBSD ld.elf_so'
11563 ;;
11564
11565 netbsd*)
11566 version_type=sunos
11567 need_lib_prefix=no
11568 need_version=no
11569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11572 dynamic_linker='NetBSD (a.out) ld.so'
11573 else
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 dynamic_linker='NetBSD ld.elf_so'
11577 fi
11578 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=yes
11580 hardcode_into_libs=yes
11581 ;;
11582
11583 newsos6)
11584 version_type=linux # correct to gnu/linux during the next big refactor
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=yes
11588 ;;
11589
11590 *nto* | *qnx*)
11591 version_type=qnx
11592 need_lib_prefix=no
11593 need_version=no
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 shlibpath_var=LD_LIBRARY_PATH
11597 shlibpath_overrides_runpath=no
11598 hardcode_into_libs=yes
11599 dynamic_linker='ldqnx.so'
11600 ;;
11601
11602 openbsd*)
11603 version_type=sunos
11604 sys_lib_dlsearch_path_spec="/usr/lib"
11605 need_lib_prefix=no
11606 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11607 case $host_os in
11608 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11609 *) need_version=no ;;
11610 esac
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11613 shlibpath_var=LD_LIBRARY_PATH
11614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11615 case $host_os in
11616 openbsd2.[89] | openbsd2.[89].*)
11617 shlibpath_overrides_runpath=no
11618 ;;
11619 *)
11620 shlibpath_overrides_runpath=yes
11621 ;;
11622 esac
11623 else
11624 shlibpath_overrides_runpath=yes
11625 fi
11626 ;;
11627
11628 os2*)
11629 libname_spec='$name'
11630 shrext_cmds=".dll"
11631 need_lib_prefix=no
11632 library_names_spec='$libname${shared_ext} $libname.a'
11633 dynamic_linker='OS/2 ld.exe'
11634 shlibpath_var=LIBPATH
11635 ;;
11636
11637 osf3* | osf4* | osf5*)
11638 version_type=osf
11639 need_lib_prefix=no
11640 need_version=no
11641 soname_spec='${libname}${release}${shared_ext}$major'
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11645 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11646 ;;
11647
11648 rdos*)
11649 dynamic_linker=no
11650 ;;
11651
11652 solaris*)
11653 version_type=linux # correct to gnu/linux during the next big refactor
11654 need_lib_prefix=no
11655 need_version=no
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11657 soname_spec='${libname}${release}${shared_ext}$major'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 shlibpath_overrides_runpath=yes
11660 hardcode_into_libs=yes
11661 # ldd complains unless libraries are executable
11662 postinstall_cmds='chmod +x $lib'
11663 ;;
11664
11665 sunos4*)
11666 version_type=sunos
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11668 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=yes
11671 if test "$with_gnu_ld" = yes; then
11672 need_lib_prefix=no
11673 fi
11674 need_version=yes
11675 ;;
11676
11677 sysv4 | sysv4.3*)
11678 version_type=linux # correct to gnu/linux during the next big refactor
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680 soname_spec='${libname}${release}${shared_ext}$major'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 case $host_vendor in
11683 sni)
11684 shlibpath_overrides_runpath=no
11685 need_lib_prefix=no
11686 runpath_var=LD_RUN_PATH
11687 ;;
11688 siemens)
11689 need_lib_prefix=no
11690 ;;
11691 motorola)
11692 need_lib_prefix=no
11693 need_version=no
11694 shlibpath_overrides_runpath=no
11695 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11696 ;;
11697 esac
11698 ;;
11699
11700 sysv4*MP*)
11701 if test -d /usr/nec ;then
11702 version_type=linux # correct to gnu/linux during the next big refactor
11703 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11704 soname_spec='$libname${shared_ext}.$major'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 fi
11707 ;;
11708
11709 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11710 version_type=freebsd-elf
11711 need_lib_prefix=no
11712 need_version=no
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11714 soname_spec='${libname}${release}${shared_ext}$major'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 shlibpath_overrides_runpath=yes
11717 hardcode_into_libs=yes
11718 if test "$with_gnu_ld" = yes; then
11719 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11720 else
11721 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11722 case $host_os in
11723 sco3.2v5*)
11724 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11725 ;;
11726 esac
11727 fi
11728 sys_lib_dlsearch_path_spec='/usr/lib'
11729 ;;
11730
11731 tpf*)
11732 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11733 version_type=linux # correct to gnu/linux during the next big refactor
11734 need_lib_prefix=no
11735 need_version=no
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737 shlibpath_var=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath=no
11739 hardcode_into_libs=yes
11740 ;;
11741
11742 uts4*)
11743 version_type=linux # correct to gnu/linux during the next big refactor
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745 soname_spec='${libname}${release}${shared_ext}$major'
11746 shlibpath_var=LD_LIBRARY_PATH
11747 ;;
11748
11749 *)
11750 dynamic_linker=no
11751 ;;
11752 esac
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11754 $as_echo "$dynamic_linker" >&6; }
11755 test "$dynamic_linker" = no && can_build_shared=no
11756
11757 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11758 if test "$GCC" = yes; then
11759 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11760 fi
11761
11762 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11763 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11764 fi
11765 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11766 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11767 fi
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11861 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11862 hardcode_action=
11863 if test -n "$hardcode_libdir_flag_spec" ||
11864 test -n "$runpath_var" ||
11865 test "X$hardcode_automatic" = "Xyes" ; then
11866
11867 # We can hardcode non-existent directories.
11868 if test "$hardcode_direct" != no &&
11869 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11870 # have to relink, otherwise we might link with an installed library
11871 # when we should be linking with a yet-to-be-installed one
11872 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11873 test "$hardcode_minus_L" != no; then
11874 # Linking always hardcodes the temporary library directory.
11875 hardcode_action=relink
11876 else
11877 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11878 hardcode_action=immediate
11879 fi
11880 else
11881 # We cannot hardcode anything, or else we can only hardcode existing
11882 # directories.
11883 hardcode_action=unsupported
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11886 $as_echo "$hardcode_action" >&6; }
11887
11888 if test "$hardcode_action" = relink ||
11889 test "$inherit_rpath" = yes; then
11890 # Fast installation is not supported
11891 enable_fast_install=no
11892 elif test "$shlibpath_overrides_runpath" = yes ||
11893 test "$enable_shared" = no; then
11894 # Fast installation is not necessary
11895 enable_fast_install=needless
11896 fi
11897
11898
11899
11900
11901
11902
11903 if test "x$enable_dlopen" != xyes; then
11904 enable_dlopen=unknown
11905 enable_dlopen_self=unknown
11906 enable_dlopen_self_static=unknown
11907 else
11908 lt_cv_dlopen=no
11909 lt_cv_dlopen_libs=
11910
11911 case $host_os in
11912 beos*)
11913 lt_cv_dlopen="load_add_on"
11914 lt_cv_dlopen_libs=
11915 lt_cv_dlopen_self=yes
11916 ;;
11917
11918 mingw* | pw32* | cegcc*)
11919 lt_cv_dlopen="LoadLibrary"
11920 lt_cv_dlopen_libs=
11921 ;;
11922
11923 cygwin*)
11924 lt_cv_dlopen="dlopen"
11925 lt_cv_dlopen_libs=
11926 ;;
11927
11928 darwin*)
11929 # if libdl is installed we need to link against it
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11931 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11932 if ${ac_cv_lib_dl_dlopen+:} false; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 ac_check_lib_save_LIBS=$LIBS
11936 LIBS="-ldl $LIBS"
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11943 #ifdef __cplusplus
11944 extern "C"
11945 #endif
11946 char dlopen ();
11947 int
11948 main ()
11949 {
11950 return dlopen ();
11951 ;
11952 return 0;
11953 }
11954 _ACEOF
11955 if ac_fn_c_try_link "$LINENO"; then :
11956 ac_cv_lib_dl_dlopen=yes
11957 else
11958 ac_cv_lib_dl_dlopen=no
11959 fi
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_lib_save_LIBS
11963 fi
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11965 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11966 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11968 else
11969
11970 lt_cv_dlopen="dyld"
11971 lt_cv_dlopen_libs=
11972 lt_cv_dlopen_self=yes
11973
11974 fi
11975
11976 ;;
11977
11978 *)
11979 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11980 if test "x$ac_cv_func_shl_load" = xyes; then :
11981 lt_cv_dlopen="shl_load"
11982 else
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11984 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11985 if ${ac_cv_lib_dld_shl_load+:} false; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 ac_check_lib_save_LIBS=$LIBS
11989 LIBS="-ldld $LIBS"
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11992
11993 /* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
11996 #ifdef __cplusplus
11997 extern "C"
11998 #endif
11999 char shl_load ();
12000 int
12001 main ()
12002 {
12003 return shl_load ();
12004 ;
12005 return 0;
12006 }
12007 _ACEOF
12008 if ac_fn_c_try_link "$LINENO"; then :
12009 ac_cv_lib_dld_shl_load=yes
12010 else
12011 ac_cv_lib_dld_shl_load=no
12012 fi
12013 rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015 LIBS=$ac_check_lib_save_LIBS
12016 fi
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12018 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12019 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12020 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12021 else
12022 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12023 if test "x$ac_cv_func_dlopen" = xyes; then :
12024 lt_cv_dlopen="dlopen"
12025 else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12027 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12028 if ${ac_cv_lib_dl_dlopen+:} false; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 ac_check_lib_save_LIBS=$LIBS
12032 LIBS="-ldl $LIBS"
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035
12036 /* Override any GCC internal prototype to avoid an error.
12037 Use char because int might match the return type of a GCC
12038 builtin and then its argument prototype would still apply. */
12039 #ifdef __cplusplus
12040 extern "C"
12041 #endif
12042 char dlopen ();
12043 int
12044 main ()
12045 {
12046 return dlopen ();
12047 ;
12048 return 0;
12049 }
12050 _ACEOF
12051 if ac_fn_c_try_link "$LINENO"; then :
12052 ac_cv_lib_dl_dlopen=yes
12053 else
12054 ac_cv_lib_dl_dlopen=no
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12058 LIBS=$ac_check_lib_save_LIBS
12059 fi
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12061 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12062 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12066 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12067 if ${ac_cv_lib_svld_dlopen+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 ac_check_lib_save_LIBS=$LIBS
12071 LIBS="-lsvld $LIBS"
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 char dlopen ();
12082 int
12083 main ()
12084 {
12085 return dlopen ();
12086 ;
12087 return 0;
12088 }
12089 _ACEOF
12090 if ac_fn_c_try_link "$LINENO"; then :
12091 ac_cv_lib_svld_dlopen=yes
12092 else
12093 ac_cv_lib_svld_dlopen=no
12094 fi
12095 rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12098 fi
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12100 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12101 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12105 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12106 if ${ac_cv_lib_dld_dld_link+:} false; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109 ac_check_lib_save_LIBS=$LIBS
12110 LIBS="-ldld $LIBS"
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12113
12114 /* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12117 #ifdef __cplusplus
12118 extern "C"
12119 #endif
12120 char dld_link ();
12121 int
12122 main ()
12123 {
12124 return dld_link ();
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_c_try_link "$LINENO"; then :
12130 ac_cv_lib_dld_dld_link=yes
12131 else
12132 ac_cv_lib_dld_dld_link=no
12133 fi
12134 rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12137 fi
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12139 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12140 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12142 fi
12143
12144
12145 fi
12146
12147
12148 fi
12149
12150
12151 fi
12152
12153
12154 fi
12155
12156
12157 fi
12158
12159 ;;
12160 esac
12161
12162 if test "x$lt_cv_dlopen" != xno; then
12163 enable_dlopen=yes
12164 else
12165 enable_dlopen=no
12166 fi
12167
12168 case $lt_cv_dlopen in
12169 dlopen)
12170 save_CPPFLAGS="$CPPFLAGS"
12171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12172
12173 save_LDFLAGS="$LDFLAGS"
12174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12175
12176 save_LIBS="$LIBS"
12177 LIBS="$lt_cv_dlopen_libs $LIBS"
12178
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12180 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12181 if ${lt_cv_dlopen_self+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 if test "$cross_compiling" = yes; then :
12185 lt_cv_dlopen_self=cross
12186 else
12187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12188 lt_status=$lt_dlunknown
12189 cat > conftest.$ac_ext <<_LT_EOF
12190 #line $LINENO "configure"
12191 #include "confdefs.h"
12192
12193 #if HAVE_DLFCN_H
12194 #include <dlfcn.h>
12195 #endif
12196
12197 #include <stdio.h>
12198
12199 #ifdef RTLD_GLOBAL
12200 # define LT_DLGLOBAL RTLD_GLOBAL
12201 #else
12202 # ifdef DL_GLOBAL
12203 # define LT_DLGLOBAL DL_GLOBAL
12204 # else
12205 # define LT_DLGLOBAL 0
12206 # endif
12207 #endif
12208
12209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12210 find out it does not work in some platform. */
12211 #ifndef LT_DLLAZY_OR_NOW
12212 # ifdef RTLD_LAZY
12213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12214 # else
12215 # ifdef DL_LAZY
12216 # define LT_DLLAZY_OR_NOW DL_LAZY
12217 # else
12218 # ifdef RTLD_NOW
12219 # define LT_DLLAZY_OR_NOW RTLD_NOW
12220 # else
12221 # ifdef DL_NOW
12222 # define LT_DLLAZY_OR_NOW DL_NOW
12223 # else
12224 # define LT_DLLAZY_OR_NOW 0
12225 # endif
12226 # endif
12227 # endif
12228 # endif
12229 #endif
12230
12231 /* When -fvisbility=hidden is used, assume the code has been annotated
12232 correspondingly for the symbols needed. */
12233 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12234 int fnord () __attribute__((visibility("default")));
12235 #endif
12236
12237 int fnord () { return 42; }
12238 int main ()
12239 {
12240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12241 int status = $lt_dlunknown;
12242
12243 if (self)
12244 {
12245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12246 else
12247 {
12248 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12249 else puts (dlerror ());
12250 }
12251 /* dlclose (self); */
12252 }
12253 else
12254 puts (dlerror ());
12255
12256 return status;
12257 }
12258 _LT_EOF
12259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12260 (eval $ac_link) 2>&5
12261 ac_status=$?
12262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12263 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12264 (./conftest; exit; ) >&5 2>/dev/null
12265 lt_status=$?
12266 case x$lt_status in
12267 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12268 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12269 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12270 esac
12271 else :
12272 # compilation failed
12273 lt_cv_dlopen_self=no
12274 fi
12275 fi
12276 rm -fr conftest*
12277
12278
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12281 $as_echo "$lt_cv_dlopen_self" >&6; }
12282
12283 if test "x$lt_cv_dlopen_self" = xyes; then
12284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12286 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12287 if ${lt_cv_dlopen_self_static+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 if test "$cross_compiling" = yes; then :
12291 lt_cv_dlopen_self_static=cross
12292 else
12293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12294 lt_status=$lt_dlunknown
12295 cat > conftest.$ac_ext <<_LT_EOF
12296 #line $LINENO "configure"
12297 #include "confdefs.h"
12298
12299 #if HAVE_DLFCN_H
12300 #include <dlfcn.h>
12301 #endif
12302
12303 #include <stdio.h>
12304
12305 #ifdef RTLD_GLOBAL
12306 # define LT_DLGLOBAL RTLD_GLOBAL
12307 #else
12308 # ifdef DL_GLOBAL
12309 # define LT_DLGLOBAL DL_GLOBAL
12310 # else
12311 # define LT_DLGLOBAL 0
12312 # endif
12313 #endif
12314
12315 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12316 find out it does not work in some platform. */
12317 #ifndef LT_DLLAZY_OR_NOW
12318 # ifdef RTLD_LAZY
12319 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12320 # else
12321 # ifdef DL_LAZY
12322 # define LT_DLLAZY_OR_NOW DL_LAZY
12323 # else
12324 # ifdef RTLD_NOW
12325 # define LT_DLLAZY_OR_NOW RTLD_NOW
12326 # else
12327 # ifdef DL_NOW
12328 # define LT_DLLAZY_OR_NOW DL_NOW
12329 # else
12330 # define LT_DLLAZY_OR_NOW 0
12331 # endif
12332 # endif
12333 # endif
12334 # endif
12335 #endif
12336
12337 /* When -fvisbility=hidden is used, assume the code has been annotated
12338 correspondingly for the symbols needed. */
12339 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12340 int fnord () __attribute__((visibility("default")));
12341 #endif
12342
12343 int fnord () { return 42; }
12344 int main ()
12345 {
12346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12347 int status = $lt_dlunknown;
12348
12349 if (self)
12350 {
12351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12352 else
12353 {
12354 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12355 else puts (dlerror ());
12356 }
12357 /* dlclose (self); */
12358 }
12359 else
12360 puts (dlerror ());
12361
12362 return status;
12363 }
12364 _LT_EOF
12365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12366 (eval $ac_link) 2>&5
12367 ac_status=$?
12368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12369 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12370 (./conftest; exit; ) >&5 2>/dev/null
12371 lt_status=$?
12372 case x$lt_status in
12373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12375 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12376 esac
12377 else :
12378 # compilation failed
12379 lt_cv_dlopen_self_static=no
12380 fi
12381 fi
12382 rm -fr conftest*
12383
12384
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12387 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12388 fi
12389
12390 CPPFLAGS="$save_CPPFLAGS"
12391 LDFLAGS="$save_LDFLAGS"
12392 LIBS="$save_LIBS"
12393 ;;
12394 esac
12395
12396 case $lt_cv_dlopen_self in
12397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12398 *) enable_dlopen_self=unknown ;;
12399 esac
12400
12401 case $lt_cv_dlopen_self_static in
12402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12403 *) enable_dlopen_self_static=unknown ;;
12404 esac
12405 fi
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423 striplib=
12424 old_striplib=
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12426 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12427 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12428 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12429 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12431 $as_echo "yes" >&6; }
12432 else
12433 # FIXME - insert some real tests, host_os isn't really good enough
12434 case $host_os in
12435 darwin*)
12436 if test -n "$STRIP" ; then
12437 striplib="$STRIP -x"
12438 old_striplib="$STRIP -S"
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12440 $as_echo "yes" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12444 fi
12445 ;;
12446 *)
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12449 ;;
12450 esac
12451 fi
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464 # Report which library types will actually be built
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12466 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12468 $as_echo "$can_build_shared" >&6; }
12469
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12471 $as_echo_n "checking whether to build shared libraries... " >&6; }
12472 test "$can_build_shared" = "no" && enable_shared=no
12473
12474 # On AIX, shared libraries and static libraries use the same namespace, and
12475 # are all built from PIC.
12476 case $host_os in
12477 aix3*)
12478 test "$enable_shared" = yes && enable_static=no
12479 if test -n "$RANLIB"; then
12480 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12481 postinstall_cmds='$RANLIB $lib'
12482 fi
12483 ;;
12484
12485 aix[4-9]*)
12486 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12487 test "$enable_shared" = yes && enable_static=no
12488 fi
12489 ;;
12490 esac
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12492 $as_echo "$enable_shared" >&6; }
12493
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12495 $as_echo_n "checking whether to build static libraries... " >&6; }
12496 # Make sure either enable_shared or enable_static is yes.
12497 test "$enable_shared" = yes || enable_static=yes
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12499 $as_echo "$enable_static" >&6; }
12500
12501
12502
12503
12504 fi
12505 ac_ext=c
12506 ac_cpp='$CPP $CPPFLAGS'
12507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12510
12511 CC="$lt_save_CC"
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527 ac_config_commands="$ac_config_commands libtool"
12528
12529
12530
12531
12532 # Only expand once:
12533
12534
12535
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12538 $as_echo_n "checking whether ln -s works... " >&6; }
12539 LN_S=$as_ln_s
12540 if test "$LN_S" = "ln -s"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12542 $as_echo "yes" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12545 $as_echo "no, using $LN_S" >&6; }
12546 fi
12547
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12549 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12550 set x ${MAKE-make}
12551 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12552 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12553 $as_echo_n "(cached) " >&6
12554 else
12555 cat >conftest.make <<\_ACEOF
12556 SHELL = /bin/sh
12557 all:
12558 @echo '@@@%%%=$(MAKE)=@@@%%%'
12559 _ACEOF
12560 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12561 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12562 *@@@%%%=?*=@@@%%%*)
12563 eval ac_cv_prog_make_${ac_make}_set=yes;;
12564 *)
12565 eval ac_cv_prog_make_${ac_make}_set=no;;
12566 esac
12567 rm -f conftest.make
12568 fi
12569 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12571 $as_echo "yes" >&6; }
12572 SET_MAKE=
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12576 SET_MAKE="MAKE=${MAKE-make}"
12577 fi
12578
12579
12580
12581 FLEX_MIN_VERSION=2.5.19
12582 FLEX_REC_VERSION=2.5.36
12583
12584 # Do not want AM_PROG_LEX which adds 'missing' to LEX if it's not around
12585 for ac_prog in flex lex
12586 do
12587 # Extract the first word of "$ac_prog", so it can be a program name with args.
12588 set dummy $ac_prog; ac_word=$2
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590 $as_echo_n "checking for $ac_word... " >&6; }
12591 if ${ac_cv_prog_LEX+:} false; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 if test -n "$LEX"; then
12595 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12596 else
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604 ac_cv_prog_LEX="$ac_prog"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12607 fi
12608 done
12609 done
12610 IFS=$as_save_IFS
12611
12612 fi
12613 fi
12614 LEX=$ac_cv_prog_LEX
12615 if test -n "$LEX"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12617 $as_echo "$LEX" >&6; }
12618 else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12621 fi
12622
12623
12624 test -n "$LEX" && break
12625 done
12626 test -n "$LEX" || LEX=":"
12627
12628 if test "x$LEX" != "x:"; then
12629 cat >conftest.l <<_ACEOF
12630 %%
12631 a { ECHO; }
12632 b { REJECT; }
12633 c { yymore (); }
12634 d { yyless (1); }
12635 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12636 yyless ((input () != 0)); }
12637 f { unput (yytext[0]); }
12638 . { BEGIN INITIAL; }
12639 %%
12640 #ifdef YYTEXT_POINTER
12641 extern char *yytext;
12642 #endif
12643 int
12644 main (void)
12645 {
12646 return ! yylex () + ! yywrap ();
12647 }
12648 _ACEOF
12649 { { ac_try="$LEX conftest.l"
12650 case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653 esac
12654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12655 $as_echo "$ac_try_echo"; } >&5
12656 (eval "$LEX conftest.l") 2>&5
12657 ac_status=$?
12658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659 test $ac_status = 0; }
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12661 $as_echo_n "checking lex output file root... " >&6; }
12662 if ${ac_cv_prog_lex_root+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665
12666 if test -f lex.yy.c; then
12667 ac_cv_prog_lex_root=lex.yy
12668 elif test -f lexyy.c; then
12669 ac_cv_prog_lex_root=lexyy
12670 else
12671 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12672 fi
12673 fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12675 $as_echo "$ac_cv_prog_lex_root" >&6; }
12676 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12677
12678 if test -z "${LEXLIB+set}"; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12680 $as_echo_n "checking lex library... " >&6; }
12681 if ${ac_cv_lib_lex+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684
12685 ac_save_LIBS=$LIBS
12686 ac_cv_lib_lex='none needed'
12687 for ac_lib in '' -lfl -ll; do
12688 LIBS="$ac_lib $ac_save_LIBS"
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691 `cat $LEX_OUTPUT_ROOT.c`
12692 _ACEOF
12693 if ac_fn_c_try_link "$LINENO"; then :
12694 ac_cv_lib_lex=$ac_lib
12695 fi
12696 rm -f core conftest.err conftest.$ac_objext \
12697 conftest$ac_exeext conftest.$ac_ext
12698 test "$ac_cv_lib_lex" != 'none needed' && break
12699 done
12700 LIBS=$ac_save_LIBS
12701
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12704 $as_echo "$ac_cv_lib_lex" >&6; }
12705 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12706 fi
12707
12708
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12710 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12711 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 # POSIX says lex can declare yytext either as a pointer or an array; the
12715 # default is implementation-dependent. Figure out which it is, since
12716 # not all implementations provide the %pointer and %array declarations.
12717 ac_cv_prog_lex_yytext_pointer=no
12718 ac_save_LIBS=$LIBS
12719 LIBS="$LEXLIB $ac_save_LIBS"
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722
12723 #define YYTEXT_POINTER 1
12724 `cat $LEX_OUTPUT_ROOT.c`
12725 _ACEOF
12726 if ac_fn_c_try_link "$LINENO"; then :
12727 ac_cv_prog_lex_yytext_pointer=yes
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
12731 LIBS=$ac_save_LIBS
12732
12733 fi
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12735 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12736 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12737
12738 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12739
12740 fi
12741 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12742
12743 fi
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flex" >&5
12745 $as_echo_n "checking flex... " >&6; }
12746 if test "$USE_MAINTAINER_MODE" = yes; then
12747 # maintainer mode - flex is required
12748 if test "X$LEX" = "X:" ; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
12750 $as_echo "not present" >&6; }
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please get flex from http://flex.sourceforge.net/" >&5
12752 $as_echo "$as_me: WARNING: Please get flex from http://flex.sourceforge.net/" >&2;}
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version $FLEX_MIN_VERSION ($FLEX_REC_VERSION recommended)" >&5
12754 $as_echo "$as_me: WARNING: version $FLEX_MIN_VERSION ($FLEX_REC_VERSION recommended)" >&2;}
12755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12757 as_fn_error $? "flex not present
12758 See \`config.log' for more details" "$LINENO" 5; }
12759 fi
12760
12761 # some kind of lexer is present
12762 if echo "$LEX" | grep flex >/dev/null 2>&1; then
12763 # flex is present
12764 FLEX_VERSION=`$LEX -V 2>&1 | $AWK '{print $2}'`
12765 FLEX_VERSION_DEC=`echo $FLEX_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
12766
12767 FLEX_MIN_VERSION_DEC=`echo $FLEX_MIN_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
12768
12769 if test $FLEX_VERSION_DEC -ge $FLEX_MIN_VERSION_DEC; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX_VERSION - OK" >&5
12771 $as_echo "$FLEX_VERSION - OK" >&6; }
12772 else
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $FLEX_VERSION - too old" >&5
12774 $as_echo "version $FLEX_VERSION - too old" >&6; }
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please get flex from http://flex.sourceforge.net/" >&5
12776 $as_echo "$as_me: WARNING: Please get flex from http://flex.sourceforge.net/" >&2;}
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version $FLEX_MIN_VERSION ($FLEX_REC_VERSION recommended)" >&5
12778 $as_echo "$as_me: WARNING: version $FLEX_MIN_VERSION ($FLEX_REC_VERSION recommended)" >&2;}
12779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12781 as_fn_error $? "flex is too old
12782 See \`config.log' for more details" "$LINENO" 5; }
12783 fi
12784 else
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present - but is not flex" >&5
12786 $as_echo "present - but is not flex" >&6; }
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please get flex from http://flex.sourceforge.net/" >&5
12788 $as_echo "$as_me: WARNING: Please get flex from http://flex.sourceforge.net/" >&2;}
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version $FLEX_MIN_VERSION ($FLEX_REC_VERSION recommended)" >&5
12790 $as_echo "$as_me: WARNING: version $FLEX_MIN_VERSION ($FLEX_REC_VERSION recommended)" >&2;}
12791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12793 as_fn_error $? "$LEX is not not flex
12794 See \`config.log' for more details" "$LINENO" 5; }
12795 fi
12796 else
12797 # not maintainer mode; flex is not required
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present - not required for non maintainer builds" >&5
12799 $as_echo "not present - not required for non maintainer builds" >&6; }
12800 LEX="$SHELL $missing_dir/missing flex"
12801 LEX_OUTPUT_ROOT=lex.yy
12802
12803 LEXLIB=''
12804
12805 FLEX_VERSION_DEC=00000
12806 fi
12807
12808 cat >>confdefs.h <<_ACEOF
12809 #define FLEX_VERSION_DECIMAL $FLEX_VERSION_DEC
12810 _ACEOF
12811
12812
12813
12814 BISON_MIN_VERSION=3.0.0
12815 for ac_prog in bison3 bison
12816 do
12817 # Extract the first word of "$ac_prog", so it can be a program name with args.
12818 set dummy $ac_prog; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if ${ac_cv_prog_BISON+:} false; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 if test -n "$BISON"; then
12825 ac_cv_prog_BISON="$BISON" # Let the user override the test.
12826 else
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830 IFS=$as_save_IFS
12831 test -z "$as_dir" && as_dir=.
12832 for ac_exec_ext in '' $ac_executable_extensions; do
12833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12834 ac_cv_prog_BISON="$ac_prog"
12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836 break 2
12837 fi
12838 done
12839 done
12840 IFS=$as_save_IFS
12841
12842 fi
12843 fi
12844 BISON=$ac_cv_prog_BISON
12845 if test -n "$BISON"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
12847 $as_echo "$BISON" >&6; }
12848 else
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851 fi
12852
12853
12854 test -n "$BISON" && break
12855 done
12856
12857 if test "$USE_MAINTAINER_MODE" = yes; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU bison" >&5
12859 $as_echo_n "checking for GNU bison... " >&6; }
12860 # Match these styles of versions
12861 # GNU Bison version 1.28
12862 # bison (GNU Bison) 1.875
12863 BISON_VERSION=`$BISON --version 2>&1 | sed -ne 's/^.*GNU Bison[^0-9]*//p'`
12864 if test "X$BISON_VERSION" != X; then
12865 BISON_VERSION_DEC=`echo $BISON_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
12866
12867 BISON_MIN_VERSION_DEC=`echo $BISON_MIN_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
12868
12869 if test $BISON_VERSION_DEC -ge $BISON_MIN_VERSION_DEC; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON_VERSION - OK" >&5
12871 $as_echo "$BISON_VERSION - OK" >&6; }
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $BISON_VERSION is too old" >&5
12874 $as_echo "version $BISON_VERSION is too old" >&6; }
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please get GNU Bison from http://www.gnu.org/software/bison/" >&5
12876 $as_echo "$as_me: WARNING: Please get GNU Bison from http://www.gnu.org/software/bison/" >&2;}
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version $BISON_MIN_VERSION or newer" >&5
12878 $as_echo "$as_me: WARNING: version $BISON_MIN_VERSION or newer" >&2;}
12879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12881 as_fn_error $? "GNU Bison too old
12882 See \`config.log' for more details" "$LINENO" 5; }
12883 fi
12884 else
12885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12887 as_fn_error $? "$BISON is not GNU bison
12888 See \`config.log' for more details" "$LINENO" 5; }
12889 fi
12890 fi
12891
12892
12893 for ac_prog in awk gawk nawk
12894 do
12895 # Extract the first word of "$ac_prog", so it can be a program name with args.
12896 set dummy $ac_prog; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898 $as_echo_n "checking for $ac_word... " >&6; }
12899 if ${ac_cv_prog_AWK+:} false; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 if test -n "$AWK"; then
12903 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12904 else
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12907 do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12912 ac_cv_prog_AWK="$ac_prog"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12915 fi
12916 done
12917 done
12918 IFS=$as_save_IFS
12919
12920 fi
12921 fi
12922 AWK=$ac_cv_prog_AWK
12923 if test -n "$AWK"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12925 $as_echo "$AWK" >&6; }
12926 else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12929 fi
12930
12931
12932 test -n "$AWK" && break
12933 done
12934
12935 # Find a tar command for 'make dist'
12936 for ac_prog in gnutar gtar tar
12937 do
12938 # Extract the first word of "$ac_prog", so it can be a program name with args.
12939 set dummy $ac_prog; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if ${ac_cv_prog_TAR+:} false; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 if test -n "$TAR"; then
12946 ac_cv_prog_TAR="$TAR" # Let the user override the test.
12947 else
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12950 do
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12955 ac_cv_prog_TAR="$ac_prog"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12958 fi
12959 done
12960 done
12961 IFS=$as_save_IFS
12962
12963 fi
12964 fi
12965 TAR=$ac_cv_prog_TAR
12966 if test -n "$TAR"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
12968 $as_echo "$TAR" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12972 fi
12973
12974
12975 test -n "$TAR" && break
12976 done
12977
12978 for ac_prog in perl
12979 do
12980 # Extract the first word of "$ac_prog", so it can be a program name with args.
12981 set dummy $ac_prog; ac_word=$2
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12983 $as_echo_n "checking for $ac_word... " >&6; }
12984 if ${ac_cv_prog_PERL+:} false; then :
12985 $as_echo_n "(cached) " >&6
12986 else
12987 if test -n "$PERL"; then
12988 ac_cv_prog_PERL="$PERL" # Let the user override the test.
12989 else
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12992 do
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12997 ac_cv_prog_PERL="$ac_prog"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13000 fi
13001 done
13002 done
13003 IFS=$as_save_IFS
13004
13005 fi
13006 fi
13007 PERL=$ac_cv_prog_PERL
13008 if test -n "$PERL"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13010 $as_echo "$PERL" >&6; }
13011 else
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013 $as_echo "no" >&6; }
13014 fi
13015
13016
13017 test -n "$PERL" && break
13018 done
13019
13020
13021
13022 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
13023
13024
13025 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13026
13027
13028 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
13029
13030
13031 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13032
13033
13034 for ac_prog in echo
13035 do
13036 # Extract the first word of "$ac_prog", so it can be a program name with args.
13037 set dummy $ac_prog; ac_word=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039 $as_echo_n "checking for $ac_word... " >&6; }
13040 if ${ac_cv_prog_RECHO+:} false; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 if test -n "$RECHO"; then
13044 ac_cv_prog_RECHO="$RECHO" # Let the user override the test.
13045 else
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13048 do
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13053 ac_cv_prog_RECHO="$ac_prog"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 break 2
13056 fi
13057 done
13058 done
13059 IFS=$as_save_IFS
13060
13061 fi
13062 fi
13063 RECHO=$ac_cv_prog_RECHO
13064 if test -n "$RECHO"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RECHO" >&5
13066 $as_echo "$RECHO" >&6; }
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070 fi
13071
13072
13073 test -n "$RECHO" && break
13074 done
13075
13076 RECHO_C=
13077 RECHO_N=
13078 case `$RECHO -n x` in
13079 -n*)
13080 case `$RECHO 'xy\c'` in
13081 *c*)
13082 ;;
13083 xy)
13084 RECHO_C='\c'
13085 ;;
13086 esac;;
13087 *)
13088 RECHO_N='-n'
13089 ;;
13090 esac
13091
13092
13093
13094
13095
13096
13097 # GCC warning options
13098 # http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
13099 #
13100 # Too noisy:
13101 #
13102 # -Wconversion : cases that need RASQAL_GOOD/BAD_CAST etc.
13103 # -Wcast-qual : cases that need RASQAL_GOOD/BAD_CAST etc.
13104 # -Wswitch-default : noisy cases in flex output
13105 # -Wsystem-headers : not debugging system
13106 # -Wunused-parameter : variables can be marked __attribute__('unused')
13107 #
13108 # Apple gcc specific (probably): -Wshorten-64-to-32
13109 possible_warnings="\
13110 -Wall \
13111 -Wc++-compat \
13112 -Wextra \
13113 -Wunused \
13114 \
13115 -Waggregate-return \
13116 -Wbad-function-cast \
13117 -Wcast-align \
13118 -Wdeclaration-after-statement \
13119 -Wdisabled-optimization \
13120 -Wdiv-by-zero \
13121 -Wendif-labels \
13122 -Werror-implicit-function-declaration \
13123 -Wfloat-equal \
13124 -Wformat=2 \
13125 -Wframe-larger-than=4096 \
13126 -Winit-self \
13127 -Winline \
13128 -Wmissing-declarations \
13129 -Wmissing-format-attribute \
13130 -Wmissing-noreturn \
13131 -Wmissing-prototypes \
13132 -Wnested-externs \
13133 -Wold-style-definition \
13134 -Wpacked \
13135 -Wpointer-arith \
13136 -Wredundant-decls \
13137 -Wshadow \
13138 -Wsign-compare \
13139 -Wstrict-prototypes \
13140 -Wswitch-enum \
13141 -Wundef \
13142 -Wunreachable-code \
13143 -Wunsafe-loop-optimizations \
13144 -Wwrite-strings \
13145 \
13146 -Wshorten-64-to-32
13147 \
13148 -Wno-conversion \
13149 -Wno-cast-qual \
13150 -Wno-switch-default \
13151 -Wno-system-headers \
13152 -Wno-unused-parameter \
13153 -Wc90-c99-compat \
13154 -Wc99-c11-compat \
13155 "
13156
13157 warning_cflags=
13158 if test "$USE_MAINTAINER_MODE" = yes; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported $CC warning flags" >&5
13160 $as_echo_n "checking for supported $CC warning flags... " >&6; }
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $warning_cflags" >&5
13162 $as_echo "$warning_cflags" >&6; }
13163 for warning in $possible_warnings; do
13164
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $warning" >&5
13166 $as_echo_n "checking whether $CC supports $warning... " >&6; }
13167
13168 ## backup CFLAGS and werror status
13169 redland_save_CFLAGS="$CFLAGS"
13170 redland_save_ac_c_werror_flag="${ac_c_werror_flag}"
13171
13172 ac_c_werror_flag=yes
13173
13174 CFLAGS="$CFLAGS $warning"
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13177
13178 _ACEOF
13179 if ac_fn_c_try_compile "$LINENO"; then :
13180 redland_cc_flag=yes
13181 else
13182 redland_cc_flag=no
13183 fi
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185
13186 ## restore CFLAGS and werror status
13187 CFLAGS="$redland_save_CFLAGS"
13188 ac_c_werror_flag="${redland_save_ac_c_werror_flag}"
13189
13190 if test "X$redland_cc_flag" = "Xyes"; then
13191 warning_cflags="$warning_cflags $warning"
13192 else
13193 :
13194 fi
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $redland_cc_flag" >&5
13196 $as_echo "$redland_cc_flag" >&6; }
13197
13198 done
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC supports warning flags" >&5
13200 $as_echo_n "checking $CC supports warning flags... " >&6; }
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $warning_cflags" >&5
13202 $as_echo "$warning_cflags" >&6; }
13203 fi
13204
13205 STANDARD_CFLAGS=
13206 MAINTAINER_CPPFLAGS="$warning_cflags"
13207
13208 # Externally linked libraries - appear in rasqal-config
13209 # -Dfoo -Idir
13210 RASQAL_CPPFLAGS=$CPPFLAGS
13211 # -Ldir
13212 RASQAL_LDFLAGS=$LDFLAGS
13213 # -llib
13214 RASQAL_LIBS=$LIBS
13215
13216 # Internally linked libraries - never given to users
13217 # -Dfoo -Idir
13218 RASQAL_INTERNAL_CPPFLAGS=
13219 # -Ldir -llib
13220 RASQAL_INTERNAL_LIBS=
13221
13222 # Libraries linked externally also may be internal - just raptor
13223 # -Ldir -llib
13224 RASQAL_EXTERNAL_LIBS=
13225 # Extra pkgconfig requires
13226 PKGCONFIG_REQUIRES=
13227 PKGCONFIG_LIBS=
13228 PKGCONFIG_CFLAGS=
13229
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13231 $as_echo_n "checking for ANSI C header files... " >&6; }
13232 if ${ac_cv_header_stdc+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237 #include <stdlib.h>
13238 #include <stdarg.h>
13239 #include <string.h>
13240 #include <float.h>
13241
13242 int
13243 main ()
13244 {
13245
13246 ;
13247 return 0;
13248 }
13249 _ACEOF
13250 if ac_fn_c_try_compile "$LINENO"; then :
13251 ac_cv_header_stdc=yes
13252 else
13253 ac_cv_header_stdc=no
13254 fi
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256
13257 if test $ac_cv_header_stdc = yes; then
13258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13261 #include <string.h>
13262
13263 _ACEOF
13264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13265 $EGREP "memchr" >/dev/null 2>&1; then :
13266
13267 else
13268 ac_cv_header_stdc=no
13269 fi
13270 rm -f conftest*
13271
13272 fi
13273
13274 if test $ac_cv_header_stdc = yes; then
13275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278 #include <stdlib.h>
13279
13280 _ACEOF
13281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13282 $EGREP "free" >/dev/null 2>&1; then :
13283
13284 else
13285 ac_cv_header_stdc=no
13286 fi
13287 rm -f conftest*
13288
13289 fi
13290
13291 if test $ac_cv_header_stdc = yes; then
13292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13293 if test "$cross_compiling" = yes; then :
13294 :
13295 else
13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13298 #include <ctype.h>
13299 #include <stdlib.h>
13300 #if ((' ' & 0x0FF) == 0x020)
13301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13303 #else
13304 # define ISLOWER(c) \
13305 (('a' <= (c) && (c) <= 'i') \
13306 || ('j' <= (c) && (c) <= 'r') \
13307 || ('s' <= (c) && (c) <= 'z'))
13308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13309 #endif
13310
13311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13312 int
13313 main ()
13314 {
13315 int i;
13316 for (i = 0; i < 256; i++)
13317 if (XOR (islower (i), ISLOWER (i))
13318 || toupper (i) != TOUPPER (i))
13319 return 2;
13320 return 0;
13321 }
13322 _ACEOF
13323 if ac_fn_c_try_run "$LINENO"; then :
13324
13325 else
13326 ac_cv_header_stdc=no
13327 fi
13328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13329 conftest.$ac_objext conftest.beam conftest.$ac_ext
13330 fi
13331
13332 fi
13333 fi
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13335 $as_echo "$ac_cv_header_stdc" >&6; }
13336 if test $ac_cv_header_stdc = yes; then
13337
13338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13339
13340 fi
13341
13342 for ac_header in errno.h stddef.h stdlib.h stdint.h unistd.h string.h strings.h getopt.h regex.h sys/time.h time.h math.h limits.h errno.h float.h
13343 do :
13344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13345 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13346 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13347 cat >>confdefs.h <<_ACEOF
13348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13349 _ACEOF
13350
13351 fi
13352
13353 done
13354
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13356 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13357 if ${ac_cv_header_time+:} false; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362 #include <sys/types.h>
13363 #include <sys/time.h>
13364 #include <time.h>
13365
13366 int
13367 main ()
13368 {
13369 if ((struct tm *) 0)
13370 return 0;
13371 ;
13372 return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_compile "$LINENO"; then :
13376 ac_cv_header_time=yes
13377 else
13378 ac_cv_header_time=no
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381 fi
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13383 $as_echo "$ac_cv_header_time" >&6; }
13384 if test $ac_cv_header_time = yes; then
13385
13386 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13387
13388 fi
13389
13390
13391 if test "$ac_cv_header_sys_time_h" = "yes"; then
13392 HAVE_SYS_TIME_H=1
13393 else
13394 HAVE_SYS_TIME_H=0
13395 fi
13396
13397 if test "$ac_cv_header_time_h" = "yes"; then
13398 HAVE_TIME_H=1
13399 else
13400 HAVE_TIME_H=0
13401 fi
13402
13403
13404
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13406 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13407 if ${ac_cv_c_const+:} false; then :
13408 $as_echo_n "(cached) " >&6
13409 else
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412
13413 int
13414 main ()
13415 {
13416
13417 #ifndef __cplusplus
13418 /* Ultrix mips cc rejects this sort of thing. */
13419 typedef int charset[2];
13420 const charset cs = { 0, 0 };
13421 /* SunOS 4.1.1 cc rejects this. */
13422 char const *const *pcpcc;
13423 char **ppc;
13424 /* NEC SVR4.0.2 mips cc rejects this. */
13425 struct point {int x, y;};
13426 static struct point const zero = {0,0};
13427 /* AIX XL C 1.02.0.0 rejects this.
13428 It does not let you subtract one const X* pointer from another in
13429 an arm of an if-expression whose if-part is not a constant
13430 expression */
13431 const char *g = "string";
13432 pcpcc = &g + (g ? g-g : 0);
13433 /* HPUX 7.0 cc rejects these. */
13434 ++pcpcc;
13435 ppc = (char**) pcpcc;
13436 pcpcc = (char const *const *) ppc;
13437 { /* SCO 3.2v4 cc rejects this sort of thing. */
13438 char tx;
13439 char *t = &tx;
13440 char const *s = 0 ? (char *) 0 : (char const *) 0;
13441
13442 *t++ = 0;
13443 if (s) return 0;
13444 }
13445 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13446 int x[] = {25, 17};
13447 const int *foo = &x[0];
13448 ++foo;
13449 }
13450 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13451 typedef const int *iptr;
13452 iptr p = 0;
13453 ++p;
13454 }
13455 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13456 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13457 struct s { int j; const int *ap[3]; } bx;
13458 struct s *b = &bx; b->j = 5;
13459 }
13460 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13461 const int foo = 10;
13462 if (!foo) return 0;
13463 }
13464 return !cs[0] && !zero.x;
13465 #endif
13466
13467 ;
13468 return 0;
13469 }
13470 _ACEOF
13471 if ac_fn_c_try_compile "$LINENO"; then :
13472 ac_cv_c_const=yes
13473 else
13474 ac_cv_c_const=no
13475 fi
13476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13477 fi
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13479 $as_echo "$ac_cv_c_const" >&6; }
13480 if test $ac_cv_c_const = no; then
13481
13482 $as_echo "#define const /**/" >>confdefs.h
13483
13484 fi
13485
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13487 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13488 if ${ac_cv_c_bigendian+:} false; then :
13489 $as_echo_n "(cached) " >&6
13490 else
13491 ac_cv_c_bigendian=unknown
13492 # See if we're dealing with a universal compiler.
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495 #ifndef __APPLE_CC__
13496 not a universal capable compiler
13497 #endif
13498 typedef int dummy;
13499
13500 _ACEOF
13501 if ac_fn_c_try_compile "$LINENO"; then :
13502
13503 # Check for potential -arch flags. It is not universal unless
13504 # there are at least two -arch flags with different values.
13505 ac_arch=
13506 ac_prev=
13507 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13508 if test -n "$ac_prev"; then
13509 case $ac_word in
13510 i?86 | x86_64 | ppc | ppc64)
13511 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13512 ac_arch=$ac_word
13513 else
13514 ac_cv_c_bigendian=universal
13515 break
13516 fi
13517 ;;
13518 esac
13519 ac_prev=
13520 elif test "x$ac_word" = "x-arch"; then
13521 ac_prev=arch
13522 fi
13523 done
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526 if test $ac_cv_c_bigendian = unknown; then
13527 # See if sys/param.h defines the BYTE_ORDER macro.
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 #include <sys/types.h>
13531 #include <sys/param.h>
13532
13533 int
13534 main ()
13535 {
13536 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13537 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13538 && LITTLE_ENDIAN)
13539 bogus endian macros
13540 #endif
13541
13542 ;
13543 return 0;
13544 }
13545 _ACEOF
13546 if ac_fn_c_try_compile "$LINENO"; then :
13547 # It does; now see whether it defined to BIG_ENDIAN or not.
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13550 #include <sys/types.h>
13551 #include <sys/param.h>
13552
13553 int
13554 main ()
13555 {
13556 #if BYTE_ORDER != BIG_ENDIAN
13557 not big endian
13558 #endif
13559
13560 ;
13561 return 0;
13562 }
13563 _ACEOF
13564 if ac_fn_c_try_compile "$LINENO"; then :
13565 ac_cv_c_bigendian=yes
13566 else
13567 ac_cv_c_bigendian=no
13568 fi
13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 fi
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 fi
13573 if test $ac_cv_c_bigendian = unknown; then
13574 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13577 #include <limits.h>
13578
13579 int
13580 main ()
13581 {
13582 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13583 bogus endian macros
13584 #endif
13585
13586 ;
13587 return 0;
13588 }
13589 _ACEOF
13590 if ac_fn_c_try_compile "$LINENO"; then :
13591 # It does; now see whether it defined to _BIG_ENDIAN or not.
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594 #include <limits.h>
13595
13596 int
13597 main ()
13598 {
13599 #ifndef _BIG_ENDIAN
13600 not big endian
13601 #endif
13602
13603 ;
13604 return 0;
13605 }
13606 _ACEOF
13607 if ac_fn_c_try_compile "$LINENO"; then :
13608 ac_cv_c_bigendian=yes
13609 else
13610 ac_cv_c_bigendian=no
13611 fi
13612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13613 fi
13614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13615 fi
13616 if test $ac_cv_c_bigendian = unknown; then
13617 # Compile a test program.
13618 if test "$cross_compiling" = yes; then :
13619 # Try to guess by grepping values from an object file.
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 short int ascii_mm[] =
13623 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13624 short int ascii_ii[] =
13625 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13626 int use_ascii (int i) {
13627 return ascii_mm[i] + ascii_ii[i];
13628 }
13629 short int ebcdic_ii[] =
13630 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13631 short int ebcdic_mm[] =
13632 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13633 int use_ebcdic (int i) {
13634 return ebcdic_mm[i] + ebcdic_ii[i];
13635 }
13636 extern int foo;
13637
13638 int
13639 main ()
13640 {
13641 return use_ascii (foo) == use_ebcdic (foo);
13642 ;
13643 return 0;
13644 }
13645 _ACEOF
13646 if ac_fn_c_try_compile "$LINENO"; then :
13647 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13648 ac_cv_c_bigendian=yes
13649 fi
13650 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13651 if test "$ac_cv_c_bigendian" = unknown; then
13652 ac_cv_c_bigendian=no
13653 else
13654 # finding both strings is unlikely to happen, but who knows?
13655 ac_cv_c_bigendian=unknown
13656 fi
13657 fi
13658 fi
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 else
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663 $ac_includes_default
13664 int
13665 main ()
13666 {
13667
13668 /* Are we little or big endian? From Harbison&Steele. */
13669 union
13670 {
13671 long int l;
13672 char c[sizeof (long int)];
13673 } u;
13674 u.l = 1;
13675 return u.c[sizeof (long int) - 1] == 1;
13676
13677 ;
13678 return 0;
13679 }
13680 _ACEOF
13681 if ac_fn_c_try_run "$LINENO"; then :
13682 ac_cv_c_bigendian=no
13683 else
13684 ac_cv_c_bigendian=yes
13685 fi
13686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13687 conftest.$ac_objext conftest.beam conftest.$ac_ext
13688 fi
13689
13690 fi
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13693 $as_echo "$ac_cv_c_bigendian" >&6; }
13694 case $ac_cv_c_bigendian in #(
13695 yes)
13696 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13697 ;; #(
13698 no)
13699 ;; #(
13700 universal)
13701
13702 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13703
13704 ;; #(
13705 *)
13706 as_fn_error $? "unknown endianness
13707 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13708 esac
13709
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __FUNCTION__ is available" >&5
13712 $as_echo_n "checking whether __FUNCTION__ is available... " >&6; }
13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h. */
13715 int main() { printf(__FUNCTION__); }
13716 _ACEOF
13717 if ac_fn_c_try_compile "$LINENO"; then :
13718
13719 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
13720
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13722 $as_echo "yes" >&6; }
13723 else
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13726 fi
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728
13729
13730 # Libtool versioning
13731 #
13732 # CURRENT
13733 # The most recent interface number that this library implements.
13734 #
13735 # REVISION
13736 # The implementation number of the CURRENT interface.
13737 #
13738 # AGE
13739 # The difference between the newest and oldest interfaces that this
13740 # library implements. In other words, the library implements all the
13741 # interface numbers in the range from number `CURRENT - AGE' to
13742 # `CURRENT'.
13743 #
13744 # Rules:
13745 # 1. Start with version information of `0:0:0' for each libtool library.
13746 #
13747 # 2. Update the version information only immediately before a public
13748 # release of your software. More frequent updates are unnecessary,
13749 # and only guarantee that the current interface number gets larger
13750 # faster.
13751 #
13752 # 3. If the library source code has changed at all since the last
13753 # update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
13754 #
13755 # 4. If any interfaces have been added, removed, or changed since the
13756 # last update, increment CURRENT, and set REVISION to 0.
13757 #
13758 # 5. If any interfaces have been added since the last public release,
13759 # then increment AGE.
13760 #
13761 # 6. If any interfaces have been removed since the last public release,
13762 # then set AGE to 0.
13763 #
13764 # syntax: CURRENT[:REVISION[:AGE]]
13765 RASQAL_LIBTOOL_VERSION=3:0:0
13766
13767
13768
13769 version_major=`echo $VERSION | sed -e 's/^\([^\.]*\)\.\([^\.]*\)\.\(.*\)$/\1/'`
13770 version_minor=`echo $VERSION | sed -e 's/^\([^\.]*\)\.\([^\.]*\)\.\(.*\)$/\2/'`
13771 version_release=`echo $VERSION | sed -e 's/^\([^\.]*\)\.\([^\.]*\)\.\(.*\)$/\3/'`
13772
13773 version_decimal=`expr $version_major \* 10000 + $version_minor \* 100 + $version_release`
13774
13775
13776 cat >>confdefs.h <<_ACEOF
13777 #define RASQAL_VERSION_MAJOR $version_major
13778 _ACEOF
13779
13780
13781 cat >>confdefs.h <<_ACEOF
13782 #define RASQAL_VERSION_MINOR $version_minor
13783 _ACEOF
13784
13785
13786 cat >>confdefs.h <<_ACEOF
13787 #define RASQAL_VERSION_RELEASE $version_release
13788 _ACEOF
13789
13790
13791 cat >>confdefs.h <<_ACEOF
13792 #define RASQAL_VERSION_DECIMAL $version_decimal
13793 _ACEOF
13794
13795
13796 # for rasqal-config.in
13797 RASQAL_VERSION_MAJOR=$version_major
13798 RASQAL_VERSION_MINOR=$version_minor
13799 RASQAL_VERSION_RELEASE=$version_release
13800 RASQAL_VERSION_DECIMAL=$version_decimal
13801
13802
13803
13804
13805
13806
13807
13808 for ac_func in getopt getopt_long stricmp strcasecmp vsnprintf initstate_r initstate random_r random gmtime_r rand_r rand srand timegm gettimeofday
13809 do :
13810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13812 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13813 cat >>confdefs.h <<_ACEOF
13814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13815 _ACEOF
13816
13817 fi
13818 done
13819
13820
13821 if test $ac_cv_func_stricmp = no -a $ac_cv_func_strcasecmp = no; then
13822 STRCASECMP_TRUE=
13823 STRCASECMP_FALSE='#'
13824 else
13825 STRCASECMP_TRUE='#'
13826 STRCASECMP_FALSE=
13827 fi
13828
13829 if test $ac_cv_func_getopt = no -a $ac_cv_func_getopt_long = no; then
13830 GETOPT_TRUE=
13831 GETOPT_FALSE='#'
13832 else
13833 GETOPT_TRUE='#'
13834 GETOPT_FALSE=
13835 fi
13836
13837 if test $ac_cv_func_timegm = no; then
13838 TIMEGM_TRUE=
13839 TIMEGM_FALSE='#'
13840 else
13841 TIMEGM_TRUE='#'
13842 TIMEGM_FALSE=
13843 fi
13844
13845 if test $ac_cv_func_gettimeofday = no; then
13846 GETTIMEOFDAY_TRUE=
13847 GETTIMEOFDAY_FALSE='#'
13848 else
13849 GETTIMEOFDAY_TRUE='#'
13850 GETTIMEOFDAY_FALSE=
13851 fi
13852
13853
13854
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether need to declare optind" >&5
13856 $as_echo_n "checking whether need to declare optind... " >&6; }
13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h. */
13859 #ifdef HAVE_GETOPT_H
13860 #include <getopt.h>
13861 #endif
13862 #ifdef HAVE_UNISTD_H
13863 #include <unistd.h>
13864 #endif
13865
13866 int
13867 main ()
13868 {
13869 int x=optind;
13870 ;
13871 return 0;
13872 }
13873 _ACEOF
13874 if ac_fn_c_try_link "$LINENO"; then :
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13876 $as_echo "no" >&6; }
13877 else
13878
13879 $as_echo "#define NEED_OPTIND_DECLARATION 1" >>confdefs.h
13880
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13882 $as_echo "yes" >&6; }
13883 fi
13884 rm -f core conftest.err conftest.$ac_objext \
13885 conftest$ac_exeext conftest.$ac_ext
13886
13887
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm has tm_gmtoff field" >&5
13889 $as_echo_n "checking whether struct tm has tm_gmtoff field... " >&6; }
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13892 #ifdef HAVE_TIME_H
13893 #include <time.h>
13894 #endif
13895 #ifdef HAVE_SYS_TIME_H
13896 #include <sys/time.h>
13897 #endif
13898
13899 int
13900 main ()
13901 {
13902 struct tm my_time; my_time.tm_gmtoff = 0;
13903 ;
13904 return 0;
13905 }
13906 _ACEOF
13907 if ac_fn_c_try_compile "$LINENO"; then :
13908 have_tm_gmtoff="yes"
13909 else
13910 have_tm_gmtoff="no"
13911 fi
13912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tm_gmtoff" >&5
13914 $as_echo "$have_tm_gmtoff" >&6; }
13915 if test $have_tm_gmtoff = "yes" ; then
13916
13917 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
13918
13919 fi
13920
13921
13922 # raptor V2 is REQUIRED; --enable-raptor2 option was removed
13923 RAPTOR_MIN_VERSION=2.0.7
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13934 if test -n "$ac_tool_prefix"; then
13935 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13936 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13938 $as_echo_n "checking for $ac_word... " >&6; }
13939 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 case $PKG_CONFIG in
13943 [\\/]* | ?:[\\/]*)
13944 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13945 ;;
13946 *)
13947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13948 for as_dir in $PATH
13949 do
13950 IFS=$as_save_IFS
13951 test -z "$as_dir" && as_dir=.
13952 for ac_exec_ext in '' $ac_executable_extensions; do
13953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13954 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13956 break 2
13957 fi
13958 done
13959 done
13960 IFS=$as_save_IFS
13961
13962 ;;
13963 esac
13964 fi
13965 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13966 if test -n "$PKG_CONFIG"; then
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13968 $as_echo "$PKG_CONFIG" >&6; }
13969 else
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13971 $as_echo "no" >&6; }
13972 fi
13973
13974
13975 fi
13976 if test -z "$ac_cv_path_PKG_CONFIG"; then
13977 ac_pt_PKG_CONFIG=$PKG_CONFIG
13978 # Extract the first word of "pkg-config", so it can be a program name with args.
13979 set dummy pkg-config; ac_word=$2
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13981 $as_echo_n "checking for $ac_word... " >&6; }
13982 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13983 $as_echo_n "(cached) " >&6
13984 else
13985 case $ac_pt_PKG_CONFIG in
13986 [\\/]* | ?:[\\/]*)
13987 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13988 ;;
13989 *)
13990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991 for as_dir in $PATH
13992 do
13993 IFS=$as_save_IFS
13994 test -z "$as_dir" && as_dir=.
13995 for ac_exec_ext in '' $ac_executable_extensions; do
13996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13997 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13999 break 2
14000 fi
14001 done
14002 done
14003 IFS=$as_save_IFS
14004
14005 ;;
14006 esac
14007 fi
14008 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14009 if test -n "$ac_pt_PKG_CONFIG"; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14011 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14012 else
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 $as_echo "no" >&6; }
14015 fi
14016
14017 if test "x$ac_pt_PKG_CONFIG" = x; then
14018 PKG_CONFIG=""
14019 else
14020 case $cross_compiling:$ac_tool_warned in
14021 yes:)
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14024 ac_tool_warned=yes ;;
14025 esac
14026 PKG_CONFIG=$ac_pt_PKG_CONFIG
14027 fi
14028 else
14029 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14030 fi
14031
14032 fi
14033 if test -n "$PKG_CONFIG"; then
14034 _pkg_min_version=0.9.0
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14036 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14037 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14039 $as_echo "yes" >&6; }
14040 else
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14043 PKG_CONFIG=""
14044 fi
14045 fi
14046
14047
14048 pkg_failed=no
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAPTOR2" >&5
14050 $as_echo_n "checking for RAPTOR2... " >&6; }
14051
14052 if test -n "$RAPTOR2_CFLAGS"; then
14053 pkg_cv_RAPTOR2_CFLAGS="$RAPTOR2_CFLAGS"
14054 elif test -n "$PKG_CONFIG"; then
14055 if test -n "$PKG_CONFIG" && \
14056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raptor2\""; } >&5
14057 ($PKG_CONFIG --exists --print-errors "raptor2") 2>&5
14058 ac_status=$?
14059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14060 test $ac_status = 0; }; then
14061 pkg_cv_RAPTOR2_CFLAGS=`$PKG_CONFIG --cflags "raptor2" 2>/dev/null`
14062 test "x$?" != "x0" && pkg_failed=yes
14063 else
14064 pkg_failed=yes
14065 fi
14066 else
14067 pkg_failed=untried
14068 fi
14069 if test -n "$RAPTOR2_LIBS"; then
14070 pkg_cv_RAPTOR2_LIBS="$RAPTOR2_LIBS"
14071 elif test -n "$PKG_CONFIG"; then
14072 if test -n "$PKG_CONFIG" && \
14073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raptor2\""; } >&5
14074 ($PKG_CONFIG --exists --print-errors "raptor2") 2>&5
14075 ac_status=$?
14076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14077 test $ac_status = 0; }; then
14078 pkg_cv_RAPTOR2_LIBS=`$PKG_CONFIG --libs "raptor2" 2>/dev/null`
14079 test "x$?" != "x0" && pkg_failed=yes
14080 else
14081 pkg_failed=yes
14082 fi
14083 else
14084 pkg_failed=untried
14085 fi
14086
14087
14088
14089 if test $pkg_failed = yes; then
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14092
14093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14094 _pkg_short_errors_supported=yes
14095 else
14096 _pkg_short_errors_supported=no
14097 fi
14098 if test $_pkg_short_errors_supported = yes; then
14099 RAPTOR2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raptor2" 2>&1`
14100 else
14101 RAPTOR2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raptor2" 2>&1`
14102 fi
14103 # Put the nasty error message in config.log where it belongs
14104 echo "$RAPTOR2_PKG_ERRORS" >&5
14105
14106
14107 as_fn_error $? "Raptor is not installed - see http://librdf.org/raptor/ to get $RAPTOR_MIN_VERSION or newer" "$LINENO" 5
14108
14109 elif test $pkg_failed = untried; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14111 $as_echo "no" >&6; }
14112
14113 as_fn_error $? "Raptor is not installed - see http://librdf.org/raptor/ to get $RAPTOR_MIN_VERSION or newer" "$LINENO" 5
14114
14115 else
14116 RAPTOR2_CFLAGS=$pkg_cv_RAPTOR2_CFLAGS
14117 RAPTOR2_LIBS=$pkg_cv_RAPTOR2_LIBS
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14119 $as_echo "yes" >&6; }
14120
14121 RAPTOR_VERSION=`$PKG_CONFIG raptor2 --modversion 2>/dev/null`
14122 raptor_too_old=0
14123 as_arg_v1=$RAPTOR_VERSION
14124 as_arg_v2=$RAPTOR_MIN_VERSION
14125 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14126 case $? in #(
14127 1) :
14128 raptor_too_old="1" ;; #(
14129 0) :
14130 ;; #(
14131 2) :
14132 ;; #(
14133 *) :
14134 ;;
14135 esac
14136 if test $raptor_too_old = 1; then
14137 as_fn_error $? "Raptor $RAPTOR_VERSION is too old - see http://librdf.org/raptor/ to get a $RAPTOR_MIN_VERSION or newer" "$LINENO" 5
14138 fi
14139
14140 fi
14141
14142
14143
14144 RAPTOR_VERSION_DEC=`echo $RAPTOR_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
14145
14146
14147
14148 if test $RAPTOR_VERSION_DEC '<' 20015; then
14149 RASQAL_SORT_TRUE=
14150 RASQAL_SORT_FALSE='#'
14151 else
14152 RASQAL_SORT_TRUE='#'
14153 RASQAL_SORT_FALSE=
14154 fi
14155
14156
14157 have_regex_pcre=0
14158 have_regex_posix=0
14159 need_regex_pcre=0
14160 need_regex_posix=0
14161
14162 # Check whether --enable-pcre was given.
14163 if test "${enable_pcre+set}" = set; then :
14164 enableval=$enable_pcre; enable_pcre=$enableval
14165 else
14166 enable_pcre="auto"
14167 fi
14168
14169
14170 if test "x$enable_pcre" != "xno" ; then
14171
14172
14173 # Check whether --with-pcre-config was given.
14174 if test "${with_pcre_config+set}" = set; then :
14175 withval=$with_pcre_config; pcre_config="$withval"
14176 else
14177 pcre_config=""
14178 fi
14179
14180
14181 if test "X$pcre_config" != "Xno" ; then
14182 if test "X$pcre_config" != "X" ; then
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pcre_config" >&5
14184 $as_echo_n "checking for $pcre_config... " >&6; }
14185
14186 if test -x $pcre_config ; then
14187 PCRE_CONFIG=$pcre_config
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14189 $as_echo "yes" >&6; }
14190 else
14191 as_fn_error $? "pcre-config not found at specified path $pcre_config" "$LINENO" 5
14192 fi
14193 fi
14194 if test "X$PCRE_CONFIG" = "X" ; then
14195 for ac_prog in pcre-config
14196 do
14197 # Extract the first word of "$ac_prog", so it can be a program name with args.
14198 set dummy $ac_prog; ac_word=$2
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14200 $as_echo_n "checking for $ac_word... " >&6; }
14201 if ${ac_cv_prog_PCRE_CONFIG+:} false; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 if test -n "$PCRE_CONFIG"; then
14205 ac_cv_prog_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test.
14206 else
14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $PATH
14209 do
14210 IFS=$as_save_IFS
14211 test -z "$as_dir" && as_dir=.
14212 for ac_exec_ext in '' $ac_executable_extensions; do
14213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14214 ac_cv_prog_PCRE_CONFIG="$ac_prog"
14215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14216 break 2
14217 fi
14218 done
14219 done
14220 IFS=$as_save_IFS
14221
14222 fi
14223 fi
14224 PCRE_CONFIG=$ac_cv_prog_PCRE_CONFIG
14225 if test -n "$PCRE_CONFIG"; then
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
14227 $as_echo "$PCRE_CONFIG" >&6; }
14228 else
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14230 $as_echo "no" >&6; }
14231 fi
14232
14233
14234 test -n "$PCRE_CONFIG" && break
14235 done
14236
14237 fi
14238 fi
14239
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre" >&5
14241 $as_echo_n "checking for pcre... " >&6; }
14242 PCRE_VERSION=`$PCRE_CONFIG --version 2>/dev/null`
14243 PCRE_MIN_VERSION=3.9
14244
14245 PCRE_VERSION_DEC=`echo $PCRE_VERSION | $AWK -F. '{printf("%d\n", 100*$1 + $2)};'`
14246 PCRE_MIN_VERSION_DEC=`echo $PCRE_MIN_VERSION | $AWK -F. '{printf("%d\n", 100*$1 + $2)};'`
14247 if test "X$PCRE_VERSION" = X; then
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
14249 $as_echo "not present" >&6; }
14250 elif test "X$PCRE_VERSION" -a $PCRE_VERSION_DEC -ge $PCRE_MIN_VERSION_DEC; then
14251 have_regex_pcre=1
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_VERSION" >&5
14253 $as_echo "$PCRE_VERSION" >&6; }
14254 else
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $PCRE_VERSION - too old - need $PCRE_MIN_VERSION" >&5
14256 $as_echo "$as_me: WARNING: $PCRE_VERSION - too old - need $PCRE_MIN_VERSION" >&2;}
14257 fi
14258
14259 if test $have_regex_pcre = 1; then
14260
14261 $as_echo "#define HAVE_REGEX_PCRE 1" >>confdefs.h
14262
14263 elif test "x$enable_pcre" = "xyes"; then
14264 as_fn_error $? "PCRE requested but not found" "$LINENO" 5
14265 fi
14266
14267 fi
14268
14269
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix regex library" >&5
14271 $as_echo_n "checking for posix regex library... " >&6; }
14272 oLIBS="$LIBS"
14273 if test $ac_cv_header_regex_h = yes; then
14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275 /* end confdefs.h. */
14276 #include <sys/types.h>
14277 #include <regex.h>
14278 int
14279 main ()
14280 {
14281 regex_t reg; char *pat="abc"; regcomp(&reg, pat, 0);
14282 ;
14283 return 0;
14284 }
14285 _ACEOF
14286 if ac_fn_c_try_link "$LINENO"; then :
14287 worked=yes
14288 else
14289 worked=no
14290 fi
14291 rm -f core conftest.err conftest.$ac_objext \
14292 conftest$ac_exeext conftest.$ac_ext
14293 if test $worked = yes; then
14294 have_regex_posix=1
14295 fi
14296 fi
14297
14298 LIBS="$oLIBS"
14299
14300 if test $have_regex_posix = 1; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14302 $as_echo "yes" >&6; }
14303
14304 $as_echo "#define HAVE_REGEX_POSIX 1" >>confdefs.h
14305
14306 else
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308 $as_echo "no" >&6; }
14309 fi
14310
14311
14312
14313
14314 # Check whether --with-regex-library was given.
14315 if test "${with_regex_library+set}" = set; then :
14316 withval=$with_regex_library; regex_library="$withval"
14317 else
14318 regex_library=""
14319 fi
14320
14321
14322 for regex_library_name in $regex_library pcre posix; do
14323 case $regex_library_name in
14324 pcre)
14325 if test $have_regex_pcre = 1; then
14326 need_regex_pcre=1
14327
14328 $as_echo "#define RASQAL_REGEX_PCRE 1" >>confdefs.h
14329
14330 break
14331 fi
14332 ;;
14333
14334 posix)
14335 if test $have_regex_posix = 1; then
14336 need_regex_posix=1
14337
14338 $as_echo "#define RASQAL_REGEX_POSIX 1" >>confdefs.h
14339
14340 break
14341 fi
14342 ;;
14343
14344 *)
14345 as_fn_error $? "No such regex library $regex_library_name" "$LINENO" 5
14346 ;;
14347 esac
14348 done
14349
14350
14351
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking regex library to use" >&5
14353 $as_echo_n "checking regex library to use... " >&6; }
14354 regex_library=
14355 if test $need_regex_pcre = 1; then
14356 regex_library=pcre
14357 elif test $need_regex_posix = 1; then
14358 regex_library=posix
14359 else
14360 regex_library=none
14361
14362 $as_echo "#define RASQAL_REGEX_NONE 1" >>confdefs.h
14363
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No regex library available - please install pcre or a POSIX regex library" >&5
14365 $as_echo "$as_me: WARNING: No regex library available - please install pcre or a POSIX regex library" >&2;}
14366 fi
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $regex_library" >&5
14368 $as_echo "$regex_library" >&6; }
14369
14370
14371 have_digest_mhash=no
14372 have_digest_gcrypt=no
14373 have_digest_internal=yes
14374 need_digest_mhash=no
14375 need_digest_gcrypt=no
14376 need_digest_internal=no
14377
14378
14379 # Check whether --with-mhash was given.
14380 if test "${with_mhash+set}" = set; then :
14381 withval=$with_mhash; mhash_dir=$withval
14382 else
14383 mhash_dir=""
14384 fi
14385
14386
14387 oCPPFLAGS="$CPPFLAGS"
14388 oLIBS="$LIBS"
14389 if test "X$mhash_dir" != "X" ; then
14390 CPPFLAGS="$CPPFLAGS -I$mhash_dir/include"
14391 LIBS="$LIBS -L$mhash_dir/lib"
14392 fi
14393 LIBS="$LIBS -lmhash"
14394
14395 for ac_header in mhash.h
14396 do :
14397 ac_fn_c_check_header_mongrel "$LINENO" "mhash.h" "ac_cv_header_mhash_h" "$ac_includes_default"
14398 if test "x$ac_cv_header_mhash_h" = xyes; then :
14399 cat >>confdefs.h <<_ACEOF
14400 #define HAVE_MHASH_H 1
14401 _ACEOF
14402
14403 fi
14404
14405 done
14406
14407
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash" >&5
14409 $as_echo_n "checking for mhash... " >&6; }
14410
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14413
14414 #undef PACKAGE
14415 #undef PACKAGE_BUGREPORT
14416 #undef PACKAGE_NAME
14417 #undef PACKAGE_STRING
14418 #undef PACKAGE_TARNAME
14419 #undef PACKAGE_VERSION
14420 #undef VERSION
14421 #include <mhash.h>
14422 int
14423 main ()
14424 {
14425 MHASH m; mhash_init(MHASH_MD5);
14426 ;
14427 return 0;
14428 }
14429 _ACEOF
14430 if ac_fn_c_try_link "$LINENO"; then :
14431 have_digest_mhash=yes
14432 else
14433 have_digest_mhash=no
14434 fi
14435 rm -f core conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
14437
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_digest_mhash" >&5
14439 $as_echo "$have_digest_mhash" >&6; }
14440
14441 CPPFLAGS="$oCPPFLAGS"
14442 LIBS="$oLIBS"
14443
14444
14445
14446 # Check whether --with-libgcrypt-config was given.
14447 if test "${with_libgcrypt_config+set}" = set; then :
14448 withval=$with_libgcrypt_config; libgcrypt_config="$withval"
14449 else
14450 libgcrypt_config=""
14451 fi
14452
14453 if test "X$libgcrypt_config" != "Xno" ; then
14454 if test "X$libgcrypt_config" != "X" ; then
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libgcrypt_config" >&5
14456 $as_echo_n "checking for $libgcrypt_config... " >&6; }
14457
14458 if test -x $libgcrypt_config ; then
14459 LIBGCRYPT_CONFIG=$libgcrypt_config
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14461 $as_echo "yes" >&6; }
14462 else
14463 as_fn_error $? "libgcrypt-config not found at specified path $libgcrypt_config" "$LINENO" 5
14464 fi
14465 fi
14466 if test "X$LIBGCRYPT_CONFIG" = "X" ; then
14467 for ac_prog in libgcrypt-config
14468 do
14469 # Extract the first word of "$ac_prog", so it can be a program name with args.
14470 set dummy $ac_prog; ac_word=$2
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14472 $as_echo_n "checking for $ac_word... " >&6; }
14473 if ${ac_cv_prog_LIBGCRYPT_CONFIG+:} false; then :
14474 $as_echo_n "(cached) " >&6
14475 else
14476 if test -n "$LIBGCRYPT_CONFIG"; then
14477 ac_cv_prog_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test.
14478 else
14479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14480 for as_dir in $PATH
14481 do
14482 IFS=$as_save_IFS
14483 test -z "$as_dir" && as_dir=.
14484 for ac_exec_ext in '' $ac_executable_extensions; do
14485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14486 ac_cv_prog_LIBGCRYPT_CONFIG="$ac_prog"
14487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14488 break 2
14489 fi
14490 done
14491 done
14492 IFS=$as_save_IFS
14493
14494 fi
14495 fi
14496 LIBGCRYPT_CONFIG=$ac_cv_prog_LIBGCRYPT_CONFIG
14497 if test -n "$LIBGCRYPT_CONFIG"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
14499 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
14500 else
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14503 fi
14504
14505
14506 test -n "$LIBGCRYPT_CONFIG" && break
14507 done
14508
14509 fi
14510 fi
14511
14512 for ac_header in gcrypt.h
14513 do :
14514 ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default"
14515 if test "x$ac_cv_header_gcrypt_h" = xyes; then :
14516 cat >>confdefs.h <<_ACEOF
14517 #define HAVE_GCRYPT_H 1
14518 _ACEOF
14519
14520 fi
14521
14522 done
14523
14524
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcrypt" >&5
14526 $as_echo_n "checking for gcrypt... " >&6; }
14527 GCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version 2>/dev/null`
14528 if test "X$GCRYPT_VERSION" = X; then
14529 have_digest_gcrypt=no
14530 elif test "$ac_cv_header_gcrypt_h" = "yes"; then
14531 oCPPFLAGS="$CPPFLAGS"
14532 oLIBS="$LIBS"
14533 CPPFLAGS="$CPPFLAGS `$LIBGCRYPT_CONFIG --cflags`"
14534 LIBS="$LIBS `$LIBGCRYPT_CONFIG --libs`"
14535
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538
14539 #include <gcrypt.h>
14540 int
14541 main ()
14542 {
14543 gcry_md_hd_t hash; gcry_md_open(hash, GCRY_MD_MD5, 0);
14544 ;
14545 return 0;
14546 }
14547 _ACEOF
14548 if ac_fn_c_try_link "$LINENO"; then :
14549 have_digest_gcrypt=yes
14550 else
14551 have_digest_gcrypt=no
14552 fi
14553 rm -f core conftest.err conftest.$ac_objext \
14554 conftest$ac_exeext conftest.$ac_ext
14555
14556 CPPFLAGS="$oCPPFLAGS"
14557 LIBS="$oLIBS"
14558 else
14559 have_digest_gcrypt=no
14560 fi
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_digest_gcrypt" >&5
14562 $as_echo "$have_digest_gcrypt" >&6; }
14563
14564
14565
14566 # Check whether --with-digest-library was given.
14567 if test "${with_digest_library+set}" = set; then :
14568 withval=$with_digest_library; digest_library="$withval"
14569 else
14570 digest_library=""
14571 fi
14572
14573
14574 for digest_library_name in $digest_library mhash gcrypt internal; do
14575 case $digest_library_name in
14576 mhash)
14577 if test $have_digest_mhash = yes; then
14578 need_digest_mhash=yes
14579
14580 $as_echo "#define RASQAL_DIGEST_MHASH 1" >>confdefs.h
14581
14582 break
14583 fi
14584 ;;
14585
14586 gcrypt)
14587 if test $have_digest_gcrypt = yes; then
14588 need_digest_gcrypt=yes
14589
14590 $as_echo "#define RASQAL_DIGEST_GCRYPT 1" >>confdefs.h
14591
14592 break
14593 fi
14594 ;;
14595
14596 internal)
14597 need_digest_internal=yes
14598
14599 $as_echo "#define RASQAL_DIGEST_INTERNAL 1" >>confdefs.h
14600
14601 break
14602 ;;
14603
14604 *)
14605 as_fn_error $? "No such message digest library $digest_library_name" "$LINENO" 5
14606 ;;
14607 esac
14608 done
14609
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking message digest library to use" >&5
14611 $as_echo_n "checking message digest library to use... " >&6; }
14612 digest_library=
14613 if test $need_digest_mhash = yes; then
14614 digest_library=mhash
14615 elif test $need_digest_gcrypt = yes; then
14616 digest_library=gcrypt
14617 elif test $need_digest_internal = yes; then
14618 digest_library=internal
14619 else
14620 digest_library=none
14621
14622 $as_echo "#define RASQAL_DIGEST_NONE 1" >>confdefs.h
14623
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No message digest library selected - no message digest support will work" >&5
14625 $as_echo "$as_me: WARNING: No message digest library selected - no message digest support will work" >&2;}
14626 fi
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $digest_library" >&5
14628 $as_echo "$digest_library" >&6; }
14629
14630 if test $digest_library = internal; then
14631 RASQAL_DIGEST_INTERNAL_TRUE=
14632 RASQAL_DIGEST_INTERNAL_FALSE='#'
14633 else
14634 RASQAL_DIGEST_INTERNAL_TRUE='#'
14635 RASQAL_DIGEST_INTERNAL_FALSE=
14636 fi
14637
14638
14639
14640 have_uuid_libuuid=no
14641 have_uuid_libc=no
14642 have_uuid_ossp=no
14643 need_uuid_libuuid=no
14644 need_uuid_libc=no
14645 need_uuid_internal=no
14646 need_uuid_ossp=no
14647
14648
14649 pkg_failed=no
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5
14651 $as_echo_n "checking for UUID... " >&6; }
14652
14653 if test -n "$UUID_CFLAGS"; then
14654 pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
14655 elif test -n "$PKG_CONFIG"; then
14656 if test -n "$PKG_CONFIG" && \
14657 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
14658 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
14659 ac_status=$?
14660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14661 test $ac_status = 0; }; then
14662 pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
14663 test "x$?" != "x0" && pkg_failed=yes
14664 else
14665 pkg_failed=yes
14666 fi
14667 else
14668 pkg_failed=untried
14669 fi
14670 if test -n "$UUID_LIBS"; then
14671 pkg_cv_UUID_LIBS="$UUID_LIBS"
14672 elif test -n "$PKG_CONFIG"; then
14673 if test -n "$PKG_CONFIG" && \
14674 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
14675 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
14676 ac_status=$?
14677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14678 test $ac_status = 0; }; then
14679 pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
14680 test "x$?" != "x0" && pkg_failed=yes
14681 else
14682 pkg_failed=yes
14683 fi
14684 else
14685 pkg_failed=untried
14686 fi
14687
14688
14689
14690 if test $pkg_failed = yes; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 $as_echo "no" >&6; }
14693
14694 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14695 _pkg_short_errors_supported=yes
14696 else
14697 _pkg_short_errors_supported=no
14698 fi
14699 if test $_pkg_short_errors_supported = yes; then
14700 UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
14701 else
14702 UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
14703 fi
14704 # Put the nasty error message in config.log where it belongs
14705 echo "$UUID_PKG_ERRORS" >&5
14706
14707 have_uuid_libuuid=no
14708 elif test $pkg_failed = untried; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14710 $as_echo "no" >&6; }
14711 have_uuid_libuuid=no
14712 else
14713 UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
14714 UUID_LIBS=$pkg_cv_UUID_LIBS
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14716 $as_echo "yes" >&6; }
14717
14718 LIBUUID_VERSION=`$PKG_CONFIG uuid --modversion 2>/dev/null`
14719
14720 oCPPFLAGS="$CPPFLAGS"
14721 oLIBS="$LIBS"
14722
14723 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG uuid --cflags`"
14724 LIBS="$LIBS `$PKG_CONFIG uuid --libs`"
14725
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728
14729 #include <uuid.h>
14730 int
14731 main ()
14732 {
14733
14734 #if defined(UUID_LEN_BIN) && defined(UUID_VERSION)
14735 FAIL
14736 #endif
14737 uuid_t data; uuid_clear(&data);
14738 ;
14739 return 0;
14740 }
14741 _ACEOF
14742 if ac_fn_c_try_link "$LINENO"; then :
14743 have_uuid_libuuid=yes
14744 else
14745 have_uuid_libuuid=no
14746 fi
14747 rm -f core conftest.err conftest.$ac_objext \
14748 conftest$ac_exeext conftest.$ac_ext
14749
14750 CPPFLAGS="$oCPPFLAGS"
14751 LIBS="$oLIBS"
14752
14753 fi
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuuid" >&5
14755 $as_echo_n "checking for libuuid... " >&6; }
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_uuid_libuuid" >&5
14757 $as_echo "$have_uuid_libuuid" >&6; }
14758
14759 for ac_prog in uuid-config
14760 do
14761 # Extract the first word of "$ac_prog", so it can be a program name with args.
14762 set dummy $ac_prog; ac_word=$2
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14764 $as_echo_n "checking for $ac_word... " >&6; }
14765 if ${ac_cv_prog_UUID_CONFIG+:} false; then :
14766 $as_echo_n "(cached) " >&6
14767 else
14768 if test -n "$UUID_CONFIG"; then
14769 ac_cv_prog_UUID_CONFIG="$UUID_CONFIG" # Let the user override the test.
14770 else
14771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772 for as_dir in $PATH
14773 do
14774 IFS=$as_save_IFS
14775 test -z "$as_dir" && as_dir=.
14776 for ac_exec_ext in '' $ac_executable_extensions; do
14777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14778 ac_cv_prog_UUID_CONFIG="$ac_prog"
14779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14780 break 2
14781 fi
14782 done
14783 done
14784 IFS=$as_save_IFS
14785
14786 fi
14787 fi
14788 UUID_CONFIG=$ac_cv_prog_UUID_CONFIG
14789 if test -n "$UUID_CONFIG"; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UUID_CONFIG" >&5
14791 $as_echo "$UUID_CONFIG" >&6; }
14792 else
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794 $as_echo "no" >&6; }
14795 fi
14796
14797
14798 test -n "$UUID_CONFIG" && break
14799 done
14800
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ossp libuuid" >&5
14802 $as_echo_n "checking for ossp libuuid... " >&6; }
14803 if test "X$UUID_CONFIG" != X; then
14804 OSSP_UUID_VERSION=`$UUID_CONFIG --version 2>/dev/null`
14805
14806 oCPPFLAGS="$CPPFLAGS"
14807 oLIBS="$LIBS"
14808
14809 CPPFLAGS="$CPPFLAGS `$UUID_CONFIG --cflags`"
14810 LIBS="$LIBS `$UUID_CONFIG --ldflags --libs`"
14811
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14814
14815 #include <uuid.h>
14816 int
14817 main ()
14818 {
14819 uuid_t *data; uuid_create(&data);
14820 ;
14821 return 0;
14822 }
14823 _ACEOF
14824 if ac_fn_c_try_link "$LINENO"; then :
14825 have_uuid_ossp=yes
14826 else
14827 have_uuid_ossp=no
14828 fi
14829 rm -f core conftest.err conftest.$ac_objext \
14830 conftest$ac_exeext conftest.$ac_ext
14831
14832 CPPFLAGS="$oCPPFLAGS"
14833 LIBS="$oLIBS"
14834 fi
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_uuid_ossp" >&5
14836 $as_echo "$have_uuid_ossp" >&6; }
14837
14838 for ac_header in uuid/uuid.h
14839 do :
14840 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14841 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
14842 cat >>confdefs.h <<_ACEOF
14843 #define HAVE_UUID_UUID_H 1
14844 _ACEOF
14845
14846 fi
14847
14848 done
14849
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID in libc" >&5
14851 $as_echo_n "checking for UUID in libc... " >&6; }
14852 if test "$ac_cv_header_uuid_uuid_h" = "yes"; then
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14855
14856 #include <uuid/uuid.h>
14857 int
14858 main ()
14859 {
14860 uuid_t data; uuid_clear(&data);
14861 ;
14862 return 0;
14863 }
14864 _ACEOF
14865 if ac_fn_c_try_link "$LINENO"; then :
14866 have_uuid_libc=yes
14867 else
14868 have_uuid_libc=no
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext \
14871 conftest$ac_exeext conftest.$ac_ext
14872 fi
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_uuid_libc" >&5
14874 $as_echo "$have_uuid_libc" >&6; }
14875
14876
14877
14878 # Check whether --with-uuid-library was given.
14879 if test "${with_uuid_library+set}" = set; then :
14880 withval=$with_uuid_library; uuid_library="$withval"
14881 else
14882 uuid_library=""
14883 fi
14884
14885
14886 for uuid_library_name in $uuid_library libuuid ossp libc internal; do
14887 case $uuid_library_name in
14888 libuuid)
14889 if test $have_uuid_libuuid = yes; then
14890 need_uuid_libuuid=yes
14891
14892 $as_echo "#define RASQAL_UUID_LIBUUID 1" >>confdefs.h
14893
14894 break
14895 fi
14896 ;;
14897
14898 ossp)
14899 if test $have_uuid_ossp = yes; then
14900 need_uuid_ossp=yes
14901
14902 $as_echo "#define RASQAL_UUID_OSSP 1" >>confdefs.h
14903
14904 break
14905 fi
14906 ;;
14907
14908 libc)
14909 if test $have_uuid_libc = yes; then
14910 need_uuid_libc=yes
14911
14912 $as_echo "#define RASQAL_UUID_LIBC 1" >>confdefs.h
14913
14914 break
14915 fi
14916 ;;
14917
14918 internal)
14919 need_uuid_internal=yes
14920
14921 $as_echo "#define RASQAL_UUID_INTERNAL 1" >>confdefs.h
14922
14923 break
14924 ;;
14925
14926 *)
14927 as_fn_error $? "No such UUID library $uuid_library_name" "$LINENO" 5
14928 ;;
14929 esac
14930 done
14931
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UUID library to use" >&5
14933 $as_echo_n "checking UUID library to use... " >&6; }
14934 uuid_library=
14935 if test $need_uuid_libuuid = yes; then
14936 uuid_library="libuuid $LIBUUID_VERSION"
14937 elif test $need_uuid_ossp = yes; then
14938 uuid_library="ossp $OSSP_UUID_VERSION"
14939 elif test $need_uuid_libc = yes; then
14940 uuid_library=libc
14941 elif test $need_uuid_internal = yes; then
14942 uuid_library=internal
14943 else
14944 uuid_library=none
14945
14946 $as_echo "#define RASQAL_UUID_NONE 1" >>confdefs.h
14947
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No UUID library selected - no UUID support will work" >&5
14949 $as_echo "$as_me: WARNING: No UUID library selected - no UUID support will work" >&2;}
14950 fi
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uuid_library" >&5
14952 $as_echo "$uuid_library" >&6; }
14953
14954
14955
14956 have_libxml=0
14957 need_libxml=0
14958
14959 # Check whether --enable-xml2 was given.
14960 if test "${enable_xml2+set}" = set; then :
14961 enableval=$enable_xml2; enable_xml2=$enableval
14962 else
14963 enable_xml2="auto"
14964 fi
14965
14966
14967 if test "x$enable_xml2" != "xno" ; then
14968
14969
14970 # Check whether --with-xml2-config was given.
14971 if test "${with_xml2_config+set}" = set; then :
14972 withval=$with_xml2_config; xml2_config="$withval"
14973 else
14974 xml2_config=""
14975 fi
14976
14977
14978 if test "X$xml2_config" != "X" ; then
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $xml2_config" >&5
14980 $as_echo_n "checking for $xml2_config... " >&6; }
14981
14982 if test -x $xml2_config ; then
14983 XML_CONFIG=$xml2_config
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14985 $as_echo "yes" >&6; }
14986 else
14987 as_fn_error $? "xml2-config not found at specified path $xml2_config" "$LINENO" 5
14988 fi
14989 fi
14990 if test "X$XML_CONFIG" = "X"; then
14991 for ac_prog in xml2-config
14992 do
14993 # Extract the first word of "$ac_prog", so it can be a program name with args.
14994 set dummy $ac_prog; ac_word=$2
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14996 $as_echo_n "checking for $ac_word... " >&6; }
14997 if ${ac_cv_prog_XML_CONFIG+:} false; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 if test -n "$XML_CONFIG"; then
15001 ac_cv_prog_XML_CONFIG="$XML_CONFIG" # Let the user override the test.
15002 else
15003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15004 for as_dir in $PATH
15005 do
15006 IFS=$as_save_IFS
15007 test -z "$as_dir" && as_dir=.
15008 for ac_exec_ext in '' $ac_executable_extensions; do
15009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15010 ac_cv_prog_XML_CONFIG="$ac_prog"
15011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15012 break 2
15013 fi
15014 done
15015 done
15016 IFS=$as_save_IFS
15017
15018 fi
15019 fi
15020 XML_CONFIG=$ac_cv_prog_XML_CONFIG
15021 if test -n "$XML_CONFIG"; then
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
15023 $as_echo "$XML_CONFIG" >&6; }
15024 else
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15026 $as_echo "no" >&6; }
15027 fi
15028
15029
15030 test -n "$XML_CONFIG" && break
15031 done
15032
15033 fi
15034
15035
15036 LIBXML_MIN_VERSION=2.6.8
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
15038 $as_echo_n "checking for libxml2 library... " >&6; }
15039 oCPPFLAGS="$CPPFLAGS"
15040 oLIBS="$LIBS"
15041 if test "X$XML_CONFIG" != X; then
15042 LIBS="$LIBS `$XML_CONFIG --libs`"
15043 CPPFLAGS="`$XML_CONFIG --cflags` $CPPFLAGS"
15044 LIBXML_VERSION=`$XML_CONFIG --version`
15045 libxml_version_dec=`echo $LIBXML_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
15046 LIBXML_MIN_VERSION_dec=`echo $LIBXML_MIN_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - version $LIBXML_VERSION" >&5
15048 $as_echo "yes - version $LIBXML_VERSION" >&6; }
15049 if test $libxml_version_dec -lt $LIBXML_MIN_VERSION_dec; then
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using libxml $LIBXML_VERSION is unsupported - $LIBXML_MIN_VERSION or newer required." >&5
15051 $as_echo "$as_me: WARNING: Using libxml $LIBXML_VERSION is unsupported - $LIBXML_MIN_VERSION or newer required." >&2;}
15052 else
15053 for ac_header in libxml/xmlschemas.h libxml/xmlschemastypes.h libxml/schemasInternals.h
15054 do :
15055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15056 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15058 cat >>confdefs.h <<_ACEOF
15059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15060 _ACEOF
15061
15062 fi
15063
15064 done
15065
15066 if test "$ac_cv_header_libxml_xmlschemas_h" = no; then
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libxml library found but not xml schema headers - disabling" >&5
15068 $as_echo "$as_me: WARNING: libxml library found but not xml schema headers - disabling" >&2;}
15069 else
15070 have_libxml=1
15071 fi
15072 fi
15073 else
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15075 $as_echo "no" >&6; }
15076 fi
15077 CPPFLAGS="$oCPPFLAGS"
15078 LIBS="$oLIBS"
15079
15080 if test $have_libxml = 0 && test "x$enable_xml2" = "xyes" ; then
15081 as_fn_error $? "libxml2 requested but not found" "$LINENO" 5
15082 fi
15083
15084 fi
15085
15086
15087 sparql_query_language=no
15088 laqrs_query_language=no
15089
15090 rdf_query_languages_available="sparql laqrs"
15091 rdf_query_languages_enabled=
15092
15093
15094 # This is needed because autoheader can't work out which computed
15095 # symbols must be pulled from acconfig.h into config.h.in
15096 if test "x" = "y"; then
15097
15098 $as_echo "#define RASQAL_QUERY_LAQRS 1" >>confdefs.h
15099
15100
15101 $as_echo "#define RASQAL_QUERY_SPARQL 1" >>confdefs.h
15102
15103 fi
15104
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking query languages required" >&5
15106 $as_echo_n "checking query languages required... " >&6; }
15107 # Check whether --enable-query-languages was given.
15108 if test "${enable_query_languages+set}" = set; then :
15109 enableval=$enable_query_languages; query_languages="$enableval"
15110 fi
15111
15112 if test "X$query_languages" = Xall -o "X$query_languages" = X; then
15113 query_languages="$rdf_query_languages_available"
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: all" >&5
15115 $as_echo "all" >&6; }
15116 else
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $query_languages" >&5
15118 $as_echo "$query_languages" >&6; }
15119 fi
15120
15121 for query_language in $query_languages; do
15122 p=$query_language
15123 eval $p'_query_language=yes'
15124 NAME=`echo $p | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15125 n=RASQAL_QUERY_${NAME}
15126 cat >>confdefs.h <<_ACEOF
15127 #define $n 1
15128 _ACEOF
15129
15130 rdf_query_languages_enabled="$rdf_query_languages_enabled $query_language"
15131 done
15132
15133 if test $laqrs_query_language = yes; then
15134 RASQAL_QUERY_LAQRS_TRUE=
15135 RASQAL_QUERY_LAQRS_FALSE='#'
15136 else
15137 RASQAL_QUERY_LAQRS_TRUE='#'
15138 RASQAL_QUERY_LAQRS_FALSE=
15139 fi
15140
15141 if test $sparql_query_language = yes; then
15142 RASQAL_QUERY_SPARQL_TRUE=
15143 RASQAL_QUERY_SPARQL_FALSE='#'
15144 else
15145 RASQAL_QUERY_SPARQL_TRUE='#'
15146 RASQAL_QUERY_SPARQL_FALSE=
15147 fi
15148
15149
15150
15151
15152 RASQAL_INTERNAL_CPPFLAGS="$RASQAL_INTERNAL_CPPFLAGS $RAPTOR2_CFLAGS"
15153 RASQAL_EXTERNAL_LIBS="$RASQAL_EXTERNAL_LIBS $RAPTOR2_LIBS"
15154
15155
15156 if test $need_regex_pcre = 1; then
15157 C=`$PCRE_CONFIG --cflags`
15158 L=`$PCRE_CONFIG --libs`
15159 RASQAL_INTERNAL_CPPFLAGS="$RASQAL_INTERNAL_CPPFLAGS $C"
15160 RASQAL_EXTERNAL_LIBS="$RASQAL_EXTERNAL_LIBS $L"
15161
15162 PKGCONFIG_CFLAGS="$PKGCONFIG_CFLAGS $C"
15163 PKGCONFIG_LIBS="$PKGCONFIG_LIBS $L"
15164 unset C
15165 unset L
15166 fi
15167
15168
15169 if test $need_digest_mhash = yes; then
15170 C=""
15171 L="-lmhash"
15172 if test "X$mhash_dir" != "X" ; then
15173 C="-I$mhash_dir/include"
15174 L="-L$mhash_dir/lib $L"
15175 fi
15176
15177 RASQAL_INTERNAL_CPPFLAGS="$RASQAL_INTERNAL_CPPFLAGS $C"
15178 RASQAL_EXTERNAL_LIBS="$RASQAL_EXTERNAL_LIBS $L"
15179
15180 unset C
15181 unset L
15182 fi
15183
15184
15185 if test $need_digest_gcrypt = yes; then
15186 C=`$LIBGCRYPT_CONFIG --cflags`
15187 L=`$LIBGCRYPT_CONFIG --libs`
15188 RASQAL_INTERNAL_CPPFLAGS="$RASQAL_INTERNAL_CPPFLAGS $C"
15189 RASQAL_EXTERNAL_LIBS="$RASQAL_EXTERNAL_LIBS $L"
15190
15191 unset C
15192 unset L
15193 fi
15194
15195
15196 if test $need_uuid_libuuid = yes; then
15197 RASQAL_INTERNAL_CPPFLAGS="$RASQAL_INTERNAL_CPPFLAGS $UUID_CFLAGS"
15198 RASQAL_EXTERNAL_LIBS="$RASQAL_EXTERNAL_LIBS $UUID_LIBS"
15199
15200 PKGCONFIG_CFLAGS="$PKGCONFIG_CFLAGS $UUID_CFLAGS"
15201 PKGCONFIG_LIBS="$PKGCONFIG_LIBS $UUID_LIBS"
15202 fi
15203
15204
15205 if test $need_uuid_ossp = yes; then
15206 C=`$UUID_CONFIG --cflags`
15207 L=`$UUID_CONFIG --ldflags --libs`
15208 RASQAL_INTERNAL_CPPFLAGS="$RASQAL_INTERNAL_CPPFLAGS $C"
15209 RASQAL_EXTERNAL_LIBS="$RASQAL_EXTERNAL_LIBS $L"
15210
15211 unset C
15212 unset L
15213 fi
15214
15215
15216 gmp_lib_dir=
15217 gmp_include_dir=
15218
15219 # Check whether --with-gmp was given.
15220 if test "${with_gmp+set}" = set; then :
15221 withval=$with_gmp; gmp_prefix="$withval"
15222 else
15223 gmp_prefix="none"
15224 fi
15225
15226 if test "X$gmp_prefix" != "Xnone" ; then
15227 gmp_libs="-L$gmp_prefix/lib"
15228 gmp_includes="-I$gmp_prefix/include"
15229 fi
15230
15231 mpfr_lib_dir=
15232 mpfr_include_dir=
15233
15234 # Check whether --with-mpfr was given.
15235 if test "${with_mpfr+set}" = set; then :
15236 withval=$with_mpfr; mpfr_prefix="$withval"
15237 else
15238 mpfr_prefix="none"
15239 fi
15240
15241 if test "X$mpfr_prefix" != "Xnone" ; then
15242 mpfr_libs="-L$mpfr_prefix/lib"
15243 mpfr_includes="-I$mpfr_prefix/include"
15244 fi
15245
15246 oCPPFLAGS="$CPPFLAGS"
15247 CPPFLAGS="$CPPFLAGS $gmp_includes"
15248 for ac_header in gmp.h
15249 do :
15250 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
15251 if test "x$ac_cv_header_gmp_h" = xyes; then :
15252 cat >>confdefs.h <<_ACEOF
15253 #define HAVE_GMP_H 1
15254 _ACEOF
15255
15256 fi
15257
15258 done
15259
15260 CPPFLAGS="$oCPPFLAGS"
15261
15262 CPPFLAGS="$CPPFLAGS $mpfr_includes"
15263 for ac_header in mpfr.h
15264 do :
15265 ac_fn_c_check_header_compile "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "
15266 #ifdef HAVE_GMP_H
15267 #include <gmp.h>
15268 #endif
15269
15270 "
15271 if test "x$ac_cv_header_mpfr_h" = xyes; then :
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_MPFR_H 1
15274 _ACEOF
15275
15276 fi
15277
15278 done
15279
15280 CPPFLAGS="$oCPPFLAGS"
15281
15282
15283 have_mpfr=0
15284 have_gmp=0
15285
15286 oCPPFLAGS="$CPPFLAGS"
15287 oLIBS="$LIBS"
15288 if test "$ac_cv_header_mpfr_h" = yes; then
15289 CPPFLAGS="$CPPFLAGS $mpfr_includes"
15290 LIBS="$LIBS $mpfr_libs -lmpfr"
15291 ac_fn_c_check_func "$LINENO" "mpfr_init" "ac_cv_func_mpfr_init"
15292 if test "x$ac_cv_func_mpfr_init" = xyes; then :
15293 have_mpfr_init=yes
15294 else
15295 have_mpfr_init=no
15296 fi
15297
15298 # Several functions are used that are not in GMP version of MPFR:
15299 # mpfr_get_default_rounding_mode mpfr_equal_p mpfr_free_str
15300 # MPFR 2.1.0 released 3 Nov 2004 http://www.mpfr.org/mpfr-2.1.0/
15301 # mpfr_snprintf
15302 # MPFR 2.4.0 released 26 January 2009 http://www.mpfr.org/mpfr-2.4.0/
15303 # so just test for the latter.
15304 ac_fn_c_check_func "$LINENO" "mpfr_snprintf" "ac_cv_func_mpfr_snprintf"
15305 if test "x$ac_cv_func_mpfr_snprintf" = xyes; then :
15306 have_mpfr_snprintf=yes
15307 else
15308 have_mpfr_snprintf=no
15309 fi
15310
15311 LIBS="$oLIBS"
15312 CPPFLAGS="$oCPPFLAGS"
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working MPFR library" >&5
15314 $as_echo_n "checking for working MPFR library... " >&6; }
15315 if test $have_mpfr_init = yes -a $have_mpfr_snprintf = yes; then
15316 have_mpfr=1
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15318 $as_echo "yes" >&6; }
15319 else
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15321 $as_echo "no" >&6; }
15322 fi
15323 fi
15324 CPPFLAGS="$oCPPFLAGS"
15325 LIBS="$oLIBS"
15326
15327 have_gmp_version=0
15328 have_gmp_random=no
15329 if test "$ac_cv_header_gmp_h" = yes; then
15330 CPPFLAGS="$CPPFLAGS $gmp_includes"
15331 LIBS="$LIBS $gmp_libs -lgmp"
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU MP library" >&5
15333 $as_echo_n "checking for working GNU MP library... " >&6; }
15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15335 /* end confdefs.h. */
15336 #include <gmp.h>
15337 int
15338 main ()
15339 {
15340 mpz_t n; mpz_init(n);
15341 ;
15342 return 0;
15343 }
15344 _ACEOF
15345 if ac_fn_c_try_link "$LINENO"; then :
15346 have_gmp=1
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15348 $as_echo "yes" >&6; }
15349 else
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15351 $as_echo "no" >&6; }
15352 fi
15353 rm -f core conftest.err conftest.$ac_objext \
15354 conftest$ac_exeext conftest.$ac_ext
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP library random support" >&5
15356 $as_echo_n "checking for GNU MP library random support... " >&6; }
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359 #include <gmp.h>
15360 int
15361 main ()
15362 {
15363
15364 gmp_randstate_t r;
15365 unsigned int ui = 12345;
15366 mpz_t iresult;
15367 mpz_t n;
15368 mpf_t fresult;
15369
15370 gmp_randinit_default(r);
15371
15372 gmp_randseed_ui(r, ui);
15373 mpz_init(iresult);
15374 mpz_init_set_ui(n, 12345);
15375 mpz_urandomm(iresult, r, n);
15376 mpz_clear(iresult);
15377
15378 mpf_urandomb(fresult, r, 5);
15379 mpf_clear(fresult);
15380 mpz_clear(n);
15381
15382 gmp_randclear(r);
15383
15384 ;
15385 return 0;
15386 }
15387 _ACEOF
15388 if ac_fn_c_try_link "$LINENO"; then :
15389 have_gmp_random=yes
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15391 $as_echo "yes" >&6; }
15392 else
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15394 $as_echo "no" >&6; }
15395 fi
15396 rm -f core conftest.err conftest.$ac_objext \
15397 conftest$ac_exeext conftest.$ac_ext
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp_version" >&5
15399 $as_echo_n "checking for gmp_version... " >&6; }
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15402 #include <gmp.h>
15403 int
15404 main ()
15405 {
15406 const char* v=gmp_version;
15407 ;
15408 return 0;
15409 }
15410 _ACEOF
15411 if ac_fn_c_try_link "$LINENO"; then :
15412 have_gmp_version=1
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15414 $as_echo "yes" >&6; }
15415 else
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15417 $as_echo "no" >&6; }
15418 fi
15419 rm -f core conftest.err conftest.$ac_objext \
15420 conftest$ac_exeext conftest.$ac_ext
15421 fi
15422 CPPFLAGS="$oCPPFLAGS"
15423 LIBS="$oLIBS"
15424
15425 if test $have_gmp_version = 1; then
15426
15427 $as_echo "#define HAVE_GMP_VERSION 1" >>confdefs.h
15428
15429 fi
15430
15431 need_mpfr=0
15432 need_gmp=0
15433
15434
15435 # Check whether --with-decimal was given.
15436 if test "${with_decimal+set}" = set; then :
15437 withval=$with_decimal; decimal="$withval"
15438 else
15439 decimal="mpfr"
15440 fi
15441
15442 for decimal_name in $decimal mpfr gmp none; do
15443 case $decimal_name in
15444 mpfr)
15445 if test $have_mpfr = 1; then
15446 need_mpfr=1
15447
15448 $as_echo "#define RASQAL_DECIMAL_MPFR 1" >>confdefs.h
15449
15450 break
15451 fi
15452 ;;
15453
15454 gmp)
15455 if test $have_gmp = 1; then
15456 need_gmp=1
15457
15458 $as_echo "#define RASQAL_DECIMAL_GMP 1" >>confdefs.h
15459
15460 break
15461 fi
15462 ;;
15463
15464 none)
15465 need_mpfr=0
15466 need_gmp=0
15467
15468 $as_echo "#define RASQAL_DECIMAL_NONE 1" >>confdefs.h
15469
15470 break
15471 ;;
15472
15473 *)
15474 as_fn_error $? "No such decimal library $decimal_name" "$LINENO" 5
15475 ;;
15476 esac
15477 done
15478
15479
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking decimal libraries available" >&5
15481 $as_echo_n "checking decimal libraries available... " >&6; }
15482 decimal_libraries_available=
15483 if test $have_mpfr = 1; then
15484 decimal_libraries_available="$decimal_libraries_available mpfr"
15485 fi
15486 if test $have_gmp = 1; then
15487 decimal_libraries_available="$decimal_libraries_available gmp"
15488 fi
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $decimal_libraries_available" >&5
15490 $as_echo "$decimal_libraries_available" >&6; }
15491
15492
15493 need_libm=0
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking decimal library to use" >&5
15495 $as_echo_n "checking decimal library to use... " >&6; }
15496 decimal_library=
15497 if test $need_mpfr = 1; then
15498 decimal_library="mpfr $MPFR_VERSION"
15499 elif test $need_gmp = 1; then
15500 decimal_library="gmp $GMP_VERSION"
15501 else
15502 decimal_library=none
15503 fi
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $decimal_library" >&5
15505 $as_echo "$decimal_library" >&6; }
15506
15507
15508
15509 random_approaches="mtwist"
15510 if test "$have_gmp_random" = yes; then
15511 random_approaches="$random_approaches gmp"
15512 fi
15513 random_approaches="$random_approaches random_r rand_r random rand"
15514
15515
15516 # Check whether --with-random-approach was given.
15517 if test "${with_random_approach+set}" = set; then :
15518 withval=$with_random_approach; random_with="$withval"
15519 else
15520 random_with=""
15521 fi
15522
15523
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking random approach" >&5
15525 $as_echo_n "checking random approach... " >&6; }
15526 random_approach=none
15527 need_mtwist=no
15528 for random_algo in $random_with $random_approaches; do
15529 case $random_algo in
15530 mtwist)
15531 random_approach="Internal Mersenne Twister"
15532 need_mtwist=yes
15533
15534 $as_echo "#define RANDOM_ALGO_MTWIST 1" >>confdefs.h
15535
15536 break
15537 ;;
15538
15539 gmp)
15540 if test "$have_gmp_random" = yes; then
15541 random_approach="GMP gmp_randseed_ui and mpz_urandomm()"
15542
15543 $as_echo "#define RANDOM_ALGO_GMP_RAND 1" >>confdefs.h
15544
15545 break
15546 fi
15547 ;;
15548
15549 random_r)
15550 if test "$ac_cv_func_initstate_r" = "yes" -a "$ac_cv_func_random_r" = "yes"; then
15551 random_approach="glibc initstate_r() and random_r()"
15552
15553 $as_echo "#define RANDOM_ALGO_RANDOM_R 1" >>confdefs.h
15554
15555 break
15556 fi
15557 ;;
15558
15559 rand_r)
15560 if test "$ac_cv_func_rand_r" = "yes"; then
15561 random_approach="POSIX rand_r()"
15562
15563 $as_echo "#define RANDOM_ALGO_RAND_R 1" >>confdefs.h
15564
15565 break
15566 fi
15567 ;;
15568
15569 random)
15570 if test "$ac_cv_func_initstate" = "yes" -a "$ac_cv_func_random" = "yes"; then
15571 random_approach="BSD initstate() and random()"
15572
15573 $as_echo "#define RANDOM_ALGO_RANDOM 1" >>confdefs.h
15574
15575 break
15576 fi
15577 ;;
15578
15579 rand)
15580 if test "$ac_cv_func_srand" = "yes" -a "$ac_cv_func_rand" = "yes"; then
15581 random_approach="POSIX srand() and rand()"
15582
15583 $as_echo "#define RANDOM_ALGO_RAND 1" >>confdefs.h
15584
15585 break
15586 fi
15587 ;;
15588
15589 *)
15590 ;;
15591 esac
15592 done
15593
15594 if test "$random_approach" = none; then
15595 as_fn_error $? "No random number generator approach. POSIX rand should always be available" "$LINENO" 5
15596 fi
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_approach" >&5
15598 $as_echo "$random_approach" >&6; }
15599
15600 if test $need_mtwist = yes; then
15601 RASQAL_MTWIST_TRUE=
15602 RASQAL_MTWIST_FALSE='#'
15603 else
15604 RASQAL_MTWIST_TRUE='#'
15605 RASQAL_MTWIST_FALSE=
15606 fi
15607
15608
15609
15610
15611
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil, floor and round in default libs" >&5
15613 $as_echo_n "checking for ceil, floor and round in default libs... " >&6; }
15614 ceil_lib=none
15615 if test "$cross_compiling" = yes; then :
15616 ceil_lib=cross
15617 else
15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h. */
15620
15621 #ifdef HAVE_MATH_H
15622 #include <math.h>
15623 #endif
15624 #ifdef HAVE_STDLIB_H
15625 #include <stdlib.h>
15626 #endif
15627
15628 int
15629 main ()
15630 {
15631
15632 extern char **environ;
15633 double t = strtod(environ[0], NULL);
15634 return (int)(ceil(t) * floor(t) * round(t));
15635
15636 ;
15637 return 0;
15638 }
15639 _ACEOF
15640 if ac_fn_c_try_run "$LINENO"; then :
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15642 $as_echo "yes" >&6; }
15643 ceil_lib=libc
15644 else
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646 $as_echo "no" >&6; }
15647 fi
15648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15649 conftest.$ac_objext conftest.beam conftest.$ac_ext
15650 fi
15651
15652 if test $ceil_lib = none; then
15653 LIBS="$LIBS -lm"
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil, floor and round with -lm" >&5
15655 $as_echo_n "checking for ceil, floor and round with -lm... " >&6; }
15656 if test "$cross_compiling" = yes; then :
15657 ceil_lib=cross
15658 else
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15661
15662 #ifdef HAVE_MATH_H
15663 #include <math.h>
15664 #endif
15665 #ifdef HAVE_STDLIB_H
15666 #include <stdlib.h>
15667 #endif
15668
15669 int
15670 main ()
15671 {
15672
15673 extern char **environ;
15674 double t = strtod(environ[0], NULL);
15675 return (int)(ceil(t) * floor(t) * round(t));
15676
15677 ;
15678 return 0;
15679 }
15680 _ACEOF
15681 if ac_fn_c_try_run "$LINENO"; then :
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15683 $as_echo "yes" >&6; }
15684 need_libm=1
15685 ceil_lib=libm
15686 else
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15688 $as_echo "no" >&6; }
15689 fi
15690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15691 conftest.$ac_objext conftest.beam conftest.$ac_ext
15692 fi
15693
15694 LIBS="$oLIBS"
15695 fi
15696 if test $ceil_lib = cross; then
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Assuming ceil, floor and round are in default libs for cross compiling" >&5
15698 $as_echo "$as_me: WARNING: Assuming ceil, floor and round are in default libs for cross compiling" >&2;}
15699 ceil_lib=libc
15700 elif test $ceil_lib = none; then
15701 as_fn_error $? "Could not find ceil, floor, round in default libs or with -lm" "$LINENO" 5
15702 fi
15703 if test $need_libm = 1; then
15704 RASQAL_EXTERNAL_LIBS="$RASQAL_EXTERNAL_LIBS -lm"
15705 fi
15706
15707
15708 DECIMAL_INCLUDES=
15709 DECIMAL_LIBS=
15710 if test $need_mpfr = 1; then
15711 DECIMAL_INCLUDES="$mpfr_includes"
15712 DECIMAL_LIBS="$mpfr_libs -lmpfr"
15713 fi
15714 if test $need_gmp = 1; then
15715 DECIMAL_INCLUDES="$gmp_includes"
15716 DECIMAL_LIBS="$gmp_libs -lgmp"
15717 fi
15718 RASQAL_INTERNAL_CPPFLAGS="$RASQAL_INTERNAL_CPPFLAGS $DECIMAL_INCLUDES"
15719 RASQAL_EXTERNAL_LIBS="$RASQAL_EXTERNAL_LIBS $DECIMAL_LIBS"
15720
15721
15722 if test $need_libxml = 1; then
15723 RASQAL_INTERNAL_CPPFLAGS="$RASQAL_INTERNAL_CPPFLAGS `$XML_CONFIG --cflags`"
15724 RASQAL_EXTERNAL_LIBS="$RASQAL_EXTERNAL_LIBS `$XML_CONFIG --libs`"
15725 if test "X$PKGCONFIG_REQUIRES" != X; then
15726 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES,"
15727 fi
15728 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES libxml-2.0 >= $LIBXML_MIN_VERSION"
15729 fi
15730
15731
15732 # Make final changes to cflags
15733 MEM=
15734 MEM_LIBS=
15735 CPPFLAGS="-DRASQAL_INTERNAL=1 $CPPFLAGS"
15736
15737 debug_messages=no
15738
15739 # Check whether --enable-debug was given.
15740 if test "${enable_debug+set}" = set; then :
15741 enableval=$enable_debug; debug_messages=$enableval
15742 fi
15743
15744 if test "$debug_messages" = "yes"; then
15745 CPPFLAGS="-g -DRASQAL_DEBUG=1 $CPPFLAGS"
15746 fi
15747
15748
15749 # Check whether --with-memory-signing was given.
15750 if test "${with_memory_signing+set}" = set; then :
15751 withval=$with_memory_signing; use_memory_signing="$withval"
15752 else
15753 use_memory_signing="no"
15754 fi
15755
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking using memory signing" >&5
15757 $as_echo_n "checking using memory signing... " >&6; }
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_memory_signing" >&5
15759 $as_echo "$use_memory_signing" >&6; };
15760 if test $use_memory_signing = yes; then
15761 MEM=-DRASQAL_MEMORY_SIGN=1
15762 MEM_LIBS=
15763 fi
15764
15765 STANDARD_CFLAGS="$STANDARD_CFLAGS $CFLAGS"
15766 if test "$USE_MAINTAINER_MODE" = yes; then
15767 CPPFLAGS="-DMAINTAINER_MODE $MAINTAINER_CPPFLAGS $CPPFLAGS"
15768 fi
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783 RASQAL_LIBTOOLLIBS=librasqal.la
15784
15785
15786
15787
15788
15789
15790 abs_top_srcdir=`cd $srcdir; pwd`
15791
15792 abs_top_builddir=`pwd`
15793
15794
15795 # Check whether --enable-silent-rules was given.
15796 if test "${enable_silent_rules+set}" = set; then :
15797 enableval=$enable_silent_rules;
15798 fi
15799
15800 case $enable_silent_rules in
15801 yes) AM_DEFAULT_VERBOSITY=0;;
15802 no) AM_DEFAULT_VERBOSITY=1;;
15803 *) AM_DEFAULT_VERBOSITY=1;;
15804 esac
15805 am_make=${MAKE-make}
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
15807 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
15808 if ${am_cv_make_support_nested_variables+:} false; then :
15809 $as_echo_n "(cached) " >&6
15810 else
15811 if $as_echo 'TRUE=$(BAR$(V))
15812 BAR0=false
15813 BAR1=true
15814 V=1
15815 am__doit:
15816 @$(TRUE)
15817 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
15818 am_cv_make_support_nested_variables=yes
15819 else
15820 am_cv_make_support_nested_variables=no
15821 fi
15822 fi
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
15824 $as_echo "$am_cv_make_support_nested_variables" >&6; }
15825 if test $am_cv_make_support_nested_variables = yes; then
15826 AM_V='$(V)'
15827 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15828 else
15829 AM_V=$AM_DEFAULT_VERBOSITY
15830 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15831 fi
15832 AM_BACKSLASH='\'
15833
15834
15835 ac_config_files="$ac_config_files Makefile data/Makefile docs/Makefile docs/version.xml scripts/Makefile libsv/Makefile libmtwist/Makefile getopt/Makefile src/Makefile src/rasqal.h src/win32_rasqal_config.h tests/Makefile tests/algebra/Makefile tests/engine/Makefile tests/laqrs/Makefile tests/laqrs/syntax/Makefile tests/sparql/Makefile tests/sparql/bugs/Makefile tests/sparql/simple/Makefile tests/sparql/part1/Makefile tests/sparql/examples/Makefile tests/sparql/syntax/Makefile tests/sparql/bound/Makefile tests/sparql/survey/Makefile tests/sparql/SyntaxFull/Makefile tests/sparql/sort/Makefile tests/sparql/ValueTesting/Makefile tests/sparql/regex/Makefile tests/sparql/Expr1/Makefile tests/sparql/Expr2/Makefile tests/sparql/ExprBuiltins/Makefile tests/sparql/ExprEquals/Makefile tests/sparql/SyntaxDev/Makefile tests/sparql/SyntaxDev/Syntax-SPARQL/Makefile tests/sparql/SyntaxDev/Syntax-SPARQL2/Makefile tests/sparql/SyntaxDev/Syntax-SPARQL3/Makefile tests/sparql/update/Makefile tests/sparql/aggregate/Makefile tests/sparql/sparql11/Makefile tests/sparql/federated/Makefile tests/sparql/warnings/Makefile utils/Makefile win32/Makefile rasqal.spec rasqal.rdf rasqal.pc"
15836
15837 ac_config_files="$ac_config_files src/rasqal-config"
15838
15839 ac_config_files="$ac_config_files rasqal-src-config"
15840
15841
15842
15843
15844
15845 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
15846 set dummy gtkdoc-check; ac_word=$2
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15848 $as_echo_n "checking for $ac_word... " >&6; }
15849 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
15850 $as_echo_n "(cached) " >&6
15851 else
15852 case $GTKDOC_CHECK in
15853 [\\/]* | ?:[\\/]*)
15854 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
15855 ;;
15856 *)
15857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15858 for as_dir in $PATH
15859 do
15860 IFS=$as_save_IFS
15861 test -z "$as_dir" && as_dir=.
15862 for ac_exec_ext in '' $ac_executable_extensions; do
15863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15864 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
15865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15866 break 2
15867 fi
15868 done
15869 done
15870 IFS=$as_save_IFS
15871
15872 ;;
15873 esac
15874 fi
15875 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
15876 if test -n "$GTKDOC_CHECK"; then
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
15878 $as_echo "$GTKDOC_CHECK" >&6; }
15879 else
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15881 $as_echo "no" >&6; }
15882 fi
15883
15884
15885 for ac_prog in gtkdoc-rebase
15886 do
15887 # Extract the first word of "$ac_prog", so it can be a program name with args.
15888 set dummy $ac_prog; ac_word=$2
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15890 $as_echo_n "checking for $ac_word... " >&6; }
15891 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
15892 $as_echo_n "(cached) " >&6
15893 else
15894 case $GTKDOC_REBASE in
15895 [\\/]* | ?:[\\/]*)
15896 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
15897 ;;
15898 *)
15899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15900 for as_dir in $PATH
15901 do
15902 IFS=$as_save_IFS
15903 test -z "$as_dir" && as_dir=.
15904 for ac_exec_ext in '' $ac_executable_extensions; do
15905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15906 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
15907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15908 break 2
15909 fi
15910 done
15911 done
15912 IFS=$as_save_IFS
15913
15914 ;;
15915 esac
15916 fi
15917 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
15918 if test -n "$GTKDOC_REBASE"; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
15920 $as_echo "$GTKDOC_REBASE" >&6; }
15921 else
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923 $as_echo "no" >&6; }
15924 fi
15925
15926
15927 test -n "$GTKDOC_REBASE" && break
15928 done
15929 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
15930
15931 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
15932 set dummy gtkdoc-mkpdf; ac_word=$2
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15934 $as_echo_n "checking for $ac_word... " >&6; }
15935 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
15936 $as_echo_n "(cached) " >&6
15937 else
15938 case $GTKDOC_MKPDF in
15939 [\\/]* | ?:[\\/]*)
15940 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
15941 ;;
15942 *)
15943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15944 for as_dir in $PATH
15945 do
15946 IFS=$as_save_IFS
15947 test -z "$as_dir" && as_dir=.
15948 for ac_exec_ext in '' $ac_executable_extensions; do
15949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15950 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
15951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15952 break 2
15953 fi
15954 done
15955 done
15956 IFS=$as_save_IFS
15957
15958 ;;
15959 esac
15960 fi
15961 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
15962 if test -n "$GTKDOC_MKPDF"; then
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
15964 $as_echo "$GTKDOC_MKPDF" >&6; }
15965 else
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15967 $as_echo "no" >&6; }
15968 fi
15969
15970
15971
15972
15973 # Check whether --with-html-dir was given.
15974 if test "${with_html_dir+set}" = set; then :
15975 withval=$with_html_dir;
15976 else
15977 with_html_dir='${datadir}/gtk-doc/html'
15978 fi
15979
15980 HTML_DIR="$with_html_dir"
15981
15982
15983 # Check whether --enable-gtk-doc was given.
15984 if test "${enable_gtk_doc+set}" = set; then :
15985 enableval=$enable_gtk_doc;
15986 else
15987 enable_gtk_doc=no
15988 fi
15989
15990
15991 if test x$enable_gtk_doc = xyes; then
15992 if test -n "$PKG_CONFIG" && \
15993 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.3\""; } >&5
15994 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.3") 2>&5
15995 ac_status=$?
15996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997 test $ac_status = 0; }; then
15998 :
15999 else
16000 as_fn_error $? "You need to have gtk-doc >= 1.3 installed to build $PACKAGE_NAME" "$LINENO" 5
16001 fi
16002 if test "x$PACKAGE_NAME" != "xglib"; then
16003
16004 pkg_failed=no
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
16006 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
16007
16008 if test -n "$GTKDOC_DEPS_CFLAGS"; then
16009 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
16010 elif test -n "$PKG_CONFIG"; then
16011 if test -n "$PKG_CONFIG" && \
16012 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
16013 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
16014 ac_status=$?
16015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16016 test $ac_status = 0; }; then
16017 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
16018 test "x$?" != "x0" && pkg_failed=yes
16019 else
16020 pkg_failed=yes
16021 fi
16022 else
16023 pkg_failed=untried
16024 fi
16025 if test -n "$GTKDOC_DEPS_LIBS"; then
16026 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
16027 elif test -n "$PKG_CONFIG"; then
16028 if test -n "$PKG_CONFIG" && \
16029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
16030 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
16031 ac_status=$?
16032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16033 test $ac_status = 0; }; then
16034 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
16035 test "x$?" != "x0" && pkg_failed=yes
16036 else
16037 pkg_failed=yes
16038 fi
16039 else
16040 pkg_failed=untried
16041 fi
16042
16043
16044
16045 if test $pkg_failed = yes; then
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16047 $as_echo "no" >&6; }
16048
16049 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16050 _pkg_short_errors_supported=yes
16051 else
16052 _pkg_short_errors_supported=no
16053 fi
16054 if test $_pkg_short_errors_supported = yes; then
16055 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
16056 else
16057 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
16058 fi
16059 # Put the nasty error message in config.log where it belongs
16060 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
16061
16062 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
16063
16064 $GTKDOC_DEPS_PKG_ERRORS
16065
16066 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16067 installed software in a non-standard prefix.
16068
16069 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
16070 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
16071 See the pkg-config man page for more details." "$LINENO" 5
16072 elif test $pkg_failed = untried; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074 $as_echo "no" >&6; }
16075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16077 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16078 is in your PATH or set the PKG_CONFIG environment variable to the full
16079 path to pkg-config.
16080
16081 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
16082 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
16083 See the pkg-config man page for more details.
16084
16085 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16086 See \`config.log' for more details" "$LINENO" 5; }
16087 else
16088 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
16089 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16091 $as_echo "yes" >&6; }
16092
16093 fi
16094 fi
16095 fi
16096
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
16098 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
16100 $as_echo "$enable_gtk_doc" >&6; }
16101
16102 # Check whether --enable-gtk-doc-html was given.
16103 if test "${enable_gtk_doc_html+set}" = set; then :
16104 enableval=$enable_gtk_doc_html;
16105 else
16106 enable_gtk_doc_html=yes
16107 fi
16108
16109 # Check whether --enable-gtk-doc-pdf was given.
16110 if test "${enable_gtk_doc_pdf+set}" = set; then :
16111 enableval=$enable_gtk_doc_pdf;
16112 else
16113 enable_gtk_doc_pdf=no
16114 fi
16115
16116
16117 if test -z "$GTKDOC_MKPDF"; then
16118 enable_gtk_doc_pdf=no
16119 fi
16120
16121
16122 if test x$enable_gtk_doc = xyes; then
16123 ENABLE_GTK_DOC_TRUE=
16124 ENABLE_GTK_DOC_FALSE='#'
16125 else
16126 ENABLE_GTK_DOC_TRUE='#'
16127 ENABLE_GTK_DOC_FALSE=
16128 fi
16129
16130 if test x$enable_gtk_doc_html = xyes; then
16131 GTK_DOC_BUILD_HTML_TRUE=
16132 GTK_DOC_BUILD_HTML_FALSE='#'
16133 else
16134 GTK_DOC_BUILD_HTML_TRUE='#'
16135 GTK_DOC_BUILD_HTML_FALSE=
16136 fi
16137
16138 if test x$enable_gtk_doc_pdf = xyes; then
16139 GTK_DOC_BUILD_PDF_TRUE=
16140 GTK_DOC_BUILD_PDF_FALSE='#'
16141 else
16142 GTK_DOC_BUILD_PDF_TRUE='#'
16143 GTK_DOC_BUILD_PDF_FALSE=
16144 fi
16145
16146 if test -n "$LIBTOOL"; then
16147 GTK_DOC_USE_LIBTOOL_TRUE=
16148 GTK_DOC_USE_LIBTOOL_FALSE='#'
16149 else
16150 GTK_DOC_USE_LIBTOOL_TRUE='#'
16151 GTK_DOC_USE_LIBTOOL_FALSE=
16152 fi
16153
16154 if test -n "$GTKDOC_REBASE"; then
16155 GTK_DOC_USE_REBASE_TRUE=
16156 GTK_DOC_USE_REBASE_FALSE='#'
16157 else
16158 GTK_DOC_USE_REBASE_TRUE='#'
16159 GTK_DOC_USE_REBASE_FALSE=
16160 fi
16161
16162
16163
16164 cat >confcache <<\_ACEOF
16165 # This file is a shell script that caches the results of configure
16166 # tests run on this system so they can be shared between configure
16167 # scripts and configure runs, see configure's option --config-cache.
16168 # It is not useful on other systems. If it contains results you don't
16169 # want to keep, you may remove or edit it.
16170 #
16171 # config.status only pays attention to the cache file if you give it
16172 # the --recheck option to rerun configure.
16173 #
16174 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16175 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16176 # following values.
16177
16178 _ACEOF
16179
16180 # The following way of writing the cache mishandles newlines in values,
16181 # but we know of no workaround that is simple, portable, and efficient.
16182 # So, we kill variables containing newlines.
16183 # Ultrix sh set writes to stderr and can't be redirected directly,
16184 # and sets the high bit in the cache file unless we assign to the vars.
16185 (
16186 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16187 eval ac_val=\$$ac_var
16188 case $ac_val in #(
16189 *${as_nl}*)
16190 case $ac_var in #(
16191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16193 esac
16194 case $ac_var in #(
16195 _ | IFS | as_nl) ;; #(
16196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16197 *) { eval $ac_var=; unset $ac_var;} ;;
16198 esac ;;
16199 esac
16200 done
16201
16202 (set) 2>&1 |
16203 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16204 *${as_nl}ac_space=\ *)
16205 # `set' does not quote correctly, so add quotes: double-quote
16206 # substitution turns \\\\ into \\, and sed turns \\ into \.
16207 sed -n \
16208 "s/'/'\\\\''/g;
16209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16210 ;; #(
16211 *)
16212 # `set' quotes correctly as required by POSIX, so do not add quotes.
16213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16214 ;;
16215 esac |
16216 sort
16217 ) |
16218 sed '
16219 /^ac_cv_env_/b end
16220 t clear
16221 :clear
16222 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16223 t end
16224 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16225 :end' >>confcache
16226 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16227 if test -w "$cache_file"; then
16228 if test "x$cache_file" != "x/dev/null"; then
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16230 $as_echo "$as_me: updating cache $cache_file" >&6;}
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
16243 else
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16245 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16246 fi
16247 fi
16248 rm -f confcache
16249
16250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16251 # Let make expand exec_prefix.
16252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16253
16254 DEFS=-DHAVE_CONFIG_H
16255
16256 ac_libobjs=
16257 ac_ltlibobjs=
16258 U=
16259 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16260 # 1. Remove the extension, and $U if already installed.
16261 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16262 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16263 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16264 # will be set to the directory where LIBOBJS objects are built.
16265 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16266 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16267 done
16268 LIBOBJS=$ac_libobjs
16269
16270 LTLIBOBJS=$ac_ltlibobjs
16271
16272
16273 if test -n "$EXEEXT"; then
16274 am__EXEEXT_TRUE=
16275 am__EXEEXT_FALSE='#'
16276 else
16277 am__EXEEXT_TRUE='#'
16278 am__EXEEXT_FALSE=
16279 fi
16280
16281 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16282 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16284 fi
16285 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16286 as_fn_error $? "conditional \"AMDEP\" was never defined.
16287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16288 fi
16289 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16290 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16292 fi
16293 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16294 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16296 fi
16297
16298 if test -z "${STRCASECMP_TRUE}" && test -z "${STRCASECMP_FALSE}"; then
16299 as_fn_error $? "conditional \"STRCASECMP\" was never defined.
16300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16301 fi
16302 if test -z "${GETOPT_TRUE}" && test -z "${GETOPT_FALSE}"; then
16303 as_fn_error $? "conditional \"GETOPT\" was never defined.
16304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16305 fi
16306 if test -z "${TIMEGM_TRUE}" && test -z "${TIMEGM_FALSE}"; then
16307 as_fn_error $? "conditional \"TIMEGM\" was never defined.
16308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16309 fi
16310 if test -z "${GETTIMEOFDAY_TRUE}" && test -z "${GETTIMEOFDAY_FALSE}"; then
16311 as_fn_error $? "conditional \"GETTIMEOFDAY\" was never defined.
16312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16313 fi
16314 if test -z "${RASQAL_SORT_TRUE}" && test -z "${RASQAL_SORT_FALSE}"; then
16315 as_fn_error $? "conditional \"RASQAL_SORT\" was never defined.
16316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16317 fi
16318 if test -z "${RASQAL_DIGEST_INTERNAL_TRUE}" && test -z "${RASQAL_DIGEST_INTERNAL_FALSE}"; then
16319 as_fn_error $? "conditional \"RASQAL_DIGEST_INTERNAL\" was never defined.
16320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16321 fi
16322 if test -z "${RASQAL_QUERY_LAQRS_TRUE}" && test -z "${RASQAL_QUERY_LAQRS_FALSE}"; then
16323 as_fn_error $? "conditional \"RASQAL_QUERY_LAQRS\" was never defined.
16324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16325 fi
16326 if test -z "${RASQAL_QUERY_SPARQL_TRUE}" && test -z "${RASQAL_QUERY_SPARQL_FALSE}"; then
16327 as_fn_error $? "conditional \"RASQAL_QUERY_SPARQL\" was never defined.
16328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16329 fi
16330 if test -z "${RASQAL_MTWIST_TRUE}" && test -z "${RASQAL_MTWIST_FALSE}"; then
16331 as_fn_error $? "conditional \"RASQAL_MTWIST\" was never defined.
16332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16333 fi
16334 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
16335 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
16336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16337 fi
16338 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
16339 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
16340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16341 fi
16342 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
16343 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
16344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16345 fi
16346 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
16347 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
16348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16349 fi
16350 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
16351 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
16352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16353 fi
16354
16355 : "${CONFIG_STATUS=./config.status}"
16356 ac_write_fail=0
16357 ac_clean_files_save=$ac_clean_files
16358 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16360 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16361 as_write_fail=0
16362 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16363 #! $SHELL
16364 # Generated by $as_me.
16365 # Run this file to recreate the current configuration.
16366 # Compiler output produced by configure, useful for debugging
16367 # configure, is in config.log if it exists.
16368
16369 debug=false
16370 ac_cs_recheck=false
16371 ac_cs_silent=false
16372
16373 SHELL=\${CONFIG_SHELL-$SHELL}
16374 export SHELL
16375 _ASEOF
16376 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16377 ## -------------------- ##
16378 ## M4sh Initialization. ##
16379 ## -------------------- ##
16380
16381 # Be more Bourne compatible
16382 DUALCASE=1; export DUALCASE # for MKS sh
16383 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16384 emulate sh
16385 NULLCMD=:
16386 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16387 # is contrary to our usage. Disable this feature.
16388 alias -g '${1+"$@"}'='"$@"'
16389 setopt NO_GLOB_SUBST
16390 else
16391 case `(set -o) 2>/dev/null` in #(
16392 *posix*) :
16393 set -o posix ;; #(
16394 *) :
16395 ;;
16396 esac
16397 fi
16398
16399
16400 as_nl='
16401 '
16402 export as_nl
16403 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16404 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16405 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16406 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16407 # Prefer a ksh shell builtin over an external printf program on Solaris,
16408 # but without wasting forks for bash or zsh.
16409 if test -z "$BASH_VERSION$ZSH_VERSION" \
16410 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16411 as_echo='print -r --'
16412 as_echo_n='print -rn --'
16413 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16414 as_echo='printf %s\n'
16415 as_echo_n='printf %s'
16416 else
16417 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16418 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16419 as_echo_n='/usr/ucb/echo -n'
16420 else
16421 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16422 as_echo_n_body='eval
16423 arg=$1;
16424 case $arg in #(
16425 *"$as_nl"*)
16426 expr "X$arg" : "X\\(.*\\)$as_nl";
16427 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16428 esac;
16429 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16430 '
16431 export as_echo_n_body
16432 as_echo_n='sh -c $as_echo_n_body as_echo'
16433 fi
16434 export as_echo_body
16435 as_echo='sh -c $as_echo_body as_echo'
16436 fi
16437
16438 # The user is always right.
16439 if test "${PATH_SEPARATOR+set}" != set; then
16440 PATH_SEPARATOR=:
16441 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16442 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16443 PATH_SEPARATOR=';'
16444 }
16445 fi
16446
16447
16448 # IFS
16449 # We need space, tab and new line, in precisely that order. Quoting is
16450 # there to prevent editors from complaining about space-tab.
16451 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16452 # splitting by setting IFS to empty value.)
16453 IFS=" "" $as_nl"
16454
16455 # Find who we are. Look in the path if we contain no directory separator.
16456 as_myself=
16457 case $0 in #((
16458 *[\\/]* ) as_myself=$0 ;;
16459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16460 for as_dir in $PATH
16461 do
16462 IFS=$as_save_IFS
16463 test -z "$as_dir" && as_dir=.
16464 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16465 done
16466 IFS=$as_save_IFS
16467
16468 ;;
16469 esac
16470 # We did not find ourselves, most probably we were run as `sh COMMAND'
16471 # in which case we are not to be found in the path.
16472 if test "x$as_myself" = x; then
16473 as_myself=$0
16474 fi
16475 if test ! -f "$as_myself"; then
16476 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16477 exit 1
16478 fi
16479
16480 # Unset variables that we do not need and which cause bugs (e.g. in
16481 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16482 # suppresses any "Segmentation fault" message there. '((' could
16483 # trigger a bug in pdksh 5.2.14.
16484 for as_var in BASH_ENV ENV MAIL MAILPATH
16485 do eval test x\${$as_var+set} = xset \
16486 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16487 done
16488 PS1='$ '
16489 PS2='> '
16490 PS4='+ '
16491
16492 # NLS nuisances.
16493 LC_ALL=C
16494 export LC_ALL
16495 LANGUAGE=C
16496 export LANGUAGE
16497
16498 # CDPATH.
16499 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16500
16501
16502 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16503 # ----------------------------------------
16504 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16505 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16506 # script with STATUS, using 1 if that was 0.
16507 as_fn_error ()
16508 {
16509 as_status=$1; test $as_status -eq 0 && as_status=1
16510 if test "$4"; then
16511 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16512 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16513 fi
16514 $as_echo "$as_me: error: $2" >&2
16515 as_fn_exit $as_status
16516 } # as_fn_error
16517
16518
16519 # as_fn_set_status STATUS
16520 # -----------------------
16521 # Set $? to STATUS, without forking.
16522 as_fn_set_status ()
16523 {
16524 return $1
16525 } # as_fn_set_status
16526
16527 # as_fn_exit STATUS
16528 # -----------------
16529 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16530 as_fn_exit ()
16531 {
16532 set +e
16533 as_fn_set_status $1
16534 exit $1
16535 } # as_fn_exit
16536
16537 # as_fn_unset VAR
16538 # ---------------
16539 # Portably unset VAR.
16540 as_fn_unset ()
16541 {
16542 { eval $1=; unset $1;}
16543 }
16544 as_unset=as_fn_unset
16545 # as_fn_append VAR VALUE
16546 # ----------------------
16547 # Append the text in VALUE to the end of the definition contained in VAR. Take
16548 # advantage of any shell optimizations that allow amortized linear growth over
16549 # repeated appends, instead of the typical quadratic growth present in naive
16550 # implementations.
16551 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16552 eval 'as_fn_append ()
16553 {
16554 eval $1+=\$2
16555 }'
16556 else
16557 as_fn_append ()
16558 {
16559 eval $1=\$$1\$2
16560 }
16561 fi # as_fn_append
16562
16563 # as_fn_arith ARG...
16564 # ------------------
16565 # Perform arithmetic evaluation on the ARGs, and store the result in the
16566 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16567 # must be portable across $(()) and expr.
16568 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16569 eval 'as_fn_arith ()
16570 {
16571 as_val=$(( $* ))
16572 }'
16573 else
16574 as_fn_arith ()
16575 {
16576 as_val=`expr "$@" || test $? -eq 1`
16577 }
16578 fi # as_fn_arith
16579
16580
16581 if expr a : '\(a\)' >/dev/null 2>&1 &&
16582 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16583 as_expr=expr
16584 else
16585 as_expr=false
16586 fi
16587
16588 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16589 as_basename=basename
16590 else
16591 as_basename=false
16592 fi
16593
16594 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16595 as_dirname=dirname
16596 else
16597 as_dirname=false
16598 fi
16599
16600 as_me=`$as_basename -- "$0" ||
16601 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16602 X"$0" : 'X\(//\)$' \| \
16603 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16604 $as_echo X/"$0" |
16605 sed '/^.*\/\([^/][^/]*\)\/*$/{
16606 s//\1/
16607 q
16608 }
16609 /^X\/\(\/\/\)$/{
16610 s//\1/
16611 q
16612 }
16613 /^X\/\(\/\).*/{
16614 s//\1/
16615 q
16616 }
16617 s/.*/./; q'`
16618
16619 # Avoid depending upon Character Ranges.
16620 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16621 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16622 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16623 as_cr_digits='0123456789'
16624 as_cr_alnum=$as_cr_Letters$as_cr_digits
16625
16626 ECHO_C= ECHO_N= ECHO_T=
16627 case `echo -n x` in #(((((
16628 -n*)
16629 case `echo 'xy\c'` in
16630 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16631 xy) ECHO_C='\c';;
16632 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16633 ECHO_T=' ';;
16634 esac;;
16635 *)
16636 ECHO_N='-n';;
16637 esac
16638
16639 rm -f conf$$ conf$$.exe conf$$.file
16640 if test -d conf$$.dir; then
16641 rm -f conf$$.dir/conf$$.file
16642 else
16643 rm -f conf$$.dir
16644 mkdir conf$$.dir 2>/dev/null
16645 fi
16646 if (echo >conf$$.file) 2>/dev/null; then
16647 if ln -s conf$$.file conf$$ 2>/dev/null; then
16648 as_ln_s='ln -s'
16649 # ... but there are two gotchas:
16650 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16651 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16652 # In both cases, we have to default to `cp -pR'.
16653 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16654 as_ln_s='cp -pR'
16655 elif ln conf$$.file conf$$ 2>/dev/null; then
16656 as_ln_s=ln
16657 else
16658 as_ln_s='cp -pR'
16659 fi
16660 else
16661 as_ln_s='cp -pR'
16662 fi
16663 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16664 rmdir conf$$.dir 2>/dev/null
16665
16666
16667 # as_fn_mkdir_p
16668 # -------------
16669 # Create "$as_dir" as a directory, including parents if necessary.
16670 as_fn_mkdir_p ()
16671 {
16672
16673 case $as_dir in #(
16674 -*) as_dir=./$as_dir;;
16675 esac
16676 test -d "$as_dir" || eval $as_mkdir_p || {
16677 as_dirs=
16678 while :; do
16679 case $as_dir in #(
16680 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16681 *) as_qdir=$as_dir;;
16682 esac
16683 as_dirs="'$as_qdir' $as_dirs"
16684 as_dir=`$as_dirname -- "$as_dir" ||
16685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16686 X"$as_dir" : 'X\(//\)[^/]' \| \
16687 X"$as_dir" : 'X\(//\)$' \| \
16688 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16689 $as_echo X"$as_dir" |
16690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16691 s//\1/
16692 q
16693 }
16694 /^X\(\/\/\)[^/].*/{
16695 s//\1/
16696 q
16697 }
16698 /^X\(\/\/\)$/{
16699 s//\1/
16700 q
16701 }
16702 /^X\(\/\).*/{
16703 s//\1/
16704 q
16705 }
16706 s/.*/./; q'`
16707 test -d "$as_dir" && break
16708 done
16709 test -z "$as_dirs" || eval "mkdir $as_dirs"
16710 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16711
16712
16713 } # as_fn_mkdir_p
16714 if mkdir -p . 2>/dev/null; then
16715 as_mkdir_p='mkdir -p "$as_dir"'
16716 else
16717 test -d ./-p && rmdir ./-p
16718 as_mkdir_p=false
16719 fi
16720
16721
16722 # as_fn_executable_p FILE
16723 # -----------------------
16724 # Test if FILE is an executable regular file.
16725 as_fn_executable_p ()
16726 {
16727 test -f "$1" && test -x "$1"
16728 } # as_fn_executable_p
16729 as_test_x='test -x'
16730 as_executable_p=as_fn_executable_p
16731
16732 # Sed expression to map a string onto a valid CPP name.
16733 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16734
16735 # Sed expression to map a string onto a valid variable name.
16736 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16737
16738
16739 exec 6>&1
16740 ## ----------------------------------- ##
16741 ## Main body of $CONFIG_STATUS script. ##
16742 ## ----------------------------------- ##
16743 _ASEOF
16744 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16745
16746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16747 # Save the log message, to keep $0 and so on meaningful, and to
16748 # report actual input values of CONFIG_FILES etc. instead of their
16749 # values after options handling.
16750 ac_log="
16751 This file was extended by Rasqal RDF Query Library $as_me 0.9.33, which was
16752 generated by GNU Autoconf 2.69. Invocation command line was
16753
16754 CONFIG_FILES = $CONFIG_FILES
16755 CONFIG_HEADERS = $CONFIG_HEADERS
16756 CONFIG_LINKS = $CONFIG_LINKS
16757 CONFIG_COMMANDS = $CONFIG_COMMANDS
16758 $ $0 $@
16759
16760 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16761 "
16762
16763 _ACEOF
16764
16765 case $ac_config_files in *"
16766 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16767 esac
16768
16769 case $ac_config_headers in *"
16770 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16771 esac
16772
16773
16774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16775 # Files that config.status was made for.
16776 config_files="$ac_config_files"
16777 config_headers="$ac_config_headers"
16778 config_commands="$ac_config_commands"
16779
16780 _ACEOF
16781
16782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16783 ac_cs_usage="\
16784 \`$as_me' instantiates files and other configuration actions
16785 from templates according to the current configuration. Unless the files
16786 and actions are specified as TAGs, all are instantiated by default.
16787
16788 Usage: $0 [OPTION]... [TAG]...
16789
16790 -h, --help print this help, then exit
16791 -V, --version print version number and configuration settings, then exit
16792 --config print configuration, then exit
16793 -q, --quiet, --silent
16794 do not print progress messages
16795 -d, --debug don't remove temporary files
16796 --recheck update $as_me by reconfiguring in the same conditions
16797 --file=FILE[:TEMPLATE]
16798 instantiate the configuration file FILE
16799 --header=FILE[:TEMPLATE]
16800 instantiate the configuration header FILE
16801
16802 Configuration files:
16803 $config_files
16804
16805 Configuration headers:
16806 $config_headers
16807
16808 Configuration commands:
16809 $config_commands
16810
16811 Report bugs to <http://bugs.librdf.org/>."
16812
16813 _ACEOF
16814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16815 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16816 ac_cs_version="\\
16817 Rasqal RDF Query Library config.status 0.9.33
16818 configured by $0, generated by GNU Autoconf 2.69,
16819 with options \\"\$ac_cs_config\\"
16820
16821 Copyright (C) 2012 Free Software Foundation, Inc.
16822 This config.status script is free software; the Free Software Foundation
16823 gives unlimited permission to copy, distribute and modify it."
16824
16825 ac_pwd='$ac_pwd'
16826 srcdir='$srcdir'
16827 INSTALL='$INSTALL'
16828 MKDIR_P='$MKDIR_P'
16829 AWK='$AWK'
16830 test -n "\$AWK" || AWK=awk
16831 _ACEOF
16832
16833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16834 # The default lists apply if the user does not specify any file.
16835 ac_need_defaults=:
16836 while test $# != 0
16837 do
16838 case $1 in
16839 --*=?*)
16840 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16841 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16842 ac_shift=:
16843 ;;
16844 --*=)
16845 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16846 ac_optarg=
16847 ac_shift=:
16848 ;;
16849 *)
16850 ac_option=$1
16851 ac_optarg=$2
16852 ac_shift=shift
16853 ;;
16854 esac
16855
16856 case $ac_option in
16857 # Handling of the options.
16858 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16859 ac_cs_recheck=: ;;
16860 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16861 $as_echo "$ac_cs_version"; exit ;;
16862 --config | --confi | --conf | --con | --co | --c )
16863 $as_echo "$ac_cs_config"; exit ;;
16864 --debug | --debu | --deb | --de | --d | -d )
16865 debug=: ;;
16866 --file | --fil | --fi | --f )
16867 $ac_shift
16868 case $ac_optarg in
16869 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16870 '') as_fn_error $? "missing file argument" ;;
16871 esac
16872 as_fn_append CONFIG_FILES " '$ac_optarg'"
16873 ac_need_defaults=false;;
16874 --header | --heade | --head | --hea )
16875 $ac_shift
16876 case $ac_optarg in
16877 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16878 esac
16879 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16880 ac_need_defaults=false;;
16881 --he | --h)
16882 # Conflict between --help and --header
16883 as_fn_error $? "ambiguous option: \`$1'
16884 Try \`$0 --help' for more information.";;
16885 --help | --hel | -h )
16886 $as_echo "$ac_cs_usage"; exit ;;
16887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16888 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16889 ac_cs_silent=: ;;
16890
16891 # This is an error.
16892 -*) as_fn_error $? "unrecognized option: \`$1'
16893 Try \`$0 --help' for more information." ;;
16894
16895 *) as_fn_append ac_config_targets " $1"
16896 ac_need_defaults=false ;;
16897
16898 esac
16899 shift
16900 done
16901
16902 ac_configure_extra_args=
16903
16904 if $ac_cs_silent; then
16905 exec 6>/dev/null
16906 ac_configure_extra_args="$ac_configure_extra_args --silent"
16907 fi
16908
16909 _ACEOF
16910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16911 if \$ac_cs_recheck; then
16912 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16913 shift
16914 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16915 CONFIG_SHELL='$SHELL'
16916 export CONFIG_SHELL
16917 exec "\$@"
16918 fi
16919
16920 _ACEOF
16921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16922 exec 5>>config.log
16923 {
16924 echo
16925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16926 ## Running $as_me. ##
16927 _ASBOX
16928 $as_echo "$ac_log"
16929 } >&5
16930
16931 _ACEOF
16932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16933 #
16934 # INIT-COMMANDS
16935 #
16936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16937
16938
16939 # The HP-UX ksh and POSIX shell print the target directory to stdout
16940 # if CDPATH is set.
16941 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16942
16943 sed_quote_subst='$sed_quote_subst'
16944 double_quote_subst='$double_quote_subst'
16945 delay_variable_subst='$delay_variable_subst'
16946 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16947 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16948 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16949 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16950 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16951 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16952 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16953 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16954 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16955 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16956 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16957 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16958 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16959 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16960 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16961 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16962 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16963 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16964 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16965 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16966 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16967 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16968 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16969 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16970 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16971 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16972 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16973 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16974 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16975 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16976 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16977 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16978 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16979 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16980 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16981 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16982 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16983 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16984 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16985 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16986 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16987 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16988 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16989 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16990 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16991 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16992 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16993 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16994 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16995 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16996 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16997 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16998 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16999 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17000 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17001 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17002 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"`'
17003 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17004 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17005 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17006 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17007 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17008 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17009 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17010 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17011 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17012 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17013 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17014 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17015 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17016 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17017 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17018 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17019 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17020 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17021 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17022 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17023 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17024 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17025 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17026 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17027 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17028 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17029 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17030 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17031 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17032 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17033 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17034 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17035 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17036 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17037 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17038 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17039 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17040 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17041 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17042 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17043 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17044 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17045 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17046 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17047 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17048 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17049 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17050 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17051 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17052 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17053 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17054 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17055 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17056 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17057 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17058 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17059 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17060 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17061 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17062 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17063 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17064 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17065 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17066 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17067 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17068 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17069 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17070 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17071 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17072 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17073 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17074 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17075 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17076
17077 LTCC='$LTCC'
17078 LTCFLAGS='$LTCFLAGS'
17079 compiler='$compiler_DEFAULT'
17080
17081 # A function that is used when there is no print builtin or printf.
17082 func_fallback_echo ()
17083 {
17084 eval 'cat <<_LTECHO_EOF
17085 \$1
17086 _LTECHO_EOF'
17087 }
17088
17089 # Quote evaled strings.
17090 for var in SHELL \
17091 ECHO \
17092 PATH_SEPARATOR \
17093 SED \
17094 GREP \
17095 EGREP \
17096 FGREP \
17097 LD \
17098 NM \
17099 LN_S \
17100 lt_SP2NL \
17101 lt_NL2SP \
17102 reload_flag \
17103 OBJDUMP \
17104 deplibs_check_method \
17105 file_magic_cmd \
17106 file_magic_glob \
17107 want_nocaseglob \
17108 DLLTOOL \
17109 sharedlib_from_linklib_cmd \
17110 AR \
17111 AR_FLAGS \
17112 archiver_list_spec \
17113 STRIP \
17114 RANLIB \
17115 CC \
17116 CFLAGS \
17117 compiler \
17118 lt_cv_sys_global_symbol_pipe \
17119 lt_cv_sys_global_symbol_to_cdecl \
17120 lt_cv_sys_global_symbol_to_c_name_address \
17121 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17122 nm_file_list_spec \
17123 lt_prog_compiler_no_builtin_flag \
17124 lt_prog_compiler_pic \
17125 lt_prog_compiler_wl \
17126 lt_prog_compiler_static \
17127 lt_cv_prog_compiler_c_o \
17128 need_locks \
17129 MANIFEST_TOOL \
17130 DSYMUTIL \
17131 NMEDIT \
17132 LIPO \
17133 OTOOL \
17134 OTOOL64 \
17135 shrext_cmds \
17136 export_dynamic_flag_spec \
17137 whole_archive_flag_spec \
17138 compiler_needs_object \
17139 with_gnu_ld \
17140 allow_undefined_flag \
17141 no_undefined_flag \
17142 hardcode_libdir_flag_spec \
17143 hardcode_libdir_separator \
17144 exclude_expsyms \
17145 include_expsyms \
17146 file_list_spec \
17147 variables_saved_for_relink \
17148 libname_spec \
17149 library_names_spec \
17150 soname_spec \
17151 install_override_mode \
17152 finish_eval \
17153 old_striplib \
17154 striplib; do
17155 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17156 *[\\\\\\\`\\"\\\$]*)
17157 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17158 ;;
17159 *)
17160 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17161 ;;
17162 esac
17163 done
17164
17165 # Double-quote double-evaled strings.
17166 for var in reload_cmds \
17167 old_postinstall_cmds \
17168 old_postuninstall_cmds \
17169 old_archive_cmds \
17170 extract_expsyms_cmds \
17171 old_archive_from_new_cmds \
17172 old_archive_from_expsyms_cmds \
17173 archive_cmds \
17174 archive_expsym_cmds \
17175 module_cmds \
17176 module_expsym_cmds \
17177 export_symbols_cmds \
17178 prelink_cmds \
17179 postlink_cmds \
17180 postinstall_cmds \
17181 postuninstall_cmds \
17182 finish_cmds \
17183 sys_lib_search_path_spec \
17184 sys_lib_dlsearch_path_spec; do
17185 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17186 *[\\\\\\\`\\"\\\$]*)
17187 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17188 ;;
17189 *)
17190 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17191 ;;
17192 esac
17193 done
17194
17195 ac_aux_dir='$ac_aux_dir'
17196 xsi_shell='$xsi_shell'
17197 lt_shell_append='$lt_shell_append'
17198
17199 # See if we are running on zsh, and set the options which allow our
17200 # commands through without removal of \ escapes INIT.
17201 if test -n "\${ZSH_VERSION+set}" ; then
17202 setopt NO_GLOB_SUBST
17203 fi
17204
17205
17206 PACKAGE='$PACKAGE'
17207 VERSION='$VERSION'
17208 TIMESTAMP='$TIMESTAMP'
17209 RM='$RM'
17210 ofile='$ofile'
17211
17212
17213
17214
17215 _ACEOF
17216
17217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17218
17219 # Handling of arguments.
17220 for ac_config_target in $ac_config_targets
17221 do
17222 case $ac_config_target in
17223 "src/rasqal_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/rasqal_config.h" ;;
17224 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17225 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17226 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17227 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
17228 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17229 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
17230 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
17231 "libsv/Makefile") CONFIG_FILES="$CONFIG_FILES libsv/Makefile" ;;
17232 "libmtwist/Makefile") CONFIG_FILES="$CONFIG_FILES libmtwist/Makefile" ;;
17233 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
17234 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17235 "src/rasqal.h") CONFIG_FILES="$CONFIG_FILES src/rasqal.h" ;;
17236 "src/win32_rasqal_config.h") CONFIG_FILES="$CONFIG_FILES src/win32_rasqal_config.h" ;;
17237 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17238 "tests/algebra/Makefile") CONFIG_FILES="$CONFIG_FILES tests/algebra/Makefile" ;;
17239 "tests/engine/Makefile") CONFIG_FILES="$CONFIG_FILES tests/engine/Makefile" ;;
17240 "tests/laqrs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/laqrs/Makefile" ;;
17241 "tests/laqrs/syntax/Makefile") CONFIG_FILES="$CONFIG_FILES tests/laqrs/syntax/Makefile" ;;
17242 "tests/sparql/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/Makefile" ;;
17243 "tests/sparql/bugs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/bugs/Makefile" ;;
17244 "tests/sparql/simple/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/simple/Makefile" ;;
17245 "tests/sparql/part1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/part1/Makefile" ;;
17246 "tests/sparql/examples/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/examples/Makefile" ;;
17247 "tests/sparql/syntax/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/syntax/Makefile" ;;
17248 "tests/sparql/bound/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/bound/Makefile" ;;
17249 "tests/sparql/survey/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/survey/Makefile" ;;
17250 "tests/sparql/SyntaxFull/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/SyntaxFull/Makefile" ;;
17251 "tests/sparql/sort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/sort/Makefile" ;;
17252 "tests/sparql/ValueTesting/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/ValueTesting/Makefile" ;;
17253 "tests/sparql/regex/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/regex/Makefile" ;;
17254 "tests/sparql/Expr1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/Expr1/Makefile" ;;
17255 "tests/sparql/Expr2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/Expr2/Makefile" ;;
17256 "tests/sparql/ExprBuiltins/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/ExprBuiltins/Makefile" ;;
17257 "tests/sparql/ExprEquals/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/ExprEquals/Makefile" ;;
17258 "tests/sparql/SyntaxDev/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/SyntaxDev/Makefile" ;;
17259 "tests/sparql/SyntaxDev/Syntax-SPARQL/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/SyntaxDev/Syntax-SPARQL/Makefile" ;;
17260 "tests/sparql/SyntaxDev/Syntax-SPARQL2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/SyntaxDev/Syntax-SPARQL2/Makefile" ;;
17261 "tests/sparql/SyntaxDev/Syntax-SPARQL3/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/SyntaxDev/Syntax-SPARQL3/Makefile" ;;
17262 "tests/sparql/update/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/update/Makefile" ;;
17263 "tests/sparql/aggregate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/aggregate/Makefile" ;;
17264 "tests/sparql/sparql11/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/sparql11/Makefile" ;;
17265 "tests/sparql/federated/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/federated/Makefile" ;;
17266 "tests/sparql/warnings/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sparql/warnings/Makefile" ;;
17267 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17268 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
17269 "rasqal.spec") CONFIG_FILES="$CONFIG_FILES rasqal.spec" ;;
17270 "rasqal.rdf") CONFIG_FILES="$CONFIG_FILES rasqal.rdf" ;;
17271 "rasqal.pc") CONFIG_FILES="$CONFIG_FILES rasqal.pc" ;;
17272 "src/rasqal-config") CONFIG_FILES="$CONFIG_FILES src/rasqal-config" ;;
17273 "rasqal-src-config") CONFIG_FILES="$CONFIG_FILES rasqal-src-config" ;;
17274
17275 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17276 esac
17277 done
17278
17279
17280 # If the user did not use the arguments to specify the items to instantiate,
17281 # then the envvar interface is used. Set only those that are not.
17282 # We use the long form for the default assignment because of an extremely
17283 # bizarre bug on SunOS 4.1.3.
17284 if $ac_need_defaults; then
17285 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17286 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17287 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17288 fi
17289
17290 # Have a temporary directory for convenience. Make it in the build tree
17291 # simply because there is no reason against having it here, and in addition,
17292 # creating and moving files from /tmp can sometimes cause problems.
17293 # Hook for its removal unless debugging.
17294 # Note that there is a small window in which the directory will not be cleaned:
17295 # after its creation but before its name has been assigned to `$tmp'.
17296 $debug ||
17297 {
17298 tmp= ac_tmp=
17299 trap 'exit_status=$?
17300 : "${ac_tmp:=$tmp}"
17301 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17302 ' 0
17303 trap 'as_fn_exit 1' 1 2 13 15
17304 }
17305 # Create a (secure) tmp directory for tmp files.
17306
17307 {
17308 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17309 test -d "$tmp"
17310 } ||
17311 {
17312 tmp=./conf$$-$RANDOM
17313 (umask 077 && mkdir "$tmp")
17314 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17315 ac_tmp=$tmp
17316
17317 # Set up the scripts for CONFIG_FILES section.
17318 # No need to generate them if there are no CONFIG_FILES.
17319 # This happens for instance with `./config.status config.h'.
17320 if test -n "$CONFIG_FILES"; then
17321
17322
17323 ac_cr=`echo X | tr X '\015'`
17324 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17325 # But we know of no other shell where ac_cr would be empty at this
17326 # point, so we can use a bashism as a fallback.
17327 if test "x$ac_cr" = x; then
17328 eval ac_cr=\$\'\\r\'
17329 fi
17330 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17331 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17332 ac_cs_awk_cr='\\r'
17333 else
17334 ac_cs_awk_cr=$ac_cr
17335 fi
17336
17337 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17338 _ACEOF
17339
17340
17341 {
17342 echo "cat >conf$$subs.awk <<_ACEOF" &&
17343 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17344 echo "_ACEOF"
17345 } >conf$$subs.sh ||
17346 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17347 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17348 ac_delim='%!_!# '
17349 for ac_last_try in false false false false false :; do
17350 . ./conf$$subs.sh ||
17351 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17352
17353 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17354 if test $ac_delim_n = $ac_delim_num; then
17355 break
17356 elif $ac_last_try; then
17357 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17358 else
17359 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17360 fi
17361 done
17362 rm -f conf$$subs.sh
17363
17364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17365 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17366 _ACEOF
17367 sed -n '
17368 h
17369 s/^/S["/; s/!.*/"]=/
17370 p
17371 g
17372 s/^[^!]*!//
17373 :repl
17374 t repl
17375 s/'"$ac_delim"'$//
17376 t delim
17377 :nl
17378 h
17379 s/\(.\{148\}\)..*/\1/
17380 t more1
17381 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17382 p
17383 n
17384 b repl
17385 :more1
17386 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17387 p
17388 g
17389 s/.\{148\}//
17390 t nl
17391 :delim
17392 h
17393 s/\(.\{148\}\)..*/\1/
17394 t more2
17395 s/["\\]/\\&/g; s/^/"/; s/$/"/
17396 p
17397 b
17398 :more2
17399 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17400 p
17401 g
17402 s/.\{148\}//
17403 t delim
17404 ' <conf$$subs.awk | sed '
17405 /^[^""]/{
17406 N
17407 s/\n//
17408 }
17409 ' >>$CONFIG_STATUS || ac_write_fail=1
17410 rm -f conf$$subs.awk
17411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17412 _ACAWK
17413 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17414 for (key in S) S_is_set[key] = 1
17415 FS = ""
17416
17417 }
17418 {
17419 line = $ 0
17420 nfields = split(line, field, "@")
17421 substed = 0
17422 len = length(field[1])
17423 for (i = 2; i < nfields; i++) {
17424 key = field[i]
17425 keylen = length(key)
17426 if (S_is_set[key]) {
17427 value = S[key]
17428 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17429 len += length(value) + length(field[++i])
17430 substed = 1
17431 } else
17432 len += 1 + keylen
17433 }
17434
17435 print line
17436 }
17437
17438 _ACAWK
17439 _ACEOF
17440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17441 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17442 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17443 else
17444 cat
17445 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17446 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17447 _ACEOF
17448
17449 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17450 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17451 # trailing colons and then remove the whole line if VPATH becomes empty
17452 # (actually we leave an empty line to preserve line numbers).
17453 if test "x$srcdir" = x.; then
17454 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17455 h
17456 s///
17457 s/^/:/
17458 s/[ ]*$/:/
17459 s/:\$(srcdir):/:/g
17460 s/:\${srcdir}:/:/g
17461 s/:@srcdir@:/:/g
17462 s/^:*//
17463 s/:*$//
17464 x
17465 s/\(=[ ]*\).*/\1/
17466 G
17467 s/\n//
17468 s/^[^=]*=[ ]*$//
17469 }'
17470 fi
17471
17472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17473 fi # test -n "$CONFIG_FILES"
17474
17475 # Set up the scripts for CONFIG_HEADERS section.
17476 # No need to generate them if there are no CONFIG_HEADERS.
17477 # This happens for instance with `./config.status Makefile'.
17478 if test -n "$CONFIG_HEADERS"; then
17479 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17480 BEGIN {
17481 _ACEOF
17482
17483 # Transform confdefs.h into an awk script `defines.awk', embedded as
17484 # here-document in config.status, that substitutes the proper values into
17485 # config.h.in to produce config.h.
17486
17487 # Create a delimiter string that does not exist in confdefs.h, to ease
17488 # handling of long lines.
17489 ac_delim='%!_!# '
17490 for ac_last_try in false false :; do
17491 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17492 if test -z "$ac_tt"; then
17493 break
17494 elif $ac_last_try; then
17495 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17496 else
17497 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17498 fi
17499 done
17500
17501 # For the awk script, D is an array of macro values keyed by name,
17502 # likewise P contains macro parameters if any. Preserve backslash
17503 # newline sequences.
17504
17505 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17506 sed -n '
17507 s/.\{148\}/&'"$ac_delim"'/g
17508 t rset
17509 :rset
17510 s/^[ ]*#[ ]*define[ ][ ]*/ /
17511 t def
17512 d
17513 :def
17514 s/\\$//
17515 t bsnl
17516 s/["\\]/\\&/g
17517 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17518 D["\1"]=" \3"/p
17519 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17520 d
17521 :bsnl
17522 s/["\\]/\\&/g
17523 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17524 D["\1"]=" \3\\\\\\n"\\/p
17525 t cont
17526 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17527 t cont
17528 d
17529 :cont
17530 n
17531 s/.\{148\}/&'"$ac_delim"'/g
17532 t clear
17533 :clear
17534 s/\\$//
17535 t bsnlc
17536 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17537 d
17538 :bsnlc
17539 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17540 b cont
17541 ' <confdefs.h | sed '
17542 s/'"$ac_delim"'/"\\\
17543 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17544
17545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17546 for (key in D) D_is_set[key] = 1
17547 FS = ""
17548 }
17549 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17550 line = \$ 0
17551 split(line, arg, " ")
17552 if (arg[1] == "#") {
17553 defundef = arg[2]
17554 mac1 = arg[3]
17555 } else {
17556 defundef = substr(arg[1], 2)
17557 mac1 = arg[2]
17558 }
17559 split(mac1, mac2, "(") #)
17560 macro = mac2[1]
17561 prefix = substr(line, 1, index(line, defundef) - 1)
17562 if (D_is_set[macro]) {
17563 # Preserve the white space surrounding the "#".
17564 print prefix "define", macro P[macro] D[macro]
17565 next
17566 } else {
17567 # Replace #undef with comments. This is necessary, for example,
17568 # in the case of _POSIX_SOURCE, which is predefined and required
17569 # on some systems where configure will not decide to define it.
17570 if (defundef == "undef") {
17571 print "/*", prefix defundef, macro, "*/"
17572 next
17573 }
17574 }
17575 }
17576 { print }
17577 _ACAWK
17578 _ACEOF
17579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17580 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17581 fi # test -n "$CONFIG_HEADERS"
17582
17583
17584 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17585 shift
17586 for ac_tag
17587 do
17588 case $ac_tag in
17589 :[FHLC]) ac_mode=$ac_tag; continue;;
17590 esac
17591 case $ac_mode$ac_tag in
17592 :[FHL]*:*);;
17593 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17594 :[FH]-) ac_tag=-:-;;
17595 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17596 esac
17597 ac_save_IFS=$IFS
17598 IFS=:
17599 set x $ac_tag
17600 IFS=$ac_save_IFS
17601 shift
17602 ac_file=$1
17603 shift
17604
17605 case $ac_mode in
17606 :L) ac_source=$1;;
17607 :[FH])
17608 ac_file_inputs=
17609 for ac_f
17610 do
17611 case $ac_f in
17612 -) ac_f="$ac_tmp/stdin";;
17613 *) # Look for the file first in the build tree, then in the source tree
17614 # (if the path is not absolute). The absolute path cannot be DOS-style,
17615 # because $ac_f cannot contain `:'.
17616 test -f "$ac_f" ||
17617 case $ac_f in
17618 [\\/$]*) false;;
17619 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17620 esac ||
17621 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17622 esac
17623 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17624 as_fn_append ac_file_inputs " '$ac_f'"
17625 done
17626
17627 # Let's still pretend it is `configure' which instantiates (i.e., don't
17628 # use $as_me), people would be surprised to read:
17629 # /* config.h. Generated by config.status. */
17630 configure_input='Generated from '`
17631 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17632 `' by configure.'
17633 if test x"$ac_file" != x-; then
17634 configure_input="$ac_file. $configure_input"
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17636 $as_echo "$as_me: creating $ac_file" >&6;}
17637 fi
17638 # Neutralize special characters interpreted by sed in replacement strings.
17639 case $configure_input in #(
17640 *\&* | *\|* | *\\* )
17641 ac_sed_conf_input=`$as_echo "$configure_input" |
17642 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17643 *) ac_sed_conf_input=$configure_input;;
17644 esac
17645
17646 case $ac_tag in
17647 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17649 esac
17650 ;;
17651 esac
17652
17653 ac_dir=`$as_dirname -- "$ac_file" ||
17654 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17655 X"$ac_file" : 'X\(//\)[^/]' \| \
17656 X"$ac_file" : 'X\(//\)$' \| \
17657 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17658 $as_echo X"$ac_file" |
17659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17660 s//\1/
17661 q
17662 }
17663 /^X\(\/\/\)[^/].*/{
17664 s//\1/
17665 q
17666 }
17667 /^X\(\/\/\)$/{
17668 s//\1/
17669 q
17670 }
17671 /^X\(\/\).*/{
17672 s//\1/
17673 q
17674 }
17675 s/.*/./; q'`
17676 as_dir="$ac_dir"; as_fn_mkdir_p
17677 ac_builddir=.
17678
17679 case "$ac_dir" in
17680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17681 *)
17682 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17683 # A ".." for each directory in $ac_dir_suffix.
17684 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17685 case $ac_top_builddir_sub in
17686 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17687 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17688 esac ;;
17689 esac
17690 ac_abs_top_builddir=$ac_pwd
17691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17692 # for backward compatibility:
17693 ac_top_builddir=$ac_top_build_prefix
17694
17695 case $srcdir in
17696 .) # We are building in place.
17697 ac_srcdir=.
17698 ac_top_srcdir=$ac_top_builddir_sub
17699 ac_abs_top_srcdir=$ac_pwd ;;
17700 [\\/]* | ?:[\\/]* ) # Absolute name.
17701 ac_srcdir=$srcdir$ac_dir_suffix;
17702 ac_top_srcdir=$srcdir
17703 ac_abs_top_srcdir=$srcdir ;;
17704 *) # Relative name.
17705 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17706 ac_top_srcdir=$ac_top_build_prefix$srcdir
17707 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17708 esac
17709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17710
17711
17712 case $ac_mode in
17713 :F)
17714 #
17715 # CONFIG_FILE
17716 #
17717
17718 case $INSTALL in
17719 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17720 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17721 esac
17722 ac_MKDIR_P=$MKDIR_P
17723 case $MKDIR_P in
17724 [\\/$]* | ?:[\\/]* ) ;;
17725 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17726 esac
17727 _ACEOF
17728
17729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17730 # If the template does not know about datarootdir, expand it.
17731 # FIXME: This hack should be removed a few years after 2.60.
17732 ac_datarootdir_hack=; ac_datarootdir_seen=
17733 ac_sed_dataroot='
17734 /datarootdir/ {
17735 p
17736 q
17737 }
17738 /@datadir@/p
17739 /@docdir@/p
17740 /@infodir@/p
17741 /@localedir@/p
17742 /@mandir@/p'
17743 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17744 *datarootdir*) ac_datarootdir_seen=yes;;
17745 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17747 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17748 _ACEOF
17749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17750 ac_datarootdir_hack='
17751 s&@datadir@&$datadir&g
17752 s&@docdir@&$docdir&g
17753 s&@infodir@&$infodir&g
17754 s&@localedir@&$localedir&g
17755 s&@mandir@&$mandir&g
17756 s&\\\${datarootdir}&$datarootdir&g' ;;
17757 esac
17758 _ACEOF
17759
17760 # Neutralize VPATH when `$srcdir' = `.'.
17761 # Shell code in configure.ac might set extrasub.
17762 # FIXME: do we really want to maintain this feature?
17763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17764 ac_sed_extra="$ac_vpsub
17765 $extrasub
17766 _ACEOF
17767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17768 :t
17769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17770 s|@configure_input@|$ac_sed_conf_input|;t t
17771 s&@top_builddir@&$ac_top_builddir_sub&;t t
17772 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17773 s&@srcdir@&$ac_srcdir&;t t
17774 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17775 s&@top_srcdir@&$ac_top_srcdir&;t t
17776 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17777 s&@builddir@&$ac_builddir&;t t
17778 s&@abs_builddir@&$ac_abs_builddir&;t t
17779 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17780 s&@INSTALL@&$ac_INSTALL&;t t
17781 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17782 $ac_datarootdir_hack
17783 "
17784 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17785 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17786
17787 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17788 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17789 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17790 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17792 which seems to be undefined. Please make sure it is defined" >&5
17793 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17794 which seems to be undefined. Please make sure it is defined" >&2;}
17795
17796 rm -f "$ac_tmp/stdin"
17797 case $ac_file in
17798 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17799 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17800 esac \
17801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17802 ;;
17803 :H)
17804 #
17805 # CONFIG_HEADER
17806 #
17807 if test x"$ac_file" != x-; then
17808 {
17809 $as_echo "/* $configure_input */" \
17810 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17811 } >"$ac_tmp/config.h" \
17812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17813 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17815 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17816 else
17817 rm -f "$ac_file"
17818 mv "$ac_tmp/config.h" "$ac_file" \
17819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17820 fi
17821 else
17822 $as_echo "/* $configure_input */" \
17823 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17824 || as_fn_error $? "could not create -" "$LINENO" 5
17825 fi
17826 # Compute "$ac_file"'s index in $config_headers.
17827 _am_arg="$ac_file"
17828 _am_stamp_count=1
17829 for _am_header in $config_headers :; do
17830 case $_am_header in
17831 $_am_arg | $_am_arg:* )
17832 break ;;
17833 * )
17834 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17835 esac
17836 done
17837 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17838 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17839 X"$_am_arg" : 'X\(//\)[^/]' \| \
17840 X"$_am_arg" : 'X\(//\)$' \| \
17841 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17842 $as_echo X"$_am_arg" |
17843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17844 s//\1/
17845 q
17846 }
17847 /^X\(\/\/\)[^/].*/{
17848 s//\1/
17849 q
17850 }
17851 /^X\(\/\/\)$/{
17852 s//\1/
17853 q
17854 }
17855 /^X\(\/\).*/{
17856 s//\1/
17857 q
17858 }
17859 s/.*/./; q'`/stamp-h$_am_stamp_count
17860 ;;
17861
17862 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17863 $as_echo "$as_me: executing $ac_file commands" >&6;}
17864 ;;
17865 esac
17866
17867
17868 case $ac_file$ac_mode in
17869 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17870 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17871 # are listed without --file. Let's play safe and only enable the eval
17872 # if we detect the quoting.
17873 case $CONFIG_FILES in
17874 *\'*) eval set x "$CONFIG_FILES" ;;
17875 *) set x $CONFIG_FILES ;;
17876 esac
17877 shift
17878 for mf
17879 do
17880 # Strip MF so we end up with the name of the file.
17881 mf=`echo "$mf" | sed -e 's/:.*$//'`
17882 # Check whether this is an Automake generated Makefile or not.
17883 # We used to match only the files named `Makefile.in', but
17884 # some people rename them; so instead we look at the file content.
17885 # Grep'ing the first line is not enough: some people post-process
17886 # each Makefile.in and add a new line on top of each file to say so.
17887 # Grep'ing the whole file is not good either: AIX grep has a line
17888 # limit of 2048, but all sed's we know have understand at least 4000.
17889 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17890 dirpart=`$as_dirname -- "$mf" ||
17891 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17892 X"$mf" : 'X\(//\)[^/]' \| \
17893 X"$mf" : 'X\(//\)$' \| \
17894 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17895 $as_echo X"$mf" |
17896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17897 s//\1/
17898 q
17899 }
17900 /^X\(\/\/\)[^/].*/{
17901 s//\1/
17902 q
17903 }
17904 /^X\(\/\/\)$/{
17905 s//\1/
17906 q
17907 }
17908 /^X\(\/\).*/{
17909 s//\1/
17910 q
17911 }
17912 s/.*/./; q'`
17913 else
17914 continue
17915 fi
17916 # Extract the definition of DEPDIR, am__include, and am__quote
17917 # from the Makefile without running `make'.
17918 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17919 test -z "$DEPDIR" && continue
17920 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17921 test -z "am__include" && continue
17922 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17923 # When using ansi2knr, U may be empty or an underscore; expand it
17924 U=`sed -n 's/^U = //p' < "$mf"`
17925 # Find all dependency output files, they are included files with
17926 # $(DEPDIR) in their names. We invoke sed twice because it is the
17927 # simplest approach to changing $(DEPDIR) to its actual value in the
17928 # expansion.
17929 for file in `sed -n "
17930 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17931 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17932 # Make sure the directory exists.
17933 test -f "$dirpart/$file" && continue
17934 fdir=`$as_dirname -- "$file" ||
17935 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17936 X"$file" : 'X\(//\)[^/]' \| \
17937 X"$file" : 'X\(//\)$' \| \
17938 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17939 $as_echo X"$file" |
17940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17941 s//\1/
17942 q
17943 }
17944 /^X\(\/\/\)[^/].*/{
17945 s//\1/
17946 q
17947 }
17948 /^X\(\/\/\)$/{
17949 s//\1/
17950 q
17951 }
17952 /^X\(\/\).*/{
17953 s//\1/
17954 q
17955 }
17956 s/.*/./; q'`
17957 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17958 # echo "creating $dirpart/$file"
17959 echo '# dummy' > "$dirpart/$file"
17960 done
17961 done
17962 }
17963 ;;
17964 "libtool":C)
17965
17966 # See if we are running on zsh, and set the options which allow our
17967 # commands through without removal of \ escapes.
17968 if test -n "${ZSH_VERSION+set}" ; then
17969 setopt NO_GLOB_SUBST
17970 fi
17971
17972 cfgfile="${ofile}T"
17973 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17974 $RM "$cfgfile"
17975
17976 cat <<_LT_EOF >> "$cfgfile"
17977 #! $SHELL
17978
17979 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17980 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17981 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17982 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17983 #
17984 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17985 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17986 # Foundation, Inc.
17987 # Written by Gordon Matzigkeit, 1996
17988 #
17989 # This file is part of GNU Libtool.
17990 #
17991 # GNU Libtool is free software; you can redistribute it and/or
17992 # modify it under the terms of the GNU General Public License as
17993 # published by the Free Software Foundation; either version 2 of
17994 # the License, or (at your option) any later version.
17995 #
17996 # As a special exception to the GNU General Public License,
17997 # if you distribute this file as part of a program or library that
17998 # is built using GNU Libtool, you may include this file under the
17999 # same distribution terms that you use for the rest of that program.
18000 #
18001 # GNU Libtool is distributed in the hope that it will be useful,
18002 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18003 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18004 # GNU General Public License for more details.
18005 #
18006 # You should have received a copy of the GNU General Public License
18007 # along with GNU Libtool; see the file COPYING. If not, a copy
18008 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18009 # obtained by writing to the Free Software Foundation, Inc.,
18010 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18011
18012
18013 # The names of the tagged configurations supported by this script.
18014 available_tags=""
18015
18016 # ### BEGIN LIBTOOL CONFIG
18017
18018 # Which release of libtool.m4 was used?
18019 macro_version=$macro_version
18020 macro_revision=$macro_revision
18021
18022 # Whether or not to build shared libraries.
18023 build_libtool_libs=$enable_shared
18024
18025 # Whether or not to build static libraries.
18026 build_old_libs=$enable_static
18027
18028 # What type of objects to build.
18029 pic_mode=$pic_mode
18030
18031 # Whether or not to optimize for fast installation.
18032 fast_install=$enable_fast_install
18033
18034 # Shell to use when invoking shell scripts.
18035 SHELL=$lt_SHELL
18036
18037 # An echo program that protects backslashes.
18038 ECHO=$lt_ECHO
18039
18040 # The PATH separator for the build system.
18041 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18042
18043 # The host system.
18044 host_alias=$host_alias
18045 host=$host
18046 host_os=$host_os
18047
18048 # The build system.
18049 build_alias=$build_alias
18050 build=$build
18051 build_os=$build_os
18052
18053 # A sed program that does not truncate output.
18054 SED=$lt_SED
18055
18056 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18057 Xsed="\$SED -e 1s/^X//"
18058
18059 # A grep program that handles long lines.
18060 GREP=$lt_GREP
18061
18062 # An ERE matcher.
18063 EGREP=$lt_EGREP
18064
18065 # A literal string matcher.
18066 FGREP=$lt_FGREP
18067
18068 # A BSD- or MS-compatible name lister.
18069 NM=$lt_NM
18070
18071 # Whether we need soft or hard links.
18072 LN_S=$lt_LN_S
18073
18074 # What is the maximum length of a command?
18075 max_cmd_len=$max_cmd_len
18076
18077 # Object file suffix (normally "o").
18078 objext=$ac_objext
18079
18080 # Executable file suffix (normally "").
18081 exeext=$exeext
18082
18083 # whether the shell understands "unset".
18084 lt_unset=$lt_unset
18085
18086 # turn spaces into newlines.
18087 SP2NL=$lt_lt_SP2NL
18088
18089 # turn newlines into spaces.
18090 NL2SP=$lt_lt_NL2SP
18091
18092 # convert \$build file names to \$host format.
18093 to_host_file_cmd=$lt_cv_to_host_file_cmd
18094
18095 # convert \$build files to toolchain format.
18096 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18097
18098 # An object symbol dumper.
18099 OBJDUMP=$lt_OBJDUMP
18100
18101 # Method to check whether dependent libraries are shared objects.
18102 deplibs_check_method=$lt_deplibs_check_method
18103
18104 # Command to use when deplibs_check_method = "file_magic".
18105 file_magic_cmd=$lt_file_magic_cmd
18106
18107 # How to find potential files when deplibs_check_method = "file_magic".
18108 file_magic_glob=$lt_file_magic_glob
18109
18110 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18111 want_nocaseglob=$lt_want_nocaseglob
18112
18113 # DLL creation program.
18114 DLLTOOL=$lt_DLLTOOL
18115
18116 # Command to associate shared and link libraries.
18117 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18118
18119 # The archiver.
18120 AR=$lt_AR
18121
18122 # Flags to create an archive.
18123 AR_FLAGS=$lt_AR_FLAGS
18124
18125 # How to feed a file listing to the archiver.
18126 archiver_list_spec=$lt_archiver_list_spec
18127
18128 # A symbol stripping program.
18129 STRIP=$lt_STRIP
18130
18131 # Commands used to install an old-style archive.
18132 RANLIB=$lt_RANLIB
18133 old_postinstall_cmds=$lt_old_postinstall_cmds
18134 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18135
18136 # Whether to use a lock for old archive extraction.
18137 lock_old_archive_extraction=$lock_old_archive_extraction
18138
18139 # A C compiler.
18140 LTCC=$lt_CC
18141
18142 # LTCC compiler flags.
18143 LTCFLAGS=$lt_CFLAGS
18144
18145 # Take the output of nm and produce a listing of raw symbols and C names.
18146 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18147
18148 # Transform the output of nm in a proper C declaration.
18149 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18150
18151 # Transform the output of nm in a C name address pair.
18152 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18153
18154 # Transform the output of nm in a C name address pair when lib prefix is needed.
18155 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18156
18157 # Specify filename containing input files for \$NM.
18158 nm_file_list_spec=$lt_nm_file_list_spec
18159
18160 # The root where to search for dependent libraries,and in which our libraries should be installed.
18161 lt_sysroot=$lt_sysroot
18162
18163 # The name of the directory that contains temporary libtool files.
18164 objdir=$objdir
18165
18166 # Used to examine libraries when file_magic_cmd begins with "file".
18167 MAGIC_CMD=$MAGIC_CMD
18168
18169 # Must we lock files when doing compilation?
18170 need_locks=$lt_need_locks
18171
18172 # Manifest tool.
18173 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18174
18175 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18176 DSYMUTIL=$lt_DSYMUTIL
18177
18178 # Tool to change global to local symbols on Mac OS X.
18179 NMEDIT=$lt_NMEDIT
18180
18181 # Tool to manipulate fat objects and archives on Mac OS X.
18182 LIPO=$lt_LIPO
18183
18184 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18185 OTOOL=$lt_OTOOL
18186
18187 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18188 OTOOL64=$lt_OTOOL64
18189
18190 # Old archive suffix (normally "a").
18191 libext=$libext
18192
18193 # Shared library suffix (normally ".so").
18194 shrext_cmds=$lt_shrext_cmds
18195
18196 # The commands to extract the exported symbol list from a shared archive.
18197 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18198
18199 # Variables whose values should be saved in libtool wrapper scripts and
18200 # restored at link time.
18201 variables_saved_for_relink=$lt_variables_saved_for_relink
18202
18203 # Do we need the "lib" prefix for modules?
18204 need_lib_prefix=$need_lib_prefix
18205
18206 # Do we need a version for libraries?
18207 need_version=$need_version
18208
18209 # Library versioning type.
18210 version_type=$version_type
18211
18212 # Shared library runtime path variable.
18213 runpath_var=$runpath_var
18214
18215 # Shared library path variable.
18216 shlibpath_var=$shlibpath_var
18217
18218 # Is shlibpath searched before the hard-coded library search path?
18219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18220
18221 # Format of library name prefix.
18222 libname_spec=$lt_libname_spec
18223
18224 # List of archive names. First name is the real one, the rest are links.
18225 # The last name is the one that the linker finds with -lNAME
18226 library_names_spec=$lt_library_names_spec
18227
18228 # The coded name of the library, if different from the real name.
18229 soname_spec=$lt_soname_spec
18230
18231 # Permission mode override for installation of shared libraries.
18232 install_override_mode=$lt_install_override_mode
18233
18234 # Command to use after installation of a shared archive.
18235 postinstall_cmds=$lt_postinstall_cmds
18236
18237 # Command to use after uninstallation of a shared archive.
18238 postuninstall_cmds=$lt_postuninstall_cmds
18239
18240 # Commands used to finish a libtool library installation in a directory.
18241 finish_cmds=$lt_finish_cmds
18242
18243 # As "finish_cmds", except a single script fragment to be evaled but
18244 # not shown.
18245 finish_eval=$lt_finish_eval
18246
18247 # Whether we should hardcode library paths into libraries.
18248 hardcode_into_libs=$hardcode_into_libs
18249
18250 # Compile-time system search path for libraries.
18251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18252
18253 # Run-time system search path for libraries.
18254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18255
18256 # Whether dlopen is supported.
18257 dlopen_support=$enable_dlopen
18258
18259 # Whether dlopen of programs is supported.
18260 dlopen_self=$enable_dlopen_self
18261
18262 # Whether dlopen of statically linked programs is supported.
18263 dlopen_self_static=$enable_dlopen_self_static
18264
18265 # Commands to strip libraries.
18266 old_striplib=$lt_old_striplib
18267 striplib=$lt_striplib
18268
18269
18270 # The linker used to build libraries.
18271 LD=$lt_LD
18272
18273 # How to create reloadable object files.
18274 reload_flag=$lt_reload_flag
18275 reload_cmds=$lt_reload_cmds
18276
18277 # Commands used to build an old-style archive.
18278 old_archive_cmds=$lt_old_archive_cmds
18279
18280 # A language specific compiler.
18281 CC=$lt_compiler
18282
18283 # Is the compiler the GNU compiler?
18284 with_gcc=$GCC
18285
18286 # Compiler flag to turn off builtin functions.
18287 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18288
18289 # Additional compiler flags for building library objects.
18290 pic_flag=$lt_lt_prog_compiler_pic
18291
18292 # How to pass a linker flag through the compiler.
18293 wl=$lt_lt_prog_compiler_wl
18294
18295 # Compiler flag to prevent dynamic linking.
18296 link_static_flag=$lt_lt_prog_compiler_static
18297
18298 # Does compiler simultaneously support -c and -o options?
18299 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18300
18301 # Whether or not to add -lc for building shared libraries.
18302 build_libtool_need_lc=$archive_cmds_need_lc
18303
18304 # Whether or not to disallow shared libs when runtime libs are static.
18305 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18306
18307 # Compiler flag to allow reflexive dlopens.
18308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18309
18310 # Compiler flag to generate shared objects directly from archives.
18311 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18312
18313 # Whether the compiler copes with passing no objects directly.
18314 compiler_needs_object=$lt_compiler_needs_object
18315
18316 # Create an old-style archive from a shared archive.
18317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18318
18319 # Create a temporary old-style archive to link instead of a shared archive.
18320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18321
18322 # Commands used to build a shared archive.
18323 archive_cmds=$lt_archive_cmds
18324 archive_expsym_cmds=$lt_archive_expsym_cmds
18325
18326 # Commands used to build a loadable module if different from building
18327 # a shared archive.
18328 module_cmds=$lt_module_cmds
18329 module_expsym_cmds=$lt_module_expsym_cmds
18330
18331 # Whether we are building with GNU ld or not.
18332 with_gnu_ld=$lt_with_gnu_ld
18333
18334 # Flag that allows shared libraries with undefined symbols to be built.
18335 allow_undefined_flag=$lt_allow_undefined_flag
18336
18337 # Flag that enforces no undefined symbols.
18338 no_undefined_flag=$lt_no_undefined_flag
18339
18340 # Flag to hardcode \$libdir into a binary during linking.
18341 # This must work even if \$libdir does not exist
18342 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18343
18344 # Whether we need a single "-rpath" flag with a separated argument.
18345 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18346
18347 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18348 # DIR into the resulting binary.
18349 hardcode_direct=$hardcode_direct
18350
18351 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18352 # DIR into the resulting binary and the resulting library dependency is
18353 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18354 # library is relocated.
18355 hardcode_direct_absolute=$hardcode_direct_absolute
18356
18357 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18358 # into the resulting binary.
18359 hardcode_minus_L=$hardcode_minus_L
18360
18361 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18362 # into the resulting binary.
18363 hardcode_shlibpath_var=$hardcode_shlibpath_var
18364
18365 # Set to "yes" if building a shared library automatically hardcodes DIR
18366 # into the library and all subsequent libraries and executables linked
18367 # against it.
18368 hardcode_automatic=$hardcode_automatic
18369
18370 # Set to yes if linker adds runtime paths of dependent libraries
18371 # to runtime path list.
18372 inherit_rpath=$inherit_rpath
18373
18374 # Whether libtool must link a program against all its dependency libraries.
18375 link_all_deplibs=$link_all_deplibs
18376
18377 # Set to "yes" if exported symbols are required.
18378 always_export_symbols=$always_export_symbols
18379
18380 # The commands to list exported symbols.
18381 export_symbols_cmds=$lt_export_symbols_cmds
18382
18383 # Symbols that should not be listed in the preloaded symbols.
18384 exclude_expsyms=$lt_exclude_expsyms
18385
18386 # Symbols that must always be exported.
18387 include_expsyms=$lt_include_expsyms
18388
18389 # Commands necessary for linking programs (against libraries) with templates.
18390 prelink_cmds=$lt_prelink_cmds
18391
18392 # Commands necessary for finishing linking programs.
18393 postlink_cmds=$lt_postlink_cmds
18394
18395 # Specify filename containing input files.
18396 file_list_spec=$lt_file_list_spec
18397
18398 # How to hardcode a shared library path into an executable.
18399 hardcode_action=$hardcode_action
18400
18401 # ### END LIBTOOL CONFIG
18402
18403 _LT_EOF
18404
18405 case $host_os in
18406 aix3*)
18407 cat <<\_LT_EOF >> "$cfgfile"
18408 # AIX sometimes has problems with the GCC collect2 program. For some
18409 # reason, if we set the COLLECT_NAMES environment variable, the problems
18410 # vanish in a puff of smoke.
18411 if test "X${COLLECT_NAMES+set}" != Xset; then
18412 COLLECT_NAMES=
18413 export COLLECT_NAMES
18414 fi
18415 _LT_EOF
18416 ;;
18417 esac
18418
18419
18420 ltmain="$ac_aux_dir/ltmain.sh"
18421
18422
18423 # We use sed instead of cat because bash on DJGPP gets confused if
18424 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18425 # text mode, it properly converts lines to CR/LF. This bash problem
18426 # is reportedly fixed, but why not run on old versions too?
18427 sed '$q' "$ltmain" >> "$cfgfile" \
18428 || (rm -f "$cfgfile"; exit 1)
18429
18430 if test x"$xsi_shell" = xyes; then
18431 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18432 func_dirname ()\
18433 {\
18434 \ case ${1} in\
18435 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18436 \ * ) func_dirname_result="${3}" ;;\
18437 \ esac\
18438 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18439 && mv -f "$cfgfile.tmp" "$cfgfile" \
18440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18441 test 0 -eq $? || _lt_function_replace_fail=:
18442
18443
18444 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18445 func_basename ()\
18446 {\
18447 \ func_basename_result="${1##*/}"\
18448 } # Extended-shell func_basename implementation' "$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
18453
18454 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18455 func_dirname_and_basename ()\
18456 {\
18457 \ case ${1} in\
18458 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18459 \ * ) func_dirname_result="${3}" ;;\
18460 \ esac\
18461 \ func_basename_result="${1##*/}"\
18462 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18463 && mv -f "$cfgfile.tmp" "$cfgfile" \
18464 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18465 test 0 -eq $? || _lt_function_replace_fail=:
18466
18467
18468 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18469 func_stripname ()\
18470 {\
18471 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18472 \ # positional parameters, so assign one to ordinary parameter first.\
18473 \ func_stripname_result=${3}\
18474 \ func_stripname_result=${func_stripname_result#"${1}"}\
18475 \ func_stripname_result=${func_stripname_result%"${2}"}\
18476 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18477 && mv -f "$cfgfile.tmp" "$cfgfile" \
18478 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18479 test 0 -eq $? || _lt_function_replace_fail=:
18480
18481
18482 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18483 func_split_long_opt ()\
18484 {\
18485 \ func_split_long_opt_name=${1%%=*}\
18486 \ func_split_long_opt_arg=${1#*=}\
18487 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18488 && mv -f "$cfgfile.tmp" "$cfgfile" \
18489 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18490 test 0 -eq $? || _lt_function_replace_fail=:
18491
18492
18493 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18494 func_split_short_opt ()\
18495 {\
18496 \ func_split_short_opt_arg=${1#??}\
18497 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18498 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18499 && mv -f "$cfgfile.tmp" "$cfgfile" \
18500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18501 test 0 -eq $? || _lt_function_replace_fail=:
18502
18503
18504 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18505 func_lo2o ()\
18506 {\
18507 \ case ${1} in\
18508 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18509 \ *) func_lo2o_result=${1} ;;\
18510 \ esac\
18511 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18512 && mv -f "$cfgfile.tmp" "$cfgfile" \
18513 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18514 test 0 -eq $? || _lt_function_replace_fail=:
18515
18516
18517 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18518 func_xform ()\
18519 {\
18520 func_xform_result=${1%.*}.lo\
18521 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18522 && mv -f "$cfgfile.tmp" "$cfgfile" \
18523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18524 test 0 -eq $? || _lt_function_replace_fail=:
18525
18526
18527 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18528 func_arith ()\
18529 {\
18530 func_arith_result=$(( $* ))\
18531 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18532 && mv -f "$cfgfile.tmp" "$cfgfile" \
18533 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18534 test 0 -eq $? || _lt_function_replace_fail=:
18535
18536
18537 sed -e '/^func_len ()$/,/^} # func_len /c\
18538 func_len ()\
18539 {\
18540 func_len_result=${#1}\
18541 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18542 && mv -f "$cfgfile.tmp" "$cfgfile" \
18543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18544 test 0 -eq $? || _lt_function_replace_fail=:
18545
18546 fi
18547
18548 if test x"$lt_shell_append" = xyes; then
18549 sed -e '/^func_append ()$/,/^} # func_append /c\
18550 func_append ()\
18551 {\
18552 eval "${1}+=\\${2}"\
18553 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18554 && mv -f "$cfgfile.tmp" "$cfgfile" \
18555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18556 test 0 -eq $? || _lt_function_replace_fail=:
18557
18558
18559 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18560 func_append_quoted ()\
18561 {\
18562 \ func_quote_for_eval "${2}"\
18563 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18564 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18565 && mv -f "$cfgfile.tmp" "$cfgfile" \
18566 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18567 test 0 -eq $? || _lt_function_replace_fail=:
18568
18569
18570 # Save a `func_append' function call where possible by direct use of '+='
18571 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18572 && mv -f "$cfgfile.tmp" "$cfgfile" \
18573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18574 test 0 -eq $? || _lt_function_replace_fail=:
18575 else
18576 # Save a `func_append' function call even when '+=' is not available
18577 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18578 && mv -f "$cfgfile.tmp" "$cfgfile" \
18579 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18580 test 0 -eq $? || _lt_function_replace_fail=:
18581 fi
18582
18583 if test x"$_lt_function_replace_fail" = x":"; then
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18585 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18586 fi
18587
18588
18589 mv -f "$cfgfile" "$ofile" ||
18590 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18591 chmod +x "$ofile"
18592
18593 ;;
18594 "src/rasqal-config":F) chmod +x src/rasqal-config ;;
18595 "rasqal-src-config":F) chmod +x rasqal-src-config ;;
18596
18597 esac
18598 done # for ac_tag
18599
18600
18601 as_fn_exit 0
18602 _ACEOF
18603 ac_clean_files=$ac_clean_files_save
18604
18605 test $ac_write_fail = 0 ||
18606 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18607
18608
18609 # configure is writing to config.log, and then calls config.status.
18610 # config.status does its own redirection, appending to config.log.
18611 # Unfortunately, on DOS this fails, as config.log is still kept open
18612 # by configure, so config.status won't be able to write to it; its
18613 # output is simply discarded. So we exec the FD to /dev/null,
18614 # effectively closing config.log, so it can be properly (re)opened and
18615 # appended to by config.status. When coming back to configure, we
18616 # need to make the FD available again.
18617 if test "$no_create" != yes; then
18618 ac_cs_success=:
18619 ac_config_status_args=
18620 test "$silent" = yes &&
18621 ac_config_status_args="$ac_config_status_args --quiet"
18622 exec 5>/dev/null
18623 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18624 exec 5>>config.log
18625 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18626 # would make configure fail if this is the last instruction.
18627 $ac_cs_success || as_fn_exit 1
18628 fi
18629 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18631 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18632 fi
18633
18634
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18636 Rasqal build summary:
18637 RDF query languages available : $rdf_query_languages_available
18638 RDF query languages enabled :$rdf_query_languages_enabled
18639 Raptor version : $RAPTOR_VERSION
18640 Decimal library : $decimal_library
18641 Regex library : $regex_library
18642 Message digest library : $digest_library
18643 UUID library : $uuid_library
18644 Random approach : $random_approach
18645 ceil, floor, round source : $ceil_lib
18646 " >&5
18647 $as_echo "
18648 Rasqal build summary:
18649 RDF query languages available : $rdf_query_languages_available
18650 RDF query languages enabled :$rdf_query_languages_enabled
18651 Raptor version : $RAPTOR_VERSION
18652 Decimal library : $decimal_library
18653 Regex library : $regex_library
18654 Message digest library : $digest_library
18655 UUID library : $uuid_library
18656 Random approach : $random_approach
18657 ceil, floor, round source : $ceil_lib
18658 " >&6; }