Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libgee 0.20.8.
4 #
5 # Report bugs to <https://gitlab.gnome.org/GNOME/libgee/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://gitlab.gnome.org/GNOME/libgee/issues about your
283 $0: system, including any error possibly output before this
284 $0: message. Then install a modern shell, or manually run
285 $0: the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593 as_awk_strverscmp='
594 # Use only awk features that work with 7th edition Unix awk (1978).
595 # My, what an old awk you have, Mr. Solaris!
596 END {
597 while (length(v1) && length(v2)) {
598 # Set d1 to be the next thing to compare from v1, and likewise for d2.
599 # Normally this is a single character, but if v1 and v2 contain digits,
600 # compare them as integers and fractions as strverscmp does.
601 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
602 # Split v1 and v2 into their leading digit string components d1 and d2,
603 # and advance v1 and v2 past the leading digit strings.
604 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
605 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
606 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
607 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
608 if (d1 ~ /^0/) {
609 if (d2 ~ /^0/) {
610 # Compare two fractions.
611 while (d1 ~ /^0/ && d2 ~ /^0/) {
612 d1 = substr(d1, 2); len1--
613 d2 = substr(d2, 2); len2--
614 }
615 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
616 # The two components differ in length, and the common prefix
617 # contains only leading zeros. Consider the longer to be less.
618 d1 = -len1
619 d2 = -len2
620 } else {
621 # Otherwise, compare as strings.
622 d1 = "x" d1
623 d2 = "x" d2
624 }
625 } else {
626 # A fraction is less than an integer.
627 exit 1
628 }
629 } else {
630 if (d2 ~ /^0/) {
631 # An integer is greater than a fraction.
632 exit 2
633 } else {
634 # Compare two integers.
635 d1 += 0
636 d2 += 0
637 }
638 }
639 } else {
640 # The normal case, without worrying about digits.
641 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
642 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
643 }
644 if (d1 < d2) exit 1
645 if (d1 > d2) exit 2
646 }
647 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
648 # which mishandles some comparisons of empty strings to integers.
649 if (length(v2)) exit 1
650 if (length(v1)) exit 2
651 }
652 '
653
654 test -n "$DJDIR" || exec 7<&0 </dev/null
655 exec 6>&1
656
657 # Name of the host.
658 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
659 # so uname gets run too.
660 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
661
662 #
663 # Initializations.
664 #
665 ac_default_prefix=/usr/local
666 ac_clean_files=
667 ac_config_libobj_dir=.
668 LIBOBJS=
669 cross_compiling=no
670 subdirs=
671 MFLAGS=
672 MAKEFLAGS=
673
674 # Identity of this package.
675 PACKAGE_NAME='libgee'
676 PACKAGE_TARNAME='libgee'
677 PACKAGE_VERSION='0.20.8'
678 PACKAGE_STRING='libgee 0.20.8'
679 PACKAGE_BUGREPORT='https://gitlab.gnome.org/GNOME/libgee/issues'
680 PACKAGE_URL='https://wiki.gnome.org/Projects/Libgee'
681
682 ac_unique_file="Makefile.am"
683 # Factoring default headers for most tests.
684 ac_includes_default="\
685 #include <stddef.h>
686 #ifdef HAVE_STDIO_H
687 # include <stdio.h>
688 #endif
689 #ifdef HAVE_STDLIB_H
690 # include <stdlib.h>
691 #endif
692 #ifdef HAVE_STRING_H
693 # include <string.h>
694 #endif
695 #ifdef HAVE_INTTYPES_H
696 # include <inttypes.h>
697 #endif
698 #ifdef HAVE_STDINT_H
699 # include <stdint.h>
700 #endif
701 #ifdef HAVE_STRINGS_H
702 # include <strings.h>
703 #endif
704 #ifdef HAVE_SYS_TYPES_H
705 # include <sys/types.h>
706 #endif
707 #ifdef HAVE_SYS_STAT_H
708 # include <sys/stat.h>
709 #endif
710 #ifdef HAVE_UNISTD_H
711 # include <unistd.h>
712 #endif"
713
714 ac_header_c_list=
715 ac_subst_vars='am__EXEEXT_FALSE
716 am__EXEEXT_TRUE
717 LTLIBOBJS
718 LIBOBJS
719 VAPIGEN
720 VALAC
721 VALAFLAGS
722 HAVE_INTROSPECTION_FALSE
723 HAVE_INTROSPECTION_TRUE
724 INTROSPECTION_MAKEFILE
725 INTROSPECTION_LIBS
726 INTROSPECTION_CFLAGS
727 INTROSPECTION_TYPELIBDIR
728 INTROSPECTION_GIRDIR
729 INTROSPECTION_GENERATE
730 INTROSPECTION_COMPILER
731 INTROSPECTION_SCANNER
732 _GI_EXP_LIBDIR
733 _GI_EXP_DATADIR
734 GLIB_LIBS
735 GLIB_CFLAGS
736 PKG_CONFIG_LIBDIR
737 PKG_CONFIG_PATH
738 PKG_CONFIG
739 ENABLE_BENCHMARK_FALSE
740 ENABLE_BENCHMARK_TRUE
741 LCOV
742 COVERAGE_LIBS
743 COVERAGE_VALAFLAGS
744 COVERAGE_CFLAGS
745 ENABLE_COVERAGE_FALSE
746 ENABLE_COVERAGE_TRUE
747 VALADOC
748 ENABLE_DOC_FALSE
749 ENABLE_DOC_TRUE
750 LIBGEE_LT_VERSION
751 LT_SYS_LIBRARY_PATH
752 OTOOL64
753 OTOOL
754 LIPO
755 NMEDIT
756 DSYMUTIL
757 MANIFEST_TOOL
758 RANLIB
759 ac_ct_AR
760 AR
761 DLLTOOL
762 OBJDUMP
763 FILECMD
764 LN_S
765 NM
766 ac_ct_DUMPBIN
767 DUMPBIN
768 LD
769 FGREP
770 EGREP
771 GREP
772 SED
773 host_os
774 host_vendor
775 host_cpu
776 host
777 build_os
778 build_vendor
779 build_cpu
780 build
781 LIBTOOL
782 am__fastdepCC_FALSE
783 am__fastdepCC_TRUE
784 CCDEPMODE
785 am__nodep
786 AMDEPBACKSLASH
787 AMDEP_FALSE
788 AMDEP_TRUE
789 am__include
790 DEPDIR
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
797 CC
798 AM_BACKSLASH
799 AM_DEFAULT_VERBOSITY
800 AM_DEFAULT_V
801 AM_V
802 CSCOPE
803 ETAGS
804 CTAGS
805 am__untar
806 am__tar
807 AMTAR
808 am__leading_dot
809 SET_MAKE
810 AWK
811 mkdir_p
812 MKDIR_P
813 INSTALL_STRIP_PROGRAM
814 STRIP
815 install_sh
816 MAKEINFO
817 AUTOHEADER
818 AUTOMAKE
819 AUTOCONF
820 ACLOCAL
821 VERSION
822 PACKAGE
823 CYGPATH_W
824 am__isrc
825 INSTALL_DATA
826 INSTALL_SCRIPT
827 INSTALL_PROGRAM
828 target_alias
829 host_alias
830 build_alias
831 LIBS
832 ECHO_T
833 ECHO_N
834 ECHO_C
835 DEFS
836 mandir
837 localedir
838 libdir
839 psdir
840 pdfdir
841 dvidir
842 htmldir
843 infodir
844 docdir
845 oldincludedir
846 includedir
847 runstatedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL
867 am__quote'
868 ac_subst_files=''
869 ac_user_opts='
870 enable_option_checking
871 enable_silent_rules
872 enable_dependency_tracking
873 enable_static
874 enable_shared
875 with_pic
876 enable_fast_install
877 with_aix_soname
878 with_gnu_ld
879 with_sysroot
880 enable_libtool_lock
881 enable_doc
882 enable_coverage
883 enable_benchmark
884 enable_internal_asserts
885 enable_consistency_check
886 enable_introspection
887 enable_vala
888 enable_vala_fatal_warnings
889 '
890 ac_precious_vars='build_alias
891 host_alias
892 target_alias
893 CC
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
898 LT_SYS_LIBRARY_PATH
899 PKG_CONFIG
900 PKG_CONFIG_PATH
901 PKG_CONFIG_LIBDIR
902 GLIB_CFLAGS
903 GLIB_LIBS'
904
905
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 ac_unrecognized_opts=
910 ac_unrecognized_sep=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
927
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 runstatedir='${localstatedir}/run'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
964 fi
965
966 case $ac_option in
967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *=) ac_optarg= ;;
969 *) ac_optarg=yes ;;
970 esac
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: '$ac_useropt'"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: '$ac_useropt'"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1178
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -runstatedir | --runstatedir | --runstatedi | --runstated \
1194 | --runstate | --runstat | --runsta | --runst | --runs \
1195 | --run | --ru | --r)
1196 ac_prev=runstatedir ;;
1197 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1198 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1199 | --run=* | --ru=* | --r=*)
1200 runstatedir=$ac_optarg ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1206 sbindir=$ac_optarg ;;
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1217 sharedstatedir=$ac_optarg ;;
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1222 site=$ac_optarg ;;
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227 srcdir=$ac_optarg ;;
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234 sysconfdir=$ac_optarg ;;
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1237 ac_prev=target_alias ;;
1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239 target_alias=$ac_optarg ;;
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
1246
1247 -with-* | --with-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: '$ac_useropt'"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=\$ac_optarg ;;
1262
1263 -without-* | --without-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: '$ac_useropt'"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) as_fn_error $? "unrecognized option: '$ac_option'
1298 Try '$0 --help' for more information"
1299 ;;
1300
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
1306 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 ;;
1318
1319 esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $? "missing argument to $ac_option"
1325 fi
1326
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1333 fi
1334
1335 # Check all directory arguments for consistency.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir runstatedir
1340 do
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 done
1355
1356 # There might be people who depend on the old broken behavior: '$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370 fi
1371
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375 test "$silent" = yes && exec 6>/dev/null
1376
1377
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1384
1385
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 printf "%s\n" X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\).*/{
1409 s//\1/
1410 q
1411 }
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1416 fi
1417 else
1418 ac_srcdir_defaulted=no
1419 fi
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1423 fi
1424 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 'configure' configures libgee 0.20.8 to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print 'checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for '--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or '..']
1471
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1477
1478 By default, 'make install' will install all the files in
1479 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than '$ac_default_prefix' using '--prefix',
1481 for instance '--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/libgee]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1506 _ACEOF
1507
1508 cat <<\_ACEOF
1509
1510 Program names:
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514
1515 System types:
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522 case $ac_init_help in
1523 short | recursive ) echo "Configuration of libgee 0.20.8:";;
1524 esac
1525 cat <<\_ACEOF
1526
1527 Optional Features:
1528 --disable-option-checking ignore unrecognized --enable/--with options
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-silent-rules less verbose build output (undo: "make V=1")
1532 --disable-silent-rules verbose build output (undo: "make V=0")
1533 --enable-dependency-tracking
1534 do not reject slow dependency extractors
1535 --disable-dependency-tracking
1536 speeds up one-time build
1537 --enable-static[=PKGS] build static libraries [default=no]
1538 --enable-shared[=PKGS] build shared libraries [default=yes]
1539 --enable-fast-install[=PKGS]
1540 optimize for fast installation [default=yes]
1541 --disable-libtool-lock avoid locking (might break parallel builds)
1542 --enable-doc Enable documentation generation
1543 --enable-coverage compile with coverage profiling and debug (gcc only)
1544 --enable-benchmark Enable benchmark
1545 --disable-internal-asserts
1546 Disables the internal asserts)
1547 --enable-consistency-check
1548 Enables (very) expensive consistency checks. It
1549 might affect the asymptotic performance.
1550 --enable-introspection=[no/auto/yes]
1551 Enable introspection for this build
1552 --enable-vala enable checks for vala
1553 --enabla-vala-fatal-warnings
1554 Treat vala warnings as fatal
1555
1556 Optional Packages:
1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1559 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1560 both]
1561 --with-aix-soname=aix|svr4|both
1562 shared library versioning (aka "SONAME") variant to
1563 provide on AIX, [default=aix].
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1566 compiler's sysroot if not specified).
1567
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 LT_SYS_LIBRARY_PATH
1577 User-defined run-time library search path.
1578 PKG_CONFIG path to pkg-config utility
1579 PKG_CONFIG_PATH
1580 directories to add to pkg-config's search path
1581 PKG_CONFIG_LIBDIR
1582 path overriding pkg-config's built-in search path
1583 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1584 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1585
1586 Use these variables to override the choices made by 'configure' or to help
1587 it to find libraries and programs with nonstandard names/locations.
1588
1589 Report bugs to <https://gitlab.gnome.org/GNOME/libgee/issues>.
1590 libgee home page: <https://wiki.gnome.org/Projects/Libgee>.
1591 _ACEOF
1592 ac_status=$?
1593 fi
1594
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 continue
1601 ac_builddir=.
1602
1603 case "$ac_dir" in
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *)
1606 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 esac ;;
1613 esac
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1618
1619 case $srcdir in
1620 .) # We are building in place.
1621 ac_srcdir=.
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
1625 ac_srcdir=$srcdir$ac_dir_suffix;
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1628 *) # Relative name.
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632 esac
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for configure.gnu first; this name is used for a wrapper for
1637 # Metaconfig's "Configure" on case-insensitive file systems.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1644 else
1645 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 fi || ac_status=$?
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1648 done
1649 fi
1650
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1653 cat <<\_ACEOF
1654 libgee configure 0.20.8
1655 generated by GNU Autoconf 2.72
1656
1657 Copyright (C) 2023 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1660 _ACEOF
1661 exit
1662 fi
1663
1664 ## ------------------------ ##
1665 ## Autoconf initialization. ##
1666 ## ------------------------ ##
1667
1668 # ac_fn_c_try_compile LINENO
1669 # --------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext conftest.beam
1675 if { { ac_try="$ac_compile"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 printf "%s\n" "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext
1694 then :
1695 ac_retval=0
1696 else case e in #(
1697 e) printf "%s\n" "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1 ;;
1701 esac
1702 fi
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_compile
1707
1708 # ac_fn_c_try_link LINENO
1709 # -----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_link ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1715 if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 printf "%s\n" "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest$ac_exeext && {
1734 test "$cross_compiling" = yes ||
1735 test -x conftest$ac_exeext
1736 }
1737 then :
1738 ac_retval=0
1739 else case e in #(
1740 e) printf "%s\n" "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1 ;;
1744 esac
1745 fi
1746 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1747 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1748 # interfere with the next link command; also delete a directory that is
1749 # left behind by Apple's compiler. We do this before executing the actions.
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_link
1755
1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists and can be compiled using the include files in
1759 # INCLUDES, setting the cache variable VAR accordingly.
1760 ac_fn_c_check_header_compile ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 printf %s "checking for $2... " >&6; }
1765 if eval test \${$3+y}
1766 then :
1767 printf %s "(cached) " >&6
1768 else case e in #(
1769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 $4
1772 #include <$2>
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"
1775 then :
1776 eval "$3=yes"
1777 else case e in #(
1778 e) eval "$3=no" ;;
1779 esac
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1782 esac
1783 fi
1784 eval ac_res=\$$3
1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 printf "%s\n" "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_header_compile
1790
1791 # ac_fn_c_check_func LINENO FUNC VAR
1792 # ----------------------------------
1793 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1794 ac_fn_c_check_func ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 printf %s "checking for $2... " >&6; }
1799 if eval test \${$3+y}
1800 then :
1801 printf %s "(cached) " >&6
1802 else case e in #(
1803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807 #define $2 innocuous_$2
1808
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (void); below. */
1811
1812 #include <limits.h>
1813 #undef $2
1814
1815 /* Override any GCC internal prototype to avoid an error.
1816 Use char because int might match the return type of a GCC
1817 builtin and then its argument prototype would still apply. */
1818 #ifdef __cplusplus
1819 extern "C"
1820 #endif
1821 char $2 (void);
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined __stub_$2 || defined __stub___$2
1826 choke me
1827 #endif
1828
1829 int
1830 main (void)
1831 {
1832 return $2 ();
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_link "$LINENO"
1838 then :
1839 eval "$3=yes"
1840 else case e in #(
1841 e) eval "$3=no" ;;
1842 esac
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1845 conftest$ac_exeext conftest.$ac_ext ;;
1846 esac
1847 fi
1848 eval ac_res=\$$3
1849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 printf "%s\n" "$ac_res" >&6; }
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1853 } # ac_fn_c_check_func
1854 ac_configure_args_raw=
1855 for ac_arg
1856 do
1857 case $ac_arg in
1858 *\'*)
1859 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1860 esac
1861 as_fn_append ac_configure_args_raw " '$ac_arg'"
1862 done
1863
1864 case $ac_configure_args_raw in
1865 *$as_nl*)
1866 ac_safe_unquote= ;;
1867 *)
1868 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1869 ac_unsafe_a="$ac_unsafe_z#~"
1870 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1871 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1872 esac
1873
1874 cat >config.log <<_ACEOF
1875 This file contains any messages produced by compilers while
1876 running configure, to aid debugging if configure makes a mistake.
1877
1878 It was created by libgee $as_me 0.20.8, which was
1879 generated by GNU Autoconf 2.72. Invocation command line was
1880
1881 $ $0$ac_configure_args_raw
1882
1883 _ACEOF
1884 exec 5>>config.log
1885 {
1886 cat <<_ASUNAME
1887 ## --------- ##
1888 ## Platform. ##
1889 ## --------- ##
1890
1891 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896
1897 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1899
1900 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1901 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1902 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1904 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1905 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1906 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907
1908 _ASUNAME
1909
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913 IFS=$as_save_IFS
1914 case $as_dir in #(((
1915 '') as_dir=./ ;;
1916 */) ;;
1917 *) as_dir=$as_dir/ ;;
1918 esac
1919 printf "%s\n" "PATH: $as_dir"
1920 done
1921 IFS=$as_save_IFS
1922
1923 } >&5
1924
1925 cat >&5 <<_ACEOF
1926
1927
1928 ## ----------- ##
1929 ## Core tests. ##
1930 ## ----------- ##
1931
1932 _ACEOF
1933
1934
1935 # Keep a trace of the command line.
1936 # Strip out --no-create and --no-recursion so they do not pile up.
1937 # Strip out --silent because we don't want to record it for future runs.
1938 # Also quote any args containing shell meta-characters.
1939 # Make two passes to allow for proper duplicate-argument suppression.
1940 ac_configure_args=
1941 ac_configure_args0=
1942 ac_configure_args1=
1943 ac_must_keep_next=false
1944 for ac_pass in 1 2
1945 do
1946 for ac_arg
1947 do
1948 case $ac_arg in
1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951 | -silent | --silent | --silen | --sile | --sil)
1952 continue ;;
1953 *\'*)
1954 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 esac
1956 case $ac_pass in
1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958 2)
1959 as_fn_append ac_configure_args1 " '$ac_arg'"
1960 if test $ac_must_keep_next = true; then
1961 ac_must_keep_next=false # Got value, back to normal.
1962 else
1963 case $ac_arg in
1964 *=* | --config-cache | -C | -disable-* | --disable-* \
1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967 | -with-* | --with-* | -without-* | --without-* | --x)
1968 case "$ac_configure_args0 " in
1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970 esac
1971 ;;
1972 -* ) ac_must_keep_next=true ;;
1973 esac
1974 fi
1975 as_fn_append ac_configure_args " '$ac_arg'"
1976 ;;
1977 esac
1978 done
1979 done
1980 { ac_configure_args0=; unset ac_configure_args0;}
1981 { ac_configure_args1=; unset ac_configure_args1;}
1982
1983 # When interrupted or exit'd, cleanup temporary files, and complete
1984 # config.log. We remove comments because anyway the quotes in there
1985 # would cause problems or look ugly.
1986 # WARNING: Use '\'' to represent an apostrophe within the trap.
1987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988 trap 'exit_status=$?
1989 # Sanitize IFS.
1990 IFS=" "" $as_nl"
1991 # Save into config.log some information that might help in debugging.
1992 {
1993 echo
1994
1995 printf "%s\n" "## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##"
1998 echo
1999 # The following way of writing the cache mishandles newlines in values,
2000 (
2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in #(
2004 *${as_nl}*)
2005 case $ac_var in #(
2006 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008 esac
2009 case $ac_var in #(
2010 _ | IFS | as_nl) ;; #(
2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012 *) { eval $ac_var=; unset $ac_var;} ;;
2013 esac ;;
2014 esac
2015 done
2016 (set) 2>&1 |
2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018 *${as_nl}ac_space=\ *)
2019 sed -n \
2020 "s/'\''/'\''\\\\'\'''\''/g;
2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022 ;; #(
2023 *)
2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025 ;;
2026 esac |
2027 sort
2028 )
2029 echo
2030
2031 printf "%s\n" "## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##"
2034 echo
2035 for ac_var in $ac_subst_vars
2036 do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in
2039 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 esac
2041 printf "%s\n" "$ac_var='\''$ac_val'\''"
2042 done | sort
2043 echo
2044
2045 if test -n "$ac_subst_files"; then
2046 printf "%s\n" "## ------------------- ##
2047 ## File substitutions. ##
2048 ## ------------------- ##"
2049 echo
2050 for ac_var in $ac_subst_files
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 printf "%s\n" "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059 fi
2060
2061 if test -s confdefs.h; then
2062 printf "%s\n" "## ----------- ##
2063 ## confdefs.h. ##
2064 ## ----------- ##"
2065 echo
2066 cat confdefs.h
2067 echo
2068 fi
2069 test "$ac_signal" != 0 &&
2070 printf "%s\n" "$as_me: caught signal $ac_signal"
2071 printf "%s\n" "$as_me: exit $exit_status"
2072 } >&5
2073 rm -f core *.core core.conftest.* &&
2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075 exit $exit_status
2076 ' 0
2077 for ac_signal in 1 2 13 15; do
2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2079 done
2080 ac_signal=0
2081
2082 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2083 rm -f -r conftest* confdefs.h
2084
2085 printf "%s\n" "/* confdefs.h */" > confdefs.h
2086
2087 # Predefined preprocessor variables.
2088
2089 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2090
2091 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2092
2093 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2094
2095 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2096
2097 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2098
2099 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2100
2101
2102 # Let the site file select an alternate cache file if it wants to.
2103 # Prefer an explicitly selected file to automatically selected ones.
2104 if test -n "$CONFIG_SITE"; then
2105 ac_site_files="$CONFIG_SITE"
2106 elif test "x$prefix" != xNONE; then
2107 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2108 else
2109 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2110 fi
2111
2112 for ac_site_file in $ac_site_files
2113 do
2114 case $ac_site_file in #(
2115 */*) :
2116 ;; #(
2117 *) :
2118 ac_site_file=./$ac_site_file ;;
2119 esac
2120 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2122 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2123 sed 's/^/| /' "$ac_site_file" >&5
2124 . "$ac_site_file" \
2125 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2126 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2127 as_fn_error $? "failed to load site script $ac_site_file
2128 See 'config.log' for more details" "$LINENO" 5; }
2129 fi
2130 done
2131
2132 if test -r "$cache_file"; then
2133 # Some versions of bash will fail to source /dev/null (special files
2134 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2135 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2137 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2138 case $cache_file in
2139 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2140 *) . "./$cache_file";;
2141 esac
2142 fi
2143 else
2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2145 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2146 >$cache_file
2147 fi
2148
2149 # Test code for whether the C compiler supports C89 (global declarations)
2150 ac_c_conftest_c89_globals='
2151 /* Does the compiler advertise C89 conformance?
2152 Do not test the value of __STDC__, because some compilers set it to 0
2153 while being otherwise adequately conformant. */
2154 #if !defined __STDC__
2155 # error "Compiler does not advertise C89 conformance"
2156 #endif
2157
2158 #include <stddef.h>
2159 #include <stdarg.h>
2160 struct stat;
2161 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2162 struct buf { int x; };
2163 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2164 static char *e (char **p, int i)
2165 {
2166 return p[i];
2167 }
2168 static char *f (char * (*g) (char **, int), char **p, ...)
2169 {
2170 char *s;
2171 va_list v;
2172 va_start (v,p);
2173 s = g (p, va_arg (v,int));
2174 va_end (v);
2175 return s;
2176 }
2177
2178 /* C89 style stringification. */
2179 #define noexpand_stringify(a) #a
2180 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2181
2182 /* C89 style token pasting. Exercises some of the corner cases that
2183 e.g. old MSVC gets wrong, but not very hard. */
2184 #define noexpand_concat(a,b) a##b
2185 #define expand_concat(a,b) noexpand_concat(a,b)
2186 extern int vA;
2187 extern int vbee;
2188 #define aye A
2189 #define bee B
2190 int *pvA = &expand_concat(v,aye);
2191 int *pvbee = &noexpand_concat(v,bee);
2192
2193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2194 function prototypes and stuff, but not \xHH hex character constants.
2195 These do not provoke an error unfortunately, instead are silently treated
2196 as an "x". The following induces an error, until -std is added to get
2197 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2198 array size at least. It is necessary to write \x00 == 0 to get something
2199 that is true only with -std. */
2200 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2201
2202 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2203 inside strings and character constants. */
2204 #define FOO(x) '\''x'\''
2205 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2206
2207 int test (int i, double x);
2208 struct s1 {int (*f) (int a);};
2209 struct s2 {int (*f) (double a);};
2210 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2211 int, int);'
2212
2213 # Test code for whether the C compiler supports C89 (body of main).
2214 ac_c_conftest_c89_main='
2215 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2216 '
2217
2218 # Test code for whether the C compiler supports C99 (global declarations)
2219 ac_c_conftest_c99_globals='
2220 /* Does the compiler advertise C99 conformance? */
2221 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2222 # error "Compiler does not advertise C99 conformance"
2223 #endif
2224
2225 // See if C++-style comments work.
2226
2227 #include <stdbool.h>
2228 extern int puts (const char *);
2229 extern int printf (const char *, ...);
2230 extern int dprintf (int, const char *, ...);
2231 extern void *malloc (size_t);
2232 extern void free (void *);
2233
2234 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2235 // dprintf is used instead of fprintf to avoid needing to declare
2236 // FILE and stderr.
2237 #define debug(...) dprintf (2, __VA_ARGS__)
2238 #define showlist(...) puts (#__VA_ARGS__)
2239 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2240 static void
2241 test_varargs_macros (void)
2242 {
2243 int x = 1234;
2244 int y = 5678;
2245 debug ("Flag");
2246 debug ("X = %d\n", x);
2247 showlist (The first, second, and third items.);
2248 report (x>y, "x is %d but y is %d", x, y);
2249 }
2250
2251 // Check long long types.
2252 #define BIG64 18446744073709551615ull
2253 #define BIG32 4294967295ul
2254 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2255 #if !BIG_OK
2256 #error "your preprocessor is broken"
2257 #endif
2258 #if BIG_OK
2259 #else
2260 #error "your preprocessor is broken"
2261 #endif
2262 static long long int bignum = -9223372036854775807LL;
2263 static unsigned long long int ubignum = BIG64;
2264
2265 struct incomplete_array
2266 {
2267 int datasize;
2268 double data[];
2269 };
2270
2271 struct named_init {
2272 int number;
2273 const wchar_t *name;
2274 double average;
2275 };
2276
2277 typedef const char *ccp;
2278
2279 static inline int
2280 test_restrict (ccp restrict text)
2281 {
2282 // Iterate through items via the restricted pointer.
2283 // Also check for declarations in for loops.
2284 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2285 continue;
2286 return 0;
2287 }
2288
2289 // Check varargs and va_copy.
2290 static bool
2291 test_varargs (const char *format, ...)
2292 {
2293 va_list args;
2294 va_start (args, format);
2295 va_list args_copy;
2296 va_copy (args_copy, args);
2297
2298 const char *str = "";
2299 int number = 0;
2300 float fnumber = 0;
2301
2302 while (*format)
2303 {
2304 switch (*format++)
2305 {
2306 case '\''s'\'': // string
2307 str = va_arg (args_copy, const char *);
2308 break;
2309 case '\''d'\'': // int
2310 number = va_arg (args_copy, int);
2311 break;
2312 case '\''f'\'': // float
2313 fnumber = va_arg (args_copy, double);
2314 break;
2315 default:
2316 break;
2317 }
2318 }
2319 va_end (args_copy);
2320 va_end (args);
2321
2322 return *str && number && fnumber;
2323 }
2324 '
2325
2326 # Test code for whether the C compiler supports C99 (body of main).
2327 ac_c_conftest_c99_main='
2328 // Check bool.
2329 _Bool success = false;
2330 success |= (argc != 0);
2331
2332 // Check restrict.
2333 if (test_restrict ("String literal") == 0)
2334 success = true;
2335 char *restrict newvar = "Another string";
2336
2337 // Check varargs.
2338 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2339 test_varargs_macros ();
2340
2341 // Check flexible array members.
2342 struct incomplete_array *ia =
2343 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2344 ia->datasize = 10;
2345 for (int i = 0; i < ia->datasize; ++i)
2346 ia->data[i] = i * 1.234;
2347 // Work around memory leak warnings.
2348 free (ia);
2349
2350 // Check named initializers.
2351 struct named_init ni = {
2352 .number = 34,
2353 .name = L"Test wide string",
2354 .average = 543.34343,
2355 };
2356
2357 ni.number = 58;
2358
2359 int dynamic_array[ni.number];
2360 dynamic_array[0] = argv[0][0];
2361 dynamic_array[ni.number - 1] = 543;
2362
2363 // work around unused variable warnings
2364 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2365 || dynamic_array[ni.number - 1] != 543);
2366 '
2367
2368 # Test code for whether the C compiler supports C11 (global declarations)
2369 ac_c_conftest_c11_globals='
2370 /* Does the compiler advertise C11 conformance? */
2371 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2372 # error "Compiler does not advertise C11 conformance"
2373 #endif
2374
2375 // Check _Alignas.
2376 char _Alignas (double) aligned_as_double;
2377 char _Alignas (0) no_special_alignment;
2378 extern char aligned_as_int;
2379 char _Alignas (0) _Alignas (int) aligned_as_int;
2380
2381 // Check _Alignof.
2382 enum
2383 {
2384 int_alignment = _Alignof (int),
2385 int_array_alignment = _Alignof (int[100]),
2386 char_alignment = _Alignof (char)
2387 };
2388 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2389
2390 // Check _Noreturn.
2391 int _Noreturn does_not_return (void) { for (;;) continue; }
2392
2393 // Check _Static_assert.
2394 struct test_static_assert
2395 {
2396 int x;
2397 _Static_assert (sizeof (int) <= sizeof (long int),
2398 "_Static_assert does not work in struct");
2399 long int y;
2400 };
2401
2402 // Check UTF-8 literals.
2403 #define u8 syntax error!
2404 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2405
2406 // Check duplicate typedefs.
2407 typedef long *long_ptr;
2408 typedef long int *long_ptr;
2409 typedef long_ptr long_ptr;
2410
2411 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2412 struct anonymous
2413 {
2414 union {
2415 struct { int i; int j; };
2416 struct { int k; long int l; } w;
2417 };
2418 int m;
2419 } v1;
2420 '
2421
2422 # Test code for whether the C compiler supports C11 (body of main).
2423 ac_c_conftest_c11_main='
2424 _Static_assert ((offsetof (struct anonymous, i)
2425 == offsetof (struct anonymous, w.k)),
2426 "Anonymous union alignment botch");
2427 v1.i = 2;
2428 v1.w.k = 5;
2429 ok |= v1.i != 5;
2430 '
2431
2432 # Test code for whether the C compiler supports C11 (complete).
2433 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2434 ${ac_c_conftest_c99_globals}
2435 ${ac_c_conftest_c11_globals}
2436
2437 int
2438 main (int argc, char **argv)
2439 {
2440 int ok = 0;
2441 ${ac_c_conftest_c89_main}
2442 ${ac_c_conftest_c99_main}
2443 ${ac_c_conftest_c11_main}
2444 return ok;
2445 }
2446 "
2447
2448 # Test code for whether the C compiler supports C99 (complete).
2449 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2450 ${ac_c_conftest_c99_globals}
2451
2452 int
2453 main (int argc, char **argv)
2454 {
2455 int ok = 0;
2456 ${ac_c_conftest_c89_main}
2457 ${ac_c_conftest_c99_main}
2458 return ok;
2459 }
2460 "
2461
2462 # Test code for whether the C compiler supports C89 (complete).
2463 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2464
2465 int
2466 main (int argc, char **argv)
2467 {
2468 int ok = 0;
2469 ${ac_c_conftest_c89_main}
2470 return ok;
2471 }
2472 "
2473
2474 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2475 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2476 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2477 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2478 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2479 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2480 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2481 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2482 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2483
2484 # Auxiliary files required by this configure script.
2485 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2486
2487 # Locations in which to look for auxiliary files.
2488 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2489
2490 # Search for a directory containing all of the required auxiliary files,
2491 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2492 # If we don't find one directory that contains all the files we need,
2493 # we report the set of missing files from the *first* directory in
2494 # $ac_aux_dir_candidates and give up.
2495 ac_missing_aux_files=""
2496 ac_first_candidate=:
2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 as_found=false
2500 for as_dir in $ac_aux_dir_candidates
2501 do
2502 IFS=$as_save_IFS
2503 case $as_dir in #(((
2504 '') as_dir=./ ;;
2505 */) ;;
2506 *) as_dir=$as_dir/ ;;
2507 esac
2508 as_found=:
2509
2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2511 ac_aux_dir_found=yes
2512 ac_install_sh=
2513 for ac_aux in $ac_aux_files
2514 do
2515 # As a special case, if "install-sh" is required, that requirement
2516 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2517 # and $ac_install_sh is set appropriately for whichever one is found.
2518 if test x"$ac_aux" = x"install-sh"
2519 then
2520 if test -f "${as_dir}install-sh"; then
2521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2522 ac_install_sh="${as_dir}install-sh -c"
2523 elif test -f "${as_dir}install.sh"; then
2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2525 ac_install_sh="${as_dir}install.sh -c"
2526 elif test -f "${as_dir}shtool"; then
2527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2528 ac_install_sh="${as_dir}shtool install -c"
2529 else
2530 ac_aux_dir_found=no
2531 if $ac_first_candidate; then
2532 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2533 else
2534 break
2535 fi
2536 fi
2537 else
2538 if test -f "${as_dir}${ac_aux}"; then
2539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2540 else
2541 ac_aux_dir_found=no
2542 if $ac_first_candidate; then
2543 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2544 else
2545 break
2546 fi
2547 fi
2548 fi
2549 done
2550 if test "$ac_aux_dir_found" = yes; then
2551 ac_aux_dir="$as_dir"
2552 break
2553 fi
2554 ac_first_candidate=false
2555
2556 as_found=false
2557 done
2558 IFS=$as_save_IFS
2559 if $as_found
2560 then :
2561
2562 else case e in #(
2563 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2564 esac
2565 fi
2566
2567
2568 # These three variables are undocumented and unsupported,
2569 # and are intended to be withdrawn in a future Autoconf release.
2570 # They can cause serious problems if a builder's source tree is in a directory
2571 # whose full name contains unusual characters.
2572 if test -f "${ac_aux_dir}config.guess"; then
2573 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2574 fi
2575 if test -f "${ac_aux_dir}config.sub"; then
2576 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2577 fi
2578 if test -f "$ac_aux_dir/configure"; then
2579 ac_configure="$SHELL ${ac_aux_dir}configure"
2580 fi
2581
2582 # Check that the precious variables saved in the cache have kept the same
2583 # value.
2584 ac_cache_corrupted=false
2585 for ac_var in $ac_precious_vars; do
2586 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2587 eval ac_new_set=\$ac_env_${ac_var}_set
2588 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2589 eval ac_new_val=\$ac_env_${ac_var}_value
2590 case $ac_old_set,$ac_new_set in
2591 set,)
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2593 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2594 ac_cache_corrupted=: ;;
2595 ,set)
2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2597 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2598 ac_cache_corrupted=: ;;
2599 ,);;
2600 *)
2601 if test "x$ac_old_val" != "x$ac_new_val"; then
2602 # differences in whitespace do not lead to failure.
2603 ac_old_val_w=`echo x $ac_old_val`
2604 ac_new_val_w=`echo x $ac_new_val`
2605 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2607 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2608 ac_cache_corrupted=:
2609 else
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2611 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2612 eval $ac_var=\$ac_old_val
2613 fi
2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2615 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2617 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2618 fi;;
2619 esac
2620 # Pass precious variables to config.status.
2621 if test "$ac_new_set" = set; then
2622 case $ac_new_val in
2623 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2624 *) ac_arg=$ac_var=$ac_new_val ;;
2625 esac
2626 case " $ac_configure_args " in
2627 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2628 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2629 esac
2630 fi
2631 done
2632 if $ac_cache_corrupted; then
2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2634 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2636 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2637 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2638 and start over" "$LINENO" 5
2639 fi
2640 ## -------------------- ##
2641 ## Main body of script. ##
2642 ## -------------------- ##
2643
2644 ac_ext=c
2645 ac_cpp='$CPP $CPPFLAGS'
2646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649
2650
2651
2652 ac_config_headers="$ac_config_headers config.h"
2653
2654
2655 am__api_version='1.16'
2656
2657
2658
2659 # Find a good install program. We prefer a C program (faster),
2660 # so one script is as good as another. But avoid the broken or
2661 # incompatible versions:
2662 # SysV /etc/install, /usr/sbin/install
2663 # SunOS /usr/etc/install
2664 # IRIX /sbin/install
2665 # AIX /bin/install
2666 # AmigaOS /C/install, which installs bootblocks on floppy discs
2667 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2668 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2669 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2670 # OS/2's system install, which has a completely different semantic
2671 # ./install, which can be erroneously created by make from ./install.sh.
2672 # Reject install programs that cannot install multiple files.
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2674 printf %s "checking for a BSD-compatible install... " >&6; }
2675 if test -z "$INSTALL"; then
2676 if test ${ac_cv_path_install+y}
2677 then :
2678 printf %s "(cached) " >&6
2679 else case e in #(
2680 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683 IFS=$as_save_IFS
2684 case $as_dir in #(((
2685 '') as_dir=./ ;;
2686 */) ;;
2687 *) as_dir=$as_dir/ ;;
2688 esac
2689 # Account for fact that we put trailing slashes in our PATH walk.
2690 case $as_dir in #((
2691 ./ | /[cC]/* | \
2692 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2693 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2694 /usr/ucb/* ) ;;
2695 *)
2696 # OSF1 and SCO ODT 3.0 have their own names for install.
2697 # Don't use installbsd from OSF since it installs stuff as root
2698 # by default.
2699 for ac_prog in ginstall scoinst install; do
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2702 if test $ac_prog = install &&
2703 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2704 # AIX install. It has an incompatible calling convention.
2705 :
2706 elif test $ac_prog = install &&
2707 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708 # program-specific install script used by HP pwplus--don't use.
2709 :
2710 else
2711 rm -rf conftest.one conftest.two conftest.dir
2712 echo one > conftest.one
2713 echo two > conftest.two
2714 mkdir conftest.dir
2715 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2716 test -s conftest.one && test -s conftest.two &&
2717 test -s conftest.dir/conftest.one &&
2718 test -s conftest.dir/conftest.two
2719 then
2720 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2721 break 3
2722 fi
2723 fi
2724 fi
2725 done
2726 done
2727 ;;
2728 esac
2729
2730 done
2731 IFS=$as_save_IFS
2732
2733 rm -rf conftest.one conftest.two conftest.dir
2734 ;;
2735 esac
2736 fi
2737 if test ${ac_cv_path_install+y}; then
2738 INSTALL=$ac_cv_path_install
2739 else
2740 # As a last resort, use the slow shell script. Don't cache a
2741 # value for INSTALL within a source directory, because that will
2742 # break other packages using the cache if that directory is
2743 # removed, or if the value is a relative name.
2744 INSTALL=$ac_install_sh
2745 fi
2746 fi
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2748 printf "%s\n" "$INSTALL" >&6; }
2749
2750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2751 # It thinks the first close brace ends the variable substitution.
2752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2753
2754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2755
2756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2757
2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2759 printf %s "checking whether build environment is sane... " >&6; }
2760 # Reject unsafe characters in $srcdir or the absolute working directory
2761 # name. Accept space and tab only in the latter.
2762 am_lf='
2763 '
2764 case `pwd` in
2765 *[\\\"\#\$\&\'\`$am_lf]*)
2766 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2767 esac
2768 case $srcdir in
2769 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2770 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2771 esac
2772
2773 # Do 'set' in a subshell so we don't clobber the current shell's
2774 # arguments. Must try -L first in case configure is actually a
2775 # symlink; some systems play weird games with the mod time of symlinks
2776 # (eg FreeBSD returns the mod time of the symlink's containing
2777 # directory).
2778 if (
2779 am_has_slept=no
2780 for am_try in 1 2; do
2781 echo "timestamp, slept: $am_has_slept" > conftest.file
2782 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2783 if test "$*" = "X"; then
2784 # -L didn't work.
2785 set X `ls -t "$srcdir/configure" conftest.file`
2786 fi
2787 if test "$*" != "X $srcdir/configure conftest.file" \
2788 && test "$*" != "X conftest.file $srcdir/configure"; then
2789
2790 # If neither matched, then we have a broken ls. This can happen
2791 # if, for instance, CONFIG_SHELL is bash and it inherits a
2792 # broken ls alias from the environment. This has actually
2793 # happened. Such a system could not be considered "sane".
2794 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2795 alias in your environment" "$LINENO" 5
2796 fi
2797 if test "$2" = conftest.file || test $am_try -eq 2; then
2798 break
2799 fi
2800 # Just in case.
2801 sleep 1
2802 am_has_slept=yes
2803 done
2804 test "$2" = conftest.file
2805 )
2806 then
2807 # Ok.
2808 :
2809 else
2810 as_fn_error $? "newly created file is older than distributed files!
2811 Check your system clock" "$LINENO" 5
2812 fi
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814 printf "%s\n" "yes" >&6; }
2815 # If we didn't sleep, we still need to ensure time stamps of config.status and
2816 # generated files are strictly newer.
2817 am_sleep_pid=
2818 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2819 ( sleep 1 ) &
2820 am_sleep_pid=$!
2821 fi
2822
2823 rm -f conftest.file
2824
2825 test "$program_prefix" != NONE &&
2826 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2827 # Use a double $ so make ignores it.
2828 test "$program_suffix" != NONE &&
2829 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2830 # Double any \ or $.
2831 # By default was 's,x,x', remove it if useless.
2832 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2833 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2834
2835
2836 # Expand $ac_aux_dir to an absolute path.
2837 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2838
2839
2840 if test x"${MISSING+set}" != xset; then
2841 MISSING="\${SHELL} '$am_aux_dir/missing'"
2842 fi
2843 # Use eval to expand $SHELL
2844 if eval "$MISSING --is-lightweight"; then
2845 am_missing_run="$MISSING "
2846 else
2847 am_missing_run=
2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2849 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2850 fi
2851
2852 if test x"${install_sh+set}" != xset; then
2853 case $am_aux_dir in
2854 *\ * | *\ *)
2855 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2856 *)
2857 install_sh="\${SHELL} $am_aux_dir/install-sh"
2858 esac
2859 fi
2860
2861 # Installed binaries are usually stripped using 'strip' when the user
2862 # run "make install-strip". However 'strip' might not be the right
2863 # tool to use in cross-compilation environments, therefore Automake
2864 # will honor the 'STRIP' environment variable to overrule this program.
2865 if test "$cross_compiling" != no; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}strip; ac_word=$2
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 printf %s "checking for $ac_word... " >&6; }
2871 if test ${ac_cv_prog_STRIP+y}
2872 then :
2873 printf %s "(cached) " >&6
2874 else case e in #(
2875 e) if test -n "$STRIP"; then
2876 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881 IFS=$as_save_IFS
2882 case $as_dir in #(((
2883 '') as_dir=./ ;;
2884 */) ;;
2885 *) as_dir=$as_dir/ ;;
2886 esac
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi ;;
2898 esac
2899 fi
2900 STRIP=$ac_cv_prog_STRIP
2901 if test -n "$STRIP"; then
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2903 printf "%s\n" "$STRIP" >&6; }
2904 else
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 printf "%s\n" "no" >&6; }
2907 fi
2908
2909
2910 fi
2911 if test -z "$ac_cv_prog_STRIP"; then
2912 ac_ct_STRIP=$STRIP
2913 # Extract the first word of "strip", so it can be a program name with args.
2914 set dummy strip; ac_word=$2
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 printf %s "checking for $ac_word... " >&6; }
2917 if test ${ac_cv_prog_ac_ct_STRIP+y}
2918 then :
2919 printf %s "(cached) " >&6
2920 else case e in #(
2921 e) if test -n "$ac_ct_STRIP"; then
2922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 case $as_dir in #(((
2929 '') as_dir=./ ;;
2930 */) ;;
2931 *) as_dir=$as_dir/ ;;
2932 esac
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2935 ac_cv_prog_ac_ct_STRIP="strip"
2936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi ;;
2944 esac
2945 fi
2946 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2947 if test -n "$ac_ct_STRIP"; then
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2949 printf "%s\n" "$ac_ct_STRIP" >&6; }
2950 else
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 printf "%s\n" "no" >&6; }
2953 fi
2954
2955 if test "x$ac_ct_STRIP" = x; then
2956 STRIP=":"
2957 else
2958 case $cross_compiling:$ac_tool_warned in
2959 yes:)
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962 ac_tool_warned=yes ;;
2963 esac
2964 STRIP=$ac_ct_STRIP
2965 fi
2966 else
2967 STRIP="$ac_cv_prog_STRIP"
2968 fi
2969
2970 fi
2971 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2972
2973
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2975 printf %s "checking for a race-free mkdir -p... " >&6; }
2976 if test -z "$MKDIR_P"; then
2977 if test ${ac_cv_path_mkdir+y}
2978 then :
2979 printf %s "(cached) " >&6
2980 else case e in #(
2981 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2983 do
2984 IFS=$as_save_IFS
2985 case $as_dir in #(((
2986 '') as_dir=./ ;;
2987 */) ;;
2988 *) as_dir=$as_dir/ ;;
2989 esac
2990 for ac_prog in mkdir gmkdir; do
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2993 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2994 'mkdir ('*'coreutils) '* | \
2995 *'BusyBox '* | \
2996 'mkdir (fileutils) '4.1*)
2997 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2998 break 3;;
2999 esac
3000 done
3001 done
3002 done
3003 IFS=$as_save_IFS
3004 ;;
3005 esac
3006 fi
3007
3008 test -d ./--version && rmdir ./--version
3009 if test ${ac_cv_path_mkdir+y}; then
3010 MKDIR_P="$ac_cv_path_mkdir -p"
3011 else
3012 # As a last resort, use plain mkdir -p,
3013 # in the hope it doesn't have the bugs of ancient mkdir.
3014 MKDIR_P='mkdir -p'
3015 fi
3016 fi
3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3018 printf "%s\n" "$MKDIR_P" >&6; }
3019
3020 for ac_prog in gawk mawk nawk awk
3021 do
3022 # Extract the first word of "$ac_prog", so it can be a program name with args.
3023 set dummy $ac_prog; ac_word=$2
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 printf %s "checking for $ac_word... " >&6; }
3026 if test ${ac_cv_prog_AWK+y}
3027 then :
3028 printf %s "(cached) " >&6
3029 else case e in #(
3030 e) if test -n "$AWK"; then
3031 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036 IFS=$as_save_IFS
3037 case $as_dir in #(((
3038 '') as_dir=./ ;;
3039 */) ;;
3040 *) as_dir=$as_dir/ ;;
3041 esac
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_AWK="$ac_prog"
3045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 fi ;;
3053 esac
3054 fi
3055 AWK=$ac_cv_prog_AWK
3056 if test -n "$AWK"; then
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3058 printf "%s\n" "$AWK" >&6; }
3059 else
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 printf "%s\n" "no" >&6; }
3062 fi
3063
3064
3065 test -n "$AWK" && break
3066 done
3067
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3069 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3070 set x ${MAKE-make}
3071 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3072 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3073 then :
3074 printf %s "(cached) " >&6
3075 else case e in #(
3076 e) cat >conftest.make <<\_ACEOF
3077 SHELL = /bin/sh
3078 all:
3079 @echo '@@@%%%=$(MAKE)=@@@%%%'
3080 _ACEOF
3081 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3082 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3083 *@@@%%%=?*=@@@%%%*)
3084 eval ac_cv_prog_make_${ac_make}_set=yes;;
3085 *)
3086 eval ac_cv_prog_make_${ac_make}_set=no;;
3087 esac
3088 rm -f conftest.make ;;
3089 esac
3090 fi
3091 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093 printf "%s\n" "yes" >&6; }
3094 SET_MAKE=
3095 else
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 printf "%s\n" "no" >&6; }
3098 SET_MAKE="MAKE=${MAKE-make}"
3099 fi
3100
3101 rm -rf .tst 2>/dev/null
3102 mkdir .tst 2>/dev/null
3103 if test -d .tst; then
3104 am__leading_dot=.
3105 else
3106 am__leading_dot=_
3107 fi
3108 rmdir .tst 2>/dev/null
3109
3110 # Check whether --enable-silent-rules was given.
3111 if test ${enable_silent_rules+y}
3112 then :
3113 enableval=$enable_silent_rules;
3114 fi
3115
3116 case $enable_silent_rules in # (((
3117 yes) AM_DEFAULT_VERBOSITY=0;;
3118 no) AM_DEFAULT_VERBOSITY=1;;
3119 *) AM_DEFAULT_VERBOSITY=1;;
3120 esac
3121 am_make=${MAKE-make}
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3123 printf %s "checking whether $am_make supports nested variables... " >&6; }
3124 if test ${am_cv_make_support_nested_variables+y}
3125 then :
3126 printf %s "(cached) " >&6
3127 else case e in #(
3128 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3129 BAR0=false
3130 BAR1=true
3131 V=1
3132 am__doit:
3133 @$(TRUE)
3134 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3135 am_cv_make_support_nested_variables=yes
3136 else
3137 am_cv_make_support_nested_variables=no
3138 fi ;;
3139 esac
3140 fi
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3142 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3143 if test $am_cv_make_support_nested_variables = yes; then
3144 AM_V='$(V)'
3145 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3146 else
3147 AM_V=$AM_DEFAULT_VERBOSITY
3148 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3149 fi
3150 AM_BACKSLASH='\'
3151
3152 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3153 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3154 # is not polluted with repeated "-I."
3155 am__isrc=' -I$(srcdir)'
3156 # test to see if srcdir already configured
3157 if test -f $srcdir/config.status; then
3158 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3159 fi
3160 fi
3161
3162 # test whether we have cygpath
3163 if test -z "$CYGPATH_W"; then
3164 if (cygpath --version) >/dev/null 2>/dev/null; then
3165 CYGPATH_W='cygpath -w'
3166 else
3167 CYGPATH_W=echo
3168 fi
3169 fi
3170
3171
3172 # Define the identity of the package.
3173 PACKAGE='libgee'
3174 VERSION='0.20.8'
3175
3176
3177 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3178
3179
3180 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3181
3182 # Some tools Automake needs.
3183
3184 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3185
3186
3187 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3188
3189
3190 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3191
3192
3193 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3194
3195
3196 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3197
3198 # For better backward compatibility. To be removed once Automake 1.9.x
3199 # dies out for good. For more background, see:
3200 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3201 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3202 mkdir_p='$(MKDIR_P)'
3203
3204 # We need awk for the "check" target (and possibly the TAP driver). The
3205 # system "awk" is bad on some platforms.
3206 # Always define AMTAR for backward compatibility. Yes, it's still used
3207 # in the wild :-( We should find a proper way to deprecate it ...
3208 AMTAR='$${TAR-tar}'
3209
3210
3211 # We'll loop over all known methods to create a tar archive until one works.
3212 _am_tools='gnutar plaintar pax cpio none'
3213
3214 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3215 # There is notably a 21 bits limit for the UID and the GID. In fact,
3216 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3217 # and bug#13588).
3218 am_max_uid=2097151 # 2^21 - 1
3219 am_max_gid=$am_max_uid
3220 # The $UID and $GID variables are not portable, so we need to resort
3221 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3222 # below are definitely unexpected, so allow the users to see them
3223 # (that is, avoid stderr redirection).
3224 am_uid=`id -u || echo unknown`
3225 am_gid=`id -g || echo unknown`
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3227 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3228 if test $am_uid -le $am_max_uid; then
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230 printf "%s\n" "yes" >&6; }
3231 else
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 printf "%s\n" "no" >&6; }
3234 _am_tools=none
3235 fi
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3237 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3238 if test $am_gid -le $am_max_gid; then
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 printf "%s\n" "yes" >&6; }
3241 else
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 printf "%s\n" "no" >&6; }
3244 _am_tools=none
3245 fi
3246
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3248 printf %s "checking how to create a ustar tar archive... " >&6; }
3249
3250 # Go ahead even if we have the value already cached. We do so because we
3251 # need to set the values for the 'am__tar' and 'am__untar' variables.
3252 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3253
3254 for _am_tool in $_am_tools; do
3255 case $_am_tool in
3256 gnutar)
3257 for _am_tar in tar gnutar gtar; do
3258 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3259 ($_am_tar --version) >&5 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } && break
3263 done
3264 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3265 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3266 am__untar="$_am_tar -xf -"
3267 ;;
3268 plaintar)
3269 # Must skip GNU tar: if it does not support --format= it doesn't create
3270 # ustar tarball either.
3271 (tar --version) >/dev/null 2>&1 && continue
3272 am__tar='tar chf - "$$tardir"'
3273 am__tar_='tar chf - "$tardir"'
3274 am__untar='tar xf -'
3275 ;;
3276 pax)
3277 am__tar='pax -L -x ustar -w "$$tardir"'
3278 am__tar_='pax -L -x ustar -w "$tardir"'
3279 am__untar='pax -r'
3280 ;;
3281 cpio)
3282 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3283 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3284 am__untar='cpio -i -H ustar -d'
3285 ;;
3286 none)
3287 am__tar=false
3288 am__tar_=false
3289 am__untar=false
3290 ;;
3291 esac
3292
3293 # If the value was cached, stop now. We just wanted to have am__tar
3294 # and am__untar set.
3295 test -n "${am_cv_prog_tar_ustar}" && break
3296
3297 # tar/untar a dummy directory, and stop if the command works.
3298 rm -rf conftest.dir
3299 mkdir conftest.dir
3300 echo GrepMe > conftest.dir/file
3301 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3302 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }
3306 rm -rf conftest.dir
3307 if test -s conftest.tar; then
3308 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3309 ($am__untar <conftest.tar) >&5 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }
3313 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3314 (cat conftest.dir/file) >&5 2>&5
3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }
3318 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3319 fi
3320 done
3321 rm -rf conftest.dir
3322
3323 if test ${am_cv_prog_tar_ustar+y}
3324 then :
3325 printf %s "(cached) " >&6
3326 else case e in #(
3327 e) am_cv_prog_tar_ustar=$_am_tool ;;
3328 esac
3329 fi
3330
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3332 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3333
3334
3335
3336
3337
3338 # Variables for tags utilities; see am/tags.am
3339 if test -z "$CTAGS"; then
3340 CTAGS=ctags
3341 fi
3342
3343 if test -z "$ETAGS"; then
3344 ETAGS=etags
3345 fi
3346
3347 if test -z "$CSCOPE"; then
3348 CSCOPE=cscope
3349 fi
3350
3351
3352
3353 # POSIX will say in a future version that running "rm -f" with no argument
3354 # is OK; and we want to be able to make that assumption in our Makefile
3355 # recipes. So use an aggressive probe to check that the usage we want is
3356 # actually supported "in the wild" to an acceptable degree.
3357 # See automake bug#10828.
3358 # To make any issue more visible, cause the running configure to be aborted
3359 # by default if the 'rm' program in use doesn't match our expectations; the
3360 # user can still override this though.
3361 if rm -f && rm -fr && rm -rf; then : OK; else
3362 cat >&2 <<'END'
3363 Oops!
3364
3365 Your 'rm' program seems unable to run without file operands specified
3366 on the command line, even when the '-f' option is present. This is contrary
3367 to the behaviour of most rm programs out there, and not conforming with
3368 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3369
3370 Please tell [email protected] about your system, including the value
3371 of your $PATH and any error possibly output before this message. This
3372 can help us improve future automake versions.
3373
3374 END
3375 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3376 echo 'Configuration will proceed anyway, since you have set the' >&2
3377 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3378 echo >&2
3379 else
3380 cat >&2 <<'END'
3381 Aborting the configuration process, to ensure you take notice of the issue.
3382
3383 You can download and install GNU coreutils to get an 'rm' implementation
3384 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3385
3386 If you want to complete the configuration process using your problematic
3387 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3388 to "yes", and re-run configure.
3389
3390 END
3391 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3392 fi
3393 fi
3394
3395 # Check whether --enable-silent-rules was given.
3396 if test ${enable_silent_rules+y}
3397 then :
3398 enableval=$enable_silent_rules;
3399 fi
3400
3401 case $enable_silent_rules in # (((
3402 yes) AM_DEFAULT_VERBOSITY=0;;
3403 no) AM_DEFAULT_VERBOSITY=1;;
3404 *) AM_DEFAULT_VERBOSITY=0;;
3405 esac
3406 am_make=${MAKE-make}
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3408 printf %s "checking whether $am_make supports nested variables... " >&6; }
3409 if test ${am_cv_make_support_nested_variables+y}
3410 then :
3411 printf %s "(cached) " >&6
3412 else case e in #(
3413 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3414 BAR0=false
3415 BAR1=true
3416 V=1
3417 am__doit:
3418 @$(TRUE)
3419 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3420 am_cv_make_support_nested_variables=yes
3421 else
3422 am_cv_make_support_nested_variables=no
3423 fi ;;
3424 esac
3425 fi
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3427 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3428 if test $am_cv_make_support_nested_variables = yes; then
3429 AM_V='$(V)'
3430 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3431 else
3432 AM_V=$AM_DEFAULT_VERBOSITY
3433 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3434 fi
3435 AM_BACKSLASH='\'
3436
3437
3438 # Checks for programs.
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 if test -n "$ac_tool_prefix"; then
3454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3455 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 printf %s "checking for $ac_word... " >&6; }
3458 if test ${ac_cv_prog_CC+y}
3459 then :
3460 printf %s "(cached) " >&6
3461 else case e in #(
3462 e) if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468 IFS=$as_save_IFS
3469 case $as_dir in #(((
3470 '') as_dir=./ ;;
3471 */) ;;
3472 *) as_dir=$as_dir/ ;;
3473 esac
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480 done
3481 done
3482 IFS=$as_save_IFS
3483
3484 fi ;;
3485 esac
3486 fi
3487 CC=$ac_cv_prog_CC
3488 if test -n "$CC"; then
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3490 printf "%s\n" "$CC" >&6; }
3491 else
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 printf "%s\n" "no" >&6; }
3494 fi
3495
3496
3497 fi
3498 if test -z "$ac_cv_prog_CC"; then
3499 ac_ct_CC=$CC
3500 # Extract the first word of "gcc", so it can be a program name with args.
3501 set dummy gcc; ac_word=$2
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 printf %s "checking for $ac_word... " >&6; }
3504 if test ${ac_cv_prog_ac_ct_CC+y}
3505 then :
3506 printf %s "(cached) " >&6
3507 else case e in #(
3508 e) if test -n "$ac_ct_CC"; then
3509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514 IFS=$as_save_IFS
3515 case $as_dir in #(((
3516 '') as_dir=./ ;;
3517 */) ;;
3518 *) as_dir=$as_dir/ ;;
3519 esac
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_ac_ct_CC="gcc"
3523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526 done
3527 done
3528 IFS=$as_save_IFS
3529
3530 fi ;;
3531 esac
3532 fi
3533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3534 if test -n "$ac_ct_CC"; then
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3536 printf "%s\n" "$ac_ct_CC" >&6; }
3537 else
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 printf "%s\n" "no" >&6; }
3540 fi
3541
3542 if test "x$ac_ct_CC" = x; then
3543 CC=""
3544 else
3545 case $cross_compiling:$ac_tool_warned in
3546 yes:)
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3548 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3549 ac_tool_warned=yes ;;
3550 esac
3551 CC=$ac_ct_CC
3552 fi
3553 else
3554 CC="$ac_cv_prog_CC"
3555 fi
3556
3557 if test -z "$CC"; then
3558 if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}cc; ac_word=$2
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 printf %s "checking for $ac_word... " >&6; }
3563 if test ${ac_cv_prog_CC+y}
3564 then :
3565 printf %s "(cached) " >&6
3566 else case e in #(
3567 e) if test -n "$CC"; then
3568 ac_cv_prog_CC="$CC" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3572 do
3573 IFS=$as_save_IFS
3574 case $as_dir in #(((
3575 '') as_dir=./ ;;
3576 */) ;;
3577 *) as_dir=$as_dir/ ;;
3578 esac
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3581 ac_cv_prog_CC="${ac_tool_prefix}cc"
3582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3583 break 2
3584 fi
3585 done
3586 done
3587 IFS=$as_save_IFS
3588
3589 fi ;;
3590 esac
3591 fi
3592 CC=$ac_cv_prog_CC
3593 if test -n "$CC"; then
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3595 printf "%s\n" "$CC" >&6; }
3596 else
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 printf "%s\n" "no" >&6; }
3599 fi
3600
3601
3602 fi
3603 fi
3604 if test -z "$CC"; then
3605 # Extract the first word of "cc", so it can be a program name with args.
3606 set dummy cc; ac_word=$2
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 printf %s "checking for $ac_word... " >&6; }
3609 if test ${ac_cv_prog_CC+y}
3610 then :
3611 printf %s "(cached) " >&6
3612 else case e in #(
3613 e) if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 ac_prog_rejected=no
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620 IFS=$as_save_IFS
3621 case $as_dir in #(((
3622 '') as_dir=./ ;;
3623 */) ;;
3624 *) as_dir=$as_dir/ ;;
3625 esac
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3628 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3629 ac_prog_rejected=yes
3630 continue
3631 fi
3632 ac_cv_prog_CC="cc"
3633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3634 break 2
3635 fi
3636 done
3637 done
3638 IFS=$as_save_IFS
3639
3640 if test $ac_prog_rejected = yes; then
3641 # We found a bogon in the path, so make sure we never use it.
3642 set dummy $ac_cv_prog_CC
3643 shift
3644 if test $# != 0; then
3645 # We chose a different compiler from the bogus one.
3646 # However, it has the same basename, so the bogon will be chosen
3647 # first if we set CC to just the basename; use the full file name.
3648 shift
3649 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3650 fi
3651 fi
3652 fi ;;
3653 esac
3654 fi
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 printf "%s\n" "$CC" >&6; }
3659 else
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 printf "%s\n" "no" >&6; }
3662 fi
3663
3664
3665 fi
3666 if test -z "$CC"; then
3667 if test -n "$ac_tool_prefix"; then
3668 for ac_prog in cl.exe
3669 do
3670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 printf %s "checking for $ac_word... " >&6; }
3674 if test ${ac_cv_prog_CC+y}
3675 then :
3676 printf %s "(cached) " >&6
3677 else case e in #(
3678 e) if test -n "$CC"; then
3679 ac_cv_prog_CC="$CC" # Let the user override the test.
3680 else
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684 IFS=$as_save_IFS
3685 case $as_dir in #(((
3686 '') as_dir=./ ;;
3687 */) ;;
3688 *) as_dir=$as_dir/ ;;
3689 esac
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3694 break 2
3695 fi
3696 done
3697 done
3698 IFS=$as_save_IFS
3699
3700 fi ;;
3701 esac
3702 fi
3703 CC=$ac_cv_prog_CC
3704 if test -n "$CC"; then
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3706 printf "%s\n" "$CC" >&6; }
3707 else
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 printf "%s\n" "no" >&6; }
3710 fi
3711
3712
3713 test -n "$CC" && break
3714 done
3715 fi
3716 if test -z "$CC"; then
3717 ac_ct_CC=$CC
3718 for ac_prog in cl.exe
3719 do
3720 # Extract the first word of "$ac_prog", so it can be a program name with args.
3721 set dummy $ac_prog; ac_word=$2
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 printf %s "checking for $ac_word... " >&6; }
3724 if test ${ac_cv_prog_ac_ct_CC+y}
3725 then :
3726 printf %s "(cached) " >&6
3727 else case e in #(
3728 e) if test -n "$ac_ct_CC"; then
3729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734 IFS=$as_save_IFS
3735 case $as_dir in #(((
3736 '') as_dir=./ ;;
3737 */) ;;
3738 *) as_dir=$as_dir/ ;;
3739 esac
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3742 ac_cv_prog_ac_ct_CC="$ac_prog"
3743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746 done
3747 done
3748 IFS=$as_save_IFS
3749
3750 fi ;;
3751 esac
3752 fi
3753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3754 if test -n "$ac_ct_CC"; then
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3756 printf "%s\n" "$ac_ct_CC" >&6; }
3757 else
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759 printf "%s\n" "no" >&6; }
3760 fi
3761
3762
3763 test -n "$ac_ct_CC" && break
3764 done
3765
3766 if test "x$ac_ct_CC" = x; then
3767 CC=""
3768 else
3769 case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775 CC=$ac_ct_CC
3776 fi
3777 fi
3778
3779 fi
3780 if test -z "$CC"; then
3781 if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}clang; ac_word=$2
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 printf %s "checking for $ac_word... " >&6; }
3786 if test ${ac_cv_prog_CC+y}
3787 then :
3788 printf %s "(cached) " >&6
3789 else case e in #(
3790 e) if test -n "$CC"; then
3791 ac_cv_prog_CC="$CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 case $as_dir in #(((
3798 '') as_dir=./ ;;
3799 */) ;;
3800 *) as_dir=$as_dir/ ;;
3801 esac
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_CC="${ac_tool_prefix}clang"
3805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi ;;
3813 esac
3814 fi
3815 CC=$ac_cv_prog_CC
3816 if test -n "$CC"; then
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818 printf "%s\n" "$CC" >&6; }
3819 else
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 printf "%s\n" "no" >&6; }
3822 fi
3823
3824
3825 fi
3826 if test -z "$ac_cv_prog_CC"; then
3827 ac_ct_CC=$CC
3828 # Extract the first word of "clang", so it can be a program name with args.
3829 set dummy clang; ac_word=$2
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 printf %s "checking for $ac_word... " >&6; }
3832 if test ${ac_cv_prog_ac_ct_CC+y}
3833 then :
3834 printf %s "(cached) " >&6
3835 else case e in #(
3836 e) if test -n "$ac_ct_CC"; then
3837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842 IFS=$as_save_IFS
3843 case $as_dir in #(((
3844 '') as_dir=./ ;;
3845 */) ;;
3846 *) as_dir=$as_dir/ ;;
3847 esac
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_ac_ct_CC="clang"
3851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 fi ;;
3859 esac
3860 fi
3861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3862 if test -n "$ac_ct_CC"; then
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3864 printf "%s\n" "$ac_ct_CC" >&6; }
3865 else
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 printf "%s\n" "no" >&6; }
3868 fi
3869
3870 if test "x$ac_ct_CC" = x; then
3871 CC=""
3872 else
3873 case $cross_compiling:$ac_tool_warned in
3874 yes:)
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3877 ac_tool_warned=yes ;;
3878 esac
3879 CC=$ac_ct_CC
3880 fi
3881 else
3882 CC="$ac_cv_prog_CC"
3883 fi
3884
3885 fi
3886
3887
3888 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3889 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3890 as_fn_error $? "no acceptable C compiler found in \$PATH
3891 See 'config.log' for more details" "$LINENO" 5; }
3892
3893 # Provide some information about the compiler.
3894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3895 set X $ac_compile
3896 ac_compiler=$2
3897 for ac_option in --version -v -V -qversion -version; do
3898 { { ac_try="$ac_compiler $ac_option >&5"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 printf "%s\n" "$ac_try_echo"; } >&5
3905 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3906 ac_status=$?
3907 if test -s conftest.err; then
3908 sed '10a\
3909 ... rest of stderr output deleted ...
3910 10q' conftest.err >conftest.er1
3911 cat conftest.er1 >&5
3912 fi
3913 rm -f conftest.er1 conftest.err
3914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915 test $ac_status = 0; }
3916 done
3917
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920
3921 int
3922 main (void)
3923 {
3924
3925 ;
3926 return 0;
3927 }
3928 _ACEOF
3929 ac_clean_files_save=$ac_clean_files
3930 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3931 # Try to create an executable without -o first, disregard a.out.
3932 # It will help us diagnose broken compilers, and finding out an intuition
3933 # of exeext.
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3935 printf %s "checking whether the C compiler works... " >&6; }
3936 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3937
3938 # The possible output files:
3939 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3940
3941 ac_rmfiles=
3942 for ac_file in $ac_files
3943 do
3944 case $ac_file in
3945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3946 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3947 esac
3948 done
3949 rm -f $ac_rmfiles
3950
3951 if { { ac_try="$ac_link_default"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 printf "%s\n" "$ac_try_echo"; } >&5
3958 (eval "$ac_link_default") 2>&5
3959 ac_status=$?
3960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3962 then :
3963 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3964 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3965 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3966 # so that the user can short-circuit this test for compilers unknown to
3967 # Autoconf.
3968 for ac_file in $ac_files ''
3969 do
3970 test -f "$ac_file" || continue
3971 case $ac_file in
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3973 ;;
3974 [ab].out )
3975 # We found the default executable, but exeext='' is most
3976 # certainly right.
3977 break;;
3978 *.* )
3979 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3980 then :; else
3981 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3982 fi
3983 # We set ac_cv_exeext here because the later test for it is not
3984 # safe: cross compilers may not add the suffix if given an '-o'
3985 # argument, so we may need to know it at that point already.
3986 # Even if this section looks crufty: it has the advantage of
3987 # actually working.
3988 break;;
3989 * )
3990 break;;
3991 esac
3992 done
3993 test "$ac_cv_exeext" = no && ac_cv_exeext=
3994
3995 else case e in #(
3996 e) ac_file='' ;;
3997 esac
3998 fi
3999 if test -z "$ac_file"
4000 then :
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 printf "%s\n" "no" >&6; }
4003 printf "%s\n" "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4007 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4008 as_fn_error 77 "C compiler cannot create executables
4009 See 'config.log' for more details" "$LINENO" 5; }
4010 else case e in #(
4011 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4012 printf "%s\n" "yes" >&6; } ;;
4013 esac
4014 fi
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4016 printf %s "checking for C compiler default output file name... " >&6; }
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4018 printf "%s\n" "$ac_file" >&6; }
4019 ac_exeext=$ac_cv_exeext
4020
4021 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4022 ac_clean_files=$ac_clean_files_save
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4024 printf %s "checking for suffix of executables... " >&6; }
4025 if { { ac_try="$ac_link"
4026 case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029 esac
4030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4031 printf "%s\n" "$ac_try_echo"; } >&5
4032 (eval "$ac_link") 2>&5
4033 ac_status=$?
4034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035 test $ac_status = 0; }
4036 then :
4037 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4038 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4039 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4040 # 'rm'.
4041 for ac_file in conftest.exe conftest conftest.*; do
4042 test -f "$ac_file" || continue
4043 case $ac_file in
4044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4046 break;;
4047 * ) break;;
4048 esac
4049 done
4050 else case e in #(
4051 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4052 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4053 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4054 See 'config.log' for more details" "$LINENO" 5; } ;;
4055 esac
4056 fi
4057 rm -f conftest conftest$ac_cv_exeext
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4059 printf "%s\n" "$ac_cv_exeext" >&6; }
4060
4061 rm -f conftest.$ac_ext
4062 EXEEXT=$ac_cv_exeext
4063 ac_exeext=$EXEEXT
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <stdio.h>
4067 int
4068 main (void)
4069 {
4070 FILE *f = fopen ("conftest.out", "w");
4071 if (!f)
4072 return 1;
4073 return ferror (f) || fclose (f) != 0;
4074
4075 ;
4076 return 0;
4077 }
4078 _ACEOF
4079 ac_clean_files="$ac_clean_files conftest.out"
4080 # Check that the compiler produces executables we can run. If not, either
4081 # the compiler is broken, or we cross compile.
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4083 printf %s "checking whether we are cross compiling... " >&6; }
4084 if test "$cross_compiling" != yes; then
4085 { { ac_try="$ac_link"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 printf "%s\n" "$ac_try_echo"; } >&5
4092 (eval "$ac_link") 2>&5
4093 ac_status=$?
4094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; }
4096 if { ac_try='./conftest$ac_cv_exeext'
4097 { { case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100 esac
4101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4102 printf "%s\n" "$ac_try_echo"; } >&5
4103 (eval "$ac_try") 2>&5
4104 ac_status=$?
4105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4106 test $ac_status = 0; }; }; then
4107 cross_compiling=no
4108 else
4109 if test "$cross_compiling" = maybe; then
4110 cross_compiling=yes
4111 else
4112 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4113 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4114 as_fn_error 77 "cannot run C compiled programs.
4115 If you meant to cross compile, use '--host'.
4116 See 'config.log' for more details" "$LINENO" 5; }
4117 fi
4118 fi
4119 fi
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4121 printf "%s\n" "$cross_compiling" >&6; }
4122
4123 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4124 conftest.o conftest.obj conftest.out
4125 ac_clean_files=$ac_clean_files_save
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4127 printf %s "checking for suffix of object files... " >&6; }
4128 if test ${ac_cv_objext+y}
4129 then :
4130 printf %s "(cached) " >&6
4131 else case e in #(
4132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134
4135 int
4136 main (void)
4137 {
4138
4139 ;
4140 return 0;
4141 }
4142 _ACEOF
4143 rm -f conftest.o conftest.obj
4144 if { { ac_try="$ac_compile"
4145 case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148 esac
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 printf "%s\n" "$ac_try_echo"; } >&5
4151 (eval "$ac_compile") 2>&5
4152 ac_status=$?
4153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154 test $ac_status = 0; }
4155 then :
4156 for ac_file in conftest.o conftest.obj conftest.*; do
4157 test -f "$ac_file" || continue;
4158 case $ac_file in
4159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4160 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4161 break;;
4162 esac
4163 done
4164 else case e in #(
4165 e) printf "%s\n" "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4169 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4170 as_fn_error $? "cannot compute suffix of object files: cannot compile
4171 See 'config.log' for more details" "$LINENO" 5; } ;;
4172 esac
4173 fi
4174 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4175 esac
4176 fi
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4178 printf "%s\n" "$ac_cv_objext" >&6; }
4179 OBJEXT=$ac_cv_objext
4180 ac_objext=$OBJEXT
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4182 printf %s "checking whether the compiler supports GNU C... " >&6; }
4183 if test ${ac_cv_c_compiler_gnu+y}
4184 then :
4185 printf %s "(cached) " >&6
4186 else case e in #(
4187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189
4190 int
4191 main (void)
4192 {
4193 #ifndef __GNUC__
4194 choke me
4195 #endif
4196
4197 ;
4198 return 0;
4199 }
4200 _ACEOF
4201 if ac_fn_c_try_compile "$LINENO"
4202 then :
4203 ac_compiler_gnu=yes
4204 else case e in #(
4205 e) ac_compiler_gnu=no ;;
4206 esac
4207 fi
4208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4210 ;;
4211 esac
4212 fi
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4214 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216
4217 if test $ac_compiler_gnu = yes; then
4218 GCC=yes
4219 else
4220 GCC=
4221 fi
4222 ac_test_CFLAGS=${CFLAGS+y}
4223 ac_save_CFLAGS=$CFLAGS
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4225 printf %s "checking whether $CC accepts -g... " >&6; }
4226 if test ${ac_cv_prog_cc_g+y}
4227 then :
4228 printf %s "(cached) " >&6
4229 else case e in #(
4230 e) ac_save_c_werror_flag=$ac_c_werror_flag
4231 ac_c_werror_flag=yes
4232 ac_cv_prog_cc_g=no
4233 CFLAGS="-g"
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236
4237 int
4238 main (void)
4239 {
4240
4241 ;
4242 return 0;
4243 }
4244 _ACEOF
4245 if ac_fn_c_try_compile "$LINENO"
4246 then :
4247 ac_cv_prog_cc_g=yes
4248 else case e in #(
4249 e) CFLAGS=""
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252
4253 int
4254 main (void)
4255 {
4256
4257 ;
4258 return 0;
4259 }
4260 _ACEOF
4261 if ac_fn_c_try_compile "$LINENO"
4262 then :
4263
4264 else case e in #(
4265 e) ac_c_werror_flag=$ac_save_c_werror_flag
4266 CFLAGS="-g"
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269
4270 int
4271 main (void)
4272 {
4273
4274 ;
4275 return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_c_try_compile "$LINENO"
4279 then :
4280 ac_cv_prog_cc_g=yes
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4283 esac
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4286 esac
4287 fi
4288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4289 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4290 esac
4291 fi
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4293 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4294 if test $ac_test_CFLAGS; then
4295 CFLAGS=$ac_save_CFLAGS
4296 elif test $ac_cv_prog_cc_g = yes; then
4297 if test "$GCC" = yes; then
4298 CFLAGS="-g -O2"
4299 else
4300 CFLAGS="-g"
4301 fi
4302 else
4303 if test "$GCC" = yes; then
4304 CFLAGS="-O2"
4305 else
4306 CFLAGS=
4307 fi
4308 fi
4309 ac_prog_cc_stdc=no
4310 if test x$ac_prog_cc_stdc = xno
4311 then :
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4313 printf %s "checking for $CC option to enable C11 features... " >&6; }
4314 if test ${ac_cv_prog_cc_c11+y}
4315 then :
4316 printf %s "(cached) " >&6
4317 else case e in #(
4318 e) ac_cv_prog_cc_c11=no
4319 ac_save_CC=$CC
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322 $ac_c_conftest_c11_program
4323 _ACEOF
4324 for ac_arg in '' -std=gnu11
4325 do
4326 CC="$ac_save_CC $ac_arg"
4327 if ac_fn_c_try_compile "$LINENO"
4328 then :
4329 ac_cv_prog_cc_c11=$ac_arg
4330 fi
4331 rm -f core conftest.err conftest.$ac_objext conftest.beam
4332 test "x$ac_cv_prog_cc_c11" != "xno" && break
4333 done
4334 rm -f conftest.$ac_ext
4335 CC=$ac_save_CC ;;
4336 esac
4337 fi
4338
4339 if test "x$ac_cv_prog_cc_c11" = xno
4340 then :
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342 printf "%s\n" "unsupported" >&6; }
4343 else case e in #(
4344 e) if test "x$ac_cv_prog_cc_c11" = x
4345 then :
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4347 printf "%s\n" "none needed" >&6; }
4348 else case e in #(
4349 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4350 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4351 CC="$CC $ac_cv_prog_cc_c11" ;;
4352 esac
4353 fi
4354 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4355 ac_prog_cc_stdc=c11 ;;
4356 esac
4357 fi
4358 fi
4359 if test x$ac_prog_cc_stdc = xno
4360 then :
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4362 printf %s "checking for $CC option to enable C99 features... " >&6; }
4363 if test ${ac_cv_prog_cc_c99+y}
4364 then :
4365 printf %s "(cached) " >&6
4366 else case e in #(
4367 e) ac_cv_prog_cc_c99=no
4368 ac_save_CC=$CC
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 $ac_c_conftest_c99_program
4372 _ACEOF
4373 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4374 do
4375 CC="$ac_save_CC $ac_arg"
4376 if ac_fn_c_try_compile "$LINENO"
4377 then :
4378 ac_cv_prog_cc_c99=$ac_arg
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.beam
4381 test "x$ac_cv_prog_cc_c99" != "xno" && break
4382 done
4383 rm -f conftest.$ac_ext
4384 CC=$ac_save_CC ;;
4385 esac
4386 fi
4387
4388 if test "x$ac_cv_prog_cc_c99" = xno
4389 then :
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4391 printf "%s\n" "unsupported" >&6; }
4392 else case e in #(
4393 e) if test "x$ac_cv_prog_cc_c99" = x
4394 then :
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396 printf "%s\n" "none needed" >&6; }
4397 else case e in #(
4398 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4399 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4400 CC="$CC $ac_cv_prog_cc_c99" ;;
4401 esac
4402 fi
4403 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4404 ac_prog_cc_stdc=c99 ;;
4405 esac
4406 fi
4407 fi
4408 if test x$ac_prog_cc_stdc = xno
4409 then :
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4411 printf %s "checking for $CC option to enable C89 features... " >&6; }
4412 if test ${ac_cv_prog_cc_c89+y}
4413 then :
4414 printf %s "(cached) " >&6
4415 else case e in #(
4416 e) ac_cv_prog_cc_c89=no
4417 ac_save_CC=$CC
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 $ac_c_conftest_c89_program
4421 _ACEOF
4422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4423 do
4424 CC="$ac_save_CC $ac_arg"
4425 if ac_fn_c_try_compile "$LINENO"
4426 then :
4427 ac_cv_prog_cc_c89=$ac_arg
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.beam
4430 test "x$ac_cv_prog_cc_c89" != "xno" && break
4431 done
4432 rm -f conftest.$ac_ext
4433 CC=$ac_save_CC ;;
4434 esac
4435 fi
4436
4437 if test "x$ac_cv_prog_cc_c89" = xno
4438 then :
4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4440 printf "%s\n" "unsupported" >&6; }
4441 else case e in #(
4442 e) if test "x$ac_cv_prog_cc_c89" = x
4443 then :
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4445 printf "%s\n" "none needed" >&6; }
4446 else case e in #(
4447 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4448 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4449 CC="$CC $ac_cv_prog_cc_c89" ;;
4450 esac
4451 fi
4452 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4453 ac_prog_cc_stdc=c89 ;;
4454 esac
4455 fi
4456 fi
4457
4458 ac_ext=c
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463
4464
4465 ac_ext=c
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4471 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4472 if test ${am_cv_prog_cc_c_o+y}
4473 then :
4474 printf %s "(cached) " >&6
4475 else case e in #(
4476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478
4479 int
4480 main (void)
4481 {
4482
4483 ;
4484 return 0;
4485 }
4486 _ACEOF
4487 # Make sure it works both with $CC and with simple cc.
4488 # Following AC_PROG_CC_C_O, we do the test twice because some
4489 # compilers refuse to overwrite an existing .o file with -o,
4490 # though they will create one.
4491 am_cv_prog_cc_c_o=yes
4492 for am_i in 1 2; do
4493 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4494 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } \
4498 && test -f conftest2.$ac_objext; then
4499 : OK
4500 else
4501 am_cv_prog_cc_c_o=no
4502 break
4503 fi
4504 done
4505 rm -f core conftest*
4506 unset am_i ;;
4507 esac
4508 fi
4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4510 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4511 if test "$am_cv_prog_cc_c_o" != yes; then
4512 # Losing compiler, so override with the script.
4513 # FIXME: It is wrong to rewrite CC.
4514 # But if we don't then we get into trouble of one sort or another.
4515 # A longer-term fix would be to have automake use am__CC in this case,
4516 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4517 CC="$am_aux_dir/compile $CC"
4518 fi
4519 ac_ext=c
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524
4525 DEPDIR="${am__leading_dot}deps"
4526
4527 ac_config_commands="$ac_config_commands depfiles"
4528
4529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4530 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4531 cat > confinc.mk << 'END'
4532 am__doit:
4533 @echo this is the am__doit target >confinc.out
4534 .PHONY: am__doit
4535 END
4536 am__include="#"
4537 am__quote=
4538 # BSD make does it like this.
4539 echo '.include "confinc.mk" # ignored' > confmf.BSD
4540 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4541 echo 'include confinc.mk # ignored' > confmf.GNU
4542 _am_result=no
4543 for s in GNU BSD; do
4544 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4545 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }
4549 case $?:`cat confinc.out 2>/dev/null` in #(
4550 '0:this is the am__doit target') :
4551 case $s in #(
4552 BSD) :
4553 am__include='.include' am__quote='"' ;; #(
4554 *) :
4555 am__include='include' am__quote='' ;;
4556 esac ;; #(
4557 *) :
4558 ;;
4559 esac
4560 if test "$am__include" != "#"; then
4561 _am_result="yes ($s style)"
4562 break
4563 fi
4564 done
4565 rm -f confinc.* confmf.*
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4567 printf "%s\n" "${_am_result}" >&6; }
4568
4569 # Check whether --enable-dependency-tracking was given.
4570 if test ${enable_dependency_tracking+y}
4571 then :
4572 enableval=$enable_dependency_tracking;
4573 fi
4574
4575 if test "x$enable_dependency_tracking" != xno; then
4576 am_depcomp="$ac_aux_dir/depcomp"
4577 AMDEPBACKSLASH='\'
4578 am__nodep='_no'
4579 fi
4580 if test "x$enable_dependency_tracking" != xno; then
4581 AMDEP_TRUE=
4582 AMDEP_FALSE='#'
4583 else
4584 AMDEP_TRUE='#'
4585 AMDEP_FALSE=
4586 fi
4587
4588
4589
4590 depcc="$CC" am_compiler_list=
4591
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4593 printf %s "checking dependency style of $depcc... " >&6; }
4594 if test ${am_cv_CC_dependencies_compiler_type+y}
4595 then :
4596 printf %s "(cached) " >&6
4597 else case e in #(
4598 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4599 # We make a subdir and do the tests there. Otherwise we can end up
4600 # making bogus files that we don't know about and never remove. For
4601 # instance it was reported that on HP-UX the gcc test will end up
4602 # making a dummy file named 'D' -- because '-MD' means "put the output
4603 # in D".
4604 rm -rf conftest.dir
4605 mkdir conftest.dir
4606 # Copy depcomp to subdir because otherwise we won't find it if we're
4607 # using a relative directory.
4608 cp "$am_depcomp" conftest.dir
4609 cd conftest.dir
4610 # We will build objects and dependencies in a subdirectory because
4611 # it helps to detect inapplicable dependency modes. For instance
4612 # both Tru64's cc and ICC support -MD to output dependencies as a
4613 # side effect of compilation, but ICC will put the dependencies in
4614 # the current directory while Tru64 will put them in the object
4615 # directory.
4616 mkdir sub
4617
4618 am_cv_CC_dependencies_compiler_type=none
4619 if test "$am_compiler_list" = ""; then
4620 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4621 fi
4622 am__universal=false
4623 case " $depcc " in #(
4624 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4625 esac
4626
4627 for depmode in $am_compiler_list; do
4628 # Setup a source with many dependencies, because some compilers
4629 # like to wrap large dependency lists on column 80 (with \), and
4630 # we should not choose a depcomp mode which is confused by this.
4631 #
4632 # We need to recreate these files for each test, as the compiler may
4633 # overwrite some of them when testing with obscure command lines.
4634 # This happens at least with the AIX C compiler.
4635 : > sub/conftest.c
4636 for i in 1 2 3 4 5 6; do
4637 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4638 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4639 # Solaris 10 /bin/sh.
4640 echo '/* dummy */' > sub/conftst$i.h
4641 done
4642 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4643
4644 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4645 # mode. It turns out that the SunPro C++ compiler does not properly
4646 # handle '-M -o', and we need to detect this. Also, some Intel
4647 # versions had trouble with output in subdirs.
4648 am__obj=sub/conftest.${OBJEXT-o}
4649 am__minus_obj="-o $am__obj"
4650 case $depmode in
4651 gcc)
4652 # This depmode causes a compiler race in universal mode.
4653 test "$am__universal" = false || continue
4654 ;;
4655 nosideeffect)
4656 # After this tag, mechanisms are not by side-effect, so they'll
4657 # only be used when explicitly requested.
4658 if test "x$enable_dependency_tracking" = xyes; then
4659 continue
4660 else
4661 break
4662 fi
4663 ;;
4664 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4665 # This compiler won't grok '-c -o', but also, the minuso test has
4666 # not run yet. These depmodes are late enough in the game, and
4667 # so weak that their functioning should not be impacted.
4668 am__obj=conftest.${OBJEXT-o}
4669 am__minus_obj=
4670 ;;
4671 none) break ;;
4672 esac
4673 if depmode=$depmode \
4674 source=sub/conftest.c object=$am__obj \
4675 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4676 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4677 >/dev/null 2>conftest.err &&
4678 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4679 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4680 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4681 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4682 # icc doesn't choke on unknown options, it will just issue warnings
4683 # or remarks (even with -Werror). So we grep stderr for any message
4684 # that says an option was ignored or not supported.
4685 # When given -MP, icc 7.0 and 7.1 complain thusly:
4686 # icc: Command line warning: ignoring option '-M'; no argument required
4687 # The diagnosis changed in icc 8.0:
4688 # icc: Command line remark: option '-MP' not supported
4689 if (grep 'ignoring option' conftest.err ||
4690 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4691 am_cv_CC_dependencies_compiler_type=$depmode
4692 break
4693 fi
4694 fi
4695 done
4696
4697 cd ..
4698 rm -rf conftest.dir
4699 else
4700 am_cv_CC_dependencies_compiler_type=none
4701 fi
4702 ;;
4703 esac
4704 fi
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4706 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4707 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4708
4709 if
4710 test "x$enable_dependency_tracking" != xno \
4711 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4712 am__fastdepCC_TRUE=
4713 am__fastdepCC_FALSE='#'
4714 else
4715 am__fastdepCC_TRUE='#'
4716 am__fastdepCC_FALSE=
4717 fi
4718
4719
4720
4721
4722
4723 case `pwd` in
4724 *\ * | *\ *)
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4726 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4727 esac
4728
4729
4730
4731 macro_version='2.4.7'
4732 macro_revision='2.4.7'
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747 ltmain=$ac_aux_dir/ltmain.sh
4748
4749
4750
4751 # Make sure we can run config.sub.
4752 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4753 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4754
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4756 printf %s "checking build system type... " >&6; }
4757 if test ${ac_cv_build+y}
4758 then :
4759 printf %s "(cached) " >&6
4760 else case e in #(
4761 e) ac_build_alias=$build_alias
4762 test "x$ac_build_alias" = x &&
4763 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4764 test "x$ac_build_alias" = x &&
4765 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4766 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4767 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4768 ;;
4769 esac
4770 fi
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4772 printf "%s\n" "$ac_cv_build" >&6; }
4773 case $ac_cv_build in
4774 *-*-*) ;;
4775 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4776 esac
4777 build=$ac_cv_build
4778 ac_save_IFS=$IFS; IFS='-'
4779 set x $ac_cv_build
4780 shift
4781 build_cpu=$1
4782 build_vendor=$2
4783 shift; shift
4784 # Remember, the first character of IFS is used to create $*,
4785 # except with old shells:
4786 build_os=$*
4787 IFS=$ac_save_IFS
4788 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4789
4790
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4792 printf %s "checking host system type... " >&6; }
4793 if test ${ac_cv_host+y}
4794 then :
4795 printf %s "(cached) " >&6
4796 else case e in #(
4797 e) if test "x$host_alias" = x; then
4798 ac_cv_host=$ac_cv_build
4799 else
4800 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4801 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4802 fi
4803 ;;
4804 esac
4805 fi
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4807 printf "%s\n" "$ac_cv_host" >&6; }
4808 case $ac_cv_host in
4809 *-*-*) ;;
4810 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4811 esac
4812 host=$ac_cv_host
4813 ac_save_IFS=$IFS; IFS='-'
4814 set x $ac_cv_host
4815 shift
4816 host_cpu=$1
4817 host_vendor=$2
4818 shift; shift
4819 # Remember, the first character of IFS is used to create $*,
4820 # except with old shells:
4821 host_os=$*
4822 IFS=$ac_save_IFS
4823 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4824
4825
4826 # Backslashify metacharacters that are still active within
4827 # double-quoted strings.
4828 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4829
4830 # Same as above, but do not quote variable references.
4831 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4832
4833 # Sed substitution to delay expansion of an escaped shell variable in a
4834 # double_quote_subst'ed string.
4835 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4836
4837 # Sed substitution to delay expansion of an escaped single quote.
4838 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4839
4840 # Sed substitution to avoid accidental globbing in evaled expressions
4841 no_glob_subst='s/\*/\\\*/g'
4842
4843 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4844 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4845 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4846
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4848 printf %s "checking how to print strings... " >&6; }
4849 # Test print first, because it will be a builtin if present.
4850 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4851 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4852 ECHO='print -r --'
4853 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4854 ECHO='printf %s\n'
4855 else
4856 # Use this function as a fallback that always works.
4857 func_fallback_echo ()
4858 {
4859 eval 'cat <<_LTECHO_EOF
4860 $1
4861 _LTECHO_EOF'
4862 }
4863 ECHO='func_fallback_echo'
4864 fi
4865
4866 # func_echo_all arg...
4867 # Invoke $ECHO with all args, space-separated.
4868 func_echo_all ()
4869 {
4870 $ECHO ""
4871 }
4872
4873 case $ECHO in
4874 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4875 printf "%s\n" "printf" >&6; } ;;
4876 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4877 printf "%s\n" "print -r" >&6; } ;;
4878 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4879 printf "%s\n" "cat" >&6; } ;;
4880 esac
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4896 printf %s "checking for a sed that does not truncate output... " >&6; }
4897 if test ${ac_cv_path_SED+y}
4898 then :
4899 printf %s "(cached) " >&6
4900 else case e in #(
4901 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4902 for ac_i in 1 2 3 4 5 6 7; do
4903 ac_script="$ac_script$as_nl$ac_script"
4904 done
4905 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4906 { ac_script=; unset ac_script;}
4907 if test -z "$SED"; then
4908 ac_path_SED_found=false
4909 # Loop through the user's path and test for each of PROGNAME-LIST
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913 IFS=$as_save_IFS
4914 case $as_dir in #(((
4915 '') as_dir=./ ;;
4916 */) ;;
4917 *) as_dir=$as_dir/ ;;
4918 esac
4919 for ac_prog in sed gsed
4920 do
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4923 as_fn_executable_p "$ac_path_SED" || continue
4924 # Check for GNU ac_path_SED and select it if it is found.
4925 # Check for GNU $ac_path_SED
4926 case `"$ac_path_SED" --version 2>&1` in #(
4927 *GNU*)
4928 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4929 #(
4930 *)
4931 ac_count=0
4932 printf %s 0123456789 >"conftest.in"
4933 while :
4934 do
4935 cat "conftest.in" "conftest.in" >"conftest.tmp"
4936 mv "conftest.tmp" "conftest.in"
4937 cp "conftest.in" "conftest.nl"
4938 printf "%s\n" '' >> "conftest.nl"
4939 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4941 as_fn_arith $ac_count + 1 && ac_count=$as_val
4942 if test $ac_count -gt ${ac_path_SED_max-0}; then
4943 # Best one so far, save it but keep looking for a better one
4944 ac_cv_path_SED="$ac_path_SED"
4945 ac_path_SED_max=$ac_count
4946 fi
4947 # 10*(2^10) chars as input seems more than enough
4948 test $ac_count -gt 10 && break
4949 done
4950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4951 esac
4952
4953 $ac_path_SED_found && break 3
4954 done
4955 done
4956 done
4957 IFS=$as_save_IFS
4958 if test -z "$ac_cv_path_SED"; then
4959 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4960 fi
4961 else
4962 ac_cv_path_SED=$SED
4963 fi
4964 ;;
4965 esac
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4968 printf "%s\n" "$ac_cv_path_SED" >&6; }
4969 SED="$ac_cv_path_SED"
4970 rm -f conftest.sed
4971
4972 test -z "$SED" && SED=sed
4973 Xsed="$SED -e 1s/^X//"
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4986 printf %s "checking for grep that handles long lines and -e... " >&6; }
4987 if test ${ac_cv_path_GREP+y}
4988 then :
4989 printf %s "(cached) " >&6
4990 else case e in #(
4991 e) if test -z "$GREP"; then
4992 ac_path_GREP_found=false
4993 # Loop through the user's path and test for each of PROGNAME-LIST
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4996 do
4997 IFS=$as_save_IFS
4998 case $as_dir in #(((
4999 '') as_dir=./ ;;
5000 */) ;;
5001 *) as_dir=$as_dir/ ;;
5002 esac
5003 for ac_prog in grep ggrep
5004 do
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5007 as_fn_executable_p "$ac_path_GREP" || continue
5008 # Check for GNU ac_path_GREP and select it if it is found.
5009 # Check for GNU $ac_path_GREP
5010 case `"$ac_path_GREP" --version 2>&1` in #(
5011 *GNU*)
5012 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5013 #(
5014 *)
5015 ac_count=0
5016 printf %s 0123456789 >"conftest.in"
5017 while :
5018 do
5019 cat "conftest.in" "conftest.in" >"conftest.tmp"
5020 mv "conftest.tmp" "conftest.in"
5021 cp "conftest.in" "conftest.nl"
5022 printf "%s\n" 'GREP' >> "conftest.nl"
5023 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5025 as_fn_arith $ac_count + 1 && ac_count=$as_val
5026 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5027 # Best one so far, save it but keep looking for a better one
5028 ac_cv_path_GREP="$ac_path_GREP"
5029 ac_path_GREP_max=$ac_count
5030 fi
5031 # 10*(2^10) chars as input seems more than enough
5032 test $ac_count -gt 10 && break
5033 done
5034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5035 esac
5036
5037 $ac_path_GREP_found && break 3
5038 done
5039 done
5040 done
5041 IFS=$as_save_IFS
5042 if test -z "$ac_cv_path_GREP"; then
5043 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5044 fi
5045 else
5046 ac_cv_path_GREP=$GREP
5047 fi
5048 ;;
5049 esac
5050 fi
5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5052 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5053 GREP="$ac_cv_path_GREP"
5054
5055
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5057 printf %s "checking for egrep... " >&6; }
5058 if test ${ac_cv_path_EGREP+y}
5059 then :
5060 printf %s "(cached) " >&6
5061 else case e in #(
5062 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5063 then ac_cv_path_EGREP="$GREP -E"
5064 else
5065 if test -z "$EGREP"; then
5066 ac_path_EGREP_found=false
5067 # Loop through the user's path and test for each of PROGNAME-LIST
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5070 do
5071 IFS=$as_save_IFS
5072 case $as_dir in #(((
5073 '') as_dir=./ ;;
5074 */) ;;
5075 *) as_dir=$as_dir/ ;;
5076 esac
5077 for ac_prog in egrep
5078 do
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5081 as_fn_executable_p "$ac_path_EGREP" || continue
5082 # Check for GNU ac_path_EGREP and select it if it is found.
5083 # Check for GNU $ac_path_EGREP
5084 case `"$ac_path_EGREP" --version 2>&1` in #(
5085 *GNU*)
5086 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5087 #(
5088 *)
5089 ac_count=0
5090 printf %s 0123456789 >"conftest.in"
5091 while :
5092 do
5093 cat "conftest.in" "conftest.in" >"conftest.tmp"
5094 mv "conftest.tmp" "conftest.in"
5095 cp "conftest.in" "conftest.nl"
5096 printf "%s\n" 'EGREP' >> "conftest.nl"
5097 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099 as_fn_arith $ac_count + 1 && ac_count=$as_val
5100 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5101 # Best one so far, save it but keep looking for a better one
5102 ac_cv_path_EGREP="$ac_path_EGREP"
5103 ac_path_EGREP_max=$ac_count
5104 fi
5105 # 10*(2^10) chars as input seems more than enough
5106 test $ac_count -gt 10 && break
5107 done
5108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109 esac
5110
5111 $ac_path_EGREP_found && break 3
5112 done
5113 done
5114 done
5115 IFS=$as_save_IFS
5116 if test -z "$ac_cv_path_EGREP"; then
5117 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5118 fi
5119 else
5120 ac_cv_path_EGREP=$EGREP
5121 fi
5122
5123 fi ;;
5124 esac
5125 fi
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5127 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5128 EGREP="$ac_cv_path_EGREP"
5129
5130 EGREP_TRADITIONAL=$EGREP
5131 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5132
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5134 printf %s "checking for fgrep... " >&6; }
5135 if test ${ac_cv_path_FGREP+y}
5136 then :
5137 printf %s "(cached) " >&6
5138 else case e in #(
5139 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5140 then ac_cv_path_FGREP="$GREP -F"
5141 else
5142 if test -z "$FGREP"; then
5143 ac_path_FGREP_found=false
5144 # Loop through the user's path and test for each of PROGNAME-LIST
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5147 do
5148 IFS=$as_save_IFS
5149 case $as_dir in #(((
5150 '') as_dir=./ ;;
5151 */) ;;
5152 *) as_dir=$as_dir/ ;;
5153 esac
5154 for ac_prog in fgrep
5155 do
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5158 as_fn_executable_p "$ac_path_FGREP" || continue
5159 # Check for GNU ac_path_FGREP and select it if it is found.
5160 # Check for GNU $ac_path_FGREP
5161 case `"$ac_path_FGREP" --version 2>&1` in #(
5162 *GNU*)
5163 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5164 #(
5165 *)
5166 ac_count=0
5167 printf %s 0123456789 >"conftest.in"
5168 while :
5169 do
5170 cat "conftest.in" "conftest.in" >"conftest.tmp"
5171 mv "conftest.tmp" "conftest.in"
5172 cp "conftest.in" "conftest.nl"
5173 printf "%s\n" 'FGREP' >> "conftest.nl"
5174 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5176 as_fn_arith $ac_count + 1 && ac_count=$as_val
5177 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5178 # Best one so far, save it but keep looking for a better one
5179 ac_cv_path_FGREP="$ac_path_FGREP"
5180 ac_path_FGREP_max=$ac_count
5181 fi
5182 # 10*(2^10) chars as input seems more than enough
5183 test $ac_count -gt 10 && break
5184 done
5185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5186 esac
5187
5188 $ac_path_FGREP_found && break 3
5189 done
5190 done
5191 done
5192 IFS=$as_save_IFS
5193 if test -z "$ac_cv_path_FGREP"; then
5194 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5195 fi
5196 else
5197 ac_cv_path_FGREP=$FGREP
5198 fi
5199
5200 fi ;;
5201 esac
5202 fi
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5204 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5205 FGREP="$ac_cv_path_FGREP"
5206
5207
5208 test -z "$GREP" && GREP=grep
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 # Check whether --with-gnu-ld was given.
5229 if test ${with_gnu_ld+y}
5230 then :
5231 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5232 else case e in #(
5233 e) with_gnu_ld=no ;;
5234 esac
5235 fi
5236
5237 ac_prog=ld
5238 if test yes = "$GCC"; then
5239 # Check if gcc -print-prog-name=ld gives a path.
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5241 printf %s "checking for ld used by $CC... " >&6; }
5242 case $host in
5243 *-*-mingw*)
5244 # gcc leaves a trailing carriage return, which upsets mingw
5245 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5246 *)
5247 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5248 esac
5249 case $ac_prog in
5250 # Accept absolute paths.
5251 [\\/]* | ?:[\\/]*)
5252 re_direlt='/[^/][^/]*/\.\./'
5253 # Canonicalize the pathname of ld
5254 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5255 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5256 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5257 done
5258 test -z "$LD" && LD=$ac_prog
5259 ;;
5260 "")
5261 # If it fails, then pretend we aren't using GCC.
5262 ac_prog=ld
5263 ;;
5264 *)
5265 # If it is relative, then search for the first ld in PATH.
5266 with_gnu_ld=unknown
5267 ;;
5268 esac
5269 elif test yes = "$with_gnu_ld"; then
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5271 printf %s "checking for GNU ld... " >&6; }
5272 else
5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5274 printf %s "checking for non-GNU ld... " >&6; }
5275 fi
5276 if test ${lt_cv_path_LD+y}
5277 then :
5278 printf %s "(cached) " >&6
5279 else case e in #(
5280 e) if test -z "$LD"; then
5281 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5282 for ac_dir in $PATH; do
5283 IFS=$lt_save_ifs
5284 test -z "$ac_dir" && ac_dir=.
5285 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5286 lt_cv_path_LD=$ac_dir/$ac_prog
5287 # Check to see if the program is GNU ld. I'd rather use --version,
5288 # but apparently some variants of GNU ld only accept -v.
5289 # Break only if it was the GNU/non-GNU ld that we prefer.
5290 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5291 *GNU* | *'with BFD'*)
5292 test no != "$with_gnu_ld" && break
5293 ;;
5294 *)
5295 test yes != "$with_gnu_ld" && break
5296 ;;
5297 esac
5298 fi
5299 done
5300 IFS=$lt_save_ifs
5301 else
5302 lt_cv_path_LD=$LD # Let the user override the test with a path.
5303 fi ;;
5304 esac
5305 fi
5306
5307 LD=$lt_cv_path_LD
5308 if test -n "$LD"; then
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5310 printf "%s\n" "$LD" >&6; }
5311 else
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 printf "%s\n" "no" >&6; }
5314 fi
5315 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5317 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5318 if test ${lt_cv_prog_gnu_ld+y}
5319 then :
5320 printf %s "(cached) " >&6
5321 else case e in #(
5322 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5323 case `$LD -v 2>&1 </dev/null` in
5324 *GNU* | *'with BFD'*)
5325 lt_cv_prog_gnu_ld=yes
5326 ;;
5327 *)
5328 lt_cv_prog_gnu_ld=no
5329 ;;
5330 esac ;;
5331 esac
5332 fi
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5334 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5335 with_gnu_ld=$lt_cv_prog_gnu_ld
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5346 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5347 if test ${lt_cv_path_NM+y}
5348 then :
5349 printf %s "(cached) " >&6
5350 else case e in #(
5351 e) if test -n "$NM"; then
5352 # Let the user override the test.
5353 lt_cv_path_NM=$NM
5354 else
5355 lt_nm_to_check=${ac_tool_prefix}nm
5356 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5357 lt_nm_to_check="$lt_nm_to_check nm"
5358 fi
5359 for lt_tmp_nm in $lt_nm_to_check; do
5360 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5361 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5362 IFS=$lt_save_ifs
5363 test -z "$ac_dir" && ac_dir=.
5364 tmp_nm=$ac_dir/$lt_tmp_nm
5365 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5366 # Check to see if the nm accepts a BSD-compat flag.
5367 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5368 # nm: unknown option "B" ignored
5369 # Tru64's nm complains that /dev/null is an invalid object file
5370 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5371 case $build_os in
5372 mingw*) lt_bad_file=conftest.nm/nofile ;;
5373 *) lt_bad_file=/dev/null ;;
5374 esac
5375 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5376 *$lt_bad_file* | *'Invalid file or object type'*)
5377 lt_cv_path_NM="$tmp_nm -B"
5378 break 2
5379 ;;
5380 *)
5381 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5382 */dev/null*)
5383 lt_cv_path_NM="$tmp_nm -p"
5384 break 2
5385 ;;
5386 *)
5387 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5388 continue # so that we can try to find one that supports BSD flags
5389 ;;
5390 esac
5391 ;;
5392 esac
5393 fi
5394 done
5395 IFS=$lt_save_ifs
5396 done
5397 : ${lt_cv_path_NM=no}
5398 fi ;;
5399 esac
5400 fi
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5402 printf "%s\n" "$lt_cv_path_NM" >&6; }
5403 if test no != "$lt_cv_path_NM"; then
5404 NM=$lt_cv_path_NM
5405 else
5406 # Didn't find any BSD compatible name lister, look for dumpbin.
5407 if test -n "$DUMPBIN"; then :
5408 # Let the user override the test.
5409 else
5410 if test -n "$ac_tool_prefix"; then
5411 for ac_prog in dumpbin "link -dump"
5412 do
5413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 printf %s "checking for $ac_word... " >&6; }
5417 if test ${ac_cv_prog_DUMPBIN+y}
5418 then :
5419 printf %s "(cached) " >&6
5420 else case e in #(
5421 e) if test -n "$DUMPBIN"; then
5422 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427 IFS=$as_save_IFS
5428 case $as_dir in #(((
5429 '') as_dir=./ ;;
5430 */) ;;
5431 *) as_dir=$as_dir/ ;;
5432 esac
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439 done
5440 done
5441 IFS=$as_save_IFS
5442
5443 fi ;;
5444 esac
5445 fi
5446 DUMPBIN=$ac_cv_prog_DUMPBIN
5447 if test -n "$DUMPBIN"; then
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5449 printf "%s\n" "$DUMPBIN" >&6; }
5450 else
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 printf "%s\n" "no" >&6; }
5453 fi
5454
5455
5456 test -n "$DUMPBIN" && break
5457 done
5458 fi
5459 if test -z "$DUMPBIN"; then
5460 ac_ct_DUMPBIN=$DUMPBIN
5461 for ac_prog in dumpbin "link -dump"
5462 do
5463 # Extract the first word of "$ac_prog", so it can be a program name with args.
5464 set dummy $ac_prog; ac_word=$2
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 printf %s "checking for $ac_word... " >&6; }
5467 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5468 then :
5469 printf %s "(cached) " >&6
5470 else case e in #(
5471 e) if test -n "$ac_ct_DUMPBIN"; then
5472 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477 IFS=$as_save_IFS
5478 case $as_dir in #(((
5479 '') as_dir=./ ;;
5480 */) ;;
5481 *) as_dir=$as_dir/ ;;
5482 esac
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489 done
5490 done
5491 IFS=$as_save_IFS
5492
5493 fi ;;
5494 esac
5495 fi
5496 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5497 if test -n "$ac_ct_DUMPBIN"; then
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5499 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5500 else
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 printf "%s\n" "no" >&6; }
5503 fi
5504
5505
5506 test -n "$ac_ct_DUMPBIN" && break
5507 done
5508
5509 if test "x$ac_ct_DUMPBIN" = x; then
5510 DUMPBIN=":"
5511 else
5512 case $cross_compiling:$ac_tool_warned in
5513 yes:)
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5515 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5516 ac_tool_warned=yes ;;
5517 esac
5518 DUMPBIN=$ac_ct_DUMPBIN
5519 fi
5520 fi
5521
5522 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5523 *COFF*)
5524 DUMPBIN="$DUMPBIN -symbols -headers"
5525 ;;
5526 *)
5527 DUMPBIN=:
5528 ;;
5529 esac
5530 fi
5531
5532 if test : != "$DUMPBIN"; then
5533 NM=$DUMPBIN
5534 fi
5535 fi
5536 test -z "$NM" && NM=nm
5537
5538
5539
5540
5541
5542
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5544 printf %s "checking the name lister ($NM) interface... " >&6; }
5545 if test ${lt_cv_nm_interface+y}
5546 then :
5547 printf %s "(cached) " >&6
5548 else case e in #(
5549 e) lt_cv_nm_interface="BSD nm"
5550 echo "int some_variable = 0;" > conftest.$ac_ext
5551 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5552 (eval "$ac_compile" 2>conftest.err)
5553 cat conftest.err >&5
5554 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5555 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5556 cat conftest.err >&5
5557 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5558 cat conftest.out >&5
5559 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5560 lt_cv_nm_interface="MS dumpbin"
5561 fi
5562 rm -f conftest* ;;
5563 esac
5564 fi
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5566 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5567
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5569 printf %s "checking whether ln -s works... " >&6; }
5570 LN_S=$as_ln_s
5571 if test "$LN_S" = "ln -s"; then
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5573 printf "%s\n" "yes" >&6; }
5574 else
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5576 printf "%s\n" "no, using $LN_S" >&6; }
5577 fi
5578
5579 # find the maximum length of command line arguments
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5581 printf %s "checking the maximum length of command line arguments... " >&6; }
5582 if test ${lt_cv_sys_max_cmd_len+y}
5583 then :
5584 printf %s "(cached) " >&6
5585 else case e in #(
5586 e) i=0
5587 teststring=ABCD
5588
5589 case $build_os in
5590 msdosdjgpp*)
5591 # On DJGPP, this test can blow up pretty badly due to problems in libc
5592 # (any single argument exceeding 2000 bytes causes a buffer overrun
5593 # during glob expansion). Even if it were fixed, the result of this
5594 # check would be larger than it should be.
5595 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5596 ;;
5597
5598 gnu*)
5599 # Under GNU Hurd, this test is not required because there is
5600 # no limit to the length of command line arguments.
5601 # Libtool will interpret -1 as no limit whatsoever
5602 lt_cv_sys_max_cmd_len=-1;
5603 ;;
5604
5605 cygwin* | mingw* | cegcc*)
5606 # On Win9x/ME, this test blows up -- it succeeds, but takes
5607 # about 5 minutes as the teststring grows exponentially.
5608 # Worse, since 9x/ME are not pre-emptively multitasking,
5609 # you end up with a "frozen" computer, even though with patience
5610 # the test eventually succeeds (with a max line length of 256k).
5611 # Instead, let's just punt: use the minimum linelength reported by
5612 # all of the supported platforms: 8192 (on NT/2K/XP).
5613 lt_cv_sys_max_cmd_len=8192;
5614 ;;
5615
5616 mint*)
5617 # On MiNT this can take a long time and run out of memory.
5618 lt_cv_sys_max_cmd_len=8192;
5619 ;;
5620
5621 amigaos*)
5622 # On AmigaOS with pdksh, this test takes hours, literally.
5623 # So we just punt and use a minimum line length of 8192.
5624 lt_cv_sys_max_cmd_len=8192;
5625 ;;
5626
5627 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5628 # This has been around since 386BSD, at least. Likely further.
5629 if test -x /sbin/sysctl; then
5630 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5631 elif test -x /usr/sbin/sysctl; then
5632 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5633 else
5634 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5635 fi
5636 # And add a safety zone
5637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5639 ;;
5640
5641 interix*)
5642 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5643 lt_cv_sys_max_cmd_len=196608
5644 ;;
5645
5646 os2*)
5647 # The test takes a long time on OS/2.
5648 lt_cv_sys_max_cmd_len=8192
5649 ;;
5650
5651 osf*)
5652 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5653 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5654 # nice to cause kernel panics so lets avoid the loop below.
5655 # First set a reasonable default.
5656 lt_cv_sys_max_cmd_len=16384
5657 #
5658 if test -x /sbin/sysconfig; then
5659 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5660 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5661 esac
5662 fi
5663 ;;
5664 sco3.2v5*)
5665 lt_cv_sys_max_cmd_len=102400
5666 ;;
5667 sysv5* | sco5v6* | sysv4.2uw2*)
5668 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5669 if test -n "$kargmax"; then
5670 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5671 else
5672 lt_cv_sys_max_cmd_len=32768
5673 fi
5674 ;;
5675 *)
5676 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5677 if test -n "$lt_cv_sys_max_cmd_len" && \
5678 test undefined != "$lt_cv_sys_max_cmd_len"; then
5679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5681 else
5682 # Make teststring a little bigger before we do anything with it.
5683 # a 1K string should be a reasonable start.
5684 for i in 1 2 3 4 5 6 7 8; do
5685 teststring=$teststring$teststring
5686 done
5687 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5688 # If test is not a shell built-in, we'll probably end up computing a
5689 # maximum length that is only half of the actual maximum length, but
5690 # we can't tell.
5691 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5692 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5693 test 17 != "$i" # 1/2 MB should be enough
5694 do
5695 i=`expr $i + 1`
5696 teststring=$teststring$teststring
5697 done
5698 # Only check the string length outside the loop.
5699 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5700 teststring=
5701 # Add a significant safety factor because C++ compilers can tack on
5702 # massive amounts of additional arguments before passing them to the
5703 # linker. It appears as though 1/2 is a usable value.
5704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5705 fi
5706 ;;
5707 esac
5708 ;;
5709 esac
5710 fi
5711
5712 if test -n "$lt_cv_sys_max_cmd_len"; then
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5714 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5715 else
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5717 printf "%s\n" "none" >&6; }
5718 fi
5719 max_cmd_len=$lt_cv_sys_max_cmd_len
5720
5721
5722
5723
5724
5725
5726 : ${CP="cp -f"}
5727 : ${MV="mv -f"}
5728 : ${RM="rm -f"}
5729
5730 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5731 lt_unset=unset
5732 else
5733 lt_unset=false
5734 fi
5735
5736
5737
5738
5739
5740 # test EBCDIC or ASCII
5741 case `echo X|tr X '\101'` in
5742 A) # ASCII based system
5743 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5744 lt_SP2NL='tr \040 \012'
5745 lt_NL2SP='tr \015\012 \040\040'
5746 ;;
5747 *) # EBCDIC based system
5748 lt_SP2NL='tr \100 \n'
5749 lt_NL2SP='tr \r\n \100\100'
5750 ;;
5751 esac
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5762 printf %s "checking how to convert $build file names to $host format... " >&6; }
5763 if test ${lt_cv_to_host_file_cmd+y}
5764 then :
5765 printf %s "(cached) " >&6
5766 else case e in #(
5767 e) case $host in
5768 *-*-mingw* )
5769 case $build in
5770 *-*-mingw* ) # actually msys
5771 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5772 ;;
5773 *-*-cygwin* )
5774 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5775 ;;
5776 * ) # otherwise, assume *nix
5777 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5778 ;;
5779 esac
5780 ;;
5781 *-*-cygwin* )
5782 case $build in
5783 *-*-mingw* ) # actually msys
5784 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5785 ;;
5786 *-*-cygwin* )
5787 lt_cv_to_host_file_cmd=func_convert_file_noop
5788 ;;
5789 * ) # otherwise, assume *nix
5790 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5791 ;;
5792 esac
5793 ;;
5794 * ) # unhandled hosts (and "normal" native builds)
5795 lt_cv_to_host_file_cmd=func_convert_file_noop
5796 ;;
5797 esac
5798 ;;
5799 esac
5800 fi
5801
5802 to_host_file_cmd=$lt_cv_to_host_file_cmd
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5804 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5805
5806
5807
5808
5809
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5811 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5812 if test ${lt_cv_to_tool_file_cmd+y}
5813 then :
5814 printf %s "(cached) " >&6
5815 else case e in #(
5816 e) #assume ordinary cross tools, or native build.
5817 lt_cv_to_tool_file_cmd=func_convert_file_noop
5818 case $host in
5819 *-*-mingw* )
5820 case $build in
5821 *-*-mingw* ) # actually msys
5822 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5823 ;;
5824 esac
5825 ;;
5826 esac
5827 ;;
5828 esac
5829 fi
5830
5831 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5833 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5834
5835
5836
5837
5838
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5840 printf %s "checking for $LD option to reload object files... " >&6; }
5841 if test ${lt_cv_ld_reload_flag+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else case e in #(
5845 e) lt_cv_ld_reload_flag='-r' ;;
5846 esac
5847 fi
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5849 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5850 reload_flag=$lt_cv_ld_reload_flag
5851 case $reload_flag in
5852 "" | " "*) ;;
5853 *) reload_flag=" $reload_flag" ;;
5854 esac
5855 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5856 case $host_os in
5857 cygwin* | mingw* | pw32* | cegcc*)
5858 if test yes != "$GCC"; then
5859 reload_cmds=false
5860 fi
5861 ;;
5862 darwin*)
5863 if test yes = "$GCC"; then
5864 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5865 else
5866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5867 fi
5868 ;;
5869 esac
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5881 set dummy ${ac_tool_prefix}file; ac_word=$2
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 printf %s "checking for $ac_word... " >&6; }
5884 if test ${ac_cv_prog_FILECMD+y}
5885 then :
5886 printf %s "(cached) " >&6
5887 else case e in #(
5888 e) if test -n "$FILECMD"; then
5889 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894 IFS=$as_save_IFS
5895 case $as_dir in #(((
5896 '') as_dir=./ ;;
5897 */) ;;
5898 *) as_dir=$as_dir/ ;;
5899 esac
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5902 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5904 break 2
5905 fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910 fi ;;
5911 esac
5912 fi
5913 FILECMD=$ac_cv_prog_FILECMD
5914 if test -n "$FILECMD"; then
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5916 printf "%s\n" "$FILECMD" >&6; }
5917 else
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 printf "%s\n" "no" >&6; }
5920 fi
5921
5922
5923 fi
5924 if test -z "$ac_cv_prog_FILECMD"; then
5925 ac_ct_FILECMD=$FILECMD
5926 # Extract the first word of "file", so it can be a program name with args.
5927 set dummy file; ac_word=$2
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 printf %s "checking for $ac_word... " >&6; }
5930 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5931 then :
5932 printf %s "(cached) " >&6
5933 else case e in #(
5934 e) if test -n "$ac_ct_FILECMD"; then
5935 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940 IFS=$as_save_IFS
5941 case $as_dir in #(((
5942 '') as_dir=./ ;;
5943 */) ;;
5944 *) as_dir=$as_dir/ ;;
5945 esac
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_ac_ct_FILECMD="file"
5949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5950 break 2
5951 fi
5952 done
5953 done
5954 IFS=$as_save_IFS
5955
5956 fi ;;
5957 esac
5958 fi
5959 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5960 if test -n "$ac_ct_FILECMD"; then
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5962 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5963 else
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 printf "%s\n" "no" >&6; }
5966 fi
5967
5968 if test "x$ac_ct_FILECMD" = x; then
5969 FILECMD=":"
5970 else
5971 case $cross_compiling:$ac_tool_warned in
5972 yes:)
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 ac_tool_warned=yes ;;
5976 esac
5977 FILECMD=$ac_ct_FILECMD
5978 fi
5979 else
5980 FILECMD="$ac_cv_prog_FILECMD"
5981 fi
5982
5983
5984
5985
5986
5987
5988
5989 if test -n "$ac_tool_prefix"; then
5990 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5991 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 printf %s "checking for $ac_word... " >&6; }
5994 if test ${ac_cv_prog_OBJDUMP+y}
5995 then :
5996 printf %s "(cached) " >&6
5997 else case e in #(
5998 e) if test -n "$OBJDUMP"; then
5999 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004 IFS=$as_save_IFS
6005 case $as_dir in #(((
6006 '') as_dir=./ ;;
6007 */) ;;
6008 *) as_dir=$as_dir/ ;;
6009 esac
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6012 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6014 break 2
6015 fi
6016 done
6017 done
6018 IFS=$as_save_IFS
6019
6020 fi ;;
6021 esac
6022 fi
6023 OBJDUMP=$ac_cv_prog_OBJDUMP
6024 if test -n "$OBJDUMP"; then
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6026 printf "%s\n" "$OBJDUMP" >&6; }
6027 else
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 printf "%s\n" "no" >&6; }
6030 fi
6031
6032
6033 fi
6034 if test -z "$ac_cv_prog_OBJDUMP"; then
6035 ac_ct_OBJDUMP=$OBJDUMP
6036 # Extract the first word of "objdump", so it can be a program name with args.
6037 set dummy objdump; ac_word=$2
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 printf %s "checking for $ac_word... " >&6; }
6040 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6041 then :
6042 printf %s "(cached) " >&6
6043 else case e in #(
6044 e) if test -n "$ac_ct_OBJDUMP"; then
6045 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050 IFS=$as_save_IFS
6051 case $as_dir in #(((
6052 '') as_dir=./ ;;
6053 */) ;;
6054 *) as_dir=$as_dir/ ;;
6055 esac
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6058 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6060 break 2
6061 fi
6062 done
6063 done
6064 IFS=$as_save_IFS
6065
6066 fi ;;
6067 esac
6068 fi
6069 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6070 if test -n "$ac_ct_OBJDUMP"; then
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6072 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6073 else
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 printf "%s\n" "no" >&6; }
6076 fi
6077
6078 if test "x$ac_ct_OBJDUMP" = x; then
6079 OBJDUMP="false"
6080 else
6081 case $cross_compiling:$ac_tool_warned in
6082 yes:)
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087 OBJDUMP=$ac_ct_OBJDUMP
6088 fi
6089 else
6090 OBJDUMP="$ac_cv_prog_OBJDUMP"
6091 fi
6092
6093 test -z "$OBJDUMP" && OBJDUMP=objdump
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6104 printf %s "checking how to recognize dependent libraries... " >&6; }
6105 if test ${lt_cv_deplibs_check_method+y}
6106 then :
6107 printf %s "(cached) " >&6
6108 else case e in #(
6109 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6110 lt_cv_file_magic_test_file=
6111 lt_cv_deplibs_check_method='unknown'
6112 # Need to set the preceding variable on all platforms that support
6113 # interlibrary dependencies.
6114 # 'none' -- dependencies not supported.
6115 # 'unknown' -- same as none, but documents that we really don't know.
6116 # 'pass_all' -- all dependencies passed with no checks.
6117 # 'test_compile' -- check by making test program.
6118 # 'file_magic [[regex]]' -- check by looking for files in library path
6119 # that responds to the $file_magic_cmd with a given extended regex.
6120 # If you have 'file' or equivalent on your system and you're not sure
6121 # whether 'pass_all' will *always* work, you probably want this one.
6122
6123 case $host_os in
6124 aix[4-9]*)
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
6127
6128 beos*)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131
6132 bsdi[45]*)
6133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6134 lt_cv_file_magic_cmd='$FILECMD -L'
6135 lt_cv_file_magic_test_file=/shlib/libc.so
6136 ;;
6137
6138 cygwin*)
6139 # func_win32_libid is a shell function defined in ltmain.sh
6140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6141 lt_cv_file_magic_cmd='func_win32_libid'
6142 ;;
6143
6144 mingw* | pw32*)
6145 # Base MSYS/MinGW do not provide the 'file' command needed by
6146 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6147 # unless we find 'file', for example because we are cross-compiling.
6148 if ( file / ) >/dev/null 2>&1; then
6149 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6150 lt_cv_file_magic_cmd='func_win32_libid'
6151 else
6152 # Keep this pattern in sync with the one in func_win32_libid.
6153 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6154 lt_cv_file_magic_cmd='$OBJDUMP -f'
6155 fi
6156 ;;
6157
6158 cegcc*)
6159 # use the weaker test based on 'objdump'. See mingw*.
6160 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6161 lt_cv_file_magic_cmd='$OBJDUMP -f'
6162 ;;
6163
6164 darwin* | rhapsody*)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167
6168 freebsd* | dragonfly* | midnightbsd*)
6169 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6170 case $host_cpu in
6171 i*86 )
6172 # Not sure whether the presence of OpenBSD here was a mistake.
6173 # Let's accept both of them until this is cleared up.
6174 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6175 lt_cv_file_magic_cmd=$FILECMD
6176 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6177 ;;
6178 esac
6179 else
6180 lt_cv_deplibs_check_method=pass_all
6181 fi
6182 ;;
6183
6184 haiku*)
6185 lt_cv_deplibs_check_method=pass_all
6186 ;;
6187
6188 hpux10.20* | hpux11*)
6189 lt_cv_file_magic_cmd=$FILECMD
6190 case $host_cpu in
6191 ia64*)
6192 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6193 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6194 ;;
6195 hppa*64*)
6196 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]'
6197 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6198 ;;
6199 *)
6200 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6201 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6202 ;;
6203 esac
6204 ;;
6205
6206 interix[3-9]*)
6207 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6209 ;;
6210
6211 irix5* | irix6* | nonstopux*)
6212 case $LD in
6213 *-32|*"-32 ") libmagic=32-bit;;
6214 *-n32|*"-n32 ") libmagic=N32;;
6215 *-64|*"-64 ") libmagic=64-bit;;
6216 *) libmagic=never-match;;
6217 esac
6218 lt_cv_deplibs_check_method=pass_all
6219 ;;
6220
6221 # This must be glibc/ELF.
6222 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6223 lt_cv_deplibs_check_method=pass_all
6224 ;;
6225
6226 netbsd*)
6227 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6229 else
6230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6231 fi
6232 ;;
6233
6234 newos6*)
6235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6236 lt_cv_file_magic_cmd=$FILECMD
6237 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6238 ;;
6239
6240 *nto* | *qnx*)
6241 lt_cv_deplibs_check_method=pass_all
6242 ;;
6243
6244 openbsd* | bitrig*)
6245 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6247 else
6248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6249 fi
6250 ;;
6251
6252 osf3* | osf4* | osf5*)
6253 lt_cv_deplibs_check_method=pass_all
6254 ;;
6255
6256 rdos*)
6257 lt_cv_deplibs_check_method=pass_all
6258 ;;
6259
6260 solaris*)
6261 lt_cv_deplibs_check_method=pass_all
6262 ;;
6263
6264 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267
6268 sysv4 | sysv4.3*)
6269 case $host_vendor in
6270 motorola)
6271 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]'
6272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6273 ;;
6274 ncr)
6275 lt_cv_deplibs_check_method=pass_all
6276 ;;
6277 sequent)
6278 lt_cv_file_magic_cmd='/bin/file'
6279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6280 ;;
6281 sni)
6282 lt_cv_file_magic_cmd='/bin/file'
6283 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6284 lt_cv_file_magic_test_file=/lib/libc.so
6285 ;;
6286 siemens)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289 pc)
6290 lt_cv_deplibs_check_method=pass_all
6291 ;;
6292 esac
6293 ;;
6294
6295 tpf*)
6296 lt_cv_deplibs_check_method=pass_all
6297 ;;
6298 os2*)
6299 lt_cv_deplibs_check_method=pass_all
6300 ;;
6301 esac
6302 ;;
6303 esac
6304 fi
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6306 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6307
6308 file_magic_glob=
6309 want_nocaseglob=no
6310 if test "$build" = "$host"; then
6311 case $host_os in
6312 mingw* | pw32*)
6313 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6314 want_nocaseglob=yes
6315 else
6316 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6317 fi
6318 ;;
6319 esac
6320 fi
6321
6322 file_magic_cmd=$lt_cv_file_magic_cmd
6323 deplibs_check_method=$lt_cv_deplibs_check_method
6324 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347 if test -n "$ac_tool_prefix"; then
6348 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6349 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 printf %s "checking for $ac_word... " >&6; }
6352 if test ${ac_cv_prog_DLLTOOL+y}
6353 then :
6354 printf %s "(cached) " >&6
6355 else case e in #(
6356 e) if test -n "$DLLTOOL"; then
6357 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362 IFS=$as_save_IFS
6363 case $as_dir in #(((
6364 '') as_dir=./ ;;
6365 */) ;;
6366 *) as_dir=$as_dir/ ;;
6367 esac
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6370 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 fi ;;
6379 esac
6380 fi
6381 DLLTOOL=$ac_cv_prog_DLLTOOL
6382 if test -n "$DLLTOOL"; then
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6384 printf "%s\n" "$DLLTOOL" >&6; }
6385 else
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 printf "%s\n" "no" >&6; }
6388 fi
6389
6390
6391 fi
6392 if test -z "$ac_cv_prog_DLLTOOL"; then
6393 ac_ct_DLLTOOL=$DLLTOOL
6394 # Extract the first word of "dlltool", so it can be a program name with args.
6395 set dummy dlltool; ac_word=$2
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 printf %s "checking for $ac_word... " >&6; }
6398 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6399 then :
6400 printf %s "(cached) " >&6
6401 else case e in #(
6402 e) if test -n "$ac_ct_DLLTOOL"; then
6403 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408 IFS=$as_save_IFS
6409 case $as_dir in #(((
6410 '') as_dir=./ ;;
6411 */) ;;
6412 *) as_dir=$as_dir/ ;;
6413 esac
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_ac_ct_DLLTOOL="dlltool"
6417 printf "%s\n" "$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 esac
6426 fi
6427 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6428 if test -n "$ac_ct_DLLTOOL"; then
6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6430 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6431 else
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 printf "%s\n" "no" >&6; }
6434 fi
6435
6436 if test "x$ac_ct_DLLTOOL" = x; then
6437 DLLTOOL="false"
6438 else
6439 case $cross_compiling:$ac_tool_warned in
6440 yes:)
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6442 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6443 ac_tool_warned=yes ;;
6444 esac
6445 DLLTOOL=$ac_ct_DLLTOOL
6446 fi
6447 else
6448 DLLTOOL="$ac_cv_prog_DLLTOOL"
6449 fi
6450
6451 test -z "$DLLTOOL" && DLLTOOL=dlltool
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6463 printf %s "checking how to associate runtime and link libraries... " >&6; }
6464 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6465 then :
6466 printf %s "(cached) " >&6
6467 else case e in #(
6468 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6469
6470 case $host_os in
6471 cygwin* | mingw* | pw32* | cegcc*)
6472 # two different shell functions defined in ltmain.sh;
6473 # decide which one to use based on capabilities of $DLLTOOL
6474 case `$DLLTOOL --help 2>&1` in
6475 *--identify-strict*)
6476 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6477 ;;
6478 *)
6479 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6480 ;;
6481 esac
6482 ;;
6483 *)
6484 # fallback: assume linklib IS sharedlib
6485 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6486 ;;
6487 esac
6488 ;;
6489 esac
6490 fi
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6492 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6493 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6494 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6495
6496
6497
6498
6499
6500
6501
6502
6503 if test -n "$ac_tool_prefix"; then
6504 for ac_prog in ar
6505 do
6506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 printf %s "checking for $ac_word... " >&6; }
6510 if test ${ac_cv_prog_AR+y}
6511 then :
6512 printf %s "(cached) " >&6
6513 else case e in #(
6514 e) if test -n "$AR"; then
6515 ac_cv_prog_AR="$AR" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520 IFS=$as_save_IFS
6521 case $as_dir in #(((
6522 '') as_dir=./ ;;
6523 */) ;;
6524 *) as_dir=$as_dir/ ;;
6525 esac
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi ;;
6537 esac
6538 fi
6539 AR=$ac_cv_prog_AR
6540 if test -n "$AR"; then
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6542 printf "%s\n" "$AR" >&6; }
6543 else
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 printf "%s\n" "no" >&6; }
6546 fi
6547
6548
6549 test -n "$AR" && break
6550 done
6551 fi
6552 if test -z "$AR"; then
6553 ac_ct_AR=$AR
6554 for ac_prog in ar
6555 do
6556 # Extract the first word of "$ac_prog", so it can be a program name with args.
6557 set dummy $ac_prog; ac_word=$2
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559 printf %s "checking for $ac_word... " >&6; }
6560 if test ${ac_cv_prog_ac_ct_AR+y}
6561 then :
6562 printf %s "(cached) " >&6
6563 else case e in #(
6564 e) if test -n "$ac_ct_AR"; then
6565 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6569 do
6570 IFS=$as_save_IFS
6571 case $as_dir in #(((
6572 '') as_dir=./ ;;
6573 */) ;;
6574 *) as_dir=$as_dir/ ;;
6575 esac
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6578 ac_cv_prog_ac_ct_AR="$ac_prog"
6579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi ;;
6587 esac
6588 fi
6589 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6590 if test -n "$ac_ct_AR"; then
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6592 printf "%s\n" "$ac_ct_AR" >&6; }
6593 else
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 printf "%s\n" "no" >&6; }
6596 fi
6597
6598
6599 test -n "$ac_ct_AR" && break
6600 done
6601
6602 if test "x$ac_ct_AR" = x; then
6603 AR="false"
6604 else
6605 case $cross_compiling:$ac_tool_warned in
6606 yes:)
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6609 ac_tool_warned=yes ;;
6610 esac
6611 AR=$ac_ct_AR
6612 fi
6613 fi
6614
6615 : ${AR=ar}
6616
6617
6618
6619
6620
6621
6622 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6623 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6624 # higher priority because thats what people were doing historically (setting
6625 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6626 # variable obsoleted/removed.
6627
6628 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6629 lt_ar_flags=$AR_FLAGS
6630
6631
6632
6633
6634
6635
6636 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6637 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6638
6639
6640
6641
6642
6643
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6645 printf %s "checking for archiver @FILE support... " >&6; }
6646 if test ${lt_cv_ar_at_file+y}
6647 then :
6648 printf %s "(cached) " >&6
6649 else case e in #(
6650 e) lt_cv_ar_at_file=no
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653
6654 int
6655 main (void)
6656 {
6657
6658 ;
6659 return 0;
6660 }
6661 _ACEOF
6662 if ac_fn_c_try_compile "$LINENO"
6663 then :
6664 echo conftest.$ac_objext > conftest.lst
6665 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6667 (eval $lt_ar_try) 2>&5
6668 ac_status=$?
6669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670 test $ac_status = 0; }
6671 if test 0 -eq "$ac_status"; then
6672 # Ensure the archiver fails upon bogus file names.
6673 rm -f conftest.$ac_objext libconftest.a
6674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6675 (eval $lt_ar_try) 2>&5
6676 ac_status=$?
6677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6678 test $ac_status = 0; }
6679 if test 0 -ne "$ac_status"; then
6680 lt_cv_ar_at_file=@
6681 fi
6682 fi
6683 rm -f conftest.* libconftest.a
6684
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6687 ;;
6688 esac
6689 fi
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6691 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6692
6693 if test no = "$lt_cv_ar_at_file"; then
6694 archiver_list_spec=
6695 else
6696 archiver_list_spec=$lt_cv_ar_at_file
6697 fi
6698
6699
6700
6701
6702
6703
6704
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}strip; ac_word=$2
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 printf %s "checking for $ac_word... " >&6; }
6710 if test ${ac_cv_prog_STRIP+y}
6711 then :
6712 printf %s "(cached) " >&6
6713 else case e in #(
6714 e) if test -n "$STRIP"; then
6715 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720 IFS=$as_save_IFS
6721 case $as_dir in #(((
6722 '') as_dir=./ ;;
6723 */) ;;
6724 *) as_dir=$as_dir/ ;;
6725 esac
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 printf "%s\n" "$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 esac
6738 fi
6739 STRIP=$ac_cv_prog_STRIP
6740 if test -n "$STRIP"; then
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6742 printf "%s\n" "$STRIP" >&6; }
6743 else
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 printf "%s\n" "no" >&6; }
6746 fi
6747
6748
6749 fi
6750 if test -z "$ac_cv_prog_STRIP"; then
6751 ac_ct_STRIP=$STRIP
6752 # Extract the first word of "strip", so it can be a program name with args.
6753 set dummy strip; ac_word=$2
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 printf %s "checking for $ac_word... " >&6; }
6756 if test ${ac_cv_prog_ac_ct_STRIP+y}
6757 then :
6758 printf %s "(cached) " >&6
6759 else case e in #(
6760 e) if test -n "$ac_ct_STRIP"; then
6761 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766 IFS=$as_save_IFS
6767 case $as_dir in #(((
6768 '') as_dir=./ ;;
6769 */) ;;
6770 *) as_dir=$as_dir/ ;;
6771 esac
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6774 ac_cv_prog_ac_ct_STRIP="strip"
6775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi ;;
6783 esac
6784 fi
6785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6786 if test -n "$ac_ct_STRIP"; then
6787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6788 printf "%s\n" "$ac_ct_STRIP" >&6; }
6789 else
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 printf "%s\n" "no" >&6; }
6792 fi
6793
6794 if test "x$ac_ct_STRIP" = x; then
6795 STRIP=":"
6796 else
6797 case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801 ac_tool_warned=yes ;;
6802 esac
6803 STRIP=$ac_ct_STRIP
6804 fi
6805 else
6806 STRIP="$ac_cv_prog_STRIP"
6807 fi
6808
6809 test -z "$STRIP" && STRIP=:
6810
6811
6812
6813
6814
6815
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 printf %s "checking for $ac_word... " >&6; }
6821 if test ${ac_cv_prog_RANLIB+y}
6822 then :
6823 printf %s "(cached) " >&6
6824 else case e in #(
6825 e) if test -n "$RANLIB"; then
6826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831 IFS=$as_save_IFS
6832 case $as_dir in #(((
6833 '') as_dir=./ ;;
6834 */) ;;
6835 *) as_dir=$as_dir/ ;;
6836 esac
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi ;;
6848 esac
6849 fi
6850 RANLIB=$ac_cv_prog_RANLIB
6851 if test -n "$RANLIB"; then
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6853 printf "%s\n" "$RANLIB" >&6; }
6854 else
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 printf "%s\n" "no" >&6; }
6857 fi
6858
6859
6860 fi
6861 if test -z "$ac_cv_prog_RANLIB"; then
6862 ac_ct_RANLIB=$RANLIB
6863 # Extract the first word of "ranlib", so it can be a program name with args.
6864 set dummy ranlib; ac_word=$2
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 printf %s "checking for $ac_word... " >&6; }
6867 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6868 then :
6869 printf %s "(cached) " >&6
6870 else case e in #(
6871 e) if test -n "$ac_ct_RANLIB"; then
6872 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877 IFS=$as_save_IFS
6878 case $as_dir in #(((
6879 '') as_dir=./ ;;
6880 */) ;;
6881 *) as_dir=$as_dir/ ;;
6882 esac
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6885 ac_cv_prog_ac_ct_RANLIB="ranlib"
6886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6892
6893 fi ;;
6894 esac
6895 fi
6896 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6897 if test -n "$ac_ct_RANLIB"; then
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6899 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6900 else
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 printf "%s\n" "no" >&6; }
6903 fi
6904
6905 if test "x$ac_ct_RANLIB" = x; then
6906 RANLIB=":"
6907 else
6908 case $cross_compiling:$ac_tool_warned in
6909 yes:)
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6911 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912 ac_tool_warned=yes ;;
6913 esac
6914 RANLIB=$ac_ct_RANLIB
6915 fi
6916 else
6917 RANLIB="$ac_cv_prog_RANLIB"
6918 fi
6919
6920 test -z "$RANLIB" && RANLIB=:
6921
6922
6923
6924
6925
6926
6927 # Determine commands to create old-style static archives.
6928 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6929 old_postinstall_cmds='chmod 644 $oldlib'
6930 old_postuninstall_cmds=
6931
6932 if test -n "$RANLIB"; then
6933 case $host_os in
6934 bitrig* | openbsd*)
6935 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6936 ;;
6937 *)
6938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6939 ;;
6940 esac
6941 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6942 fi
6943
6944 case $host_os in
6945 darwin*)
6946 lock_old_archive_extraction=yes ;;
6947 *)
6948 lock_old_archive_extraction=no ;;
6949 esac
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989 # If no C compiler was specified, use CC.
6990 LTCC=${LTCC-"$CC"}
6991
6992 # If no C compiler flags were specified, use CFLAGS.
6993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6994
6995 # Allow CC to be a program name with arguments.
6996 compiler=$CC
6997
6998
6999 # Check for command to grab the raw symbol name followed by C symbol from nm.
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7001 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7002 if test ${lt_cv_sys_global_symbol_pipe+y}
7003 then :
7004 printf %s "(cached) " >&6
7005 else case e in #(
7006 e)
7007 # These are sane defaults that work on at least a few old systems.
7008 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7009
7010 # Character class describing NM global symbol codes.
7011 symcode='[BCDEGRST]'
7012
7013 # Regexp to match symbols that can be accessed directly from C.
7014 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7015
7016 # Define system-specific variables.
7017 case $host_os in
7018 aix*)
7019 symcode='[BCDT]'
7020 ;;
7021 cygwin* | mingw* | pw32* | cegcc*)
7022 symcode='[ABCDGISTW]'
7023 ;;
7024 hpux*)
7025 if test ia64 = "$host_cpu"; then
7026 symcode='[ABCDEGRST]'
7027 fi
7028 ;;
7029 irix* | nonstopux*)
7030 symcode='[BCDEGRST]'
7031 ;;
7032 osf*)
7033 symcode='[BCDEGQRST]'
7034 ;;
7035 solaris*)
7036 symcode='[BDRT]'
7037 ;;
7038 sco3.2v5*)
7039 symcode='[DT]'
7040 ;;
7041 sysv4.2uw2*)
7042 symcode='[DT]'
7043 ;;
7044 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7045 symcode='[ABDT]'
7046 ;;
7047 sysv4)
7048 symcode='[DFNSTU]'
7049 ;;
7050 esac
7051
7052 # If we're using GNU nm, then use its standard symbol codes.
7053 case `$NM -V 2>&1` in
7054 *GNU* | *'with BFD'*)
7055 symcode='[ABCDGIRSTW]' ;;
7056 esac
7057
7058 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7059 # Gets list of data symbols to import.
7060 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7061 # Adjust the below global symbol transforms to fixup imported variables.
7062 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7063 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7064 lt_c_name_lib_hook="\
7065 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7066 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7067 else
7068 # Disable hooks by default.
7069 lt_cv_sys_global_symbol_to_import=
7070 lt_cdecl_hook=
7071 lt_c_name_hook=
7072 lt_c_name_lib_hook=
7073 fi
7074
7075 # Transform an extracted symbol line into a proper C declaration.
7076 # Some systems (esp. on ia64) link data and code symbols differently,
7077 # so use this general approach.
7078 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7079 $lt_cdecl_hook\
7080 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7081 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7082
7083 # Transform an extracted symbol line into symbol name and symbol address
7084 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7085 $lt_c_name_hook\
7086 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7087 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7088
7089 # Transform an extracted symbol line into symbol name with lib prefix and
7090 # symbol address.
7091 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7092 $lt_c_name_lib_hook\
7093 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7094 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7095 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7096
7097 # Handle CRLF in mingw tool chain
7098 opt_cr=
7099 case $build_os in
7100 mingw*)
7101 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7102 ;;
7103 esac
7104
7105 # Try without a prefix underscore, then with it.
7106 for ac_symprfx in "" "_"; do
7107
7108 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7109 symxfrm="\\1 $ac_symprfx\\2 \\2"
7110
7111 # Write the raw and C identifiers.
7112 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7113 # Fake it for dumpbin and say T for any non-static function,
7114 # D for any global variable and I for any imported variable.
7115 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7116 # which start with @ or ?.
7117 lt_cv_sys_global_symbol_pipe="$AWK '"\
7118 " {last_section=section; section=\$ 3};"\
7119 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7120 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7121 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7122 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7123 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7124 " \$ 0!~/External *\|/{next};"\
7125 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7126 " {if(hide[section]) next};"\
7127 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7128 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7129 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7130 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7131 " ' prfx=^$ac_symprfx"
7132 else
7133 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7134 fi
7135 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7136
7137 # Check to see that the pipe works correctly.
7138 pipe_works=no
7139
7140 rm -f conftest*
7141 cat > conftest.$ac_ext <<_LT_EOF
7142 #ifdef __cplusplus
7143 extern "C" {
7144 #endif
7145 char nm_test_var;
7146 void nm_test_func(void);
7147 void nm_test_func(void){}
7148 #ifdef __cplusplus
7149 }
7150 #endif
7151 int main(){nm_test_var='a';nm_test_func();return(0);}
7152 _LT_EOF
7153
7154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7155 (eval $ac_compile) 2>&5
7156 ac_status=$?
7157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158 test $ac_status = 0; }; then
7159 # Now try to grab the symbols.
7160 nlist=conftest.nm
7161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7162 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7163 ac_status=$?
7164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7165 test $ac_status = 0; } && test -s "$nlist"; then
7166 # Try sorting and uniquifying the output.
7167 if sort "$nlist" | uniq > "$nlist"T; then
7168 mv -f "$nlist"T "$nlist"
7169 else
7170 rm -f "$nlist"T
7171 fi
7172
7173 # Make sure that we snagged all the symbols we need.
7174 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7175 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7176 cat <<_LT_EOF > conftest.$ac_ext
7177 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7178 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7179 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7180 relocations are performed -- see ld's documentation on pseudo-relocs. */
7181 # define LT_DLSYM_CONST
7182 #elif defined __osf__
7183 /* This system does not cope well with relocations in const data. */
7184 # define LT_DLSYM_CONST
7185 #else
7186 # define LT_DLSYM_CONST const
7187 #endif
7188
7189 #ifdef __cplusplus
7190 extern "C" {
7191 #endif
7192
7193 _LT_EOF
7194 # Now generate the symbol file.
7195 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7196
7197 cat <<_LT_EOF >> conftest.$ac_ext
7198
7199 /* The mapping between symbol names and symbols. */
7200 LT_DLSYM_CONST struct {
7201 const char *name;
7202 void *address;
7203 }
7204 lt__PROGRAM__LTX_preloaded_symbols[] =
7205 {
7206 { "@PROGRAM@", (void *) 0 },
7207 _LT_EOF
7208 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7209 cat <<\_LT_EOF >> conftest.$ac_ext
7210 {0, (void *) 0}
7211 };
7212
7213 /* This works around a problem in FreeBSD linker */
7214 #ifdef FREEBSD_WORKAROUND
7215 static const void *lt_preloaded_setup() {
7216 return lt__PROGRAM__LTX_preloaded_symbols;
7217 }
7218 #endif
7219
7220 #ifdef __cplusplus
7221 }
7222 #endif
7223 _LT_EOF
7224 # Now try linking the two files.
7225 mv conftest.$ac_objext conftstm.$ac_objext
7226 lt_globsym_save_LIBS=$LIBS
7227 lt_globsym_save_CFLAGS=$CFLAGS
7228 LIBS=conftstm.$ac_objext
7229 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7231 (eval $ac_link) 2>&5
7232 ac_status=$?
7233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7235 pipe_works=yes
7236 fi
7237 LIBS=$lt_globsym_save_LIBS
7238 CFLAGS=$lt_globsym_save_CFLAGS
7239 else
7240 echo "cannot find nm_test_func in $nlist" >&5
7241 fi
7242 else
7243 echo "cannot find nm_test_var in $nlist" >&5
7244 fi
7245 else
7246 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7247 fi
7248 else
7249 echo "$progname: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7251 fi
7252 rm -rf conftest* conftst*
7253
7254 # Do not use the global_symbol_pipe unless it works.
7255 if test yes = "$pipe_works"; then
7256 break
7257 else
7258 lt_cv_sys_global_symbol_pipe=
7259 fi
7260 done
7261 ;;
7262 esac
7263 fi
7264
7265 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7266 lt_cv_sys_global_symbol_to_cdecl=
7267 fi
7268 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7270 printf "%s\n" "failed" >&6; }
7271 else
7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7273 printf "%s\n" "ok" >&6; }
7274 fi
7275
7276 # Response file support.
7277 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7278 nm_file_list_spec='@'
7279 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7280 nm_file_list_spec='@'
7281 fi
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7320 printf %s "checking for sysroot... " >&6; }
7321
7322 # Check whether --with-sysroot was given.
7323 if test ${with_sysroot+y}
7324 then :
7325 withval=$with_sysroot;
7326 else case e in #(
7327 e) with_sysroot=no ;;
7328 esac
7329 fi
7330
7331
7332 lt_sysroot=
7333 case $with_sysroot in #(
7334 yes)
7335 if test yes = "$GCC"; then
7336 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7337 fi
7338 ;; #(
7339 /*)
7340 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7341 ;; #(
7342 no|'')
7343 ;; #(
7344 *)
7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7346 printf "%s\n" "$with_sysroot" >&6; }
7347 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7348 ;;
7349 esac
7350
7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7352 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7353
7354
7355
7356
7357
7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7359 printf %s "checking for a working dd... " >&6; }
7360 if test ${ac_cv_path_lt_DD+y}
7361 then :
7362 printf %s "(cached) " >&6
7363 else case e in #(
7364 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7365 cat conftest.i conftest.i >conftest2.i
7366 : ${lt_DD:=$DD}
7367 if test -z "$lt_DD"; then
7368 ac_path_lt_DD_found=false
7369 # Loop through the user's path and test for each of PROGNAME-LIST
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373 IFS=$as_save_IFS
7374 case $as_dir in #(((
7375 '') as_dir=./ ;;
7376 */) ;;
7377 *) as_dir=$as_dir/ ;;
7378 esac
7379 for ac_prog in dd
7380 do
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7383 as_fn_executable_p "$ac_path_lt_DD" || continue
7384 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7385 cmp -s conftest.i conftest.out \
7386 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7387 fi
7388 $ac_path_lt_DD_found && break 3
7389 done
7390 done
7391 done
7392 IFS=$as_save_IFS
7393 if test -z "$ac_cv_path_lt_DD"; then
7394 :
7395 fi
7396 else
7397 ac_cv_path_lt_DD=$lt_DD
7398 fi
7399
7400 rm -f conftest.i conftest2.i conftest.out ;;
7401 esac
7402 fi
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7404 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7405
7406
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7408 printf %s "checking how to truncate binary pipes... " >&6; }
7409 if test ${lt_cv_truncate_bin+y}
7410 then :
7411 printf %s "(cached) " >&6
7412 else case e in #(
7413 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7414 cat conftest.i conftest.i >conftest2.i
7415 lt_cv_truncate_bin=
7416 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7417 cmp -s conftest.i conftest.out \
7418 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7419 fi
7420 rm -f conftest.i conftest2.i conftest.out
7421 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7422 esac
7423 fi
7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7425 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7426
7427
7428
7429
7430
7431
7432
7433 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7434 func_cc_basename ()
7435 {
7436 for cc_temp in $*""; do
7437 case $cc_temp in
7438 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7439 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7440 \-*) ;;
7441 *) break;;
7442 esac
7443 done
7444 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7445 }
7446
7447 # Check whether --enable-libtool-lock was given.
7448 if test ${enable_libtool_lock+y}
7449 then :
7450 enableval=$enable_libtool_lock;
7451 fi
7452
7453 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7454
7455 # Some flags need to be propagated to the compiler or linker for good
7456 # libtool support.
7457 case $host in
7458 ia64-*-hpux*)
7459 # Find out what ABI is being produced by ac_compile, and set mode
7460 # options accordingly.
7461 echo 'int i;' > conftest.$ac_ext
7462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7463 (eval $ac_compile) 2>&5
7464 ac_status=$?
7465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7466 test $ac_status = 0; }; then
7467 case `$FILECMD conftest.$ac_objext` in
7468 *ELF-32*)
7469 HPUX_IA64_MODE=32
7470 ;;
7471 *ELF-64*)
7472 HPUX_IA64_MODE=64
7473 ;;
7474 esac
7475 fi
7476 rm -rf conftest*
7477 ;;
7478 *-*-irix6*)
7479 # Find out what ABI is being produced by ac_compile, and set linker
7480 # options accordingly.
7481 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7483 (eval $ac_compile) 2>&5
7484 ac_status=$?
7485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7486 test $ac_status = 0; }; then
7487 if test yes = "$lt_cv_prog_gnu_ld"; then
7488 case `$FILECMD conftest.$ac_objext` in
7489 *32-bit*)
7490 LD="${LD-ld} -melf32bsmip"
7491 ;;
7492 *N32*)
7493 LD="${LD-ld} -melf32bmipn32"
7494 ;;
7495 *64-bit*)
7496 LD="${LD-ld} -melf64bmip"
7497 ;;
7498 esac
7499 else
7500 case `$FILECMD conftest.$ac_objext` in
7501 *32-bit*)
7502 LD="${LD-ld} -32"
7503 ;;
7504 *N32*)
7505 LD="${LD-ld} -n32"
7506 ;;
7507 *64-bit*)
7508 LD="${LD-ld} -64"
7509 ;;
7510 esac
7511 fi
7512 fi
7513 rm -rf conftest*
7514 ;;
7515
7516 mips64*-*linux*)
7517 # Find out what ABI is being produced by ac_compile, and set linker
7518 # options accordingly.
7519 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7521 (eval $ac_compile) 2>&5
7522 ac_status=$?
7523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524 test $ac_status = 0; }; then
7525 emul=elf
7526 case `$FILECMD conftest.$ac_objext` in
7527 *32-bit*)
7528 emul="${emul}32"
7529 ;;
7530 *64-bit*)
7531 emul="${emul}64"
7532 ;;
7533 esac
7534 case `$FILECMD conftest.$ac_objext` in
7535 *MSB*)
7536 emul="${emul}btsmip"
7537 ;;
7538 *LSB*)
7539 emul="${emul}ltsmip"
7540 ;;
7541 esac
7542 case `$FILECMD conftest.$ac_objext` in
7543 *N32*)
7544 emul="${emul}n32"
7545 ;;
7546 esac
7547 LD="${LD-ld} -m $emul"
7548 fi
7549 rm -rf conftest*
7550 ;;
7551
7552 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7553 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7554 # Find out what ABI is being produced by ac_compile, and set linker
7555 # options accordingly. Note that the listed cases only cover the
7556 # situations where additional linker options are needed (such as when
7557 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7558 # vice versa); the common cases where no linker options are needed do
7559 # not appear in the list.
7560 echo 'int i;' > conftest.$ac_ext
7561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7562 (eval $ac_compile) 2>&5
7563 ac_status=$?
7564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565 test $ac_status = 0; }; then
7566 case `$FILECMD conftest.o` in
7567 *32-bit*)
7568 case $host in
7569 x86_64-*kfreebsd*-gnu)
7570 LD="${LD-ld} -m elf_i386_fbsd"
7571 ;;
7572 x86_64-*linux*)
7573 case `$FILECMD conftest.o` in
7574 *x86-64*)
7575 LD="${LD-ld} -m elf32_x86_64"
7576 ;;
7577 *)
7578 LD="${LD-ld} -m elf_i386"
7579 ;;
7580 esac
7581 ;;
7582 powerpc64le-*linux*)
7583 LD="${LD-ld} -m elf32lppclinux"
7584 ;;
7585 powerpc64-*linux*)
7586 LD="${LD-ld} -m elf32ppclinux"
7587 ;;
7588 s390x-*linux*)
7589 LD="${LD-ld} -m elf_s390"
7590 ;;
7591 sparc64-*linux*)
7592 LD="${LD-ld} -m elf32_sparc"
7593 ;;
7594 esac
7595 ;;
7596 *64-bit*)
7597 case $host in
7598 x86_64-*kfreebsd*-gnu)
7599 LD="${LD-ld} -m elf_x86_64_fbsd"
7600 ;;
7601 x86_64-*linux*)
7602 LD="${LD-ld} -m elf_x86_64"
7603 ;;
7604 powerpcle-*linux*)
7605 LD="${LD-ld} -m elf64lppc"
7606 ;;
7607 powerpc-*linux*)
7608 LD="${LD-ld} -m elf64ppc"
7609 ;;
7610 s390*-*linux*|s390*-*tpf*)
7611 LD="${LD-ld} -m elf64_s390"
7612 ;;
7613 sparc*-*linux*)
7614 LD="${LD-ld} -m elf64_sparc"
7615 ;;
7616 esac
7617 ;;
7618 esac
7619 fi
7620 rm -rf conftest*
7621 ;;
7622
7623 *-*-sco3.2v5*)
7624 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7625 SAVE_CFLAGS=$CFLAGS
7626 CFLAGS="$CFLAGS -belf"
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7628 printf %s "checking whether the C compiler needs -belf... " >&6; }
7629 if test ${lt_cv_cc_needs_belf+y}
7630 then :
7631 printf %s "(cached) " >&6
7632 else case e in #(
7633 e) ac_ext=c
7634 ac_cpp='$CPP $CPPFLAGS'
7635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7638
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641
7642 int
7643 main (void)
7644 {
7645
7646 ;
7647 return 0;
7648 }
7649 _ACEOF
7650 if ac_fn_c_try_link "$LINENO"
7651 then :
7652 lt_cv_cc_needs_belf=yes
7653 else case e in #(
7654 e) lt_cv_cc_needs_belf=no ;;
7655 esac
7656 fi
7657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7658 conftest$ac_exeext conftest.$ac_ext
7659 ac_ext=c
7660 ac_cpp='$CPP $CPPFLAGS'
7661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664 ;;
7665 esac
7666 fi
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7668 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7669 if test yes != "$lt_cv_cc_needs_belf"; then
7670 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7671 CFLAGS=$SAVE_CFLAGS
7672 fi
7673 ;;
7674 *-*solaris*)
7675 # Find out what ABI is being produced by ac_compile, and set linker
7676 # options accordingly.
7677 echo 'int i;' > conftest.$ac_ext
7678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7679 (eval $ac_compile) 2>&5
7680 ac_status=$?
7681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7682 test $ac_status = 0; }; then
7683 case `$FILECMD conftest.o` in
7684 *64-bit*)
7685 case $lt_cv_prog_gnu_ld in
7686 yes*)
7687 case $host in
7688 i?86-*-solaris*|x86_64-*-solaris*)
7689 LD="${LD-ld} -m elf_x86_64"
7690 ;;
7691 sparc*-*-solaris*)
7692 LD="${LD-ld} -m elf64_sparc"
7693 ;;
7694 esac
7695 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7696 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7697 LD=${LD-ld}_sol2
7698 fi
7699 ;;
7700 *)
7701 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7702 LD="${LD-ld} -64"
7703 fi
7704 ;;
7705 esac
7706 ;;
7707 esac
7708 fi
7709 rm -rf conftest*
7710 ;;
7711 esac
7712
7713 need_locks=$enable_libtool_lock
7714
7715 if test -n "$ac_tool_prefix"; then
7716 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7717 set dummy ${ac_tool_prefix}mt; ac_word=$2
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 printf %s "checking for $ac_word... " >&6; }
7720 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7721 then :
7722 printf %s "(cached) " >&6
7723 else case e in #(
7724 e) if test -n "$MANIFEST_TOOL"; then
7725 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 case $as_dir in #(((
7732 '') as_dir=./ ;;
7733 */) ;;
7734 *) as_dir=$as_dir/ ;;
7735 esac
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7740 break 2
7741 fi
7742 done
7743 done
7744 IFS=$as_save_IFS
7745
7746 fi ;;
7747 esac
7748 fi
7749 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7750 if test -n "$MANIFEST_TOOL"; then
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7752 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7753 else
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 printf "%s\n" "no" >&6; }
7756 fi
7757
7758
7759 fi
7760 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7761 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7762 # Extract the first word of "mt", so it can be a program name with args.
7763 set dummy mt; ac_word=$2
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 printf %s "checking for $ac_word... " >&6; }
7766 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7767 then :
7768 printf %s "(cached) " >&6
7769 else case e in #(
7770 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7771 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776 IFS=$as_save_IFS
7777 case $as_dir in #(((
7778 '') as_dir=./ ;;
7779 */) ;;
7780 *) as_dir=$as_dir/ ;;
7781 esac
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7784 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7786 break 2
7787 fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792 fi ;;
7793 esac
7794 fi
7795 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7796 if test -n "$ac_ct_MANIFEST_TOOL"; then
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7798 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7799 else
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 printf "%s\n" "no" >&6; }
7802 fi
7803
7804 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7805 MANIFEST_TOOL=":"
7806 else
7807 case $cross_compiling:$ac_tool_warned in
7808 yes:)
7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811 ac_tool_warned=yes ;;
7812 esac
7813 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7814 fi
7815 else
7816 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7817 fi
7818
7819 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7821 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7822 if test ${lt_cv_path_mainfest_tool+y}
7823 then :
7824 printf %s "(cached) " >&6
7825 else case e in #(
7826 e) lt_cv_path_mainfest_tool=no
7827 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7828 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7829 cat conftest.err >&5
7830 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7831 lt_cv_path_mainfest_tool=yes
7832 fi
7833 rm -f conftest* ;;
7834 esac
7835 fi
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7837 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7838 if test yes != "$lt_cv_path_mainfest_tool"; then
7839 MANIFEST_TOOL=:
7840 fi
7841
7842
7843
7844
7845
7846
7847 case $host_os in
7848 rhapsody* | darwin*)
7849 if test -n "$ac_tool_prefix"; then
7850 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7851 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853 printf %s "checking for $ac_word... " >&6; }
7854 if test ${ac_cv_prog_DSYMUTIL+y}
7855 then :
7856 printf %s "(cached) " >&6
7857 else case e in #(
7858 e) if test -n "$DSYMUTIL"; then
7859 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864 IFS=$as_save_IFS
7865 case $as_dir in #(((
7866 '') as_dir=./ ;;
7867 */) ;;
7868 *) as_dir=$as_dir/ ;;
7869 esac
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7872 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7874 break 2
7875 fi
7876 done
7877 done
7878 IFS=$as_save_IFS
7879
7880 fi ;;
7881 esac
7882 fi
7883 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7884 if test -n "$DSYMUTIL"; then
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7886 printf "%s\n" "$DSYMUTIL" >&6; }
7887 else
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 printf "%s\n" "no" >&6; }
7890 fi
7891
7892
7893 fi
7894 if test -z "$ac_cv_prog_DSYMUTIL"; then
7895 ac_ct_DSYMUTIL=$DSYMUTIL
7896 # Extract the first word of "dsymutil", so it can be a program name with args.
7897 set dummy dsymutil; ac_word=$2
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 printf %s "checking for $ac_word... " >&6; }
7900 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7901 then :
7902 printf %s "(cached) " >&6
7903 else case e in #(
7904 e) if test -n "$ac_ct_DSYMUTIL"; then
7905 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910 IFS=$as_save_IFS
7911 case $as_dir in #(((
7912 '') as_dir=./ ;;
7913 */) ;;
7914 *) as_dir=$as_dir/ ;;
7915 esac
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7918 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922 done
7923 done
7924 IFS=$as_save_IFS
7925
7926 fi ;;
7927 esac
7928 fi
7929 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7930 if test -n "$ac_ct_DSYMUTIL"; then
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7932 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7933 else
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 printf "%s\n" "no" >&6; }
7936 fi
7937
7938 if test "x$ac_ct_DSYMUTIL" = x; then
7939 DSYMUTIL=":"
7940 else
7941 case $cross_compiling:$ac_tool_warned in
7942 yes:)
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7945 ac_tool_warned=yes ;;
7946 esac
7947 DSYMUTIL=$ac_ct_DSYMUTIL
7948 fi
7949 else
7950 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7951 fi
7952
7953 if test -n "$ac_tool_prefix"; then
7954 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 printf %s "checking for $ac_word... " >&6; }
7958 if test ${ac_cv_prog_NMEDIT+y}
7959 then :
7960 printf %s "(cached) " >&6
7961 else case e in #(
7962 e) if test -n "$NMEDIT"; then
7963 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968 IFS=$as_save_IFS
7969 case $as_dir in #(((
7970 '') as_dir=./ ;;
7971 */) ;;
7972 *) as_dir=$as_dir/ ;;
7973 esac
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7976 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7978 break 2
7979 fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984 fi ;;
7985 esac
7986 fi
7987 NMEDIT=$ac_cv_prog_NMEDIT
7988 if test -n "$NMEDIT"; then
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7990 printf "%s\n" "$NMEDIT" >&6; }
7991 else
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 printf "%s\n" "no" >&6; }
7994 fi
7995
7996
7997 fi
7998 if test -z "$ac_cv_prog_NMEDIT"; then
7999 ac_ct_NMEDIT=$NMEDIT
8000 # Extract the first word of "nmedit", so it can be a program name with args.
8001 set dummy nmedit; ac_word=$2
8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 printf %s "checking for $ac_word... " >&6; }
8004 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8005 then :
8006 printf %s "(cached) " >&6
8007 else case e in #(
8008 e) if test -n "$ac_ct_NMEDIT"; then
8009 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8010 else
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014 IFS=$as_save_IFS
8015 case $as_dir in #(((
8016 '') as_dir=./ ;;
8017 */) ;;
8018 *) as_dir=$as_dir/ ;;
8019 esac
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8022 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8024 break 2
8025 fi
8026 done
8027 done
8028 IFS=$as_save_IFS
8029
8030 fi ;;
8031 esac
8032 fi
8033 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8034 if test -n "$ac_ct_NMEDIT"; then
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8036 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8037 else
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 printf "%s\n" "no" >&6; }
8040 fi
8041
8042 if test "x$ac_ct_NMEDIT" = x; then
8043 NMEDIT=":"
8044 else
8045 case $cross_compiling:$ac_tool_warned in
8046 yes:)
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049 ac_tool_warned=yes ;;
8050 esac
8051 NMEDIT=$ac_ct_NMEDIT
8052 fi
8053 else
8054 NMEDIT="$ac_cv_prog_NMEDIT"
8055 fi
8056
8057 if test -n "$ac_tool_prefix"; then
8058 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8059 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 printf %s "checking for $ac_word... " >&6; }
8062 if test ${ac_cv_prog_LIPO+y}
8063 then :
8064 printf %s "(cached) " >&6
8065 else case e in #(
8066 e) if test -n "$LIPO"; then
8067 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072 IFS=$as_save_IFS
8073 case $as_dir in #(((
8074 '') as_dir=./ ;;
8075 */) ;;
8076 *) as_dir=$as_dir/ ;;
8077 esac
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8080 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8082 break 2
8083 fi
8084 done
8085 done
8086 IFS=$as_save_IFS
8087
8088 fi ;;
8089 esac
8090 fi
8091 LIPO=$ac_cv_prog_LIPO
8092 if test -n "$LIPO"; then
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8094 printf "%s\n" "$LIPO" >&6; }
8095 else
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 printf "%s\n" "no" >&6; }
8098 fi
8099
8100
8101 fi
8102 if test -z "$ac_cv_prog_LIPO"; then
8103 ac_ct_LIPO=$LIPO
8104 # Extract the first word of "lipo", so it can be a program name with args.
8105 set dummy lipo; ac_word=$2
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 printf %s "checking for $ac_word... " >&6; }
8108 if test ${ac_cv_prog_ac_ct_LIPO+y}
8109 then :
8110 printf %s "(cached) " >&6
8111 else case e in #(
8112 e) if test -n "$ac_ct_LIPO"; then
8113 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8114 else
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118 IFS=$as_save_IFS
8119 case $as_dir in #(((
8120 '') as_dir=./ ;;
8121 */) ;;
8122 *) as_dir=$as_dir/ ;;
8123 esac
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8126 ac_cv_prog_ac_ct_LIPO="lipo"
8127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8128 break 2
8129 fi
8130 done
8131 done
8132 IFS=$as_save_IFS
8133
8134 fi ;;
8135 esac
8136 fi
8137 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8138 if test -n "$ac_ct_LIPO"; then
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8140 printf "%s\n" "$ac_ct_LIPO" >&6; }
8141 else
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 printf "%s\n" "no" >&6; }
8144 fi
8145
8146 if test "x$ac_ct_LIPO" = x; then
8147 LIPO=":"
8148 else
8149 case $cross_compiling:$ac_tool_warned in
8150 yes:)
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8152 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8153 ac_tool_warned=yes ;;
8154 esac
8155 LIPO=$ac_ct_LIPO
8156 fi
8157 else
8158 LIPO="$ac_cv_prog_LIPO"
8159 fi
8160
8161 if test -n "$ac_tool_prefix"; then
8162 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8163 set dummy ${ac_tool_prefix}otool; ac_word=$2
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 printf %s "checking for $ac_word... " >&6; }
8166 if test ${ac_cv_prog_OTOOL+y}
8167 then :
8168 printf %s "(cached) " >&6
8169 else case e in #(
8170 e) if test -n "$OTOOL"; then
8171 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176 IFS=$as_save_IFS
8177 case $as_dir in #(((
8178 '') as_dir=./ ;;
8179 */) ;;
8180 *) as_dir=$as_dir/ ;;
8181 esac
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8184 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8186 break 2
8187 fi
8188 done
8189 done
8190 IFS=$as_save_IFS
8191
8192 fi ;;
8193 esac
8194 fi
8195 OTOOL=$ac_cv_prog_OTOOL
8196 if test -n "$OTOOL"; then
8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8198 printf "%s\n" "$OTOOL" >&6; }
8199 else
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 printf "%s\n" "no" >&6; }
8202 fi
8203
8204
8205 fi
8206 if test -z "$ac_cv_prog_OTOOL"; then
8207 ac_ct_OTOOL=$OTOOL
8208 # Extract the first word of "otool", so it can be a program name with args.
8209 set dummy otool; ac_word=$2
8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211 printf %s "checking for $ac_word... " >&6; }
8212 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8213 then :
8214 printf %s "(cached) " >&6
8215 else case e in #(
8216 e) if test -n "$ac_ct_OTOOL"; then
8217 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8218 else
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8221 do
8222 IFS=$as_save_IFS
8223 case $as_dir in #(((
8224 '') as_dir=./ ;;
8225 */) ;;
8226 *) as_dir=$as_dir/ ;;
8227 esac
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8230 ac_cv_prog_ac_ct_OTOOL="otool"
8231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8232 break 2
8233 fi
8234 done
8235 done
8236 IFS=$as_save_IFS
8237
8238 fi ;;
8239 esac
8240 fi
8241 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8242 if test -n "$ac_ct_OTOOL"; then
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8244 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8245 else
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 printf "%s\n" "no" >&6; }
8248 fi
8249
8250 if test "x$ac_ct_OTOOL" = x; then
8251 OTOOL=":"
8252 else
8253 case $cross_compiling:$ac_tool_warned in
8254 yes:)
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8256 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8257 ac_tool_warned=yes ;;
8258 esac
8259 OTOOL=$ac_ct_OTOOL
8260 fi
8261 else
8262 OTOOL="$ac_cv_prog_OTOOL"
8263 fi
8264
8265 if test -n "$ac_tool_prefix"; then
8266 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8267 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 printf %s "checking for $ac_word... " >&6; }
8270 if test ${ac_cv_prog_OTOOL64+y}
8271 then :
8272 printf %s "(cached) " >&6
8273 else case e in #(
8274 e) if test -n "$OTOOL64"; then
8275 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280 IFS=$as_save_IFS
8281 case $as_dir in #(((
8282 '') as_dir=./ ;;
8283 */) ;;
8284 *) as_dir=$as_dir/ ;;
8285 esac
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8288 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292 done
8293 done
8294 IFS=$as_save_IFS
8295
8296 fi ;;
8297 esac
8298 fi
8299 OTOOL64=$ac_cv_prog_OTOOL64
8300 if test -n "$OTOOL64"; then
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8302 printf "%s\n" "$OTOOL64" >&6; }
8303 else
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 printf "%s\n" "no" >&6; }
8306 fi
8307
8308
8309 fi
8310 if test -z "$ac_cv_prog_OTOOL64"; then
8311 ac_ct_OTOOL64=$OTOOL64
8312 # Extract the first word of "otool64", so it can be a program name with args.
8313 set dummy otool64; ac_word=$2
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 printf %s "checking for $ac_word... " >&6; }
8316 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8317 then :
8318 printf %s "(cached) " >&6
8319 else case e in #(
8320 e) if test -n "$ac_ct_OTOOL64"; then
8321 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8325 do
8326 IFS=$as_save_IFS
8327 case $as_dir in #(((
8328 '') as_dir=./ ;;
8329 */) ;;
8330 *) as_dir=$as_dir/ ;;
8331 esac
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_ac_ct_OTOOL64="otool64"
8335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8336 break 2
8337 fi
8338 done
8339 done
8340 IFS=$as_save_IFS
8341
8342 fi ;;
8343 esac
8344 fi
8345 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8346 if test -n "$ac_ct_OTOOL64"; then
8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8348 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8349 else
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 printf "%s\n" "no" >&6; }
8352 fi
8353
8354 if test "x$ac_ct_OTOOL64" = x; then
8355 OTOOL64=":"
8356 else
8357 case $cross_compiling:$ac_tool_warned in
8358 yes:)
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8360 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8361 ac_tool_warned=yes ;;
8362 esac
8363 OTOOL64=$ac_ct_OTOOL64
8364 fi
8365 else
8366 OTOOL64="$ac_cv_prog_OTOOL64"
8367 fi
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8396 printf %s "checking for -single_module linker flag... " >&6; }
8397 if test ${lt_cv_apple_cc_single_mod+y}
8398 then :
8399 printf %s "(cached) " >&6
8400 else case e in #(
8401 e) lt_cv_apple_cc_single_mod=no
8402 if test -z "$LT_MULTI_MODULE"; then
8403 # By default we will add the -single_module flag. You can override
8404 # by either setting the environment variable LT_MULTI_MODULE
8405 # non-empty at configure time, or by adding -multi_module to the
8406 # link flags.
8407 rm -rf libconftest.dylib*
8408 echo "int foo(void){return 1;}" > conftest.c
8409 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8410 -dynamiclib -Wl,-single_module conftest.c" >&5
8411 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8412 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8413 _lt_result=$?
8414 # If there is a non-empty error log, and "single_module"
8415 # appears in it, assume the flag caused a linker warning
8416 if test -s conftest.err && $GREP single_module conftest.err; then
8417 cat conftest.err >&5
8418 # Otherwise, if the output was created with a 0 exit code from
8419 # the compiler, it worked.
8420 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8421 lt_cv_apple_cc_single_mod=yes
8422 else
8423 cat conftest.err >&5
8424 fi
8425 rm -rf libconftest.dylib*
8426 rm -f conftest.*
8427 fi ;;
8428 esac
8429 fi
8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8431 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8432
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8434 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8435 if test ${lt_cv_ld_exported_symbols_list+y}
8436 then :
8437 printf %s "(cached) " >&6
8438 else case e in #(
8439 e) lt_cv_ld_exported_symbols_list=no
8440 save_LDFLAGS=$LDFLAGS
8441 echo "_main" > conftest.sym
8442 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445
8446 int
8447 main (void)
8448 {
8449
8450 ;
8451 return 0;
8452 }
8453 _ACEOF
8454 if ac_fn_c_try_link "$LINENO"
8455 then :
8456 lt_cv_ld_exported_symbols_list=yes
8457 else case e in #(
8458 e) lt_cv_ld_exported_symbols_list=no ;;
8459 esac
8460 fi
8461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8462 conftest$ac_exeext conftest.$ac_ext
8463 LDFLAGS=$save_LDFLAGS
8464 ;;
8465 esac
8466 fi
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8468 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8469
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8471 printf %s "checking for -force_load linker flag... " >&6; }
8472 if test ${lt_cv_ld_force_load+y}
8473 then :
8474 printf %s "(cached) " >&6
8475 else case e in #(
8476 e) lt_cv_ld_force_load=no
8477 cat > conftest.c << _LT_EOF
8478 int forced_loaded() { return 2;}
8479 _LT_EOF
8480 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8481 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8482 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8483 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8484 echo "$RANLIB libconftest.a" >&5
8485 $RANLIB libconftest.a 2>&5
8486 cat > conftest.c << _LT_EOF
8487 int main() { return 0;}
8488 _LT_EOF
8489 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8490 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8491 _lt_result=$?
8492 if test -s conftest.err && $GREP force_load conftest.err; then
8493 cat conftest.err >&5
8494 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8495 lt_cv_ld_force_load=yes
8496 else
8497 cat conftest.err >&5
8498 fi
8499 rm -f conftest.err libconftest.a conftest conftest.c
8500 rm -rf conftest.dSYM
8501 ;;
8502 esac
8503 fi
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8505 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8506 case $host_os in
8507 rhapsody* | darwin1.[012])
8508 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8509 darwin1.*)
8510 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8511 darwin*)
8512 case $MACOSX_DEPLOYMENT_TARGET,$host in
8513 10.[012],*|,*powerpc*-darwin[5-8]*)
8514 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8515 *)
8516 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8517 esac
8518 ;;
8519 esac
8520 if test yes = "$lt_cv_apple_cc_single_mod"; then
8521 _lt_dar_single_mod='$single_module'
8522 fi
8523 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8524 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8525 else
8526 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8527 fi
8528 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8529 _lt_dsymutil='~$DSYMUTIL $lib || :'
8530 else
8531 _lt_dsymutil=
8532 fi
8533 ;;
8534 esac
8535
8536 # func_munge_path_list VARIABLE PATH
8537 # -----------------------------------
8538 # VARIABLE is name of variable containing _space_ separated list of
8539 # directories to be munged by the contents of PATH, which is string
8540 # having a format:
8541 # "DIR[:DIR]:"
8542 # string "DIR[ DIR]" will be prepended to VARIABLE
8543 # ":DIR[:DIR]"
8544 # string "DIR[ DIR]" will be appended to VARIABLE
8545 # "DIRP[:DIRP]::[DIRA:]DIRA"
8546 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8547 # "DIRA[ DIRA]" will be appended to VARIABLE
8548 # "DIR[:DIR]"
8549 # VARIABLE will be replaced by "DIR[ DIR]"
8550 func_munge_path_list ()
8551 {
8552 case x$2 in
8553 x)
8554 ;;
8555 *:)
8556 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8557 ;;
8558 x:*)
8559 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8560 ;;
8561 *::*)
8562 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8563 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8564 ;;
8565 *)
8566 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8567 ;;
8568 esac
8569 }
8570
8571 ac_header= ac_cache=
8572 for ac_item in $ac_header_c_list
8573 do
8574 if test $ac_cache; then
8575 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8576 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8577 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8578 fi
8579 ac_header= ac_cache=
8580 elif test $ac_header; then
8581 ac_cache=$ac_item
8582 else
8583 ac_header=$ac_item
8584 fi
8585 done
8586
8587
8588
8589
8590
8591
8592
8593
8594 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8595 then :
8596
8597 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8598
8599 fi
8600 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8601 "
8602 if test "x$ac_cv_header_dlfcn_h" = xyes
8603 then :
8604 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8605
8606 fi
8607
8608
8609
8610
8611
8612 # Set options
8613 # Check whether --enable-static was given.
8614 if test ${enable_static+y}
8615 then :
8616 enableval=$enable_static; p=${PACKAGE-default}
8617 case $enableval in
8618 yes) enable_static=yes ;;
8619 no) enable_static=no ;;
8620 *)
8621 enable_static=no
8622 # Look at the argument we got. We use all the common list separators.
8623 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8624 for pkg in $enableval; do
8625 IFS=$lt_save_ifs
8626 if test "X$pkg" = "X$p"; then
8627 enable_static=yes
8628 fi
8629 done
8630 IFS=$lt_save_ifs
8631 ;;
8632 esac
8633 else case e in #(
8634 e) enable_static=no ;;
8635 esac
8636 fi
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647 enable_dlopen=no
8648
8649
8650 enable_win32_dll=no
8651
8652
8653 # Check whether --enable-shared was given.
8654 if test ${enable_shared+y}
8655 then :
8656 enableval=$enable_shared; p=${PACKAGE-default}
8657 case $enableval in
8658 yes) enable_shared=yes ;;
8659 no) enable_shared=no ;;
8660 *)
8661 enable_shared=no
8662 # Look at the argument we got. We use all the common list separators.
8663 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8664 for pkg in $enableval; do
8665 IFS=$lt_save_ifs
8666 if test "X$pkg" = "X$p"; then
8667 enable_shared=yes
8668 fi
8669 done
8670 IFS=$lt_save_ifs
8671 ;;
8672 esac
8673 else case e in #(
8674 e) enable_shared=yes ;;
8675 esac
8676 fi
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688 # Check whether --with-pic was given.
8689 if test ${with_pic+y}
8690 then :
8691 withval=$with_pic; lt_p=${PACKAGE-default}
8692 case $withval in
8693 yes|no) pic_mode=$withval ;;
8694 *)
8695 pic_mode=default
8696 # Look at the argument we got. We use all the common list separators.
8697 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8698 for lt_pkg in $withval; do
8699 IFS=$lt_save_ifs
8700 if test "X$lt_pkg" = "X$lt_p"; then
8701 pic_mode=yes
8702 fi
8703 done
8704 IFS=$lt_save_ifs
8705 ;;
8706 esac
8707 else case e in #(
8708 e) pic_mode=default ;;
8709 esac
8710 fi
8711
8712
8713
8714
8715
8716
8717
8718
8719 # Check whether --enable-fast-install was given.
8720 if test ${enable_fast_install+y}
8721 then :
8722 enableval=$enable_fast_install; p=${PACKAGE-default}
8723 case $enableval in
8724 yes) enable_fast_install=yes ;;
8725 no) enable_fast_install=no ;;
8726 *)
8727 enable_fast_install=no
8728 # Look at the argument we got. We use all the common list separators.
8729 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8730 for pkg in $enableval; do
8731 IFS=$lt_save_ifs
8732 if test "X$pkg" = "X$p"; then
8733 enable_fast_install=yes
8734 fi
8735 done
8736 IFS=$lt_save_ifs
8737 ;;
8738 esac
8739 else case e in #(
8740 e) enable_fast_install=yes ;;
8741 esac
8742 fi
8743
8744
8745
8746
8747
8748
8749
8750
8751 shared_archive_member_spec=
8752 case $host,$enable_shared in
8753 power*-*-aix[5-9]*,yes)
8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8755 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8756
8757 # Check whether --with-aix-soname was given.
8758 if test ${with_aix_soname+y}
8759 then :
8760 withval=$with_aix_soname; case $withval in
8761 aix|svr4|both)
8762 ;;
8763 *)
8764 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8765 ;;
8766 esac
8767 lt_cv_with_aix_soname=$with_aix_soname
8768 else case e in #(
8769 e) if test ${lt_cv_with_aix_soname+y}
8770 then :
8771 printf %s "(cached) " >&6
8772 else case e in #(
8773 e) lt_cv_with_aix_soname=aix ;;
8774 esac
8775 fi
8776
8777 with_aix_soname=$lt_cv_with_aix_soname ;;
8778 esac
8779 fi
8780
8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8782 printf "%s\n" "$with_aix_soname" >&6; }
8783 if test aix != "$with_aix_soname"; then
8784 # For the AIX way of multilib, we name the shared archive member
8785 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8786 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8787 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8788 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8789 if test 64 = "${OBJECT_MODE-32}"; then
8790 shared_archive_member_spec=shr_64
8791 else
8792 shared_archive_member_spec=shr
8793 fi
8794 fi
8795 ;;
8796 *)
8797 with_aix_soname=aix
8798 ;;
8799 esac
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810 # This can be used to rebuild libtool when needed
8811 LIBTOOL_DEPS=$ltmain
8812
8813 # Always use our own libtool.
8814 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845 test -z "$LN_S" && LN_S="ln -s"
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860 if test -n "${ZSH_VERSION+set}"; then
8861 setopt NO_GLOB_SUBST
8862 fi
8863
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8865 printf %s "checking for objdir... " >&6; }
8866 if test ${lt_cv_objdir+y}
8867 then :
8868 printf %s "(cached) " >&6
8869 else case e in #(
8870 e) rm -f .libs 2>/dev/null
8871 mkdir .libs 2>/dev/null
8872 if test -d .libs; then
8873 lt_cv_objdir=.libs
8874 else
8875 # MS-DOS does not allow filenames that begin with a dot.
8876 lt_cv_objdir=_libs
8877 fi
8878 rmdir .libs 2>/dev/null ;;
8879 esac
8880 fi
8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8882 printf "%s\n" "$lt_cv_objdir" >&6; }
8883 objdir=$lt_cv_objdir
8884
8885
8886
8887
8888
8889 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8890
8891
8892
8893
8894 case $host_os in
8895 aix3*)
8896 # AIX sometimes has problems with the GCC collect2 program. For some
8897 # reason, if we set the COLLECT_NAMES environment variable, the problems
8898 # vanish in a puff of smoke.
8899 if test set != "${COLLECT_NAMES+set}"; then
8900 COLLECT_NAMES=
8901 export COLLECT_NAMES
8902 fi
8903 ;;
8904 esac
8905
8906 # Global variables:
8907 ofile=libtool
8908 can_build_shared=yes
8909
8910 # All known linkers require a '.a' archive for static linking (except MSVC and
8911 # ICC, which need '.lib').
8912 libext=a
8913
8914 with_gnu_ld=$lt_cv_prog_gnu_ld
8915
8916 old_CC=$CC
8917 old_CFLAGS=$CFLAGS
8918
8919 # Set sane defaults for various variables
8920 test -z "$CC" && CC=cc
8921 test -z "$LTCC" && LTCC=$CC
8922 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8923 test -z "$LD" && LD=ld
8924 test -z "$ac_objext" && ac_objext=o
8925
8926 func_cc_basename $compiler
8927 cc_basename=$func_cc_basename_result
8928
8929
8930 # Only perform the check for file, if the check method requires it
8931 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8932 case $deplibs_check_method in
8933 file_magic*)
8934 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8936 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8937 if test ${lt_cv_path_MAGIC_CMD+y}
8938 then :
8939 printf %s "(cached) " >&6
8940 else case e in #(
8941 e) case $MAGIC_CMD in
8942 [\\/*] | ?:[\\/]*)
8943 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8944 ;;
8945 *)
8946 lt_save_MAGIC_CMD=$MAGIC_CMD
8947 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8948 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8949 for ac_dir in $ac_dummy; do
8950 IFS=$lt_save_ifs
8951 test -z "$ac_dir" && ac_dir=.
8952 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8953 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8954 if test -n "$file_magic_test_file"; then
8955 case $deplibs_check_method in
8956 "file_magic "*)
8957 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8958 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8960 $EGREP "$file_magic_regex" > /dev/null; then
8961 :
8962 else
8963 cat <<_LT_EOF 1>&2
8964
8965 *** Warning: the command libtool uses to detect shared libraries,
8966 *** $file_magic_cmd, produces output that libtool cannot recognize.
8967 *** The result is that libtool may fail to recognize shared libraries
8968 *** as such. This will affect the creation of libtool libraries that
8969 *** depend on shared libraries, but programs linked with such libtool
8970 *** libraries will work regardless of this problem. Nevertheless, you
8971 *** may want to report the problem to your system manager and/or to
8972 *** [email protected]
8973
8974 _LT_EOF
8975 fi ;;
8976 esac
8977 fi
8978 break
8979 fi
8980 done
8981 IFS=$lt_save_ifs
8982 MAGIC_CMD=$lt_save_MAGIC_CMD
8983 ;;
8984 esac ;;
8985 esac
8986 fi
8987
8988 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8989 if test -n "$MAGIC_CMD"; then
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8991 printf "%s\n" "$MAGIC_CMD" >&6; }
8992 else
8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 printf "%s\n" "no" >&6; }
8995 fi
8996
8997
8998
8999
9000
9001 if test -z "$lt_cv_path_MAGIC_CMD"; then
9002 if test -n "$ac_tool_prefix"; then
9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9004 printf %s "checking for file... " >&6; }
9005 if test ${lt_cv_path_MAGIC_CMD+y}
9006 then :
9007 printf %s "(cached) " >&6
9008 else case e in #(
9009 e) case $MAGIC_CMD in
9010 [\\/*] | ?:[\\/]*)
9011 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9012 ;;
9013 *)
9014 lt_save_MAGIC_CMD=$MAGIC_CMD
9015 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9016 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9017 for ac_dir in $ac_dummy; do
9018 IFS=$lt_save_ifs
9019 test -z "$ac_dir" && ac_dir=.
9020 if test -f "$ac_dir/file"; then
9021 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9022 if test -n "$file_magic_test_file"; then
9023 case $deplibs_check_method in
9024 "file_magic "*)
9025 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9026 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9028 $EGREP "$file_magic_regex" > /dev/null; then
9029 :
9030 else
9031 cat <<_LT_EOF 1>&2
9032
9033 *** Warning: the command libtool uses to detect shared libraries,
9034 *** $file_magic_cmd, produces output that libtool cannot recognize.
9035 *** The result is that libtool may fail to recognize shared libraries
9036 *** as such. This will affect the creation of libtool libraries that
9037 *** depend on shared libraries, but programs linked with such libtool
9038 *** libraries will work regardless of this problem. Nevertheless, you
9039 *** may want to report the problem to your system manager and/or to
9040 *** [email protected]
9041
9042 _LT_EOF
9043 fi ;;
9044 esac
9045 fi
9046 break
9047 fi
9048 done
9049 IFS=$lt_save_ifs
9050 MAGIC_CMD=$lt_save_MAGIC_CMD
9051 ;;
9052 esac ;;
9053 esac
9054 fi
9055
9056 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9057 if test -n "$MAGIC_CMD"; then
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9059 printf "%s\n" "$MAGIC_CMD" >&6; }
9060 else
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 printf "%s\n" "no" >&6; }
9063 fi
9064
9065
9066 else
9067 MAGIC_CMD=:
9068 fi
9069 fi
9070
9071 fi
9072 ;;
9073 esac
9074
9075 # Use C for the default configuration in the libtool script
9076
9077 lt_save_CC=$CC
9078 ac_ext=c
9079 ac_cpp='$CPP $CPPFLAGS'
9080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9083
9084
9085 # Source file extension for C test sources.
9086 ac_ext=c
9087
9088 # Object file extension for compiled C test sources.
9089 objext=o
9090 objext=$objext
9091
9092 # Code to be used in simple compile tests
9093 lt_simple_compile_test_code="int some_variable = 0;"
9094
9095 # Code to be used in simple link tests
9096 lt_simple_link_test_code='int main(){return(0);}'
9097
9098
9099
9100
9101
9102
9103
9104 # If no C compiler was specified, use CC.
9105 LTCC=${LTCC-"$CC"}
9106
9107 # If no C compiler flags were specified, use CFLAGS.
9108 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9109
9110 # Allow CC to be a program name with arguments.
9111 compiler=$CC
9112
9113 # Save the default compiler, since it gets overwritten when the other
9114 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9115 compiler_DEFAULT=$CC
9116
9117 # save warnings/boilerplate of simple test code
9118 ac_outfile=conftest.$ac_objext
9119 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9120 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9121 _lt_compiler_boilerplate=`cat conftest.err`
9122 $RM conftest*
9123
9124 ac_outfile=conftest.$ac_objext
9125 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9126 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9127 _lt_linker_boilerplate=`cat conftest.err`
9128 $RM -r conftest*
9129
9130
9131 ## CAVEAT EMPTOR:
9132 ## There is no encapsulation within the following macros, do not change
9133 ## the running order or otherwise move them around unless you know exactly
9134 ## what you are doing...
9135 if test -n "$compiler"; then
9136
9137 lt_prog_compiler_no_builtin_flag=
9138
9139 if test yes = "$GCC"; then
9140 case $cc_basename in
9141 nvcc*)
9142 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9143 *)
9144 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9145 esac
9146
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9148 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9149 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9150 then :
9151 printf %s "(cached) " >&6
9152 else case e in #(
9153 e) lt_cv_prog_compiler_rtti_exceptions=no
9154 ac_outfile=conftest.$ac_objext
9155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9156 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9157 # Insert the option either (1) after the last *FLAGS variable, or
9158 # (2) before a word containing "conftest.", or (3) at the end.
9159 # Note that $ac_compile itself does not contain backslashes and begins
9160 # with a dollar sign (not a hyphen), so the echo should work correctly.
9161 # The option is referenced via a variable to avoid confusing sed.
9162 lt_compile=`echo "$ac_compile" | $SED \
9163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9165 -e 's:$: $lt_compiler_flag:'`
9166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9167 (eval "$lt_compile" 2>conftest.err)
9168 ac_status=$?
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 if (exit $ac_status) && test -s "$ac_outfile"; then
9172 # The compiler can only warn and ignore the option if not recognized
9173 # So say no if there are warnings other than the usual output.
9174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9176 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9177 lt_cv_prog_compiler_rtti_exceptions=yes
9178 fi
9179 fi
9180 $RM conftest*
9181 ;;
9182 esac
9183 fi
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9185 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9186
9187 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9188 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9189 else
9190 :
9191 fi
9192
9193 fi
9194
9195
9196
9197
9198
9199
9200 lt_prog_compiler_wl=
9201 lt_prog_compiler_pic=
9202 lt_prog_compiler_static=
9203
9204
9205 if test yes = "$GCC"; then
9206 lt_prog_compiler_wl='-Wl,'
9207 lt_prog_compiler_static='-static'
9208
9209 case $host_os in
9210 aix*)
9211 # All AIX code is PIC.
9212 if test ia64 = "$host_cpu"; then
9213 # AIX 5 now supports IA64 processor
9214 lt_prog_compiler_static='-Bstatic'
9215 fi
9216 lt_prog_compiler_pic='-fPIC'
9217 ;;
9218
9219 amigaos*)
9220 case $host_cpu in
9221 powerpc)
9222 # see comment about AmigaOS4 .so support
9223 lt_prog_compiler_pic='-fPIC'
9224 ;;
9225 m68k)
9226 # FIXME: we need at least 68020 code to build shared libraries, but
9227 # adding the '-m68020' flag to GCC prevents building anything better,
9228 # like '-m68040'.
9229 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9230 ;;
9231 esac
9232 ;;
9233
9234 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9235 # PIC is the default for these OSes.
9236 ;;
9237
9238 mingw* | cygwin* | pw32* | os2* | cegcc*)
9239 # This hack is so that the source file can tell whether it is being
9240 # built for inclusion in a dll (and should export symbols for example).
9241 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9242 # (--disable-auto-import) libraries
9243 lt_prog_compiler_pic='-DDLL_EXPORT'
9244 case $host_os in
9245 os2*)
9246 lt_prog_compiler_static='$wl-static'
9247 ;;
9248 esac
9249 ;;
9250
9251 darwin* | rhapsody*)
9252 # PIC is the default on this platform
9253 # Common symbols not allowed in MH_DYLIB files
9254 lt_prog_compiler_pic='-fno-common'
9255 ;;
9256
9257 haiku*)
9258 # PIC is the default for Haiku.
9259 # The "-static" flag exists, but is broken.
9260 lt_prog_compiler_static=
9261 ;;
9262
9263 hpux*)
9264 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9265 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9266 # sets the default TLS model and affects inlining.
9267 case $host_cpu in
9268 hppa*64*)
9269 # +Z the default
9270 ;;
9271 *)
9272 lt_prog_compiler_pic='-fPIC'
9273 ;;
9274 esac
9275 ;;
9276
9277 interix[3-9]*)
9278 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9279 # Instead, we relocate shared libraries at runtime.
9280 ;;
9281
9282 msdosdjgpp*)
9283 # Just because we use GCC doesn't mean we suddenly get shared libraries
9284 # on systems that don't support them.
9285 lt_prog_compiler_can_build_shared=no
9286 enable_shared=no
9287 ;;
9288
9289 *nto* | *qnx*)
9290 # QNX uses GNU C++, but need to define -shared option too, otherwise
9291 # it will coredump.
9292 lt_prog_compiler_pic='-fPIC -shared'
9293 ;;
9294
9295 sysv4*MP*)
9296 if test -d /usr/nec; then
9297 lt_prog_compiler_pic=-Kconform_pic
9298 fi
9299 ;;
9300
9301 *)
9302 lt_prog_compiler_pic='-fPIC'
9303 ;;
9304 esac
9305
9306 case $cc_basename in
9307 nvcc*) # Cuda Compiler Driver 2.2
9308 lt_prog_compiler_wl='-Xlinker '
9309 if test -n "$lt_prog_compiler_pic"; then
9310 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9311 fi
9312 ;;
9313 esac
9314 else
9315 # PORTME Check for flag to pass linker flags through the system compiler.
9316 case $host_os in
9317 aix*)
9318 lt_prog_compiler_wl='-Wl,'
9319 if test ia64 = "$host_cpu"; then
9320 # AIX 5 now supports IA64 processor
9321 lt_prog_compiler_static='-Bstatic'
9322 else
9323 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9324 fi
9325 ;;
9326
9327 darwin* | rhapsody*)
9328 # PIC is the default on this platform
9329 # Common symbols not allowed in MH_DYLIB files
9330 lt_prog_compiler_pic='-fno-common'
9331 case $cc_basename in
9332 nagfor*)
9333 # NAG Fortran compiler
9334 lt_prog_compiler_wl='-Wl,-Wl,,'
9335 lt_prog_compiler_pic='-PIC'
9336 lt_prog_compiler_static='-Bstatic'
9337 ;;
9338 esac
9339 ;;
9340
9341 mingw* | cygwin* | pw32* | os2* | cegcc*)
9342 # This hack is so that the source file can tell whether it is being
9343 # built for inclusion in a dll (and should export symbols for example).
9344 lt_prog_compiler_pic='-DDLL_EXPORT'
9345 case $host_os in
9346 os2*)
9347 lt_prog_compiler_static='$wl-static'
9348 ;;
9349 esac
9350 ;;
9351
9352 hpux9* | hpux10* | hpux11*)
9353 lt_prog_compiler_wl='-Wl,'
9354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9355 # not for PA HP-UX.
9356 case $host_cpu in
9357 hppa*64*|ia64*)
9358 # +Z the default
9359 ;;
9360 *)
9361 lt_prog_compiler_pic='+Z'
9362 ;;
9363 esac
9364 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9365 lt_prog_compiler_static='$wl-a ${wl}archive'
9366 ;;
9367
9368 irix5* | irix6* | nonstopux*)
9369 lt_prog_compiler_wl='-Wl,'
9370 # PIC (with -KPIC) is the default.
9371 lt_prog_compiler_static='-non_shared'
9372 ;;
9373
9374 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9375 case $cc_basename in
9376 # old Intel for x86_64, which still supported -KPIC.
9377 ecc*)
9378 lt_prog_compiler_wl='-Wl,'
9379 lt_prog_compiler_pic='-KPIC'
9380 lt_prog_compiler_static='-static'
9381 ;;
9382 # icc used to be incompatible with GCC.
9383 # ICC 10 doesn't accept -KPIC any more.
9384 icc* | ifort*)
9385 lt_prog_compiler_wl='-Wl,'
9386 lt_prog_compiler_pic='-fPIC'
9387 lt_prog_compiler_static='-static'
9388 ;;
9389 # Lahey Fortran 8.1.
9390 lf95*)
9391 lt_prog_compiler_wl='-Wl,'
9392 lt_prog_compiler_pic='--shared'
9393 lt_prog_compiler_static='--static'
9394 ;;
9395 nagfor*)
9396 # NAG Fortran compiler
9397 lt_prog_compiler_wl='-Wl,-Wl,,'
9398 lt_prog_compiler_pic='-PIC'
9399 lt_prog_compiler_static='-Bstatic'
9400 ;;
9401 tcc*)
9402 # Fabrice Bellard et al's Tiny C Compiler
9403 lt_prog_compiler_wl='-Wl,'
9404 lt_prog_compiler_pic='-fPIC'
9405 lt_prog_compiler_static='-static'
9406 ;;
9407 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9408 # Portland Group compilers (*not* the Pentium gcc compiler,
9409 # which looks to be a dead project)
9410 lt_prog_compiler_wl='-Wl,'
9411 lt_prog_compiler_pic='-fpic'
9412 lt_prog_compiler_static='-Bstatic'
9413 ;;
9414 ccc*)
9415 lt_prog_compiler_wl='-Wl,'
9416 # All Alpha code is PIC.
9417 lt_prog_compiler_static='-non_shared'
9418 ;;
9419 xl* | bgxl* | bgf* | mpixl*)
9420 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9421 lt_prog_compiler_wl='-Wl,'
9422 lt_prog_compiler_pic='-qpic'
9423 lt_prog_compiler_static='-qstaticlink'
9424 ;;
9425 *)
9426 case `$CC -V 2>&1 | $SED 5q` in
9427 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9428 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9429 lt_prog_compiler_pic='-KPIC'
9430 lt_prog_compiler_static='-Bstatic'
9431 lt_prog_compiler_wl=''
9432 ;;
9433 *Sun\ F* | *Sun*Fortran*)
9434 lt_prog_compiler_pic='-KPIC'
9435 lt_prog_compiler_static='-Bstatic'
9436 lt_prog_compiler_wl='-Qoption ld '
9437 ;;
9438 *Sun\ C*)
9439 # Sun C 5.9
9440 lt_prog_compiler_pic='-KPIC'
9441 lt_prog_compiler_static='-Bstatic'
9442 lt_prog_compiler_wl='-Wl,'
9443 ;;
9444 *Intel*\ [CF]*Compiler*)
9445 lt_prog_compiler_wl='-Wl,'
9446 lt_prog_compiler_pic='-fPIC'
9447 lt_prog_compiler_static='-static'
9448 ;;
9449 *Portland\ Group*)
9450 lt_prog_compiler_wl='-Wl,'
9451 lt_prog_compiler_pic='-fpic'
9452 lt_prog_compiler_static='-Bstatic'
9453 ;;
9454 esac
9455 ;;
9456 esac
9457 ;;
9458
9459 newsos6)
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-Bstatic'
9462 ;;
9463
9464 *nto* | *qnx*)
9465 # QNX uses GNU C++, but need to define -shared option too, otherwise
9466 # it will coredump.
9467 lt_prog_compiler_pic='-fPIC -shared'
9468 ;;
9469
9470 osf3* | osf4* | osf5*)
9471 lt_prog_compiler_wl='-Wl,'
9472 # All OSF/1 code is PIC.
9473 lt_prog_compiler_static='-non_shared'
9474 ;;
9475
9476 rdos*)
9477 lt_prog_compiler_static='-non_shared'
9478 ;;
9479
9480 solaris*)
9481 lt_prog_compiler_pic='-KPIC'
9482 lt_prog_compiler_static='-Bstatic'
9483 case $cc_basename in
9484 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9485 lt_prog_compiler_wl='-Qoption ld ';;
9486 *)
9487 lt_prog_compiler_wl='-Wl,';;
9488 esac
9489 ;;
9490
9491 sunos4*)
9492 lt_prog_compiler_wl='-Qoption ld '
9493 lt_prog_compiler_pic='-PIC'
9494 lt_prog_compiler_static='-Bstatic'
9495 ;;
9496
9497 sysv4 | sysv4.2uw2* | sysv4.3*)
9498 lt_prog_compiler_wl='-Wl,'
9499 lt_prog_compiler_pic='-KPIC'
9500 lt_prog_compiler_static='-Bstatic'
9501 ;;
9502
9503 sysv4*MP*)
9504 if test -d /usr/nec; then
9505 lt_prog_compiler_pic='-Kconform_pic'
9506 lt_prog_compiler_static='-Bstatic'
9507 fi
9508 ;;
9509
9510 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9511 lt_prog_compiler_wl='-Wl,'
9512 lt_prog_compiler_pic='-KPIC'
9513 lt_prog_compiler_static='-Bstatic'
9514 ;;
9515
9516 unicos*)
9517 lt_prog_compiler_wl='-Wl,'
9518 lt_prog_compiler_can_build_shared=no
9519 ;;
9520
9521 uts4*)
9522 lt_prog_compiler_pic='-pic'
9523 lt_prog_compiler_static='-Bstatic'
9524 ;;
9525
9526 *)
9527 lt_prog_compiler_can_build_shared=no
9528 ;;
9529 esac
9530 fi
9531
9532 case $host_os in
9533 # For platforms that do not support PIC, -DPIC is meaningless:
9534 *djgpp*)
9535 lt_prog_compiler_pic=
9536 ;;
9537 *)
9538 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9539 ;;
9540 esac
9541
9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9543 printf %s "checking for $compiler option to produce PIC... " >&6; }
9544 if test ${lt_cv_prog_compiler_pic+y}
9545 then :
9546 printf %s "(cached) " >&6
9547 else case e in #(
9548 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9549 esac
9550 fi
9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9552 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9553 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9554
9555 #
9556 # Check to make sure the PIC flag actually works.
9557 #
9558 if test -n "$lt_prog_compiler_pic"; then
9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9560 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9561 if test ${lt_cv_prog_compiler_pic_works+y}
9562 then :
9563 printf %s "(cached) " >&6
9564 else case e in #(
9565 e) lt_cv_prog_compiler_pic_works=no
9566 ac_outfile=conftest.$ac_objext
9567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9568 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9569 # Insert the option either (1) after the last *FLAGS variable, or
9570 # (2) before a word containing "conftest.", or (3) at the end.
9571 # Note that $ac_compile itself does not contain backslashes and begins
9572 # with a dollar sign (not a hyphen), so the echo should work correctly.
9573 # The option is referenced via a variable to avoid confusing sed.
9574 lt_compile=`echo "$ac_compile" | $SED \
9575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9577 -e 's:$: $lt_compiler_flag:'`
9578 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9579 (eval "$lt_compile" 2>conftest.err)
9580 ac_status=$?
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 if (exit $ac_status) && test -s "$ac_outfile"; then
9584 # The compiler can only warn and ignore the option if not recognized
9585 # So say no if there are warnings other than the usual output.
9586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9588 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9589 lt_cv_prog_compiler_pic_works=yes
9590 fi
9591 fi
9592 $RM conftest*
9593 ;;
9594 esac
9595 fi
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9597 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9598
9599 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9600 case $lt_prog_compiler_pic in
9601 "" | " "*) ;;
9602 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9603 esac
9604 else
9605 lt_prog_compiler_pic=
9606 lt_prog_compiler_can_build_shared=no
9607 fi
9608
9609 fi
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621 #
9622 # Check to make sure the static flag actually works.
9623 #
9624 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9626 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9627 if test ${lt_cv_prog_compiler_static_works+y}
9628 then :
9629 printf %s "(cached) " >&6
9630 else case e in #(
9631 e) lt_cv_prog_compiler_static_works=no
9632 save_LDFLAGS=$LDFLAGS
9633 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9636 # The linker can only warn and ignore the option if not recognized
9637 # So say no if there are warnings
9638 if test -s conftest.err; then
9639 # Append any errors to the config.log.
9640 cat conftest.err 1>&5
9641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9643 if diff conftest.exp conftest.er2 >/dev/null; then
9644 lt_cv_prog_compiler_static_works=yes
9645 fi
9646 else
9647 lt_cv_prog_compiler_static_works=yes
9648 fi
9649 fi
9650 $RM -r conftest*
9651 LDFLAGS=$save_LDFLAGS
9652 ;;
9653 esac
9654 fi
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9656 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9657
9658 if test yes = "$lt_cv_prog_compiler_static_works"; then
9659 :
9660 else
9661 lt_prog_compiler_static=
9662 fi
9663
9664
9665
9666
9667
9668
9669
9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9671 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9672 if test ${lt_cv_prog_compiler_c_o+y}
9673 then :
9674 printf %s "(cached) " >&6
9675 else case e in #(
9676 e) lt_cv_prog_compiler_c_o=no
9677 $RM -r conftest 2>/dev/null
9678 mkdir conftest
9679 cd conftest
9680 mkdir out
9681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9682
9683 lt_compiler_flag="-o out/conftest2.$ac_objext"
9684 # Insert the option either (1) after the last *FLAGS variable, or
9685 # (2) before a word containing "conftest.", or (3) at the end.
9686 # Note that $ac_compile itself does not contain backslashes and begins
9687 # with a dollar sign (not a hyphen), so the echo should work correctly.
9688 lt_compile=`echo "$ac_compile" | $SED \
9689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9691 -e 's:$: $lt_compiler_flag:'`
9692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9693 (eval "$lt_compile" 2>out/conftest.err)
9694 ac_status=$?
9695 cat out/conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9698 then
9699 # The compiler can only warn and ignore the option if not recognized
9700 # So say no if there are warnings
9701 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9702 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9703 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9704 lt_cv_prog_compiler_c_o=yes
9705 fi
9706 fi
9707 chmod u+w . 2>&5
9708 $RM conftest*
9709 # SGI C++ compiler will create directory out/ii_files/ for
9710 # template instantiation
9711 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9712 $RM out/* && rmdir out
9713 cd ..
9714 $RM -r conftest
9715 $RM conftest*
9716 ;;
9717 esac
9718 fi
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9720 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9721
9722
9723
9724
9725
9726
9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9728 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9729 if test ${lt_cv_prog_compiler_c_o+y}
9730 then :
9731 printf %s "(cached) " >&6
9732 else case e in #(
9733 e) lt_cv_prog_compiler_c_o=no
9734 $RM -r conftest 2>/dev/null
9735 mkdir conftest
9736 cd conftest
9737 mkdir out
9738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9739
9740 lt_compiler_flag="-o out/conftest2.$ac_objext"
9741 # Insert the option either (1) after the last *FLAGS variable, or
9742 # (2) before a word containing "conftest.", or (3) at the end.
9743 # Note that $ac_compile itself does not contain backslashes and begins
9744 # with a dollar sign (not a hyphen), so the echo should work correctly.
9745 lt_compile=`echo "$ac_compile" | $SED \
9746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9748 -e 's:$: $lt_compiler_flag:'`
9749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9750 (eval "$lt_compile" 2>out/conftest.err)
9751 ac_status=$?
9752 cat out/conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9755 then
9756 # The compiler can only warn and ignore the option if not recognized
9757 # So say no if there are warnings
9758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9761 lt_cv_prog_compiler_c_o=yes
9762 fi
9763 fi
9764 chmod u+w . 2>&5
9765 $RM conftest*
9766 # SGI C++ compiler will create directory out/ii_files/ for
9767 # template instantiation
9768 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9769 $RM out/* && rmdir out
9770 cd ..
9771 $RM -r conftest
9772 $RM conftest*
9773 ;;
9774 esac
9775 fi
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9777 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9778
9779
9780
9781
9782 hard_links=nottested
9783 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9784 # do not overwrite the value of need_locks provided by the user
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9786 printf %s "checking if we can lock with hard links... " >&6; }
9787 hard_links=yes
9788 $RM conftest*
9789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9790 touch conftest.a
9791 ln conftest.a conftest.b 2>&5 || hard_links=no
9792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9794 printf "%s\n" "$hard_links" >&6; }
9795 if test no = "$hard_links"; then
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9797 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9798 need_locks=warn
9799 fi
9800 else
9801 need_locks=no
9802 fi
9803
9804
9805
9806
9807
9808
9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9810 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9811
9812 runpath_var=
9813 allow_undefined_flag=
9814 always_export_symbols=no
9815 archive_cmds=
9816 archive_expsym_cmds=
9817 compiler_needs_object=no
9818 enable_shared_with_static_runtimes=no
9819 export_dynamic_flag_spec=
9820 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9821 hardcode_automatic=no
9822 hardcode_direct=no
9823 hardcode_direct_absolute=no
9824 hardcode_libdir_flag_spec=
9825 hardcode_libdir_separator=
9826 hardcode_minus_L=no
9827 hardcode_shlibpath_var=unsupported
9828 inherit_rpath=no
9829 link_all_deplibs=unknown
9830 module_cmds=
9831 module_expsym_cmds=
9832 old_archive_from_new_cmds=
9833 old_archive_from_expsyms_cmds=
9834 thread_safe_flag_spec=
9835 whole_archive_flag_spec=
9836 # include_expsyms should be a list of space-separated symbols to be *always*
9837 # included in the symbol list
9838 include_expsyms=
9839 # exclude_expsyms can be an extended regexp of symbols to exclude
9840 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9841 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9842 # as well as any symbol that contains 'd'.
9843 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9844 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9845 # platforms (ab)use it in PIC code, but their linkers get confused if
9846 # the symbol is explicitly referenced. Since portable code cannot
9847 # rely on this symbol name, it's probably fine to never include it in
9848 # preloaded symbol tables.
9849 # Exclude shared library initialization/finalization symbols.
9850 extract_expsyms_cmds=
9851
9852 case $host_os in
9853 cygwin* | mingw* | pw32* | cegcc*)
9854 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9855 # When not using gcc, we currently assume that we are using
9856 # Microsoft Visual C++ or Intel C++ Compiler.
9857 if test yes != "$GCC"; then
9858 with_gnu_ld=no
9859 fi
9860 ;;
9861 interix*)
9862 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9863 with_gnu_ld=yes
9864 ;;
9865 openbsd* | bitrig*)
9866 with_gnu_ld=no
9867 ;;
9868 esac
9869
9870 ld_shlibs=yes
9871
9872 # On some targets, GNU ld is compatible enough with the native linker
9873 # that we're better off using the native interface for both.
9874 lt_use_gnu_ld_interface=no
9875 if test yes = "$with_gnu_ld"; then
9876 case $host_os in
9877 aix*)
9878 # The AIX port of GNU ld has always aspired to compatibility
9879 # with the native linker. However, as the warning in the GNU ld
9880 # block says, versions before 2.19.5* couldn't really create working
9881 # shared libraries, regardless of the interface used.
9882 case `$LD -v 2>&1` in
9883 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9884 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9885 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9886 *)
9887 lt_use_gnu_ld_interface=yes
9888 ;;
9889 esac
9890 ;;
9891 *)
9892 lt_use_gnu_ld_interface=yes
9893 ;;
9894 esac
9895 fi
9896
9897 if test yes = "$lt_use_gnu_ld_interface"; then
9898 # If archive_cmds runs LD, not CC, wlarc should be empty
9899 wlarc='$wl'
9900
9901 # Set some defaults for GNU ld with shared library support. These
9902 # are reset later if shared libraries are not supported. Putting them
9903 # here allows them to be overridden if necessary.
9904 runpath_var=LD_RUN_PATH
9905 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9906 export_dynamic_flag_spec='$wl--export-dynamic'
9907 # ancient GNU ld didn't support --whole-archive et. al.
9908 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9909 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9910 else
9911 whole_archive_flag_spec=
9912 fi
9913 supports_anon_versioning=no
9914 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9915 *GNU\ gold*) supports_anon_versioning=yes ;;
9916 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9917 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9918 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9919 *\ 2.11.*) ;; # other 2.11 versions
9920 *) supports_anon_versioning=yes ;;
9921 esac
9922
9923 # See if GNU ld supports shared libraries.
9924 case $host_os in
9925 aix[3-9]*)
9926 # On AIX/PPC, the GNU linker is very broken
9927 if test ia64 != "$host_cpu"; then
9928 ld_shlibs=no
9929 cat <<_LT_EOF 1>&2
9930
9931 *** Warning: the GNU linker, at least up to release 2.19, is reported
9932 *** to be unable to reliably create shared libraries on AIX.
9933 *** Therefore, libtool is disabling shared libraries support. If you
9934 *** really care for shared libraries, you may want to install binutils
9935 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9936 *** You will then need to restart the configuration process.
9937
9938 _LT_EOF
9939 fi
9940 ;;
9941
9942 amigaos*)
9943 case $host_cpu in
9944 powerpc)
9945 # see comment about AmigaOS4 .so support
9946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9947 archive_expsym_cmds=''
9948 ;;
9949 m68k)
9950 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)'
9951 hardcode_libdir_flag_spec='-L$libdir'
9952 hardcode_minus_L=yes
9953 ;;
9954 esac
9955 ;;
9956
9957 beos*)
9958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9959 allow_undefined_flag=unsupported
9960 # Joseph Beckenbach <[email protected]> says some releases of gcc
9961 # support --undefined. This deserves some investigation. FIXME
9962 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9963 else
9964 ld_shlibs=no
9965 fi
9966 ;;
9967
9968 cygwin* | mingw* | pw32* | cegcc*)
9969 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9970 # as there is no search path for DLLs.
9971 hardcode_libdir_flag_spec='-L$libdir'
9972 export_dynamic_flag_spec='$wl--export-all-symbols'
9973 allow_undefined_flag=unsupported
9974 always_export_symbols=no
9975 enable_shared_with_static_runtimes=yes
9976 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'
9977 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9978
9979 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9981 # If the export-symbols file already is a .def file, use it as
9982 # is; otherwise, prepend EXPORTS...
9983 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9984 cp $export_symbols $output_objdir/$soname.def;
9985 else
9986 echo EXPORTS > $output_objdir/$soname.def;
9987 cat $export_symbols >> $output_objdir/$soname.def;
9988 fi~
9989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9990 else
9991 ld_shlibs=no
9992 fi
9993 ;;
9994
9995 haiku*)
9996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9997 link_all_deplibs=yes
9998 ;;
9999
10000 os2*)
10001 hardcode_libdir_flag_spec='-L$libdir'
10002 hardcode_minus_L=yes
10003 allow_undefined_flag=unsupported
10004 shrext_cmds=.dll
10005 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10006 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10007 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10008 $ECHO EXPORTS >> $output_objdir/$libname.def~
10009 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10010 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10011 emximp -o $lib $output_objdir/$libname.def'
10012 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10013 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10014 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10015 $ECHO EXPORTS >> $output_objdir/$libname.def~
10016 prefix_cmds="$SED"~
10017 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10018 prefix_cmds="$prefix_cmds -e 1d";
10019 fi~
10020 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10021 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10022 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10023 emximp -o $lib $output_objdir/$libname.def'
10024 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10025 enable_shared_with_static_runtimes=yes
10026 file_list_spec='@'
10027 ;;
10028
10029 interix[3-9]*)
10030 hardcode_direct=no
10031 hardcode_shlibpath_var=no
10032 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10033 export_dynamic_flag_spec='$wl-E'
10034 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10035 # Instead, shared libraries are loaded at an image base (0x10000000 by
10036 # default) and relocated if they conflict, which is a slow very memory
10037 # consuming and fragmenting process. To avoid this, we pick a random,
10038 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10039 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10041 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'
10042 ;;
10043
10044 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10045 tmp_diet=no
10046 if test linux-dietlibc = "$host_os"; then
10047 case $cc_basename in
10048 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10049 esac
10050 fi
10051 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10052 && test no = "$tmp_diet"
10053 then
10054 tmp_addflag=' $pic_flag'
10055 tmp_sharedflag='-shared'
10056 case $cc_basename,$host_cpu in
10057 pgcc*) # Portland Group C compiler
10058 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'
10059 tmp_addflag=' $pic_flag'
10060 ;;
10061 pgf77* | pgf90* | pgf95* | pgfortran*)
10062 # Portland Group f77 and f90 compilers
10063 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'
10064 tmp_addflag=' $pic_flag -Mnomain' ;;
10065 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10066 tmp_addflag=' -i_dynamic' ;;
10067 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10068 tmp_addflag=' -i_dynamic -nofor_main' ;;
10069 ifc* | ifort*) # Intel Fortran compiler
10070 tmp_addflag=' -nofor_main' ;;
10071 lf95*) # Lahey Fortran 8.1
10072 whole_archive_flag_spec=
10073 tmp_sharedflag='--shared' ;;
10074 nagfor*) # NAGFOR 5.3
10075 tmp_sharedflag='-Wl,-shared' ;;
10076 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10077 tmp_sharedflag='-qmkshrobj'
10078 tmp_addflag= ;;
10079 nvcc*) # Cuda Compiler Driver 2.2
10080 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'
10081 compiler_needs_object=yes
10082 ;;
10083 esac
10084 case `$CC -V 2>&1 | $SED 5q` in
10085 *Sun\ C*) # Sun C 5.9
10086 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'
10087 compiler_needs_object=yes
10088 tmp_sharedflag='-G' ;;
10089 *Sun\ F*) # Sun Fortran 8.3
10090 tmp_sharedflag='-G' ;;
10091 esac
10092 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10093
10094 if test yes = "$supports_anon_versioning"; then
10095 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10096 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10097 echo "local: *; };" >> $output_objdir/$libname.ver~
10098 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10099 fi
10100
10101 case $cc_basename in
10102 tcc*)
10103 export_dynamic_flag_spec='-rdynamic'
10104 ;;
10105 xlf* | bgf* | bgxlf* | mpixlf*)
10106 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10107 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10108 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10109 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10110 if test yes = "$supports_anon_versioning"; then
10111 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10112 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10113 echo "local: *; };" >> $output_objdir/$libname.ver~
10114 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10115 fi
10116 ;;
10117 esac
10118 else
10119 ld_shlibs=no
10120 fi
10121 ;;
10122
10123 netbsd*)
10124 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10125 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10126 wlarc=
10127 else
10128 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10129 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10130 fi
10131 ;;
10132
10133 solaris*)
10134 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10135 ld_shlibs=no
10136 cat <<_LT_EOF 1>&2
10137
10138 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10139 *** create shared libraries on Solaris systems. Therefore, libtool
10140 *** is disabling shared libraries support. We urge you to upgrade GNU
10141 *** binutils to release 2.9.1 or newer. Another option is to modify
10142 *** your PATH or compiler configuration so that the native linker is
10143 *** used, and then restart.
10144
10145 _LT_EOF
10146 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10147 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10148 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10149 else
10150 ld_shlibs=no
10151 fi
10152 ;;
10153
10154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10155 case `$LD -v 2>&1` in
10156 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10157 ld_shlibs=no
10158 cat <<_LT_EOF 1>&2
10159
10160 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10161 *** reliably create shared libraries on SCO systems. Therefore, libtool
10162 *** is disabling shared libraries support. We urge you to upgrade GNU
10163 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10164 *** your PATH or compiler configuration so that the native linker is
10165 *** used, and then restart.
10166
10167 _LT_EOF
10168 ;;
10169 *)
10170 # For security reasons, it is highly recommended that you always
10171 # use absolute paths for naming shared libraries, and exclude the
10172 # DT_RUNPATH tag from executables and libraries. But doing so
10173 # requires that you compile everything twice, which is a pain.
10174 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10178 else
10179 ld_shlibs=no
10180 fi
10181 ;;
10182 esac
10183 ;;
10184
10185 sunos4*)
10186 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10187 wlarc=
10188 hardcode_direct=yes
10189 hardcode_shlibpath_var=no
10190 ;;
10191
10192 *)
10193 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10194 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10195 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10196 else
10197 ld_shlibs=no
10198 fi
10199 ;;
10200 esac
10201
10202 if test no = "$ld_shlibs"; then
10203 runpath_var=
10204 hardcode_libdir_flag_spec=
10205 export_dynamic_flag_spec=
10206 whole_archive_flag_spec=
10207 fi
10208 else
10209 # PORTME fill in a description of your system's linker (not GNU ld)
10210 case $host_os in
10211 aix3*)
10212 allow_undefined_flag=unsupported
10213 always_export_symbols=yes
10214 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'
10215 # Note: this linker hardcodes the directories in LIBPATH if there
10216 # are no directories specified by -L.
10217 hardcode_minus_L=yes
10218 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10219 # Neither direct hardcoding nor static linking is supported with a
10220 # broken collect2.
10221 hardcode_direct=unsupported
10222 fi
10223 ;;
10224
10225 aix[4-9]*)
10226 if test ia64 = "$host_cpu"; then
10227 # On IA64, the linker does run time linking by default, so we don't
10228 # have to do anything special.
10229 aix_use_runtimelinking=no
10230 exp_sym_flag='-Bexport'
10231 no_entry_flag=
10232 else
10233 # If we're using GNU nm, then we don't want the "-C" option.
10234 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10235 # Without the "-l" option, or with the "-B" option, AIX nm treats
10236 # weak defined symbols like other global defined symbols, whereas
10237 # GNU nm marks them as "W".
10238 # While the 'weak' keyword is ignored in the Export File, we need
10239 # it in the Import File for the 'aix-soname' feature, so we have
10240 # to replace the "-B" option with "-P" for AIX nm.
10241 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10242 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10243 else
10244 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10245 fi
10246 aix_use_runtimelinking=no
10247
10248 # Test if we are trying to use run time linking or normal
10249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10250 # have runtime linking enabled, and use it for executables.
10251 # For shared libraries, we enable/disable runtime linking
10252 # depending on the kind of the shared library created -
10253 # when "with_aix_soname,aix_use_runtimelinking" is:
10254 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10255 # "aix,yes" lib.so shared, rtl:yes, for executables
10256 # lib.a static archive
10257 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10258 # lib.a(lib.so.V) shared, rtl:no, for executables
10259 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10260 # lib.a(lib.so.V) shared, rtl:no
10261 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10262 # lib.a static archive
10263 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10264 for ld_flag in $LDFLAGS; do
10265 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10266 aix_use_runtimelinking=yes
10267 break
10268 fi
10269 done
10270 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10271 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10272 # so we don't have lib.a shared libs to link our executables.
10273 # We have to force runtime linking in this case.
10274 aix_use_runtimelinking=yes
10275 LDFLAGS="$LDFLAGS -Wl,-brtl"
10276 fi
10277 ;;
10278 esac
10279
10280 exp_sym_flag='-bexport'
10281 no_entry_flag='-bnoentry'
10282 fi
10283
10284 # When large executables or shared objects are built, AIX ld can
10285 # have problems creating the table of contents. If linking a library
10286 # or program results in "error TOC overflow" add -mminimal-toc to
10287 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10288 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10289
10290 archive_cmds=''
10291 hardcode_direct=yes
10292 hardcode_direct_absolute=yes
10293 hardcode_libdir_separator=':'
10294 link_all_deplibs=yes
10295 file_list_spec='$wl-f,'
10296 case $with_aix_soname,$aix_use_runtimelinking in
10297 aix,*) ;; # traditional, no import file
10298 svr4,* | *,yes) # use import file
10299 # The Import File defines what to hardcode.
10300 hardcode_direct=no
10301 hardcode_direct_absolute=no
10302 ;;
10303 esac
10304
10305 if test yes = "$GCC"; then
10306 case $host_os in aix4.[012]|aix4.[012].*)
10307 # We only want to do this on AIX 4.2 and lower, the check
10308 # below for broken collect2 doesn't work under 4.3+
10309 collect2name=`$CC -print-prog-name=collect2`
10310 if test -f "$collect2name" &&
10311 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10312 then
10313 # We have reworked collect2
10314 :
10315 else
10316 # We have old collect2
10317 hardcode_direct=unsupported
10318 # It fails to find uninstalled libraries when the uninstalled
10319 # path is not listed in the libpath. Setting hardcode_minus_L
10320 # to unsupported forces relinking
10321 hardcode_minus_L=yes
10322 hardcode_libdir_flag_spec='-L$libdir'
10323 hardcode_libdir_separator=
10324 fi
10325 ;;
10326 esac
10327 shared_flag='-shared'
10328 if test yes = "$aix_use_runtimelinking"; then
10329 shared_flag="$shared_flag "'$wl-G'
10330 fi
10331 # Need to ensure runtime linking is disabled for the traditional
10332 # shared library, or the linker may eventually find shared libraries
10333 # /with/ Import File - we do not want to mix them.
10334 shared_flag_aix='-shared'
10335 shared_flag_svr4='-shared $wl-G'
10336 else
10337 # not using gcc
10338 if test ia64 = "$host_cpu"; then
10339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10340 # chokes on -Wl,-G. The following line is correct:
10341 shared_flag='-G'
10342 else
10343 if test yes = "$aix_use_runtimelinking"; then
10344 shared_flag='$wl-G'
10345 else
10346 shared_flag='$wl-bM:SRE'
10347 fi
10348 shared_flag_aix='$wl-bM:SRE'
10349 shared_flag_svr4='$wl-G'
10350 fi
10351 fi
10352
10353 export_dynamic_flag_spec='$wl-bexpall'
10354 # It seems that -bexpall does not export symbols beginning with
10355 # underscore (_), so it is better to generate a list of symbols to export.
10356 always_export_symbols=yes
10357 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10358 # Warning - without using the other runtime loading flags (-brtl),
10359 # -berok will link without error, but may produce a broken library.
10360 allow_undefined_flag='-berok'
10361 # Determine the default libpath from the value encoded in an
10362 # empty executable.
10363 if test set = "${lt_cv_aix_libpath+set}"; then
10364 aix_libpath=$lt_cv_aix_libpath
10365 else
10366 if test ${lt_cv_aix_libpath_+y}
10367 then :
10368 printf %s "(cached) " >&6
10369 else case e in #(
10370 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372
10373 int
10374 main (void)
10375 {
10376
10377 ;
10378 return 0;
10379 }
10380 _ACEOF
10381 if ac_fn_c_try_link "$LINENO"
10382 then :
10383
10384 lt_aix_libpath_sed='
10385 /Import File Strings/,/^$/ {
10386 /^0/ {
10387 s/^0 *\([^ ]*\) *$/\1/
10388 p
10389 }
10390 }'
10391 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10392 # Check for a 64-bit object if we didn't find anything.
10393 if test -z "$lt_cv_aix_libpath_"; then
10394 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10395 fi
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10398 conftest$ac_exeext conftest.$ac_ext
10399 if test -z "$lt_cv_aix_libpath_"; then
10400 lt_cv_aix_libpath_=/usr/lib:/lib
10401 fi
10402 ;;
10403 esac
10404 fi
10405
10406 aix_libpath=$lt_cv_aix_libpath_
10407 fi
10408
10409 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10410 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10411 else
10412 if test ia64 = "$host_cpu"; then
10413 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10414 allow_undefined_flag="-z nodefs"
10415 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"
10416 else
10417 # Determine the default libpath from the value encoded in an
10418 # empty executable.
10419 if test set = "${lt_cv_aix_libpath+set}"; then
10420 aix_libpath=$lt_cv_aix_libpath
10421 else
10422 if test ${lt_cv_aix_libpath_+y}
10423 then :
10424 printf %s "(cached) " >&6
10425 else case e in #(
10426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428
10429 int
10430 main (void)
10431 {
10432
10433 ;
10434 return 0;
10435 }
10436 _ACEOF
10437 if ac_fn_c_try_link "$LINENO"
10438 then :
10439
10440 lt_aix_libpath_sed='
10441 /Import File Strings/,/^$/ {
10442 /^0/ {
10443 s/^0 *\([^ ]*\) *$/\1/
10444 p
10445 }
10446 }'
10447 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10448 # Check for a 64-bit object if we didn't find anything.
10449 if test -z "$lt_cv_aix_libpath_"; then
10450 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10451 fi
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10454 conftest$ac_exeext conftest.$ac_ext
10455 if test -z "$lt_cv_aix_libpath_"; then
10456 lt_cv_aix_libpath_=/usr/lib:/lib
10457 fi
10458 ;;
10459 esac
10460 fi
10461
10462 aix_libpath=$lt_cv_aix_libpath_
10463 fi
10464
10465 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10466 # Warning - without using the other run time loading flags,
10467 # -berok will link without error, but may produce a broken library.
10468 no_undefined_flag=' $wl-bernotok'
10469 allow_undefined_flag=' $wl-berok'
10470 if test yes = "$with_gnu_ld"; then
10471 # We only use this code for GNU lds that support --whole-archive.
10472 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10473 else
10474 # Exported symbols can be pulled into shared objects from archives
10475 whole_archive_flag_spec='$convenience'
10476 fi
10477 archive_cmds_need_lc=yes
10478 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10479 # -brtl affects multiple linker settings, -berok does not and is overridden later
10480 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10481 if test svr4 != "$with_aix_soname"; then
10482 # This is similar to how AIX traditionally builds its shared libraries.
10483 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10484 fi
10485 if test aix != "$with_aix_soname"; then
10486 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10487 else
10488 # used by -dlpreopen to get the symbols
10489 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10490 fi
10491 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10492 fi
10493 fi
10494 ;;
10495
10496 amigaos*)
10497 case $host_cpu in
10498 powerpc)
10499 # see comment about AmigaOS4 .so support
10500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10501 archive_expsym_cmds=''
10502 ;;
10503 m68k)
10504 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)'
10505 hardcode_libdir_flag_spec='-L$libdir'
10506 hardcode_minus_L=yes
10507 ;;
10508 esac
10509 ;;
10510
10511 bsdi[45]*)
10512 export_dynamic_flag_spec=-rdynamic
10513 ;;
10514
10515 cygwin* | mingw* | pw32* | cegcc*)
10516 # When not using gcc, we currently assume that we are using
10517 # Microsoft Visual C++ or Intel C++ Compiler.
10518 # hardcode_libdir_flag_spec is actually meaningless, as there is
10519 # no search path for DLLs.
10520 case $cc_basename in
10521 cl* | icl*)
10522 # Native MSVC or ICC
10523 hardcode_libdir_flag_spec=' '
10524 allow_undefined_flag=unsupported
10525 always_export_symbols=yes
10526 file_list_spec='@'
10527 # Tell ltmain to make .lib files, not .a files.
10528 libext=lib
10529 # Tell ltmain to make .dll files, not .so files.
10530 shrext_cmds=.dll
10531 # FIXME: Setting linknames here is a bad hack.
10532 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10533 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10534 cp "$export_symbols" "$output_objdir/$soname.def";
10535 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10536 else
10537 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10538 fi~
10539 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10540 linknames='
10541 # The linker will not automatically build a static lib if we build a DLL.
10542 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10543 enable_shared_with_static_runtimes=yes
10544 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10545 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10546 # Don't use ranlib
10547 old_postinstall_cmds='chmod 644 $oldlib'
10548 postlink_cmds='lt_outputfile="@OUTPUT@"~
10549 lt_tool_outputfile="@TOOL_OUTPUT@"~
10550 case $lt_outputfile in
10551 *.exe|*.EXE) ;;
10552 *)
10553 lt_outputfile=$lt_outputfile.exe
10554 lt_tool_outputfile=$lt_tool_outputfile.exe
10555 ;;
10556 esac~
10557 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10558 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10559 $RM "$lt_outputfile.manifest";
10560 fi'
10561 ;;
10562 *)
10563 # Assume MSVC and ICC wrapper
10564 hardcode_libdir_flag_spec=' '
10565 allow_undefined_flag=unsupported
10566 # Tell ltmain to make .lib files, not .a files.
10567 libext=lib
10568 # Tell ltmain to make .dll files, not .so files.
10569 shrext_cmds=.dll
10570 # FIXME: Setting linknames here is a bad hack.
10571 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10572 # The linker will automatically build a .lib file if we build a DLL.
10573 old_archive_from_new_cmds='true'
10574 # FIXME: Should let the user specify the lib program.
10575 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10576 enable_shared_with_static_runtimes=yes
10577 ;;
10578 esac
10579 ;;
10580
10581 darwin* | rhapsody*)
10582
10583
10584 archive_cmds_need_lc=no
10585 hardcode_direct=no
10586 hardcode_automatic=yes
10587 hardcode_shlibpath_var=unsupported
10588 if test yes = "$lt_cv_ld_force_load"; then
10589 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\"`'
10590
10591 else
10592 whole_archive_flag_spec=''
10593 fi
10594 link_all_deplibs=yes
10595 allow_undefined_flag=$_lt_dar_allow_undefined
10596 case $cc_basename in
10597 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10598 *) _lt_dar_can_shared=$GCC ;;
10599 esac
10600 if test yes = "$_lt_dar_can_shared"; then
10601 output_verbose_link_cmd=func_echo_all
10602 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10603 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10604 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"
10605 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"
10606
10607 else
10608 ld_shlibs=no
10609 fi
10610
10611 ;;
10612
10613 dgux*)
10614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_libdir_flag_spec='-L$libdir'
10616 hardcode_shlibpath_var=no
10617 ;;
10618
10619 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10620 # support. Future versions do this automatically, but an explicit c++rt0.o
10621 # does not break anything, and helps significantly (at the cost of a little
10622 # extra space).
10623 freebsd2.2*)
10624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10625 hardcode_libdir_flag_spec='-R$libdir'
10626 hardcode_direct=yes
10627 hardcode_shlibpath_var=no
10628 ;;
10629
10630 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10631 freebsd2.*)
10632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10633 hardcode_direct=yes
10634 hardcode_minus_L=yes
10635 hardcode_shlibpath_var=no
10636 ;;
10637
10638 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10639 freebsd* | dragonfly* | midnightbsd*)
10640 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10641 hardcode_libdir_flag_spec='-R$libdir'
10642 hardcode_direct=yes
10643 hardcode_shlibpath_var=no
10644 ;;
10645
10646 hpux9*)
10647 if test yes = "$GCC"; then
10648 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10649 else
10650 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10651 fi
10652 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10653 hardcode_libdir_separator=:
10654 hardcode_direct=yes
10655
10656 # hardcode_minus_L: Not really in the search PATH,
10657 # but as the default location of the library.
10658 hardcode_minus_L=yes
10659 export_dynamic_flag_spec='$wl-E'
10660 ;;
10661
10662 hpux10*)
10663 if test yes,no = "$GCC,$with_gnu_ld"; then
10664 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10665 else
10666 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10667 fi
10668 if test no = "$with_gnu_ld"; then
10669 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10670 hardcode_libdir_separator=:
10671 hardcode_direct=yes
10672 hardcode_direct_absolute=yes
10673 export_dynamic_flag_spec='$wl-E'
10674 # hardcode_minus_L: Not really in the search PATH,
10675 # but as the default location of the library.
10676 hardcode_minus_L=yes
10677 fi
10678 ;;
10679
10680 hpux11*)
10681 if test yes,no = "$GCC,$with_gnu_ld"; then
10682 case $host_cpu in
10683 hppa*64*)
10684 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 ;;
10686 ia64*)
10687 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10688 ;;
10689 *)
10690 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10691 ;;
10692 esac
10693 else
10694 case $host_cpu in
10695 hppa*64*)
10696 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10697 ;;
10698 ia64*)
10699 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10700 ;;
10701 *)
10702
10703 # Older versions of the 11.00 compiler do not understand -b yet
10704 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10706 printf %s "checking if $CC understands -b... " >&6; }
10707 if test ${lt_cv_prog_compiler__b+y}
10708 then :
10709 printf %s "(cached) " >&6
10710 else case e in #(
10711 e) lt_cv_prog_compiler__b=no
10712 save_LDFLAGS=$LDFLAGS
10713 LDFLAGS="$LDFLAGS -b"
10714 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10716 # The linker can only warn and ignore the option if not recognized
10717 # So say no if there are warnings
10718 if test -s conftest.err; then
10719 # Append any errors to the config.log.
10720 cat conftest.err 1>&5
10721 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10723 if diff conftest.exp conftest.er2 >/dev/null; then
10724 lt_cv_prog_compiler__b=yes
10725 fi
10726 else
10727 lt_cv_prog_compiler__b=yes
10728 fi
10729 fi
10730 $RM -r conftest*
10731 LDFLAGS=$save_LDFLAGS
10732 ;;
10733 esac
10734 fi
10735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10736 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10737
10738 if test yes = "$lt_cv_prog_compiler__b"; then
10739 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10740 else
10741 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10742 fi
10743
10744 ;;
10745 esac
10746 fi
10747 if test no = "$with_gnu_ld"; then
10748 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10749 hardcode_libdir_separator=:
10750
10751 case $host_cpu in
10752 hppa*64*|ia64*)
10753 hardcode_direct=no
10754 hardcode_shlibpath_var=no
10755 ;;
10756 *)
10757 hardcode_direct=yes
10758 hardcode_direct_absolute=yes
10759 export_dynamic_flag_spec='$wl-E'
10760
10761 # hardcode_minus_L: Not really in the search PATH,
10762 # but as the default location of the library.
10763 hardcode_minus_L=yes
10764 ;;
10765 esac
10766 fi
10767 ;;
10768
10769 irix5* | irix6* | nonstopux*)
10770 if test yes = "$GCC"; then
10771 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'
10772 # Try to use the -exported_symbol ld option, if it does not
10773 # work, assume that -exports_file does not work either and
10774 # implicitly export all symbols.
10775 # This should be the same for all languages, so no per-tag cache variable.
10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10777 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10778 if test ${lt_cv_irix_exported_symbol+y}
10779 then :
10780 printf %s "(cached) " >&6
10781 else case e in #(
10782 e) save_LDFLAGS=$LDFLAGS
10783 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10786 int foo (void) { return 0; }
10787 _ACEOF
10788 if ac_fn_c_try_link "$LINENO"
10789 then :
10790 lt_cv_irix_exported_symbol=yes
10791 else case e in #(
10792 e) lt_cv_irix_exported_symbol=no ;;
10793 esac
10794 fi
10795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10796 conftest$ac_exeext conftest.$ac_ext
10797 LDFLAGS=$save_LDFLAGS ;;
10798 esac
10799 fi
10800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10801 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10802 if test yes = "$lt_cv_irix_exported_symbol"; then
10803 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'
10804 fi
10805 else
10806 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'
10807 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'
10808 fi
10809 archive_cmds_need_lc='no'
10810 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10811 hardcode_libdir_separator=:
10812 inherit_rpath=yes
10813 link_all_deplibs=yes
10814 ;;
10815
10816 linux*)
10817 case $cc_basename in
10818 tcc*)
10819 # Fabrice Bellard et al's Tiny C Compiler
10820 ld_shlibs=yes
10821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10822 ;;
10823 esac
10824 ;;
10825
10826 netbsd*)
10827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10829 else
10830 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10831 fi
10832 hardcode_libdir_flag_spec='-R$libdir'
10833 hardcode_direct=yes
10834 hardcode_shlibpath_var=no
10835 ;;
10836
10837 newsos6)
10838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10839 hardcode_direct=yes
10840 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10841 hardcode_libdir_separator=:
10842 hardcode_shlibpath_var=no
10843 ;;
10844
10845 *nto* | *qnx*)
10846 ;;
10847
10848 openbsd* | bitrig*)
10849 if test -f /usr/libexec/ld.so; then
10850 hardcode_direct=yes
10851 hardcode_shlibpath_var=no
10852 hardcode_direct_absolute=yes
10853 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10854 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10855 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10856 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10857 export_dynamic_flag_spec='$wl-E'
10858 else
10859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10860 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10861 fi
10862 else
10863 ld_shlibs=no
10864 fi
10865 ;;
10866
10867 os2*)
10868 hardcode_libdir_flag_spec='-L$libdir'
10869 hardcode_minus_L=yes
10870 allow_undefined_flag=unsupported
10871 shrext_cmds=.dll
10872 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10873 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10874 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10875 $ECHO EXPORTS >> $output_objdir/$libname.def~
10876 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10877 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10878 emximp -o $lib $output_objdir/$libname.def'
10879 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10880 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10881 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10882 $ECHO EXPORTS >> $output_objdir/$libname.def~
10883 prefix_cmds="$SED"~
10884 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10885 prefix_cmds="$prefix_cmds -e 1d";
10886 fi~
10887 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10888 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10889 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10890 emximp -o $lib $output_objdir/$libname.def'
10891 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10892 enable_shared_with_static_runtimes=yes
10893 file_list_spec='@'
10894 ;;
10895
10896 osf3*)
10897 if test yes = "$GCC"; then
10898 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10899 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'
10900 else
10901 allow_undefined_flag=' -expect_unresolved \*'
10902 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'
10903 fi
10904 archive_cmds_need_lc='no'
10905 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10906 hardcode_libdir_separator=:
10907 ;;
10908
10909 osf4* | osf5*) # as osf3* with the addition of -msym flag
10910 if test yes = "$GCC"; then
10911 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10912 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'
10913 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10914 else
10915 allow_undefined_flag=' -expect_unresolved \*'
10916 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'
10917 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~
10918 $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'
10919
10920 # Both c and cxx compiler support -rpath directly
10921 hardcode_libdir_flag_spec='-rpath $libdir'
10922 fi
10923 archive_cmds_need_lc='no'
10924 hardcode_libdir_separator=:
10925 ;;
10926
10927 solaris*)
10928 no_undefined_flag=' -z defs'
10929 if test yes = "$GCC"; then
10930 wlarc='$wl'
10931 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10932 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10933 $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'
10934 else
10935 case `$CC -V 2>&1` in
10936 *"Compilers 5.0"*)
10937 wlarc=''
10938 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10940 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10941 ;;
10942 *)
10943 wlarc='$wl'
10944 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10946 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10947 ;;
10948 esac
10949 fi
10950 hardcode_libdir_flag_spec='-R$libdir'
10951 hardcode_shlibpath_var=no
10952 case $host_os in
10953 solaris2.[0-5] | solaris2.[0-5].*) ;;
10954 *)
10955 # The compiler driver will combine and reorder linker options,
10956 # but understands '-z linker_flag'. GCC discards it without '$wl',
10957 # but is careful enough not to reorder.
10958 # Supported since Solaris 2.6 (maybe 2.5.1?)
10959 if test yes = "$GCC"; then
10960 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10961 else
10962 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10963 fi
10964 ;;
10965 esac
10966 link_all_deplibs=yes
10967 ;;
10968
10969 sunos4*)
10970 if test sequent = "$host_vendor"; then
10971 # Use $CC to link under sequent, because it throws in some extra .o
10972 # files that make .init and .fini sections work.
10973 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10974 else
10975 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10976 fi
10977 hardcode_libdir_flag_spec='-L$libdir'
10978 hardcode_direct=yes
10979 hardcode_minus_L=yes
10980 hardcode_shlibpath_var=no
10981 ;;
10982
10983 sysv4)
10984 case $host_vendor in
10985 sni)
10986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10987 hardcode_direct=yes # is this really true???
10988 ;;
10989 siemens)
10990 ## LD is ld it makes a PLAMLIB
10991 ## CC just makes a GrossModule.
10992 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10993 reload_cmds='$CC -r -o $output$reload_objs'
10994 hardcode_direct=no
10995 ;;
10996 motorola)
10997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10998 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10999 ;;
11000 esac
11001 runpath_var='LD_RUN_PATH'
11002 hardcode_shlibpath_var=no
11003 ;;
11004
11005 sysv4.3*)
11006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007 hardcode_shlibpath_var=no
11008 export_dynamic_flag_spec='-Bexport'
11009 ;;
11010
11011 sysv4*MP*)
11012 if test -d /usr/nec; then
11013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11014 hardcode_shlibpath_var=no
11015 runpath_var=LD_RUN_PATH
11016 hardcode_runpath_var=yes
11017 ld_shlibs=yes
11018 fi
11019 ;;
11020
11021 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11022 no_undefined_flag='$wl-z,text'
11023 archive_cmds_need_lc=no
11024 hardcode_shlibpath_var=no
11025 runpath_var='LD_RUN_PATH'
11026
11027 if test yes = "$GCC"; then
11028 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 else
11031 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 fi
11034 ;;
11035
11036 sysv5* | sco3.2v5* | sco5v6*)
11037 # Note: We CANNOT use -z defs as we might desire, because we do not
11038 # link with -lc, and that would cause any symbols used from libc to
11039 # always be unresolved, which means just about no library would
11040 # ever link correctly. If we're not using GNU ld we use -z text
11041 # though, which does catch some bad symbols but isn't as heavy-handed
11042 # as -z defs.
11043 no_undefined_flag='$wl-z,text'
11044 allow_undefined_flag='$wl-z,nodefs'
11045 archive_cmds_need_lc=no
11046 hardcode_shlibpath_var=no
11047 hardcode_libdir_flag_spec='$wl-R,$libdir'
11048 hardcode_libdir_separator=':'
11049 link_all_deplibs=yes
11050 export_dynamic_flag_spec='$wl-Bexport'
11051 runpath_var='LD_RUN_PATH'
11052
11053 if test yes = "$GCC"; then
11054 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11056 else
11057 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059 fi
11060 ;;
11061
11062 uts4*)
11063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11064 hardcode_libdir_flag_spec='-L$libdir'
11065 hardcode_shlibpath_var=no
11066 ;;
11067
11068 *)
11069 ld_shlibs=no
11070 ;;
11071 esac
11072
11073 if test sni = "$host_vendor"; then
11074 case $host in
11075 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11076 export_dynamic_flag_spec='$wl-Blargedynsym'
11077 ;;
11078 esac
11079 fi
11080 fi
11081
11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11083 printf "%s\n" "$ld_shlibs" >&6; }
11084 test no = "$ld_shlibs" && can_build_shared=no
11085
11086 with_gnu_ld=$with_gnu_ld
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102 #
11103 # Do we need to explicitly link libc?
11104 #
11105 case "x$archive_cmds_need_lc" in
11106 x|xyes)
11107 # Assume -lc should be added
11108 archive_cmds_need_lc=yes
11109
11110 if test yes,yes = "$GCC,$enable_shared"; then
11111 case $archive_cmds in
11112 *'~'*)
11113 # FIXME: we may have to deal with multi-command sequences.
11114 ;;
11115 '$CC '*)
11116 # Test whether the compiler implicitly links with -lc since on some
11117 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11118 # to ld, don't add -lc before -lgcc.
11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11120 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11121 if test ${lt_cv_archive_cmds_need_lc+y}
11122 then :
11123 printf %s "(cached) " >&6
11124 else case e in #(
11125 e) $RM conftest*
11126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11127
11128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11129 (eval $ac_compile) 2>&5
11130 ac_status=$?
11131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11132 test $ac_status = 0; } 2>conftest.err; then
11133 soname=conftest
11134 lib=conftest
11135 libobjs=conftest.$ac_objext
11136 deplibs=
11137 wl=$lt_prog_compiler_wl
11138 pic_flag=$lt_prog_compiler_pic
11139 compiler_flags=-v
11140 linker_flags=-v
11141 verstring=
11142 output_objdir=.
11143 libname=conftest
11144 lt_save_allow_undefined_flag=$allow_undefined_flag
11145 allow_undefined_flag=
11146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11147 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11148 ac_status=$?
11149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11150 test $ac_status = 0; }
11151 then
11152 lt_cv_archive_cmds_need_lc=no
11153 else
11154 lt_cv_archive_cmds_need_lc=yes
11155 fi
11156 allow_undefined_flag=$lt_save_allow_undefined_flag
11157 else
11158 cat conftest.err 1>&5
11159 fi
11160 $RM conftest*
11161 ;;
11162 esac
11163 fi
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11165 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11166 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11167 ;;
11168 esac
11169 fi
11170 ;;
11171 esac
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11325 printf %s "checking dynamic linker characteristics... " >&6; }
11326
11327 if test yes = "$GCC"; then
11328 case $host_os in
11329 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11330 *) lt_awk_arg='/^libraries:/' ;;
11331 esac
11332 case $host_os in
11333 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11334 *) lt_sed_strip_eq='s|=/|/|g' ;;
11335 esac
11336 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11337 case $lt_search_path_spec in
11338 *\;*)
11339 # if the path contains ";" then we assume it to be the separator
11340 # otherwise default to the standard path separator (i.e. ":") - it is
11341 # assumed that no part of a normal pathname contains ";" but that should
11342 # okay in the real world where ";" in dirpaths is itself problematic.
11343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11344 ;;
11345 *)
11346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11347 ;;
11348 esac
11349 # Ok, now we have the path, separated by spaces, we can step through it
11350 # and add multilib dir if necessary...
11351 lt_tmp_lt_search_path_spec=
11352 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11353 # ...but if some path component already ends with the multilib dir we assume
11354 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11355 case "$lt_multi_os_dir; $lt_search_path_spec " in
11356 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11357 lt_multi_os_dir=
11358 ;;
11359 esac
11360 for lt_sys_path in $lt_search_path_spec; do
11361 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11363 elif test -n "$lt_multi_os_dir"; then
11364 test -d "$lt_sys_path" && \
11365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11366 fi
11367 done
11368 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11369 BEGIN {RS = " "; FS = "/|\n";} {
11370 lt_foo = "";
11371 lt_count = 0;
11372 for (lt_i = NF; lt_i > 0; lt_i--) {
11373 if ($lt_i != "" && $lt_i != ".") {
11374 if ($lt_i == "..") {
11375 lt_count++;
11376 } else {
11377 if (lt_count == 0) {
11378 lt_foo = "/" $lt_i lt_foo;
11379 } else {
11380 lt_count--;
11381 }
11382 }
11383 }
11384 }
11385 if (lt_foo != "") { lt_freq[lt_foo]++; }
11386 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11387 }'`
11388 # AWK program above erroneously prepends '/' to C:/dos/paths
11389 # for these hosts.
11390 case $host_os in
11391 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11392 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11393 esac
11394 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11395 else
11396 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11397 fi
11398 library_names_spec=
11399 libname_spec='lib$name'
11400 soname_spec=
11401 shrext_cmds=.so
11402 postinstall_cmds=
11403 postuninstall_cmds=
11404 finish_cmds=
11405 finish_eval=
11406 shlibpath_var=
11407 shlibpath_overrides_runpath=unknown
11408 version_type=none
11409 dynamic_linker="$host_os ld.so"
11410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11411 need_lib_prefix=unknown
11412 hardcode_into_libs=no
11413
11414 # when you set need_version to no, make sure it does not cause -set_version
11415 # flags to be left without arguments
11416 need_version=unknown
11417
11418
11419
11420 case $host_os in
11421 aix3*)
11422 version_type=linux # correct to gnu/linux during the next big refactor
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11424 shlibpath_var=LIBPATH
11425
11426 # AIX 3 has no versioning support, so we append a major version to the name.
11427 soname_spec='$libname$release$shared_ext$major'
11428 ;;
11429
11430 aix[4-9]*)
11431 version_type=linux # correct to gnu/linux during the next big refactor
11432 need_lib_prefix=no
11433 need_version=no
11434 hardcode_into_libs=yes
11435 if test ia64 = "$host_cpu"; then
11436 # AIX 5 supports IA64
11437 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11438 shlibpath_var=LD_LIBRARY_PATH
11439 else
11440 # With GCC up to 2.95.x, collect2 would create an import file
11441 # for dependence libraries. The import file would start with
11442 # the line '#! .'. This would cause the generated library to
11443 # depend on '.', always an invalid library. This was fixed in
11444 # development snapshots of GCC prior to 3.0.
11445 case $host_os in
11446 aix4 | aix4.[01] | aix4.[01].*)
11447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11448 echo ' yes '
11449 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11450 :
11451 else
11452 can_build_shared=no
11453 fi
11454 ;;
11455 esac
11456 # Using Import Files as archive members, it is possible to support
11457 # filename-based versioning of shared library archives on AIX. While
11458 # this would work for both with and without runtime linking, it will
11459 # prevent static linking of such archives. So we do filename-based
11460 # shared library versioning with .so extension only, which is used
11461 # when both runtime linking and shared linking is enabled.
11462 # Unfortunately, runtime linking may impact performance, so we do
11463 # not want this to be the default eventually. Also, we use the
11464 # versioned .so libs for executables only if there is the -brtl
11465 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11466 # To allow for filename-based versioning support, we need to create
11467 # libNAME.so.V as an archive file, containing:
11468 # *) an Import File, referring to the versioned filename of the
11469 # archive as well as the shared archive member, telling the
11470 # bitwidth (32 or 64) of that shared object, and providing the
11471 # list of exported symbols of that shared object, eventually
11472 # decorated with the 'weak' keyword
11473 # *) the shared object with the F_LOADONLY flag set, to really avoid
11474 # it being seen by the linker.
11475 # At run time we better use the real file rather than another symlink,
11476 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11477
11478 case $with_aix_soname,$aix_use_runtimelinking in
11479 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11480 # soname into executable. Probably we can add versioning support to
11481 # collect2, so additional links can be useful in future.
11482 aix,yes) # traditional libtool
11483 dynamic_linker='AIX unversionable lib.so'
11484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11485 # instead of lib<name>.a to let people know that these are not
11486 # typical AIX shared libraries.
11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11488 ;;
11489 aix,no) # traditional AIX only
11490 dynamic_linker='AIX lib.a(lib.so.V)'
11491 # We preserve .a as extension for shared libraries through AIX4.2
11492 # and later when we are not doing run time linking.
11493 library_names_spec='$libname$release.a $libname.a'
11494 soname_spec='$libname$release$shared_ext$major'
11495 ;;
11496 svr4,*) # full svr4 only
11497 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11498 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11499 # We do not specify a path in Import Files, so LIBPATH fires.
11500 shlibpath_overrides_runpath=yes
11501 ;;
11502 *,yes) # both, prefer svr4
11503 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11504 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11505 # unpreferred sharedlib libNAME.a needs extra handling
11506 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11507 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11508 # We do not specify a path in Import Files, so LIBPATH fires.
11509 shlibpath_overrides_runpath=yes
11510 ;;
11511 *,no) # both, prefer aix
11512 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11513 library_names_spec='$libname$release.a $libname.a'
11514 soname_spec='$libname$release$shared_ext$major'
11515 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11516 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11517 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11518 ;;
11519 esac
11520 shlibpath_var=LIBPATH
11521 fi
11522 ;;
11523
11524 amigaos*)
11525 case $host_cpu in
11526 powerpc)
11527 # Since July 2007 AmigaOS4 officially supports .so libraries.
11528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530 ;;
11531 m68k)
11532 library_names_spec='$libname.ixlibrary $libname.a'
11533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11534 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11535 ;;
11536 esac
11537 ;;
11538
11539 beos*)
11540 library_names_spec='$libname$shared_ext'
11541 dynamic_linker="$host_os ld.so"
11542 shlibpath_var=LIBRARY_PATH
11543 ;;
11544
11545 bsdi[45]*)
11546 version_type=linux # correct to gnu/linux during the next big refactor
11547 need_version=no
11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11549 soname_spec='$libname$release$shared_ext$major'
11550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11554 # the default ld.so.conf also contains /usr/contrib/lib and
11555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11556 # libtool to hard-code these into programs
11557 ;;
11558
11559 cygwin* | mingw* | pw32* | cegcc*)
11560 version_type=windows
11561 shrext_cmds=.dll
11562 need_version=no
11563 need_lib_prefix=no
11564
11565 case $GCC,$cc_basename in
11566 yes,*)
11567 # gcc
11568 library_names_spec='$libname.dll.a'
11569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11570 postinstall_cmds='base_file=`basename \$file`~
11571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11572 dldir=$destdir/`dirname \$dlpath`~
11573 test -d \$dldir || mkdir -p \$dldir~
11574 $install_prog $dir/$dlname \$dldir/$dlname~
11575 chmod a+x \$dldir/$dlname~
11576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11578 fi'
11579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11580 dlpath=$dir/\$dldll~
11581 $RM \$dlpath'
11582 shlibpath_overrides_runpath=yes
11583
11584 case $host_os in
11585 cygwin*)
11586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11587 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11588
11589 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11590 ;;
11591 mingw* | cegcc*)
11592 # MinGW DLLs use traditional 'lib' prefix
11593 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11594 ;;
11595 pw32*)
11596 # pw32 DLLs use 'pw' prefix rather than 'lib'
11597 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11598 ;;
11599 esac
11600 dynamic_linker='Win32 ld.exe'
11601 ;;
11602
11603 *,cl* | *,icl*)
11604 # Native MSVC or ICC
11605 libname_spec='$name'
11606 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11607 library_names_spec='$libname.dll.lib'
11608
11609 case $build_os in
11610 mingw*)
11611 sys_lib_search_path_spec=
11612 lt_save_ifs=$IFS
11613 IFS=';'
11614 for lt_path in $LIB
11615 do
11616 IFS=$lt_save_ifs
11617 # Let DOS variable expansion print the short 8.3 style file name.
11618 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11619 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11620 done
11621 IFS=$lt_save_ifs
11622 # Convert to MSYS style.
11623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11624 ;;
11625 cygwin*)
11626 # Convert to unix form, then to dos form, then back to unix form
11627 # but this time dos style (no spaces!) so that the unix form looks
11628 # like /cygdrive/c/PROGRA~1:/cygdr...
11629 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11630 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11631 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11632 ;;
11633 *)
11634 sys_lib_search_path_spec=$LIB
11635 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11636 # It is most probably a Windows format PATH.
11637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11638 else
11639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11640 fi
11641 # FIXME: find the short name or the path components, as spaces are
11642 # common. (e.g. "Program Files" -> "PROGRA~1")
11643 ;;
11644 esac
11645
11646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11647 postinstall_cmds='base_file=`basename \$file`~
11648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11649 dldir=$destdir/`dirname \$dlpath`~
11650 test -d \$dldir || mkdir -p \$dldir~
11651 $install_prog $dir/$dlname \$dldir/$dlname'
11652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11653 dlpath=$dir/\$dldll~
11654 $RM \$dlpath'
11655 shlibpath_overrides_runpath=yes
11656 dynamic_linker='Win32 link.exe'
11657 ;;
11658
11659 *)
11660 # Assume MSVC and ICC wrapper
11661 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11662 dynamic_linker='Win32 ld.exe'
11663 ;;
11664 esac
11665 # FIXME: first we should search . and the directory the executable is in
11666 shlibpath_var=PATH
11667 ;;
11668
11669 darwin* | rhapsody*)
11670 dynamic_linker="$host_os dyld"
11671 version_type=darwin
11672 need_lib_prefix=no
11673 need_version=no
11674 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11675 soname_spec='$libname$release$major$shared_ext'
11676 shlibpath_overrides_runpath=yes
11677 shlibpath_var=DYLD_LIBRARY_PATH
11678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11679
11680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11682 ;;
11683
11684 dgux*)
11685 version_type=linux # correct to gnu/linux during the next big refactor
11686 need_lib_prefix=no
11687 need_version=no
11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11689 soname_spec='$libname$release$shared_ext$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 ;;
11692
11693 freebsd* | dragonfly* | midnightbsd*)
11694 # DragonFly does not have aout. When/if they implement a new
11695 # versioning mechanism, adjust this.
11696 if test -x /usr/bin/objformat; then
11697 objformat=`/usr/bin/objformat`
11698 else
11699 case $host_os in
11700 freebsd[23].*) objformat=aout ;;
11701 *) objformat=elf ;;
11702 esac
11703 fi
11704 version_type=freebsd-$objformat
11705 case $version_type in
11706 freebsd-elf*)
11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11708 soname_spec='$libname$release$shared_ext$major'
11709 need_version=no
11710 need_lib_prefix=no
11711 ;;
11712 freebsd-*)
11713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11714 need_version=yes
11715 ;;
11716 esac
11717 shlibpath_var=LD_LIBRARY_PATH
11718 case $host_os in
11719 freebsd2.*)
11720 shlibpath_overrides_runpath=yes
11721 ;;
11722 freebsd3.[01]* | freebsdelf3.[01]*)
11723 shlibpath_overrides_runpath=yes
11724 hardcode_into_libs=yes
11725 ;;
11726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11728 shlibpath_overrides_runpath=no
11729 hardcode_into_libs=yes
11730 ;;
11731 *) # from 4.6 on, and DragonFly
11732 shlibpath_overrides_runpath=yes
11733 hardcode_into_libs=yes
11734 ;;
11735 esac
11736 ;;
11737
11738 haiku*)
11739 version_type=linux # correct to gnu/linux during the next big refactor
11740 need_lib_prefix=no
11741 need_version=no
11742 dynamic_linker="$host_os runtime_loader"
11743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11744 soname_spec='$libname$release$shared_ext$major'
11745 shlibpath_var=LIBRARY_PATH
11746 shlibpath_overrides_runpath=no
11747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11748 hardcode_into_libs=yes
11749 ;;
11750
11751 hpux9* | hpux10* | hpux11*)
11752 # Give a soname corresponding to the major version so that dld.sl refuses to
11753 # link against other versions.
11754 version_type=sunos
11755 need_lib_prefix=no
11756 need_version=no
11757 case $host_cpu in
11758 ia64*)
11759 shrext_cmds='.so'
11760 hardcode_into_libs=yes
11761 dynamic_linker="$host_os dld.so"
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11765 soname_spec='$libname$release$shared_ext$major'
11766 if test 32 = "$HPUX_IA64_MODE"; then
11767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11768 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11769 else
11770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11771 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11772 fi
11773 ;;
11774 hppa*64*)
11775 shrext_cmds='.sl'
11776 hardcode_into_libs=yes
11777 dynamic_linker="$host_os dld.sl"
11778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781 soname_spec='$libname$release$shared_ext$major'
11782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11784 ;;
11785 *)
11786 shrext_cmds='.sl'
11787 dynamic_linker="$host_os dld.sl"
11788 shlibpath_var=SHLIB_PATH
11789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11791 soname_spec='$libname$release$shared_ext$major'
11792 ;;
11793 esac
11794 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11795 postinstall_cmds='chmod 555 $lib'
11796 # or fails outright, so override atomically:
11797 install_override_mode=555
11798 ;;
11799
11800 interix[3-9]*)
11801 version_type=linux # correct to gnu/linux during the next big refactor
11802 need_lib_prefix=no
11803 need_version=no
11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11805 soname_spec='$libname$release$shared_ext$major'
11806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11810 ;;
11811
11812 irix5* | irix6* | nonstopux*)
11813 case $host_os in
11814 nonstopux*) version_type=nonstopux ;;
11815 *)
11816 if test yes = "$lt_cv_prog_gnu_ld"; then
11817 version_type=linux # correct to gnu/linux during the next big refactor
11818 else
11819 version_type=irix
11820 fi ;;
11821 esac
11822 need_lib_prefix=no
11823 need_version=no
11824 soname_spec='$libname$release$shared_ext$major'
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11826 case $host_os in
11827 irix5* | nonstopux*)
11828 libsuff= shlibsuff=
11829 ;;
11830 *)
11831 case $LD in # libtool.m4 will add one of these switches to LD
11832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11833 libsuff= shlibsuff= libmagic=32-bit;;
11834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11835 libsuff=32 shlibsuff=N32 libmagic=N32;;
11836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11838 *) libsuff= shlibsuff= libmagic=never-match;;
11839 esac
11840 ;;
11841 esac
11842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11843 shlibpath_overrides_runpath=no
11844 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11845 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11846 hardcode_into_libs=yes
11847 ;;
11848
11849 # No shared lib support for Linux oldld, aout, or coff.
11850 linux*oldld* | linux*aout* | linux*coff*)
11851 dynamic_linker=no
11852 ;;
11853
11854 linux*android*)
11855 version_type=none # Android doesn't support versioned libraries.
11856 need_lib_prefix=no
11857 need_version=no
11858 library_names_spec='$libname$release$shared_ext'
11859 soname_spec='$libname$release$shared_ext'
11860 finish_cmds=
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes
11863
11864 # This implies no fast_install, which is unacceptable.
11865 # Some rework will be needed to allow for fast_install
11866 # before this can be enabled.
11867 hardcode_into_libs=yes
11868
11869 dynamic_linker='Android linker'
11870 # Don't embed -rpath directories since the linker doesn't support them.
11871 hardcode_libdir_flag_spec='-L$libdir'
11872 ;;
11873
11874 # This must be glibc/ELF.
11875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11876 version_type=linux # correct to gnu/linux during the next big refactor
11877 need_lib_prefix=no
11878 need_version=no
11879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880 soname_spec='$libname$release$shared_ext$major'
11881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=no
11884
11885 # Some binutils ld are patched to set DT_RUNPATH
11886 if test ${lt_cv_shlibpath_overrides_runpath+y}
11887 then :
11888 printf %s "(cached) " >&6
11889 else case e in #(
11890 e) lt_cv_shlibpath_overrides_runpath=no
11891 save_LDFLAGS=$LDFLAGS
11892 save_libdir=$libdir
11893 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11894 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11897
11898 int
11899 main (void)
11900 {
11901
11902 ;
11903 return 0;
11904 }
11905 _ACEOF
11906 if ac_fn_c_try_link "$LINENO"
11907 then :
11908 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11909 then :
11910 lt_cv_shlibpath_overrides_runpath=yes
11911 fi
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11914 conftest$ac_exeext conftest.$ac_ext
11915 LDFLAGS=$save_LDFLAGS
11916 libdir=$save_libdir
11917 ;;
11918 esac
11919 fi
11920
11921 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11922
11923 # This implies no fast_install, which is unacceptable.
11924 # Some rework will be needed to allow for fast_install
11925 # before this can be enabled.
11926 hardcode_into_libs=yes
11927
11928 # Ideally, we could use ldconfig to report *all* directores which are
11929 # searched for libraries, however this is still not possible. Aside from not
11930 # being certain /sbin/ldconfig is available, command
11931 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11932 # even though it is searched at run-time. Try to do the best guess by
11933 # appending ld.so.conf contents (and includes) to the search path.
11934 if test -f /etc/ld.so.conf; then
11935 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' ' '`
11936 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11937 fi
11938
11939 # We used to test for /lib/ld.so.1 and disable shared libraries on
11940 # powerpc, because MkLinux only supported shared libraries with the
11941 # GNU dynamic linker. Since this was broken with cross compilers,
11942 # most powerpc-linux boxes support dynamic linking these days and
11943 # people can always --disable-shared, the test was removed, and we
11944 # assume the GNU/Linux dynamic linker is in use.
11945 dynamic_linker='GNU/Linux ld.so'
11946 ;;
11947
11948 netbsd*)
11949 version_type=sunos
11950 need_lib_prefix=no
11951 need_version=no
11952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11955 dynamic_linker='NetBSD (a.out) ld.so'
11956 else
11957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11958 soname_spec='$libname$release$shared_ext$major'
11959 dynamic_linker='NetBSD ld.elf_so'
11960 fi
11961 shlibpath_var=LD_LIBRARY_PATH
11962 shlibpath_overrides_runpath=yes
11963 hardcode_into_libs=yes
11964 ;;
11965
11966 newsos6)
11967 version_type=linux # correct to gnu/linux during the next big refactor
11968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11969 shlibpath_var=LD_LIBRARY_PATH
11970 shlibpath_overrides_runpath=yes
11971 ;;
11972
11973 *nto* | *qnx*)
11974 version_type=qnx
11975 need_lib_prefix=no
11976 need_version=no
11977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11978 soname_spec='$libname$release$shared_ext$major'
11979 shlibpath_var=LD_LIBRARY_PATH
11980 shlibpath_overrides_runpath=no
11981 hardcode_into_libs=yes
11982 dynamic_linker='ldqnx.so'
11983 ;;
11984
11985 openbsd* | bitrig*)
11986 version_type=sunos
11987 sys_lib_dlsearch_path_spec=/usr/lib
11988 need_lib_prefix=no
11989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11990 need_version=no
11991 else
11992 need_version=yes
11993 fi
11994 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11996 shlibpath_var=LD_LIBRARY_PATH
11997 shlibpath_overrides_runpath=yes
11998 ;;
11999
12000 os2*)
12001 libname_spec='$name'
12002 version_type=windows
12003 shrext_cmds=.dll
12004 need_version=no
12005 need_lib_prefix=no
12006 # OS/2 can only load a DLL with a base name of 8 characters or less.
12007 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12008 v=$($ECHO $release$versuffix | tr -d .-);
12009 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12010 $ECHO $n$v`$shared_ext'
12011 library_names_spec='${libname}_dll.$libext'
12012 dynamic_linker='OS/2 ld.exe'
12013 shlibpath_var=BEGINLIBPATH
12014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12016 postinstall_cmds='base_file=`basename \$file`~
12017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12018 dldir=$destdir/`dirname \$dlpath`~
12019 test -d \$dldir || mkdir -p \$dldir~
12020 $install_prog $dir/$dlname \$dldir/$dlname~
12021 chmod a+x \$dldir/$dlname~
12022 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12023 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12024 fi'
12025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12026 dlpath=$dir/\$dldll~
12027 $RM \$dlpath'
12028 ;;
12029
12030 osf3* | osf4* | osf5*)
12031 version_type=osf
12032 need_lib_prefix=no
12033 need_version=no
12034 soname_spec='$libname$release$shared_ext$major'
12035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12036 shlibpath_var=LD_LIBRARY_PATH
12037 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12039 ;;
12040
12041 rdos*)
12042 dynamic_linker=no
12043 ;;
12044
12045 solaris*)
12046 version_type=linux # correct to gnu/linux during the next big refactor
12047 need_lib_prefix=no
12048 need_version=no
12049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12050 soname_spec='$libname$release$shared_ext$major'
12051 shlibpath_var=LD_LIBRARY_PATH
12052 shlibpath_overrides_runpath=yes
12053 hardcode_into_libs=yes
12054 # ldd complains unless libraries are executable
12055 postinstall_cmds='chmod +x $lib'
12056 ;;
12057
12058 sunos4*)
12059 version_type=sunos
12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12062 shlibpath_var=LD_LIBRARY_PATH
12063 shlibpath_overrides_runpath=yes
12064 if test yes = "$with_gnu_ld"; then
12065 need_lib_prefix=no
12066 fi
12067 need_version=yes
12068 ;;
12069
12070 sysv4 | sysv4.3*)
12071 version_type=linux # correct to gnu/linux during the next big refactor
12072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12073 soname_spec='$libname$release$shared_ext$major'
12074 shlibpath_var=LD_LIBRARY_PATH
12075 case $host_vendor in
12076 sni)
12077 shlibpath_overrides_runpath=no
12078 need_lib_prefix=no
12079 runpath_var=LD_RUN_PATH
12080 ;;
12081 siemens)
12082 need_lib_prefix=no
12083 ;;
12084 motorola)
12085 need_lib_prefix=no
12086 need_version=no
12087 shlibpath_overrides_runpath=no
12088 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12089 ;;
12090 esac
12091 ;;
12092
12093 sysv4*MP*)
12094 if test -d /usr/nec; then
12095 version_type=linux # correct to gnu/linux during the next big refactor
12096 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12097 soname_spec='$libname$shared_ext.$major'
12098 shlibpath_var=LD_LIBRARY_PATH
12099 fi
12100 ;;
12101
12102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12103 version_type=sco
12104 need_lib_prefix=no
12105 need_version=no
12106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12107 soname_spec='$libname$release$shared_ext$major'
12108 shlibpath_var=LD_LIBRARY_PATH
12109 shlibpath_overrides_runpath=yes
12110 hardcode_into_libs=yes
12111 if test yes = "$with_gnu_ld"; then
12112 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12113 else
12114 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12115 case $host_os in
12116 sco3.2v5*)
12117 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12118 ;;
12119 esac
12120 fi
12121 sys_lib_dlsearch_path_spec='/usr/lib'
12122 ;;
12123
12124 tpf*)
12125 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12126 version_type=linux # correct to gnu/linux during the next big refactor
12127 need_lib_prefix=no
12128 need_version=no
12129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12130 shlibpath_var=LD_LIBRARY_PATH
12131 shlibpath_overrides_runpath=no
12132 hardcode_into_libs=yes
12133 ;;
12134
12135 uts4*)
12136 version_type=linux # correct to gnu/linux during the next big refactor
12137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12138 soname_spec='$libname$release$shared_ext$major'
12139 shlibpath_var=LD_LIBRARY_PATH
12140 ;;
12141
12142 *)
12143 dynamic_linker=no
12144 ;;
12145 esac
12146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12147 printf "%s\n" "$dynamic_linker" >&6; }
12148 test no = "$dynamic_linker" && can_build_shared=no
12149
12150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12151 if test yes = "$GCC"; then
12152 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12153 fi
12154
12155 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12156 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12157 fi
12158
12159 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12160 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12161 fi
12162
12163 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12164 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12165
12166 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12167 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12168
12169 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12170 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12269 printf %s "checking how to hardcode library paths into programs... " >&6; }
12270 hardcode_action=
12271 if test -n "$hardcode_libdir_flag_spec" ||
12272 test -n "$runpath_var" ||
12273 test yes = "$hardcode_automatic"; then
12274
12275 # We can hardcode non-existent directories.
12276 if test no != "$hardcode_direct" &&
12277 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12278 # have to relink, otherwise we might link with an installed library
12279 # when we should be linking with a yet-to-be-installed one
12280 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12281 test no != "$hardcode_minus_L"; then
12282 # Linking always hardcodes the temporary library directory.
12283 hardcode_action=relink
12284 else
12285 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12286 hardcode_action=immediate
12287 fi
12288 else
12289 # We cannot hardcode anything, or else we can only hardcode existing
12290 # directories.
12291 hardcode_action=unsupported
12292 fi
12293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12294 printf "%s\n" "$hardcode_action" >&6; }
12295
12296 if test relink = "$hardcode_action" ||
12297 test yes = "$inherit_rpath"; then
12298 # Fast installation is not supported
12299 enable_fast_install=no
12300 elif test yes = "$shlibpath_overrides_runpath" ||
12301 test no = "$enable_shared"; then
12302 # Fast installation is not necessary
12303 enable_fast_install=needless
12304 fi
12305
12306
12307
12308
12309
12310
12311 if test yes != "$enable_dlopen"; then
12312 enable_dlopen=unknown
12313 enable_dlopen_self=unknown
12314 enable_dlopen_self_static=unknown
12315 else
12316 lt_cv_dlopen=no
12317 lt_cv_dlopen_libs=
12318
12319 case $host_os in
12320 beos*)
12321 lt_cv_dlopen=load_add_on
12322 lt_cv_dlopen_libs=
12323 lt_cv_dlopen_self=yes
12324 ;;
12325
12326 mingw* | pw32* | cegcc*)
12327 lt_cv_dlopen=LoadLibrary
12328 lt_cv_dlopen_libs=
12329 ;;
12330
12331 cygwin*)
12332 lt_cv_dlopen=dlopen
12333 lt_cv_dlopen_libs=
12334 ;;
12335
12336 darwin*)
12337 # if libdl is installed we need to link against it
12338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12339 printf %s "checking for dlopen in -ldl... " >&6; }
12340 if test ${ac_cv_lib_dl_dlopen+y}
12341 then :
12342 printf %s "(cached) " >&6
12343 else case e in #(
12344 e) ac_check_lib_save_LIBS=$LIBS
12345 LIBS="-ldl $LIBS"
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply.
12352 The 'extern "C"' is for builds by C++ compilers;
12353 although this is not generally supported in C code supporting it here
12354 has little cost and some practical benefit (sr 110532). */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 char dlopen (void);
12359 int
12360 main (void)
12361 {
12362 return dlopen ();
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_c_try_link "$LINENO"
12368 then :
12369 ac_cv_lib_dl_dlopen=yes
12370 else case e in #(
12371 e) ac_cv_lib_dl_dlopen=no ;;
12372 esac
12373 fi
12374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12375 conftest$ac_exeext conftest.$ac_ext
12376 LIBS=$ac_check_lib_save_LIBS ;;
12377 esac
12378 fi
12379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12380 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12381 if test "x$ac_cv_lib_dl_dlopen" = xyes
12382 then :
12383 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12384 else case e in #(
12385 e)
12386 lt_cv_dlopen=dyld
12387 lt_cv_dlopen_libs=
12388 lt_cv_dlopen_self=yes
12389 ;;
12390 esac
12391 fi
12392
12393 ;;
12394
12395 tpf*)
12396 # Don't try to run any link tests for TPF. We know it's impossible
12397 # because TPF is a cross-compiler, and we know how we open DSOs.
12398 lt_cv_dlopen=dlopen
12399 lt_cv_dlopen_libs=
12400 lt_cv_dlopen_self=no
12401 ;;
12402
12403 *)
12404 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12405 if test "x$ac_cv_func_shl_load" = xyes
12406 then :
12407 lt_cv_dlopen=shl_load
12408 else case e in #(
12409 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12410 printf %s "checking for shl_load in -ldld... " >&6; }
12411 if test ${ac_cv_lib_dld_shl_load+y}
12412 then :
12413 printf %s "(cached) " >&6
12414 else case e in #(
12415 e) ac_check_lib_save_LIBS=$LIBS
12416 LIBS="-ldld $LIBS"
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419
12420 /* Override any GCC internal prototype to avoid an error.
12421 Use char because int might match the return type of a GCC
12422 builtin and then its argument prototype would still apply.
12423 The 'extern "C"' is for builds by C++ compilers;
12424 although this is not generally supported in C code supporting it here
12425 has little cost and some practical benefit (sr 110532). */
12426 #ifdef __cplusplus
12427 extern "C"
12428 #endif
12429 char shl_load (void);
12430 int
12431 main (void)
12432 {
12433 return shl_load ();
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"
12439 then :
12440 ac_cv_lib_dld_shl_load=yes
12441 else case e in #(
12442 e) ac_cv_lib_dld_shl_load=no ;;
12443 esac
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12446 conftest$ac_exeext conftest.$ac_ext
12447 LIBS=$ac_check_lib_save_LIBS ;;
12448 esac
12449 fi
12450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12451 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12452 if test "x$ac_cv_lib_dld_shl_load" = xyes
12453 then :
12454 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12455 else case e in #(
12456 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12457 if test "x$ac_cv_func_dlopen" = xyes
12458 then :
12459 lt_cv_dlopen=dlopen
12460 else case e in #(
12461 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12462 printf %s "checking for dlopen in -ldl... " >&6; }
12463 if test ${ac_cv_lib_dl_dlopen+y}
12464 then :
12465 printf %s "(cached) " >&6
12466 else case e in #(
12467 e) ac_check_lib_save_LIBS=$LIBS
12468 LIBS="-ldl $LIBS"
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12471
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply.
12475 The 'extern "C"' is for builds by C++ compilers;
12476 although this is not generally supported in C code supporting it here
12477 has little cost and some practical benefit (sr 110532). */
12478 #ifdef __cplusplus
12479 extern "C"
12480 #endif
12481 char dlopen (void);
12482 int
12483 main (void)
12484 {
12485 return dlopen ();
12486 ;
12487 return 0;
12488 }
12489 _ACEOF
12490 if ac_fn_c_try_link "$LINENO"
12491 then :
12492 ac_cv_lib_dl_dlopen=yes
12493 else case e in #(
12494 e) ac_cv_lib_dl_dlopen=no ;;
12495 esac
12496 fi
12497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12498 conftest$ac_exeext conftest.$ac_ext
12499 LIBS=$ac_check_lib_save_LIBS ;;
12500 esac
12501 fi
12502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12503 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12504 if test "x$ac_cv_lib_dl_dlopen" = xyes
12505 then :
12506 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12507 else case e in #(
12508 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12509 printf %s "checking for dlopen in -lsvld... " >&6; }
12510 if test ${ac_cv_lib_svld_dlopen+y}
12511 then :
12512 printf %s "(cached) " >&6
12513 else case e in #(
12514 e) ac_check_lib_save_LIBS=$LIBS
12515 LIBS="-lsvld $LIBS"
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply.
12522 The 'extern "C"' is for builds by C++ compilers;
12523 although this is not generally supported in C code supporting it here
12524 has little cost and some practical benefit (sr 110532). */
12525 #ifdef __cplusplus
12526 extern "C"
12527 #endif
12528 char dlopen (void);
12529 int
12530 main (void)
12531 {
12532 return dlopen ();
12533 ;
12534 return 0;
12535 }
12536 _ACEOF
12537 if ac_fn_c_try_link "$LINENO"
12538 then :
12539 ac_cv_lib_svld_dlopen=yes
12540 else case e in #(
12541 e) ac_cv_lib_svld_dlopen=no ;;
12542 esac
12543 fi
12544 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12545 conftest$ac_exeext conftest.$ac_ext
12546 LIBS=$ac_check_lib_save_LIBS ;;
12547 esac
12548 fi
12549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12550 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12551 if test "x$ac_cv_lib_svld_dlopen" = xyes
12552 then :
12553 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12554 else case e in #(
12555 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12556 printf %s "checking for dld_link in -ldld... " >&6; }
12557 if test ${ac_cv_lib_dld_dld_link+y}
12558 then :
12559 printf %s "(cached) " >&6
12560 else case e in #(
12561 e) ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-ldld $LIBS"
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12565
12566 /* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply.
12569 The 'extern "C"' is for builds by C++ compilers;
12570 although this is not generally supported in C code supporting it here
12571 has little cost and some practical benefit (sr 110532). */
12572 #ifdef __cplusplus
12573 extern "C"
12574 #endif
12575 char dld_link (void);
12576 int
12577 main (void)
12578 {
12579 return dld_link ();
12580 ;
12581 return 0;
12582 }
12583 _ACEOF
12584 if ac_fn_c_try_link "$LINENO"
12585 then :
12586 ac_cv_lib_dld_dld_link=yes
12587 else case e in #(
12588 e) ac_cv_lib_dld_dld_link=no ;;
12589 esac
12590 fi
12591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12592 conftest$ac_exeext conftest.$ac_ext
12593 LIBS=$ac_check_lib_save_LIBS ;;
12594 esac
12595 fi
12596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12597 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12598 if test "x$ac_cv_lib_dld_dld_link" = xyes
12599 then :
12600 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12601 fi
12602
12603 ;;
12604 esac
12605 fi
12606
12607 ;;
12608 esac
12609 fi
12610
12611 ;;
12612 esac
12613 fi
12614
12615 ;;
12616 esac
12617 fi
12618
12619 ;;
12620 esac
12621 fi
12622
12623 ;;
12624 esac
12625
12626 if test no = "$lt_cv_dlopen"; then
12627 enable_dlopen=no
12628 else
12629 enable_dlopen=yes
12630 fi
12631
12632 case $lt_cv_dlopen in
12633 dlopen)
12634 save_CPPFLAGS=$CPPFLAGS
12635 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12636
12637 save_LDFLAGS=$LDFLAGS
12638 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12639
12640 save_LIBS=$LIBS
12641 LIBS="$lt_cv_dlopen_libs $LIBS"
12642
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12644 printf %s "checking whether a program can dlopen itself... " >&6; }
12645 if test ${lt_cv_dlopen_self+y}
12646 then :
12647 printf %s "(cached) " >&6
12648 else case e in #(
12649 e) if test yes = "$cross_compiling"; then :
12650 lt_cv_dlopen_self=cross
12651 else
12652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12653 lt_status=$lt_dlunknown
12654 cat > conftest.$ac_ext <<_LT_EOF
12655 #line $LINENO "configure"
12656 #include "confdefs.h"
12657
12658 #if HAVE_DLFCN_H
12659 #include <dlfcn.h>
12660 #endif
12661
12662 #include <stdio.h>
12663
12664 #ifdef RTLD_GLOBAL
12665 # define LT_DLGLOBAL RTLD_GLOBAL
12666 #else
12667 # ifdef DL_GLOBAL
12668 # define LT_DLGLOBAL DL_GLOBAL
12669 # else
12670 # define LT_DLGLOBAL 0
12671 # endif
12672 #endif
12673
12674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12675 find out it does not work in some platform. */
12676 #ifndef LT_DLLAZY_OR_NOW
12677 # ifdef RTLD_LAZY
12678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12679 # else
12680 # ifdef DL_LAZY
12681 # define LT_DLLAZY_OR_NOW DL_LAZY
12682 # else
12683 # ifdef RTLD_NOW
12684 # define LT_DLLAZY_OR_NOW RTLD_NOW
12685 # else
12686 # ifdef DL_NOW
12687 # define LT_DLLAZY_OR_NOW DL_NOW
12688 # else
12689 # define LT_DLLAZY_OR_NOW 0
12690 # endif
12691 # endif
12692 # endif
12693 # endif
12694 #endif
12695
12696 /* When -fvisibility=hidden is used, assume the code has been annotated
12697 correspondingly for the symbols needed. */
12698 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12699 int fnord () __attribute__((visibility("default")));
12700 #endif
12701
12702 int fnord () { return 42; }
12703 int main ()
12704 {
12705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12706 int status = $lt_dlunknown;
12707
12708 if (self)
12709 {
12710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12711 else
12712 {
12713 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12714 else puts (dlerror ());
12715 }
12716 /* dlclose (self); */
12717 }
12718 else
12719 puts (dlerror ());
12720
12721 return status;
12722 }
12723 _LT_EOF
12724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12725 (eval $ac_link) 2>&5
12726 ac_status=$?
12727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12729 (./conftest; exit; ) >&5 2>/dev/null
12730 lt_status=$?
12731 case x$lt_status in
12732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12734 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12735 esac
12736 else :
12737 # compilation failed
12738 lt_cv_dlopen_self=no
12739 fi
12740 fi
12741 rm -fr conftest*
12742
12743 ;;
12744 esac
12745 fi
12746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12747 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12748
12749 if test yes = "$lt_cv_dlopen_self"; then
12750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12752 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12753 if test ${lt_cv_dlopen_self_static+y}
12754 then :
12755 printf %s "(cached) " >&6
12756 else case e in #(
12757 e) if test yes = "$cross_compiling"; then :
12758 lt_cv_dlopen_self_static=cross
12759 else
12760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12761 lt_status=$lt_dlunknown
12762 cat > conftest.$ac_ext <<_LT_EOF
12763 #line $LINENO "configure"
12764 #include "confdefs.h"
12765
12766 #if HAVE_DLFCN_H
12767 #include <dlfcn.h>
12768 #endif
12769
12770 #include <stdio.h>
12771
12772 #ifdef RTLD_GLOBAL
12773 # define LT_DLGLOBAL RTLD_GLOBAL
12774 #else
12775 # ifdef DL_GLOBAL
12776 # define LT_DLGLOBAL DL_GLOBAL
12777 # else
12778 # define LT_DLGLOBAL 0
12779 # endif
12780 #endif
12781
12782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12783 find out it does not work in some platform. */
12784 #ifndef LT_DLLAZY_OR_NOW
12785 # ifdef RTLD_LAZY
12786 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12787 # else
12788 # ifdef DL_LAZY
12789 # define LT_DLLAZY_OR_NOW DL_LAZY
12790 # else
12791 # ifdef RTLD_NOW
12792 # define LT_DLLAZY_OR_NOW RTLD_NOW
12793 # else
12794 # ifdef DL_NOW
12795 # define LT_DLLAZY_OR_NOW DL_NOW
12796 # else
12797 # define LT_DLLAZY_OR_NOW 0
12798 # endif
12799 # endif
12800 # endif
12801 # endif
12802 #endif
12803
12804 /* When -fvisibility=hidden is used, assume the code has been annotated
12805 correspondingly for the symbols needed. */
12806 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12807 int fnord () __attribute__((visibility("default")));
12808 #endif
12809
12810 int fnord () { return 42; }
12811 int main ()
12812 {
12813 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12814 int status = $lt_dlunknown;
12815
12816 if (self)
12817 {
12818 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12819 else
12820 {
12821 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12822 else puts (dlerror ());
12823 }
12824 /* dlclose (self); */
12825 }
12826 else
12827 puts (dlerror ());
12828
12829 return status;
12830 }
12831 _LT_EOF
12832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12833 (eval $ac_link) 2>&5
12834 ac_status=$?
12835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12836 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12837 (./conftest; exit; ) >&5 2>/dev/null
12838 lt_status=$?
12839 case x$lt_status in
12840 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12841 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12842 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12843 esac
12844 else :
12845 # compilation failed
12846 lt_cv_dlopen_self_static=no
12847 fi
12848 fi
12849 rm -fr conftest*
12850
12851 ;;
12852 esac
12853 fi
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12855 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12856 fi
12857
12858 CPPFLAGS=$save_CPPFLAGS
12859 LDFLAGS=$save_LDFLAGS
12860 LIBS=$save_LIBS
12861 ;;
12862 esac
12863
12864 case $lt_cv_dlopen_self in
12865 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12866 *) enable_dlopen_self=unknown ;;
12867 esac
12868
12869 case $lt_cv_dlopen_self_static in
12870 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12871 *) enable_dlopen_self_static=unknown ;;
12872 esac
12873 fi
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891 striplib=
12892 old_striplib=
12893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12894 printf %s "checking whether stripping libraries is possible... " >&6; }
12895 if test -z "$STRIP"; then
12896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897 printf "%s\n" "no" >&6; }
12898 else
12899 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12900 old_striplib="$STRIP --strip-debug"
12901 striplib="$STRIP --strip-unneeded"
12902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903 printf "%s\n" "yes" >&6; }
12904 else
12905 case $host_os in
12906 darwin*)
12907 # FIXME - insert some real tests, host_os isn't really good enough
12908 striplib="$STRIP -x"
12909 old_striplib="$STRIP -S"
12910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12911 printf "%s\n" "yes" >&6; }
12912 ;;
12913 freebsd*)
12914 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12915 old_striplib="$STRIP --strip-debug"
12916 striplib="$STRIP --strip-unneeded"
12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918 printf "%s\n" "yes" >&6; }
12919 else
12920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 printf "%s\n" "no" >&6; }
12922 fi
12923 ;;
12924 *)
12925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 printf "%s\n" "no" >&6; }
12927 ;;
12928 esac
12929 fi
12930 fi
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943 # Report what library types will actually be built
12944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12945 printf %s "checking if libtool supports shared libraries... " >&6; }
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12947 printf "%s\n" "$can_build_shared" >&6; }
12948
12949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12950 printf %s "checking whether to build shared libraries... " >&6; }
12951 test no = "$can_build_shared" && enable_shared=no
12952
12953 # On AIX, shared libraries and static libraries use the same namespace, and
12954 # are all built from PIC.
12955 case $host_os in
12956 aix3*)
12957 test yes = "$enable_shared" && enable_static=no
12958 if test -n "$RANLIB"; then
12959 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12960 postinstall_cmds='$RANLIB $lib'
12961 fi
12962 ;;
12963
12964 aix[4-9]*)
12965 if test ia64 != "$host_cpu"; then
12966 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12967 yes,aix,yes) ;; # shared object as lib.so file only
12968 yes,svr4,*) ;; # shared object as lib.so archive member only
12969 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12970 esac
12971 fi
12972 ;;
12973 esac
12974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12975 printf "%s\n" "$enable_shared" >&6; }
12976
12977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12978 printf %s "checking whether to build static libraries... " >&6; }
12979 # Make sure either enable_shared or enable_static is yes.
12980 test yes = "$enable_shared" || enable_static=yes
12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12982 printf "%s\n" "$enable_static" >&6; }
12983
12984
12985
12986
12987 fi
12988 ac_ext=c
12989 ac_cpp='$CPP $CPPFLAGS'
12990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12993
12994 CC=$lt_save_CC
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010 ac_config_commands="$ac_config_commands libtool"
13011
13012
13013
13014
13015 # Only expand once:
13016
13017
13018
13019 LIBGEE_LT_VERSION="8:1:6"
13020
13021
13022 GLIB_REQUIRED=2.36
13023
13024
13025 vala_checkfiles="$vala_checkfiles $srcdir/gee/libgee_0_8_la_vala.stamp"
13026
13027
13028 vala_checkfiles="$vala_checkfiles $srcdir/tests/tests_vala.stamp"
13029
13030
13031 VALAFLAGS="${VALAFLAGS:+$VALAFLAGS }--target-glib=$GLIB_REQUIRED"
13032
13033
13034 VALAFLAGS="${VALAFLAGS:+$VALAFLAGS }--hide-internal"
13035
13036
13037 # Check whether --enable-doc was given.
13038 if test ${enable_doc+y}
13039 then :
13040 enableval=$enable_doc; enable_doc=$enableval
13041 else case e in #(
13042 e) enable_doc=no ;;
13043 esac
13044 fi
13045
13046 if test x$enable_doc = xyes; then
13047 ENABLE_DOC_TRUE=
13048 ENABLE_DOC_FALSE='#'
13049 else
13050 ENABLE_DOC_TRUE='#'
13051 ENABLE_DOC_FALSE=
13052 fi
13053
13054
13055 if test "x$enable_doc" != xno
13056 then :
13057 # Extract the first word of "valadoc", so it can be a program name with args.
13058 set dummy valadoc; ac_word=$2
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060 printf %s "checking for $ac_word... " >&6; }
13061 if test ${ac_cv_path_VALADOC+y}
13062 then :
13063 printf %s "(cached) " >&6
13064 else case e in #(
13065 e) case $VALADOC in
13066 [\\/]* | ?:[\\/]*)
13067 ac_cv_path_VALADOC="$VALADOC" # Let the user override the test with a path.
13068 ;;
13069 *)
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13072 do
13073 IFS=$as_save_IFS
13074 case $as_dir in #(((
13075 '') as_dir=./ ;;
13076 */) ;;
13077 *) as_dir=$as_dir/ ;;
13078 esac
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13081 ac_cv_path_VALADOC="$as_dir$ac_word$ac_exec_ext"
13082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13083 break 2
13084 fi
13085 done
13086 done
13087 IFS=$as_save_IFS
13088
13089 test -z "$ac_cv_path_VALADOC" && ac_cv_path_VALADOC=":"
13090 ;;
13091 esac ;;
13092 esac
13093 fi
13094 VALADOC=$ac_cv_path_VALADOC
13095 if test -n "$VALADOC"; then
13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALADOC" >&5
13097 printf "%s\n" "$VALADOC" >&6; }
13098 else
13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 printf "%s\n" "no" >&6; }
13101 fi
13102
13103
13104
13105 if test "$VALADOC" = :
13106 then :
13107 as_fn_error $? "valadoc not found" "$LINENO" 5
13108 fi
13109 fi
13110
13111 # Check whether --enable-coverage was given.
13112 if test ${enable_coverage+y}
13113 then :
13114 enableval=$enable_coverage; enable_coverage=$enableval
13115 else case e in #(
13116 e) enable_coverage=no ;;
13117 esac
13118 fi
13119
13120 if test x$enable_coverage != xno; then
13121 ENABLE_COVERAGE_TRUE=
13122 ENABLE_COVERAGE_FALSE='#'
13123 else
13124 ENABLE_COVERAGE_TRUE='#'
13125 ENABLE_COVERAGE_FALSE=
13126 fi
13127
13128 if test "x$enable_coverage" != xno
13129 then :
13130 COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage"
13131 COVERAGE_VALAFLAGS="-g"
13132 COVERAGE_LIBS="-lgcov"
13133
13134
13135
13136 # Extract the first word of "lcov", so it can be a program name with args.
13137 set dummy lcov; ac_word=$2
13138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13139 printf %s "checking for $ac_word... " >&6; }
13140 if test ${ac_cv_path_LCOV+y}
13141 then :
13142 printf %s "(cached) " >&6
13143 else case e in #(
13144 e) case $LCOV in
13145 [\\/]* | ?:[\\/]*)
13146 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
13147 ;;
13148 *)
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13151 do
13152 IFS=$as_save_IFS
13153 case $as_dir in #(((
13154 '') as_dir=./ ;;
13155 */) ;;
13156 *) as_dir=$as_dir/ ;;
13157 esac
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13160 ac_cv_path_LCOV="$as_dir$ac_word$ac_exec_ext"
13161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13162 break 2
13163 fi
13164 done
13165 done
13166 IFS=$as_save_IFS
13167
13168 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV=":"
13169 ;;
13170 esac ;;
13171 esac
13172 fi
13173 LCOV=$ac_cv_path_LCOV
13174 if test -n "$LCOV"; then
13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
13176 printf "%s\n" "$LCOV" >&6; }
13177 else
13178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 printf "%s\n" "no" >&6; }
13180 fi
13181
13182
13183
13184 if test "$LCOV" = :
13185 then :
13186 as_fn_error $? "lcov is necessary for testing code coverage (http://ltp.sourceforge.net/coverage/lcov.php)" "$LINENO" 5
13187 fi
13188 fi
13189
13190 # Check whether --enable-benchmark was given.
13191 if test ${enable_benchmark+y}
13192 then :
13193 enableval=$enable_benchmark; enable_benchmark=$enableval
13194 else case e in #(
13195 e) enable_benchmark=no ;;
13196 esac
13197 fi
13198
13199 if test x$enable_benchmark = xyes; then
13200 ENABLE_BENCHMARK_TRUE=
13201 ENABLE_BENCHMARK_FALSE='#'
13202 else
13203 ENABLE_BENCHMARK_TRUE='#'
13204 ENABLE_BENCHMARK_FALSE=
13205 fi
13206
13207 if test x$enable_benchmark = xyes
13208 then :
13209
13210 vala_checkfiles="$vala_checkfiles $srcdir/benchmark/benchmarks_vala.stamp"
13211
13212 fi
13213
13214
13215
13216
13217
13218
13219
13220
13221 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13222 if test -n "$ac_tool_prefix"; then
13223 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13224 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226 printf %s "checking for $ac_word... " >&6; }
13227 if test ${ac_cv_path_PKG_CONFIG+y}
13228 then :
13229 printf %s "(cached) " >&6
13230 else case e in #(
13231 e) case $PKG_CONFIG in
13232 [\\/]* | ?:[\\/]*)
13233 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13234 ;;
13235 *)
13236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237 for as_dir in $PATH
13238 do
13239 IFS=$as_save_IFS
13240 case $as_dir in #(((
13241 '') as_dir=./ ;;
13242 */) ;;
13243 *) as_dir=$as_dir/ ;;
13244 esac
13245 for ac_exec_ext in '' $ac_executable_extensions; do
13246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13247 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13249 break 2
13250 fi
13251 done
13252 done
13253 IFS=$as_save_IFS
13254
13255 ;;
13256 esac ;;
13257 esac
13258 fi
13259 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13260 if test -n "$PKG_CONFIG"; then
13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13262 printf "%s\n" "$PKG_CONFIG" >&6; }
13263 else
13264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 printf "%s\n" "no" >&6; }
13266 fi
13267
13268
13269 fi
13270 if test -z "$ac_cv_path_PKG_CONFIG"; then
13271 ac_pt_PKG_CONFIG=$PKG_CONFIG
13272 # Extract the first word of "pkg-config", so it can be a program name with args.
13273 set dummy pkg-config; ac_word=$2
13274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275 printf %s "checking for $ac_word... " >&6; }
13276 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13277 then :
13278 printf %s "(cached) " >&6
13279 else case e in #(
13280 e) case $ac_pt_PKG_CONFIG in
13281 [\\/]* | ?:[\\/]*)
13282 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13283 ;;
13284 *)
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13287 do
13288 IFS=$as_save_IFS
13289 case $as_dir in #(((
13290 '') as_dir=./ ;;
13291 */) ;;
13292 *) as_dir=$as_dir/ ;;
13293 esac
13294 for ac_exec_ext in '' $ac_executable_extensions; do
13295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13296 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13298 break 2
13299 fi
13300 done
13301 done
13302 IFS=$as_save_IFS
13303
13304 ;;
13305 esac ;;
13306 esac
13307 fi
13308 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13309 if test -n "$ac_pt_PKG_CONFIG"; then
13310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13311 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13312 else
13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 printf "%s\n" "no" >&6; }
13315 fi
13316
13317 if test "x$ac_pt_PKG_CONFIG" = x; then
13318 PKG_CONFIG=""
13319 else
13320 case $cross_compiling:$ac_tool_warned in
13321 yes:)
13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13323 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13324 ac_tool_warned=yes ;;
13325 esac
13326 PKG_CONFIG=$ac_pt_PKG_CONFIG
13327 fi
13328 else
13329 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13330 fi
13331
13332 fi
13333 if test -n "$PKG_CONFIG"; then
13334 _pkg_min_version=0.9.0
13335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13336 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13337 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13339 printf "%s\n" "yes" >&6; }
13340 else
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 printf "%s\n" "no" >&6; }
13343 PKG_CONFIG=""
13344 fi
13345 fi
13346 if test -z "$PKG_CONFIG"; then
13347 as_fn_error $? "pkg-config not found" "$LINENO" 5
13348 fi
13349
13350 pkg_failed=no
13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED" >&5
13352 printf %s "checking for glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED... " >&6; }
13353
13354 if test -n "$GLIB_CFLAGS"; then
13355 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
13356 elif test -n "$PKG_CONFIG"; then
13357 if test -n "$PKG_CONFIG" && \
13358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED gio-2.0 >= \$GLIB_REQUIRED\""; } >&5
13359 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED") 2>&5
13360 ac_status=$?
13361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13362 test $ac_status = 0; }; then
13363 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
13364 test "x$?" != "x0" && pkg_failed=yes
13365 else
13366 pkg_failed=yes
13367 fi
13368 else
13369 pkg_failed=untried
13370 fi
13371 if test -n "$GLIB_LIBS"; then
13372 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
13373 elif test -n "$PKG_CONFIG"; then
13374 if test -n "$PKG_CONFIG" && \
13375 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED gio-2.0 >= \$GLIB_REQUIRED\""; } >&5
13376 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED") 2>&5
13377 ac_status=$?
13378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13379 test $ac_status = 0; }; then
13380 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
13381 test "x$?" != "x0" && pkg_failed=yes
13382 else
13383 pkg_failed=yes
13384 fi
13385 else
13386 pkg_failed=untried
13387 fi
13388
13389
13390
13391 if test $pkg_failed = yes; then
13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393 printf "%s\n" "no" >&6; }
13394
13395 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13396 _pkg_short_errors_supported=yes
13397 else
13398 _pkg_short_errors_supported=no
13399 fi
13400 if test $_pkg_short_errors_supported = yes; then
13401 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED" 2>&1`
13402 else
13403 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED" 2>&1`
13404 fi
13405 # Put the nasty error message in config.log where it belongs
13406 echo "$GLIB_PKG_ERRORS" >&5
13407
13408 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED) were not met:
13409
13410 $GLIB_PKG_ERRORS
13411
13412 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13413 installed software in a non-standard prefix.
13414
13415 Alternatively, you may set the environment variables GLIB_CFLAGS
13416 and GLIB_LIBS to avoid the need to call pkg-config.
13417 See the pkg-config man page for more details." "$LINENO" 5
13418 elif test $pkg_failed = untried; then
13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420 printf "%s\n" "no" >&6; }
13421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13422 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13423 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13424 is in your PATH or set the PKG_CONFIG environment variable to the full
13425 path to pkg-config.
13426
13427 Alternatively, you may set the environment variables GLIB_CFLAGS
13428 and GLIB_LIBS to avoid the need to call pkg-config.
13429 See the pkg-config man page for more details.
13430
13431 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13432 See 'config.log' for more details" "$LINENO" 5; }
13433 else
13434 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
13435 GLIB_LIBS=$pkg_cv_GLIB_LIBS
13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13437 printf "%s\n" "yes" >&6; }
13438
13439 fi
13440
13441
13442
13443 # Check whether --enable-internal-asserts was given.
13444 if test ${enable_internal_asserts+y}
13445 then :
13446 enableval=$enable_internal_asserts; enable_internal_asserts=$enableval
13447 else case e in #(
13448 e) enable_internal_asserts=yes ;;
13449 esac
13450 fi
13451
13452 if test "x$enable_internal_asserts" = xno
13453 then :
13454
13455 VALAFLAGS="${VALAFLAGS:+$VALAFLAGS }-D DISABLE_INTERNAL_ASSERTS"
13456
13457 fi
13458
13459 # Check whether --enable-consistency-check was given.
13460 if test ${enable_consistency_check+y}
13461 then :
13462 enableval=$enable_consistency_check; enable_consistency_check=$enableval
13463 else case e in #(
13464 e) enable_consistency_check=no ;;
13465 esac
13466 fi
13467
13468 if test "x$enable_consistency_check" != xno
13469 then :
13470
13471 VALAFLAGS="${VALAFLAGS:+$VALAFLAGS }-D CONSISTENCY_CHECKS"
13472
13473 fi
13474
13475
13476
13477
13478
13479
13480 # Check whether --enable-introspection was given.
13481 if test ${enable_introspection+y}
13482 then :
13483 enableval=$enable_introspection;
13484 else case e in #(
13485 e) enable_introspection=auto ;;
13486 esac
13487 fi
13488
13489
13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
13491 printf %s "checking for gobject-introspection... " >&6; }
13492
13493 case $enable_introspection in #(
13494 no) :
13495 found_introspection="no (disabled, use --enable-introspection to enable)"
13496 ;; #(
13497 yes) :
13498 if test -n "$PKG_CONFIG" && \
13499 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
13500 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
13501 ac_status=$?
13502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503 test $ac_status = 0; }; then
13504 :
13505 else
13506 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
13507 fi
13508 if test -n "$PKG_CONFIG" && \
13509 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.0\""; } >&5
13510 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.0") 2>&5
13511 ac_status=$?
13512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13513 test $ac_status = 0; }; then
13514 found_introspection=yes
13515 else
13516 as_fn_error $? "You need to have gobject-introspection >= 0.9.0 installed to build libgee" "$LINENO" 5
13517 fi
13518 ;; #(
13519 auto) :
13520 if test -n "$PKG_CONFIG" && \
13521 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.0\""; } >&5
13522 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.0") 2>&5
13523 ac_status=$?
13524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13525 test $ac_status = 0; }; then
13526 found_introspection=yes
13527 else
13528 found_introspection=no
13529 fi
13530 enable_introspection=$found_introspection
13531 ;; #(
13532 *) :
13533 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
13534 ;;
13535 esac
13536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
13537 printf "%s\n" "$found_introspection" >&6; }
13538
13539
13540 EXP_VAR=_GI_EXP_DATADIR
13541 FROM_VAR="$datadir"
13542
13543 prefix_save=$prefix
13544 exec_prefix_save=$exec_prefix
13545
13546 if test "x$prefix" = "xNONE"; then
13547 prefix="$ac_default_prefix"
13548 fi
13549 if test "x$exec_prefix" = "xNONE"; then
13550 exec_prefix=$prefix
13551 fi
13552
13553 full_var="$FROM_VAR"
13554 while true; do
13555 new_full_var="`eval echo $full_var`"
13556 if test "x$new_full_var" = "x$full_var"; then break; fi
13557 full_var=$new_full_var
13558 done
13559
13560 full_var=$new_full_var
13561 _GI_EXP_DATADIR="$full_var"
13562
13563
13564 prefix=$prefix_save
13565 exec_prefix=$exec_prefix_save
13566
13567
13568 EXP_VAR=_GI_EXP_LIBDIR
13569 FROM_VAR="$libdir"
13570
13571 prefix_save=$prefix
13572 exec_prefix_save=$exec_prefix
13573
13574 if test "x$prefix" = "xNONE"; then
13575 prefix="$ac_default_prefix"
13576 fi
13577 if test "x$exec_prefix" = "xNONE"; then
13578 exec_prefix=$prefix
13579 fi
13580
13581 full_var="$FROM_VAR"
13582 while true; do
13583 new_full_var="`eval echo $full_var`"
13584 if test "x$new_full_var" = "x$full_var"; then break; fi
13585 full_var=$new_full_var
13586 done
13587
13588 full_var=$new_full_var
13589 _GI_EXP_LIBDIR="$full_var"
13590
13591
13592 prefix=$prefix_save
13593 exec_prefix=$exec_prefix_save
13594
13595
13596 INTROSPECTION_SCANNER=
13597 INTROSPECTION_COMPILER=
13598 INTROSPECTION_GENERATE=
13599 INTROSPECTION_GIRDIR=
13600 INTROSPECTION_TYPELIBDIR=
13601 if test "x$found_introspection" = "xyes"; then
13602 INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
13603 INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
13604 INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
13605 INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
13606 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
13607 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
13608 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
13609 INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
13610 fi
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620 if test "x$found_introspection" = "xyes"; then
13621 HAVE_INTROSPECTION_TRUE=
13622 HAVE_INTROSPECTION_FALSE='#'
13623 else
13624 HAVE_INTROSPECTION_TRUE='#'
13625 HAVE_INTROSPECTION_FALSE=
13626 fi
13627
13628
13629
13630
13631
13632 # Check whether --enable-vala was given.
13633 if test ${enable_vala+y}
13634 then :
13635 enableval=$enable_vala;
13636 else case e in #(
13637 e) enable_vala=no ;;
13638 esac
13639 fi
13640
13641 # Check whether --enable-vala-fatal-warnings was given.
13642 if test ${enable_vala_fatal_warnings+y}
13643 then :
13644 enableval=$enable_vala_fatal_warnings;
13645 else case e in #(
13646 e) enable_vala_fatal_warnings=no ;;
13647 esac
13648 fi
13649
13650 if test "x$enable_vala_fatal_warnings" = "xyes"
13651 then :
13652
13653 VALAFLAGS="${VALAFLAGS:+$VALAFLAGS }--fatal-warnings"
13654
13655 fi
13656
13657 for checkfile in $vala_checkfiles
13658 do
13659 if test ! -e "$checkfile"
13660 then :
13661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Missing checkfile file $checkfile. Forcing vala mode" >&5
13662 printf "%s\n" "$as_me: WARNING: Missing checkfile file $checkfile. Forcing vala mode" >&2;}
13663 enable_vala=yes
13664
13665 fi
13666 done
13667
13668 if test x$enable_vala = xyes
13669 then :
13670
13671 # Extract the first word of "valac", so it can be a program name with args.
13672 set dummy valac; ac_word=$2
13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13674 printf %s "checking for $ac_word... " >&6; }
13675 if test ${ac_cv_path_VALAC+y}
13676 then :
13677 printf %s "(cached) " >&6
13678 else case e in #(
13679 e) case $VALAC in
13680 [\\/]* | ?:[\\/]*)
13681 ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
13682 ;;
13683 *)
13684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685 for as_dir in $PATH
13686 do
13687 IFS=$as_save_IFS
13688 case $as_dir in #(((
13689 '') as_dir=./ ;;
13690 */) ;;
13691 *) as_dir=$as_dir/ ;;
13692 esac
13693 for ac_exec_ext in '' $ac_executable_extensions; do
13694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13695 ac_cv_path_VALAC="$as_dir$ac_word$ac_exec_ext"
13696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13697 break 2
13698 fi
13699 done
13700 done
13701 IFS=$as_save_IFS
13702
13703 test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac"
13704 ;;
13705 esac ;;
13706 esac
13707 fi
13708 VALAC=$ac_cv_path_VALAC
13709 if test -n "$VALAC"; then
13710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
13711 printf "%s\n" "$VALAC" >&6; }
13712 else
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714 printf "%s\n" "no" >&6; }
13715 fi
13716
13717
13718 if test "$VALAC" != valac && test -n "0.25.1"
13719 then :
13720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $VALAC supports at least API version 0.25.1" >&5
13721 printf %s "checking whether $VALAC supports at least API version 0.25.1... " >&6; }
13722 am__vala_version=`$VALAC --api-version`
13723 as_arg_v1=0.25.1
13724 as_arg_v2="$am__vala_version"
13725 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13726 case $? in #(
13727 1) :
13728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13729 printf "%s\n" "yes" >&6; } ;; #(
13730 0) :
13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13732 printf "%s\n" "yes" >&6; } ;; #(
13733 2) :
13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 printf "%s\n" "no" >&6; }
13736 VALAC=valac ;; #(
13737 *) :
13738 ;;
13739 esac
13740 fi
13741 if test "$VALAC" = valac; then
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vala compiler not found or too old" >&5
13743 printf "%s\n" "$as_me: WARNING: Vala compiler not found or too old" >&2;}
13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile Vala source files" >&5
13745 printf "%s\n" "$as_me: WARNING: you will not be able to compile Vala source files" >&2;}
13746 else
13747 :
13748 fi
13749 if test x$VALAC = "x"
13750 then :
13751 as_fn_error $? "Cannot find the \"valac\" compiler in your PATH" "$LINENO" 5
13752 else case e in #(
13753 e)
13754 unset vala_pkgs
13755 unset vala_bindings
13756 ac_save_ifs="$IFS"; unset IFS
13757 for vala_pkg in $(echo ""); do
13758 vala_pkgs="${vala_pkgs:+$vala_pkgs }--pkg $vala_pkg"
13759 vala_bindings="${vala_bindings:+$vala_bindings }$vala_pkg"
13760 done
13761 IFS="$ac_save_ifs"
13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $vala_bindings vala bindings" >&5
13763 printf %s "checking for $vala_bindings vala bindings... " >&6; }
13764
13765 cat <<_ACEOF >conftest.vala
13766 void main(){}
13767 _ACEOF
13768
13769 if vala_error=`$VALAC $vala_pkgs -q --cc="${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}" -o conftest$ac_exeext conftest.vala 2>&1`
13770 then :
13771 vala_pkg_exists=yes
13772 else case e in #(
13773 e) vala_pkg_exists=no ;;
13774 esac
13775 fi
13776
13777
13778 if test x${vala_pkg_exists} = xno
13779 then :
13780
13781 as_fn_error $? "Package requirements were not met:
13782
13783 $vala_error
13784
13785 Consider adjusting the XDG_DATA_DIRS environment variable if you
13786 installed bindings in a non-standard prefix.
13787 " "$LINENO" 5
13788 else case e in #(
13789 e)
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13791 printf "%s\n" "yes" >&6; }
13792 : ;;
13793 esac
13794 fi
13795
13796 ;;
13797 esac
13798 fi
13799
13800 # Extract the first word of "vapigen", so it can be a program name with args.
13801 set dummy vapigen; ac_word=$2
13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803 printf %s "checking for $ac_word... " >&6; }
13804 if test ${ac_cv_path_VAPIGEN+y}
13805 then :
13806 printf %s "(cached) " >&6
13807 else case e in #(
13808 e) case $VAPIGEN in
13809 [\\/]* | ?:[\\/]*)
13810 ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
13811 ;;
13812 *)
13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in $PATH
13815 do
13816 IFS=$as_save_IFS
13817 case $as_dir in #(((
13818 '') as_dir=./ ;;
13819 */) ;;
13820 *) as_dir=$as_dir/ ;;
13821 esac
13822 for ac_exec_ext in '' $ac_executable_extensions; do
13823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13824 ac_cv_path_VAPIGEN="$as_dir$ac_word$ac_exec_ext"
13825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13826 break 2
13827 fi
13828 done
13829 done
13830 IFS=$as_save_IFS
13831
13832 test -z "$ac_cv_path_VAPIGEN" && ac_cv_path_VAPIGEN="no"
13833 ;;
13834 esac ;;
13835 esac
13836 fi
13837 VAPIGEN=$ac_cv_path_VAPIGEN
13838 if test -n "$VAPIGEN"; then
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
13840 printf "%s\n" "$VAPIGEN" >&6; }
13841 else
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 printf "%s\n" "no" >&6; }
13844 fi
13845
13846
13847 if test x$VAPIGEN = "xno"
13848 then :
13849 as_fn_error $? "Cannot find the \"vapigen compiler in your PATH" "$LINENO" 5
13850 fi
13851
13852
13853 fi
13854
13855
13856 ac_config_files="$ac_config_files Makefile gee-0.8.pc benchmark/Makefile doc/Makefile gee/Makefile tests/Makefile"
13857
13858 cat >confcache <<\_ACEOF
13859 # This file is a shell script that caches the results of configure
13860 # tests run on this system so they can be shared between configure
13861 # scripts and configure runs, see configure's option --config-cache.
13862 # It is not useful on other systems. If it contains results you don't
13863 # want to keep, you may remove or edit it.
13864 #
13865 # config.status only pays attention to the cache file if you give it
13866 # the --recheck option to rerun configure.
13867 #
13868 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
13869 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
13870 # following values.
13871
13872 _ACEOF
13873
13874 # The following way of writing the cache mishandles newlines in values,
13875 # but we know of no workaround that is simple, portable, and efficient.
13876 # So, we kill variables containing newlines.
13877 # Ultrix sh set writes to stderr and can't be redirected directly,
13878 # and sets the high bit in the cache file unless we assign to the vars.
13879 (
13880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13881 eval ac_val=\$$ac_var
13882 case $ac_val in #(
13883 *${as_nl}*)
13884 case $ac_var in #(
13885 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13886 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13887 esac
13888 case $ac_var in #(
13889 _ | IFS | as_nl) ;; #(
13890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13891 *) { eval $ac_var=; unset $ac_var;} ;;
13892 esac ;;
13893 esac
13894 done
13895
13896 (set) 2>&1 |
13897 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13898 *${as_nl}ac_space=\ *)
13899 # 'set' does not quote correctly, so add quotes: double-quote
13900 # substitution turns \\\\ into \\, and sed turns \\ into \.
13901 sed -n \
13902 "s/'/'\\\\''/g;
13903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13904 ;; #(
13905 *)
13906 # 'set' quotes correctly as required by POSIX, so do not add quotes.
13907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13908 ;;
13909 esac |
13910 sort
13911 ) |
13912 sed '
13913 /^ac_cv_env_/b end
13914 t clear
13915 :clear
13916 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13917 t end
13918 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13919 :end' >>confcache
13920 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13921 if test -w "$cache_file"; then
13922 if test "x$cache_file" != "x/dev/null"; then
13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13924 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13925 if test ! -f "$cache_file" || test -h "$cache_file"; then
13926 cat confcache >"$cache_file"
13927 else
13928 case $cache_file in #(
13929 */* | ?:*)
13930 mv -f confcache "$cache_file"$$ &&
13931 mv -f "$cache_file"$$ "$cache_file" ;; #(
13932 *)
13933 mv -f confcache "$cache_file" ;;
13934 esac
13935 fi
13936 fi
13937 else
13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13939 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13940 fi
13941 fi
13942 rm -f confcache
13943
13944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13945 # Let make expand exec_prefix.
13946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13947
13948 DEFS=-DHAVE_CONFIG_H
13949
13950 ac_libobjs=
13951 ac_ltlibobjs=
13952 U=
13953 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13954 # 1. Remove the extension, and $U if already installed.
13955 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13956 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13957 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13958 # will be set to the directory where LIBOBJS objects are built.
13959 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13960 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13961 done
13962 LIBOBJS=$ac_libobjs
13963
13964 LTLIBOBJS=$ac_ltlibobjs
13965
13966
13967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13968 printf %s "checking that generated files are newer than configure... " >&6; }
13969 if test -n "$am_sleep_pid"; then
13970 # Hide warnings about reused PIDs.
13971 wait $am_sleep_pid 2>/dev/null
13972 fi
13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13974 printf "%s\n" "done" >&6; }
13975 if test -n "$EXEEXT"; then
13976 am__EXEEXT_TRUE=
13977 am__EXEEXT_FALSE='#'
13978 else
13979 am__EXEEXT_TRUE='#'
13980 am__EXEEXT_FALSE=
13981 fi
13982
13983 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13984 as_fn_error $? "conditional \"AMDEP\" was never defined.
13985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13986 fi
13987 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13988 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13990 fi
13991 if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
13992 as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
13993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13994 fi
13995 if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
13996 as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
13997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13998 fi
13999 if test -z "${ENABLE_BENCHMARK_TRUE}" && test -z "${ENABLE_BENCHMARK_FALSE}"; then
14000 as_fn_error $? "conditional \"ENABLE_BENCHMARK\" was never defined.
14001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14002 fi
14003 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
14004 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
14005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14006 fi
14007
14008 : "${CONFIG_STATUS=./config.status}"
14009 ac_write_fail=0
14010 ac_clean_files_save=$ac_clean_files
14011 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14013 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14014 as_write_fail=0
14015 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14016 #! $SHELL
14017 # Generated by $as_me.
14018 # Run this file to recreate the current configuration.
14019 # Compiler output produced by configure, useful for debugging
14020 # configure, is in config.log if it exists.
14021
14022 debug=false
14023 ac_cs_recheck=false
14024 ac_cs_silent=false
14025
14026 SHELL=\${CONFIG_SHELL-$SHELL}
14027 export SHELL
14028 _ASEOF
14029 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14030 ## -------------------- ##
14031 ## M4sh Initialization. ##
14032 ## -------------------- ##
14033
14034 # Be more Bourne compatible
14035 DUALCASE=1; export DUALCASE # for MKS sh
14036 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14037 then :
14038 emulate sh
14039 NULLCMD=:
14040 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14041 # is contrary to our usage. Disable this feature.
14042 alias -g '${1+"$@"}'='"$@"'
14043 setopt NO_GLOB_SUBST
14044 else case e in #(
14045 e) case `(set -o) 2>/dev/null` in #(
14046 *posix*) :
14047 set -o posix ;; #(
14048 *) :
14049 ;;
14050 esac ;;
14051 esac
14052 fi
14053
14054
14055
14056 # Reset variables that may have inherited troublesome values from
14057 # the environment.
14058
14059 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14060 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14061 # side effect of setting IFS to empty, thus disabling word splitting.)
14062 # Quoting is to prevent editors from complaining about space-tab.
14063 as_nl='
14064 '
14065 export as_nl
14066 IFS=" "" $as_nl"
14067
14068 PS1='$ '
14069 PS2='> '
14070 PS4='+ '
14071
14072 # Ensure predictable behavior from utilities with locale-dependent output.
14073 LC_ALL=C
14074 export LC_ALL
14075 LANGUAGE=C
14076 export LANGUAGE
14077
14078 # We cannot yet rely on "unset" to work, but we need these variables
14079 # to be unset--not just set to an empty or harmless value--now, to
14080 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14081 # also avoids known problems related to "unset" and subshell syntax
14082 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14083 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14084 do eval test \${$as_var+y} \
14085 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14086 done
14087
14088 # Ensure that fds 0, 1, and 2 are open.
14089 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14090 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14091 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14092
14093 # The user is always right.
14094 if ${PATH_SEPARATOR+false} :; then
14095 PATH_SEPARATOR=:
14096 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14097 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14098 PATH_SEPARATOR=';'
14099 }
14100 fi
14101
14102
14103 # Find who we are. Look in the path if we contain no directory separator.
14104 as_myself=
14105 case $0 in #((
14106 *[\\/]* ) as_myself=$0 ;;
14107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14108 for as_dir in $PATH
14109 do
14110 IFS=$as_save_IFS
14111 case $as_dir in #(((
14112 '') as_dir=./ ;;
14113 */) ;;
14114 *) as_dir=$as_dir/ ;;
14115 esac
14116 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14117 done
14118 IFS=$as_save_IFS
14119
14120 ;;
14121 esac
14122 # We did not find ourselves, most probably we were run as 'sh COMMAND'
14123 # in which case we are not to be found in the path.
14124 if test "x$as_myself" = x; then
14125 as_myself=$0
14126 fi
14127 if test ! -f "$as_myself"; then
14128 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14129 exit 1
14130 fi
14131
14132
14133
14134 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14135 # ----------------------------------------
14136 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14137 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14138 # script with STATUS, using 1 if that was 0.
14139 as_fn_error ()
14140 {
14141 as_status=$1; test $as_status -eq 0 && as_status=1
14142 if test "$4"; then
14143 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14145 fi
14146 printf "%s\n" "$as_me: error: $2" >&2
14147 as_fn_exit $as_status
14148 } # as_fn_error
14149
14150
14151 # as_fn_set_status STATUS
14152 # -----------------------
14153 # Set $? to STATUS, without forking.
14154 as_fn_set_status ()
14155 {
14156 return $1
14157 } # as_fn_set_status
14158
14159 # as_fn_exit STATUS
14160 # -----------------
14161 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14162 as_fn_exit ()
14163 {
14164 set +e
14165 as_fn_set_status $1
14166 exit $1
14167 } # as_fn_exit
14168
14169 # as_fn_unset VAR
14170 # ---------------
14171 # Portably unset VAR.
14172 as_fn_unset ()
14173 {
14174 { eval $1=; unset $1;}
14175 }
14176 as_unset=as_fn_unset
14177
14178 # as_fn_append VAR VALUE
14179 # ----------------------
14180 # Append the text in VALUE to the end of the definition contained in VAR. Take
14181 # advantage of any shell optimizations that allow amortized linear growth over
14182 # repeated appends, instead of the typical quadratic growth present in naive
14183 # implementations.
14184 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14185 then :
14186 eval 'as_fn_append ()
14187 {
14188 eval $1+=\$2
14189 }'
14190 else case e in #(
14191 e) as_fn_append ()
14192 {
14193 eval $1=\$$1\$2
14194 } ;;
14195 esac
14196 fi # as_fn_append
14197
14198 # as_fn_arith ARG...
14199 # ------------------
14200 # Perform arithmetic evaluation on the ARGs, and store the result in the
14201 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14202 # must be portable across $(()) and expr.
14203 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14204 then :
14205 eval 'as_fn_arith ()
14206 {
14207 as_val=$(( $* ))
14208 }'
14209 else case e in #(
14210 e) as_fn_arith ()
14211 {
14212 as_val=`expr "$@" || test $? -eq 1`
14213 } ;;
14214 esac
14215 fi # as_fn_arith
14216
14217
14218 if expr a : '\(a\)' >/dev/null 2>&1 &&
14219 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14220 as_expr=expr
14221 else
14222 as_expr=false
14223 fi
14224
14225 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14226 as_basename=basename
14227 else
14228 as_basename=false
14229 fi
14230
14231 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14232 as_dirname=dirname
14233 else
14234 as_dirname=false
14235 fi
14236
14237 as_me=`$as_basename -- "$0" ||
14238 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14239 X"$0" : 'X\(//\)$' \| \
14240 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14241 printf "%s\n" X/"$0" |
14242 sed '/^.*\/\([^/][^/]*\)\/*$/{
14243 s//\1/
14244 q
14245 }
14246 /^X\/\(\/\/\)$/{
14247 s//\1/
14248 q
14249 }
14250 /^X\/\(\/\).*/{
14251 s//\1/
14252 q
14253 }
14254 s/.*/./; q'`
14255
14256 # Avoid depending upon Character Ranges.
14257 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14258 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14259 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14260 as_cr_digits='0123456789'
14261 as_cr_alnum=$as_cr_Letters$as_cr_digits
14262
14263
14264 # Determine whether it's possible to make 'echo' print without a newline.
14265 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14266 # for compatibility with existing Makefiles.
14267 ECHO_C= ECHO_N= ECHO_T=
14268 case `echo -n x` in #(((((
14269 -n*)
14270 case `echo 'xy\c'` in
14271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14272 xy) ECHO_C='\c';;
14273 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14274 ECHO_T=' ';;
14275 esac;;
14276 *)
14277 ECHO_N='-n';;
14278 esac
14279
14280 # For backward compatibility with old third-party macros, we provide
14281 # the shell variables $as_echo and $as_echo_n. New code should use
14282 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14283 as_echo='printf %s\n'
14284 as_echo_n='printf %s'
14285
14286 rm -f conf$$ conf$$.exe conf$$.file
14287 if test -d conf$$.dir; then
14288 rm -f conf$$.dir/conf$$.file
14289 else
14290 rm -f conf$$.dir
14291 mkdir conf$$.dir 2>/dev/null
14292 fi
14293 if (echo >conf$$.file) 2>/dev/null; then
14294 if ln -s conf$$.file conf$$ 2>/dev/null; then
14295 as_ln_s='ln -s'
14296 # ... but there are two gotchas:
14297 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
14298 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
14299 # In both cases, we have to default to 'cp -pR'.
14300 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14301 as_ln_s='cp -pR'
14302 elif ln conf$$.file conf$$ 2>/dev/null; then
14303 as_ln_s=ln
14304 else
14305 as_ln_s='cp -pR'
14306 fi
14307 else
14308 as_ln_s='cp -pR'
14309 fi
14310 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14311 rmdir conf$$.dir 2>/dev/null
14312
14313
14314 # as_fn_mkdir_p
14315 # -------------
14316 # Create "$as_dir" as a directory, including parents if necessary.
14317 as_fn_mkdir_p ()
14318 {
14319
14320 case $as_dir in #(
14321 -*) as_dir=./$as_dir;;
14322 esac
14323 test -d "$as_dir" || eval $as_mkdir_p || {
14324 as_dirs=
14325 while :; do
14326 case $as_dir in #(
14327 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14328 *) as_qdir=$as_dir;;
14329 esac
14330 as_dirs="'$as_qdir' $as_dirs"
14331 as_dir=`$as_dirname -- "$as_dir" ||
14332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14333 X"$as_dir" : 'X\(//\)[^/]' \| \
14334 X"$as_dir" : 'X\(//\)$' \| \
14335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14336 printf "%s\n" X"$as_dir" |
14337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14338 s//\1/
14339 q
14340 }
14341 /^X\(\/\/\)[^/].*/{
14342 s//\1/
14343 q
14344 }
14345 /^X\(\/\/\)$/{
14346 s//\1/
14347 q
14348 }
14349 /^X\(\/\).*/{
14350 s//\1/
14351 q
14352 }
14353 s/.*/./; q'`
14354 test -d "$as_dir" && break
14355 done
14356 test -z "$as_dirs" || eval "mkdir $as_dirs"
14357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14358
14359
14360 } # as_fn_mkdir_p
14361 if mkdir -p . 2>/dev/null; then
14362 as_mkdir_p='mkdir -p "$as_dir"'
14363 else
14364 test -d ./-p && rmdir ./-p
14365 as_mkdir_p=false
14366 fi
14367
14368
14369 # as_fn_executable_p FILE
14370 # -----------------------
14371 # Test if FILE is an executable regular file.
14372 as_fn_executable_p ()
14373 {
14374 test -f "$1" && test -x "$1"
14375 } # as_fn_executable_p
14376 as_test_x='test -x'
14377 as_executable_p=as_fn_executable_p
14378
14379 # Sed expression to map a string onto a valid CPP name.
14380 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14381 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
14382
14383 # Sed expression to map a string onto a valid variable name.
14384 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14385 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
14386
14387
14388 exec 6>&1
14389 ## ----------------------------------- ##
14390 ## Main body of $CONFIG_STATUS script. ##
14391 ## ----------------------------------- ##
14392 _ASEOF
14393 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14394
14395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14396 # Save the log message, to keep $0 and so on meaningful, and to
14397 # report actual input values of CONFIG_FILES etc. instead of their
14398 # values after options handling.
14399 ac_log="
14400 This file was extended by libgee $as_me 0.20.8, which was
14401 generated by GNU Autoconf 2.72. Invocation command line was
14402
14403 CONFIG_FILES = $CONFIG_FILES
14404 CONFIG_HEADERS = $CONFIG_HEADERS
14405 CONFIG_LINKS = $CONFIG_LINKS
14406 CONFIG_COMMANDS = $CONFIG_COMMANDS
14407 $ $0 $@
14408
14409 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14410 "
14411
14412 _ACEOF
14413
14414 case $ac_config_files in *"
14415 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14416 esac
14417
14418 case $ac_config_headers in *"
14419 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14420 esac
14421
14422
14423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14424 # Files that config.status was made for.
14425 config_files="$ac_config_files"
14426 config_headers="$ac_config_headers"
14427 config_commands="$ac_config_commands"
14428
14429 _ACEOF
14430
14431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14432 ac_cs_usage="\
14433 '$as_me' instantiates files and other configuration actions
14434 from templates according to the current configuration. Unless the files
14435 and actions are specified as TAGs, all are instantiated by default.
14436
14437 Usage: $0 [OPTION]... [TAG]...
14438
14439 -h, --help print this help, then exit
14440 -V, --version print version number and configuration settings, then exit
14441 --config print configuration, then exit
14442 -q, --quiet, --silent
14443 do not print progress messages
14444 -d, --debug don't remove temporary files
14445 --recheck update $as_me by reconfiguring in the same conditions
14446 --file=FILE[:TEMPLATE]
14447 instantiate the configuration file FILE
14448 --header=FILE[:TEMPLATE]
14449 instantiate the configuration header FILE
14450
14451 Configuration files:
14452 $config_files
14453
14454 Configuration headers:
14455 $config_headers
14456
14457 Configuration commands:
14458 $config_commands
14459
14460 Report bugs to <https://gitlab.gnome.org/GNOME/libgee/issues>.
14461 libgee home page: <https://wiki.gnome.org/Projects/Libgee>."
14462
14463 _ACEOF
14464 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14465 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14467 ac_cs_config='$ac_cs_config_escaped'
14468 ac_cs_version="\\
14469 libgee config.status 0.20.8
14470 configured by $0, generated by GNU Autoconf 2.72,
14471 with options \\"\$ac_cs_config\\"
14472
14473 Copyright (C) 2023 Free Software Foundation, Inc.
14474 This config.status script is free software; the Free Software Foundation
14475 gives unlimited permission to copy, distribute and modify it."
14476
14477 ac_pwd='$ac_pwd'
14478 srcdir='$srcdir'
14479 INSTALL='$INSTALL'
14480 MKDIR_P='$MKDIR_P'
14481 AWK='$AWK'
14482 test -n "\$AWK" || AWK=awk
14483 _ACEOF
14484
14485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14486 # The default lists apply if the user does not specify any file.
14487 ac_need_defaults=:
14488 while test $# != 0
14489 do
14490 case $1 in
14491 --*=?*)
14492 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14493 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14494 ac_shift=:
14495 ;;
14496 --*=)
14497 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14498 ac_optarg=
14499 ac_shift=:
14500 ;;
14501 *)
14502 ac_option=$1
14503 ac_optarg=$2
14504 ac_shift=shift
14505 ;;
14506 esac
14507
14508 case $ac_option in
14509 # Handling of the options.
14510 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14511 ac_cs_recheck=: ;;
14512 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14513 printf "%s\n" "$ac_cs_version"; exit ;;
14514 --config | --confi | --conf | --con | --co | --c )
14515 printf "%s\n" "$ac_cs_config"; exit ;;
14516 --debug | --debu | --deb | --de | --d | -d )
14517 debug=: ;;
14518 --file | --fil | --fi | --f )
14519 $ac_shift
14520 case $ac_optarg in
14521 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14522 '') as_fn_error $? "missing file argument" ;;
14523 esac
14524 as_fn_append CONFIG_FILES " '$ac_optarg'"
14525 ac_need_defaults=false;;
14526 --header | --heade | --head | --hea )
14527 $ac_shift
14528 case $ac_optarg in
14529 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14530 esac
14531 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14532 ac_need_defaults=false;;
14533 --he | --h)
14534 # Conflict between --help and --header
14535 as_fn_error $? "ambiguous option: '$1'
14536 Try '$0 --help' for more information.";;
14537 --help | --hel | -h )
14538 printf "%s\n" "$ac_cs_usage"; exit ;;
14539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14541 ac_cs_silent=: ;;
14542
14543 # This is an error.
14544 -*) as_fn_error $? "unrecognized option: '$1'
14545 Try '$0 --help' for more information." ;;
14546
14547 *) as_fn_append ac_config_targets " $1"
14548 ac_need_defaults=false ;;
14549
14550 esac
14551 shift
14552 done
14553
14554 ac_configure_extra_args=
14555
14556 if $ac_cs_silent; then
14557 exec 6>/dev/null
14558 ac_configure_extra_args="$ac_configure_extra_args --silent"
14559 fi
14560
14561 _ACEOF
14562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14563 if \$ac_cs_recheck; then
14564 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14565 shift
14566 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14567 CONFIG_SHELL='$SHELL'
14568 export CONFIG_SHELL
14569 exec "\$@"
14570 fi
14571
14572 _ACEOF
14573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14574 exec 5>>config.log
14575 {
14576 echo
14577 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14578 ## Running $as_me. ##
14579 _ASBOX
14580 printf "%s\n" "$ac_log"
14581 } >&5
14582
14583 _ACEOF
14584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14585 #
14586 # INIT-COMMANDS
14587 #
14588 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14589
14590
14591 # The HP-UX ksh and POSIX shell print the target directory to stdout
14592 # if CDPATH is set.
14593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14594
14595 sed_quote_subst='$sed_quote_subst'
14596 double_quote_subst='$double_quote_subst'
14597 delay_variable_subst='$delay_variable_subst'
14598 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14599 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14600 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14601 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14602 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14603 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14604 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14605 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14606 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14607 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14608 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14609 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14610 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14611 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14612 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14613 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14614 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14615 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14616 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14617 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14618 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14619 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14620 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14621 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14622 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14623 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14624 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14625 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14626 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14627 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14628 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14629 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14630 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14631 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14632 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14633 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14634 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14635 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14636 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14637 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14638 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14639 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14640 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14641 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14642 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14643 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14644 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14645 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14646 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14647 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14648 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14649 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14650 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14651 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14652 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14653 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14654 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14655 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14656 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14657 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14658 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"`'
14659 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14660 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14661 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14662 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14663 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14664 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14665 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14666 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14667 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14668 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14669 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14670 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14671 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14672 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14673 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14674 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14675 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14676 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14677 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14678 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14679 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14680 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14681 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14682 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14683 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14684 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14685 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14686 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14687 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14688 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14689 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14690 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14691 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14692 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14693 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14694 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14695 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14696 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14697 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14698 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14699 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14700 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14701 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14702 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14703 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14704 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14705 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14706 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14707 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14708 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14709 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14710 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14711 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14712 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14713 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14714 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14715 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14716 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14717 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14718 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14719 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14720 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14721 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14722 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14723 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14724 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14725 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14726 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14727 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14728 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14729 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14730 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14731 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14732 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14733 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14734 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14735
14736 LTCC='$LTCC'
14737 LTCFLAGS='$LTCFLAGS'
14738 compiler='$compiler_DEFAULT'
14739
14740 # A function that is used when there is no print builtin or printf.
14741 func_fallback_echo ()
14742 {
14743 eval 'cat <<_LTECHO_EOF
14744 \$1
14745 _LTECHO_EOF'
14746 }
14747
14748 # Quote evaled strings.
14749 for var in SHELL \
14750 ECHO \
14751 PATH_SEPARATOR \
14752 SED \
14753 GREP \
14754 EGREP \
14755 FGREP \
14756 LD \
14757 NM \
14758 LN_S \
14759 lt_SP2NL \
14760 lt_NL2SP \
14761 reload_flag \
14762 FILECMD \
14763 OBJDUMP \
14764 deplibs_check_method \
14765 file_magic_cmd \
14766 file_magic_glob \
14767 want_nocaseglob \
14768 DLLTOOL \
14769 sharedlib_from_linklib_cmd \
14770 AR \
14771 archiver_list_spec \
14772 STRIP \
14773 RANLIB \
14774 CC \
14775 CFLAGS \
14776 compiler \
14777 lt_cv_sys_global_symbol_pipe \
14778 lt_cv_sys_global_symbol_to_cdecl \
14779 lt_cv_sys_global_symbol_to_import \
14780 lt_cv_sys_global_symbol_to_c_name_address \
14781 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14782 lt_cv_nm_interface \
14783 nm_file_list_spec \
14784 lt_cv_truncate_bin \
14785 lt_prog_compiler_no_builtin_flag \
14786 lt_prog_compiler_pic \
14787 lt_prog_compiler_wl \
14788 lt_prog_compiler_static \
14789 lt_cv_prog_compiler_c_o \
14790 need_locks \
14791 MANIFEST_TOOL \
14792 DSYMUTIL \
14793 NMEDIT \
14794 LIPO \
14795 OTOOL \
14796 OTOOL64 \
14797 shrext_cmds \
14798 export_dynamic_flag_spec \
14799 whole_archive_flag_spec \
14800 compiler_needs_object \
14801 with_gnu_ld \
14802 allow_undefined_flag \
14803 no_undefined_flag \
14804 hardcode_libdir_flag_spec \
14805 hardcode_libdir_separator \
14806 exclude_expsyms \
14807 include_expsyms \
14808 file_list_spec \
14809 variables_saved_for_relink \
14810 libname_spec \
14811 library_names_spec \
14812 soname_spec \
14813 install_override_mode \
14814 finish_eval \
14815 old_striplib \
14816 striplib; do
14817 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14818 *[\\\\\\\`\\"\\\$]*)
14819 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14820 ;;
14821 *)
14822 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14823 ;;
14824 esac
14825 done
14826
14827 # Double-quote double-evaled strings.
14828 for var in reload_cmds \
14829 old_postinstall_cmds \
14830 old_postuninstall_cmds \
14831 old_archive_cmds \
14832 extract_expsyms_cmds \
14833 old_archive_from_new_cmds \
14834 old_archive_from_expsyms_cmds \
14835 archive_cmds \
14836 archive_expsym_cmds \
14837 module_cmds \
14838 module_expsym_cmds \
14839 export_symbols_cmds \
14840 prelink_cmds \
14841 postlink_cmds \
14842 postinstall_cmds \
14843 postuninstall_cmds \
14844 finish_cmds \
14845 sys_lib_search_path_spec \
14846 configure_time_dlsearch_path \
14847 configure_time_lt_sys_library_path; do
14848 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14849 *[\\\\\\\`\\"\\\$]*)
14850 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14851 ;;
14852 *)
14853 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14854 ;;
14855 esac
14856 done
14857
14858 ac_aux_dir='$ac_aux_dir'
14859
14860 # See if we are running on zsh, and set the options that allow our
14861 # commands through without removal of \ escapes INIT.
14862 if test -n "\${ZSH_VERSION+set}"; then
14863 setopt NO_GLOB_SUBST
14864 fi
14865
14866
14867 PACKAGE='$PACKAGE'
14868 VERSION='$VERSION'
14869 RM='$RM'
14870 ofile='$ofile'
14871
14872
14873
14874
14875 _ACEOF
14876
14877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14878
14879 # Handling of arguments.
14880 for ac_config_target in $ac_config_targets
14881 do
14882 case $ac_config_target in
14883 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14884 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14885 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14886 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14887 "gee-0.8.pc") CONFIG_FILES="$CONFIG_FILES gee-0.8.pc" ;;
14888 "benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/Makefile" ;;
14889 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14890 "gee/Makefile") CONFIG_FILES="$CONFIG_FILES gee/Makefile" ;;
14891 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14892
14893 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
14894 esac
14895 done
14896
14897
14898 # If the user did not use the arguments to specify the items to instantiate,
14899 # then the envvar interface is used. Set only those that are not.
14900 # We use the long form for the default assignment because of an extremely
14901 # bizarre bug on SunOS 4.1.3.
14902 if $ac_need_defaults; then
14903 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14904 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14905 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14906 fi
14907
14908 # Have a temporary directory for convenience. Make it in the build tree
14909 # simply because there is no reason against having it here, and in addition,
14910 # creating and moving files from /tmp can sometimes cause problems.
14911 # Hook for its removal unless debugging.
14912 # Note that there is a small window in which the directory will not be cleaned:
14913 # after its creation but before its name has been assigned to '$tmp'.
14914 $debug ||
14915 {
14916 tmp= ac_tmp=
14917 trap 'exit_status=$?
14918 : "${ac_tmp:=$tmp}"
14919 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14920 ' 0
14921 trap 'as_fn_exit 1' 1 2 13 15
14922 }
14923 # Create a (secure) tmp directory for tmp files.
14924
14925 {
14926 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14927 test -d "$tmp"
14928 } ||
14929 {
14930 tmp=./conf$$-$RANDOM
14931 (umask 077 && mkdir "$tmp")
14932 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14933 ac_tmp=$tmp
14934
14935 # Set up the scripts for CONFIG_FILES section.
14936 # No need to generate them if there are no CONFIG_FILES.
14937 # This happens for instance with './config.status config.h'.
14938 if test -n "$CONFIG_FILES"; then
14939
14940
14941 ac_cr=`echo X | tr X '\015'`
14942 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14943 # But we know of no other shell where ac_cr would be empty at this
14944 # point, so we can use a bashism as a fallback.
14945 if test "x$ac_cr" = x; then
14946 eval ac_cr=\$\'\\r\'
14947 fi
14948 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14949 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14950 ac_cs_awk_cr='\\r'
14951 else
14952 ac_cs_awk_cr=$ac_cr
14953 fi
14954
14955 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14956 _ACEOF
14957
14958
14959 {
14960 echo "cat >conf$$subs.awk <<_ACEOF" &&
14961 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14962 echo "_ACEOF"
14963 } >conf$$subs.sh ||
14964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14965 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14966 ac_delim='%!_!# '
14967 for ac_last_try in false false false false false :; do
14968 . ./conf$$subs.sh ||
14969 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14970
14971 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14972 if test $ac_delim_n = $ac_delim_num; then
14973 break
14974 elif $ac_last_try; then
14975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14976 else
14977 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14978 fi
14979 done
14980 rm -f conf$$subs.sh
14981
14982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14983 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14984 _ACEOF
14985 sed -n '
14986 h
14987 s/^/S["/; s/!.*/"]=/
14988 p
14989 g
14990 s/^[^!]*!//
14991 :repl
14992 t repl
14993 s/'"$ac_delim"'$//
14994 t delim
14995 :nl
14996 h
14997 s/\(.\{148\}\)..*/\1/
14998 t more1
14999 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15000 p
15001 n
15002 b repl
15003 :more1
15004 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15005 p
15006 g
15007 s/.\{148\}//
15008 t nl
15009 :delim
15010 h
15011 s/\(.\{148\}\)..*/\1/
15012 t more2
15013 s/["\\]/\\&/g; s/^/"/; s/$/"/
15014 p
15015 b
15016 :more2
15017 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15018 p
15019 g
15020 s/.\{148\}//
15021 t delim
15022 ' <conf$$subs.awk | sed '
15023 /^[^""]/{
15024 N
15025 s/\n//
15026 }
15027 ' >>$CONFIG_STATUS || ac_write_fail=1
15028 rm -f conf$$subs.awk
15029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15030 _ACAWK
15031 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15032 for (key in S) S_is_set[key] = 1
15033 FS = ""
15034
15035 }
15036 {
15037 line = $ 0
15038 nfields = split(line, field, "@")
15039 substed = 0
15040 len = length(field[1])
15041 for (i = 2; i < nfields; i++) {
15042 key = field[i]
15043 keylen = length(key)
15044 if (S_is_set[key]) {
15045 value = S[key]
15046 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15047 len += length(value) + length(field[++i])
15048 substed = 1
15049 } else
15050 len += 1 + keylen
15051 }
15052
15053 print line
15054 }
15055
15056 _ACAWK
15057 _ACEOF
15058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15059 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15060 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15061 else
15062 cat
15063 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15064 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15065 _ACEOF
15066
15067 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15068 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15069 # trailing colons and then remove the whole line if VPATH becomes empty
15070 # (actually we leave an empty line to preserve line numbers).
15071 if test "x$srcdir" = x.; then
15072 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15073 h
15074 s///
15075 s/^/:/
15076 s/[ ]*$/:/
15077 s/:\$(srcdir):/:/g
15078 s/:\${srcdir}:/:/g
15079 s/:@srcdir@:/:/g
15080 s/^:*//
15081 s/:*$//
15082 x
15083 s/\(=[ ]*\).*/\1/
15084 G
15085 s/\n//
15086 s/^[^=]*=[ ]*$//
15087 }'
15088 fi
15089
15090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15091 fi # test -n "$CONFIG_FILES"
15092
15093 # Set up the scripts for CONFIG_HEADERS section.
15094 # No need to generate them if there are no CONFIG_HEADERS.
15095 # This happens for instance with './config.status Makefile'.
15096 if test -n "$CONFIG_HEADERS"; then
15097 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15098 BEGIN {
15099 _ACEOF
15100
15101 # Transform confdefs.h into an awk script 'defines.awk', embedded as
15102 # here-document in config.status, that substitutes the proper values into
15103 # config.h.in to produce config.h.
15104
15105 # Create a delimiter string that does not exist in confdefs.h, to ease
15106 # handling of long lines.
15107 ac_delim='%!_!# '
15108 for ac_last_try in false false :; do
15109 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15110 if test -z "$ac_tt"; then
15111 break
15112 elif $ac_last_try; then
15113 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15114 else
15115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15116 fi
15117 done
15118
15119 # For the awk script, D is an array of macro values keyed by name,
15120 # likewise P contains macro parameters if any. Preserve backslash
15121 # newline sequences.
15122
15123 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15124 sed -n '
15125 s/.\{148\}/&'"$ac_delim"'/g
15126 t rset
15127 :rset
15128 s/^[ ]*#[ ]*define[ ][ ]*/ /
15129 t def
15130 d
15131 :def
15132 s/\\$//
15133 t bsnl
15134 s/["\\]/\\&/g
15135 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15136 D["\1"]=" \3"/p
15137 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15138 d
15139 :bsnl
15140 s/["\\]/\\&/g
15141 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15142 D["\1"]=" \3\\\\\\n"\\/p
15143 t cont
15144 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15145 t cont
15146 d
15147 :cont
15148 n
15149 s/.\{148\}/&'"$ac_delim"'/g
15150 t clear
15151 :clear
15152 s/\\$//
15153 t bsnlc
15154 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15155 d
15156 :bsnlc
15157 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15158 b cont
15159 ' <confdefs.h | sed '
15160 s/'"$ac_delim"'/"\\\
15161 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15162
15163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15164 for (key in D) D_is_set[key] = 1
15165 FS = ""
15166 }
15167 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15168 line = \$ 0
15169 split(line, arg, " ")
15170 if (arg[1] == "#") {
15171 defundef = arg[2]
15172 mac1 = arg[3]
15173 } else {
15174 defundef = substr(arg[1], 2)
15175 mac1 = arg[2]
15176 }
15177 split(mac1, mac2, "(") #)
15178 macro = mac2[1]
15179 prefix = substr(line, 1, index(line, defundef) - 1)
15180 if (D_is_set[macro]) {
15181 # Preserve the white space surrounding the "#".
15182 print prefix "define", macro P[macro] D[macro]
15183 next
15184 } else {
15185 # Replace #undef with comments. This is necessary, for example,
15186 # in the case of _POSIX_SOURCE, which is predefined and required
15187 # on some systems where configure will not decide to define it.
15188 if (defundef == "undef") {
15189 print "/*", prefix defundef, macro, "*/"
15190 next
15191 }
15192 }
15193 }
15194 { print }
15195 _ACAWK
15196 _ACEOF
15197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15198 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15199 fi # test -n "$CONFIG_HEADERS"
15200
15201
15202 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15203 shift
15204 for ac_tag
15205 do
15206 case $ac_tag in
15207 :[FHLC]) ac_mode=$ac_tag; continue;;
15208 esac
15209 case $ac_mode$ac_tag in
15210 :[FHL]*:*);;
15211 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
15212 :[FH]-) ac_tag=-:-;;
15213 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15214 esac
15215 ac_save_IFS=$IFS
15216 IFS=:
15217 set x $ac_tag
15218 IFS=$ac_save_IFS
15219 shift
15220 ac_file=$1
15221 shift
15222
15223 case $ac_mode in
15224 :L) ac_source=$1;;
15225 :[FH])
15226 ac_file_inputs=
15227 for ac_f
15228 do
15229 case $ac_f in
15230 -) ac_f="$ac_tmp/stdin";;
15231 *) # Look for the file first in the build tree, then in the source tree
15232 # (if the path is not absolute). The absolute path cannot be DOS-style,
15233 # because $ac_f cannot contain ':'.
15234 test -f "$ac_f" ||
15235 case $ac_f in
15236 [\\/$]*) false;;
15237 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15238 esac ||
15239 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
15240 esac
15241 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15242 as_fn_append ac_file_inputs " '$ac_f'"
15243 done
15244
15245 # Let's still pretend it is 'configure' which instantiates (i.e., don't
15246 # use $as_me), people would be surprised to read:
15247 # /* config.h. Generated by config.status. */
15248 configure_input='Generated from '`
15249 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15250 `' by configure.'
15251 if test x"$ac_file" != x-; then
15252 configure_input="$ac_file. $configure_input"
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15254 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15255 fi
15256 # Neutralize special characters interpreted by sed in replacement strings.
15257 case $configure_input in #(
15258 *\&* | *\|* | *\\* )
15259 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15260 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15261 *) ac_sed_conf_input=$configure_input;;
15262 esac
15263
15264 case $ac_tag in
15265 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15267 esac
15268 ;;
15269 esac
15270
15271 ac_dir=`$as_dirname -- "$ac_file" ||
15272 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15273 X"$ac_file" : 'X\(//\)[^/]' \| \
15274 X"$ac_file" : 'X\(//\)$' \| \
15275 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15276 printf "%s\n" X"$ac_file" |
15277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15278 s//\1/
15279 q
15280 }
15281 /^X\(\/\/\)[^/].*/{
15282 s//\1/
15283 q
15284 }
15285 /^X\(\/\/\)$/{
15286 s//\1/
15287 q
15288 }
15289 /^X\(\/\).*/{
15290 s//\1/
15291 q
15292 }
15293 s/.*/./; q'`
15294 as_dir="$ac_dir"; as_fn_mkdir_p
15295 ac_builddir=.
15296
15297 case "$ac_dir" in
15298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15299 *)
15300 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15301 # A ".." for each directory in $ac_dir_suffix.
15302 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15303 case $ac_top_builddir_sub in
15304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15306 esac ;;
15307 esac
15308 ac_abs_top_builddir=$ac_pwd
15309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15310 # for backward compatibility:
15311 ac_top_builddir=$ac_top_build_prefix
15312
15313 case $srcdir in
15314 .) # We are building in place.
15315 ac_srcdir=.
15316 ac_top_srcdir=$ac_top_builddir_sub
15317 ac_abs_top_srcdir=$ac_pwd ;;
15318 [\\/]* | ?:[\\/]* ) # Absolute name.
15319 ac_srcdir=$srcdir$ac_dir_suffix;
15320 ac_top_srcdir=$srcdir
15321 ac_abs_top_srcdir=$srcdir ;;
15322 *) # Relative name.
15323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15324 ac_top_srcdir=$ac_top_build_prefix$srcdir
15325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15326 esac
15327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15328
15329
15330 case $ac_mode in
15331 :F)
15332 #
15333 # CONFIG_FILE
15334 #
15335
15336 case $INSTALL in
15337 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15338 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15339 esac
15340 ac_MKDIR_P=$MKDIR_P
15341 case $MKDIR_P in
15342 [\\/$]* | ?:[\\/]* ) ;;
15343 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15344 esac
15345 _ACEOF
15346
15347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15348 # If the template does not know about datarootdir, expand it.
15349 # FIXME: This hack should be removed a few years after 2.60.
15350 ac_datarootdir_hack=; ac_datarootdir_seen=
15351 ac_sed_dataroot='
15352 /datarootdir/ {
15353 p
15354 q
15355 }
15356 /@datadir@/p
15357 /@docdir@/p
15358 /@infodir@/p
15359 /@localedir@/p
15360 /@mandir@/p'
15361 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15362 *datarootdir*) ac_datarootdir_seen=yes;;
15363 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15365 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15366 _ACEOF
15367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15368 ac_datarootdir_hack='
15369 s&@datadir@&$datadir&g
15370 s&@docdir@&$docdir&g
15371 s&@infodir@&$infodir&g
15372 s&@localedir@&$localedir&g
15373 s&@mandir@&$mandir&g
15374 s&\\\${datarootdir}&$datarootdir&g' ;;
15375 esac
15376 _ACEOF
15377
15378 # Neutralize VPATH when '$srcdir' = '.'.
15379 # Shell code in configure.ac might set extrasub.
15380 # FIXME: do we really want to maintain this feature?
15381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15382 ac_sed_extra="$ac_vpsub
15383 $extrasub
15384 _ACEOF
15385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15386 :t
15387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15388 s|@configure_input@|$ac_sed_conf_input|;t t
15389 s&@top_builddir@&$ac_top_builddir_sub&;t t
15390 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15391 s&@srcdir@&$ac_srcdir&;t t
15392 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15393 s&@top_srcdir@&$ac_top_srcdir&;t t
15394 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15395 s&@builddir@&$ac_builddir&;t t
15396 s&@abs_builddir@&$ac_abs_builddir&;t t
15397 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15398 s&@INSTALL@&$ac_INSTALL&;t t
15399 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15400 $ac_datarootdir_hack
15401 "
15402 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15403 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15404
15405 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15406 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15407 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15408 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
15410 which seems to be undefined. Please make sure it is defined" >&5
15411 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
15412 which seems to be undefined. Please make sure it is defined" >&2;}
15413
15414 rm -f "$ac_tmp/stdin"
15415 case $ac_file in
15416 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15417 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15418 esac \
15419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15420 ;;
15421 :H)
15422 #
15423 # CONFIG_HEADER
15424 #
15425 if test x"$ac_file" != x-; then
15426 {
15427 printf "%s\n" "/* $configure_input */" >&1 \
15428 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15429 } >"$ac_tmp/config.h" \
15430 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15431 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15433 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15434 else
15435 rm -f "$ac_file"
15436 mv "$ac_tmp/config.h" "$ac_file" \
15437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15438 fi
15439 else
15440 printf "%s\n" "/* $configure_input */" >&1 \
15441 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15442 || as_fn_error $? "could not create -" "$LINENO" 5
15443 fi
15444 # Compute "$ac_file"'s index in $config_headers.
15445 _am_arg="$ac_file"
15446 _am_stamp_count=1
15447 for _am_header in $config_headers :; do
15448 case $_am_header in
15449 $_am_arg | $_am_arg:* )
15450 break ;;
15451 * )
15452 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15453 esac
15454 done
15455 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15456 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15457 X"$_am_arg" : 'X\(//\)[^/]' \| \
15458 X"$_am_arg" : 'X\(//\)$' \| \
15459 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15460 printf "%s\n" X"$_am_arg" |
15461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15462 s//\1/
15463 q
15464 }
15465 /^X\(\/\/\)[^/].*/{
15466 s//\1/
15467 q
15468 }
15469 /^X\(\/\/\)$/{
15470 s//\1/
15471 q
15472 }
15473 /^X\(\/\).*/{
15474 s//\1/
15475 q
15476 }
15477 s/.*/./; q'`/stamp-h$_am_stamp_count
15478 ;;
15479
15480 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15481 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15482 ;;
15483 esac
15484
15485
15486 case $ac_file$ac_mode in
15487 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15488 # Older Autoconf quotes --file arguments for eval, but not when files
15489 # are listed without --file. Let's play safe and only enable the eval
15490 # if we detect the quoting.
15491 # TODO: see whether this extra hack can be removed once we start
15492 # requiring Autoconf 2.70 or later.
15493 case $CONFIG_FILES in #(
15494 *\'*) :
15495 eval set x "$CONFIG_FILES" ;; #(
15496 *) :
15497 set x $CONFIG_FILES ;; #(
15498 *) :
15499 ;;
15500 esac
15501 shift
15502 # Used to flag and report bootstrapping failures.
15503 am_rc=0
15504 for am_mf
15505 do
15506 # Strip MF so we end up with the name of the file.
15507 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15508 # Check whether this is an Automake generated Makefile which includes
15509 # dependency-tracking related rules and includes.
15510 # Grep'ing the whole file directly is not great: AIX grep has a line
15511 # limit of 2048, but all sed's we know have understand at least 4000.
15512 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15513 || continue
15514 am_dirpart=`$as_dirname -- "$am_mf" ||
15515 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15516 X"$am_mf" : 'X\(//\)[^/]' \| \
15517 X"$am_mf" : 'X\(//\)$' \| \
15518 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15519 printf "%s\n" X"$am_mf" |
15520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15521 s//\1/
15522 q
15523 }
15524 /^X\(\/\/\)[^/].*/{
15525 s//\1/
15526 q
15527 }
15528 /^X\(\/\/\)$/{
15529 s//\1/
15530 q
15531 }
15532 /^X\(\/\).*/{
15533 s//\1/
15534 q
15535 }
15536 s/.*/./; q'`
15537 am_filepart=`$as_basename -- "$am_mf" ||
15538 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15539 X"$am_mf" : 'X\(//\)$' \| \
15540 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15541 printf "%s\n" X/"$am_mf" |
15542 sed '/^.*\/\([^/][^/]*\)\/*$/{
15543 s//\1/
15544 q
15545 }
15546 /^X\/\(\/\/\)$/{
15547 s//\1/
15548 q
15549 }
15550 /^X\/\(\/\).*/{
15551 s//\1/
15552 q
15553 }
15554 s/.*/./; q'`
15555 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15556 && sed -e '/# am--include-marker/d' "$am_filepart" \
15557 | $MAKE -f - am--depfiles" >&5
15558 (cd "$am_dirpart" \
15559 && sed -e '/# am--include-marker/d' "$am_filepart" \
15560 | $MAKE -f - am--depfiles) >&5 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } || am_rc=$?
15564 done
15565 if test $am_rc -ne 0; then
15566 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15567 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15568 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15569 for automatic dependency tracking. If GNU make was not used, consider
15570 re-running the configure script with MAKE=\"gmake\" (or whatever is
15571 necessary). You can also try re-running configure with the
15572 '--disable-dependency-tracking' option to at least be able to build
15573 the package (albeit without support for automatic dependency tracking).
15574 See 'config.log' for more details" "$LINENO" 5; }
15575 fi
15576 { am_dirpart=; unset am_dirpart;}
15577 { am_filepart=; unset am_filepart;}
15578 { am_mf=; unset am_mf;}
15579 { am_rc=; unset am_rc;}
15580 rm -f conftest-deps.mk
15581 }
15582 ;;
15583 "libtool":C)
15584
15585 # See if we are running on zsh, and set the options that allow our
15586 # commands through without removal of \ escapes.
15587 if test -n "${ZSH_VERSION+set}"; then
15588 setopt NO_GLOB_SUBST
15589 fi
15590
15591 cfgfile=${ofile}T
15592 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15593 $RM "$cfgfile"
15594
15595 cat <<_LT_EOF >> "$cfgfile"
15596 #! $SHELL
15597 # Generated automatically by $as_me ($PACKAGE) $VERSION
15598 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15599 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15600
15601 # Provide generalized library-building support services.
15602 # Written by Gordon Matzigkeit, 1996
15603
15604 # Copyright (C) 2014 Free Software Foundation, Inc.
15605 # This is free software; see the source for copying conditions. There is NO
15606 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15607
15608 # GNU Libtool is free software; you can redistribute it and/or modify
15609 # it under the terms of the GNU General Public License as published by
15610 # the Free Software Foundation; either version 2 of of the License, or
15611 # (at your option) any later version.
15612 #
15613 # As a special exception to the GNU General Public License, if you
15614 # distribute this file as part of a program or library that is built
15615 # using GNU Libtool, you may include this file under the same
15616 # distribution terms that you use for the rest of that program.
15617 #
15618 # GNU Libtool is distributed in the hope that it will be useful, but
15619 # WITHOUT ANY WARRANTY; without even the implied warranty of
15620 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15621 # GNU General Public License for more details.
15622 #
15623 # You should have received a copy of the GNU General Public License
15624 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15625
15626
15627 # The names of the tagged configurations supported by this script.
15628 available_tags=''
15629
15630 # Configured defaults for sys_lib_dlsearch_path munging.
15631 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15632
15633 # ### BEGIN LIBTOOL CONFIG
15634
15635 # Which release of libtool.m4 was used?
15636 macro_version=$macro_version
15637 macro_revision=$macro_revision
15638
15639 # Whether or not to build static libraries.
15640 build_old_libs=$enable_static
15641
15642 # Whether or not to build shared libraries.
15643 build_libtool_libs=$enable_shared
15644
15645 # What type of objects to build.
15646 pic_mode=$pic_mode
15647
15648 # Whether or not to optimize for fast installation.
15649 fast_install=$enable_fast_install
15650
15651 # Shared archive member basename,for filename based shared library versioning on AIX.
15652 shared_archive_member_spec=$shared_archive_member_spec
15653
15654 # Shell to use when invoking shell scripts.
15655 SHELL=$lt_SHELL
15656
15657 # An echo program that protects backslashes.
15658 ECHO=$lt_ECHO
15659
15660 # The PATH separator for the build system.
15661 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15662
15663 # The host system.
15664 host_alias=$host_alias
15665 host=$host
15666 host_os=$host_os
15667
15668 # The build system.
15669 build_alias=$build_alias
15670 build=$build
15671 build_os=$build_os
15672
15673 # A sed program that does not truncate output.
15674 SED=$lt_SED
15675
15676 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15677 Xsed="\$SED -e 1s/^X//"
15678
15679 # A grep program that handles long lines.
15680 GREP=$lt_GREP
15681
15682 # An ERE matcher.
15683 EGREP=$lt_EGREP
15684
15685 # A literal string matcher.
15686 FGREP=$lt_FGREP
15687
15688 # A BSD- or MS-compatible name lister.
15689 NM=$lt_NM
15690
15691 # Whether we need soft or hard links.
15692 LN_S=$lt_LN_S
15693
15694 # What is the maximum length of a command?
15695 max_cmd_len=$max_cmd_len
15696
15697 # Object file suffix (normally "o").
15698 objext=$ac_objext
15699
15700 # Executable file suffix (normally "").
15701 exeext=$exeext
15702
15703 # whether the shell understands "unset".
15704 lt_unset=$lt_unset
15705
15706 # turn spaces into newlines.
15707 SP2NL=$lt_lt_SP2NL
15708
15709 # turn newlines into spaces.
15710 NL2SP=$lt_lt_NL2SP
15711
15712 # convert \$build file names to \$host format.
15713 to_host_file_cmd=$lt_cv_to_host_file_cmd
15714
15715 # convert \$build files to toolchain format.
15716 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15717
15718 # A file(cmd) program that detects file types.
15719 FILECMD=$lt_FILECMD
15720
15721 # An object symbol dumper.
15722 OBJDUMP=$lt_OBJDUMP
15723
15724 # Method to check whether dependent libraries are shared objects.
15725 deplibs_check_method=$lt_deplibs_check_method
15726
15727 # Command to use when deplibs_check_method = "file_magic".
15728 file_magic_cmd=$lt_file_magic_cmd
15729
15730 # How to find potential files when deplibs_check_method = "file_magic".
15731 file_magic_glob=$lt_file_magic_glob
15732
15733 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15734 want_nocaseglob=$lt_want_nocaseglob
15735
15736 # DLL creation program.
15737 DLLTOOL=$lt_DLLTOOL
15738
15739 # Command to associate shared and link libraries.
15740 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15741
15742 # The archiver.
15743 AR=$lt_AR
15744
15745 # Flags to create an archive (by configure).
15746 lt_ar_flags=$lt_ar_flags
15747
15748 # Flags to create an archive.
15749 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15750
15751 # How to feed a file listing to the archiver.
15752 archiver_list_spec=$lt_archiver_list_spec
15753
15754 # A symbol stripping program.
15755 STRIP=$lt_STRIP
15756
15757 # Commands used to install an old-style archive.
15758 RANLIB=$lt_RANLIB
15759 old_postinstall_cmds=$lt_old_postinstall_cmds
15760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15761
15762 # Whether to use a lock for old archive extraction.
15763 lock_old_archive_extraction=$lock_old_archive_extraction
15764
15765 # A C compiler.
15766 LTCC=$lt_CC
15767
15768 # LTCC compiler flags.
15769 LTCFLAGS=$lt_CFLAGS
15770
15771 # Take the output of nm and produce a listing of raw symbols and C names.
15772 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15773
15774 # Transform the output of nm in a proper C declaration.
15775 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15776
15777 # Transform the output of nm into a list of symbols to manually relocate.
15778 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15779
15780 # Transform the output of nm in a C name address pair.
15781 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15782
15783 # Transform the output of nm in a C name address pair when lib prefix is needed.
15784 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15785
15786 # The name lister interface.
15787 nm_interface=$lt_lt_cv_nm_interface
15788
15789 # Specify filename containing input files for \$NM.
15790 nm_file_list_spec=$lt_nm_file_list_spec
15791
15792 # The root where to search for dependent libraries,and where our libraries should be installed.
15793 lt_sysroot=$lt_sysroot
15794
15795 # Command to truncate a binary pipe.
15796 lt_truncate_bin=$lt_lt_cv_truncate_bin
15797
15798 # The name of the directory that contains temporary libtool files.
15799 objdir=$objdir
15800
15801 # Used to examine libraries when file_magic_cmd begins with "file".
15802 MAGIC_CMD=$MAGIC_CMD
15803
15804 # Must we lock files when doing compilation?
15805 need_locks=$lt_need_locks
15806
15807 # Manifest tool.
15808 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15809
15810 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15811 DSYMUTIL=$lt_DSYMUTIL
15812
15813 # Tool to change global to local symbols on Mac OS X.
15814 NMEDIT=$lt_NMEDIT
15815
15816 # Tool to manipulate fat objects and archives on Mac OS X.
15817 LIPO=$lt_LIPO
15818
15819 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15820 OTOOL=$lt_OTOOL
15821
15822 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15823 OTOOL64=$lt_OTOOL64
15824
15825 # Old archive suffix (normally "a").
15826 libext=$libext
15827
15828 # Shared library suffix (normally ".so").
15829 shrext_cmds=$lt_shrext_cmds
15830
15831 # The commands to extract the exported symbol list from a shared archive.
15832 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15833
15834 # Variables whose values should be saved in libtool wrapper scripts and
15835 # restored at link time.
15836 variables_saved_for_relink=$lt_variables_saved_for_relink
15837
15838 # Do we need the "lib" prefix for modules?
15839 need_lib_prefix=$need_lib_prefix
15840
15841 # Do we need a version for libraries?
15842 need_version=$need_version
15843
15844 # Library versioning type.
15845 version_type=$version_type
15846
15847 # Shared library runtime path variable.
15848 runpath_var=$runpath_var
15849
15850 # Shared library path variable.
15851 shlibpath_var=$shlibpath_var
15852
15853 # Is shlibpath searched before the hard-coded library search path?
15854 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15855
15856 # Format of library name prefix.
15857 libname_spec=$lt_libname_spec
15858
15859 # List of archive names. First name is the real one, the rest are links.
15860 # The last name is the one that the linker finds with -lNAME
15861 library_names_spec=$lt_library_names_spec
15862
15863 # The coded name of the library, if different from the real name.
15864 soname_spec=$lt_soname_spec
15865
15866 # Permission mode override for installation of shared libraries.
15867 install_override_mode=$lt_install_override_mode
15868
15869 # Command to use after installation of a shared archive.
15870 postinstall_cmds=$lt_postinstall_cmds
15871
15872 # Command to use after uninstallation of a shared archive.
15873 postuninstall_cmds=$lt_postuninstall_cmds
15874
15875 # Commands used to finish a libtool library installation in a directory.
15876 finish_cmds=$lt_finish_cmds
15877
15878 # As "finish_cmds", except a single script fragment to be evaled but
15879 # not shown.
15880 finish_eval=$lt_finish_eval
15881
15882 # Whether we should hardcode library paths into libraries.
15883 hardcode_into_libs=$hardcode_into_libs
15884
15885 # Compile-time system search path for libraries.
15886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15887
15888 # Detected run-time system search path for libraries.
15889 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15890
15891 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15892 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15893
15894 # Whether dlopen is supported.
15895 dlopen_support=$enable_dlopen
15896
15897 # Whether dlopen of programs is supported.
15898 dlopen_self=$enable_dlopen_self
15899
15900 # Whether dlopen of statically linked programs is supported.
15901 dlopen_self_static=$enable_dlopen_self_static
15902
15903 # Commands to strip libraries.
15904 old_striplib=$lt_old_striplib
15905 striplib=$lt_striplib
15906
15907
15908 # The linker used to build libraries.
15909 LD=$lt_LD
15910
15911 # How to create reloadable object files.
15912 reload_flag=$lt_reload_flag
15913 reload_cmds=$lt_reload_cmds
15914
15915 # Commands used to build an old-style archive.
15916 old_archive_cmds=$lt_old_archive_cmds
15917
15918 # A language specific compiler.
15919 CC=$lt_compiler
15920
15921 # Is the compiler the GNU compiler?
15922 with_gcc=$GCC
15923
15924 # Compiler flag to turn off builtin functions.
15925 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15926
15927 # Additional compiler flags for building library objects.
15928 pic_flag=$lt_lt_prog_compiler_pic
15929
15930 # How to pass a linker flag through the compiler.
15931 wl=$lt_lt_prog_compiler_wl
15932
15933 # Compiler flag to prevent dynamic linking.
15934 link_static_flag=$lt_lt_prog_compiler_static
15935
15936 # Does compiler simultaneously support -c and -o options?
15937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15938
15939 # Whether or not to add -lc for building shared libraries.
15940 build_libtool_need_lc=$archive_cmds_need_lc
15941
15942 # Whether or not to disallow shared libs when runtime libs are static.
15943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15944
15945 # Compiler flag to allow reflexive dlopens.
15946 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15947
15948 # Compiler flag to generate shared objects directly from archives.
15949 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15950
15951 # Whether the compiler copes with passing no objects directly.
15952 compiler_needs_object=$lt_compiler_needs_object
15953
15954 # Create an old-style archive from a shared archive.
15955 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15956
15957 # Create a temporary old-style archive to link instead of a shared archive.
15958 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15959
15960 # Commands used to build a shared archive.
15961 archive_cmds=$lt_archive_cmds
15962 archive_expsym_cmds=$lt_archive_expsym_cmds
15963
15964 # Commands used to build a loadable module if different from building
15965 # a shared archive.
15966 module_cmds=$lt_module_cmds
15967 module_expsym_cmds=$lt_module_expsym_cmds
15968
15969 # Whether we are building with GNU ld or not.
15970 with_gnu_ld=$lt_with_gnu_ld
15971
15972 # Flag that allows shared libraries with undefined symbols to be built.
15973 allow_undefined_flag=$lt_allow_undefined_flag
15974
15975 # Flag that enforces no undefined symbols.
15976 no_undefined_flag=$lt_no_undefined_flag
15977
15978 # Flag to hardcode \$libdir into a binary during linking.
15979 # This must work even if \$libdir does not exist
15980 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15981
15982 # Whether we need a single "-rpath" flag with a separated argument.
15983 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15984
15985 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15986 # DIR into the resulting binary.
15987 hardcode_direct=$hardcode_direct
15988
15989 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15990 # DIR into the resulting binary and the resulting library dependency is
15991 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15992 # library is relocated.
15993 hardcode_direct_absolute=$hardcode_direct_absolute
15994
15995 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15996 # into the resulting binary.
15997 hardcode_minus_L=$hardcode_minus_L
15998
15999 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16000 # into the resulting binary.
16001 hardcode_shlibpath_var=$hardcode_shlibpath_var
16002
16003 # Set to "yes" if building a shared library automatically hardcodes DIR
16004 # into the library and all subsequent libraries and executables linked
16005 # against it.
16006 hardcode_automatic=$hardcode_automatic
16007
16008 # Set to yes if linker adds runtime paths of dependent libraries
16009 # to runtime path list.
16010 inherit_rpath=$inherit_rpath
16011
16012 # Whether libtool must link a program against all its dependency libraries.
16013 link_all_deplibs=$link_all_deplibs
16014
16015 # Set to "yes" if exported symbols are required.
16016 always_export_symbols=$always_export_symbols
16017
16018 # The commands to list exported symbols.
16019 export_symbols_cmds=$lt_export_symbols_cmds
16020
16021 # Symbols that should not be listed in the preloaded symbols.
16022 exclude_expsyms=$lt_exclude_expsyms
16023
16024 # Symbols that must always be exported.
16025 include_expsyms=$lt_include_expsyms
16026
16027 # Commands necessary for linking programs (against libraries) with templates.
16028 prelink_cmds=$lt_prelink_cmds
16029
16030 # Commands necessary for finishing linking programs.
16031 postlink_cmds=$lt_postlink_cmds
16032
16033 # Specify filename containing input files.
16034 file_list_spec=$lt_file_list_spec
16035
16036 # How to hardcode a shared library path into an executable.
16037 hardcode_action=$hardcode_action
16038
16039 # ### END LIBTOOL CONFIG
16040
16041 _LT_EOF
16042
16043 cat <<'_LT_EOF' >> "$cfgfile"
16044
16045 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16046
16047 # func_munge_path_list VARIABLE PATH
16048 # -----------------------------------
16049 # VARIABLE is name of variable containing _space_ separated list of
16050 # directories to be munged by the contents of PATH, which is string
16051 # having a format:
16052 # "DIR[:DIR]:"
16053 # string "DIR[ DIR]" will be prepended to VARIABLE
16054 # ":DIR[:DIR]"
16055 # string "DIR[ DIR]" will be appended to VARIABLE
16056 # "DIRP[:DIRP]::[DIRA:]DIRA"
16057 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16058 # "DIRA[ DIRA]" will be appended to VARIABLE
16059 # "DIR[:DIR]"
16060 # VARIABLE will be replaced by "DIR[ DIR]"
16061 func_munge_path_list ()
16062 {
16063 case x$2 in
16064 x)
16065 ;;
16066 *:)
16067 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16068 ;;
16069 x:*)
16070 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16071 ;;
16072 *::*)
16073 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16074 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16075 ;;
16076 *)
16077 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16078 ;;
16079 esac
16080 }
16081
16082
16083 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16084 func_cc_basename ()
16085 {
16086 for cc_temp in $*""; do
16087 case $cc_temp in
16088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16090 \-*) ;;
16091 *) break;;
16092 esac
16093 done
16094 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16095 }
16096
16097
16098 # ### END FUNCTIONS SHARED WITH CONFIGURE
16099
16100 _LT_EOF
16101
16102 case $host_os in
16103 aix3*)
16104 cat <<\_LT_EOF >> "$cfgfile"
16105 # AIX sometimes has problems with the GCC collect2 program. For some
16106 # reason, if we set the COLLECT_NAMES environment variable, the problems
16107 # vanish in a puff of smoke.
16108 if test set != "${COLLECT_NAMES+set}"; then
16109 COLLECT_NAMES=
16110 export COLLECT_NAMES
16111 fi
16112 _LT_EOF
16113 ;;
16114 esac
16115
16116
16117
16118 ltmain=$ac_aux_dir/ltmain.sh
16119
16120
16121 # We use sed instead of cat because bash on DJGPP gets confused if
16122 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16123 # text mode, it properly converts lines to CR/LF. This bash problem
16124 # is reportedly fixed, but why not run on old versions too?
16125 $SED '$q' "$ltmain" >> "$cfgfile" \
16126 || (rm -f "$cfgfile"; exit 1)
16127
16128 mv -f "$cfgfile" "$ofile" ||
16129 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16130 chmod +x "$ofile"
16131
16132 ;;
16133
16134 esac
16135 done # for ac_tag
16136
16137
16138 as_fn_exit 0
16139 _ACEOF
16140 ac_clean_files=$ac_clean_files_save
16141
16142 test $ac_write_fail = 0 ||
16143 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16144
16145
16146 # configure is writing to config.log, and then calls config.status.
16147 # config.status does its own redirection, appending to config.log.
16148 # Unfortunately, on DOS this fails, as config.log is still kept open
16149 # by configure, so config.status won't be able to write to it; its
16150 # output is simply discarded. So we exec the FD to /dev/null,
16151 # effectively closing config.log, so it can be properly (re)opened and
16152 # appended to by config.status. When coming back to configure, we
16153 # need to make the FD available again.
16154 if test "$no_create" != yes; then
16155 ac_cs_success=:
16156 ac_config_status_args=
16157 test "$silent" = yes &&
16158 ac_config_status_args="$ac_config_status_args --quiet"
16159 exec 5>/dev/null
16160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16161 exec 5>>config.log
16162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16163 # would make configure fail if this is the last instruction.
16164 $ac_cs_success || as_fn_exit 1
16165 fi
16166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16168 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16169 fi
16170
16171