Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for CTPL 0.3.5.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='CTPL'
623 PACKAGE_TARNAME='ctpl'
624 PACKAGE_VERSION='0.3.5'
625 PACKAGE_STRING='CTPL 0.3.5'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL='http://ctpl.tuxfamily.org'
628
629 ac_unique_file="src/ctpl.h"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 gt_needs=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 BUILD_CTPL_FALSE
668 BUILD_CTPL_TRUE
669 CTPL_CLI_LIBS
670 CTPL_CLI_CFLAGS
671 GIO_LIBS
672 GIO_CFLAGS
673 GLIB_LIBS
674 GLIB_CFLAGS
675 GTK_DOC_USE_REBASE_FALSE
676 GTK_DOC_USE_REBASE_TRUE
677 GTK_DOC_USE_LIBTOOL_FALSE
678 GTK_DOC_USE_LIBTOOL_TRUE
679 GTK_DOC_BUILD_PDF_FALSE
680 GTK_DOC_BUILD_PDF_TRUE
681 GTK_DOC_BUILD_HTML_FALSE
682 GTK_DOC_BUILD_HTML_TRUE
683 ENABLE_GTK_DOC_FALSE
684 ENABLE_GTK_DOC_TRUE
685 HAVE_GTK_DOC_FALSE
686 HAVE_GTK_DOC_TRUE
687 GTKDOC_DEPS_LIBS
688 GTKDOC_DEPS_CFLAGS
689 HTML_DIR
690 GTKDOC_MKPDF
691 GTKDOC_REBASE
692 GTKDOC_CHECK_PATH
693 GTKDOC_CHECK
694 PKG_CONFIG_LIBDIR
695 PKG_CONFIG_PATH
696 PKG_CONFIG
697 POSUB
698 LTLIBINTL
699 LIBINTL
700 INTLLIBS
701 LTLIBICONV
702 LIBICONV
703 INTL_MACOSX_LIBS
704 XGETTEXT_EXTRA_OPTIONS
705 MSGMERGE
706 XGETTEXT_015
707 XGETTEXT
708 GMSGFMT_015
709 MSGFMT_015
710 GMSGFMT
711 MSGFMT
712 GETTEXT_MACRO_VERSION
713 USE_NLS
714 LT_SYS_LIBRARY_PATH
715 OTOOL64
716 OTOOL
717 LIPO
718 NMEDIT
719 DSYMUTIL
720 MANIFEST_TOOL
721 RANLIB
722 DLLTOOL
723 OBJDUMP
724 FILECMD
725 LN_S
726 NM
727 ac_ct_DUMPBIN
728 DUMPBIN
729 LD
730 FGREP
731 EGREP
732 GREP
733 SED
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 LIBTOOL
743 am__fastdepCC_FALSE
744 am__fastdepCC_TRUE
745 CCDEPMODE
746 am__nodep
747 AMDEPBACKSLASH
748 AMDEP_FALSE
749 AMDEP_TRUE
750 am__include
751 DEPDIR
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
758 CC
759 ac_ct_AR
760 AR
761 CTPL_LTVERSION
762 AM_BACKSLASH
763 AM_DEFAULT_VERBOSITY
764 AM_DEFAULT_V
765 AM_V
766 CSCOPE
767 ETAGS
768 CTAGS
769 am__untar
770 am__tar
771 AMTAR
772 am__leading_dot
773 SET_MAKE
774 AWK
775 mkdir_p
776 MKDIR_P
777 INSTALL_STRIP_PROGRAM
778 STRIP
779 install_sh
780 MAKEINFO
781 AUTOHEADER
782 AUTOMAKE
783 AUTOCONF
784 ACLOCAL
785 VERSION
786 PACKAGE
787 CYGPATH_W
788 am__isrc
789 INSTALL_DATA
790 INSTALL_SCRIPT
791 INSTALL_PROGRAM
792 target_alias
793 host_alias
794 build_alias
795 LIBS
796 ECHO_T
797 ECHO_N
798 ECHO_C
799 DEFS
800 mandir
801 localedir
802 libdir
803 psdir
804 pdfdir
805 dvidir
806 htmldir
807 infodir
808 docdir
809 oldincludedir
810 includedir
811 runstatedir
812 localstatedir
813 sharedstatedir
814 sysconfdir
815 datadir
816 datarootdir
817 libexecdir
818 sbindir
819 bindir
820 program_transform_name
821 prefix
822 exec_prefix
823 PACKAGE_URL
824 PACKAGE_BUGREPORT
825 PACKAGE_STRING
826 PACKAGE_VERSION
827 PACKAGE_TARNAME
828 PACKAGE_NAME
829 PATH_SEPARATOR
830 SHELL
831 am__quote'
832 ac_subst_files=''
833 ac_user_opts='
834 enable_option_checking
835 enable_silent_rules
836 enable_cli_tool
837 enable_dependency_tracking
838 enable_shared
839 enable_static
840 with_pic
841 enable_fast_install
842 with_aix_soname
843 with_gnu_ld
844 with_sysroot
845 enable_libtool_lock
846 enable_nls
847 enable_rpath
848 with_libiconv_prefix
849 with_libintl_prefix
850 with_html_dir
851 enable_gtk_doc
852 enable_gtk_doc_html
853 enable_gtk_doc_pdf
854 enable_paranoia
855 '
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
859 CC
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
864 LT_SYS_LIBRARY_PATH
865 PKG_CONFIG
866 PKG_CONFIG_PATH
867 PKG_CONFIG_LIBDIR
868 GTKDOC_DEPS_CFLAGS
869 GTKDOC_DEPS_LIBS
870 GLIB_CFLAGS
871 GLIB_LIBS
872 GIO_CFLAGS
873 GIO_LIBS
874 CTPL_CLI_CFLAGS
875 CTPL_CLI_LIBS'
876
877
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 ac_unrecognized_opts=
882 ac_unrecognized_sep=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
885 cache_file=/dev/null
886 exec_prefix=NONE
887 no_create=
888 no_recursion=
889 prefix=NONE
890 program_prefix=NONE
891 program_suffix=NONE
892 program_transform_name=s,x,x,
893 silent=
894 site=
895 srcdir=
896 verbose=
897 x_includes=NONE
898 x_libraries=NONE
899
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 runstatedir='${localstatedir}/run'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
936 fi
937
938 case $ac_option in
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *=) ac_optarg= ;;
941 *) ac_optarg=yes ;;
942 esac
943
944 case $ac_dashdash$ac_option in
945 --)
946 ac_dashdash=yes ;;
947
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 ac_prev=bindir ;;
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 bindir=$ac_optarg ;;
952
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
957
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
964
965 --config-cache | -C)
966 cache_file=config.cache ;;
967
968 -datadir | --datadir | --datadi | --datad)
969 ac_prev=datadir ;;
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
972
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
979
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: \`$ac_useropt'"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=no ;;
995
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1000
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1005
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=\$ac_optarg ;;
1021
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1030
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1033 with_gas=yes ;;
1034
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1041
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1046
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 ac_prev=htmldir ;;
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 | --ht=*)
1051 htmldir=$ac_optarg ;;
1052
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1059
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 ac_prev=infodir ;;
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1064
1065 -libdir | --libdir | --libdi | --libd)
1066 ac_prev=libdir ;;
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1069
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1076
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1081
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1088
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 ac_prev=mandir ;;
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1093
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1096 with_fp=no ;;
1097
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1100 no_create=yes ;;
1101
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 no_recursion=yes ;;
1105
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1114
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 ac_prev=prefix ;;
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1119
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1126
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1133
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1150
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 ac_prev=pdfdir ;;
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1155
1156 -psdir | --psdir | --psdi | --psd | --ps)
1157 ac_prev=psdir ;;
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 psdir=$ac_optarg ;;
1160
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1163 silent=yes ;;
1164
1165 -runstatedir | --runstatedir | --runstatedi | --runstated \
1166 | --runstate | --runstat | --runsta | --runst | --runs \
1167 | --run | --ru | --r)
1168 ac_prev=runstatedir ;;
1169 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1170 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1171 | --run=* | --ru=* | --r=*)
1172 runstatedir=$ac_optarg ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: \`$ac_useropt'"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
1234
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: \`$ac_useropt'"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information"
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279 esac
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1289 ;;
1290
1291 esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error $? "missing argument to $ac_option"
1297 fi
1298
1299 if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1303 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir runstatedir
1312 do
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
1321 case $ac_val in
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 esac
1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error $? "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 printf "%s\n" X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
1385 srcdir=$ac_confdir
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 srcdir=..
1388 fi
1389 else
1390 ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424 \`configure' configures CTPL 0.3.5 to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking ...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/ctpl]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478 _ACEOF
1479
1480 cat <<\_ACEOF
1481
1482 Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486
1487 System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 _ACEOF
1491 fi
1492
1493 if test -n "$ac_init_help"; then
1494 case $ac_init_help in
1495 short | recursive ) echo "Configuration of CTPL 0.3.5:";;
1496 esac
1497 cat <<\_ACEOF
1498
1499 Optional Features:
1500 --disable-option-checking ignore unrecognized --enable/--with options
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1503 --enable-silent-rules less verbose build output (undo: "make V=1")
1504 --disable-silent-rules verbose build output (undo: "make V=0")
1505 --disable-cli-tool Disable the standalone command-line tool
1506 [[default=auto]]
1507 --enable-dependency-tracking
1508 do not reject slow dependency extractors
1509 --disable-dependency-tracking
1510 speeds up one-time build
1511 --enable-shared[=PKGS] build shared libraries [default=yes]
1512 --enable-static[=PKGS] build static libraries [default=yes]
1513 --enable-fast-install[=PKGS]
1514 optimize for fast installation [default=yes]
1515 --disable-libtool-lock avoid locking (might break parallel builds)
1516 --disable-nls do not use Native Language Support
1517 --disable-rpath do not hardcode runtime library paths
1518 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1519 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1520 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1521 --enable-paranoia enable paranioac compiler options [[default=no]]
1522
1523 Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1527 both]
1528 --with-aix-soname=aix|svr4|both
1529 shared library versioning (aka "SONAME") variant to
1530 provide on AIX, [default=aix].
1531 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1532 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1533 compiler's sysroot if not specified).
1534 --with-gnu-ld assume the C compiler uses GNU ld default=no
1535 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1536 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1537 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1538 --without-libintl-prefix don't search for libintl in includedir and libdir
1539 --with-html-dir=PATH path to installed docs
1540
1541 Some influential environment variables:
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
1546 LIBS libraries to pass to the linker, e.g. -l<library>
1547 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1548 you have headers in a nonstandard directory <include dir>
1549 LT_SYS_LIBRARY_PATH
1550 User-defined run-time library search path.
1551 PKG_CONFIG path to pkg-config utility
1552 PKG_CONFIG_PATH
1553 directories to add to pkg-config's search path
1554 PKG_CONFIG_LIBDIR
1555 path overriding pkg-config's built-in search path
1556 GTKDOC_DEPS_CFLAGS
1557 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1558 GTKDOC_DEPS_LIBS
1559 linker flags for GTKDOC_DEPS, overriding pkg-config
1560 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1561 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1562 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1563 GIO_LIBS linker flags for GIO, overriding pkg-config
1564 CTPL_CLI_CFLAGS
1565 C compiler flags for CTPL_CLI, overriding pkg-config
1566 CTPL_CLI_LIBS
1567 linker flags for CTPL_CLI, overriding pkg-config
1568
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1571
1572 Report bugs to <[email protected]>.
1573 CTPL home page: <http://ctpl.tuxfamily.org>.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583 continue
1584 ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603 .) # We are building in place.
1604 ac_srcdir=.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for configure.gnu first; this name is used for a wrapper for
1620 # Metaconfig's "Configure" on case-insensitive file systems.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure" --help=recursive
1627 else
1628 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 fi || ac_status=$?
1630 cd "$ac_pwd" || { ac_status=$?; break; }
1631 done
1632 fi
1633
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1636 cat <<\_ACEOF
1637 CTPL configure 0.3.5
1638 generated by GNU Autoconf 2.71
1639
1640 Copyright (C) 2021 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643 _ACEOF
1644 exit
1645 fi
1646
1647 ## ------------------------ ##
1648 ## Autoconf initialization. ##
1649 ## ------------------------ ##
1650
1651 # ac_fn_c_try_compile LINENO
1652 # --------------------------
1653 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_compile ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext conftest.beam
1658 if { { ac_try="$ac_compile"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 printf "%s\n" "$ac_try_echo"; } >&5
1665 (eval "$ac_compile") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest.$ac_objext
1677 then :
1678 ac_retval=0
1679 else $as_nop
1680 printf "%s\n" "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_compile
1689
1690 # ac_fn_c_try_link LINENO
1691 # -----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_link ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf "%s\n" "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 test -x conftest$ac_exeext
1718 }
1719 then :
1720 ac_retval=0
1721 else $as_nop
1722 printf "%s\n" "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726 fi
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_link
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 printf %s "checking for $2... " >&6; }
1746 if eval test \${$3+y}
1747 then :
1748 printf %s "(cached) " >&6
1749 else $as_nop
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 $4
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"
1756 then :
1757 eval "$3=yes"
1758 else $as_nop
1759 eval "$3=no"
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1762 fi
1763 eval ac_res=\$$3
1764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 printf "%s\n" "$ac_res" >&6; }
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767
1768 } # ac_fn_c_check_header_compile
1769
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 printf %s "checking for $2... " >&6; }
1778 if eval test \${$3+y}
1779 then :
1780 printf %s "(cached) " >&6
1781 else $as_nop
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786 #define $2 innocuous_$2
1787
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below. */
1790
1791 #include <limits.h>
1792 #undef $2
1793
1794 /* Override any GCC internal prototype to avoid an error.
1795 Use char because int might match the return type of a GCC
1796 builtin and then its argument prototype would still apply. */
1797 #ifdef __cplusplus
1798 extern "C"
1799 #endif
1800 char $2 ();
1801 /* The GNU C library defines this for functions which it implements
1802 to always fail with ENOSYS. Some functions are actually named
1803 something starting with __ and the normal name is an alias. */
1804 #if defined __stub_$2 || defined __stub___$2
1805 choke me
1806 #endif
1807
1808 int
1809 main (void)
1810 {
1811 return $2 ();
1812 ;
1813 return 0;
1814 }
1815 _ACEOF
1816 if ac_fn_c_try_link "$LINENO"
1817 then :
1818 eval "$3=yes"
1819 else $as_nop
1820 eval "$3=no"
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1823 conftest$ac_exeext conftest.$ac_ext
1824 fi
1825 eval ac_res=\$$3
1826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 printf "%s\n" "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830 } # ac_fn_c_check_func
1831
1832 # ac_fn_c_try_run LINENO
1833 # ----------------------
1834 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1835 # executables *can* be run.
1836 ac_fn_c_try_run ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 printf "%s\n" "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>&5
1847 ac_status=$?
1848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1850 { { case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 printf "%s\n" "$ac_try_echo"; } >&5
1856 (eval "$ac_try") 2>&5
1857 ac_status=$?
1858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; }; }
1860 then :
1861 ac_retval=0
1862 else $as_nop
1863 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1864 printf "%s\n" "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=$ac_status
1868 fi
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1872
1873 } # ac_fn_c_try_run
1874
1875 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1876 # -------------------------------------------
1877 # Tests whether TYPE exists after having included INCLUDES, setting cache
1878 # variable VAR accordingly.
1879 ac_fn_c_check_type ()
1880 {
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 printf %s "checking for $2... " >&6; }
1884 if eval test \${$3+y}
1885 then :
1886 printf %s "(cached) " >&6
1887 else $as_nop
1888 eval "$3=no"
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 $4
1892 int
1893 main (void)
1894 {
1895 if (sizeof ($2))
1896 return 0;
1897 ;
1898 return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"
1902 then :
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 int
1907 main (void)
1908 {
1909 if (sizeof (($2)))
1910 return 0;
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"
1916 then :
1917
1918 else $as_nop
1919 eval "$3=yes"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1924 fi
1925 eval ac_res=\$$3
1926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 printf "%s\n" "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930 } # ac_fn_c_check_type
1931
1932 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1933 # ------------------------------------------------------------------
1934 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1935 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1936 ac_fn_check_decl ()
1937 {
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 as_decl_name=`echo $2|sed 's/ *(.*//'`
1940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1941 printf %s "checking whether $as_decl_name is declared... " >&6; }
1942 if eval test \${$3+y}
1943 then :
1944 printf %s "(cached) " >&6
1945 else $as_nop
1946 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1947 eval ac_save_FLAGS=\$$6
1948 as_fn_append $6 " $5"
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 $4
1952 int
1953 main (void)
1954 {
1955 #ifndef $as_decl_name
1956 #ifdef __cplusplus
1957 (void) $as_decl_use;
1958 #else
1959 (void) $as_decl_name;
1960 #endif
1961 #endif
1962
1963 ;
1964 return 0;
1965 }
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"
1968 then :
1969 eval "$3=yes"
1970 else $as_nop
1971 eval "$3=no"
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1974 eval $6=\$ac_save_FLAGS
1975
1976 fi
1977 eval ac_res=\$$3
1978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 printf "%s\n" "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982 } # ac_fn_check_decl
1983 ac_configure_args_raw=
1984 for ac_arg
1985 do
1986 case $ac_arg in
1987 *\'*)
1988 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 esac
1990 as_fn_append ac_configure_args_raw " '$ac_arg'"
1991 done
1992
1993 case $ac_configure_args_raw in
1994 *$as_nl*)
1995 ac_safe_unquote= ;;
1996 *)
1997 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1998 ac_unsafe_a="$ac_unsafe_z#~"
1999 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2000 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2001 esac
2002
2003 cat >config.log <<_ACEOF
2004 This file contains any messages produced by compilers while
2005 running configure, to aid debugging if configure makes a mistake.
2006
2007 It was created by CTPL $as_me 0.3.5, which was
2008 generated by GNU Autoconf 2.71. Invocation command line was
2009
2010 $ $0$ac_configure_args_raw
2011
2012 _ACEOF
2013 exec 5>>config.log
2014 {
2015 cat <<_ASUNAME
2016 ## --------- ##
2017 ## Platform. ##
2018 ## --------- ##
2019
2020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2025
2026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2028
2029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2032 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2036
2037 _ASUNAME
2038
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042 IFS=$as_save_IFS
2043 case $as_dir in #(((
2044 '') as_dir=./ ;;
2045 */) ;;
2046 *) as_dir=$as_dir/ ;;
2047 esac
2048 printf "%s\n" "PATH: $as_dir"
2049 done
2050 IFS=$as_save_IFS
2051
2052 } >&5
2053
2054 cat >&5 <<_ACEOF
2055
2056
2057 ## ----------- ##
2058 ## Core tests. ##
2059 ## ----------- ##
2060
2061 _ACEOF
2062
2063
2064 # Keep a trace of the command line.
2065 # Strip out --no-create and --no-recursion so they do not pile up.
2066 # Strip out --silent because we don't want to record it for future runs.
2067 # Also quote any args containing shell meta-characters.
2068 # Make two passes to allow for proper duplicate-argument suppression.
2069 ac_configure_args=
2070 ac_configure_args0=
2071 ac_configure_args1=
2072 ac_must_keep_next=false
2073 for ac_pass in 1 2
2074 do
2075 for ac_arg
2076 do
2077 case $ac_arg in
2078 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2080 | -silent | --silent | --silen | --sile | --sil)
2081 continue ;;
2082 *\'*)
2083 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2084 esac
2085 case $ac_pass in
2086 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2087 2)
2088 as_fn_append ac_configure_args1 " '$ac_arg'"
2089 if test $ac_must_keep_next = true; then
2090 ac_must_keep_next=false # Got value, back to normal.
2091 else
2092 case $ac_arg in
2093 *=* | --config-cache | -C | -disable-* | --disable-* \
2094 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2095 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2096 | -with-* | --with-* | -without-* | --without-* | --x)
2097 case "$ac_configure_args0 " in
2098 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2099 esac
2100 ;;
2101 -* ) ac_must_keep_next=true ;;
2102 esac
2103 fi
2104 as_fn_append ac_configure_args " '$ac_arg'"
2105 ;;
2106 esac
2107 done
2108 done
2109 { ac_configure_args0=; unset ac_configure_args0;}
2110 { ac_configure_args1=; unset ac_configure_args1;}
2111
2112 # When interrupted or exit'd, cleanup temporary files, and complete
2113 # config.log. We remove comments because anyway the quotes in there
2114 # would cause problems or look ugly.
2115 # WARNING: Use '\'' to represent an apostrophe within the trap.
2116 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2117 trap 'exit_status=$?
2118 # Sanitize IFS.
2119 IFS=" "" $as_nl"
2120 # Save into config.log some information that might help in debugging.
2121 {
2122 echo
2123
2124 printf "%s\n" "## ---------------- ##
2125 ## Cache variables. ##
2126 ## ---------------- ##"
2127 echo
2128 # The following way of writing the cache mishandles newlines in values,
2129 (
2130 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2131 eval ac_val=\$$ac_var
2132 case $ac_val in #(
2133 *${as_nl}*)
2134 case $ac_var in #(
2135 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2136 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2137 esac
2138 case $ac_var in #(
2139 _ | IFS | as_nl) ;; #(
2140 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2141 *) { eval $ac_var=; unset $ac_var;} ;;
2142 esac ;;
2143 esac
2144 done
2145 (set) 2>&1 |
2146 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2147 *${as_nl}ac_space=\ *)
2148 sed -n \
2149 "s/'\''/'\''\\\\'\'''\''/g;
2150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2151 ;; #(
2152 *)
2153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2154 ;;
2155 esac |
2156 sort
2157 )
2158 echo
2159
2160 printf "%s\n" "## ----------------- ##
2161 ## Output variables. ##
2162 ## ----------------- ##"
2163 echo
2164 for ac_var in $ac_subst_vars
2165 do
2166 eval ac_val=\$$ac_var
2167 case $ac_val in
2168 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2169 esac
2170 printf "%s\n" "$ac_var='\''$ac_val'\''"
2171 done | sort
2172 echo
2173
2174 if test -n "$ac_subst_files"; then
2175 printf "%s\n" "## ------------------- ##
2176 ## File substitutions. ##
2177 ## ------------------- ##"
2178 echo
2179 for ac_var in $ac_subst_files
2180 do
2181 eval ac_val=\$$ac_var
2182 case $ac_val in
2183 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2184 esac
2185 printf "%s\n" "$ac_var='\''$ac_val'\''"
2186 done | sort
2187 echo
2188 fi
2189
2190 if test -s confdefs.h; then
2191 printf "%s\n" "## ----------- ##
2192 ## confdefs.h. ##
2193 ## ----------- ##"
2194 echo
2195 cat confdefs.h
2196 echo
2197 fi
2198 test "$ac_signal" != 0 &&
2199 printf "%s\n" "$as_me: caught signal $ac_signal"
2200 printf "%s\n" "$as_me: exit $exit_status"
2201 } >&5
2202 rm -f core *.core core.conftest.* &&
2203 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2204 exit $exit_status
2205 ' 0
2206 for ac_signal in 1 2 13 15; do
2207 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2208 done
2209 ac_signal=0
2210
2211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2212 rm -f -r conftest* confdefs.h
2213
2214 printf "%s\n" "/* confdefs.h */" > confdefs.h
2215
2216 # Predefined preprocessor variables.
2217
2218 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2219
2220 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2221
2222 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2223
2224 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2225
2226 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2227
2228 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2229
2230
2231 # Let the site file select an alternate cache file if it wants to.
2232 # Prefer an explicitly selected file to automatically selected ones.
2233 if test -n "$CONFIG_SITE"; then
2234 ac_site_files="$CONFIG_SITE"
2235 elif test "x$prefix" != xNONE; then
2236 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2237 else
2238 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2239 fi
2240
2241 for ac_site_file in $ac_site_files
2242 do
2243 case $ac_site_file in #(
2244 */*) :
2245 ;; #(
2246 *) :
2247 ac_site_file=./$ac_site_file ;;
2248 esac
2249 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2251 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2252 sed 's/^/| /' "$ac_site_file" >&5
2253 . "$ac_site_file" \
2254 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2256 as_fn_error $? "failed to load site script $ac_site_file
2257 See \`config.log' for more details" "$LINENO" 5; }
2258 fi
2259 done
2260
2261 if test -r "$cache_file"; then
2262 # Some versions of bash will fail to source /dev/null (special files
2263 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2266 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2267 case $cache_file in
2268 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2269 *) . "./$cache_file";;
2270 esac
2271 fi
2272 else
2273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2274 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2275 >$cache_file
2276 fi
2277
2278 # Test code for whether the C compiler supports C89 (global declarations)
2279 ac_c_conftest_c89_globals='
2280 /* Does the compiler advertise C89 conformance?
2281 Do not test the value of __STDC__, because some compilers set it to 0
2282 while being otherwise adequately conformant. */
2283 #if !defined __STDC__
2284 # error "Compiler does not advertise C89 conformance"
2285 #endif
2286
2287 #include <stddef.h>
2288 #include <stdarg.h>
2289 struct stat;
2290 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2291 struct buf { int x; };
2292 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2293 static char *e (p, i)
2294 char **p;
2295 int i;
2296 {
2297 return p[i];
2298 }
2299 static char *f (char * (*g) (char **, int), char **p, ...)
2300 {
2301 char *s;
2302 va_list v;
2303 va_start (v,p);
2304 s = g (p, va_arg (v,int));
2305 va_end (v);
2306 return s;
2307 }
2308
2309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2310 function prototypes and stuff, but not \xHH hex character constants.
2311 These do not provoke an error unfortunately, instead are silently treated
2312 as an "x". The following induces an error, until -std is added to get
2313 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2314 array size at least. It is necessary to write \x00 == 0 to get something
2315 that is true only with -std. */
2316 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2317
2318 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2319 inside strings and character constants. */
2320 #define FOO(x) '\''x'\''
2321 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2322
2323 int test (int i, double x);
2324 struct s1 {int (*f) (int a);};
2325 struct s2 {int (*f) (double a);};
2326 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2327 int, int);'
2328
2329 # Test code for whether the C compiler supports C89 (body of main).
2330 ac_c_conftest_c89_main='
2331 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2332 '
2333
2334 # Test code for whether the C compiler supports C99 (global declarations)
2335 ac_c_conftest_c99_globals='
2336 // Does the compiler advertise C99 conformance?
2337 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2338 # error "Compiler does not advertise C99 conformance"
2339 #endif
2340
2341 #include <stdbool.h>
2342 extern int puts (const char *);
2343 extern int printf (const char *, ...);
2344 extern int dprintf (int, const char *, ...);
2345 extern void *malloc (size_t);
2346
2347 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2348 // dprintf is used instead of fprintf to avoid needing to declare
2349 // FILE and stderr.
2350 #define debug(...) dprintf (2, __VA_ARGS__)
2351 #define showlist(...) puts (#__VA_ARGS__)
2352 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2353 static void
2354 test_varargs_macros (void)
2355 {
2356 int x = 1234;
2357 int y = 5678;
2358 debug ("Flag");
2359 debug ("X = %d\n", x);
2360 showlist (The first, second, and third items.);
2361 report (x>y, "x is %d but y is %d", x, y);
2362 }
2363
2364 // Check long long types.
2365 #define BIG64 18446744073709551615ull
2366 #define BIG32 4294967295ul
2367 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2368 #if !BIG_OK
2369 #error "your preprocessor is broken"
2370 #endif
2371 #if BIG_OK
2372 #else
2373 #error "your preprocessor is broken"
2374 #endif
2375 static long long int bignum = -9223372036854775807LL;
2376 static unsigned long long int ubignum = BIG64;
2377
2378 struct incomplete_array
2379 {
2380 int datasize;
2381 double data[];
2382 };
2383
2384 struct named_init {
2385 int number;
2386 const wchar_t *name;
2387 double average;
2388 };
2389
2390 typedef const char *ccp;
2391
2392 static inline int
2393 test_restrict (ccp restrict text)
2394 {
2395 // See if C++-style comments work.
2396 // Iterate through items via the restricted pointer.
2397 // Also check for declarations in for loops.
2398 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2399 continue;
2400 return 0;
2401 }
2402
2403 // Check varargs and va_copy.
2404 static bool
2405 test_varargs (const char *format, ...)
2406 {
2407 va_list args;
2408 va_start (args, format);
2409 va_list args_copy;
2410 va_copy (args_copy, args);
2411
2412 const char *str = "";
2413 int number = 0;
2414 float fnumber = 0;
2415
2416 while (*format)
2417 {
2418 switch (*format++)
2419 {
2420 case '\''s'\'': // string
2421 str = va_arg (args_copy, const char *);
2422 break;
2423 case '\''d'\'': // int
2424 number = va_arg (args_copy, int);
2425 break;
2426 case '\''f'\'': // float
2427 fnumber = va_arg (args_copy, double);
2428 break;
2429 default:
2430 break;
2431 }
2432 }
2433 va_end (args_copy);
2434 va_end (args);
2435
2436 return *str && number && fnumber;
2437 }
2438 '
2439
2440 # Test code for whether the C compiler supports C99 (body of main).
2441 ac_c_conftest_c99_main='
2442 // Check bool.
2443 _Bool success = false;
2444 success |= (argc != 0);
2445
2446 // Check restrict.
2447 if (test_restrict ("String literal") == 0)
2448 success = true;
2449 char *restrict newvar = "Another string";
2450
2451 // Check varargs.
2452 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2453 test_varargs_macros ();
2454
2455 // Check flexible array members.
2456 struct incomplete_array *ia =
2457 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2458 ia->datasize = 10;
2459 for (int i = 0; i < ia->datasize; ++i)
2460 ia->data[i] = i * 1.234;
2461
2462 // Check named initializers.
2463 struct named_init ni = {
2464 .number = 34,
2465 .name = L"Test wide string",
2466 .average = 543.34343,
2467 };
2468
2469 ni.number = 58;
2470
2471 int dynamic_array[ni.number];
2472 dynamic_array[0] = argv[0][0];
2473 dynamic_array[ni.number - 1] = 543;
2474
2475 // work around unused variable warnings
2476 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2477 || dynamic_array[ni.number - 1] != 543);
2478 '
2479
2480 # Test code for whether the C compiler supports C11 (global declarations)
2481 ac_c_conftest_c11_globals='
2482 // Does the compiler advertise C11 conformance?
2483 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2484 # error "Compiler does not advertise C11 conformance"
2485 #endif
2486
2487 // Check _Alignas.
2488 char _Alignas (double) aligned_as_double;
2489 char _Alignas (0) no_special_alignment;
2490 extern char aligned_as_int;
2491 char _Alignas (0) _Alignas (int) aligned_as_int;
2492
2493 // Check _Alignof.
2494 enum
2495 {
2496 int_alignment = _Alignof (int),
2497 int_array_alignment = _Alignof (int[100]),
2498 char_alignment = _Alignof (char)
2499 };
2500 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2501
2502 // Check _Noreturn.
2503 int _Noreturn does_not_return (void) { for (;;) continue; }
2504
2505 // Check _Static_assert.
2506 struct test_static_assert
2507 {
2508 int x;
2509 _Static_assert (sizeof (int) <= sizeof (long int),
2510 "_Static_assert does not work in struct");
2511 long int y;
2512 };
2513
2514 // Check UTF-8 literals.
2515 #define u8 syntax error!
2516 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2517
2518 // Check duplicate typedefs.
2519 typedef long *long_ptr;
2520 typedef long int *long_ptr;
2521 typedef long_ptr long_ptr;
2522
2523 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2524 struct anonymous
2525 {
2526 union {
2527 struct { int i; int j; };
2528 struct { int k; long int l; } w;
2529 };
2530 int m;
2531 } v1;
2532 '
2533
2534 # Test code for whether the C compiler supports C11 (body of main).
2535 ac_c_conftest_c11_main='
2536 _Static_assert ((offsetof (struct anonymous, i)
2537 == offsetof (struct anonymous, w.k)),
2538 "Anonymous union alignment botch");
2539 v1.i = 2;
2540 v1.w.k = 5;
2541 ok |= v1.i != 5;
2542 '
2543
2544 # Test code for whether the C compiler supports C11 (complete).
2545 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2546 ${ac_c_conftest_c99_globals}
2547 ${ac_c_conftest_c11_globals}
2548
2549 int
2550 main (int argc, char **argv)
2551 {
2552 int ok = 0;
2553 ${ac_c_conftest_c89_main}
2554 ${ac_c_conftest_c99_main}
2555 ${ac_c_conftest_c11_main}
2556 return ok;
2557 }
2558 "
2559
2560 # Test code for whether the C compiler supports C99 (complete).
2561 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2562 ${ac_c_conftest_c99_globals}
2563
2564 int
2565 main (int argc, char **argv)
2566 {
2567 int ok = 0;
2568 ${ac_c_conftest_c89_main}
2569 ${ac_c_conftest_c99_main}
2570 return ok;
2571 }
2572 "
2573
2574 # Test code for whether the C compiler supports C89 (complete).
2575 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2576
2577 int
2578 main (int argc, char **argv)
2579 {
2580 int ok = 0;
2581 ${ac_c_conftest_c89_main}
2582 return ok;
2583 }
2584 "
2585
2586 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2587 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2588 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2589 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2590 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2591 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2592 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2593 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2594 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2595 gt_needs="$gt_needs "
2596
2597 # Auxiliary files required by this configure script.
2598 ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2599
2600 # Locations in which to look for auxiliary files.
2601 ac_aux_dir_candidates="${srcdir}/build/auxf"
2602
2603 # Search for a directory containing all of the required auxiliary files,
2604 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2605 # If we don't find one directory that contains all the files we need,
2606 # we report the set of missing files from the *first* directory in
2607 # $ac_aux_dir_candidates and give up.
2608 ac_missing_aux_files=""
2609 ac_first_candidate=:
2610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 as_found=false
2613 for as_dir in $ac_aux_dir_candidates
2614 do
2615 IFS=$as_save_IFS
2616 case $as_dir in #(((
2617 '') as_dir=./ ;;
2618 */) ;;
2619 *) as_dir=$as_dir/ ;;
2620 esac
2621 as_found=:
2622
2623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2624 ac_aux_dir_found=yes
2625 ac_install_sh=
2626 for ac_aux in $ac_aux_files
2627 do
2628 # As a special case, if "install-sh" is required, that requirement
2629 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2630 # and $ac_install_sh is set appropriately for whichever one is found.
2631 if test x"$ac_aux" = x"install-sh"
2632 then
2633 if test -f "${as_dir}install-sh"; then
2634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2635 ac_install_sh="${as_dir}install-sh -c"
2636 elif test -f "${as_dir}install.sh"; then
2637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2638 ac_install_sh="${as_dir}install.sh -c"
2639 elif test -f "${as_dir}shtool"; then
2640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2641 ac_install_sh="${as_dir}shtool install -c"
2642 else
2643 ac_aux_dir_found=no
2644 if $ac_first_candidate; then
2645 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2646 else
2647 break
2648 fi
2649 fi
2650 else
2651 if test -f "${as_dir}${ac_aux}"; then
2652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2653 else
2654 ac_aux_dir_found=no
2655 if $ac_first_candidate; then
2656 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2657 else
2658 break
2659 fi
2660 fi
2661 fi
2662 done
2663 if test "$ac_aux_dir_found" = yes; then
2664 ac_aux_dir="$as_dir"
2665 break
2666 fi
2667 ac_first_candidate=false
2668
2669 as_found=false
2670 done
2671 IFS=$as_save_IFS
2672 if $as_found
2673 then :
2674
2675 else $as_nop
2676 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2677 fi
2678
2679
2680 # These three variables are undocumented and unsupported,
2681 # and are intended to be withdrawn in a future Autoconf release.
2682 # They can cause serious problems if a builder's source tree is in a directory
2683 # whose full name contains unusual characters.
2684 if test -f "${ac_aux_dir}config.guess"; then
2685 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2686 fi
2687 if test -f "${ac_aux_dir}config.sub"; then
2688 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2689 fi
2690 if test -f "$ac_aux_dir/configure"; then
2691 ac_configure="$SHELL ${ac_aux_dir}configure"
2692 fi
2693
2694 # Check that the precious variables saved in the cache have kept the same
2695 # value.
2696 ac_cache_corrupted=false
2697 for ac_var in $ac_precious_vars; do
2698 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2699 eval ac_new_set=\$ac_env_${ac_var}_set
2700 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2701 eval ac_new_val=\$ac_env_${ac_var}_value
2702 case $ac_old_set,$ac_new_set in
2703 set,)
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2705 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2706 ac_cache_corrupted=: ;;
2707 ,set)
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2709 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2710 ac_cache_corrupted=: ;;
2711 ,);;
2712 *)
2713 if test "x$ac_old_val" != "x$ac_new_val"; then
2714 # differences in whitespace do not lead to failure.
2715 ac_old_val_w=`echo x $ac_old_val`
2716 ac_new_val_w=`echo x $ac_new_val`
2717 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2719 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2720 ac_cache_corrupted=:
2721 else
2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2723 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2724 eval $ac_var=\$ac_old_val
2725 fi
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2727 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2729 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2730 fi;;
2731 esac
2732 # Pass precious variables to config.status.
2733 if test "$ac_new_set" = set; then
2734 case $ac_new_val in
2735 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2736 *) ac_arg=$ac_var=$ac_new_val ;;
2737 esac
2738 case " $ac_configure_args " in
2739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2740 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2741 esac
2742 fi
2743 done
2744 if $ac_cache_corrupted; then
2745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2746 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2748 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2749 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2750 and start over" "$LINENO" 5
2751 fi
2752 ## -------------------- ##
2753 ## Main body of script. ##
2754 ## -------------------- ##
2755
2756 ac_ext=c
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2762
2763
2764
2765
2766 am__api_version='1.16'
2767
2768
2769
2770 # Find a good install program. We prefer a C program (faster),
2771 # so one script is as good as another. But avoid the broken or
2772 # incompatible versions:
2773 # SysV /etc/install, /usr/sbin/install
2774 # SunOS /usr/etc/install
2775 # IRIX /sbin/install
2776 # AIX /bin/install
2777 # AmigaOS /C/install, which installs bootblocks on floppy discs
2778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2781 # OS/2's system install, which has a completely different semantic
2782 # ./install, which can be erroneously created by make from ./install.sh.
2783 # Reject install programs that cannot install multiple files.
2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2785 printf %s "checking for a BSD-compatible install... " >&6; }
2786 if test -z "$INSTALL"; then
2787 if test ${ac_cv_path_install+y}
2788 then :
2789 printf %s "(cached) " >&6
2790 else $as_nop
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 case $as_dir in #(((
2796 '') as_dir=./ ;;
2797 */) ;;
2798 *) as_dir=$as_dir/ ;;
2799 esac
2800 # Account for fact that we put trailing slashes in our PATH walk.
2801 case $as_dir in #((
2802 ./ | /[cC]/* | \
2803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2804 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2805 /usr/ucb/* ) ;;
2806 *)
2807 # OSF1 and SCO ODT 3.0 have their own names for install.
2808 # Don't use installbsd from OSF since it installs stuff as root
2809 # by default.
2810 for ac_prog in ginstall scoinst install; do
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2813 if test $ac_prog = install &&
2814 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2815 # AIX install. It has an incompatible calling convention.
2816 :
2817 elif test $ac_prog = install &&
2818 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2819 # program-specific install script used by HP pwplus--don't use.
2820 :
2821 else
2822 rm -rf conftest.one conftest.two conftest.dir
2823 echo one > conftest.one
2824 echo two > conftest.two
2825 mkdir conftest.dir
2826 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2827 test -s conftest.one && test -s conftest.two &&
2828 test -s conftest.dir/conftest.one &&
2829 test -s conftest.dir/conftest.two
2830 then
2831 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2832 break 3
2833 fi
2834 fi
2835 fi
2836 done
2837 done
2838 ;;
2839 esac
2840
2841 done
2842 IFS=$as_save_IFS
2843
2844 rm -rf conftest.one conftest.two conftest.dir
2845
2846 fi
2847 if test ${ac_cv_path_install+y}; then
2848 INSTALL=$ac_cv_path_install
2849 else
2850 # As a last resort, use the slow shell script. Don't cache a
2851 # value for INSTALL within a source directory, because that will
2852 # break other packages using the cache if that directory is
2853 # removed, or if the value is a relative name.
2854 INSTALL=$ac_install_sh
2855 fi
2856 fi
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2858 printf "%s\n" "$INSTALL" >&6; }
2859
2860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2861 # It thinks the first close brace ends the variable substitution.
2862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2863
2864 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2865
2866 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2867
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2869 printf %s "checking whether build environment is sane... " >&6; }
2870 # Reject unsafe characters in $srcdir or the absolute working directory
2871 # name. Accept space and tab only in the latter.
2872 am_lf='
2873 '
2874 case `pwd` in
2875 *[\\\"\#\$\&\'\`$am_lf]*)
2876 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2877 esac
2878 case $srcdir in
2879 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2880 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2881 esac
2882
2883 # Do 'set' in a subshell so we don't clobber the current shell's
2884 # arguments. Must try -L first in case configure is actually a
2885 # symlink; some systems play weird games with the mod time of symlinks
2886 # (eg FreeBSD returns the mod time of the symlink's containing
2887 # directory).
2888 if (
2889 am_has_slept=no
2890 for am_try in 1 2; do
2891 echo "timestamp, slept: $am_has_slept" > conftest.file
2892 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2893 if test "$*" = "X"; then
2894 # -L didn't work.
2895 set X `ls -t "$srcdir/configure" conftest.file`
2896 fi
2897 if test "$*" != "X $srcdir/configure conftest.file" \
2898 && test "$*" != "X conftest.file $srcdir/configure"; then
2899
2900 # If neither matched, then we have a broken ls. This can happen
2901 # if, for instance, CONFIG_SHELL is bash and it inherits a
2902 # broken ls alias from the environment. This has actually
2903 # happened. Such a system could not be considered "sane".
2904 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2905 alias in your environment" "$LINENO" 5
2906 fi
2907 if test "$2" = conftest.file || test $am_try -eq 2; then
2908 break
2909 fi
2910 # Just in case.
2911 sleep 1
2912 am_has_slept=yes
2913 done
2914 test "$2" = conftest.file
2915 )
2916 then
2917 # Ok.
2918 :
2919 else
2920 as_fn_error $? "newly created file is older than distributed files!
2921 Check your system clock" "$LINENO" 5
2922 fi
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2924 printf "%s\n" "yes" >&6; }
2925 # If we didn't sleep, we still need to ensure time stamps of config.status and
2926 # generated files are strictly newer.
2927 am_sleep_pid=
2928 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2929 ( sleep 1 ) &
2930 am_sleep_pid=$!
2931 fi
2932
2933 rm -f conftest.file
2934
2935 test "$program_prefix" != NONE &&
2936 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2937 # Use a double $ so make ignores it.
2938 test "$program_suffix" != NONE &&
2939 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2940 # Double any \ or $.
2941 # By default was `s,x,x', remove it if useless.
2942 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2943 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2944
2945
2946 # Expand $ac_aux_dir to an absolute path.
2947 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2948
2949
2950 if test x"${MISSING+set}" != xset; then
2951 MISSING="\${SHELL} '$am_aux_dir/missing'"
2952 fi
2953 # Use eval to expand $SHELL
2954 if eval "$MISSING --is-lightweight"; then
2955 am_missing_run="$MISSING "
2956 else
2957 am_missing_run=
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2959 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2960 fi
2961
2962 if test x"${install_sh+set}" != xset; then
2963 case $am_aux_dir in
2964 *\ * | *\ *)
2965 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2966 *)
2967 install_sh="\${SHELL} $am_aux_dir/install-sh"
2968 esac
2969 fi
2970
2971 # Installed binaries are usually stripped using 'strip' when the user
2972 # run "make install-strip". However 'strip' might not be the right
2973 # tool to use in cross-compilation environments, therefore Automake
2974 # will honor the 'STRIP' environment variable to overrule this program.
2975 if test "$cross_compiling" != no; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}strip; ac_word=$2
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 printf %s "checking for $ac_word... " >&6; }
2981 if test ${ac_cv_prog_STRIP+y}
2982 then :
2983 printf %s "(cached) " >&6
2984 else $as_nop
2985 if test -n "$STRIP"; then
2986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 case $as_dir in #(((
2993 '') as_dir=./ ;;
2994 */) ;;
2995 *) as_dir=$as_dir/ ;;
2996 esac
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 STRIP=$ac_cv_prog_STRIP
3010 if test -n "$STRIP"; then
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3012 printf "%s\n" "$STRIP" >&6; }
3013 else
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 printf "%s\n" "no" >&6; }
3016 fi
3017
3018
3019 fi
3020 if test -z "$ac_cv_prog_STRIP"; then
3021 ac_ct_STRIP=$STRIP
3022 # Extract the first word of "strip", so it can be a program name with args.
3023 set dummy strip; 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_ac_ct_STRIP+y}
3027 then :
3028 printf %s "(cached) " >&6
3029 else $as_nop
3030 if test -n "$ac_ct_STRIP"; then
3031 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
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 fi
3054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3055 if test -n "$ac_ct_STRIP"; then
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3057 printf "%s\n" "$ac_ct_STRIP" >&6; }
3058 else
3059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 printf "%s\n" "no" >&6; }
3061 fi
3062
3063 if test "x$ac_ct_STRIP" = x; then
3064 STRIP=":"
3065 else
3066 case $cross_compiling:$ac_tool_warned in
3067 yes:)
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070 ac_tool_warned=yes ;;
3071 esac
3072 STRIP=$ac_ct_STRIP
3073 fi
3074 else
3075 STRIP="$ac_cv_prog_STRIP"
3076 fi
3077
3078 fi
3079 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3080
3081
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3083 printf %s "checking for a race-free mkdir -p... " >&6; }
3084 if test -z "$MKDIR_P"; then
3085 if test ${ac_cv_path_mkdir+y}
3086 then :
3087 printf %s "(cached) " >&6
3088 else $as_nop
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3091 do
3092 IFS=$as_save_IFS
3093 case $as_dir in #(((
3094 '') as_dir=./ ;;
3095 */) ;;
3096 *) as_dir=$as_dir/ ;;
3097 esac
3098 for ac_prog in mkdir gmkdir; do
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3101 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3102 'mkdir ('*'coreutils) '* | \
3103 'BusyBox '* | \
3104 'mkdir (fileutils) '4.1*)
3105 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3106 break 3;;
3107 esac
3108 done
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi
3114
3115 test -d ./--version && rmdir ./--version
3116 if test ${ac_cv_path_mkdir+y}; then
3117 MKDIR_P="$ac_cv_path_mkdir -p"
3118 else
3119 # As a last resort, use the slow shell script. Don't cache a
3120 # value for MKDIR_P within a source directory, because that will
3121 # break other packages using the cache if that directory is
3122 # removed, or if the value is a relative name.
3123 MKDIR_P="$ac_install_sh -d"
3124 fi
3125 fi
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3127 printf "%s\n" "$MKDIR_P" >&6; }
3128
3129 for ac_prog in gawk mawk nawk awk
3130 do
3131 # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 printf %s "checking for $ac_word... " >&6; }
3135 if test ${ac_cv_prog_AWK+y}
3136 then :
3137 printf %s "(cached) " >&6
3138 else $as_nop
3139 if test -n "$AWK"; then
3140 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145 IFS=$as_save_IFS
3146 case $as_dir in #(((
3147 '') as_dir=./ ;;
3148 */) ;;
3149 *) as_dir=$as_dir/ ;;
3150 esac
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_AWK="$ac_prog"
3154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3155 break 2
3156 fi
3157 done
3158 done
3159 IFS=$as_save_IFS
3160
3161 fi
3162 fi
3163 AWK=$ac_cv_prog_AWK
3164 if test -n "$AWK"; then
3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3166 printf "%s\n" "$AWK" >&6; }
3167 else
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 printf "%s\n" "no" >&6; }
3170 fi
3171
3172
3173 test -n "$AWK" && break
3174 done
3175
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3177 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3178 set x ${MAKE-make}
3179 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3180 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3181 then :
3182 printf %s "(cached) " >&6
3183 else $as_nop
3184 cat >conftest.make <<\_ACEOF
3185 SHELL = /bin/sh
3186 all:
3187 @echo '@@@%%%=$(MAKE)=@@@%%%'
3188 _ACEOF
3189 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3190 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3191 *@@@%%%=?*=@@@%%%*)
3192 eval ac_cv_prog_make_${ac_make}_set=yes;;
3193 *)
3194 eval ac_cv_prog_make_${ac_make}_set=no;;
3195 esac
3196 rm -f conftest.make
3197 fi
3198 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 printf "%s\n" "yes" >&6; }
3201 SET_MAKE=
3202 else
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 printf "%s\n" "no" >&6; }
3205 SET_MAKE="MAKE=${MAKE-make}"
3206 fi
3207
3208 rm -rf .tst 2>/dev/null
3209 mkdir .tst 2>/dev/null
3210 if test -d .tst; then
3211 am__leading_dot=.
3212 else
3213 am__leading_dot=_
3214 fi
3215 rmdir .tst 2>/dev/null
3216
3217 # Check whether --enable-silent-rules was given.
3218 if test ${enable_silent_rules+y}
3219 then :
3220 enableval=$enable_silent_rules;
3221 fi
3222
3223 case $enable_silent_rules in # (((
3224 yes) AM_DEFAULT_VERBOSITY=0;;
3225 no) AM_DEFAULT_VERBOSITY=1;;
3226 *) AM_DEFAULT_VERBOSITY=1;;
3227 esac
3228 am_make=${MAKE-make}
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3230 printf %s "checking whether $am_make supports nested variables... " >&6; }
3231 if test ${am_cv_make_support_nested_variables+y}
3232 then :
3233 printf %s "(cached) " >&6
3234 else $as_nop
3235 if printf "%s\n" 'TRUE=$(BAR$(V))
3236 BAR0=false
3237 BAR1=true
3238 V=1
3239 am__doit:
3240 @$(TRUE)
3241 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3242 am_cv_make_support_nested_variables=yes
3243 else
3244 am_cv_make_support_nested_variables=no
3245 fi
3246 fi
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3248 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3249 if test $am_cv_make_support_nested_variables = yes; then
3250 AM_V='$(V)'
3251 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3252 else
3253 AM_V=$AM_DEFAULT_VERBOSITY
3254 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3255 fi
3256 AM_BACKSLASH='\'
3257
3258 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3259 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3260 # is not polluted with repeated "-I."
3261 am__isrc=' -I$(srcdir)'
3262 # test to see if srcdir already configured
3263 if test -f $srcdir/config.status; then
3264 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3265 fi
3266 fi
3267
3268 # test whether we have cygpath
3269 if test -z "$CYGPATH_W"; then
3270 if (cygpath --version) >/dev/null 2>/dev/null; then
3271 CYGPATH_W='cygpath -w'
3272 else
3273 CYGPATH_W=echo
3274 fi
3275 fi
3276
3277
3278 # Define the identity of the package.
3279 PACKAGE='ctpl'
3280 VERSION='0.3.5'
3281
3282
3283 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3284
3285
3286 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3287
3288 # Some tools Automake needs.
3289
3290 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3291
3292
3293 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3294
3295
3296 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3297
3298
3299 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3300
3301
3302 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3303
3304 # For better backward compatibility. To be removed once Automake 1.9.x
3305 # dies out for good. For more background, see:
3306 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3307 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3308 mkdir_p='$(MKDIR_P)'
3309
3310 # We need awk for the "check" target (and possibly the TAP driver). The
3311 # system "awk" is bad on some platforms.
3312 # Always define AMTAR for backward compatibility. Yes, it's still used
3313 # in the wild :-( We should find a proper way to deprecate it ...
3314 AMTAR='$${TAR-tar}'
3315
3316
3317 # We'll loop over all known methods to create a tar archive until one works.
3318 _am_tools='gnutar pax cpio none'
3319
3320 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3321
3322
3323
3324
3325
3326 # Variables for tags utilities; see am/tags.am
3327 if test -z "$CTAGS"; then
3328 CTAGS=ctags
3329 fi
3330
3331 if test -z "$ETAGS"; then
3332 ETAGS=etags
3333 fi
3334
3335 if test -z "$CSCOPE"; then
3336 CSCOPE=cscope
3337 fi
3338
3339
3340
3341 # POSIX will say in a future version that running "rm -f" with no argument
3342 # is OK; and we want to be able to make that assumption in our Makefile
3343 # recipes. So use an aggressive probe to check that the usage we want is
3344 # actually supported "in the wild" to an acceptable degree.
3345 # See automake bug#10828.
3346 # To make any issue more visible, cause the running configure to be aborted
3347 # by default if the 'rm' program in use doesn't match our expectations; the
3348 # user can still override this though.
3349 if rm -f && rm -fr && rm -rf; then : OK; else
3350 cat >&2 <<'END'
3351 Oops!
3352
3353 Your 'rm' program seems unable to run without file operands specified
3354 on the command line, even when the '-f' option is present. This is contrary
3355 to the behaviour of most rm programs out there, and not conforming with
3356 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3357
3358 Please tell [email protected] about your system, including the value
3359 of your $PATH and any error possibly output before this message. This
3360 can help us improve future automake versions.
3361
3362 END
3363 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3364 echo 'Configuration will proceed anyway, since you have set the' >&2
3365 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3366 echo >&2
3367 else
3368 cat >&2 <<'END'
3369 Aborting the configuration process, to ensure you take notice of the issue.
3370
3371 You can download and install GNU coreutils to get an 'rm' implementation
3372 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3373
3374 If you want to complete the configuration process using your problematic
3375 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3376 to "yes", and re-run configure.
3377
3378 END
3379 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3380 fi
3381 fi
3382
3383 ac_config_headers="$ac_config_headers config.h"
3384
3385
3386 # Check whether --enable-silent-rules was given.
3387 if test ${enable_silent_rules+y}
3388 then :
3389 enableval=$enable_silent_rules;
3390 fi
3391
3392 case $enable_silent_rules in # (((
3393 yes) AM_DEFAULT_VERBOSITY=0;;
3394 no) AM_DEFAULT_VERBOSITY=1;;
3395 *) AM_DEFAULT_VERBOSITY=0;;
3396 esac
3397 am_make=${MAKE-make}
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3399 printf %s "checking whether $am_make supports nested variables... " >&6; }
3400 if test ${am_cv_make_support_nested_variables+y}
3401 then :
3402 printf %s "(cached) " >&6
3403 else $as_nop
3404 if printf "%s\n" 'TRUE=$(BAR$(V))
3405 BAR0=false
3406 BAR1=true
3407 V=1
3408 am__doit:
3409 @$(TRUE)
3410 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3411 am_cv_make_support_nested_variables=yes
3412 else
3413 am_cv_make_support_nested_variables=no
3414 fi
3415 fi
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3417 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3418 if test $am_cv_make_support_nested_variables = yes; then
3419 AM_V='$(V)'
3420 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3421 else
3422 AM_V=$AM_DEFAULT_VERBOSITY
3423 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3424 fi
3425 AM_BACKSLASH='\'
3426
3427
3428
3429 # CLI-tool specific macros to enable/disable it
3430 # Check whether --enable-cli-tool was given.
3431 if test ${enable_cli_tool+y}
3432 then :
3433 enableval=$enable_cli_tool; enable_cli_tool="$enableval"
3434 else $as_nop
3435 enable_cli_tool="auto"
3436 fi
3437
3438
3439 # Output or not $1 as an error or a warning depending on $enable_cli_tool
3440
3441
3442 #
3443 # revision of the library (libtool stuff)
3444 #
3445 # CURRENT:REVISION:AGE
3446 #
3447 # Remember to bump library version before releases; here the rules:
3448 # If you have:
3449 # * not changed the interface (bug fixes): CURRENT:REV+1:AGE
3450 # * augmented the interface (new things [1]): CURRENT+1:0:AGE+1
3451 # * broken the interface (removed/changed things): CURRENT+1:0:0
3452 #
3453 # [1] "New things" include extension of the template syntax. Refer to
3454 # http://sourceware.org/autobook/autobook/autobook_91.html#SEC91 for more
3455 # info
3456 CTPL_LTVERSION="5:0:3"
3457
3458
3459 # Checks for programs.
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469 DEPDIR="${am__leading_dot}deps"
3470
3471 ac_config_commands="$ac_config_commands depfiles"
3472
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3474 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3475 cat > confinc.mk << 'END'
3476 am__doit:
3477 @echo this is the am__doit target >confinc.out
3478 .PHONY: am__doit
3479 END
3480 am__include="#"
3481 am__quote=
3482 # BSD make does it like this.
3483 echo '.include "confinc.mk" # ignored' > confmf.BSD
3484 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3485 echo 'include confinc.mk # ignored' > confmf.GNU
3486 _am_result=no
3487 for s in GNU BSD; do
3488 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3489 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }
3493 case $?:`cat confinc.out 2>/dev/null` in #(
3494 '0:this is the am__doit target') :
3495 case $s in #(
3496 BSD) :
3497 am__include='.include' am__quote='"' ;; #(
3498 *) :
3499 am__include='include' am__quote='' ;;
3500 esac ;; #(
3501 *) :
3502 ;;
3503 esac
3504 if test "$am__include" != "#"; then
3505 _am_result="yes ($s style)"
3506 break
3507 fi
3508 done
3509 rm -f confinc.* confmf.*
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3511 printf "%s\n" "${_am_result}" >&6; }
3512
3513 # Check whether --enable-dependency-tracking was given.
3514 if test ${enable_dependency_tracking+y}
3515 then :
3516 enableval=$enable_dependency_tracking;
3517 fi
3518
3519 if test "x$enable_dependency_tracking" != xno; then
3520 am_depcomp="$ac_aux_dir/depcomp"
3521 AMDEPBACKSLASH='\'
3522 am__nodep='_no'
3523 fi
3524 if test "x$enable_dependency_tracking" != xno; then
3525 AMDEP_TRUE=
3526 AMDEP_FALSE='#'
3527 else
3528 AMDEP_TRUE='#'
3529 AMDEP_FALSE=
3530 fi
3531
3532
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 printf %s "checking for $ac_word... " >&6; }
3543 if test ${ac_cv_prog_CC+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else $as_nop
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553 IFS=$as_save_IFS
3554 case $as_dir in #(((
3555 '') as_dir=./ ;;
3556 */) ;;
3557 *) as_dir=$as_dir/ ;;
3558 esac
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565 done
3566 done
3567 IFS=$as_save_IFS
3568
3569 fi
3570 fi
3571 CC=$ac_cv_prog_CC
3572 if test -n "$CC"; then
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574 printf "%s\n" "$CC" >&6; }
3575 else
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 printf "%s\n" "no" >&6; }
3578 fi
3579
3580
3581 fi
3582 if test -z "$ac_cv_prog_CC"; then
3583 ac_ct_CC=$CC
3584 # Extract the first word of "gcc", so it can be a program name with args.
3585 set dummy gcc; ac_word=$2
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 printf %s "checking for $ac_word... " >&6; }
3588 if test ${ac_cv_prog_ac_ct_CC+y}
3589 then :
3590 printf %s "(cached) " >&6
3591 else $as_nop
3592 if test -n "$ac_ct_CC"; then
3593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 case $as_dir in #(((
3600 '') as_dir=./ ;;
3601 */) ;;
3602 *) as_dir=$as_dir/ ;;
3603 esac
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_ac_ct_CC="gcc"
3607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610 done
3611 done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3617 if test -n "$ac_ct_CC"; then
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3619 printf "%s\n" "$ac_ct_CC" >&6; }
3620 else
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 printf "%s\n" "no" >&6; }
3623 fi
3624
3625 if test "x$ac_ct_CC" = x; then
3626 CC=""
3627 else
3628 case $cross_compiling:$ac_tool_warned in
3629 yes:)
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3631 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3632 ac_tool_warned=yes ;;
3633 esac
3634 CC=$ac_ct_CC
3635 fi
3636 else
3637 CC="$ac_cv_prog_CC"
3638 fi
3639
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3643 set dummy ${ac_tool_prefix}cc; ac_word=$2
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 printf %s "checking for $ac_word... " >&6; }
3646 if test ${ac_cv_prog_CC+y}
3647 then :
3648 printf %s "(cached) " >&6
3649 else $as_nop
3650 if test -n "$CC"; then
3651 ac_cv_prog_CC="$CC" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656 IFS=$as_save_IFS
3657 case $as_dir in #(((
3658 '') as_dir=./ ;;
3659 */) ;;
3660 *) as_dir=$as_dir/ ;;
3661 esac
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_CC="${ac_tool_prefix}cc"
3665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668 done
3669 done
3670 IFS=$as_save_IFS
3671
3672 fi
3673 fi
3674 CC=$ac_cv_prog_CC
3675 if test -n "$CC"; then
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677 printf "%s\n" "$CC" >&6; }
3678 else
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 printf "%s\n" "no" >&6; }
3681 fi
3682
3683
3684 fi
3685 fi
3686 if test -z "$CC"; then
3687 # Extract the first word of "cc", so it can be a program name with args.
3688 set dummy cc; ac_word=$2
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 printf %s "checking for $ac_word... " >&6; }
3691 if test ${ac_cv_prog_CC+y}
3692 then :
3693 printf %s "(cached) " >&6
3694 else $as_nop
3695 if test -n "$CC"; then
3696 ac_cv_prog_CC="$CC" # Let the user override the test.
3697 else
3698 ac_prog_rejected=no
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 case $as_dir in #(((
3704 '') as_dir=./ ;;
3705 */) ;;
3706 *) as_dir=$as_dir/ ;;
3707 esac
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3710 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3711 ac_prog_rejected=yes
3712 continue
3713 fi
3714 ac_cv_prog_CC="cc"
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718 done
3719 done
3720 IFS=$as_save_IFS
3721
3722 if test $ac_prog_rejected = yes; then
3723 # We found a bogon in the path, so make sure we never use it.
3724 set dummy $ac_cv_prog_CC
3725 shift
3726 if test $# != 0; then
3727 # We chose a different compiler from the bogus one.
3728 # However, it has the same basename, so the bogon will be chosen
3729 # first if we set CC to just the basename; use the full file name.
3730 shift
3731 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3732 fi
3733 fi
3734 fi
3735 fi
3736 CC=$ac_cv_prog_CC
3737 if test -n "$CC"; then
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739 printf "%s\n" "$CC" >&6; }
3740 else
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 printf "%s\n" "no" >&6; }
3743 fi
3744
3745
3746 fi
3747 if test -z "$CC"; then
3748 if test -n "$ac_tool_prefix"; then
3749 for ac_prog in cl.exe
3750 do
3751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 printf %s "checking for $ac_word... " >&6; }
3755 if test ${ac_cv_prog_CC+y}
3756 then :
3757 printf %s "(cached) " >&6
3758 else $as_nop
3759 if test -n "$CC"; then
3760 ac_cv_prog_CC="$CC" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765 IFS=$as_save_IFS
3766 case $as_dir in #(((
3767 '') as_dir=./ ;;
3768 */) ;;
3769 *) as_dir=$as_dir/ ;;
3770 esac
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3775 break 2
3776 fi
3777 done
3778 done
3779 IFS=$as_save_IFS
3780
3781 fi
3782 fi
3783 CC=$ac_cv_prog_CC
3784 if test -n "$CC"; then
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786 printf "%s\n" "$CC" >&6; }
3787 else
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 printf "%s\n" "no" >&6; }
3790 fi
3791
3792
3793 test -n "$CC" && break
3794 done
3795 fi
3796 if test -z "$CC"; then
3797 ac_ct_CC=$CC
3798 for ac_prog in cl.exe
3799 do
3800 # Extract the first word of "$ac_prog", so it can be a program name with args.
3801 set dummy $ac_prog; ac_word=$2
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 printf %s "checking for $ac_word... " >&6; }
3804 if test ${ac_cv_prog_ac_ct_CC+y}
3805 then :
3806 printf %s "(cached) " >&6
3807 else $as_nop
3808 if test -n "$ac_ct_CC"; then
3809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814 IFS=$as_save_IFS
3815 case $as_dir in #(((
3816 '') as_dir=./ ;;
3817 */) ;;
3818 *) as_dir=$as_dir/ ;;
3819 esac
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_ac_ct_CC="$ac_prog"
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3824 break 2
3825 fi
3826 done
3827 done
3828 IFS=$as_save_IFS
3829
3830 fi
3831 fi
3832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3833 if test -n "$ac_ct_CC"; then
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3835 printf "%s\n" "$ac_ct_CC" >&6; }
3836 else
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 printf "%s\n" "no" >&6; }
3839 fi
3840
3841
3842 test -n "$ac_ct_CC" && break
3843 done
3844
3845 if test "x$ac_ct_CC" = x; then
3846 CC=""
3847 else
3848 case $cross_compiling:$ac_tool_warned in
3849 yes:)
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3852 ac_tool_warned=yes ;;
3853 esac
3854 CC=$ac_ct_CC
3855 fi
3856 fi
3857
3858 fi
3859 if test -z "$CC"; then
3860 if test -n "$ac_tool_prefix"; then
3861 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3862 set dummy ${ac_tool_prefix}clang; ac_word=$2
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 printf %s "checking for $ac_word... " >&6; }
3865 if test ${ac_cv_prog_CC+y}
3866 then :
3867 printf %s "(cached) " >&6
3868 else $as_nop
3869 if test -n "$CC"; then
3870 ac_cv_prog_CC="$CC" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875 IFS=$as_save_IFS
3876 case $as_dir in #(((
3877 '') as_dir=./ ;;
3878 */) ;;
3879 *) as_dir=$as_dir/ ;;
3880 esac
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_CC="${ac_tool_prefix}clang"
3884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3885 break 2
3886 fi
3887 done
3888 done
3889 IFS=$as_save_IFS
3890
3891 fi
3892 fi
3893 CC=$ac_cv_prog_CC
3894 if test -n "$CC"; then
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3896 printf "%s\n" "$CC" >&6; }
3897 else
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 printf "%s\n" "no" >&6; }
3900 fi
3901
3902
3903 fi
3904 if test -z "$ac_cv_prog_CC"; then
3905 ac_ct_CC=$CC
3906 # Extract the first word of "clang", so it can be a program name with args.
3907 set dummy clang; ac_word=$2
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 printf %s "checking for $ac_word... " >&6; }
3910 if test ${ac_cv_prog_ac_ct_CC+y}
3911 then :
3912 printf %s "(cached) " >&6
3913 else $as_nop
3914 if test -n "$ac_ct_CC"; then
3915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920 IFS=$as_save_IFS
3921 case $as_dir in #(((
3922 '') as_dir=./ ;;
3923 */) ;;
3924 *) as_dir=$as_dir/ ;;
3925 esac
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_ac_ct_CC="clang"
3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932 done
3933 done
3934 IFS=$as_save_IFS
3935
3936 fi
3937 fi
3938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3939 if test -n "$ac_ct_CC"; then
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3941 printf "%s\n" "$ac_ct_CC" >&6; }
3942 else
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 printf "%s\n" "no" >&6; }
3945 fi
3946
3947 if test "x$ac_ct_CC" = x; then
3948 CC=""
3949 else
3950 case $cross_compiling:$ac_tool_warned in
3951 yes:)
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3954 ac_tool_warned=yes ;;
3955 esac
3956 CC=$ac_ct_CC
3957 fi
3958 else
3959 CC="$ac_cv_prog_CC"
3960 fi
3961
3962 fi
3963
3964
3965 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3967 as_fn_error $? "no acceptable C compiler found in \$PATH
3968 See \`config.log' for more details" "$LINENO" 5; }
3969
3970 # Provide some information about the compiler.
3971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3972 set X $ac_compile
3973 ac_compiler=$2
3974 for ac_option in --version -v -V -qversion -version; do
3975 { { ac_try="$ac_compiler $ac_option >&5"
3976 case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979 esac
3980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981 printf "%s\n" "$ac_try_echo"; } >&5
3982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3983 ac_status=$?
3984 if test -s conftest.err; then
3985 sed '10a\
3986 ... rest of stderr output deleted ...
3987 10q' conftest.err >conftest.er1
3988 cat conftest.er1 >&5
3989 fi
3990 rm -f conftest.er1 conftest.err
3991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992 test $ac_status = 0; }
3993 done
3994
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997
3998 int
3999 main (void)
4000 {
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 ac_clean_files_save=$ac_clean_files
4007 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4008 # Try to create an executable without -o first, disregard a.out.
4009 # It will help us diagnose broken compilers, and finding out an intuition
4010 # of exeext.
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4012 printf %s "checking whether the C compiler works... " >&6; }
4013 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4014
4015 # The possible output files:
4016 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4017
4018 ac_rmfiles=
4019 for ac_file in $ac_files
4020 do
4021 case $ac_file in
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4023 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4024 esac
4025 done
4026 rm -f $ac_rmfiles
4027
4028 if { { ac_try="$ac_link_default"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 printf "%s\n" "$ac_try_echo"; } >&5
4035 (eval "$ac_link_default") 2>&5
4036 ac_status=$?
4037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }
4039 then :
4040 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4041 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4042 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4043 # so that the user can short-circuit this test for compilers unknown to
4044 # Autoconf.
4045 for ac_file in $ac_files ''
4046 do
4047 test -f "$ac_file" || continue
4048 case $ac_file in
4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4050 ;;
4051 [ab].out )
4052 # We found the default executable, but exeext='' is most
4053 # certainly right.
4054 break;;
4055 *.* )
4056 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4057 then :; else
4058 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4059 fi
4060 # We set ac_cv_exeext here because the later test for it is not
4061 # safe: cross compilers may not add the suffix if given an `-o'
4062 # argument, so we may need to know it at that point already.
4063 # Even if this section looks crufty: it has the advantage of
4064 # actually working.
4065 break;;
4066 * )
4067 break;;
4068 esac
4069 done
4070 test "$ac_cv_exeext" = no && ac_cv_exeext=
4071
4072 else $as_nop
4073 ac_file=''
4074 fi
4075 if test -z "$ac_file"
4076 then :
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 printf "%s\n" "no" >&6; }
4079 printf "%s\n" "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error 77 "C compiler cannot create executables
4085 See \`config.log' for more details" "$LINENO" 5; }
4086 else $as_nop
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4088 printf "%s\n" "yes" >&6; }
4089 fi
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4091 printf %s "checking for C compiler default output file name... " >&6; }
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4093 printf "%s\n" "$ac_file" >&6; }
4094 ac_exeext=$ac_cv_exeext
4095
4096 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4097 ac_clean_files=$ac_clean_files_save
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4099 printf %s "checking for suffix of executables... " >&6; }
4100 if { { ac_try="$ac_link"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 printf "%s\n" "$ac_try_echo"; } >&5
4107 (eval "$ac_link") 2>&5
4108 ac_status=$?
4109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }
4111 then :
4112 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4113 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4114 # work properly (i.e., refer to `conftest.exe'), while it won't with
4115 # `rm'.
4116 for ac_file in conftest.exe conftest conftest.*; do
4117 test -f "$ac_file" || continue
4118 case $ac_file in
4119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4120 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4121 break;;
4122 * ) break;;
4123 esac
4124 done
4125 else $as_nop
4126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4129 See \`config.log' for more details" "$LINENO" 5; }
4130 fi
4131 rm -f conftest conftest$ac_cv_exeext
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4133 printf "%s\n" "$ac_cv_exeext" >&6; }
4134
4135 rm -f conftest.$ac_ext
4136 EXEEXT=$ac_cv_exeext
4137 ac_exeext=$EXEEXT
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140 #include <stdio.h>
4141 int
4142 main (void)
4143 {
4144 FILE *f = fopen ("conftest.out", "w");
4145 return ferror (f) || fclose (f) != 0;
4146
4147 ;
4148 return 0;
4149 }
4150 _ACEOF
4151 ac_clean_files="$ac_clean_files conftest.out"
4152 # Check that the compiler produces executables we can run. If not, either
4153 # the compiler is broken, or we cross compile.
4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4155 printf %s "checking whether we are cross compiling... " >&6; }
4156 if test "$cross_compiling" != yes; then
4157 { { ac_try="$ac_link"
4158 case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161 esac
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 printf "%s\n" "$ac_try_echo"; } >&5
4164 (eval "$ac_link") 2>&5
4165 ac_status=$?
4166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167 test $ac_status = 0; }
4168 if { ac_try='./conftest$ac_cv_exeext'
4169 { { case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 printf "%s\n" "$ac_try_echo"; } >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; }; then
4179 cross_compiling=no
4180 else
4181 if test "$cross_compiling" = maybe; then
4182 cross_compiling=yes
4183 else
4184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error 77 "cannot run C compiled programs.
4187 If you meant to cross compile, use \`--host'.
4188 See \`config.log' for more details" "$LINENO" 5; }
4189 fi
4190 fi
4191 fi
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4193 printf "%s\n" "$cross_compiling" >&6; }
4194
4195 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4196 ac_clean_files=$ac_clean_files_save
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4198 printf %s "checking for suffix of object files... " >&6; }
4199 if test ${ac_cv_objext+y}
4200 then :
4201 printf %s "(cached) " >&6
4202 else $as_nop
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205
4206 int
4207 main (void)
4208 {
4209
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 rm -f conftest.o conftest.obj
4215 if { { ac_try="$ac_compile"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4221 printf "%s\n" "$ac_try_echo"; } >&5
4222 (eval "$ac_compile") 2>&5
4223 ac_status=$?
4224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4225 test $ac_status = 0; }
4226 then :
4227 for ac_file in conftest.o conftest.obj conftest.*; do
4228 test -f "$ac_file" || continue;
4229 case $ac_file in
4230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4231 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4232 break;;
4233 esac
4234 done
4235 else $as_nop
4236 printf "%s\n" "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4240 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4241 as_fn_error $? "cannot compute suffix of object files: cannot compile
4242 See \`config.log' for more details" "$LINENO" 5; }
4243 fi
4244 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4245 fi
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4247 printf "%s\n" "$ac_cv_objext" >&6; }
4248 OBJEXT=$ac_cv_objext
4249 ac_objext=$OBJEXT
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4251 printf %s "checking whether the compiler supports GNU C... " >&6; }
4252 if test ${ac_cv_c_compiler_gnu+y}
4253 then :
4254 printf %s "(cached) " >&6
4255 else $as_nop
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258
4259 int
4260 main (void)
4261 {
4262 #ifndef __GNUC__
4263 choke me
4264 #endif
4265
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 if ac_fn_c_try_compile "$LINENO"
4271 then :
4272 ac_compiler_gnu=yes
4273 else $as_nop
4274 ac_compiler_gnu=no
4275 fi
4276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4278
4279 fi
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4281 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283
4284 if test $ac_compiler_gnu = yes; then
4285 GCC=yes
4286 else
4287 GCC=
4288 fi
4289 ac_test_CFLAGS=${CFLAGS+y}
4290 ac_save_CFLAGS=$CFLAGS
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4292 printf %s "checking whether $CC accepts -g... " >&6; }
4293 if test ${ac_cv_prog_cc_g+y}
4294 then :
4295 printf %s "(cached) " >&6
4296 else $as_nop
4297 ac_save_c_werror_flag=$ac_c_werror_flag
4298 ac_c_werror_flag=yes
4299 ac_cv_prog_cc_g=no
4300 CFLAGS="-g"
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303
4304 int
4305 main (void)
4306 {
4307
4308 ;
4309 return 0;
4310 }
4311 _ACEOF
4312 if ac_fn_c_try_compile "$LINENO"
4313 then :
4314 ac_cv_prog_cc_g=yes
4315 else $as_nop
4316 CFLAGS=""
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319
4320 int
4321 main (void)
4322 {
4323
4324 ;
4325 return 0;
4326 }
4327 _ACEOF
4328 if ac_fn_c_try_compile "$LINENO"
4329 then :
4330
4331 else $as_nop
4332 ac_c_werror_flag=$ac_save_c_werror_flag
4333 CFLAGS="-g"
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336
4337 int
4338 main (void)
4339 {
4340
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"
4346 then :
4347 ac_cv_prog_cc_g=yes
4348 fi
4349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4350 fi
4351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4354 ac_c_werror_flag=$ac_save_c_werror_flag
4355 fi
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4357 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4358 if test $ac_test_CFLAGS; then
4359 CFLAGS=$ac_save_CFLAGS
4360 elif test $ac_cv_prog_cc_g = yes; then
4361 if test "$GCC" = yes; then
4362 CFLAGS="-g -O2"
4363 else
4364 CFLAGS="-g"
4365 fi
4366 else
4367 if test "$GCC" = yes; then
4368 CFLAGS="-O2"
4369 else
4370 CFLAGS=
4371 fi
4372 fi
4373 ac_prog_cc_stdc=no
4374 if test x$ac_prog_cc_stdc = xno
4375 then :
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4377 printf %s "checking for $CC option to enable C11 features... " >&6; }
4378 if test ${ac_cv_prog_cc_c11+y}
4379 then :
4380 printf %s "(cached) " >&6
4381 else $as_nop
4382 ac_cv_prog_cc_c11=no
4383 ac_save_CC=$CC
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 $ac_c_conftest_c11_program
4387 _ACEOF
4388 for ac_arg in '' -std=gnu11
4389 do
4390 CC="$ac_save_CC $ac_arg"
4391 if ac_fn_c_try_compile "$LINENO"
4392 then :
4393 ac_cv_prog_cc_c11=$ac_arg
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.beam
4396 test "x$ac_cv_prog_cc_c11" != "xno" && break
4397 done
4398 rm -f conftest.$ac_ext
4399 CC=$ac_save_CC
4400 fi
4401
4402 if test "x$ac_cv_prog_cc_c11" = xno
4403 then :
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4405 printf "%s\n" "unsupported" >&6; }
4406 else $as_nop
4407 if test "x$ac_cv_prog_cc_c11" = x
4408 then :
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4410 printf "%s\n" "none needed" >&6; }
4411 else $as_nop
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4413 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4414 CC="$CC $ac_cv_prog_cc_c11"
4415 fi
4416 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4417 ac_prog_cc_stdc=c11
4418 fi
4419 fi
4420 if test x$ac_prog_cc_stdc = xno
4421 then :
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4423 printf %s "checking for $CC option to enable C99 features... " >&6; }
4424 if test ${ac_cv_prog_cc_c99+y}
4425 then :
4426 printf %s "(cached) " >&6
4427 else $as_nop
4428 ac_cv_prog_cc_c99=no
4429 ac_save_CC=$CC
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432 $ac_c_conftest_c99_program
4433 _ACEOF
4434 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4435 do
4436 CC="$ac_save_CC $ac_arg"
4437 if ac_fn_c_try_compile "$LINENO"
4438 then :
4439 ac_cv_prog_cc_c99=$ac_arg
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext conftest.beam
4442 test "x$ac_cv_prog_cc_c99" != "xno" && break
4443 done
4444 rm -f conftest.$ac_ext
4445 CC=$ac_save_CC
4446 fi
4447
4448 if test "x$ac_cv_prog_cc_c99" = xno
4449 then :
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4451 printf "%s\n" "unsupported" >&6; }
4452 else $as_nop
4453 if test "x$ac_cv_prog_cc_c99" = x
4454 then :
4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4456 printf "%s\n" "none needed" >&6; }
4457 else $as_nop
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4459 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4460 CC="$CC $ac_cv_prog_cc_c99"
4461 fi
4462 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4463 ac_prog_cc_stdc=c99
4464 fi
4465 fi
4466 if test x$ac_prog_cc_stdc = xno
4467 then :
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4469 printf %s "checking for $CC option to enable C89 features... " >&6; }
4470 if test ${ac_cv_prog_cc_c89+y}
4471 then :
4472 printf %s "(cached) " >&6
4473 else $as_nop
4474 ac_cv_prog_cc_c89=no
4475 ac_save_CC=$CC
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 $ac_c_conftest_c89_program
4479 _ACEOF
4480 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4481 do
4482 CC="$ac_save_CC $ac_arg"
4483 if ac_fn_c_try_compile "$LINENO"
4484 then :
4485 ac_cv_prog_cc_c89=$ac_arg
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.beam
4488 test "x$ac_cv_prog_cc_c89" != "xno" && break
4489 done
4490 rm -f conftest.$ac_ext
4491 CC=$ac_save_CC
4492 fi
4493
4494 if test "x$ac_cv_prog_cc_c89" = xno
4495 then :
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4497 printf "%s\n" "unsupported" >&6; }
4498 else $as_nop
4499 if test "x$ac_cv_prog_cc_c89" = x
4500 then :
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4502 printf "%s\n" "none needed" >&6; }
4503 else $as_nop
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4505 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4506 CC="$CC $ac_cv_prog_cc_c89"
4507 fi
4508 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4509 ac_prog_cc_stdc=c89
4510 fi
4511 fi
4512
4513 ac_ext=c
4514 ac_cpp='$CPP $CPPFLAGS'
4515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518
4519
4520 ac_ext=c
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4526 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4527 if test ${am_cv_prog_cc_c_o+y}
4528 then :
4529 printf %s "(cached) " >&6
4530 else $as_nop
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533
4534 int
4535 main (void)
4536 {
4537
4538 ;
4539 return 0;
4540 }
4541 _ACEOF
4542 # Make sure it works both with $CC and with simple cc.
4543 # Following AC_PROG_CC_C_O, we do the test twice because some
4544 # compilers refuse to overwrite an existing .o file with -o,
4545 # though they will create one.
4546 am_cv_prog_cc_c_o=yes
4547 for am_i in 1 2; do
4548 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4549 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } \
4553 && test -f conftest2.$ac_objext; then
4554 : OK
4555 else
4556 am_cv_prog_cc_c_o=no
4557 break
4558 fi
4559 done
4560 rm -f core conftest*
4561 unset am_i
4562 fi
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4564 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4565 if test "$am_cv_prog_cc_c_o" != yes; then
4566 # Losing compiler, so override with the script.
4567 # FIXME: It is wrong to rewrite CC.
4568 # But if we don't then we get into trouble of one sort or another.
4569 # A longer-term fix would be to have automake use am__CC in this case,
4570 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4571 CC="$am_aux_dir/compile $CC"
4572 fi
4573 ac_ext=c
4574 ac_cpp='$CPP $CPPFLAGS'
4575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578
4579
4580 depcc="$CC" am_compiler_list=
4581
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4583 printf %s "checking dependency style of $depcc... " >&6; }
4584 if test ${am_cv_CC_dependencies_compiler_type+y}
4585 then :
4586 printf %s "(cached) " >&6
4587 else $as_nop
4588 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4589 # We make a subdir and do the tests there. Otherwise we can end up
4590 # making bogus files that we don't know about and never remove. For
4591 # instance it was reported that on HP-UX the gcc test will end up
4592 # making a dummy file named 'D' -- because '-MD' means "put the output
4593 # in D".
4594 rm -rf conftest.dir
4595 mkdir conftest.dir
4596 # Copy depcomp to subdir because otherwise we won't find it if we're
4597 # using a relative directory.
4598 cp "$am_depcomp" conftest.dir
4599 cd conftest.dir
4600 # We will build objects and dependencies in a subdirectory because
4601 # it helps to detect inapplicable dependency modes. For instance
4602 # both Tru64's cc and ICC support -MD to output dependencies as a
4603 # side effect of compilation, but ICC will put the dependencies in
4604 # the current directory while Tru64 will put them in the object
4605 # directory.
4606 mkdir sub
4607
4608 am_cv_CC_dependencies_compiler_type=none
4609 if test "$am_compiler_list" = ""; then
4610 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4611 fi
4612 am__universal=false
4613 case " $depcc " in #(
4614 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4615 esac
4616
4617 for depmode in $am_compiler_list; do
4618 # Setup a source with many dependencies, because some compilers
4619 # like to wrap large dependency lists on column 80 (with \), and
4620 # we should not choose a depcomp mode which is confused by this.
4621 #
4622 # We need to recreate these files for each test, as the compiler may
4623 # overwrite some of them when testing with obscure command lines.
4624 # This happens at least with the AIX C compiler.
4625 : > sub/conftest.c
4626 for i in 1 2 3 4 5 6; do
4627 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4628 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4629 # Solaris 10 /bin/sh.
4630 echo '/* dummy */' > sub/conftst$i.h
4631 done
4632 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4633
4634 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4635 # mode. It turns out that the SunPro C++ compiler does not properly
4636 # handle '-M -o', and we need to detect this. Also, some Intel
4637 # versions had trouble with output in subdirs.
4638 am__obj=sub/conftest.${OBJEXT-o}
4639 am__minus_obj="-o $am__obj"
4640 case $depmode in
4641 gcc)
4642 # This depmode causes a compiler race in universal mode.
4643 test "$am__universal" = false || continue
4644 ;;
4645 nosideeffect)
4646 # After this tag, mechanisms are not by side-effect, so they'll
4647 # only be used when explicitly requested.
4648 if test "x$enable_dependency_tracking" = xyes; then
4649 continue
4650 else
4651 break
4652 fi
4653 ;;
4654 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4655 # This compiler won't grok '-c -o', but also, the minuso test has
4656 # not run yet. These depmodes are late enough in the game, and
4657 # so weak that their functioning should not be impacted.
4658 am__obj=conftest.${OBJEXT-o}
4659 am__minus_obj=
4660 ;;
4661 none) break ;;
4662 esac
4663 if depmode=$depmode \
4664 source=sub/conftest.c object=$am__obj \
4665 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4666 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4667 >/dev/null 2>conftest.err &&
4668 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4669 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4670 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4671 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4672 # icc doesn't choke on unknown options, it will just issue warnings
4673 # or remarks (even with -Werror). So we grep stderr for any message
4674 # that says an option was ignored or not supported.
4675 # When given -MP, icc 7.0 and 7.1 complain thusly:
4676 # icc: Command line warning: ignoring option '-M'; no argument required
4677 # The diagnosis changed in icc 8.0:
4678 # icc: Command line remark: option '-MP' not supported
4679 if (grep 'ignoring option' conftest.err ||
4680 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4681 am_cv_CC_dependencies_compiler_type=$depmode
4682 break
4683 fi
4684 fi
4685 done
4686
4687 cd ..
4688 rm -rf conftest.dir
4689 else
4690 am_cv_CC_dependencies_compiler_type=none
4691 fi
4692
4693 fi
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4695 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4696 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4697
4698 if
4699 test "x$enable_dependency_tracking" != xno \
4700 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4701 am__fastdepCC_TRUE=
4702 am__fastdepCC_FALSE='#'
4703 else
4704 am__fastdepCC_TRUE='#'
4705 am__fastdepCC_FALSE=
4706 fi
4707
4708
4709
4710
4711 if test -n "$ac_tool_prefix"; then
4712 for ac_prog in ar lib "link -lib"
4713 do
4714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 printf %s "checking for $ac_word... " >&6; }
4718 if test ${ac_cv_prog_AR+y}
4719 then :
4720 printf %s "(cached) " >&6
4721 else $as_nop
4722 if test -n "$AR"; then
4723 ac_cv_prog_AR="$AR" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728 IFS=$as_save_IFS
4729 case $as_dir in #(((
4730 '') as_dir=./ ;;
4731 */) ;;
4732 *) as_dir=$as_dir/ ;;
4733 esac
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4736 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4738 break 2
4739 fi
4740 done
4741 done
4742 IFS=$as_save_IFS
4743
4744 fi
4745 fi
4746 AR=$ac_cv_prog_AR
4747 if test -n "$AR"; then
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4749 printf "%s\n" "$AR" >&6; }
4750 else
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 printf "%s\n" "no" >&6; }
4753 fi
4754
4755
4756 test -n "$AR" && break
4757 done
4758 fi
4759 if test -z "$AR"; then
4760 ac_ct_AR=$AR
4761 for ac_prog in ar lib "link -lib"
4762 do
4763 # Extract the first word of "$ac_prog", so it can be a program name with args.
4764 set dummy $ac_prog; ac_word=$2
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 printf %s "checking for $ac_word... " >&6; }
4767 if test ${ac_cv_prog_ac_ct_AR+y}
4768 then :
4769 printf %s "(cached) " >&6
4770 else $as_nop
4771 if test -n "$ac_ct_AR"; then
4772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777 IFS=$as_save_IFS
4778 case $as_dir in #(((
4779 '') as_dir=./ ;;
4780 */) ;;
4781 *) as_dir=$as_dir/ ;;
4782 esac
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4785 ac_cv_prog_ac_ct_AR="$ac_prog"
4786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4787 break 2
4788 fi
4789 done
4790 done
4791 IFS=$as_save_IFS
4792
4793 fi
4794 fi
4795 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4796 if test -n "$ac_ct_AR"; then
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4798 printf "%s\n" "$ac_ct_AR" >&6; }
4799 else
4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 printf "%s\n" "no" >&6; }
4802 fi
4803
4804
4805 test -n "$ac_ct_AR" && break
4806 done
4807
4808 if test "x$ac_ct_AR" = x; then
4809 AR="false"
4810 else
4811 case $cross_compiling:$ac_tool_warned in
4812 yes:)
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4814 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4815 ac_tool_warned=yes ;;
4816 esac
4817 AR=$ac_ct_AR
4818 fi
4819 fi
4820
4821 : ${AR=ar}
4822
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4824 printf %s "checking the archiver ($AR) interface... " >&6; }
4825 if test ${am_cv_ar_interface+y}
4826 then :
4827 printf %s "(cached) " >&6
4828 else $as_nop
4829 ac_ext=c
4830 ac_cpp='$CPP $CPPFLAGS'
4831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834
4835 am_cv_ar_interface=ar
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4838 int some_variable = 0;
4839 _ACEOF
4840 if ac_fn_c_try_compile "$LINENO"
4841 then :
4842 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4844 (eval $am_ar_try) 2>&5
4845 ac_status=$?
4846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4847 test $ac_status = 0; }
4848 if test "$ac_status" -eq 0; then
4849 am_cv_ar_interface=ar
4850 else
4851 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4853 (eval $am_ar_try) 2>&5
4854 ac_status=$?
4855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856 test $ac_status = 0; }
4857 if test "$ac_status" -eq 0; then
4858 am_cv_ar_interface=lib
4859 else
4860 am_cv_ar_interface=unknown
4861 fi
4862 fi
4863 rm -f conftest.lib libconftest.a
4864
4865 fi
4866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4867 ac_ext=c
4868 ac_cpp='$CPP $CPPFLAGS'
4869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872
4873 fi
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4875 printf "%s\n" "$am_cv_ar_interface" >&6; }
4876
4877 case $am_cv_ar_interface in
4878 ar)
4879 ;;
4880 lib)
4881 # Microsoft lib, so override with the ar-lib wrapper script.
4882 # FIXME: It is wrong to rewrite AR.
4883 # But if we don't then we get into trouble of one sort or another.
4884 # A longer-term fix would be to have automake use am__AR in this case,
4885 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4886 # similar.
4887 AR="$am_aux_dir/ar-lib $AR"
4888 ;;
4889 unknown)
4890 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4891 ;;
4892 esac
4893
4894
4895 case `pwd` in
4896 *\ * | *\ *)
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4898 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4899 esac
4900
4901
4902
4903 macro_version='2.4.7'
4904 macro_revision='2.4.7'
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919 ltmain=$ac_aux_dir/ltmain.sh
4920
4921
4922
4923 # Make sure we can run config.sub.
4924 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4925 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4926
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4928 printf %s "checking build system type... " >&6; }
4929 if test ${ac_cv_build+y}
4930 then :
4931 printf %s "(cached) " >&6
4932 else $as_nop
4933 ac_build_alias=$build_alias
4934 test "x$ac_build_alias" = x &&
4935 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4936 test "x$ac_build_alias" = x &&
4937 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4938 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4939 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4940
4941 fi
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4943 printf "%s\n" "$ac_cv_build" >&6; }
4944 case $ac_cv_build in
4945 *-*-*) ;;
4946 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4947 esac
4948 build=$ac_cv_build
4949 ac_save_IFS=$IFS; IFS='-'
4950 set x $ac_cv_build
4951 shift
4952 build_cpu=$1
4953 build_vendor=$2
4954 shift; shift
4955 # Remember, the first character of IFS is used to create $*,
4956 # except with old shells:
4957 build_os=$*
4958 IFS=$ac_save_IFS
4959 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4960
4961
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4963 printf %s "checking host system type... " >&6; }
4964 if test ${ac_cv_host+y}
4965 then :
4966 printf %s "(cached) " >&6
4967 else $as_nop
4968 if test "x$host_alias" = x; then
4969 ac_cv_host=$ac_cv_build
4970 else
4971 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4972 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4973 fi
4974
4975 fi
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4977 printf "%s\n" "$ac_cv_host" >&6; }
4978 case $ac_cv_host in
4979 *-*-*) ;;
4980 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4981 esac
4982 host=$ac_cv_host
4983 ac_save_IFS=$IFS; IFS='-'
4984 set x $ac_cv_host
4985 shift
4986 host_cpu=$1
4987 host_vendor=$2
4988 shift; shift
4989 # Remember, the first character of IFS is used to create $*,
4990 # except with old shells:
4991 host_os=$*
4992 IFS=$ac_save_IFS
4993 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4994
4995
4996 # Backslashify metacharacters that are still active within
4997 # double-quoted strings.
4998 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4999
5000 # Same as above, but do not quote variable references.
5001 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5002
5003 # Sed substitution to delay expansion of an escaped shell variable in a
5004 # double_quote_subst'ed string.
5005 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5006
5007 # Sed substitution to delay expansion of an escaped single quote.
5008 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5009
5010 # Sed substitution to avoid accidental globbing in evaled expressions
5011 no_glob_subst='s/\*/\\\*/g'
5012
5013 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5014 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5015 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5016
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5018 printf %s "checking how to print strings... " >&6; }
5019 # Test print first, because it will be a builtin if present.
5020 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5021 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5022 ECHO='print -r --'
5023 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5024 ECHO='printf %s\n'
5025 else
5026 # Use this function as a fallback that always works.
5027 func_fallback_echo ()
5028 {
5029 eval 'cat <<_LTECHO_EOF
5030 $1
5031 _LTECHO_EOF'
5032 }
5033 ECHO='func_fallback_echo'
5034 fi
5035
5036 # func_echo_all arg...
5037 # Invoke $ECHO with all args, space-separated.
5038 func_echo_all ()
5039 {
5040 $ECHO ""
5041 }
5042
5043 case $ECHO in
5044 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5045 printf "%s\n" "printf" >&6; } ;;
5046 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5047 printf "%s\n" "print -r" >&6; } ;;
5048 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5049 printf "%s\n" "cat" >&6; } ;;
5050 esac
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5066 printf %s "checking for a sed that does not truncate output... " >&6; }
5067 if test ${ac_cv_path_SED+y}
5068 then :
5069 printf %s "(cached) " >&6
5070 else $as_nop
5071 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5072 for ac_i in 1 2 3 4 5 6 7; do
5073 ac_script="$ac_script$as_nl$ac_script"
5074 done
5075 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5076 { ac_script=; unset ac_script;}
5077 if test -z "$SED"; then
5078 ac_path_SED_found=false
5079 # Loop through the user's path and test for each of PROGNAME-LIST
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083 IFS=$as_save_IFS
5084 case $as_dir in #(((
5085 '') as_dir=./ ;;
5086 */) ;;
5087 *) as_dir=$as_dir/ ;;
5088 esac
5089 for ac_prog in sed gsed
5090 do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5093 as_fn_executable_p "$ac_path_SED" || continue
5094 # Check for GNU ac_path_SED and select it if it is found.
5095 # Check for GNU $ac_path_SED
5096 case `"$ac_path_SED" --version 2>&1` in
5097 *GNU*)
5098 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5099 *)
5100 ac_count=0
5101 printf %s 0123456789 >"conftest.in"
5102 while :
5103 do
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 printf "%s\n" '' >> "conftest.nl"
5108 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 as_fn_arith $ac_count + 1 && ac_count=$as_val
5111 if test $ac_count -gt ${ac_path_SED_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_SED="$ac_path_SED"
5114 ac_path_SED_max=$ac_count
5115 fi
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5118 done
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 esac
5121
5122 $ac_path_SED_found && break 3
5123 done
5124 done
5125 done
5126 IFS=$as_save_IFS
5127 if test -z "$ac_cv_path_SED"; then
5128 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5129 fi
5130 else
5131 ac_cv_path_SED=$SED
5132 fi
5133
5134 fi
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5136 printf "%s\n" "$ac_cv_path_SED" >&6; }
5137 SED="$ac_cv_path_SED"
5138 rm -f conftest.sed
5139
5140 test -z "$SED" && SED=sed
5141 Xsed="$SED -e 1s/^X//"
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5154 printf %s "checking for grep that handles long lines and -e... " >&6; }
5155 if test ${ac_cv_path_GREP+y}
5156 then :
5157 printf %s "(cached) " >&6
5158 else $as_nop
5159 if test -z "$GREP"; then
5160 ac_path_GREP_found=false
5161 # Loop through the user's path and test for each of PROGNAME-LIST
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5164 do
5165 IFS=$as_save_IFS
5166 case $as_dir in #(((
5167 '') as_dir=./ ;;
5168 */) ;;
5169 *) as_dir=$as_dir/ ;;
5170 esac
5171 for ac_prog in grep ggrep
5172 do
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5175 as_fn_executable_p "$ac_path_GREP" || continue
5176 # Check for GNU ac_path_GREP and select it if it is found.
5177 # Check for GNU $ac_path_GREP
5178 case `"$ac_path_GREP" --version 2>&1` in
5179 *GNU*)
5180 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5181 *)
5182 ac_count=0
5183 printf %s 0123456789 >"conftest.in"
5184 while :
5185 do
5186 cat "conftest.in" "conftest.in" >"conftest.tmp"
5187 mv "conftest.tmp" "conftest.in"
5188 cp "conftest.in" "conftest.nl"
5189 printf "%s\n" 'GREP' >> "conftest.nl"
5190 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5192 as_fn_arith $ac_count + 1 && ac_count=$as_val
5193 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5194 # Best one so far, save it but keep looking for a better one
5195 ac_cv_path_GREP="$ac_path_GREP"
5196 ac_path_GREP_max=$ac_count
5197 fi
5198 # 10*(2^10) chars as input seems more than enough
5199 test $ac_count -gt 10 && break
5200 done
5201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5202 esac
5203
5204 $ac_path_GREP_found && break 3
5205 done
5206 done
5207 done
5208 IFS=$as_save_IFS
5209 if test -z "$ac_cv_path_GREP"; then
5210 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5211 fi
5212 else
5213 ac_cv_path_GREP=$GREP
5214 fi
5215
5216 fi
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5218 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5219 GREP="$ac_cv_path_GREP"
5220
5221
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5223 printf %s "checking for egrep... " >&6; }
5224 if test ${ac_cv_path_EGREP+y}
5225 then :
5226 printf %s "(cached) " >&6
5227 else $as_nop
5228 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5229 then ac_cv_path_EGREP="$GREP -E"
5230 else
5231 if test -z "$EGREP"; then
5232 ac_path_EGREP_found=false
5233 # Loop through the user's path and test for each of PROGNAME-LIST
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5236 do
5237 IFS=$as_save_IFS
5238 case $as_dir in #(((
5239 '') as_dir=./ ;;
5240 */) ;;
5241 *) as_dir=$as_dir/ ;;
5242 esac
5243 for ac_prog in egrep
5244 do
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5247 as_fn_executable_p "$ac_path_EGREP" || continue
5248 # Check for GNU ac_path_EGREP and select it if it is found.
5249 # Check for GNU $ac_path_EGREP
5250 case `"$ac_path_EGREP" --version 2>&1` in
5251 *GNU*)
5252 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5253 *)
5254 ac_count=0
5255 printf %s 0123456789 >"conftest.in"
5256 while :
5257 do
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 printf "%s\n" 'EGREP' >> "conftest.nl"
5262 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264 as_fn_arith $ac_count + 1 && ac_count=$as_val
5265 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_EGREP="$ac_path_EGREP"
5268 ac_path_EGREP_max=$ac_count
5269 fi
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5272 done
5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274 esac
5275
5276 $ac_path_EGREP_found && break 3
5277 done
5278 done
5279 done
5280 IFS=$as_save_IFS
5281 if test -z "$ac_cv_path_EGREP"; then
5282 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5283 fi
5284 else
5285 ac_cv_path_EGREP=$EGREP
5286 fi
5287
5288 fi
5289 fi
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5291 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5292 EGREP="$ac_cv_path_EGREP"
5293
5294
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5296 printf %s "checking for fgrep... " >&6; }
5297 if test ${ac_cv_path_FGREP+y}
5298 then :
5299 printf %s "(cached) " >&6
5300 else $as_nop
5301 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5302 then ac_cv_path_FGREP="$GREP -F"
5303 else
5304 if test -z "$FGREP"; then
5305 ac_path_FGREP_found=false
5306 # Loop through the user's path and test for each of PROGNAME-LIST
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5309 do
5310 IFS=$as_save_IFS
5311 case $as_dir in #(((
5312 '') as_dir=./ ;;
5313 */) ;;
5314 *) as_dir=$as_dir/ ;;
5315 esac
5316 for ac_prog in fgrep
5317 do
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5320 as_fn_executable_p "$ac_path_FGREP" || continue
5321 # Check for GNU ac_path_FGREP and select it if it is found.
5322 # Check for GNU $ac_path_FGREP
5323 case `"$ac_path_FGREP" --version 2>&1` in
5324 *GNU*)
5325 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5326 *)
5327 ac_count=0
5328 printf %s 0123456789 >"conftest.in"
5329 while :
5330 do
5331 cat "conftest.in" "conftest.in" >"conftest.tmp"
5332 mv "conftest.tmp" "conftest.in"
5333 cp "conftest.in" "conftest.nl"
5334 printf "%s\n" 'FGREP' >> "conftest.nl"
5335 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5337 as_fn_arith $ac_count + 1 && ac_count=$as_val
5338 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5339 # Best one so far, save it but keep looking for a better one
5340 ac_cv_path_FGREP="$ac_path_FGREP"
5341 ac_path_FGREP_max=$ac_count
5342 fi
5343 # 10*(2^10) chars as input seems more than enough
5344 test $ac_count -gt 10 && break
5345 done
5346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5347 esac
5348
5349 $ac_path_FGREP_found && break 3
5350 done
5351 done
5352 done
5353 IFS=$as_save_IFS
5354 if test -z "$ac_cv_path_FGREP"; then
5355 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5356 fi
5357 else
5358 ac_cv_path_FGREP=$FGREP
5359 fi
5360
5361 fi
5362 fi
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5364 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5365 FGREP="$ac_cv_path_FGREP"
5366
5367
5368 test -z "$GREP" && GREP=grep
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388 # Check whether --with-gnu-ld was given.
5389 if test ${with_gnu_ld+y}
5390 then :
5391 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5392 else $as_nop
5393 with_gnu_ld=no
5394 fi
5395
5396 ac_prog=ld
5397 if test yes = "$GCC"; then
5398 # Check if gcc -print-prog-name=ld gives a path.
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5400 printf %s "checking for ld used by $CC... " >&6; }
5401 case $host in
5402 *-*-mingw*)
5403 # gcc leaves a trailing carriage return, which upsets mingw
5404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5405 *)
5406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5407 esac
5408 case $ac_prog in
5409 # Accept absolute paths.
5410 [\\/]* | ?:[\\/]*)
5411 re_direlt='/[^/][^/]*/\.\./'
5412 # Canonicalize the pathname of ld
5413 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5414 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5415 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5416 done
5417 test -z "$LD" && LD=$ac_prog
5418 ;;
5419 "")
5420 # If it fails, then pretend we aren't using GCC.
5421 ac_prog=ld
5422 ;;
5423 *)
5424 # If it is relative, then search for the first ld in PATH.
5425 with_gnu_ld=unknown
5426 ;;
5427 esac
5428 elif test yes = "$with_gnu_ld"; then
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5430 printf %s "checking for GNU ld... " >&6; }
5431 else
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5433 printf %s "checking for non-GNU ld... " >&6; }
5434 fi
5435 if test ${lt_cv_path_LD+y}
5436 then :
5437 printf %s "(cached) " >&6
5438 else $as_nop
5439 if test -z "$LD"; then
5440 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5441 for ac_dir in $PATH; do
5442 IFS=$lt_save_ifs
5443 test -z "$ac_dir" && ac_dir=.
5444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5445 lt_cv_path_LD=$ac_dir/$ac_prog
5446 # Check to see if the program is GNU ld. I'd rather use --version,
5447 # but apparently some variants of GNU ld only accept -v.
5448 # Break only if it was the GNU/non-GNU ld that we prefer.
5449 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5450 *GNU* | *'with BFD'*)
5451 test no != "$with_gnu_ld" && break
5452 ;;
5453 *)
5454 test yes != "$with_gnu_ld" && break
5455 ;;
5456 esac
5457 fi
5458 done
5459 IFS=$lt_save_ifs
5460 else
5461 lt_cv_path_LD=$LD # Let the user override the test with a path.
5462 fi
5463 fi
5464
5465 LD=$lt_cv_path_LD
5466 if test -n "$LD"; then
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5468 printf "%s\n" "$LD" >&6; }
5469 else
5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 printf "%s\n" "no" >&6; }
5472 fi
5473 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5475 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5476 if test ${lt_cv_prog_gnu_ld+y}
5477 then :
5478 printf %s "(cached) " >&6
5479 else $as_nop
5480 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5481 case `$LD -v 2>&1 </dev/null` in
5482 *GNU* | *'with BFD'*)
5483 lt_cv_prog_gnu_ld=yes
5484 ;;
5485 *)
5486 lt_cv_prog_gnu_ld=no
5487 ;;
5488 esac
5489 fi
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5491 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5492 with_gnu_ld=$lt_cv_prog_gnu_ld
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5503 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5504 if test ${lt_cv_path_NM+y}
5505 then :
5506 printf %s "(cached) " >&6
5507 else $as_nop
5508 if test -n "$NM"; then
5509 # Let the user override the test.
5510 lt_cv_path_NM=$NM
5511 else
5512 lt_nm_to_check=${ac_tool_prefix}nm
5513 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5514 lt_nm_to_check="$lt_nm_to_check nm"
5515 fi
5516 for lt_tmp_nm in $lt_nm_to_check; do
5517 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5518 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5519 IFS=$lt_save_ifs
5520 test -z "$ac_dir" && ac_dir=.
5521 tmp_nm=$ac_dir/$lt_tmp_nm
5522 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5523 # Check to see if the nm accepts a BSD-compat flag.
5524 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5525 # nm: unknown option "B" ignored
5526 # Tru64's nm complains that /dev/null is an invalid object file
5527 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5528 case $build_os in
5529 mingw*) lt_bad_file=conftest.nm/nofile ;;
5530 *) lt_bad_file=/dev/null ;;
5531 esac
5532 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5533 *$lt_bad_file* | *'Invalid file or object type'*)
5534 lt_cv_path_NM="$tmp_nm -B"
5535 break 2
5536 ;;
5537 *)
5538 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5539 */dev/null*)
5540 lt_cv_path_NM="$tmp_nm -p"
5541 break 2
5542 ;;
5543 *)
5544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5545 continue # so that we can try to find one that supports BSD flags
5546 ;;
5547 esac
5548 ;;
5549 esac
5550 fi
5551 done
5552 IFS=$lt_save_ifs
5553 done
5554 : ${lt_cv_path_NM=no}
5555 fi
5556 fi
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5558 printf "%s\n" "$lt_cv_path_NM" >&6; }
5559 if test no != "$lt_cv_path_NM"; then
5560 NM=$lt_cv_path_NM
5561 else
5562 # Didn't find any BSD compatible name lister, look for dumpbin.
5563 if test -n "$DUMPBIN"; then :
5564 # Let the user override the test.
5565 else
5566 if test -n "$ac_tool_prefix"; then
5567 for ac_prog in dumpbin "link -dump"
5568 do
5569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 printf %s "checking for $ac_word... " >&6; }
5573 if test ${ac_cv_prog_DUMPBIN+y}
5574 then :
5575 printf %s "(cached) " >&6
5576 else $as_nop
5577 if test -n "$DUMPBIN"; then
5578 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 case $as_dir in #(((
5585 '') as_dir=./ ;;
5586 */) ;;
5587 *) as_dir=$as_dir/ ;;
5588 esac
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595 done
5596 done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 DUMPBIN=$ac_cv_prog_DUMPBIN
5602 if test -n "$DUMPBIN"; then
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5604 printf "%s\n" "$DUMPBIN" >&6; }
5605 else
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 printf "%s\n" "no" >&6; }
5608 fi
5609
5610
5611 test -n "$DUMPBIN" && break
5612 done
5613 fi
5614 if test -z "$DUMPBIN"; then
5615 ac_ct_DUMPBIN=$DUMPBIN
5616 for ac_prog in dumpbin "link -dump"
5617 do
5618 # Extract the first word of "$ac_prog", so it can be a program name with args.
5619 set dummy $ac_prog; ac_word=$2
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 printf %s "checking for $ac_word... " >&6; }
5622 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5623 then :
5624 printf %s "(cached) " >&6
5625 else $as_nop
5626 if test -n "$ac_ct_DUMPBIN"; then
5627 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632 IFS=$as_save_IFS
5633 case $as_dir in #(((
5634 '') as_dir=./ ;;
5635 */) ;;
5636 *) as_dir=$as_dir/ ;;
5637 esac
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644 done
5645 done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5651 if test -n "$ac_ct_DUMPBIN"; then
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5653 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5654 else
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 printf "%s\n" "no" >&6; }
5657 fi
5658
5659
5660 test -n "$ac_ct_DUMPBIN" && break
5661 done
5662
5663 if test "x$ac_ct_DUMPBIN" = x; then
5664 DUMPBIN=":"
5665 else
5666 case $cross_compiling:$ac_tool_warned in
5667 yes:)
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5669 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670 ac_tool_warned=yes ;;
5671 esac
5672 DUMPBIN=$ac_ct_DUMPBIN
5673 fi
5674 fi
5675
5676 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5677 *COFF*)
5678 DUMPBIN="$DUMPBIN -symbols -headers"
5679 ;;
5680 *)
5681 DUMPBIN=:
5682 ;;
5683 esac
5684 fi
5685
5686 if test : != "$DUMPBIN"; then
5687 NM=$DUMPBIN
5688 fi
5689 fi
5690 test -z "$NM" && NM=nm
5691
5692
5693
5694
5695
5696
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5698 printf %s "checking the name lister ($NM) interface... " >&6; }
5699 if test ${lt_cv_nm_interface+y}
5700 then :
5701 printf %s "(cached) " >&6
5702 else $as_nop
5703 lt_cv_nm_interface="BSD nm"
5704 echo "int some_variable = 0;" > conftest.$ac_ext
5705 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5706 (eval "$ac_compile" 2>conftest.err)
5707 cat conftest.err >&5
5708 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5709 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5710 cat conftest.err >&5
5711 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5712 cat conftest.out >&5
5713 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5714 lt_cv_nm_interface="MS dumpbin"
5715 fi
5716 rm -f conftest*
5717 fi
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5719 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5720
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5722 printf %s "checking whether ln -s works... " >&6; }
5723 LN_S=$as_ln_s
5724 if test "$LN_S" = "ln -s"; then
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5726 printf "%s\n" "yes" >&6; }
5727 else
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5729 printf "%s\n" "no, using $LN_S" >&6; }
5730 fi
5731
5732 # find the maximum length of command line arguments
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5734 printf %s "checking the maximum length of command line arguments... " >&6; }
5735 if test ${lt_cv_sys_max_cmd_len+y}
5736 then :
5737 printf %s "(cached) " >&6
5738 else $as_nop
5739 i=0
5740 teststring=ABCD
5741
5742 case $build_os in
5743 msdosdjgpp*)
5744 # On DJGPP, this test can blow up pretty badly due to problems in libc
5745 # (any single argument exceeding 2000 bytes causes a buffer overrun
5746 # during glob expansion). Even if it were fixed, the result of this
5747 # check would be larger than it should be.
5748 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5749 ;;
5750
5751 gnu*)
5752 # Under GNU Hurd, this test is not required because there is
5753 # no limit to the length of command line arguments.
5754 # Libtool will interpret -1 as no limit whatsoever
5755 lt_cv_sys_max_cmd_len=-1;
5756 ;;
5757
5758 cygwin* | mingw* | cegcc*)
5759 # On Win9x/ME, this test blows up -- it succeeds, but takes
5760 # about 5 minutes as the teststring grows exponentially.
5761 # Worse, since 9x/ME are not pre-emptively multitasking,
5762 # you end up with a "frozen" computer, even though with patience
5763 # the test eventually succeeds (with a max line length of 256k).
5764 # Instead, let's just punt: use the minimum linelength reported by
5765 # all of the supported platforms: 8192 (on NT/2K/XP).
5766 lt_cv_sys_max_cmd_len=8192;
5767 ;;
5768
5769 mint*)
5770 # On MiNT this can take a long time and run out of memory.
5771 lt_cv_sys_max_cmd_len=8192;
5772 ;;
5773
5774 amigaos*)
5775 # On AmigaOS with pdksh, this test takes hours, literally.
5776 # So we just punt and use a minimum line length of 8192.
5777 lt_cv_sys_max_cmd_len=8192;
5778 ;;
5779
5780 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5781 # This has been around since 386BSD, at least. Likely further.
5782 if test -x /sbin/sysctl; then
5783 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5784 elif test -x /usr/sbin/sysctl; then
5785 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5786 else
5787 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5788 fi
5789 # And add a safety zone
5790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5792 ;;
5793
5794 interix*)
5795 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5796 lt_cv_sys_max_cmd_len=196608
5797 ;;
5798
5799 os2*)
5800 # The test takes a long time on OS/2.
5801 lt_cv_sys_max_cmd_len=8192
5802 ;;
5803
5804 osf*)
5805 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5806 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5807 # nice to cause kernel panics so lets avoid the loop below.
5808 # First set a reasonable default.
5809 lt_cv_sys_max_cmd_len=16384
5810 #
5811 if test -x /sbin/sysconfig; then
5812 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5813 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5814 esac
5815 fi
5816 ;;
5817 sco3.2v5*)
5818 lt_cv_sys_max_cmd_len=102400
5819 ;;
5820 sysv5* | sco5v6* | sysv4.2uw2*)
5821 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5822 if test -n "$kargmax"; then
5823 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5824 else
5825 lt_cv_sys_max_cmd_len=32768
5826 fi
5827 ;;
5828 *)
5829 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5830 if test -n "$lt_cv_sys_max_cmd_len" && \
5831 test undefined != "$lt_cv_sys_max_cmd_len"; then
5832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5834 else
5835 # Make teststring a little bigger before we do anything with it.
5836 # a 1K string should be a reasonable start.
5837 for i in 1 2 3 4 5 6 7 8; do
5838 teststring=$teststring$teststring
5839 done
5840 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5841 # If test is not a shell built-in, we'll probably end up computing a
5842 # maximum length that is only half of the actual maximum length, but
5843 # we can't tell.
5844 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5845 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5846 test 17 != "$i" # 1/2 MB should be enough
5847 do
5848 i=`expr $i + 1`
5849 teststring=$teststring$teststring
5850 done
5851 # Only check the string length outside the loop.
5852 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5853 teststring=
5854 # Add a significant safety factor because C++ compilers can tack on
5855 # massive amounts of additional arguments before passing them to the
5856 # linker. It appears as though 1/2 is a usable value.
5857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5858 fi
5859 ;;
5860 esac
5861
5862 fi
5863
5864 if test -n "$lt_cv_sys_max_cmd_len"; then
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5866 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5867 else
5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5869 printf "%s\n" "none" >&6; }
5870 fi
5871 max_cmd_len=$lt_cv_sys_max_cmd_len
5872
5873
5874
5875
5876
5877
5878 : ${CP="cp -f"}
5879 : ${MV="mv -f"}
5880 : ${RM="rm -f"}
5881
5882 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5883 lt_unset=unset
5884 else
5885 lt_unset=false
5886 fi
5887
5888
5889
5890
5891
5892 # test EBCDIC or ASCII
5893 case `echo X|tr X '\101'` in
5894 A) # ASCII based system
5895 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5896 lt_SP2NL='tr \040 \012'
5897 lt_NL2SP='tr \015\012 \040\040'
5898 ;;
5899 *) # EBCDIC based system
5900 lt_SP2NL='tr \100 \n'
5901 lt_NL2SP='tr \r\n \100\100'
5902 ;;
5903 esac
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5914 printf %s "checking how to convert $build file names to $host format... " >&6; }
5915 if test ${lt_cv_to_host_file_cmd+y}
5916 then :
5917 printf %s "(cached) " >&6
5918 else $as_nop
5919 case $host in
5920 *-*-mingw* )
5921 case $build in
5922 *-*-mingw* ) # actually msys
5923 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5924 ;;
5925 *-*-cygwin* )
5926 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5927 ;;
5928 * ) # otherwise, assume *nix
5929 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5930 ;;
5931 esac
5932 ;;
5933 *-*-cygwin* )
5934 case $build in
5935 *-*-mingw* ) # actually msys
5936 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5937 ;;
5938 *-*-cygwin* )
5939 lt_cv_to_host_file_cmd=func_convert_file_noop
5940 ;;
5941 * ) # otherwise, assume *nix
5942 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5943 ;;
5944 esac
5945 ;;
5946 * ) # unhandled hosts (and "normal" native builds)
5947 lt_cv_to_host_file_cmd=func_convert_file_noop
5948 ;;
5949 esac
5950
5951 fi
5952
5953 to_host_file_cmd=$lt_cv_to_host_file_cmd
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5955 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5956
5957
5958
5959
5960
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5962 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5963 if test ${lt_cv_to_tool_file_cmd+y}
5964 then :
5965 printf %s "(cached) " >&6
5966 else $as_nop
5967 #assume ordinary cross tools, or native build.
5968 lt_cv_to_tool_file_cmd=func_convert_file_noop
5969 case $host in
5970 *-*-mingw* )
5971 case $build in
5972 *-*-mingw* ) # actually msys
5973 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5974 ;;
5975 esac
5976 ;;
5977 esac
5978
5979 fi
5980
5981 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5983 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5984
5985
5986
5987
5988
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5990 printf %s "checking for $LD option to reload object files... " >&6; }
5991 if test ${lt_cv_ld_reload_flag+y}
5992 then :
5993 printf %s "(cached) " >&6
5994 else $as_nop
5995 lt_cv_ld_reload_flag='-r'
5996 fi
5997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5998 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5999 reload_flag=$lt_cv_ld_reload_flag
6000 case $reload_flag in
6001 "" | " "*) ;;
6002 *) reload_flag=" $reload_flag" ;;
6003 esac
6004 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6005 case $host_os in
6006 cygwin* | mingw* | pw32* | cegcc*)
6007 if test yes != "$GCC"; then
6008 reload_cmds=false
6009 fi
6010 ;;
6011 darwin*)
6012 if test yes = "$GCC"; then
6013 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6014 else
6015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6016 fi
6017 ;;
6018 esac
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}file; ac_word=$2
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 printf %s "checking for $ac_word... " >&6; }
6033 if test ${ac_cv_prog_FILECMD+y}
6034 then :
6035 printf %s "(cached) " >&6
6036 else $as_nop
6037 if test -n "$FILECMD"; then
6038 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6039 else
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6042 do
6043 IFS=$as_save_IFS
6044 case $as_dir in #(((
6045 '') as_dir=./ ;;
6046 */) ;;
6047 *) as_dir=$as_dir/ ;;
6048 esac
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055 done
6056 done
6057 IFS=$as_save_IFS
6058
6059 fi
6060 fi
6061 FILECMD=$ac_cv_prog_FILECMD
6062 if test -n "$FILECMD"; then
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6064 printf "%s\n" "$FILECMD" >&6; }
6065 else
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 printf "%s\n" "no" >&6; }
6068 fi
6069
6070
6071 fi
6072 if test -z "$ac_cv_prog_FILECMD"; then
6073 ac_ct_FILECMD=$FILECMD
6074 # Extract the first word of "file", so it can be a program name with args.
6075 set dummy file; ac_word=$2
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 printf %s "checking for $ac_word... " >&6; }
6078 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6079 then :
6080 printf %s "(cached) " >&6
6081 else $as_nop
6082 if test -n "$ac_ct_FILECMD"; then
6083 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088 IFS=$as_save_IFS
6089 case $as_dir in #(((
6090 '') as_dir=./ ;;
6091 */) ;;
6092 *) as_dir=$as_dir/ ;;
6093 esac
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6096 ac_cv_prog_ac_ct_FILECMD="file"
6097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6107 if test -n "$ac_ct_FILECMD"; then
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6109 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6110 else
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 printf "%s\n" "no" >&6; }
6113 fi
6114
6115 if test "x$ac_ct_FILECMD" = x; then
6116 FILECMD=":"
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6121 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122 ac_tool_warned=yes ;;
6123 esac
6124 FILECMD=$ac_ct_FILECMD
6125 fi
6126 else
6127 FILECMD="$ac_cv_prog_FILECMD"
6128 fi
6129
6130
6131
6132
6133
6134
6135
6136 if test -n "$ac_tool_prefix"; then
6137 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 printf %s "checking for $ac_word... " >&6; }
6141 if test ${ac_cv_prog_OBJDUMP+y}
6142 then :
6143 printf %s "(cached) " >&6
6144 else $as_nop
6145 if test -n "$OBJDUMP"; then
6146 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 case $as_dir in #(((
6153 '') as_dir=./ ;;
6154 */) ;;
6155 *) as_dir=$as_dir/ ;;
6156 esac
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6159 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 OBJDUMP=$ac_cv_prog_OBJDUMP
6170 if test -n "$OBJDUMP"; then
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6172 printf "%s\n" "$OBJDUMP" >&6; }
6173 else
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 printf "%s\n" "no" >&6; }
6176 fi
6177
6178
6179 fi
6180 if test -z "$ac_cv_prog_OBJDUMP"; then
6181 ac_ct_OBJDUMP=$OBJDUMP
6182 # Extract the first word of "objdump", so it can be a program name with args.
6183 set dummy objdump; ac_word=$2
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 printf %s "checking for $ac_word... " >&6; }
6186 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6187 then :
6188 printf %s "(cached) " >&6
6189 else $as_nop
6190 if test -n "$ac_ct_OBJDUMP"; then
6191 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196 IFS=$as_save_IFS
6197 case $as_dir in #(((
6198 '') as_dir=./ ;;
6199 */) ;;
6200 *) as_dir=$as_dir/ ;;
6201 esac
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6204 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6215 if test -n "$ac_ct_OBJDUMP"; then
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6217 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6218 else
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 printf "%s\n" "no" >&6; }
6221 fi
6222
6223 if test "x$ac_ct_OBJDUMP" = x; then
6224 OBJDUMP="false"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230 ac_tool_warned=yes ;;
6231 esac
6232 OBJDUMP=$ac_ct_OBJDUMP
6233 fi
6234 else
6235 OBJDUMP="$ac_cv_prog_OBJDUMP"
6236 fi
6237
6238 test -z "$OBJDUMP" && OBJDUMP=objdump
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6249 printf %s "checking how to recognize dependent libraries... " >&6; }
6250 if test ${lt_cv_deplibs_check_method+y}
6251 then :
6252 printf %s "(cached) " >&6
6253 else $as_nop
6254 lt_cv_file_magic_cmd='$MAGIC_CMD'
6255 lt_cv_file_magic_test_file=
6256 lt_cv_deplibs_check_method='unknown'
6257 # Need to set the preceding variable on all platforms that support
6258 # interlibrary dependencies.
6259 # 'none' -- dependencies not supported.
6260 # 'unknown' -- same as none, but documents that we really don't know.
6261 # 'pass_all' -- all dependencies passed with no checks.
6262 # 'test_compile' -- check by making test program.
6263 # 'file_magic [[regex]]' -- check by looking for files in library path
6264 # that responds to the $file_magic_cmd with a given extended regex.
6265 # If you have 'file' or equivalent on your system and you're not sure
6266 # whether 'pass_all' will *always* work, you probably want this one.
6267
6268 case $host_os in
6269 aix[4-9]*)
6270 lt_cv_deplibs_check_method=pass_all
6271 ;;
6272
6273 beos*)
6274 lt_cv_deplibs_check_method=pass_all
6275 ;;
6276
6277 bsdi[45]*)
6278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6279 lt_cv_file_magic_cmd='$FILECMD -L'
6280 lt_cv_file_magic_test_file=/shlib/libc.so
6281 ;;
6282
6283 cygwin*)
6284 # func_win32_libid is a shell function defined in ltmain.sh
6285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6286 lt_cv_file_magic_cmd='func_win32_libid'
6287 ;;
6288
6289 mingw* | pw32*)
6290 # Base MSYS/MinGW do not provide the 'file' command needed by
6291 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6292 # unless we find 'file', for example because we are cross-compiling.
6293 if ( file / ) >/dev/null 2>&1; then
6294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6295 lt_cv_file_magic_cmd='func_win32_libid'
6296 else
6297 # Keep this pattern in sync with the one in func_win32_libid.
6298 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6299 lt_cv_file_magic_cmd='$OBJDUMP -f'
6300 fi
6301 ;;
6302
6303 cegcc*)
6304 # use the weaker test based on 'objdump'. See mingw*.
6305 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6306 lt_cv_file_magic_cmd='$OBJDUMP -f'
6307 ;;
6308
6309 darwin* | rhapsody*)
6310 lt_cv_deplibs_check_method=pass_all
6311 ;;
6312
6313 freebsd* | dragonfly* | midnightbsd*)
6314 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6315 case $host_cpu in
6316 i*86 )
6317 # Not sure whether the presence of OpenBSD here was a mistake.
6318 # Let's accept both of them until this is cleared up.
6319 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6320 lt_cv_file_magic_cmd=$FILECMD
6321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6322 ;;
6323 esac
6324 else
6325 lt_cv_deplibs_check_method=pass_all
6326 fi
6327 ;;
6328
6329 haiku*)
6330 lt_cv_deplibs_check_method=pass_all
6331 ;;
6332
6333 hpux10.20* | hpux11*)
6334 lt_cv_file_magic_cmd=$FILECMD
6335 case $host_cpu in
6336 ia64*)
6337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6338 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6339 ;;
6340 hppa*64*)
6341 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]'
6342 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6343 ;;
6344 *)
6345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6346 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6347 ;;
6348 esac
6349 ;;
6350
6351 interix[3-9]*)
6352 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6354 ;;
6355
6356 irix5* | irix6* | nonstopux*)
6357 case $LD in
6358 *-32|*"-32 ") libmagic=32-bit;;
6359 *-n32|*"-n32 ") libmagic=N32;;
6360 *-64|*"-64 ") libmagic=64-bit;;
6361 *) libmagic=never-match;;
6362 esac
6363 lt_cv_deplibs_check_method=pass_all
6364 ;;
6365
6366 # This must be glibc/ELF.
6367 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370
6371 netbsd* | netbsdelf*-gnu)
6372 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6374 else
6375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6376 fi
6377 ;;
6378
6379 newos6*)
6380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6381 lt_cv_file_magic_cmd=$FILECMD
6382 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6383 ;;
6384
6385 *nto* | *qnx*)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
6388
6389 openbsd* | bitrig*)
6390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6392 else
6393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6394 fi
6395 ;;
6396
6397 osf3* | osf4* | osf5*)
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401 rdos*)
6402 lt_cv_deplibs_check_method=pass_all
6403 ;;
6404
6405 solaris*)
6406 lt_cv_deplibs_check_method=pass_all
6407 ;;
6408
6409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6410 lt_cv_deplibs_check_method=pass_all
6411 ;;
6412
6413 sysv4 | sysv4.3*)
6414 case $host_vendor in
6415 motorola)
6416 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]'
6417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6418 ;;
6419 ncr)
6420 lt_cv_deplibs_check_method=pass_all
6421 ;;
6422 sequent)
6423 lt_cv_file_magic_cmd='/bin/file'
6424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6425 ;;
6426 sni)
6427 lt_cv_file_magic_cmd='/bin/file'
6428 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6429 lt_cv_file_magic_test_file=/lib/libc.so
6430 ;;
6431 siemens)
6432 lt_cv_deplibs_check_method=pass_all
6433 ;;
6434 pc)
6435 lt_cv_deplibs_check_method=pass_all
6436 ;;
6437 esac
6438 ;;
6439
6440 tpf*)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443 os2*)
6444 lt_cv_deplibs_check_method=pass_all
6445 ;;
6446 esac
6447
6448 fi
6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6450 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6451
6452 file_magic_glob=
6453 want_nocaseglob=no
6454 if test "$build" = "$host"; then
6455 case $host_os in
6456 mingw* | pw32*)
6457 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6458 want_nocaseglob=yes
6459 else
6460 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6461 fi
6462 ;;
6463 esac
6464 fi
6465
6466 file_magic_cmd=$lt_cv_file_magic_cmd
6467 deplibs_check_method=$lt_cv_deplibs_check_method
6468 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 printf %s "checking for $ac_word... " >&6; }
6496 if test ${ac_cv_prog_DLLTOOL+y}
6497 then :
6498 printf %s "(cached) " >&6
6499 else $as_nop
6500 if test -n "$DLLTOOL"; then
6501 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6505 do
6506 IFS=$as_save_IFS
6507 case $as_dir in #(((
6508 '') as_dir=./ ;;
6509 */) ;;
6510 *) as_dir=$as_dir/ ;;
6511 esac
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6516 break 2
6517 fi
6518 done
6519 done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 DLLTOOL=$ac_cv_prog_DLLTOOL
6525 if test -n "$DLLTOOL"; then
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6527 printf "%s\n" "$DLLTOOL" >&6; }
6528 else
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 printf "%s\n" "no" >&6; }
6531 fi
6532
6533
6534 fi
6535 if test -z "$ac_cv_prog_DLLTOOL"; then
6536 ac_ct_DLLTOOL=$DLLTOOL
6537 # Extract the first word of "dlltool", so it can be a program name with args.
6538 set dummy dlltool; ac_word=$2
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 printf %s "checking for $ac_word... " >&6; }
6541 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6542 then :
6543 printf %s "(cached) " >&6
6544 else $as_nop
6545 if test -n "$ac_ct_DLLTOOL"; then
6546 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551 IFS=$as_save_IFS
6552 case $as_dir in #(((
6553 '') as_dir=./ ;;
6554 */) ;;
6555 *) as_dir=$as_dir/ ;;
6556 esac
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6559 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6570 if test -n "$ac_ct_DLLTOOL"; then
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6572 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6573 else
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 printf "%s\n" "no" >&6; }
6576 fi
6577
6578 if test "x$ac_ct_DLLTOOL" = x; then
6579 DLLTOOL="false"
6580 else
6581 case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587 DLLTOOL=$ac_ct_DLLTOOL
6588 fi
6589 else
6590 DLLTOOL="$ac_cv_prog_DLLTOOL"
6591 fi
6592
6593 test -z "$DLLTOOL" && DLLTOOL=dlltool
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6605 printf %s "checking how to associate runtime and link libraries... " >&6; }
6606 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6607 then :
6608 printf %s "(cached) " >&6
6609 else $as_nop
6610 lt_cv_sharedlib_from_linklib_cmd='unknown'
6611
6612 case $host_os in
6613 cygwin* | mingw* | pw32* | cegcc*)
6614 # two different shell functions defined in ltmain.sh;
6615 # decide which one to use based on capabilities of $DLLTOOL
6616 case `$DLLTOOL --help 2>&1` in
6617 *--identify-strict*)
6618 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6619 ;;
6620 *)
6621 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6622 ;;
6623 esac
6624 ;;
6625 *)
6626 # fallback: assume linklib IS sharedlib
6627 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6628 ;;
6629 esac
6630
6631 fi
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6633 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6634 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6635 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6636
6637
6638
6639
6640
6641
6642
6643 if test -n "$ac_tool_prefix"; then
6644 for ac_prog in ar
6645 do
6646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 printf %s "checking for $ac_word... " >&6; }
6650 if test ${ac_cv_prog_AR+y}
6651 then :
6652 printf %s "(cached) " >&6
6653 else $as_nop
6654 if test -n "$AR"; then
6655 ac_cv_prog_AR="$AR" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660 IFS=$as_save_IFS
6661 case $as_dir in #(((
6662 '') as_dir=./ ;;
6663 */) ;;
6664 *) as_dir=$as_dir/ ;;
6665 esac
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 AR=$ac_cv_prog_AR
6679 if test -n "$AR"; then
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6681 printf "%s\n" "$AR" >&6; }
6682 else
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 printf "%s\n" "no" >&6; }
6685 fi
6686
6687
6688 test -n "$AR" && break
6689 done
6690 fi
6691 if test -z "$AR"; then
6692 ac_ct_AR=$AR
6693 for ac_prog in ar
6694 do
6695 # Extract the first word of "$ac_prog", so it can be a program name with args.
6696 set dummy $ac_prog; ac_word=$2
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 printf %s "checking for $ac_word... " >&6; }
6699 if test ${ac_cv_prog_ac_ct_AR+y}
6700 then :
6701 printf %s "(cached) " >&6
6702 else $as_nop
6703 if test -n "$ac_ct_AR"; then
6704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709 IFS=$as_save_IFS
6710 case $as_dir in #(((
6711 '') as_dir=./ ;;
6712 */) ;;
6713 *) as_dir=$as_dir/ ;;
6714 esac
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_ac_ct_AR="$ac_prog"
6718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6728 if test -n "$ac_ct_AR"; then
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6730 printf "%s\n" "$ac_ct_AR" >&6; }
6731 else
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 printf "%s\n" "no" >&6; }
6734 fi
6735
6736
6737 test -n "$ac_ct_AR" && break
6738 done
6739
6740 if test "x$ac_ct_AR" = x; then
6741 AR="false"
6742 else
6743 case $cross_compiling:$ac_tool_warned in
6744 yes:)
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747 ac_tool_warned=yes ;;
6748 esac
6749 AR=$ac_ct_AR
6750 fi
6751 fi
6752
6753 : ${AR=ar}
6754
6755
6756
6757
6758
6759
6760 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6761 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6762 # higher priority because thats what people were doing historically (setting
6763 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6764 # variable obsoleted/removed.
6765
6766 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6767 lt_ar_flags=$AR_FLAGS
6768
6769
6770
6771
6772
6773
6774 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6775 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6776
6777
6778
6779
6780
6781
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6783 printf %s "checking for archiver @FILE support... " >&6; }
6784 if test ${lt_cv_ar_at_file+y}
6785 then :
6786 printf %s "(cached) " >&6
6787 else $as_nop
6788 lt_cv_ar_at_file=no
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791
6792 int
6793 main (void)
6794 {
6795
6796 ;
6797 return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_compile "$LINENO"
6801 then :
6802 echo conftest.$ac_objext > conftest.lst
6803 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6805 (eval $lt_ar_try) 2>&5
6806 ac_status=$?
6807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6808 test $ac_status = 0; }
6809 if test 0 -eq "$ac_status"; then
6810 # Ensure the archiver fails upon bogus file names.
6811 rm -f conftest.$ac_objext libconftest.a
6812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6813 (eval $lt_ar_try) 2>&5
6814 ac_status=$?
6815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6816 test $ac_status = 0; }
6817 if test 0 -ne "$ac_status"; then
6818 lt_cv_ar_at_file=@
6819 fi
6820 fi
6821 rm -f conftest.* libconftest.a
6822
6823 fi
6824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6825
6826 fi
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6828 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6829
6830 if test no = "$lt_cv_ar_at_file"; then
6831 archiver_list_spec=
6832 else
6833 archiver_list_spec=$lt_cv_ar_at_file
6834 fi
6835
6836
6837
6838
6839
6840
6841
6842 if test -n "$ac_tool_prefix"; then
6843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6844 set dummy ${ac_tool_prefix}strip; ac_word=$2
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 printf %s "checking for $ac_word... " >&6; }
6847 if test ${ac_cv_prog_STRIP+y}
6848 then :
6849 printf %s "(cached) " >&6
6850 else $as_nop
6851 if test -n "$STRIP"; then
6852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857 IFS=$as_save_IFS
6858 case $as_dir in #(((
6859 '') as_dir=./ ;;
6860 */) ;;
6861 *) as_dir=$as_dir/ ;;
6862 esac
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6867 break 2
6868 fi
6869 done
6870 done
6871 IFS=$as_save_IFS
6872
6873 fi
6874 fi
6875 STRIP=$ac_cv_prog_STRIP
6876 if test -n "$STRIP"; then
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6878 printf "%s\n" "$STRIP" >&6; }
6879 else
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 printf "%s\n" "no" >&6; }
6882 fi
6883
6884
6885 fi
6886 if test -z "$ac_cv_prog_STRIP"; then
6887 ac_ct_STRIP=$STRIP
6888 # Extract the first word of "strip", so it can be a program name with args.
6889 set dummy strip; ac_word=$2
6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 printf %s "checking for $ac_word... " >&6; }
6892 if test ${ac_cv_prog_ac_ct_STRIP+y}
6893 then :
6894 printf %s "(cached) " >&6
6895 else $as_nop
6896 if test -n "$ac_ct_STRIP"; then
6897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902 IFS=$as_save_IFS
6903 case $as_dir in #(((
6904 '') as_dir=./ ;;
6905 */) ;;
6906 *) as_dir=$as_dir/ ;;
6907 esac
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_ac_ct_STRIP="strip"
6911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914 done
6915 done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6921 if test -n "$ac_ct_STRIP"; then
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6923 printf "%s\n" "$ac_ct_STRIP" >&6; }
6924 else
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 printf "%s\n" "no" >&6; }
6927 fi
6928
6929 if test "x$ac_ct_STRIP" = x; then
6930 STRIP=":"
6931 else
6932 case $cross_compiling:$ac_tool_warned in
6933 yes:)
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6936 ac_tool_warned=yes ;;
6937 esac
6938 STRIP=$ac_ct_STRIP
6939 fi
6940 else
6941 STRIP="$ac_cv_prog_STRIP"
6942 fi
6943
6944 test -z "$STRIP" && STRIP=:
6945
6946
6947
6948
6949
6950
6951 if test -n "$ac_tool_prefix"; then
6952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6953 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 printf %s "checking for $ac_word... " >&6; }
6956 if test ${ac_cv_prog_RANLIB+y}
6957 then :
6958 printf %s "(cached) " >&6
6959 else $as_nop
6960 if test -n "$RANLIB"; then
6961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966 IFS=$as_save_IFS
6967 case $as_dir in #(((
6968 '') as_dir=./ ;;
6969 */) ;;
6970 *) as_dir=$as_dir/ ;;
6971 esac
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6974 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978 done
6979 done
6980 IFS=$as_save_IFS
6981
6982 fi
6983 fi
6984 RANLIB=$ac_cv_prog_RANLIB
6985 if test -n "$RANLIB"; then
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6987 printf "%s\n" "$RANLIB" >&6; }
6988 else
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 printf "%s\n" "no" >&6; }
6991 fi
6992
6993
6994 fi
6995 if test -z "$ac_cv_prog_RANLIB"; then
6996 ac_ct_RANLIB=$RANLIB
6997 # Extract the first word of "ranlib", so it can be a program name with args.
6998 set dummy ranlib; ac_word=$2
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 printf %s "checking for $ac_word... " >&6; }
7001 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7002 then :
7003 printf %s "(cached) " >&6
7004 else $as_nop
7005 if test -n "$ac_ct_RANLIB"; then
7006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011 IFS=$as_save_IFS
7012 case $as_dir in #(((
7013 '') as_dir=./ ;;
7014 */) ;;
7015 *) as_dir=$as_dir/ ;;
7016 esac
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7019 ac_cv_prog_ac_ct_RANLIB="ranlib"
7020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023 done
7024 done
7025 IFS=$as_save_IFS
7026
7027 fi
7028 fi
7029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7030 if test -n "$ac_ct_RANLIB"; then
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7032 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7033 else
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 printf "%s\n" "no" >&6; }
7036 fi
7037
7038 if test "x$ac_ct_RANLIB" = x; then
7039 RANLIB=":"
7040 else
7041 case $cross_compiling:$ac_tool_warned in
7042 yes:)
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045 ac_tool_warned=yes ;;
7046 esac
7047 RANLIB=$ac_ct_RANLIB
7048 fi
7049 else
7050 RANLIB="$ac_cv_prog_RANLIB"
7051 fi
7052
7053 test -z "$RANLIB" && RANLIB=:
7054
7055
7056
7057
7058
7059
7060 # Determine commands to create old-style static archives.
7061 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7062 old_postinstall_cmds='chmod 644 $oldlib'
7063 old_postuninstall_cmds=
7064
7065 if test -n "$RANLIB"; then
7066 case $host_os in
7067 bitrig* | openbsd*)
7068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7069 ;;
7070 *)
7071 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7072 ;;
7073 esac
7074 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7075 fi
7076
7077 case $host_os in
7078 darwin*)
7079 lock_old_archive_extraction=yes ;;
7080 *)
7081 lock_old_archive_extraction=no ;;
7082 esac
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122 # If no C compiler was specified, use CC.
7123 LTCC=${LTCC-"$CC"}
7124
7125 # If no C compiler flags were specified, use CFLAGS.
7126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7127
7128 # Allow CC to be a program name with arguments.
7129 compiler=$CC
7130
7131
7132 # Check for command to grab the raw symbol name followed by C symbol from nm.
7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7134 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7135 if test ${lt_cv_sys_global_symbol_pipe+y}
7136 then :
7137 printf %s "(cached) " >&6
7138 else $as_nop
7139
7140 # These are sane defaults that work on at least a few old systems.
7141 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7142
7143 # Character class describing NM global symbol codes.
7144 symcode='[BCDEGRST]'
7145
7146 # Regexp to match symbols that can be accessed directly from C.
7147 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7148
7149 # Define system-specific variables.
7150 case $host_os in
7151 aix*)
7152 symcode='[BCDT]'
7153 ;;
7154 cygwin* | mingw* | pw32* | cegcc*)
7155 symcode='[ABCDGISTW]'
7156 ;;
7157 hpux*)
7158 if test ia64 = "$host_cpu"; then
7159 symcode='[ABCDEGRST]'
7160 fi
7161 ;;
7162 irix* | nonstopux*)
7163 symcode='[BCDEGRST]'
7164 ;;
7165 osf*)
7166 symcode='[BCDEGQRST]'
7167 ;;
7168 solaris*)
7169 symcode='[BDRT]'
7170 ;;
7171 sco3.2v5*)
7172 symcode='[DT]'
7173 ;;
7174 sysv4.2uw2*)
7175 symcode='[DT]'
7176 ;;
7177 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7178 symcode='[ABDT]'
7179 ;;
7180 sysv4)
7181 symcode='[DFNSTU]'
7182 ;;
7183 esac
7184
7185 # If we're using GNU nm, then use its standard symbol codes.
7186 case `$NM -V 2>&1` in
7187 *GNU* | *'with BFD'*)
7188 symcode='[ABCDGIRSTW]' ;;
7189 esac
7190
7191 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7192 # Gets list of data symbols to import.
7193 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7194 # Adjust the below global symbol transforms to fixup imported variables.
7195 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7196 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7197 lt_c_name_lib_hook="\
7198 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7199 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7200 else
7201 # Disable hooks by default.
7202 lt_cv_sys_global_symbol_to_import=
7203 lt_cdecl_hook=
7204 lt_c_name_hook=
7205 lt_c_name_lib_hook=
7206 fi
7207
7208 # Transform an extracted symbol line into a proper C declaration.
7209 # Some systems (esp. on ia64) link data and code symbols differently,
7210 # so use this general approach.
7211 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7212 $lt_cdecl_hook\
7213 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7214 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7215
7216 # Transform an extracted symbol line into symbol name and symbol address
7217 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7218 $lt_c_name_hook\
7219 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7220 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7221
7222 # Transform an extracted symbol line into symbol name with lib prefix and
7223 # symbol address.
7224 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7225 $lt_c_name_lib_hook\
7226 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7227 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7228 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7229
7230 # Handle CRLF in mingw tool chain
7231 opt_cr=
7232 case $build_os in
7233 mingw*)
7234 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7235 ;;
7236 esac
7237
7238 # Try without a prefix underscore, then with it.
7239 for ac_symprfx in "" "_"; do
7240
7241 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7242 symxfrm="\\1 $ac_symprfx\\2 \\2"
7243
7244 # Write the raw and C identifiers.
7245 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7246 # Fake it for dumpbin and say T for any non-static function,
7247 # D for any global variable and I for any imported variable.
7248 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7249 # which start with @ or ?.
7250 lt_cv_sys_global_symbol_pipe="$AWK '"\
7251 " {last_section=section; section=\$ 3};"\
7252 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7253 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7254 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7255 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7256 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7257 " \$ 0!~/External *\|/{next};"\
7258 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7259 " {if(hide[section]) next};"\
7260 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7261 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7262 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7263 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7264 " ' prfx=^$ac_symprfx"
7265 else
7266 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7267 fi
7268 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7269
7270 # Check to see that the pipe works correctly.
7271 pipe_works=no
7272
7273 rm -f conftest*
7274 cat > conftest.$ac_ext <<_LT_EOF
7275 #ifdef __cplusplus
7276 extern "C" {
7277 #endif
7278 char nm_test_var;
7279 void nm_test_func(void);
7280 void nm_test_func(void){}
7281 #ifdef __cplusplus
7282 }
7283 #endif
7284 int main(){nm_test_var='a';nm_test_func();return(0);}
7285 _LT_EOF
7286
7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288 (eval $ac_compile) 2>&5
7289 ac_status=$?
7290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; }; then
7292 # Now try to grab the symbols.
7293 nlist=conftest.nm
7294 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7295 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7296 # Try sorting and uniquifying the output.
7297 if sort "$nlist" | uniq > "$nlist"T; then
7298 mv -f "$nlist"T "$nlist"
7299 else
7300 rm -f "$nlist"T
7301 fi
7302
7303 # Make sure that we snagged all the symbols we need.
7304 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7305 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7306 cat <<_LT_EOF > conftest.$ac_ext
7307 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7308 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7309 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7310 relocations are performed -- see ld's documentation on pseudo-relocs. */
7311 # define LT_DLSYM_CONST
7312 #elif defined __osf__
7313 /* This system does not cope well with relocations in const data. */
7314 # define LT_DLSYM_CONST
7315 #else
7316 # define LT_DLSYM_CONST const
7317 #endif
7318
7319 #ifdef __cplusplus
7320 extern "C" {
7321 #endif
7322
7323 _LT_EOF
7324 # Now generate the symbol file.
7325 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7326
7327 cat <<_LT_EOF >> conftest.$ac_ext
7328
7329 /* The mapping between symbol names and symbols. */
7330 LT_DLSYM_CONST struct {
7331 const char *name;
7332 void *address;
7333 }
7334 lt__PROGRAM__LTX_preloaded_symbols[] =
7335 {
7336 { "@PROGRAM@", (void *) 0 },
7337 _LT_EOF
7338 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7339 cat <<\_LT_EOF >> conftest.$ac_ext
7340 {0, (void *) 0}
7341 };
7342
7343 /* This works around a problem in FreeBSD linker */
7344 #ifdef FREEBSD_WORKAROUND
7345 static const void *lt_preloaded_setup() {
7346 return lt__PROGRAM__LTX_preloaded_symbols;
7347 }
7348 #endif
7349
7350 #ifdef __cplusplus
7351 }
7352 #endif
7353 _LT_EOF
7354 # Now try linking the two files.
7355 mv conftest.$ac_objext conftstm.$ac_objext
7356 lt_globsym_save_LIBS=$LIBS
7357 lt_globsym_save_CFLAGS=$CFLAGS
7358 LIBS=conftstm.$ac_objext
7359 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7361 (eval $ac_link) 2>&5
7362 ac_status=$?
7363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7364 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7365 pipe_works=yes
7366 fi
7367 LIBS=$lt_globsym_save_LIBS
7368 CFLAGS=$lt_globsym_save_CFLAGS
7369 else
7370 echo "cannot find nm_test_func in $nlist" >&5
7371 fi
7372 else
7373 echo "cannot find nm_test_var in $nlist" >&5
7374 fi
7375 else
7376 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7377 fi
7378 else
7379 echo "$progname: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7381 fi
7382 rm -rf conftest* conftst*
7383
7384 # Do not use the global_symbol_pipe unless it works.
7385 if test yes = "$pipe_works"; then
7386 break
7387 else
7388 lt_cv_sys_global_symbol_pipe=
7389 fi
7390 done
7391
7392 fi
7393
7394 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7395 lt_cv_sys_global_symbol_to_cdecl=
7396 fi
7397 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7399 printf "%s\n" "failed" >&6; }
7400 else
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7402 printf "%s\n" "ok" >&6; }
7403 fi
7404
7405 # Response file support.
7406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7407 nm_file_list_spec='@'
7408 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7409 nm_file_list_spec='@'
7410 fi
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7449 printf %s "checking for sysroot... " >&6; }
7450
7451 # Check whether --with-sysroot was given.
7452 if test ${with_sysroot+y}
7453 then :
7454 withval=$with_sysroot;
7455 else $as_nop
7456 with_sysroot=no
7457 fi
7458
7459
7460 lt_sysroot=
7461 case $with_sysroot in #(
7462 yes)
7463 if test yes = "$GCC"; then
7464 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7465 fi
7466 ;; #(
7467 /*)
7468 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7469 ;; #(
7470 no|'')
7471 ;; #(
7472 *)
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7474 printf "%s\n" "$with_sysroot" >&6; }
7475 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7476 ;;
7477 esac
7478
7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7480 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7481
7482
7483
7484
7485
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7487 printf %s "checking for a working dd... " >&6; }
7488 if test ${ac_cv_path_lt_DD+y}
7489 then :
7490 printf %s "(cached) " >&6
7491 else $as_nop
7492 printf 0123456789abcdef0123456789abcdef >conftest.i
7493 cat conftest.i conftest.i >conftest2.i
7494 : ${lt_DD:=$DD}
7495 if test -z "$lt_DD"; then
7496 ac_path_lt_DD_found=false
7497 # Loop through the user's path and test for each of PROGNAME-LIST
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501 IFS=$as_save_IFS
7502 case $as_dir in #(((
7503 '') as_dir=./ ;;
7504 */) ;;
7505 *) as_dir=$as_dir/ ;;
7506 esac
7507 for ac_prog in dd
7508 do
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7511 as_fn_executable_p "$ac_path_lt_DD" || continue
7512 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7513 cmp -s conftest.i conftest.out \
7514 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7515 fi
7516 $ac_path_lt_DD_found && break 3
7517 done
7518 done
7519 done
7520 IFS=$as_save_IFS
7521 if test -z "$ac_cv_path_lt_DD"; then
7522 :
7523 fi
7524 else
7525 ac_cv_path_lt_DD=$lt_DD
7526 fi
7527
7528 rm -f conftest.i conftest2.i conftest.out
7529 fi
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7531 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7532
7533
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7535 printf %s "checking how to truncate binary pipes... " >&6; }
7536 if test ${lt_cv_truncate_bin+y}
7537 then :
7538 printf %s "(cached) " >&6
7539 else $as_nop
7540 printf 0123456789abcdef0123456789abcdef >conftest.i
7541 cat conftest.i conftest.i >conftest2.i
7542 lt_cv_truncate_bin=
7543 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7544 cmp -s conftest.i conftest.out \
7545 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7546 fi
7547 rm -f conftest.i conftest2.i conftest.out
7548 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7549 fi
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7551 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7552
7553
7554
7555
7556
7557
7558
7559 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7560 func_cc_basename ()
7561 {
7562 for cc_temp in $*""; do
7563 case $cc_temp in
7564 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7565 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7566 \-*) ;;
7567 *) break;;
7568 esac
7569 done
7570 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7571 }
7572
7573 # Check whether --enable-libtool-lock was given.
7574 if test ${enable_libtool_lock+y}
7575 then :
7576 enableval=$enable_libtool_lock;
7577 fi
7578
7579 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7580
7581 # Some flags need to be propagated to the compiler or linker for good
7582 # libtool support.
7583 case $host in
7584 ia64-*-hpux*)
7585 # Find out what ABI is being produced by ac_compile, and set mode
7586 # options accordingly.
7587 echo 'int i;' > conftest.$ac_ext
7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7589 (eval $ac_compile) 2>&5
7590 ac_status=$?
7591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592 test $ac_status = 0; }; then
7593 case `$FILECMD conftest.$ac_objext` in
7594 *ELF-32*)
7595 HPUX_IA64_MODE=32
7596 ;;
7597 *ELF-64*)
7598 HPUX_IA64_MODE=64
7599 ;;
7600 esac
7601 fi
7602 rm -rf conftest*
7603 ;;
7604 *-*-irix6*)
7605 # Find out what ABI is being produced by ac_compile, and set linker
7606 # options accordingly.
7607 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7609 (eval $ac_compile) 2>&5
7610 ac_status=$?
7611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7612 test $ac_status = 0; }; then
7613 if test yes = "$lt_cv_prog_gnu_ld"; then
7614 case `$FILECMD conftest.$ac_objext` in
7615 *32-bit*)
7616 LD="${LD-ld} -melf32bsmip"
7617 ;;
7618 *N32*)
7619 LD="${LD-ld} -melf32bmipn32"
7620 ;;
7621 *64-bit*)
7622 LD="${LD-ld} -melf64bmip"
7623 ;;
7624 esac
7625 else
7626 case `$FILECMD conftest.$ac_objext` in
7627 *32-bit*)
7628 LD="${LD-ld} -32"
7629 ;;
7630 *N32*)
7631 LD="${LD-ld} -n32"
7632 ;;
7633 *64-bit*)
7634 LD="${LD-ld} -64"
7635 ;;
7636 esac
7637 fi
7638 fi
7639 rm -rf conftest*
7640 ;;
7641
7642 mips64*-*linux*)
7643 # Find out what ABI is being produced by ac_compile, and set linker
7644 # options accordingly.
7645 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7647 (eval $ac_compile) 2>&5
7648 ac_status=$?
7649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7650 test $ac_status = 0; }; then
7651 emul=elf
7652 case `$FILECMD conftest.$ac_objext` in
7653 *32-bit*)
7654 emul="${emul}32"
7655 ;;
7656 *64-bit*)
7657 emul="${emul}64"
7658 ;;
7659 esac
7660 case `$FILECMD conftest.$ac_objext` in
7661 *MSB*)
7662 emul="${emul}btsmip"
7663 ;;
7664 *LSB*)
7665 emul="${emul}ltsmip"
7666 ;;
7667 esac
7668 case `$FILECMD conftest.$ac_objext` in
7669 *N32*)
7670 emul="${emul}n32"
7671 ;;
7672 esac
7673 LD="${LD-ld} -m $emul"
7674 fi
7675 rm -rf conftest*
7676 ;;
7677
7678 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7679 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7680 # Find out what ABI is being produced by ac_compile, and set linker
7681 # options accordingly. Note that the listed cases only cover the
7682 # situations where additional linker options are needed (such as when
7683 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7684 # vice versa); the common cases where no linker options are needed do
7685 # not appear in the list.
7686 echo 'int i;' > conftest.$ac_ext
7687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7688 (eval $ac_compile) 2>&5
7689 ac_status=$?
7690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7691 test $ac_status = 0; }; then
7692 case `$FILECMD conftest.o` in
7693 *32-bit*)
7694 case $host in
7695 x86_64-*kfreebsd*-gnu)
7696 LD="${LD-ld} -m elf_i386_fbsd"
7697 ;;
7698 x86_64-*linux*)
7699 case `$FILECMD conftest.o` in
7700 *x86-64*)
7701 LD="${LD-ld} -m elf32_x86_64"
7702 ;;
7703 *)
7704 LD="${LD-ld} -m elf_i386"
7705 ;;
7706 esac
7707 ;;
7708 powerpc64le-*linux*)
7709 LD="${LD-ld} -m elf32lppclinux"
7710 ;;
7711 powerpc64-*linux*)
7712 LD="${LD-ld} -m elf32ppclinux"
7713 ;;
7714 s390x-*linux*)
7715 LD="${LD-ld} -m elf_s390"
7716 ;;
7717 sparc64-*linux*)
7718 LD="${LD-ld} -m elf32_sparc"
7719 ;;
7720 esac
7721 ;;
7722 *64-bit*)
7723 case $host in
7724 x86_64-*kfreebsd*-gnu)
7725 LD="${LD-ld} -m elf_x86_64_fbsd"
7726 ;;
7727 x86_64-*linux*)
7728 LD="${LD-ld} -m elf_x86_64"
7729 ;;
7730 powerpcle-*linux*)
7731 LD="${LD-ld} -m elf64lppc"
7732 ;;
7733 powerpc-*linux*)
7734 LD="${LD-ld} -m elf64ppc"
7735 ;;
7736 s390*-*linux*|s390*-*tpf*)
7737 LD="${LD-ld} -m elf64_s390"
7738 ;;
7739 sparc*-*linux*)
7740 LD="${LD-ld} -m elf64_sparc"
7741 ;;
7742 esac
7743 ;;
7744 esac
7745 fi
7746 rm -rf conftest*
7747 ;;
7748
7749 *-*-sco3.2v5*)
7750 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7751 SAVE_CFLAGS=$CFLAGS
7752 CFLAGS="$CFLAGS -belf"
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7754 printf %s "checking whether the C compiler needs -belf... " >&6; }
7755 if test ${lt_cv_cc_needs_belf+y}
7756 then :
7757 printf %s "(cached) " >&6
7758 else $as_nop
7759 ac_ext=c
7760 ac_cpp='$CPP $CPPFLAGS'
7761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767
7768 int
7769 main (void)
7770 {
7771
7772 ;
7773 return 0;
7774 }
7775 _ACEOF
7776 if ac_fn_c_try_link "$LINENO"
7777 then :
7778 lt_cv_cc_needs_belf=yes
7779 else $as_nop
7780 lt_cv_cc_needs_belf=no
7781 fi
7782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7783 conftest$ac_exeext conftest.$ac_ext
7784 ac_ext=c
7785 ac_cpp='$CPP $CPPFLAGS'
7786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789
7790 fi
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7792 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7793 if test yes != "$lt_cv_cc_needs_belf"; then
7794 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7795 CFLAGS=$SAVE_CFLAGS
7796 fi
7797 ;;
7798 *-*solaris*)
7799 # Find out what ABI is being produced by ac_compile, and set linker
7800 # options accordingly.
7801 echo 'int i;' > conftest.$ac_ext
7802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7803 (eval $ac_compile) 2>&5
7804 ac_status=$?
7805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7806 test $ac_status = 0; }; then
7807 case `$FILECMD conftest.o` in
7808 *64-bit*)
7809 case $lt_cv_prog_gnu_ld in
7810 yes*)
7811 case $host in
7812 i?86-*-solaris*|x86_64-*-solaris*)
7813 LD="${LD-ld} -m elf_x86_64"
7814 ;;
7815 sparc*-*-solaris*)
7816 LD="${LD-ld} -m elf64_sparc"
7817 ;;
7818 esac
7819 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7820 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7821 LD=${LD-ld}_sol2
7822 fi
7823 ;;
7824 *)
7825 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7826 LD="${LD-ld} -64"
7827 fi
7828 ;;
7829 esac
7830 ;;
7831 esac
7832 fi
7833 rm -rf conftest*
7834 ;;
7835 esac
7836
7837 need_locks=$enable_libtool_lock
7838
7839 if test -n "$ac_tool_prefix"; then
7840 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7841 set dummy ${ac_tool_prefix}mt; ac_word=$2
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 printf %s "checking for $ac_word... " >&6; }
7844 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7845 then :
7846 printf %s "(cached) " >&6
7847 else $as_nop
7848 if test -n "$MANIFEST_TOOL"; then
7849 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 case $as_dir in #(((
7856 '') as_dir=./ ;;
7857 */) ;;
7858 *) as_dir=$as_dir/ ;;
7859 esac
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870 fi
7871 fi
7872 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7873 if test -n "$MANIFEST_TOOL"; then
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7875 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7876 else
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 printf "%s\n" "no" >&6; }
7879 fi
7880
7881
7882 fi
7883 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7884 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7885 # Extract the first word of "mt", so it can be a program name with args.
7886 set dummy mt; ac_word=$2
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 printf %s "checking for $ac_word... " >&6; }
7889 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7890 then :
7891 printf %s "(cached) " >&6
7892 else $as_nop
7893 if test -n "$ac_ct_MANIFEST_TOOL"; then
7894 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899 IFS=$as_save_IFS
7900 case $as_dir in #(((
7901 '') as_dir=./ ;;
7902 */) ;;
7903 *) as_dir=$as_dir/ ;;
7904 esac
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7907 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7909 break 2
7910 fi
7911 done
7912 done
7913 IFS=$as_save_IFS
7914
7915 fi
7916 fi
7917 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7918 if test -n "$ac_ct_MANIFEST_TOOL"; then
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7920 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7921 else
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 printf "%s\n" "no" >&6; }
7924 fi
7925
7926 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7927 MANIFEST_TOOL=":"
7928 else
7929 case $cross_compiling:$ac_tool_warned in
7930 yes:)
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7933 ac_tool_warned=yes ;;
7934 esac
7935 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7936 fi
7937 else
7938 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7939 fi
7940
7941 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7943 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7944 if test ${lt_cv_path_mainfest_tool+y}
7945 then :
7946 printf %s "(cached) " >&6
7947 else $as_nop
7948 lt_cv_path_mainfest_tool=no
7949 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7950 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7951 cat conftest.err >&5
7952 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7953 lt_cv_path_mainfest_tool=yes
7954 fi
7955 rm -f conftest*
7956 fi
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7958 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7959 if test yes != "$lt_cv_path_mainfest_tool"; then
7960 MANIFEST_TOOL=:
7961 fi
7962
7963
7964
7965
7966
7967
7968 case $host_os in
7969 rhapsody* | darwin*)
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 printf %s "checking for $ac_word... " >&6; }
7975 if test ${ac_cv_prog_DSYMUTIL+y}
7976 then :
7977 printf %s "(cached) " >&6
7978 else $as_nop
7979 if test -n "$DSYMUTIL"; then
7980 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985 IFS=$as_save_IFS
7986 case $as_dir in #(((
7987 '') as_dir=./ ;;
7988 */) ;;
7989 *) as_dir=$as_dir/ ;;
7990 esac
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7993 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7995 break 2
7996 fi
7997 done
7998 done
7999 IFS=$as_save_IFS
8000
8001 fi
8002 fi
8003 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8004 if test -n "$DSYMUTIL"; then
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8006 printf "%s\n" "$DSYMUTIL" >&6; }
8007 else
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 printf "%s\n" "no" >&6; }
8010 fi
8011
8012
8013 fi
8014 if test -z "$ac_cv_prog_DSYMUTIL"; then
8015 ac_ct_DSYMUTIL=$DSYMUTIL
8016 # Extract the first word of "dsymutil", so it can be a program name with args.
8017 set dummy dsymutil; ac_word=$2
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 printf %s "checking for $ac_word... " >&6; }
8020 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8021 then :
8022 printf %s "(cached) " >&6
8023 else $as_nop
8024 if test -n "$ac_ct_DSYMUTIL"; then
8025 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8026 else
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8029 do
8030 IFS=$as_save_IFS
8031 case $as_dir in #(((
8032 '') as_dir=./ ;;
8033 */) ;;
8034 *) as_dir=$as_dir/ ;;
8035 esac
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042 done
8043 done
8044 IFS=$as_save_IFS
8045
8046 fi
8047 fi
8048 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8049 if test -n "$ac_ct_DSYMUTIL"; then
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8051 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8052 else
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 printf "%s\n" "no" >&6; }
8055 fi
8056
8057 if test "x$ac_ct_DSYMUTIL" = x; then
8058 DSYMUTIL=":"
8059 else
8060 case $cross_compiling:$ac_tool_warned in
8061 yes:)
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned=yes ;;
8065 esac
8066 DSYMUTIL=$ac_ct_DSYMUTIL
8067 fi
8068 else
8069 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8070 fi
8071
8072 if test -n "$ac_tool_prefix"; then
8073 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 printf %s "checking for $ac_word... " >&6; }
8077 if test ${ac_cv_prog_NMEDIT+y}
8078 then :
8079 printf %s "(cached) " >&6
8080 else $as_nop
8081 if test -n "$NMEDIT"; then
8082 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087 IFS=$as_save_IFS
8088 case $as_dir in #(((
8089 '') as_dir=./ ;;
8090 */) ;;
8091 *) as_dir=$as_dir/ ;;
8092 esac
8093 for ac_exec_ext in '' $ac_executable_extensions; do
8094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8095 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8097 break 2
8098 fi
8099 done
8100 done
8101 IFS=$as_save_IFS
8102
8103 fi
8104 fi
8105 NMEDIT=$ac_cv_prog_NMEDIT
8106 if test -n "$NMEDIT"; then
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8108 printf "%s\n" "$NMEDIT" >&6; }
8109 else
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 printf "%s\n" "no" >&6; }
8112 fi
8113
8114
8115 fi
8116 if test -z "$ac_cv_prog_NMEDIT"; then
8117 ac_ct_NMEDIT=$NMEDIT
8118 # Extract the first word of "nmedit", so it can be a program name with args.
8119 set dummy nmedit; ac_word=$2
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 printf %s "checking for $ac_word... " >&6; }
8122 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8123 then :
8124 printf %s "(cached) " >&6
8125 else $as_nop
8126 if test -n "$ac_ct_NMEDIT"; then
8127 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132 IFS=$as_save_IFS
8133 case $as_dir in #(((
8134 '') as_dir=./ ;;
8135 */) ;;
8136 *) as_dir=$as_dir/ ;;
8137 esac
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8142 break 2
8143 fi
8144 done
8145 done
8146 IFS=$as_save_IFS
8147
8148 fi
8149 fi
8150 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8151 if test -n "$ac_ct_NMEDIT"; then
8152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8153 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8154 else
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 printf "%s\n" "no" >&6; }
8157 fi
8158
8159 if test "x$ac_ct_NMEDIT" = x; then
8160 NMEDIT=":"
8161 else
8162 case $cross_compiling:$ac_tool_warned in
8163 yes:)
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8165 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8166 ac_tool_warned=yes ;;
8167 esac
8168 NMEDIT=$ac_ct_NMEDIT
8169 fi
8170 else
8171 NMEDIT="$ac_cv_prog_NMEDIT"
8172 fi
8173
8174 if test -n "$ac_tool_prefix"; then
8175 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8176 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178 printf %s "checking for $ac_word... " >&6; }
8179 if test ${ac_cv_prog_LIPO+y}
8180 then :
8181 printf %s "(cached) " >&6
8182 else $as_nop
8183 if test -n "$LIPO"; then
8184 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8185 else
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189 IFS=$as_save_IFS
8190 case $as_dir in #(((
8191 '') as_dir=./ ;;
8192 */) ;;
8193 *) as_dir=$as_dir/ ;;
8194 esac
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8197 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8199 break 2
8200 fi
8201 done
8202 done
8203 IFS=$as_save_IFS
8204
8205 fi
8206 fi
8207 LIPO=$ac_cv_prog_LIPO
8208 if test -n "$LIPO"; then
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8210 printf "%s\n" "$LIPO" >&6; }
8211 else
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 printf "%s\n" "no" >&6; }
8214 fi
8215
8216
8217 fi
8218 if test -z "$ac_cv_prog_LIPO"; then
8219 ac_ct_LIPO=$LIPO
8220 # Extract the first word of "lipo", so it can be a program name with args.
8221 set dummy lipo; ac_word=$2
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223 printf %s "checking for $ac_word... " >&6; }
8224 if test ${ac_cv_prog_ac_ct_LIPO+y}
8225 then :
8226 printf %s "(cached) " >&6
8227 else $as_nop
8228 if test -n "$ac_ct_LIPO"; then
8229 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8230 else
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8233 do
8234 IFS=$as_save_IFS
8235 case $as_dir in #(((
8236 '') as_dir=./ ;;
8237 */) ;;
8238 *) as_dir=$as_dir/ ;;
8239 esac
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8242 ac_cv_prog_ac_ct_LIPO="lipo"
8243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8244 break 2
8245 fi
8246 done
8247 done
8248 IFS=$as_save_IFS
8249
8250 fi
8251 fi
8252 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8253 if test -n "$ac_ct_LIPO"; then
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8255 printf "%s\n" "$ac_ct_LIPO" >&6; }
8256 else
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 printf "%s\n" "no" >&6; }
8259 fi
8260
8261 if test "x$ac_ct_LIPO" = x; then
8262 LIPO=":"
8263 else
8264 case $cross_compiling:$ac_tool_warned in
8265 yes:)
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8267 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8268 ac_tool_warned=yes ;;
8269 esac
8270 LIPO=$ac_ct_LIPO
8271 fi
8272 else
8273 LIPO="$ac_cv_prog_LIPO"
8274 fi
8275
8276 if test -n "$ac_tool_prefix"; then
8277 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8278 set dummy ${ac_tool_prefix}otool; ac_word=$2
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 printf %s "checking for $ac_word... " >&6; }
8281 if test ${ac_cv_prog_OTOOL+y}
8282 then :
8283 printf %s "(cached) " >&6
8284 else $as_nop
8285 if test -n "$OTOOL"; then
8286 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8287 else
8288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 for as_dir in $PATH
8290 do
8291 IFS=$as_save_IFS
8292 case $as_dir in #(((
8293 '') as_dir=./ ;;
8294 */) ;;
8295 *) as_dir=$as_dir/ ;;
8296 esac
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8299 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8301 break 2
8302 fi
8303 done
8304 done
8305 IFS=$as_save_IFS
8306
8307 fi
8308 fi
8309 OTOOL=$ac_cv_prog_OTOOL
8310 if test -n "$OTOOL"; then
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8312 printf "%s\n" "$OTOOL" >&6; }
8313 else
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 printf "%s\n" "no" >&6; }
8316 fi
8317
8318
8319 fi
8320 if test -z "$ac_cv_prog_OTOOL"; then
8321 ac_ct_OTOOL=$OTOOL
8322 # Extract the first word of "otool", so it can be a program name with args.
8323 set dummy otool; ac_word=$2
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 printf %s "checking for $ac_word... " >&6; }
8326 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8327 then :
8328 printf %s "(cached) " >&6
8329 else $as_nop
8330 if test -n "$ac_ct_OTOOL"; then
8331 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8332 else
8333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334 for as_dir in $PATH
8335 do
8336 IFS=$as_save_IFS
8337 case $as_dir in #(((
8338 '') as_dir=./ ;;
8339 */) ;;
8340 *) as_dir=$as_dir/ ;;
8341 esac
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8344 ac_cv_prog_ac_ct_OTOOL="otool"
8345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8346 break 2
8347 fi
8348 done
8349 done
8350 IFS=$as_save_IFS
8351
8352 fi
8353 fi
8354 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8355 if test -n "$ac_ct_OTOOL"; then
8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8357 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8358 else
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 printf "%s\n" "no" >&6; }
8361 fi
8362
8363 if test "x$ac_ct_OTOOL" = x; then
8364 OTOOL=":"
8365 else
8366 case $cross_compiling:$ac_tool_warned in
8367 yes:)
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8369 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8370 ac_tool_warned=yes ;;
8371 esac
8372 OTOOL=$ac_ct_OTOOL
8373 fi
8374 else
8375 OTOOL="$ac_cv_prog_OTOOL"
8376 fi
8377
8378 if test -n "$ac_tool_prefix"; then
8379 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8380 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 printf %s "checking for $ac_word... " >&6; }
8383 if test ${ac_cv_prog_OTOOL64+y}
8384 then :
8385 printf %s "(cached) " >&6
8386 else $as_nop
8387 if test -n "$OTOOL64"; then
8388 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8389 else
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8392 do
8393 IFS=$as_save_IFS
8394 case $as_dir in #(((
8395 '') as_dir=./ ;;
8396 */) ;;
8397 *) as_dir=$as_dir/ ;;
8398 esac
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405 done
8406 done
8407 IFS=$as_save_IFS
8408
8409 fi
8410 fi
8411 OTOOL64=$ac_cv_prog_OTOOL64
8412 if test -n "$OTOOL64"; then
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8414 printf "%s\n" "$OTOOL64" >&6; }
8415 else
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 printf "%s\n" "no" >&6; }
8418 fi
8419
8420
8421 fi
8422 if test -z "$ac_cv_prog_OTOOL64"; then
8423 ac_ct_OTOOL64=$OTOOL64
8424 # Extract the first word of "otool64", so it can be a program name with args.
8425 set dummy otool64; ac_word=$2
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427 printf %s "checking for $ac_word... " >&6; }
8428 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8429 then :
8430 printf %s "(cached) " >&6
8431 else $as_nop
8432 if test -n "$ac_ct_OTOOL64"; then
8433 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438 IFS=$as_save_IFS
8439 case $as_dir in #(((
8440 '') as_dir=./ ;;
8441 */) ;;
8442 *) as_dir=$as_dir/ ;;
8443 esac
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8446 ac_cv_prog_ac_ct_OTOOL64="otool64"
8447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
8450 done
8451 done
8452 IFS=$as_save_IFS
8453
8454 fi
8455 fi
8456 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8457 if test -n "$ac_ct_OTOOL64"; then
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8459 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8460 else
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 printf "%s\n" "no" >&6; }
8463 fi
8464
8465 if test "x$ac_ct_OTOOL64" = x; then
8466 OTOOL64=":"
8467 else
8468 case $cross_compiling:$ac_tool_warned in
8469 yes:)
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8471 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8472 ac_tool_warned=yes ;;
8473 esac
8474 OTOOL64=$ac_ct_OTOOL64
8475 fi
8476 else
8477 OTOOL64="$ac_cv_prog_OTOOL64"
8478 fi
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8507 printf %s "checking for -single_module linker flag... " >&6; }
8508 if test ${lt_cv_apple_cc_single_mod+y}
8509 then :
8510 printf %s "(cached) " >&6
8511 else $as_nop
8512 lt_cv_apple_cc_single_mod=no
8513 if test -z "$LT_MULTI_MODULE"; then
8514 # By default we will add the -single_module flag. You can override
8515 # by either setting the environment variable LT_MULTI_MODULE
8516 # non-empty at configure time, or by adding -multi_module to the
8517 # link flags.
8518 rm -rf libconftest.dylib*
8519 echo "int foo(void){return 1;}" > conftest.c
8520 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8521 -dynamiclib -Wl,-single_module conftest.c" >&5
8522 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8523 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8524 _lt_result=$?
8525 # If there is a non-empty error log, and "single_module"
8526 # appears in it, assume the flag caused a linker warning
8527 if test -s conftest.err && $GREP single_module conftest.err; then
8528 cat conftest.err >&5
8529 # Otherwise, if the output was created with a 0 exit code from
8530 # the compiler, it worked.
8531 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8532 lt_cv_apple_cc_single_mod=yes
8533 else
8534 cat conftest.err >&5
8535 fi
8536 rm -rf libconftest.dylib*
8537 rm -f conftest.*
8538 fi
8539 fi
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8541 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8542
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8544 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8545 if test ${lt_cv_ld_exported_symbols_list+y}
8546 then :
8547 printf %s "(cached) " >&6
8548 else $as_nop
8549 lt_cv_ld_exported_symbols_list=no
8550 save_LDFLAGS=$LDFLAGS
8551 echo "_main" > conftest.sym
8552 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8555
8556 int
8557 main (void)
8558 {
8559
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"
8565 then :
8566 lt_cv_ld_exported_symbols_list=yes
8567 else $as_nop
8568 lt_cv_ld_exported_symbols_list=no
8569 fi
8570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8571 conftest$ac_exeext conftest.$ac_ext
8572 LDFLAGS=$save_LDFLAGS
8573
8574 fi
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8576 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8577
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8579 printf %s "checking for -force_load linker flag... " >&6; }
8580 if test ${lt_cv_ld_force_load+y}
8581 then :
8582 printf %s "(cached) " >&6
8583 else $as_nop
8584 lt_cv_ld_force_load=no
8585 cat > conftest.c << _LT_EOF
8586 int forced_loaded() { return 2;}
8587 _LT_EOF
8588 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8589 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8590 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8591 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8592 echo "$RANLIB libconftest.a" >&5
8593 $RANLIB libconftest.a 2>&5
8594 cat > conftest.c << _LT_EOF
8595 int main() { return 0;}
8596 _LT_EOF
8597 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8598 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8599 _lt_result=$?
8600 if test -s conftest.err && $GREP force_load conftest.err; then
8601 cat conftest.err >&5
8602 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8603 lt_cv_ld_force_load=yes
8604 else
8605 cat conftest.err >&5
8606 fi
8607 rm -f conftest.err libconftest.a conftest conftest.c
8608 rm -rf conftest.dSYM
8609
8610 fi
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8612 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8613 case $host_os in
8614 rhapsody* | darwin1.[012])
8615 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8616 darwin1.*)
8617 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8618 darwin*)
8619 case $MACOSX_DEPLOYMENT_TARGET,$host in
8620 10.[012],*|,*powerpc*-darwin[5-8]*)
8621 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8622 *)
8623 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8624 esac
8625 ;;
8626 esac
8627 if test yes = "$lt_cv_apple_cc_single_mod"; then
8628 _lt_dar_single_mod='$single_module'
8629 fi
8630 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8631 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8632 else
8633 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8634 fi
8635 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8636 _lt_dsymutil='~$DSYMUTIL $lib || :'
8637 else
8638 _lt_dsymutil=
8639 fi
8640 ;;
8641 esac
8642
8643 # func_munge_path_list VARIABLE PATH
8644 # -----------------------------------
8645 # VARIABLE is name of variable containing _space_ separated list of
8646 # directories to be munged by the contents of PATH, which is string
8647 # having a format:
8648 # "DIR[:DIR]:"
8649 # string "DIR[ DIR]" will be prepended to VARIABLE
8650 # ":DIR[:DIR]"
8651 # string "DIR[ DIR]" will be appended to VARIABLE
8652 # "DIRP[:DIRP]::[DIRA:]DIRA"
8653 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8654 # "DIRA[ DIRA]" will be appended to VARIABLE
8655 # "DIR[:DIR]"
8656 # VARIABLE will be replaced by "DIR[ DIR]"
8657 func_munge_path_list ()
8658 {
8659 case x$2 in
8660 x)
8661 ;;
8662 *:)
8663 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8664 ;;
8665 x:*)
8666 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8667 ;;
8668 *::*)
8669 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8670 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8671 ;;
8672 *)
8673 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8674 ;;
8675 esac
8676 }
8677
8678 ac_header= ac_cache=
8679 for ac_item in $ac_header_c_list
8680 do
8681 if test $ac_cache; then
8682 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8683 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8684 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8685 fi
8686 ac_header= ac_cache=
8687 elif test $ac_header; then
8688 ac_cache=$ac_item
8689 else
8690 ac_header=$ac_item
8691 fi
8692 done
8693
8694
8695
8696
8697
8698
8699
8700
8701 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8702 then :
8703
8704 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8705
8706 fi
8707 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8708 "
8709 if test "x$ac_cv_header_dlfcn_h" = xyes
8710 then :
8711 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8712
8713 fi
8714
8715
8716
8717
8718
8719 # Set options
8720
8721
8722
8723 enable_dlopen=no
8724
8725
8726 enable_win32_dll=no
8727
8728
8729 # Check whether --enable-shared was given.
8730 if test ${enable_shared+y}
8731 then :
8732 enableval=$enable_shared; p=${PACKAGE-default}
8733 case $enableval in
8734 yes) enable_shared=yes ;;
8735 no) enable_shared=no ;;
8736 *)
8737 enable_shared=no
8738 # Look at the argument we got. We use all the common list separators.
8739 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8740 for pkg in $enableval; do
8741 IFS=$lt_save_ifs
8742 if test "X$pkg" = "X$p"; then
8743 enable_shared=yes
8744 fi
8745 done
8746 IFS=$lt_save_ifs
8747 ;;
8748 esac
8749 else $as_nop
8750 enable_shared=yes
8751 fi
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761 # Check whether --enable-static was given.
8762 if test ${enable_static+y}
8763 then :
8764 enableval=$enable_static; p=${PACKAGE-default}
8765 case $enableval in
8766 yes) enable_static=yes ;;
8767 no) enable_static=no ;;
8768 *)
8769 enable_static=no
8770 # Look at the argument we got. We use all the common list separators.
8771 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8772 for pkg in $enableval; do
8773 IFS=$lt_save_ifs
8774 if test "X$pkg" = "X$p"; then
8775 enable_static=yes
8776 fi
8777 done
8778 IFS=$lt_save_ifs
8779 ;;
8780 esac
8781 else $as_nop
8782 enable_static=yes
8783 fi
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794 # Check whether --with-pic was given.
8795 if test ${with_pic+y}
8796 then :
8797 withval=$with_pic; lt_p=${PACKAGE-default}
8798 case $withval in
8799 yes|no) pic_mode=$withval ;;
8800 *)
8801 pic_mode=default
8802 # Look at the argument we got. We use all the common list separators.
8803 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8804 for lt_pkg in $withval; do
8805 IFS=$lt_save_ifs
8806 if test "X$lt_pkg" = "X$lt_p"; then
8807 pic_mode=yes
8808 fi
8809 done
8810 IFS=$lt_save_ifs
8811 ;;
8812 esac
8813 else $as_nop
8814 pic_mode=default
8815 fi
8816
8817
8818
8819
8820
8821
8822
8823
8824 # Check whether --enable-fast-install was given.
8825 if test ${enable_fast_install+y}
8826 then :
8827 enableval=$enable_fast_install; p=${PACKAGE-default}
8828 case $enableval in
8829 yes) enable_fast_install=yes ;;
8830 no) enable_fast_install=no ;;
8831 *)
8832 enable_fast_install=no
8833 # Look at the argument we got. We use all the common list separators.
8834 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8835 for pkg in $enableval; do
8836 IFS=$lt_save_ifs
8837 if test "X$pkg" = "X$p"; then
8838 enable_fast_install=yes
8839 fi
8840 done
8841 IFS=$lt_save_ifs
8842 ;;
8843 esac
8844 else $as_nop
8845 enable_fast_install=yes
8846 fi
8847
8848
8849
8850
8851
8852
8853
8854
8855 shared_archive_member_spec=
8856 case $host,$enable_shared in
8857 power*-*-aix[5-9]*,yes)
8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8859 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8860
8861 # Check whether --with-aix-soname was given.
8862 if test ${with_aix_soname+y}
8863 then :
8864 withval=$with_aix_soname; case $withval in
8865 aix|svr4|both)
8866 ;;
8867 *)
8868 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8869 ;;
8870 esac
8871 lt_cv_with_aix_soname=$with_aix_soname
8872 else $as_nop
8873 if test ${lt_cv_with_aix_soname+y}
8874 then :
8875 printf %s "(cached) " >&6
8876 else $as_nop
8877 lt_cv_with_aix_soname=aix
8878 fi
8879
8880 with_aix_soname=$lt_cv_with_aix_soname
8881 fi
8882
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8884 printf "%s\n" "$with_aix_soname" >&6; }
8885 if test aix != "$with_aix_soname"; then
8886 # For the AIX way of multilib, we name the shared archive member
8887 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8888 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8889 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8890 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8891 if test 64 = "${OBJECT_MODE-32}"; then
8892 shared_archive_member_spec=shr_64
8893 else
8894 shared_archive_member_spec=shr
8895 fi
8896 fi
8897 ;;
8898 *)
8899 with_aix_soname=aix
8900 ;;
8901 esac
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912 # This can be used to rebuild libtool when needed
8913 LIBTOOL_DEPS=$ltmain
8914
8915 # Always use our own libtool.
8916 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947 test -z "$LN_S" && LN_S="ln -s"
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962 if test -n "${ZSH_VERSION+set}"; then
8963 setopt NO_GLOB_SUBST
8964 fi
8965
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8967 printf %s "checking for objdir... " >&6; }
8968 if test ${lt_cv_objdir+y}
8969 then :
8970 printf %s "(cached) " >&6
8971 else $as_nop
8972 rm -f .libs 2>/dev/null
8973 mkdir .libs 2>/dev/null
8974 if test -d .libs; then
8975 lt_cv_objdir=.libs
8976 else
8977 # MS-DOS does not allow filenames that begin with a dot.
8978 lt_cv_objdir=_libs
8979 fi
8980 rmdir .libs 2>/dev/null
8981 fi
8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8983 printf "%s\n" "$lt_cv_objdir" >&6; }
8984 objdir=$lt_cv_objdir
8985
8986
8987
8988
8989
8990 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8991
8992
8993
8994
8995 case $host_os in
8996 aix3*)
8997 # AIX sometimes has problems with the GCC collect2 program. For some
8998 # reason, if we set the COLLECT_NAMES environment variable, the problems
8999 # vanish in a puff of smoke.
9000 if test set != "${COLLECT_NAMES+set}"; then
9001 COLLECT_NAMES=
9002 export COLLECT_NAMES
9003 fi
9004 ;;
9005 esac
9006
9007 # Global variables:
9008 ofile=libtool
9009 can_build_shared=yes
9010
9011 # All known linkers require a '.a' archive for static linking (except MSVC and
9012 # ICC, which need '.lib').
9013 libext=a
9014
9015 with_gnu_ld=$lt_cv_prog_gnu_ld
9016
9017 old_CC=$CC
9018 old_CFLAGS=$CFLAGS
9019
9020 # Set sane defaults for various variables
9021 test -z "$CC" && CC=cc
9022 test -z "$LTCC" && LTCC=$CC
9023 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9024 test -z "$LD" && LD=ld
9025 test -z "$ac_objext" && ac_objext=o
9026
9027 func_cc_basename $compiler
9028 cc_basename=$func_cc_basename_result
9029
9030
9031 # Only perform the check for file, if the check method requires it
9032 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9033 case $deplibs_check_method in
9034 file_magic*)
9035 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9037 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9038 if test ${lt_cv_path_MAGIC_CMD+y}
9039 then :
9040 printf %s "(cached) " >&6
9041 else $as_nop
9042 case $MAGIC_CMD in
9043 [\\/*] | ?:[\\/]*)
9044 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9045 ;;
9046 *)
9047 lt_save_MAGIC_CMD=$MAGIC_CMD
9048 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9050 for ac_dir in $ac_dummy; do
9051 IFS=$lt_save_ifs
9052 test -z "$ac_dir" && ac_dir=.
9053 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9054 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9055 if test -n "$file_magic_test_file"; then
9056 case $deplibs_check_method in
9057 "file_magic "*)
9058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9061 $EGREP "$file_magic_regex" > /dev/null; then
9062 :
9063 else
9064 cat <<_LT_EOF 1>&2
9065
9066 *** Warning: the command libtool uses to detect shared libraries,
9067 *** $file_magic_cmd, produces output that libtool cannot recognize.
9068 *** The result is that libtool may fail to recognize shared libraries
9069 *** as such. This will affect the creation of libtool libraries that
9070 *** depend on shared libraries, but programs linked with such libtool
9071 *** libraries will work regardless of this problem. Nevertheless, you
9072 *** may want to report the problem to your system manager and/or to
9073 *** [email protected]
9074
9075 _LT_EOF
9076 fi ;;
9077 esac
9078 fi
9079 break
9080 fi
9081 done
9082 IFS=$lt_save_ifs
9083 MAGIC_CMD=$lt_save_MAGIC_CMD
9084 ;;
9085 esac
9086 fi
9087
9088 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9089 if test -n "$MAGIC_CMD"; then
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9091 printf "%s\n" "$MAGIC_CMD" >&6; }
9092 else
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 printf "%s\n" "no" >&6; }
9095 fi
9096
9097
9098
9099
9100
9101 if test -z "$lt_cv_path_MAGIC_CMD"; then
9102 if test -n "$ac_tool_prefix"; then
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9104 printf %s "checking for file... " >&6; }
9105 if test ${lt_cv_path_MAGIC_CMD+y}
9106 then :
9107 printf %s "(cached) " >&6
9108 else $as_nop
9109 case $MAGIC_CMD in
9110 [\\/*] | ?:[\\/]*)
9111 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9112 ;;
9113 *)
9114 lt_save_MAGIC_CMD=$MAGIC_CMD
9115 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9116 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9117 for ac_dir in $ac_dummy; do
9118 IFS=$lt_save_ifs
9119 test -z "$ac_dir" && ac_dir=.
9120 if test -f "$ac_dir/file"; then
9121 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9122 if test -n "$file_magic_test_file"; then
9123 case $deplibs_check_method in
9124 "file_magic "*)
9125 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9126 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9127 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9128 $EGREP "$file_magic_regex" > /dev/null; then
9129 :
9130 else
9131 cat <<_LT_EOF 1>&2
9132
9133 *** Warning: the command libtool uses to detect shared libraries,
9134 *** $file_magic_cmd, produces output that libtool cannot recognize.
9135 *** The result is that libtool may fail to recognize shared libraries
9136 *** as such. This will affect the creation of libtool libraries that
9137 *** depend on shared libraries, but programs linked with such libtool
9138 *** libraries will work regardless of this problem. Nevertheless, you
9139 *** may want to report the problem to your system manager and/or to
9140 *** [email protected]
9141
9142 _LT_EOF
9143 fi ;;
9144 esac
9145 fi
9146 break
9147 fi
9148 done
9149 IFS=$lt_save_ifs
9150 MAGIC_CMD=$lt_save_MAGIC_CMD
9151 ;;
9152 esac
9153 fi
9154
9155 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9156 if test -n "$MAGIC_CMD"; then
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9158 printf "%s\n" "$MAGIC_CMD" >&6; }
9159 else
9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 printf "%s\n" "no" >&6; }
9162 fi
9163
9164
9165 else
9166 MAGIC_CMD=:
9167 fi
9168 fi
9169
9170 fi
9171 ;;
9172 esac
9173
9174 # Use C for the default configuration in the libtool script
9175
9176 lt_save_CC=$CC
9177 ac_ext=c
9178 ac_cpp='$CPP $CPPFLAGS'
9179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9182
9183
9184 # Source file extension for C test sources.
9185 ac_ext=c
9186
9187 # Object file extension for compiled C test sources.
9188 objext=o
9189 objext=$objext
9190
9191 # Code to be used in simple compile tests
9192 lt_simple_compile_test_code="int some_variable = 0;"
9193
9194 # Code to be used in simple link tests
9195 lt_simple_link_test_code='int main(){return(0);}'
9196
9197
9198
9199
9200
9201
9202
9203 # If no C compiler was specified, use CC.
9204 LTCC=${LTCC-"$CC"}
9205
9206 # If no C compiler flags were specified, use CFLAGS.
9207 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9208
9209 # Allow CC to be a program name with arguments.
9210 compiler=$CC
9211
9212 # Save the default compiler, since it gets overwritten when the other
9213 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9214 compiler_DEFAULT=$CC
9215
9216 # save warnings/boilerplate of simple test code
9217 ac_outfile=conftest.$ac_objext
9218 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9219 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9220 _lt_compiler_boilerplate=`cat conftest.err`
9221 $RM conftest*
9222
9223 ac_outfile=conftest.$ac_objext
9224 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9225 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9226 _lt_linker_boilerplate=`cat conftest.err`
9227 $RM -r conftest*
9228
9229
9230 ## CAVEAT EMPTOR:
9231 ## There is no encapsulation within the following macros, do not change
9232 ## the running order or otherwise move them around unless you know exactly
9233 ## what you are doing...
9234 if test -n "$compiler"; then
9235
9236 lt_prog_compiler_no_builtin_flag=
9237
9238 if test yes = "$GCC"; then
9239 case $cc_basename in
9240 nvcc*)
9241 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9242 *)
9243 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9244 esac
9245
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9247 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9248 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9249 then :
9250 printf %s "(cached) " >&6
9251 else $as_nop
9252 lt_cv_prog_compiler_rtti_exceptions=no
9253 ac_outfile=conftest.$ac_objext
9254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9255 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9256 # Insert the option either (1) after the last *FLAGS variable, or
9257 # (2) before a word containing "conftest.", or (3) at the end.
9258 # Note that $ac_compile itself does not contain backslashes and begins
9259 # with a dollar sign (not a hyphen), so the echo should work correctly.
9260 # The option is referenced via a variable to avoid confusing sed.
9261 lt_compile=`echo "$ac_compile" | $SED \
9262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9264 -e 's:$: $lt_compiler_flag:'`
9265 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9266 (eval "$lt_compile" 2>conftest.err)
9267 ac_status=$?
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 if (exit $ac_status) && test -s "$ac_outfile"; then
9271 # The compiler can only warn and ignore the option if not recognized
9272 # So say no if there are warnings other than the usual output.
9273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9276 lt_cv_prog_compiler_rtti_exceptions=yes
9277 fi
9278 fi
9279 $RM conftest*
9280
9281 fi
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9283 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9284
9285 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9286 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9287 else
9288 :
9289 fi
9290
9291 fi
9292
9293
9294
9295
9296
9297
9298 lt_prog_compiler_wl=
9299 lt_prog_compiler_pic=
9300 lt_prog_compiler_static=
9301
9302
9303 if test yes = "$GCC"; then
9304 lt_prog_compiler_wl='-Wl,'
9305 lt_prog_compiler_static='-static'
9306
9307 case $host_os in
9308 aix*)
9309 # All AIX code is PIC.
9310 if test ia64 = "$host_cpu"; then
9311 # AIX 5 now supports IA64 processor
9312 lt_prog_compiler_static='-Bstatic'
9313 fi
9314 lt_prog_compiler_pic='-fPIC'
9315 ;;
9316
9317 amigaos*)
9318 case $host_cpu in
9319 powerpc)
9320 # see comment about AmigaOS4 .so support
9321 lt_prog_compiler_pic='-fPIC'
9322 ;;
9323 m68k)
9324 # FIXME: we need at least 68020 code to build shared libraries, but
9325 # adding the '-m68020' flag to GCC prevents building anything better,
9326 # like '-m68040'.
9327 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9328 ;;
9329 esac
9330 ;;
9331
9332 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9333 # PIC is the default for these OSes.
9334 ;;
9335
9336 mingw* | cygwin* | pw32* | os2* | cegcc*)
9337 # This hack is so that the source file can tell whether it is being
9338 # built for inclusion in a dll (and should export symbols for example).
9339 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9340 # (--disable-auto-import) libraries
9341 lt_prog_compiler_pic='-DDLL_EXPORT'
9342 case $host_os in
9343 os2*)
9344 lt_prog_compiler_static='$wl-static'
9345 ;;
9346 esac
9347 ;;
9348
9349 darwin* | rhapsody*)
9350 # PIC is the default on this platform
9351 # Common symbols not allowed in MH_DYLIB files
9352 lt_prog_compiler_pic='-fno-common'
9353 ;;
9354
9355 haiku*)
9356 # PIC is the default for Haiku.
9357 # The "-static" flag exists, but is broken.
9358 lt_prog_compiler_static=
9359 ;;
9360
9361 hpux*)
9362 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9363 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9364 # sets the default TLS model and affects inlining.
9365 case $host_cpu in
9366 hppa*64*)
9367 # +Z the default
9368 ;;
9369 *)
9370 lt_prog_compiler_pic='-fPIC'
9371 ;;
9372 esac
9373 ;;
9374
9375 interix[3-9]*)
9376 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9377 # Instead, we relocate shared libraries at runtime.
9378 ;;
9379
9380 msdosdjgpp*)
9381 # Just because we use GCC doesn't mean we suddenly get shared libraries
9382 # on systems that don't support them.
9383 lt_prog_compiler_can_build_shared=no
9384 enable_shared=no
9385 ;;
9386
9387 *nto* | *qnx*)
9388 # QNX uses GNU C++, but need to define -shared option too, otherwise
9389 # it will coredump.
9390 lt_prog_compiler_pic='-fPIC -shared'
9391 ;;
9392
9393 sysv4*MP*)
9394 if test -d /usr/nec; then
9395 lt_prog_compiler_pic=-Kconform_pic
9396 fi
9397 ;;
9398
9399 *)
9400 lt_prog_compiler_pic='-fPIC'
9401 ;;
9402 esac
9403
9404 case $cc_basename in
9405 nvcc*) # Cuda Compiler Driver 2.2
9406 lt_prog_compiler_wl='-Xlinker '
9407 if test -n "$lt_prog_compiler_pic"; then
9408 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9409 fi
9410 ;;
9411 esac
9412 else
9413 # PORTME Check for flag to pass linker flags through the system compiler.
9414 case $host_os in
9415 aix*)
9416 lt_prog_compiler_wl='-Wl,'
9417 if test ia64 = "$host_cpu"; then
9418 # AIX 5 now supports IA64 processor
9419 lt_prog_compiler_static='-Bstatic'
9420 else
9421 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9422 fi
9423 ;;
9424
9425 darwin* | rhapsody*)
9426 # PIC is the default on this platform
9427 # Common symbols not allowed in MH_DYLIB files
9428 lt_prog_compiler_pic='-fno-common'
9429 case $cc_basename in
9430 nagfor*)
9431 # NAG Fortran compiler
9432 lt_prog_compiler_wl='-Wl,-Wl,,'
9433 lt_prog_compiler_pic='-PIC'
9434 lt_prog_compiler_static='-Bstatic'
9435 ;;
9436 esac
9437 ;;
9438
9439 mingw* | cygwin* | pw32* | os2* | cegcc*)
9440 # This hack is so that the source file can tell whether it is being
9441 # built for inclusion in a dll (and should export symbols for example).
9442 lt_prog_compiler_pic='-DDLL_EXPORT'
9443 case $host_os in
9444 os2*)
9445 lt_prog_compiler_static='$wl-static'
9446 ;;
9447 esac
9448 ;;
9449
9450 hpux9* | hpux10* | hpux11*)
9451 lt_prog_compiler_wl='-Wl,'
9452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9453 # not for PA HP-UX.
9454 case $host_cpu in
9455 hppa*64*|ia64*)
9456 # +Z the default
9457 ;;
9458 *)
9459 lt_prog_compiler_pic='+Z'
9460 ;;
9461 esac
9462 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9463 lt_prog_compiler_static='$wl-a ${wl}archive'
9464 ;;
9465
9466 irix5* | irix6* | nonstopux*)
9467 lt_prog_compiler_wl='-Wl,'
9468 # PIC (with -KPIC) is the default.
9469 lt_prog_compiler_static='-non_shared'
9470 ;;
9471
9472 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9473 case $cc_basename in
9474 # old Intel for x86_64, which still supported -KPIC.
9475 ecc*)
9476 lt_prog_compiler_wl='-Wl,'
9477 lt_prog_compiler_pic='-KPIC'
9478 lt_prog_compiler_static='-static'
9479 ;;
9480 # flang / f18. f95 an alias for gfortran or flang on Debian
9481 flang* | f18* | f95*)
9482 lt_prog_compiler_wl='-Wl,'
9483 lt_prog_compiler_pic='-fPIC'
9484 lt_prog_compiler_static='-static'
9485 ;;
9486 # icc used to be incompatible with GCC.
9487 # ICC 10 doesn't accept -KPIC any more.
9488 icc* | ifort*)
9489 lt_prog_compiler_wl='-Wl,'
9490 lt_prog_compiler_pic='-fPIC'
9491 lt_prog_compiler_static='-static'
9492 ;;
9493 # Lahey Fortran 8.1.
9494 lf95*)
9495 lt_prog_compiler_wl='-Wl,'
9496 lt_prog_compiler_pic='--shared'
9497 lt_prog_compiler_static='--static'
9498 ;;
9499 nagfor*)
9500 # NAG Fortran compiler
9501 lt_prog_compiler_wl='-Wl,-Wl,,'
9502 lt_prog_compiler_pic='-PIC'
9503 lt_prog_compiler_static='-Bstatic'
9504 ;;
9505 tcc*)
9506 # Fabrice Bellard et al's Tiny C Compiler
9507 lt_prog_compiler_wl='-Wl,'
9508 lt_prog_compiler_pic='-fPIC'
9509 lt_prog_compiler_static='-static'
9510 ;;
9511 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9512 # Portland Group compilers (*not* the Pentium gcc compiler,
9513 # which looks to be a dead project)
9514 lt_prog_compiler_wl='-Wl,'
9515 lt_prog_compiler_pic='-fpic'
9516 lt_prog_compiler_static='-Bstatic'
9517 ;;
9518 ccc*)
9519 lt_prog_compiler_wl='-Wl,'
9520 # All Alpha code is PIC.
9521 lt_prog_compiler_static='-non_shared'
9522 ;;
9523 xl* | bgxl* | bgf* | mpixl*)
9524 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9525 lt_prog_compiler_wl='-Wl,'
9526 lt_prog_compiler_pic='-qpic'
9527 lt_prog_compiler_static='-qstaticlink'
9528 ;;
9529 *)
9530 case `$CC -V 2>&1 | $SED 5q` in
9531 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9532 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9533 lt_prog_compiler_pic='-KPIC'
9534 lt_prog_compiler_static='-Bstatic'
9535 lt_prog_compiler_wl=''
9536 ;;
9537 *Sun\ F* | *Sun*Fortran*)
9538 lt_prog_compiler_pic='-KPIC'
9539 lt_prog_compiler_static='-Bstatic'
9540 lt_prog_compiler_wl='-Qoption ld '
9541 ;;
9542 *Sun\ C*)
9543 # Sun C 5.9
9544 lt_prog_compiler_pic='-KPIC'
9545 lt_prog_compiler_static='-Bstatic'
9546 lt_prog_compiler_wl='-Wl,'
9547 ;;
9548 *Intel*\ [CF]*Compiler*)
9549 lt_prog_compiler_wl='-Wl,'
9550 lt_prog_compiler_pic='-fPIC'
9551 lt_prog_compiler_static='-static'
9552 ;;
9553 *Portland\ Group*)
9554 lt_prog_compiler_wl='-Wl,'
9555 lt_prog_compiler_pic='-fpic'
9556 lt_prog_compiler_static='-Bstatic'
9557 ;;
9558 esac
9559 ;;
9560 esac
9561 ;;
9562
9563 newsos6)
9564 lt_prog_compiler_pic='-KPIC'
9565 lt_prog_compiler_static='-Bstatic'
9566 ;;
9567
9568 *nto* | *qnx*)
9569 # QNX uses GNU C++, but need to define -shared option too, otherwise
9570 # it will coredump.
9571 lt_prog_compiler_pic='-fPIC -shared'
9572 ;;
9573
9574 osf3* | osf4* | osf5*)
9575 lt_prog_compiler_wl='-Wl,'
9576 # All OSF/1 code is PIC.
9577 lt_prog_compiler_static='-non_shared'
9578 ;;
9579
9580 rdos*)
9581 lt_prog_compiler_static='-non_shared'
9582 ;;
9583
9584 solaris*)
9585 lt_prog_compiler_pic='-KPIC'
9586 lt_prog_compiler_static='-Bstatic'
9587 case $cc_basename in
9588 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9589 lt_prog_compiler_wl='-Qoption ld ';;
9590 *)
9591 lt_prog_compiler_wl='-Wl,';;
9592 esac
9593 ;;
9594
9595 sunos4*)
9596 lt_prog_compiler_wl='-Qoption ld '
9597 lt_prog_compiler_pic='-PIC'
9598 lt_prog_compiler_static='-Bstatic'
9599 ;;
9600
9601 sysv4 | sysv4.2uw2* | sysv4.3*)
9602 lt_prog_compiler_wl='-Wl,'
9603 lt_prog_compiler_pic='-KPIC'
9604 lt_prog_compiler_static='-Bstatic'
9605 ;;
9606
9607 sysv4*MP*)
9608 if test -d /usr/nec; then
9609 lt_prog_compiler_pic='-Kconform_pic'
9610 lt_prog_compiler_static='-Bstatic'
9611 fi
9612 ;;
9613
9614 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9615 lt_prog_compiler_wl='-Wl,'
9616 lt_prog_compiler_pic='-KPIC'
9617 lt_prog_compiler_static='-Bstatic'
9618 ;;
9619
9620 unicos*)
9621 lt_prog_compiler_wl='-Wl,'
9622 lt_prog_compiler_can_build_shared=no
9623 ;;
9624
9625 uts4*)
9626 lt_prog_compiler_pic='-pic'
9627 lt_prog_compiler_static='-Bstatic'
9628 ;;
9629
9630 *)
9631 lt_prog_compiler_can_build_shared=no
9632 ;;
9633 esac
9634 fi
9635
9636 case $host_os in
9637 # For platforms that do not support PIC, -DPIC is meaningless:
9638 *djgpp*)
9639 lt_prog_compiler_pic=
9640 ;;
9641 *)
9642 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9643 ;;
9644 esac
9645
9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9647 printf %s "checking for $compiler option to produce PIC... " >&6; }
9648 if test ${lt_cv_prog_compiler_pic+y}
9649 then :
9650 printf %s "(cached) " >&6
9651 else $as_nop
9652 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9653 fi
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9655 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9656 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9657
9658 #
9659 # Check to make sure the PIC flag actually works.
9660 #
9661 if test -n "$lt_prog_compiler_pic"; then
9662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9663 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9664 if test ${lt_cv_prog_compiler_pic_works+y}
9665 then :
9666 printf %s "(cached) " >&6
9667 else $as_nop
9668 lt_cv_prog_compiler_pic_works=no
9669 ac_outfile=conftest.$ac_objext
9670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9671 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9672 # Insert the option either (1) after the last *FLAGS variable, or
9673 # (2) before a word containing "conftest.", or (3) at the end.
9674 # Note that $ac_compile itself does not contain backslashes and begins
9675 # with a dollar sign (not a hyphen), so the echo should work correctly.
9676 # The option is referenced via a variable to avoid confusing sed.
9677 lt_compile=`echo "$ac_compile" | $SED \
9678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9680 -e 's:$: $lt_compiler_flag:'`
9681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9682 (eval "$lt_compile" 2>conftest.err)
9683 ac_status=$?
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 if (exit $ac_status) && test -s "$ac_outfile"; then
9687 # The compiler can only warn and ignore the option if not recognized
9688 # So say no if there are warnings other than the usual output.
9689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9692 lt_cv_prog_compiler_pic_works=yes
9693 fi
9694 fi
9695 $RM conftest*
9696
9697 fi
9698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9699 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9700
9701 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9702 case $lt_prog_compiler_pic in
9703 "" | " "*) ;;
9704 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9705 esac
9706 else
9707 lt_prog_compiler_pic=
9708 lt_prog_compiler_can_build_shared=no
9709 fi
9710
9711 fi
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723 #
9724 # Check to make sure the static flag actually works.
9725 #
9726 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9728 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9729 if test ${lt_cv_prog_compiler_static_works+y}
9730 then :
9731 printf %s "(cached) " >&6
9732 else $as_nop
9733 lt_cv_prog_compiler_static_works=no
9734 save_LDFLAGS=$LDFLAGS
9735 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9736 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9737 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9738 # The linker can only warn and ignore the option if not recognized
9739 # So say no if there are warnings
9740 if test -s conftest.err; then
9741 # Append any errors to the config.log.
9742 cat conftest.err 1>&5
9743 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9745 if diff conftest.exp conftest.er2 >/dev/null; then
9746 lt_cv_prog_compiler_static_works=yes
9747 fi
9748 else
9749 lt_cv_prog_compiler_static_works=yes
9750 fi
9751 fi
9752 $RM -r conftest*
9753 LDFLAGS=$save_LDFLAGS
9754
9755 fi
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9757 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9758
9759 if test yes = "$lt_cv_prog_compiler_static_works"; then
9760 :
9761 else
9762 lt_prog_compiler_static=
9763 fi
9764
9765
9766
9767
9768
9769
9770
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9772 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9773 if test ${lt_cv_prog_compiler_c_o+y}
9774 then :
9775 printf %s "(cached) " >&6
9776 else $as_nop
9777 lt_cv_prog_compiler_c_o=no
9778 $RM -r conftest 2>/dev/null
9779 mkdir conftest
9780 cd conftest
9781 mkdir out
9782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9783
9784 lt_compiler_flag="-o out/conftest2.$ac_objext"
9785 # Insert the option either (1) after the last *FLAGS variable, or
9786 # (2) before a word containing "conftest.", or (3) at the end.
9787 # Note that $ac_compile itself does not contain backslashes and begins
9788 # with a dollar sign (not a hyphen), so the echo should work correctly.
9789 lt_compile=`echo "$ac_compile" | $SED \
9790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9792 -e 's:$: $lt_compiler_flag:'`
9793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9794 (eval "$lt_compile" 2>out/conftest.err)
9795 ac_status=$?
9796 cat out/conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9799 then
9800 # The compiler can only warn and ignore the option if not recognized
9801 # So say no if there are warnings
9802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9805 lt_cv_prog_compiler_c_o=yes
9806 fi
9807 fi
9808 chmod u+w . 2>&5
9809 $RM conftest*
9810 # SGI C++ compiler will create directory out/ii_files/ for
9811 # template instantiation
9812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9813 $RM out/* && rmdir out
9814 cd ..
9815 $RM -r conftest
9816 $RM conftest*
9817
9818 fi
9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9820 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9821
9822
9823
9824
9825
9826
9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9828 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9829 if test ${lt_cv_prog_compiler_c_o+y}
9830 then :
9831 printf %s "(cached) " >&6
9832 else $as_nop
9833 lt_cv_prog_compiler_c_o=no
9834 $RM -r conftest 2>/dev/null
9835 mkdir conftest
9836 cd conftest
9837 mkdir out
9838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9839
9840 lt_compiler_flag="-o out/conftest2.$ac_objext"
9841 # Insert the option either (1) after the last *FLAGS variable, or
9842 # (2) before a word containing "conftest.", or (3) at the end.
9843 # Note that $ac_compile itself does not contain backslashes and begins
9844 # with a dollar sign (not a hyphen), so the echo should work correctly.
9845 lt_compile=`echo "$ac_compile" | $SED \
9846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9848 -e 's:$: $lt_compiler_flag:'`
9849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9850 (eval "$lt_compile" 2>out/conftest.err)
9851 ac_status=$?
9852 cat out/conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9855 then
9856 # The compiler can only warn and ignore the option if not recognized
9857 # So say no if there are warnings
9858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9859 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9860 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9861 lt_cv_prog_compiler_c_o=yes
9862 fi
9863 fi
9864 chmod u+w . 2>&5
9865 $RM conftest*
9866 # SGI C++ compiler will create directory out/ii_files/ for
9867 # template instantiation
9868 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9869 $RM out/* && rmdir out
9870 cd ..
9871 $RM -r conftest
9872 $RM conftest*
9873
9874 fi
9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9876 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9877
9878
9879
9880
9881 hard_links=nottested
9882 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9883 # do not overwrite the value of need_locks provided by the user
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9885 printf %s "checking if we can lock with hard links... " >&6; }
9886 hard_links=yes
9887 $RM conftest*
9888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9889 touch conftest.a
9890 ln conftest.a conftest.b 2>&5 || hard_links=no
9891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9893 printf "%s\n" "$hard_links" >&6; }
9894 if test no = "$hard_links"; then
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9896 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9897 need_locks=warn
9898 fi
9899 else
9900 need_locks=no
9901 fi
9902
9903
9904
9905
9906
9907
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9909 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9910
9911 runpath_var=
9912 allow_undefined_flag=
9913 always_export_symbols=no
9914 archive_cmds=
9915 archive_expsym_cmds=
9916 compiler_needs_object=no
9917 enable_shared_with_static_runtimes=no
9918 export_dynamic_flag_spec=
9919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9920 hardcode_automatic=no
9921 hardcode_direct=no
9922 hardcode_direct_absolute=no
9923 hardcode_libdir_flag_spec=
9924 hardcode_libdir_separator=
9925 hardcode_minus_L=no
9926 hardcode_shlibpath_var=unsupported
9927 inherit_rpath=no
9928 link_all_deplibs=unknown
9929 module_cmds=
9930 module_expsym_cmds=
9931 old_archive_from_new_cmds=
9932 old_archive_from_expsyms_cmds=
9933 thread_safe_flag_spec=
9934 whole_archive_flag_spec=
9935 # include_expsyms should be a list of space-separated symbols to be *always*
9936 # included in the symbol list
9937 include_expsyms=
9938 # exclude_expsyms can be an extended regexp of symbols to exclude
9939 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9940 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9941 # as well as any symbol that contains 'd'.
9942 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9944 # platforms (ab)use it in PIC code, but their linkers get confused if
9945 # the symbol is explicitly referenced. Since portable code cannot
9946 # rely on this symbol name, it's probably fine to never include it in
9947 # preloaded symbol tables.
9948 # Exclude shared library initialization/finalization symbols.
9949 extract_expsyms_cmds=
9950
9951 case $host_os in
9952 cygwin* | mingw* | pw32* | cegcc*)
9953 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9954 # When not using gcc, we currently assume that we are using
9955 # Microsoft Visual C++ or Intel C++ Compiler.
9956 if test yes != "$GCC"; then
9957 with_gnu_ld=no
9958 fi
9959 ;;
9960 interix*)
9961 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9962 with_gnu_ld=yes
9963 ;;
9964 openbsd* | bitrig*)
9965 with_gnu_ld=no
9966 ;;
9967 linux* | k*bsd*-gnu | gnu*)
9968 link_all_deplibs=no
9969 ;;
9970 esac
9971
9972 ld_shlibs=yes
9973
9974 # On some targets, GNU ld is compatible enough with the native linker
9975 # that we're better off using the native interface for both.
9976 lt_use_gnu_ld_interface=no
9977 if test yes = "$with_gnu_ld"; then
9978 case $host_os in
9979 aix*)
9980 # The AIX port of GNU ld has always aspired to compatibility
9981 # with the native linker. However, as the warning in the GNU ld
9982 # block says, versions before 2.19.5* couldn't really create working
9983 # shared libraries, regardless of the interface used.
9984 case `$LD -v 2>&1` in
9985 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9986 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9987 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9988 *)
9989 lt_use_gnu_ld_interface=yes
9990 ;;
9991 esac
9992 ;;
9993 *)
9994 lt_use_gnu_ld_interface=yes
9995 ;;
9996 esac
9997 fi
9998
9999 if test yes = "$lt_use_gnu_ld_interface"; then
10000 # If archive_cmds runs LD, not CC, wlarc should be empty
10001 wlarc='$wl'
10002
10003 # Set some defaults for GNU ld with shared library support. These
10004 # are reset later if shared libraries are not supported. Putting them
10005 # here allows them to be overridden if necessary.
10006 runpath_var=LD_RUN_PATH
10007 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10008 export_dynamic_flag_spec='$wl--export-dynamic'
10009 # ancient GNU ld didn't support --whole-archive et. al.
10010 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10011 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10012 else
10013 whole_archive_flag_spec=
10014 fi
10015 supports_anon_versioning=no
10016 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10017 *GNU\ gold*) supports_anon_versioning=yes ;;
10018 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10019 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10020 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10021 *\ 2.11.*) ;; # other 2.11 versions
10022 *) supports_anon_versioning=yes ;;
10023 esac
10024
10025 # See if GNU ld supports shared libraries.
10026 case $host_os in
10027 aix[3-9]*)
10028 # On AIX/PPC, the GNU linker is very broken
10029 if test ia64 != "$host_cpu"; then
10030 ld_shlibs=no
10031 cat <<_LT_EOF 1>&2
10032
10033 *** Warning: the GNU linker, at least up to release 2.19, is reported
10034 *** to be unable to reliably create shared libraries on AIX.
10035 *** Therefore, libtool is disabling shared libraries support. If you
10036 *** really care for shared libraries, you may want to install binutils
10037 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10038 *** You will then need to restart the configuration process.
10039
10040 _LT_EOF
10041 fi
10042 ;;
10043
10044 amigaos*)
10045 case $host_cpu in
10046 powerpc)
10047 # see comment about AmigaOS4 .so support
10048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10049 archive_expsym_cmds=''
10050 ;;
10051 m68k)
10052 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)'
10053 hardcode_libdir_flag_spec='-L$libdir'
10054 hardcode_minus_L=yes
10055 ;;
10056 esac
10057 ;;
10058
10059 beos*)
10060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10061 allow_undefined_flag=unsupported
10062 # Joseph Beckenbach <[email protected]> says some releases of gcc
10063 # support --undefined. This deserves some investigation. FIXME
10064 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10065 else
10066 ld_shlibs=no
10067 fi
10068 ;;
10069
10070 cygwin* | mingw* | pw32* | cegcc*)
10071 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10072 # as there is no search path for DLLs.
10073 hardcode_libdir_flag_spec='-L$libdir'
10074 export_dynamic_flag_spec='$wl--export-all-symbols'
10075 allow_undefined_flag=unsupported
10076 always_export_symbols=no
10077 enable_shared_with_static_runtimes=yes
10078 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'
10079 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10080
10081 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10083 # If the export-symbols file already is a .def file, use it as
10084 # is; otherwise, prepend EXPORTS...
10085 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10086 cp $export_symbols $output_objdir/$soname.def;
10087 else
10088 echo EXPORTS > $output_objdir/$soname.def;
10089 cat $export_symbols >> $output_objdir/$soname.def;
10090 fi~
10091 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10092 else
10093 ld_shlibs=no
10094 fi
10095 ;;
10096
10097 haiku*)
10098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10099 link_all_deplibs=yes
10100 ;;
10101
10102 os2*)
10103 hardcode_libdir_flag_spec='-L$libdir'
10104 hardcode_minus_L=yes
10105 allow_undefined_flag=unsupported
10106 shrext_cmds=.dll
10107 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10108 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10109 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10110 $ECHO EXPORTS >> $output_objdir/$libname.def~
10111 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10112 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10113 emximp -o $lib $output_objdir/$libname.def'
10114 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10115 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10116 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10117 $ECHO EXPORTS >> $output_objdir/$libname.def~
10118 prefix_cmds="$SED"~
10119 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10120 prefix_cmds="$prefix_cmds -e 1d";
10121 fi~
10122 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10123 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10124 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10125 emximp -o $lib $output_objdir/$libname.def'
10126 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10127 enable_shared_with_static_runtimes=yes
10128 file_list_spec='@'
10129 ;;
10130
10131 interix[3-9]*)
10132 hardcode_direct=no
10133 hardcode_shlibpath_var=no
10134 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10135 export_dynamic_flag_spec='$wl-E'
10136 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10137 # Instead, shared libraries are loaded at an image base (0x10000000 by
10138 # default) and relocated if they conflict, which is a slow very memory
10139 # consuming and fragmenting process. To avoid this, we pick a random,
10140 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10141 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10143 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'
10144 ;;
10145
10146 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10147 tmp_diet=no
10148 if test linux-dietlibc = "$host_os"; then
10149 case $cc_basename in
10150 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10151 esac
10152 fi
10153 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10154 && test no = "$tmp_diet"
10155 then
10156 tmp_addflag=' $pic_flag'
10157 tmp_sharedflag='-shared'
10158 case $cc_basename,$host_cpu in
10159 pgcc*) # Portland Group C compiler
10160 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'
10161 tmp_addflag=' $pic_flag'
10162 ;;
10163 pgf77* | pgf90* | pgf95* | pgfortran*)
10164 # Portland Group f77 and f90 compilers
10165 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'
10166 tmp_addflag=' $pic_flag -Mnomain' ;;
10167 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10168 tmp_addflag=' -i_dynamic' ;;
10169 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10170 tmp_addflag=' -i_dynamic -nofor_main' ;;
10171 ifc* | ifort*) # Intel Fortran compiler
10172 tmp_addflag=' -nofor_main' ;;
10173 lf95*) # Lahey Fortran 8.1
10174 whole_archive_flag_spec=
10175 tmp_sharedflag='--shared' ;;
10176 nagfor*) # NAGFOR 5.3
10177 tmp_sharedflag='-Wl,-shared' ;;
10178 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10179 tmp_sharedflag='-qmkshrobj'
10180 tmp_addflag= ;;
10181 nvcc*) # Cuda Compiler Driver 2.2
10182 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'
10183 compiler_needs_object=yes
10184 ;;
10185 esac
10186 case `$CC -V 2>&1 | $SED 5q` in
10187 *Sun\ C*) # Sun C 5.9
10188 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'
10189 compiler_needs_object=yes
10190 tmp_sharedflag='-G' ;;
10191 *Sun\ F*) # Sun Fortran 8.3
10192 tmp_sharedflag='-G' ;;
10193 esac
10194 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10195
10196 if test yes = "$supports_anon_versioning"; then
10197 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10198 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10199 echo "local: *; };" >> $output_objdir/$libname.ver~
10200 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10201 fi
10202
10203 case $cc_basename in
10204 tcc*)
10205 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10206 export_dynamic_flag_spec='-rdynamic'
10207 ;;
10208 xlf* | bgf* | bgxlf* | mpixlf*)
10209 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10210 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10211 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10212 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10213 if test yes = "$supports_anon_versioning"; then
10214 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10215 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10216 echo "local: *; };" >> $output_objdir/$libname.ver~
10217 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10218 fi
10219 ;;
10220 esac
10221 else
10222 ld_shlibs=no
10223 fi
10224 ;;
10225
10226 netbsd* | netbsdelf*-gnu)
10227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10228 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10229 wlarc=
10230 else
10231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10232 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10233 fi
10234 ;;
10235
10236 solaris*)
10237 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10238 ld_shlibs=no
10239 cat <<_LT_EOF 1>&2
10240
10241 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10242 *** create shared libraries on Solaris systems. Therefore, libtool
10243 *** is disabling shared libraries support. We urge you to upgrade GNU
10244 *** binutils to release 2.9.1 or newer. Another option is to modify
10245 *** your PATH or compiler configuration so that the native linker is
10246 *** used, and then restart.
10247
10248 _LT_EOF
10249 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10250 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10251 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10252 else
10253 ld_shlibs=no
10254 fi
10255 ;;
10256
10257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10258 case `$LD -v 2>&1` in
10259 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10260 ld_shlibs=no
10261 cat <<_LT_EOF 1>&2
10262
10263 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10264 *** reliably create shared libraries on SCO systems. Therefore, libtool
10265 *** is disabling shared libraries support. We urge you to upgrade GNU
10266 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10267 *** your PATH or compiler configuration so that the native linker is
10268 *** used, and then restart.
10269
10270 _LT_EOF
10271 ;;
10272 *)
10273 # For security reasons, it is highly recommended that you always
10274 # use absolute paths for naming shared libraries, and exclude the
10275 # DT_RUNPATH tag from executables and libraries. But doing so
10276 # requires that you compile everything twice, which is a pain.
10277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10278 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10281 else
10282 ld_shlibs=no
10283 fi
10284 ;;
10285 esac
10286 ;;
10287
10288 sunos4*)
10289 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10290 wlarc=
10291 hardcode_direct=yes
10292 hardcode_shlibpath_var=no
10293 ;;
10294
10295 *)
10296 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10298 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10299 else
10300 ld_shlibs=no
10301 fi
10302 ;;
10303 esac
10304
10305 if test no = "$ld_shlibs"; then
10306 runpath_var=
10307 hardcode_libdir_flag_spec=
10308 export_dynamic_flag_spec=
10309 whole_archive_flag_spec=
10310 fi
10311 else
10312 # PORTME fill in a description of your system's linker (not GNU ld)
10313 case $host_os in
10314 aix3*)
10315 allow_undefined_flag=unsupported
10316 always_export_symbols=yes
10317 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'
10318 # Note: this linker hardcodes the directories in LIBPATH if there
10319 # are no directories specified by -L.
10320 hardcode_minus_L=yes
10321 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10322 # Neither direct hardcoding nor static linking is supported with a
10323 # broken collect2.
10324 hardcode_direct=unsupported
10325 fi
10326 ;;
10327
10328 aix[4-9]*)
10329 if test ia64 = "$host_cpu"; then
10330 # On IA64, the linker does run time linking by default, so we don't
10331 # have to do anything special.
10332 aix_use_runtimelinking=no
10333 exp_sym_flag='-Bexport'
10334 no_entry_flag=
10335 else
10336 # If we're using GNU nm, then we don't want the "-C" option.
10337 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10338 # Without the "-l" option, or with the "-B" option, AIX nm treats
10339 # weak defined symbols like other global defined symbols, whereas
10340 # GNU nm marks them as "W".
10341 # While the 'weak' keyword is ignored in the Export File, we need
10342 # it in the Import File for the 'aix-soname' feature, so we have
10343 # to replace the "-B" option with "-P" for AIX nm.
10344 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10345 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'
10346 else
10347 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'
10348 fi
10349 aix_use_runtimelinking=no
10350
10351 # Test if we are trying to use run time linking or normal
10352 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10353 # have runtime linking enabled, and use it for executables.
10354 # For shared libraries, we enable/disable runtime linking
10355 # depending on the kind of the shared library created -
10356 # when "with_aix_soname,aix_use_runtimelinking" is:
10357 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10358 # "aix,yes" lib.so shared, rtl:yes, for executables
10359 # lib.a static archive
10360 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10361 # lib.a(lib.so.V) shared, rtl:no, for executables
10362 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10363 # lib.a(lib.so.V) shared, rtl:no
10364 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10365 # lib.a static archive
10366 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10367 for ld_flag in $LDFLAGS; do
10368 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10369 aix_use_runtimelinking=yes
10370 break
10371 fi
10372 done
10373 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10374 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10375 # so we don't have lib.a shared libs to link our executables.
10376 # We have to force runtime linking in this case.
10377 aix_use_runtimelinking=yes
10378 LDFLAGS="$LDFLAGS -Wl,-brtl"
10379 fi
10380 ;;
10381 esac
10382
10383 exp_sym_flag='-bexport'
10384 no_entry_flag='-bnoentry'
10385 fi
10386
10387 # When large executables or shared objects are built, AIX ld can
10388 # have problems creating the table of contents. If linking a library
10389 # or program results in "error TOC overflow" add -mminimal-toc to
10390 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10391 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10392
10393 archive_cmds=''
10394 hardcode_direct=yes
10395 hardcode_direct_absolute=yes
10396 hardcode_libdir_separator=':'
10397 link_all_deplibs=yes
10398 file_list_spec='$wl-f,'
10399 case $with_aix_soname,$aix_use_runtimelinking in
10400 aix,*) ;; # traditional, no import file
10401 svr4,* | *,yes) # use import file
10402 # The Import File defines what to hardcode.
10403 hardcode_direct=no
10404 hardcode_direct_absolute=no
10405 ;;
10406 esac
10407
10408 if test yes = "$GCC"; then
10409 case $host_os in aix4.[012]|aix4.[012].*)
10410 # We only want to do this on AIX 4.2 and lower, the check
10411 # below for broken collect2 doesn't work under 4.3+
10412 collect2name=`$CC -print-prog-name=collect2`
10413 if test -f "$collect2name" &&
10414 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10415 then
10416 # We have reworked collect2
10417 :
10418 else
10419 # We have old collect2
10420 hardcode_direct=unsupported
10421 # It fails to find uninstalled libraries when the uninstalled
10422 # path is not listed in the libpath. Setting hardcode_minus_L
10423 # to unsupported forces relinking
10424 hardcode_minus_L=yes
10425 hardcode_libdir_flag_spec='-L$libdir'
10426 hardcode_libdir_separator=
10427 fi
10428 ;;
10429 esac
10430 shared_flag='-shared'
10431 if test yes = "$aix_use_runtimelinking"; then
10432 shared_flag="$shared_flag "'$wl-G'
10433 fi
10434 # Need to ensure runtime linking is disabled for the traditional
10435 # shared library, or the linker may eventually find shared libraries
10436 # /with/ Import File - we do not want to mix them.
10437 shared_flag_aix='-shared'
10438 shared_flag_svr4='-shared $wl-G'
10439 else
10440 # not using gcc
10441 if test ia64 = "$host_cpu"; then
10442 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10443 # chokes on -Wl,-G. The following line is correct:
10444 shared_flag='-G'
10445 else
10446 if test yes = "$aix_use_runtimelinking"; then
10447 shared_flag='$wl-G'
10448 else
10449 shared_flag='$wl-bM:SRE'
10450 fi
10451 shared_flag_aix='$wl-bM:SRE'
10452 shared_flag_svr4='$wl-G'
10453 fi
10454 fi
10455
10456 export_dynamic_flag_spec='$wl-bexpall'
10457 # It seems that -bexpall does not export symbols beginning with
10458 # underscore (_), so it is better to generate a list of symbols to export.
10459 always_export_symbols=yes
10460 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10461 # Warning - without using the other runtime loading flags (-brtl),
10462 # -berok will link without error, but may produce a broken library.
10463 allow_undefined_flag='-berok'
10464 # Determine the default libpath from the value encoded in an
10465 # empty executable.
10466 if test set = "${lt_cv_aix_libpath+set}"; then
10467 aix_libpath=$lt_cv_aix_libpath
10468 else
10469 if test ${lt_cv_aix_libpath_+y}
10470 then :
10471 printf %s "(cached) " >&6
10472 else $as_nop
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475
10476 int
10477 main (void)
10478 {
10479
10480 ;
10481 return 0;
10482 }
10483 _ACEOF
10484 if ac_fn_c_try_link "$LINENO"
10485 then :
10486
10487 lt_aix_libpath_sed='
10488 /Import File Strings/,/^$/ {
10489 /^0/ {
10490 s/^0 *\([^ ]*\) *$/\1/
10491 p
10492 }
10493 }'
10494 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10495 # Check for a 64-bit object if we didn't find anything.
10496 if test -z "$lt_cv_aix_libpath_"; then
10497 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10498 fi
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10501 conftest$ac_exeext conftest.$ac_ext
10502 if test -z "$lt_cv_aix_libpath_"; then
10503 lt_cv_aix_libpath_=/usr/lib:/lib
10504 fi
10505
10506 fi
10507
10508 aix_libpath=$lt_cv_aix_libpath_
10509 fi
10510
10511 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10512 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
10513 else
10514 if test ia64 = "$host_cpu"; then
10515 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10516 allow_undefined_flag="-z nodefs"
10517 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"
10518 else
10519 # Determine the default libpath from the value encoded in an
10520 # empty executable.
10521 if test set = "${lt_cv_aix_libpath+set}"; then
10522 aix_libpath=$lt_cv_aix_libpath
10523 else
10524 if test ${lt_cv_aix_libpath_+y}
10525 then :
10526 printf %s "(cached) " >&6
10527 else $as_nop
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530
10531 int
10532 main (void)
10533 {
10534
10535 ;
10536 return 0;
10537 }
10538 _ACEOF
10539 if ac_fn_c_try_link "$LINENO"
10540 then :
10541
10542 lt_aix_libpath_sed='
10543 /Import File Strings/,/^$/ {
10544 /^0/ {
10545 s/^0 *\([^ ]*\) *$/\1/
10546 p
10547 }
10548 }'
10549 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10550 # Check for a 64-bit object if we didn't find anything.
10551 if test -z "$lt_cv_aix_libpath_"; then
10552 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10553 fi
10554 fi
10555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10556 conftest$ac_exeext conftest.$ac_ext
10557 if test -z "$lt_cv_aix_libpath_"; then
10558 lt_cv_aix_libpath_=/usr/lib:/lib
10559 fi
10560
10561 fi
10562
10563 aix_libpath=$lt_cv_aix_libpath_
10564 fi
10565
10566 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10567 # Warning - without using the other run time loading flags,
10568 # -berok will link without error, but may produce a broken library.
10569 no_undefined_flag=' $wl-bernotok'
10570 allow_undefined_flag=' $wl-berok'
10571 if test yes = "$with_gnu_ld"; then
10572 # We only use this code for GNU lds that support --whole-archive.
10573 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10574 else
10575 # Exported symbols can be pulled into shared objects from archives
10576 whole_archive_flag_spec='$convenience'
10577 fi
10578 archive_cmds_need_lc=yes
10579 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10580 # -brtl affects multiple linker settings, -berok does not and is overridden later
10581 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10582 if test svr4 != "$with_aix_soname"; then
10583 # This is similar to how AIX traditionally builds its shared libraries.
10584 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'
10585 fi
10586 if test aix != "$with_aix_soname"; then
10587 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'
10588 else
10589 # used by -dlpreopen to get the symbols
10590 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10591 fi
10592 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10593 fi
10594 fi
10595 ;;
10596
10597 amigaos*)
10598 case $host_cpu in
10599 powerpc)
10600 # see comment about AmigaOS4 .so support
10601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10602 archive_expsym_cmds=''
10603 ;;
10604 m68k)
10605 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)'
10606 hardcode_libdir_flag_spec='-L$libdir'
10607 hardcode_minus_L=yes
10608 ;;
10609 esac
10610 ;;
10611
10612 bsdi[45]*)
10613 export_dynamic_flag_spec=-rdynamic
10614 ;;
10615
10616 cygwin* | mingw* | pw32* | cegcc*)
10617 # When not using gcc, we currently assume that we are using
10618 # Microsoft Visual C++ or Intel C++ Compiler.
10619 # hardcode_libdir_flag_spec is actually meaningless, as there is
10620 # no search path for DLLs.
10621 case $cc_basename in
10622 cl* | icl*)
10623 # Native MSVC or ICC
10624 hardcode_libdir_flag_spec=' '
10625 allow_undefined_flag=unsupported
10626 always_export_symbols=yes
10627 file_list_spec='@'
10628 # Tell ltmain to make .lib files, not .a files.
10629 libext=lib
10630 # Tell ltmain to make .dll files, not .so files.
10631 shrext_cmds=.dll
10632 # FIXME: Setting linknames here is a bad hack.
10633 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10634 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10635 cp "$export_symbols" "$output_objdir/$soname.def";
10636 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10637 else
10638 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10639 fi~
10640 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10641 linknames='
10642 # The linker will not automatically build a static lib if we build a DLL.
10643 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10644 enable_shared_with_static_runtimes=yes
10645 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10647 # Don't use ranlib
10648 old_postinstall_cmds='chmod 644 $oldlib'
10649 postlink_cmds='lt_outputfile="@OUTPUT@"~
10650 lt_tool_outputfile="@TOOL_OUTPUT@"~
10651 case $lt_outputfile in
10652 *.exe|*.EXE) ;;
10653 *)
10654 lt_outputfile=$lt_outputfile.exe
10655 lt_tool_outputfile=$lt_tool_outputfile.exe
10656 ;;
10657 esac~
10658 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10659 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10660 $RM "$lt_outputfile.manifest";
10661 fi'
10662 ;;
10663 *)
10664 # Assume MSVC and ICC wrapper
10665 hardcode_libdir_flag_spec=' '
10666 allow_undefined_flag=unsupported
10667 # Tell ltmain to make .lib files, not .a files.
10668 libext=lib
10669 # Tell ltmain to make .dll files, not .so files.
10670 shrext_cmds=.dll
10671 # FIXME: Setting linknames here is a bad hack.
10672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10673 # The linker will automatically build a .lib file if we build a DLL.
10674 old_archive_from_new_cmds='true'
10675 # FIXME: Should let the user specify the lib program.
10676 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10677 enable_shared_with_static_runtimes=yes
10678 ;;
10679 esac
10680 ;;
10681
10682 darwin* | rhapsody*)
10683
10684
10685 archive_cmds_need_lc=no
10686 hardcode_direct=no
10687 hardcode_automatic=yes
10688 hardcode_shlibpath_var=unsupported
10689 if test yes = "$lt_cv_ld_force_load"; then
10690 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\"`'
10691
10692 else
10693 whole_archive_flag_spec=''
10694 fi
10695 link_all_deplibs=yes
10696 allow_undefined_flag=$_lt_dar_allow_undefined
10697 case $cc_basename in
10698 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10699 *) _lt_dar_can_shared=$GCC ;;
10700 esac
10701 if test yes = "$_lt_dar_can_shared"; then
10702 output_verbose_link_cmd=func_echo_all
10703 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10704 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10705 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"
10706 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"
10707
10708 else
10709 ld_shlibs=no
10710 fi
10711
10712 ;;
10713
10714 dgux*)
10715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716 hardcode_libdir_flag_spec='-L$libdir'
10717 hardcode_shlibpath_var=no
10718 ;;
10719
10720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10721 # support. Future versions do this automatically, but an explicit c++rt0.o
10722 # does not break anything, and helps significantly (at the cost of a little
10723 # extra space).
10724 freebsd2.2*)
10725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10726 hardcode_libdir_flag_spec='-R$libdir'
10727 hardcode_direct=yes
10728 hardcode_shlibpath_var=no
10729 ;;
10730
10731 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10732 freebsd2.*)
10733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10734 hardcode_direct=yes
10735 hardcode_minus_L=yes
10736 hardcode_shlibpath_var=no
10737 ;;
10738
10739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10740 freebsd* | dragonfly* | midnightbsd*)
10741 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10742 hardcode_libdir_flag_spec='-R$libdir'
10743 hardcode_direct=yes
10744 hardcode_shlibpath_var=no
10745 ;;
10746
10747 hpux9*)
10748 if test yes = "$GCC"; then
10749 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'
10750 else
10751 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'
10752 fi
10753 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10754 hardcode_libdir_separator=:
10755 hardcode_direct=yes
10756
10757 # hardcode_minus_L: Not really in the search PATH,
10758 # but as the default location of the library.
10759 hardcode_minus_L=yes
10760 export_dynamic_flag_spec='$wl-E'
10761 ;;
10762
10763 hpux10*)
10764 if test yes,no = "$GCC,$with_gnu_ld"; then
10765 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10766 else
10767 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10768 fi
10769 if test no = "$with_gnu_ld"; then
10770 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10771 hardcode_libdir_separator=:
10772 hardcode_direct=yes
10773 hardcode_direct_absolute=yes
10774 export_dynamic_flag_spec='$wl-E'
10775 # hardcode_minus_L: Not really in the search PATH,
10776 # but as the default location of the library.
10777 hardcode_minus_L=yes
10778 fi
10779 ;;
10780
10781 hpux11*)
10782 if test yes,no = "$GCC,$with_gnu_ld"; then
10783 case $host_cpu in
10784 hppa*64*)
10785 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 ;;
10787 ia64*)
10788 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10789 ;;
10790 *)
10791 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10792 ;;
10793 esac
10794 else
10795 case $host_cpu in
10796 hppa*64*)
10797 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10798 ;;
10799 ia64*)
10800 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10801 ;;
10802 *)
10803
10804 # Older versions of the 11.00 compiler do not understand -b yet
10805 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10807 printf %s "checking if $CC understands -b... " >&6; }
10808 if test ${lt_cv_prog_compiler__b+y}
10809 then :
10810 printf %s "(cached) " >&6
10811 else $as_nop
10812 lt_cv_prog_compiler__b=no
10813 save_LDFLAGS=$LDFLAGS
10814 LDFLAGS="$LDFLAGS -b"
10815 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10817 # The linker can only warn and ignore the option if not recognized
10818 # So say no if there are warnings
10819 if test -s conftest.err; then
10820 # Append any errors to the config.log.
10821 cat conftest.err 1>&5
10822 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10824 if diff conftest.exp conftest.er2 >/dev/null; then
10825 lt_cv_prog_compiler__b=yes
10826 fi
10827 else
10828 lt_cv_prog_compiler__b=yes
10829 fi
10830 fi
10831 $RM -r conftest*
10832 LDFLAGS=$save_LDFLAGS
10833
10834 fi
10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10836 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10837
10838 if test yes = "$lt_cv_prog_compiler__b"; then
10839 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10840 else
10841 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10842 fi
10843
10844 ;;
10845 esac
10846 fi
10847 if test no = "$with_gnu_ld"; then
10848 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10849 hardcode_libdir_separator=:
10850
10851 case $host_cpu in
10852 hppa*64*|ia64*)
10853 hardcode_direct=no
10854 hardcode_shlibpath_var=no
10855 ;;
10856 *)
10857 hardcode_direct=yes
10858 hardcode_direct_absolute=yes
10859 export_dynamic_flag_spec='$wl-E'
10860
10861 # hardcode_minus_L: Not really in the search PATH,
10862 # but as the default location of the library.
10863 hardcode_minus_L=yes
10864 ;;
10865 esac
10866 fi
10867 ;;
10868
10869 irix5* | irix6* | nonstopux*)
10870 if test yes = "$GCC"; then
10871 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'
10872 # Try to use the -exported_symbol ld option, if it does not
10873 # work, assume that -exports_file does not work either and
10874 # implicitly export all symbols.
10875 # This should be the same for all languages, so no per-tag cache variable.
10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10877 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10878 if test ${lt_cv_irix_exported_symbol+y}
10879 then :
10880 printf %s "(cached) " >&6
10881 else $as_nop
10882 save_LDFLAGS=$LDFLAGS
10883 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10886 int foo (void) { return 0; }
10887 _ACEOF
10888 if ac_fn_c_try_link "$LINENO"
10889 then :
10890 lt_cv_irix_exported_symbol=yes
10891 else $as_nop
10892 lt_cv_irix_exported_symbol=no
10893 fi
10894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10895 conftest$ac_exeext conftest.$ac_ext
10896 LDFLAGS=$save_LDFLAGS
10897 fi
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10899 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10900 if test yes = "$lt_cv_irix_exported_symbol"; then
10901 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'
10902 fi
10903 link_all_deplibs=no
10904 else
10905 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'
10906 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'
10907 fi
10908 archive_cmds_need_lc='no'
10909 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10910 hardcode_libdir_separator=:
10911 inherit_rpath=yes
10912 link_all_deplibs=yes
10913 ;;
10914
10915 linux*)
10916 case $cc_basename in
10917 tcc*)
10918 # Fabrice Bellard et al's Tiny C Compiler
10919 ld_shlibs=yes
10920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10922 ;;
10923 esac
10924 ;;
10925
10926 netbsd* | netbsdelf*-gnu)
10927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10929 else
10930 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10931 fi
10932 hardcode_libdir_flag_spec='-R$libdir'
10933 hardcode_direct=yes
10934 hardcode_shlibpath_var=no
10935 ;;
10936
10937 newsos6)
10938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10939 hardcode_direct=yes
10940 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10941 hardcode_libdir_separator=:
10942 hardcode_shlibpath_var=no
10943 ;;
10944
10945 *nto* | *qnx*)
10946 ;;
10947
10948 openbsd* | bitrig*)
10949 if test -f /usr/libexec/ld.so; then
10950 hardcode_direct=yes
10951 hardcode_shlibpath_var=no
10952 hardcode_direct_absolute=yes
10953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10954 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10955 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10956 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10957 export_dynamic_flag_spec='$wl-E'
10958 else
10959 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10960 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10961 fi
10962 else
10963 ld_shlibs=no
10964 fi
10965 ;;
10966
10967 os2*)
10968 hardcode_libdir_flag_spec='-L$libdir'
10969 hardcode_minus_L=yes
10970 allow_undefined_flag=unsupported
10971 shrext_cmds=.dll
10972 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10973 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10974 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10975 $ECHO EXPORTS >> $output_objdir/$libname.def~
10976 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10977 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10978 emximp -o $lib $output_objdir/$libname.def'
10979 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10980 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10981 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10982 $ECHO EXPORTS >> $output_objdir/$libname.def~
10983 prefix_cmds="$SED"~
10984 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10985 prefix_cmds="$prefix_cmds -e 1d";
10986 fi~
10987 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10988 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10989 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10990 emximp -o $lib $output_objdir/$libname.def'
10991 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10992 enable_shared_with_static_runtimes=yes
10993 file_list_spec='@'
10994 ;;
10995
10996 osf3*)
10997 if test yes = "$GCC"; then
10998 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10999 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'
11000 else
11001 allow_undefined_flag=' -expect_unresolved \*'
11002 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'
11003 fi
11004 archive_cmds_need_lc='no'
11005 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11006 hardcode_libdir_separator=:
11007 ;;
11008
11009 osf4* | osf5*) # as osf3* with the addition of -msym flag
11010 if test yes = "$GCC"; then
11011 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11012 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'
11013 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11014 else
11015 allow_undefined_flag=' -expect_unresolved \*'
11016 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'
11017 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~
11018 $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'
11019
11020 # Both c and cxx compiler support -rpath directly
11021 hardcode_libdir_flag_spec='-rpath $libdir'
11022 fi
11023 archive_cmds_need_lc='no'
11024 hardcode_libdir_separator=:
11025 ;;
11026
11027 solaris*)
11028 no_undefined_flag=' -z defs'
11029 if test yes = "$GCC"; then
11030 wlarc='$wl'
11031 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11033 $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'
11034 else
11035 case `$CC -V 2>&1` in
11036 *"Compilers 5.0"*)
11037 wlarc=''
11038 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11040 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11041 ;;
11042 *)
11043 wlarc='$wl'
11044 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11046 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11047 ;;
11048 esac
11049 fi
11050 hardcode_libdir_flag_spec='-R$libdir'
11051 hardcode_shlibpath_var=no
11052 case $host_os in
11053 solaris2.[0-5] | solaris2.[0-5].*) ;;
11054 *)
11055 # The compiler driver will combine and reorder linker options,
11056 # but understands '-z linker_flag'. GCC discards it without '$wl',
11057 # but is careful enough not to reorder.
11058 # Supported since Solaris 2.6 (maybe 2.5.1?)
11059 if test yes = "$GCC"; then
11060 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11061 else
11062 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11063 fi
11064 ;;
11065 esac
11066 link_all_deplibs=yes
11067 ;;
11068
11069 sunos4*)
11070 if test sequent = "$host_vendor"; then
11071 # Use $CC to link under sequent, because it throws in some extra .o
11072 # files that make .init and .fini sections work.
11073 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11074 else
11075 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11076 fi
11077 hardcode_libdir_flag_spec='-L$libdir'
11078 hardcode_direct=yes
11079 hardcode_minus_L=yes
11080 hardcode_shlibpath_var=no
11081 ;;
11082
11083 sysv4)
11084 case $host_vendor in
11085 sni)
11086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11087 hardcode_direct=yes # is this really true???
11088 ;;
11089 siemens)
11090 ## LD is ld it makes a PLAMLIB
11091 ## CC just makes a GrossModule.
11092 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11093 reload_cmds='$CC -r -o $output$reload_objs'
11094 hardcode_direct=no
11095 ;;
11096 motorola)
11097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11098 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11099 ;;
11100 esac
11101 runpath_var='LD_RUN_PATH'
11102 hardcode_shlibpath_var=no
11103 ;;
11104
11105 sysv4.3*)
11106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11107 hardcode_shlibpath_var=no
11108 export_dynamic_flag_spec='-Bexport'
11109 ;;
11110
11111 sysv4*MP*)
11112 if test -d /usr/nec; then
11113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11114 hardcode_shlibpath_var=no
11115 runpath_var=LD_RUN_PATH
11116 hardcode_runpath_var=yes
11117 ld_shlibs=yes
11118 fi
11119 ;;
11120
11121 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11122 no_undefined_flag='$wl-z,text'
11123 archive_cmds_need_lc=no
11124 hardcode_shlibpath_var=no
11125 runpath_var='LD_RUN_PATH'
11126
11127 if test yes = "$GCC"; then
11128 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11129 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11130 else
11131 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11132 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11133 fi
11134 ;;
11135
11136 sysv5* | sco3.2v5* | sco5v6*)
11137 # Note: We CANNOT use -z defs as we might desire, because we do not
11138 # link with -lc, and that would cause any symbols used from libc to
11139 # always be unresolved, which means just about no library would
11140 # ever link correctly. If we're not using GNU ld we use -z text
11141 # though, which does catch some bad symbols but isn't as heavy-handed
11142 # as -z defs.
11143 no_undefined_flag='$wl-z,text'
11144 allow_undefined_flag='$wl-z,nodefs'
11145 archive_cmds_need_lc=no
11146 hardcode_shlibpath_var=no
11147 hardcode_libdir_flag_spec='$wl-R,$libdir'
11148 hardcode_libdir_separator=':'
11149 link_all_deplibs=yes
11150 export_dynamic_flag_spec='$wl-Bexport'
11151 runpath_var='LD_RUN_PATH'
11152
11153 if test yes = "$GCC"; then
11154 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11155 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11156 else
11157 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11158 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159 fi
11160 ;;
11161
11162 uts4*)
11163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11164 hardcode_libdir_flag_spec='-L$libdir'
11165 hardcode_shlibpath_var=no
11166 ;;
11167
11168 *)
11169 ld_shlibs=no
11170 ;;
11171 esac
11172
11173 if test sni = "$host_vendor"; then
11174 case $host in
11175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11176 export_dynamic_flag_spec='$wl-Blargedynsym'
11177 ;;
11178 esac
11179 fi
11180 fi
11181
11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11183 printf "%s\n" "$ld_shlibs" >&6; }
11184 test no = "$ld_shlibs" && can_build_shared=no
11185
11186 with_gnu_ld=$with_gnu_ld
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202 #
11203 # Do we need to explicitly link libc?
11204 #
11205 case "x$archive_cmds_need_lc" in
11206 x|xyes)
11207 # Assume -lc should be added
11208 archive_cmds_need_lc=yes
11209
11210 if test yes,yes = "$GCC,$enable_shared"; then
11211 case $archive_cmds in
11212 *'~'*)
11213 # FIXME: we may have to deal with multi-command sequences.
11214 ;;
11215 '$CC '*)
11216 # Test whether the compiler implicitly links with -lc since on some
11217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11218 # to ld, don't add -lc before -lgcc.
11219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11220 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11221 if test ${lt_cv_archive_cmds_need_lc+y}
11222 then :
11223 printf %s "(cached) " >&6
11224 else $as_nop
11225 $RM conftest*
11226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11227
11228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11229 (eval $ac_compile) 2>&5
11230 ac_status=$?
11231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11232 test $ac_status = 0; } 2>conftest.err; then
11233 soname=conftest
11234 lib=conftest
11235 libobjs=conftest.$ac_objext
11236 deplibs=
11237 wl=$lt_prog_compiler_wl
11238 pic_flag=$lt_prog_compiler_pic
11239 compiler_flags=-v
11240 linker_flags=-v
11241 verstring=
11242 output_objdir=.
11243 libname=conftest
11244 lt_save_allow_undefined_flag=$allow_undefined_flag
11245 allow_undefined_flag=
11246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11247 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11248 ac_status=$?
11249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11250 test $ac_status = 0; }
11251 then
11252 lt_cv_archive_cmds_need_lc=no
11253 else
11254 lt_cv_archive_cmds_need_lc=yes
11255 fi
11256 allow_undefined_flag=$lt_save_allow_undefined_flag
11257 else
11258 cat conftest.err 1>&5
11259 fi
11260 $RM conftest*
11261
11262 fi
11263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11264 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11265 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11266 ;;
11267 esac
11268 fi
11269 ;;
11270 esac
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
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11424 printf %s "checking dynamic linker characteristics... " >&6; }
11425
11426 if test yes = "$GCC"; then
11427 case $host_os in
11428 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11429 *) lt_awk_arg='/^libraries:/' ;;
11430 esac
11431 case $host_os in
11432 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11433 *) lt_sed_strip_eq='s|=/|/|g' ;;
11434 esac
11435 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11436 case $lt_search_path_spec in
11437 *\;*)
11438 # if the path contains ";" then we assume it to be the separator
11439 # otherwise default to the standard path separator (i.e. ":") - it is
11440 # assumed that no part of a normal pathname contains ";" but that should
11441 # okay in the real world where ";" in dirpaths is itself problematic.
11442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11443 ;;
11444 *)
11445 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11446 ;;
11447 esac
11448 # Ok, now we have the path, separated by spaces, we can step through it
11449 # and add multilib dir if necessary...
11450 lt_tmp_lt_search_path_spec=
11451 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11452 # ...but if some path component already ends with the multilib dir we assume
11453 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11454 case "$lt_multi_os_dir; $lt_search_path_spec " in
11455 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11456 lt_multi_os_dir=
11457 ;;
11458 esac
11459 for lt_sys_path in $lt_search_path_spec; do
11460 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11462 elif test -n "$lt_multi_os_dir"; then
11463 test -d "$lt_sys_path" && \
11464 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11465 fi
11466 done
11467 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11468 BEGIN {RS = " "; FS = "/|\n";} {
11469 lt_foo = "";
11470 lt_count = 0;
11471 for (lt_i = NF; lt_i > 0; lt_i--) {
11472 if ($lt_i != "" && $lt_i != ".") {
11473 if ($lt_i == "..") {
11474 lt_count++;
11475 } else {
11476 if (lt_count == 0) {
11477 lt_foo = "/" $lt_i lt_foo;
11478 } else {
11479 lt_count--;
11480 }
11481 }
11482 }
11483 }
11484 if (lt_foo != "") { lt_freq[lt_foo]++; }
11485 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11486 }'`
11487 # AWK program above erroneously prepends '/' to C:/dos/paths
11488 # for these hosts.
11489 case $host_os in
11490 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11491 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11492 esac
11493 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11494 else
11495 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11496 fi
11497 library_names_spec=
11498 libname_spec='lib$name'
11499 soname_spec=
11500 shrext_cmds=.so
11501 postinstall_cmds=
11502 postuninstall_cmds=
11503 finish_cmds=
11504 finish_eval=
11505 shlibpath_var=
11506 shlibpath_overrides_runpath=unknown
11507 version_type=none
11508 dynamic_linker="$host_os ld.so"
11509 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11510 need_lib_prefix=unknown
11511 hardcode_into_libs=no
11512
11513 # when you set need_version to no, make sure it does not cause -set_version
11514 # flags to be left without arguments
11515 need_version=unknown
11516
11517
11518
11519 case $host_os in
11520 aix3*)
11521 version_type=linux # correct to gnu/linux during the next big refactor
11522 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11523 shlibpath_var=LIBPATH
11524
11525 # AIX 3 has no versioning support, so we append a major version to the name.
11526 soname_spec='$libname$release$shared_ext$major'
11527 ;;
11528
11529 aix[4-9]*)
11530 version_type=linux # correct to gnu/linux during the next big refactor
11531 need_lib_prefix=no
11532 need_version=no
11533 hardcode_into_libs=yes
11534 if test ia64 = "$host_cpu"; then
11535 # AIX 5 supports IA64
11536 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 else
11539 # With GCC up to 2.95.x, collect2 would create an import file
11540 # for dependence libraries. The import file would start with
11541 # the line '#! .'. This would cause the generated library to
11542 # depend on '.', always an invalid library. This was fixed in
11543 # development snapshots of GCC prior to 3.0.
11544 case $host_os in
11545 aix4 | aix4.[01] | aix4.[01].*)
11546 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11547 echo ' yes '
11548 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11549 :
11550 else
11551 can_build_shared=no
11552 fi
11553 ;;
11554 esac
11555 # Using Import Files as archive members, it is possible to support
11556 # filename-based versioning of shared library archives on AIX. While
11557 # this would work for both with and without runtime linking, it will
11558 # prevent static linking of such archives. So we do filename-based
11559 # shared library versioning with .so extension only, which is used
11560 # when both runtime linking and shared linking is enabled.
11561 # Unfortunately, runtime linking may impact performance, so we do
11562 # not want this to be the default eventually. Also, we use the
11563 # versioned .so libs for executables only if there is the -brtl
11564 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11565 # To allow for filename-based versioning support, we need to create
11566 # libNAME.so.V as an archive file, containing:
11567 # *) an Import File, referring to the versioned filename of the
11568 # archive as well as the shared archive member, telling the
11569 # bitwidth (32 or 64) of that shared object, and providing the
11570 # list of exported symbols of that shared object, eventually
11571 # decorated with the 'weak' keyword
11572 # *) the shared object with the F_LOADONLY flag set, to really avoid
11573 # it being seen by the linker.
11574 # At run time we better use the real file rather than another symlink,
11575 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11576
11577 case $with_aix_soname,$aix_use_runtimelinking in
11578 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11579 # soname into executable. Probably we can add versioning support to
11580 # collect2, so additional links can be useful in future.
11581 aix,yes) # traditional libtool
11582 dynamic_linker='AIX unversionable lib.so'
11583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11584 # instead of lib<name>.a to let people know that these are not
11585 # typical AIX shared libraries.
11586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11587 ;;
11588 aix,no) # traditional AIX only
11589 dynamic_linker='AIX lib.a(lib.so.V)'
11590 # We preserve .a as extension for shared libraries through AIX4.2
11591 # and later when we are not doing run time linking.
11592 library_names_spec='$libname$release.a $libname.a'
11593 soname_spec='$libname$release$shared_ext$major'
11594 ;;
11595 svr4,*) # full svr4 only
11596 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11597 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11598 # We do not specify a path in Import Files, so LIBPATH fires.
11599 shlibpath_overrides_runpath=yes
11600 ;;
11601 *,yes) # both, prefer svr4
11602 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11603 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11604 # unpreferred sharedlib libNAME.a needs extra handling
11605 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"'
11606 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"'
11607 # We do not specify a path in Import Files, so LIBPATH fires.
11608 shlibpath_overrides_runpath=yes
11609 ;;
11610 *,no) # both, prefer aix
11611 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11612 library_names_spec='$libname$release.a $libname.a'
11613 soname_spec='$libname$release$shared_ext$major'
11614 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11615 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)'
11616 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"'
11617 ;;
11618 esac
11619 shlibpath_var=LIBPATH
11620 fi
11621 ;;
11622
11623 amigaos*)
11624 case $host_cpu in
11625 powerpc)
11626 # Since July 2007 AmigaOS4 officially supports .so libraries.
11627 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11629 ;;
11630 m68k)
11631 library_names_spec='$libname.ixlibrary $libname.a'
11632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11633 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'
11634 ;;
11635 esac
11636 ;;
11637
11638 beos*)
11639 library_names_spec='$libname$shared_ext'
11640 dynamic_linker="$host_os ld.so"
11641 shlibpath_var=LIBRARY_PATH
11642 ;;
11643
11644 bsdi[45]*)
11645 version_type=linux # correct to gnu/linux during the next big refactor
11646 need_version=no
11647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11648 soname_spec='$libname$release$shared_ext$major'
11649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11653 # the default ld.so.conf also contains /usr/contrib/lib and
11654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11655 # libtool to hard-code these into programs
11656 ;;
11657
11658 cygwin* | mingw* | pw32* | cegcc*)
11659 version_type=windows
11660 shrext_cmds=.dll
11661 need_version=no
11662 need_lib_prefix=no
11663
11664 case $GCC,$cc_basename in
11665 yes,*)
11666 # gcc
11667 library_names_spec='$libname.dll.a'
11668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11669 postinstall_cmds='base_file=`basename \$file`~
11670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11671 dldir=$destdir/`dirname \$dlpath`~
11672 test -d \$dldir || mkdir -p \$dldir~
11673 $install_prog $dir/$dlname \$dldir/$dlname~
11674 chmod a+x \$dldir/$dlname~
11675 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11676 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11677 fi'
11678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11679 dlpath=$dir/\$dldll~
11680 $RM \$dlpath'
11681 shlibpath_overrides_runpath=yes
11682
11683 case $host_os in
11684 cygwin*)
11685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11686 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11687
11688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11689 ;;
11690 mingw* | cegcc*)
11691 # MinGW DLLs use traditional 'lib' prefix
11692 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11693 ;;
11694 pw32*)
11695 # pw32 DLLs use 'pw' prefix rather than 'lib'
11696 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11697 ;;
11698 esac
11699 dynamic_linker='Win32 ld.exe'
11700 ;;
11701
11702 *,cl* | *,icl*)
11703 # Native MSVC or ICC
11704 libname_spec='$name'
11705 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11706 library_names_spec='$libname.dll.lib'
11707
11708 case $build_os in
11709 mingw*)
11710 sys_lib_search_path_spec=
11711 lt_save_ifs=$IFS
11712 IFS=';'
11713 for lt_path in $LIB
11714 do
11715 IFS=$lt_save_ifs
11716 # Let DOS variable expansion print the short 8.3 style file name.
11717 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11718 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11719 done
11720 IFS=$lt_save_ifs
11721 # Convert to MSYS style.
11722 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11723 ;;
11724 cygwin*)
11725 # Convert to unix form, then to dos form, then back to unix form
11726 # but this time dos style (no spaces!) so that the unix form looks
11727 # like /cygdrive/c/PROGRA~1:/cygdr...
11728 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11729 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11730 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11731 ;;
11732 *)
11733 sys_lib_search_path_spec=$LIB
11734 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11735 # It is most probably a Windows format PATH.
11736 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11737 else
11738 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11739 fi
11740 # FIXME: find the short name or the path components, as spaces are
11741 # common. (e.g. "Program Files" -> "PROGRA~1")
11742 ;;
11743 esac
11744
11745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11746 postinstall_cmds='base_file=`basename \$file`~
11747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11748 dldir=$destdir/`dirname \$dlpath`~
11749 test -d \$dldir || mkdir -p \$dldir~
11750 $install_prog $dir/$dlname \$dldir/$dlname'
11751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11752 dlpath=$dir/\$dldll~
11753 $RM \$dlpath'
11754 shlibpath_overrides_runpath=yes
11755 dynamic_linker='Win32 link.exe'
11756 ;;
11757
11758 *)
11759 # Assume MSVC and ICC wrapper
11760 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11761 dynamic_linker='Win32 ld.exe'
11762 ;;
11763 esac
11764 # FIXME: first we should search . and the directory the executable is in
11765 shlibpath_var=PATH
11766 ;;
11767
11768 darwin* | rhapsody*)
11769 dynamic_linker="$host_os dyld"
11770 version_type=darwin
11771 need_lib_prefix=no
11772 need_version=no
11773 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11774 soname_spec='$libname$release$major$shared_ext'
11775 shlibpath_overrides_runpath=yes
11776 shlibpath_var=DYLD_LIBRARY_PATH
11777 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11778
11779 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11781 ;;
11782
11783 dgux*)
11784 version_type=linux # correct to gnu/linux during the next big refactor
11785 need_lib_prefix=no
11786 need_version=no
11787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11788 soname_spec='$libname$release$shared_ext$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 ;;
11791
11792 freebsd* | dragonfly* | midnightbsd*)
11793 # DragonFly does not have aout. When/if they implement a new
11794 # versioning mechanism, adjust this.
11795 if test -x /usr/bin/objformat; then
11796 objformat=`/usr/bin/objformat`
11797 else
11798 case $host_os in
11799 freebsd[23].*) objformat=aout ;;
11800 *) objformat=elf ;;
11801 esac
11802 fi
11803 version_type=freebsd-$objformat
11804 case $version_type in
11805 freebsd-elf*)
11806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11807 soname_spec='$libname$release$shared_ext$major'
11808 need_version=no
11809 need_lib_prefix=no
11810 ;;
11811 freebsd-*)
11812 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11813 need_version=yes
11814 ;;
11815 esac
11816 shlibpath_var=LD_LIBRARY_PATH
11817 case $host_os in
11818 freebsd2.*)
11819 shlibpath_overrides_runpath=yes
11820 ;;
11821 freebsd3.[01]* | freebsdelf3.[01]*)
11822 shlibpath_overrides_runpath=yes
11823 hardcode_into_libs=yes
11824 ;;
11825 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11826 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11827 shlibpath_overrides_runpath=no
11828 hardcode_into_libs=yes
11829 ;;
11830 *) # from 4.6 on, and DragonFly
11831 shlibpath_overrides_runpath=yes
11832 hardcode_into_libs=yes
11833 ;;
11834 esac
11835 ;;
11836
11837 haiku*)
11838 version_type=linux # correct to gnu/linux during the next big refactor
11839 need_lib_prefix=no
11840 need_version=no
11841 dynamic_linker="$host_os runtime_loader"
11842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11843 soname_spec='$libname$release$shared_ext$major'
11844 shlibpath_var=LIBRARY_PATH
11845 shlibpath_overrides_runpath=no
11846 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11847 hardcode_into_libs=yes
11848 ;;
11849
11850 hpux9* | hpux10* | hpux11*)
11851 # Give a soname corresponding to the major version so that dld.sl refuses to
11852 # link against other versions.
11853 version_type=sunos
11854 need_lib_prefix=no
11855 need_version=no
11856 case $host_cpu in
11857 ia64*)
11858 shrext_cmds='.so'
11859 hardcode_into_libs=yes
11860 dynamic_linker="$host_os dld.so"
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11864 soname_spec='$libname$release$shared_ext$major'
11865 if test 32 = "$HPUX_IA64_MODE"; then
11866 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11867 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11868 else
11869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11870 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11871 fi
11872 ;;
11873 hppa*64*)
11874 shrext_cmds='.sl'
11875 hardcode_into_libs=yes
11876 dynamic_linker="$host_os dld.sl"
11877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11883 ;;
11884 *)
11885 shrext_cmds='.sl'
11886 dynamic_linker="$host_os dld.sl"
11887 shlibpath_var=SHLIB_PATH
11888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11890 soname_spec='$libname$release$shared_ext$major'
11891 ;;
11892 esac
11893 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11894 postinstall_cmds='chmod 555 $lib'
11895 # or fails outright, so override atomically:
11896 install_override_mode=555
11897 ;;
11898
11899 interix[3-9]*)
11900 version_type=linux # correct to gnu/linux during the next big refactor
11901 need_lib_prefix=no
11902 need_version=no
11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11904 soname_spec='$libname$release$shared_ext$major'
11905 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 shlibpath_overrides_runpath=no
11908 hardcode_into_libs=yes
11909 ;;
11910
11911 irix5* | irix6* | nonstopux*)
11912 case $host_os in
11913 nonstopux*) version_type=nonstopux ;;
11914 *)
11915 if test yes = "$lt_cv_prog_gnu_ld"; then
11916 version_type=linux # correct to gnu/linux during the next big refactor
11917 else
11918 version_type=irix
11919 fi ;;
11920 esac
11921 need_lib_prefix=no
11922 need_version=no
11923 soname_spec='$libname$release$shared_ext$major'
11924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11925 case $host_os in
11926 irix5* | nonstopux*)
11927 libsuff= shlibsuff=
11928 ;;
11929 *)
11930 case $LD in # libtool.m4 will add one of these switches to LD
11931 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11932 libsuff= shlibsuff= libmagic=32-bit;;
11933 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11934 libsuff=32 shlibsuff=N32 libmagic=N32;;
11935 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11936 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11937 *) libsuff= shlibsuff= libmagic=never-match;;
11938 esac
11939 ;;
11940 esac
11941 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11942 shlibpath_overrides_runpath=no
11943 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11944 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11945 hardcode_into_libs=yes
11946 ;;
11947
11948 # No shared lib support for Linux oldld, aout, or coff.
11949 linux*oldld* | linux*aout* | linux*coff*)
11950 dynamic_linker=no
11951 ;;
11952
11953 linux*android*)
11954 version_type=none # Android doesn't support versioned libraries.
11955 need_lib_prefix=no
11956 need_version=no
11957 library_names_spec='$libname$release$shared_ext'
11958 soname_spec='$libname$release$shared_ext'
11959 finish_cmds=
11960 shlibpath_var=LD_LIBRARY_PATH
11961 shlibpath_overrides_runpath=yes
11962
11963 # This implies no fast_install, which is unacceptable.
11964 # Some rework will be needed to allow for fast_install
11965 # before this can be enabled.
11966 hardcode_into_libs=yes
11967
11968 dynamic_linker='Android linker'
11969 # Don't embed -rpath directories since the linker doesn't support them.
11970 hardcode_libdir_flag_spec='-L$libdir'
11971 ;;
11972
11973 # This must be glibc/ELF.
11974 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11975 version_type=linux # correct to gnu/linux during the next big refactor
11976 need_lib_prefix=no
11977 need_version=no
11978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11979 soname_spec='$libname$release$shared_ext$major'
11980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11981 shlibpath_var=LD_LIBRARY_PATH
11982 shlibpath_overrides_runpath=no
11983
11984 # Some binutils ld are patched to set DT_RUNPATH
11985 if test ${lt_cv_shlibpath_overrides_runpath+y}
11986 then :
11987 printf %s "(cached) " >&6
11988 else $as_nop
11989 lt_cv_shlibpath_overrides_runpath=no
11990 save_LDFLAGS=$LDFLAGS
11991 save_libdir=$libdir
11992 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11993 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996
11997 int
11998 main (void)
11999 {
12000
12001 ;
12002 return 0;
12003 }
12004 _ACEOF
12005 if ac_fn_c_try_link "$LINENO"
12006 then :
12007 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12008 then :
12009 lt_cv_shlibpath_overrides_runpath=yes
12010 fi
12011 fi
12012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12013 conftest$ac_exeext conftest.$ac_ext
12014 LDFLAGS=$save_LDFLAGS
12015 libdir=$save_libdir
12016
12017 fi
12018
12019 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12020
12021 # This implies no fast_install, which is unacceptable.
12022 # Some rework will be needed to allow for fast_install
12023 # before this can be enabled.
12024 hardcode_into_libs=yes
12025
12026 # Ideally, we could use ldconfig to report *all* directores which are
12027 # searched for libraries, however this is still not possible. Aside from not
12028 # being certain /sbin/ldconfig is available, command
12029 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12030 # even though it is searched at run-time. Try to do the best guess by
12031 # appending ld.so.conf contents (and includes) to the search path.
12032 if test -f /etc/ld.so.conf; then
12033 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' ' '`
12034 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12035 fi
12036
12037 # We used to test for /lib/ld.so.1 and disable shared libraries on
12038 # powerpc, because MkLinux only supported shared libraries with the
12039 # GNU dynamic linker. Since this was broken with cross compilers,
12040 # most powerpc-linux boxes support dynamic linking these days and
12041 # people can always --disable-shared, the test was removed, and we
12042 # assume the GNU/Linux dynamic linker is in use.
12043 dynamic_linker='GNU/Linux ld.so'
12044 ;;
12045
12046 netbsdelf*-gnu)
12047 version_type=linux
12048 need_lib_prefix=no
12049 need_version=no
12050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12051 soname_spec='${libname}${release}${shared_ext}$major'
12052 shlibpath_var=LD_LIBRARY_PATH
12053 shlibpath_overrides_runpath=no
12054 hardcode_into_libs=yes
12055 dynamic_linker='NetBSD ld.elf_so'
12056 ;;
12057
12058 netbsd*)
12059 version_type=sunos
12060 need_lib_prefix=no
12061 need_version=no
12062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12065 dynamic_linker='NetBSD (a.out) ld.so'
12066 else
12067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12068 soname_spec='$libname$release$shared_ext$major'
12069 dynamic_linker='NetBSD ld.elf_so'
12070 fi
12071 shlibpath_var=LD_LIBRARY_PATH
12072 shlibpath_overrides_runpath=yes
12073 hardcode_into_libs=yes
12074 ;;
12075
12076 newsos6)
12077 version_type=linux # correct to gnu/linux during the next big refactor
12078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 shlibpath_overrides_runpath=yes
12081 ;;
12082
12083 *nto* | *qnx*)
12084 version_type=qnx
12085 need_lib_prefix=no
12086 need_version=no
12087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12088 soname_spec='$libname$release$shared_ext$major'
12089 shlibpath_var=LD_LIBRARY_PATH
12090 shlibpath_overrides_runpath=no
12091 hardcode_into_libs=yes
12092 dynamic_linker='ldqnx.so'
12093 ;;
12094
12095 openbsd* | bitrig*)
12096 version_type=sunos
12097 sys_lib_dlsearch_path_spec=/usr/lib
12098 need_lib_prefix=no
12099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12100 need_version=no
12101 else
12102 need_version=yes
12103 fi
12104 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12106 shlibpath_var=LD_LIBRARY_PATH
12107 shlibpath_overrides_runpath=yes
12108 ;;
12109
12110 os2*)
12111 libname_spec='$name'
12112 version_type=windows
12113 shrext_cmds=.dll
12114 need_version=no
12115 need_lib_prefix=no
12116 # OS/2 can only load a DLL with a base name of 8 characters or less.
12117 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12118 v=$($ECHO $release$versuffix | tr -d .-);
12119 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12120 $ECHO $n$v`$shared_ext'
12121 library_names_spec='${libname}_dll.$libext'
12122 dynamic_linker='OS/2 ld.exe'
12123 shlibpath_var=BEGINLIBPATH
12124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12126 postinstall_cmds='base_file=`basename \$file`~
12127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12128 dldir=$destdir/`dirname \$dlpath`~
12129 test -d \$dldir || mkdir -p \$dldir~
12130 $install_prog $dir/$dlname \$dldir/$dlname~
12131 chmod a+x \$dldir/$dlname~
12132 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12133 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12134 fi'
12135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12136 dlpath=$dir/\$dldll~
12137 $RM \$dlpath'
12138 ;;
12139
12140 osf3* | osf4* | osf5*)
12141 version_type=osf
12142 need_lib_prefix=no
12143 need_version=no
12144 soname_spec='$libname$release$shared_ext$major'
12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12146 shlibpath_var=LD_LIBRARY_PATH
12147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12149 ;;
12150
12151 rdos*)
12152 dynamic_linker=no
12153 ;;
12154
12155 solaris*)
12156 version_type=linux # correct to gnu/linux during the next big refactor
12157 need_lib_prefix=no
12158 need_version=no
12159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12160 soname_spec='$libname$release$shared_ext$major'
12161 shlibpath_var=LD_LIBRARY_PATH
12162 shlibpath_overrides_runpath=yes
12163 hardcode_into_libs=yes
12164 # ldd complains unless libraries are executable
12165 postinstall_cmds='chmod +x $lib'
12166 ;;
12167
12168 sunos4*)
12169 version_type=sunos
12170 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12171 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12172 shlibpath_var=LD_LIBRARY_PATH
12173 shlibpath_overrides_runpath=yes
12174 if test yes = "$with_gnu_ld"; then
12175 need_lib_prefix=no
12176 fi
12177 need_version=yes
12178 ;;
12179
12180 sysv4 | sysv4.3*)
12181 version_type=linux # correct to gnu/linux during the next big refactor
12182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12183 soname_spec='$libname$release$shared_ext$major'
12184 shlibpath_var=LD_LIBRARY_PATH
12185 case $host_vendor in
12186 sni)
12187 shlibpath_overrides_runpath=no
12188 need_lib_prefix=no
12189 runpath_var=LD_RUN_PATH
12190 ;;
12191 siemens)
12192 need_lib_prefix=no
12193 ;;
12194 motorola)
12195 need_lib_prefix=no
12196 need_version=no
12197 shlibpath_overrides_runpath=no
12198 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12199 ;;
12200 esac
12201 ;;
12202
12203 sysv4*MP*)
12204 if test -d /usr/nec; then
12205 version_type=linux # correct to gnu/linux during the next big refactor
12206 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12207 soname_spec='$libname$shared_ext.$major'
12208 shlibpath_var=LD_LIBRARY_PATH
12209 fi
12210 ;;
12211
12212 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12213 version_type=sco
12214 need_lib_prefix=no
12215 need_version=no
12216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12217 soname_spec='$libname$release$shared_ext$major'
12218 shlibpath_var=LD_LIBRARY_PATH
12219 shlibpath_overrides_runpath=yes
12220 hardcode_into_libs=yes
12221 if test yes = "$with_gnu_ld"; then
12222 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12223 else
12224 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12225 case $host_os in
12226 sco3.2v5*)
12227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12228 ;;
12229 esac
12230 fi
12231 sys_lib_dlsearch_path_spec='/usr/lib'
12232 ;;
12233
12234 tpf*)
12235 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12236 version_type=linux # correct to gnu/linux during the next big refactor
12237 need_lib_prefix=no
12238 need_version=no
12239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12240 shlibpath_var=LD_LIBRARY_PATH
12241 shlibpath_overrides_runpath=no
12242 hardcode_into_libs=yes
12243 ;;
12244
12245 uts4*)
12246 version_type=linux # correct to gnu/linux during the next big refactor
12247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12248 soname_spec='$libname$release$shared_ext$major'
12249 shlibpath_var=LD_LIBRARY_PATH
12250 ;;
12251
12252 *)
12253 dynamic_linker=no
12254 ;;
12255 esac
12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12257 printf "%s\n" "$dynamic_linker" >&6; }
12258 test no = "$dynamic_linker" && can_build_shared=no
12259
12260 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12261 if test yes = "$GCC"; then
12262 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12263 fi
12264
12265 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12266 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12267 fi
12268
12269 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12270 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12271 fi
12272
12273 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12274 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12275
12276 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12277 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12278
12279 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12280 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12379 printf %s "checking how to hardcode library paths into programs... " >&6; }
12380 hardcode_action=
12381 if test -n "$hardcode_libdir_flag_spec" ||
12382 test -n "$runpath_var" ||
12383 test yes = "$hardcode_automatic"; then
12384
12385 # We can hardcode non-existent directories.
12386 if test no != "$hardcode_direct" &&
12387 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12388 # have to relink, otherwise we might link with an installed library
12389 # when we should be linking with a yet-to-be-installed one
12390 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12391 test no != "$hardcode_minus_L"; then
12392 # Linking always hardcodes the temporary library directory.
12393 hardcode_action=relink
12394 else
12395 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12396 hardcode_action=immediate
12397 fi
12398 else
12399 # We cannot hardcode anything, or else we can only hardcode existing
12400 # directories.
12401 hardcode_action=unsupported
12402 fi
12403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12404 printf "%s\n" "$hardcode_action" >&6; }
12405
12406 if test relink = "$hardcode_action" ||
12407 test yes = "$inherit_rpath"; then
12408 # Fast installation is not supported
12409 enable_fast_install=no
12410 elif test yes = "$shlibpath_overrides_runpath" ||
12411 test no = "$enable_shared"; then
12412 # Fast installation is not necessary
12413 enable_fast_install=needless
12414 fi
12415
12416
12417
12418
12419
12420
12421 if test yes != "$enable_dlopen"; then
12422 enable_dlopen=unknown
12423 enable_dlopen_self=unknown
12424 enable_dlopen_self_static=unknown
12425 else
12426 lt_cv_dlopen=no
12427 lt_cv_dlopen_libs=
12428
12429 case $host_os in
12430 beos*)
12431 lt_cv_dlopen=load_add_on
12432 lt_cv_dlopen_libs=
12433 lt_cv_dlopen_self=yes
12434 ;;
12435
12436 mingw* | pw32* | cegcc*)
12437 lt_cv_dlopen=LoadLibrary
12438 lt_cv_dlopen_libs=
12439 ;;
12440
12441 cygwin*)
12442 lt_cv_dlopen=dlopen
12443 lt_cv_dlopen_libs=
12444 ;;
12445
12446 darwin*)
12447 # if libdl is installed we need to link against it
12448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12449 printf %s "checking for dlopen in -ldl... " >&6; }
12450 if test ${ac_cv_lib_dl_dlopen+y}
12451 then :
12452 printf %s "(cached) " >&6
12453 else $as_nop
12454 ac_check_lib_save_LIBS=$LIBS
12455 LIBS="-ldl $LIBS"
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12458
12459 /* Override any GCC internal prototype to avoid an error.
12460 Use char because int might match the return type of a GCC
12461 builtin and then its argument prototype would still apply. */
12462 char dlopen ();
12463 int
12464 main (void)
12465 {
12466 return dlopen ();
12467 ;
12468 return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_c_try_link "$LINENO"
12472 then :
12473 ac_cv_lib_dl_dlopen=yes
12474 else $as_nop
12475 ac_cv_lib_dl_dlopen=no
12476 fi
12477 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12478 conftest$ac_exeext conftest.$ac_ext
12479 LIBS=$ac_check_lib_save_LIBS
12480 fi
12481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12482 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12483 if test "x$ac_cv_lib_dl_dlopen" = xyes
12484 then :
12485 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12486 else $as_nop
12487
12488 lt_cv_dlopen=dyld
12489 lt_cv_dlopen_libs=
12490 lt_cv_dlopen_self=yes
12491
12492 fi
12493
12494 ;;
12495
12496 tpf*)
12497 # Don't try to run any link tests for TPF. We know it's impossible
12498 # because TPF is a cross-compiler, and we know how we open DSOs.
12499 lt_cv_dlopen=dlopen
12500 lt_cv_dlopen_libs=
12501 lt_cv_dlopen_self=no
12502 ;;
12503
12504 *)
12505 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12506 if test "x$ac_cv_func_shl_load" = xyes
12507 then :
12508 lt_cv_dlopen=shl_load
12509 else $as_nop
12510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12511 printf %s "checking for shl_load in -ldld... " >&6; }
12512 if test ${ac_cv_lib_dld_shl_load+y}
12513 then :
12514 printf %s "(cached) " >&6
12515 else $as_nop
12516 ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-ldld $LIBS"
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12520
12521 /* Override any GCC internal prototype to avoid an error.
12522 Use char because int might match the return type of a GCC
12523 builtin and then its argument prototype would still apply. */
12524 char shl_load ();
12525 int
12526 main (void)
12527 {
12528 return shl_load ();
12529 ;
12530 return 0;
12531 }
12532 _ACEOF
12533 if ac_fn_c_try_link "$LINENO"
12534 then :
12535 ac_cv_lib_dld_shl_load=yes
12536 else $as_nop
12537 ac_cv_lib_dld_shl_load=no
12538 fi
12539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12540 conftest$ac_exeext conftest.$ac_ext
12541 LIBS=$ac_check_lib_save_LIBS
12542 fi
12543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12544 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12545 if test "x$ac_cv_lib_dld_shl_load" = xyes
12546 then :
12547 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12548 else $as_nop
12549 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12550 if test "x$ac_cv_func_dlopen" = xyes
12551 then :
12552 lt_cv_dlopen=dlopen
12553 else $as_nop
12554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12555 printf %s "checking for dlopen in -ldl... " >&6; }
12556 if test ${ac_cv_lib_dl_dlopen+y}
12557 then :
12558 printf %s "(cached) " >&6
12559 else $as_nop
12560 ac_check_lib_save_LIBS=$LIBS
12561 LIBS="-ldl $LIBS"
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564
12565 /* Override any GCC internal prototype to avoid an error.
12566 Use char because int might match the return type of a GCC
12567 builtin and then its argument prototype would still apply. */
12568 char dlopen ();
12569 int
12570 main (void)
12571 {
12572 return dlopen ();
12573 ;
12574 return 0;
12575 }
12576 _ACEOF
12577 if ac_fn_c_try_link "$LINENO"
12578 then :
12579 ac_cv_lib_dl_dlopen=yes
12580 else $as_nop
12581 ac_cv_lib_dl_dlopen=no
12582 fi
12583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12584 conftest$ac_exeext conftest.$ac_ext
12585 LIBS=$ac_check_lib_save_LIBS
12586 fi
12587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12588 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12589 if test "x$ac_cv_lib_dl_dlopen" = xyes
12590 then :
12591 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12592 else $as_nop
12593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12594 printf %s "checking for dlopen in -lsvld... " >&6; }
12595 if test ${ac_cv_lib_svld_dlopen+y}
12596 then :
12597 printf %s "(cached) " >&6
12598 else $as_nop
12599 ac_check_lib_save_LIBS=$LIBS
12600 LIBS="-lsvld $LIBS"
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12603
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12607 char dlopen ();
12608 int
12609 main (void)
12610 {
12611 return dlopen ();
12612 ;
12613 return 0;
12614 }
12615 _ACEOF
12616 if ac_fn_c_try_link "$LINENO"
12617 then :
12618 ac_cv_lib_svld_dlopen=yes
12619 else $as_nop
12620 ac_cv_lib_svld_dlopen=no
12621 fi
12622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12623 conftest$ac_exeext conftest.$ac_ext
12624 LIBS=$ac_check_lib_save_LIBS
12625 fi
12626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12627 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12628 if test "x$ac_cv_lib_svld_dlopen" = xyes
12629 then :
12630 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12631 else $as_nop
12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12633 printf %s "checking for dld_link in -ldld... " >&6; }
12634 if test ${ac_cv_lib_dld_dld_link+y}
12635 then :
12636 printf %s "(cached) " >&6
12637 else $as_nop
12638 ac_check_lib_save_LIBS=$LIBS
12639 LIBS="-ldld $LIBS"
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642
12643 /* Override any GCC internal prototype to avoid an error.
12644 Use char because int might match the return type of a GCC
12645 builtin and then its argument prototype would still apply. */
12646 char dld_link ();
12647 int
12648 main (void)
12649 {
12650 return dld_link ();
12651 ;
12652 return 0;
12653 }
12654 _ACEOF
12655 if ac_fn_c_try_link "$LINENO"
12656 then :
12657 ac_cv_lib_dld_dld_link=yes
12658 else $as_nop
12659 ac_cv_lib_dld_dld_link=no
12660 fi
12661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12662 conftest$ac_exeext conftest.$ac_ext
12663 LIBS=$ac_check_lib_save_LIBS
12664 fi
12665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12666 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12667 if test "x$ac_cv_lib_dld_dld_link" = xyes
12668 then :
12669 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12670 fi
12671
12672
12673 fi
12674
12675
12676 fi
12677
12678
12679 fi
12680
12681
12682 fi
12683
12684
12685 fi
12686
12687 ;;
12688 esac
12689
12690 if test no = "$lt_cv_dlopen"; then
12691 enable_dlopen=no
12692 else
12693 enable_dlopen=yes
12694 fi
12695
12696 case $lt_cv_dlopen in
12697 dlopen)
12698 save_CPPFLAGS=$CPPFLAGS
12699 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12700
12701 save_LDFLAGS=$LDFLAGS
12702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12703
12704 save_LIBS=$LIBS
12705 LIBS="$lt_cv_dlopen_libs $LIBS"
12706
12707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12708 printf %s "checking whether a program can dlopen itself... " >&6; }
12709 if test ${lt_cv_dlopen_self+y}
12710 then :
12711 printf %s "(cached) " >&6
12712 else $as_nop
12713 if test yes = "$cross_compiling"; then :
12714 lt_cv_dlopen_self=cross
12715 else
12716 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12717 lt_status=$lt_dlunknown
12718 cat > conftest.$ac_ext <<_LT_EOF
12719 #line $LINENO "configure"
12720 #include "confdefs.h"
12721
12722 #if HAVE_DLFCN_H
12723 #include <dlfcn.h>
12724 #endif
12725
12726 #include <stdio.h>
12727
12728 #ifdef RTLD_GLOBAL
12729 # define LT_DLGLOBAL RTLD_GLOBAL
12730 #else
12731 # ifdef DL_GLOBAL
12732 # define LT_DLGLOBAL DL_GLOBAL
12733 # else
12734 # define LT_DLGLOBAL 0
12735 # endif
12736 #endif
12737
12738 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12739 find out it does not work in some platform. */
12740 #ifndef LT_DLLAZY_OR_NOW
12741 # ifdef RTLD_LAZY
12742 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12743 # else
12744 # ifdef DL_LAZY
12745 # define LT_DLLAZY_OR_NOW DL_LAZY
12746 # else
12747 # ifdef RTLD_NOW
12748 # define LT_DLLAZY_OR_NOW RTLD_NOW
12749 # else
12750 # ifdef DL_NOW
12751 # define LT_DLLAZY_OR_NOW DL_NOW
12752 # else
12753 # define LT_DLLAZY_OR_NOW 0
12754 # endif
12755 # endif
12756 # endif
12757 # endif
12758 #endif
12759
12760 /* When -fvisibility=hidden is used, assume the code has been annotated
12761 correspondingly for the symbols needed. */
12762 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12763 int fnord () __attribute__((visibility("default")));
12764 #endif
12765
12766 int fnord () { return 42; }
12767 int main ()
12768 {
12769 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12770 int status = $lt_dlunknown;
12771
12772 if (self)
12773 {
12774 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12775 else
12776 {
12777 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12778 else puts (dlerror ());
12779 }
12780 /* dlclose (self); */
12781 }
12782 else
12783 puts (dlerror ());
12784
12785 return status;
12786 }
12787 _LT_EOF
12788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12789 (eval $ac_link) 2>&5
12790 ac_status=$?
12791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12792 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12793 (./conftest; exit; ) >&5 2>/dev/null
12794 lt_status=$?
12795 case x$lt_status in
12796 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12797 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12798 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12799 esac
12800 else :
12801 # compilation failed
12802 lt_cv_dlopen_self=no
12803 fi
12804 fi
12805 rm -fr conftest*
12806
12807
12808 fi
12809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12810 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12811
12812 if test yes = "$lt_cv_dlopen_self"; then
12813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12815 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12816 if test ${lt_cv_dlopen_self_static+y}
12817 then :
12818 printf %s "(cached) " >&6
12819 else $as_nop
12820 if test yes = "$cross_compiling"; then :
12821 lt_cv_dlopen_self_static=cross
12822 else
12823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12824 lt_status=$lt_dlunknown
12825 cat > conftest.$ac_ext <<_LT_EOF
12826 #line $LINENO "configure"
12827 #include "confdefs.h"
12828
12829 #if HAVE_DLFCN_H
12830 #include <dlfcn.h>
12831 #endif
12832
12833 #include <stdio.h>
12834
12835 #ifdef RTLD_GLOBAL
12836 # define LT_DLGLOBAL RTLD_GLOBAL
12837 #else
12838 # ifdef DL_GLOBAL
12839 # define LT_DLGLOBAL DL_GLOBAL
12840 # else
12841 # define LT_DLGLOBAL 0
12842 # endif
12843 #endif
12844
12845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12846 find out it does not work in some platform. */
12847 #ifndef LT_DLLAZY_OR_NOW
12848 # ifdef RTLD_LAZY
12849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12850 # else
12851 # ifdef DL_LAZY
12852 # define LT_DLLAZY_OR_NOW DL_LAZY
12853 # else
12854 # ifdef RTLD_NOW
12855 # define LT_DLLAZY_OR_NOW RTLD_NOW
12856 # else
12857 # ifdef DL_NOW
12858 # define LT_DLLAZY_OR_NOW DL_NOW
12859 # else
12860 # define LT_DLLAZY_OR_NOW 0
12861 # endif
12862 # endif
12863 # endif
12864 # endif
12865 #endif
12866
12867 /* When -fvisibility=hidden is used, assume the code has been annotated
12868 correspondingly for the symbols needed. */
12869 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12870 int fnord () __attribute__((visibility("default")));
12871 #endif
12872
12873 int fnord () { return 42; }
12874 int main ()
12875 {
12876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12877 int status = $lt_dlunknown;
12878
12879 if (self)
12880 {
12881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12882 else
12883 {
12884 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12885 else puts (dlerror ());
12886 }
12887 /* dlclose (self); */
12888 }
12889 else
12890 puts (dlerror ());
12891
12892 return status;
12893 }
12894 _LT_EOF
12895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12896 (eval $ac_link) 2>&5
12897 ac_status=$?
12898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12899 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12900 (./conftest; exit; ) >&5 2>/dev/null
12901 lt_status=$?
12902 case x$lt_status in
12903 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12904 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12905 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12906 esac
12907 else :
12908 # compilation failed
12909 lt_cv_dlopen_self_static=no
12910 fi
12911 fi
12912 rm -fr conftest*
12913
12914
12915 fi
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12917 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12918 fi
12919
12920 CPPFLAGS=$save_CPPFLAGS
12921 LDFLAGS=$save_LDFLAGS
12922 LIBS=$save_LIBS
12923 ;;
12924 esac
12925
12926 case $lt_cv_dlopen_self in
12927 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12928 *) enable_dlopen_self=unknown ;;
12929 esac
12930
12931 case $lt_cv_dlopen_self_static in
12932 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12933 *) enable_dlopen_self_static=unknown ;;
12934 esac
12935 fi
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953 striplib=
12954 old_striplib=
12955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12956 printf %s "checking whether stripping libraries is possible... " >&6; }
12957 if test -z "$STRIP"; then
12958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 printf "%s\n" "no" >&6; }
12960 else
12961 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12962 old_striplib="$STRIP --strip-debug"
12963 striplib="$STRIP --strip-unneeded"
12964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12965 printf "%s\n" "yes" >&6; }
12966 else
12967 case $host_os in
12968 darwin*)
12969 # FIXME - insert some real tests, host_os isn't really good enough
12970 striplib="$STRIP -x"
12971 old_striplib="$STRIP -S"
12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12973 printf "%s\n" "yes" >&6; }
12974 ;;
12975 freebsd*)
12976 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12977 old_striplib="$STRIP --strip-debug"
12978 striplib="$STRIP --strip-unneeded"
12979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12980 printf "%s\n" "yes" >&6; }
12981 else
12982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 printf "%s\n" "no" >&6; }
12984 fi
12985 ;;
12986 *)
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 printf "%s\n" "no" >&6; }
12989 ;;
12990 esac
12991 fi
12992 fi
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005 # Report what library types will actually be built
13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13007 printf %s "checking if libtool supports shared libraries... " >&6; }
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13009 printf "%s\n" "$can_build_shared" >&6; }
13010
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13012 printf %s "checking whether to build shared libraries... " >&6; }
13013 test no = "$can_build_shared" && enable_shared=no
13014
13015 # On AIX, shared libraries and static libraries use the same namespace, and
13016 # are all built from PIC.
13017 case $host_os in
13018 aix3*)
13019 test yes = "$enable_shared" && enable_static=no
13020 if test -n "$RANLIB"; then
13021 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13022 postinstall_cmds='$RANLIB $lib'
13023 fi
13024 ;;
13025
13026 aix[4-9]*)
13027 if test ia64 != "$host_cpu"; then
13028 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13029 yes,aix,yes) ;; # shared object as lib.so file only
13030 yes,svr4,*) ;; # shared object as lib.so archive member only
13031 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13032 esac
13033 fi
13034 ;;
13035 esac
13036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13037 printf "%s\n" "$enable_shared" >&6; }
13038
13039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13040 printf %s "checking whether to build static libraries... " >&6; }
13041 # Make sure either enable_shared or enable_static is yes.
13042 test yes = "$enable_shared" || enable_static=yes
13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13044 printf "%s\n" "$enable_static" >&6; }
13045
13046
13047
13048
13049 fi
13050 ac_ext=c
13051 ac_cpp='$CPP $CPPFLAGS'
13052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13055
13056 CC=$lt_save_CC
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072 ac_config_commands="$ac_config_commands libtool"
13073
13074
13075
13076
13077 # Only expand once:
13078
13079
13080 ac_ext=c
13081 ac_cpp='$CPP $CPPFLAGS'
13082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13085 if test -n "$ac_tool_prefix"; then
13086 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13087 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089 printf %s "checking for $ac_word... " >&6; }
13090 if test ${ac_cv_prog_CC+y}
13091 then :
13092 printf %s "(cached) " >&6
13093 else $as_nop
13094 if test -n "$CC"; then
13095 ac_cv_prog_CC="$CC" # Let the user override the test.
13096 else
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13099 do
13100 IFS=$as_save_IFS
13101 case $as_dir in #(((
13102 '') as_dir=./ ;;
13103 */) ;;
13104 *) as_dir=$as_dir/ ;;
13105 esac
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13108 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112 done
13113 done
13114 IFS=$as_save_IFS
13115
13116 fi
13117 fi
13118 CC=$ac_cv_prog_CC
13119 if test -n "$CC"; then
13120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13121 printf "%s\n" "$CC" >&6; }
13122 else
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 printf "%s\n" "no" >&6; }
13125 fi
13126
13127
13128 fi
13129 if test -z "$ac_cv_prog_CC"; then
13130 ac_ct_CC=$CC
13131 # Extract the first word of "gcc", so it can be a program name with args.
13132 set dummy gcc; ac_word=$2
13133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134 printf %s "checking for $ac_word... " >&6; }
13135 if test ${ac_cv_prog_ac_ct_CC+y}
13136 then :
13137 printf %s "(cached) " >&6
13138 else $as_nop
13139 if test -n "$ac_ct_CC"; then
13140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13141 else
13142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH
13144 do
13145 IFS=$as_save_IFS
13146 case $as_dir in #(((
13147 '') as_dir=./ ;;
13148 */) ;;
13149 *) as_dir=$as_dir/ ;;
13150 esac
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13153 ac_cv_prog_ac_ct_CC="gcc"
13154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13155 break 2
13156 fi
13157 done
13158 done
13159 IFS=$as_save_IFS
13160
13161 fi
13162 fi
13163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13164 if test -n "$ac_ct_CC"; then
13165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13166 printf "%s\n" "$ac_ct_CC" >&6; }
13167 else
13168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 printf "%s\n" "no" >&6; }
13170 fi
13171
13172 if test "x$ac_ct_CC" = x; then
13173 CC=""
13174 else
13175 case $cross_compiling:$ac_tool_warned in
13176 yes:)
13177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13178 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13179 ac_tool_warned=yes ;;
13180 esac
13181 CC=$ac_ct_CC
13182 fi
13183 else
13184 CC="$ac_cv_prog_CC"
13185 fi
13186
13187 if test -z "$CC"; then
13188 if test -n "$ac_tool_prefix"; then
13189 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13190 set dummy ${ac_tool_prefix}cc; ac_word=$2
13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 printf %s "checking for $ac_word... " >&6; }
13193 if test ${ac_cv_prog_CC+y}
13194 then :
13195 printf %s "(cached) " >&6
13196 else $as_nop
13197 if test -n "$CC"; then
13198 ac_cv_prog_CC="$CC" # Let the user override the test.
13199 else
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13202 do
13203 IFS=$as_save_IFS
13204 case $as_dir in #(((
13205 '') as_dir=./ ;;
13206 */) ;;
13207 *) as_dir=$as_dir/ ;;
13208 esac
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13211 ac_cv_prog_CC="${ac_tool_prefix}cc"
13212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13213 break 2
13214 fi
13215 done
13216 done
13217 IFS=$as_save_IFS
13218
13219 fi
13220 fi
13221 CC=$ac_cv_prog_CC
13222 if test -n "$CC"; then
13223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13224 printf "%s\n" "$CC" >&6; }
13225 else
13226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 printf "%s\n" "no" >&6; }
13228 fi
13229
13230
13231 fi
13232 fi
13233 if test -z "$CC"; then
13234 # Extract the first word of "cc", so it can be a program name with args.
13235 set dummy cc; ac_word=$2
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 printf %s "checking for $ac_word... " >&6; }
13238 if test ${ac_cv_prog_CC+y}
13239 then :
13240 printf %s "(cached) " >&6
13241 else $as_nop
13242 if test -n "$CC"; then
13243 ac_cv_prog_CC="$CC" # Let the user override the test.
13244 else
13245 ac_prog_rejected=no
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13248 do
13249 IFS=$as_save_IFS
13250 case $as_dir in #(((
13251 '') as_dir=./ ;;
13252 */) ;;
13253 *) as_dir=$as_dir/ ;;
13254 esac
13255 for ac_exec_ext in '' $ac_executable_extensions; do
13256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13257 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13258 ac_prog_rejected=yes
13259 continue
13260 fi
13261 ac_cv_prog_CC="cc"
13262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13263 break 2
13264 fi
13265 done
13266 done
13267 IFS=$as_save_IFS
13268
13269 if test $ac_prog_rejected = yes; then
13270 # We found a bogon in the path, so make sure we never use it.
13271 set dummy $ac_cv_prog_CC
13272 shift
13273 if test $# != 0; then
13274 # We chose a different compiler from the bogus one.
13275 # However, it has the same basename, so the bogon will be chosen
13276 # first if we set CC to just the basename; use the full file name.
13277 shift
13278 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13279 fi
13280 fi
13281 fi
13282 fi
13283 CC=$ac_cv_prog_CC
13284 if test -n "$CC"; then
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13286 printf "%s\n" "$CC" >&6; }
13287 else
13288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 printf "%s\n" "no" >&6; }
13290 fi
13291
13292
13293 fi
13294 if test -z "$CC"; then
13295 if test -n "$ac_tool_prefix"; then
13296 for ac_prog in cl.exe
13297 do
13298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13301 printf %s "checking for $ac_word... " >&6; }
13302 if test ${ac_cv_prog_CC+y}
13303 then :
13304 printf %s "(cached) " >&6
13305 else $as_nop
13306 if test -n "$CC"; then
13307 ac_cv_prog_CC="$CC" # Let the user override the test.
13308 else
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13311 do
13312 IFS=$as_save_IFS
13313 case $as_dir in #(((
13314 '') as_dir=./ ;;
13315 */) ;;
13316 *) as_dir=$as_dir/ ;;
13317 esac
13318 for ac_exec_ext in '' $ac_executable_extensions; do
13319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13320 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13322 break 2
13323 fi
13324 done
13325 done
13326 IFS=$as_save_IFS
13327
13328 fi
13329 fi
13330 CC=$ac_cv_prog_CC
13331 if test -n "$CC"; then
13332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13333 printf "%s\n" "$CC" >&6; }
13334 else
13335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 printf "%s\n" "no" >&6; }
13337 fi
13338
13339
13340 test -n "$CC" && break
13341 done
13342 fi
13343 if test -z "$CC"; then
13344 ac_ct_CC=$CC
13345 for ac_prog in cl.exe
13346 do
13347 # Extract the first word of "$ac_prog", so it can be a program name with args.
13348 set dummy $ac_prog; ac_word=$2
13349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350 printf %s "checking for $ac_word... " >&6; }
13351 if test ${ac_cv_prog_ac_ct_CC+y}
13352 then :
13353 printf %s "(cached) " >&6
13354 else $as_nop
13355 if test -n "$ac_ct_CC"; then
13356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13357 else
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13360 do
13361 IFS=$as_save_IFS
13362 case $as_dir in #(((
13363 '') as_dir=./ ;;
13364 */) ;;
13365 *) as_dir=$as_dir/ ;;
13366 esac
13367 for ac_exec_ext in '' $ac_executable_extensions; do
13368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13369 ac_cv_prog_ac_ct_CC="$ac_prog"
13370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13371 break 2
13372 fi
13373 done
13374 done
13375 IFS=$as_save_IFS
13376
13377 fi
13378 fi
13379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13380 if test -n "$ac_ct_CC"; then
13381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13382 printf "%s\n" "$ac_ct_CC" >&6; }
13383 else
13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385 printf "%s\n" "no" >&6; }
13386 fi
13387
13388
13389 test -n "$ac_ct_CC" && break
13390 done
13391
13392 if test "x$ac_ct_CC" = x; then
13393 CC=""
13394 else
13395 case $cross_compiling:$ac_tool_warned in
13396 yes:)
13397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13399 ac_tool_warned=yes ;;
13400 esac
13401 CC=$ac_ct_CC
13402 fi
13403 fi
13404
13405 fi
13406 if test -z "$CC"; then
13407 if test -n "$ac_tool_prefix"; then
13408 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13409 set dummy ${ac_tool_prefix}clang; ac_word=$2
13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13411 printf %s "checking for $ac_word... " >&6; }
13412 if test ${ac_cv_prog_CC+y}
13413 then :
13414 printf %s "(cached) " >&6
13415 else $as_nop
13416 if test -n "$CC"; then
13417 ac_cv_prog_CC="$CC" # Let the user override the test.
13418 else
13419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420 for as_dir in $PATH
13421 do
13422 IFS=$as_save_IFS
13423 case $as_dir in #(((
13424 '') as_dir=./ ;;
13425 */) ;;
13426 *) as_dir=$as_dir/ ;;
13427 esac
13428 for ac_exec_ext in '' $ac_executable_extensions; do
13429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13430 ac_cv_prog_CC="${ac_tool_prefix}clang"
13431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13432 break 2
13433 fi
13434 done
13435 done
13436 IFS=$as_save_IFS
13437
13438 fi
13439 fi
13440 CC=$ac_cv_prog_CC
13441 if test -n "$CC"; then
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13443 printf "%s\n" "$CC" >&6; }
13444 else
13445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 printf "%s\n" "no" >&6; }
13447 fi
13448
13449
13450 fi
13451 if test -z "$ac_cv_prog_CC"; then
13452 ac_ct_CC=$CC
13453 # Extract the first word of "clang", so it can be a program name with args.
13454 set dummy clang; ac_word=$2
13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456 printf %s "checking for $ac_word... " >&6; }
13457 if test ${ac_cv_prog_ac_ct_CC+y}
13458 then :
13459 printf %s "(cached) " >&6
13460 else $as_nop
13461 if test -n "$ac_ct_CC"; then
13462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13463 else
13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465 for as_dir in $PATH
13466 do
13467 IFS=$as_save_IFS
13468 case $as_dir in #(((
13469 '') as_dir=./ ;;
13470 */) ;;
13471 *) as_dir=$as_dir/ ;;
13472 esac
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13475 ac_cv_prog_ac_ct_CC="clang"
13476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13477 break 2
13478 fi
13479 done
13480 done
13481 IFS=$as_save_IFS
13482
13483 fi
13484 fi
13485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13486 if test -n "$ac_ct_CC"; then
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13488 printf "%s\n" "$ac_ct_CC" >&6; }
13489 else
13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 printf "%s\n" "no" >&6; }
13492 fi
13493
13494 if test "x$ac_ct_CC" = x; then
13495 CC=""
13496 else
13497 case $cross_compiling:$ac_tool_warned in
13498 yes:)
13499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13500 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13501 ac_tool_warned=yes ;;
13502 esac
13503 CC=$ac_ct_CC
13504 fi
13505 else
13506 CC="$ac_cv_prog_CC"
13507 fi
13508
13509 fi
13510
13511
13512 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13513 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13514 as_fn_error $? "no acceptable C compiler found in \$PATH
13515 See \`config.log' for more details" "$LINENO" 5; }
13516
13517 # Provide some information about the compiler.
13518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13519 set X $ac_compile
13520 ac_compiler=$2
13521 for ac_option in --version -v -V -qversion -version; do
13522 { { ac_try="$ac_compiler $ac_option >&5"
13523 case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13526 esac
13527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13528 printf "%s\n" "$ac_try_echo"; } >&5
13529 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13530 ac_status=$?
13531 if test -s conftest.err; then
13532 sed '10a\
13533 ... rest of stderr output deleted ...
13534 10q' conftest.err >conftest.er1
13535 cat conftest.er1 >&5
13536 fi
13537 rm -f conftest.er1 conftest.err
13538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13539 test $ac_status = 0; }
13540 done
13541
13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13543 printf %s "checking whether the compiler supports GNU C... " >&6; }
13544 if test ${ac_cv_c_compiler_gnu+y}
13545 then :
13546 printf %s "(cached) " >&6
13547 else $as_nop
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13550
13551 int
13552 main (void)
13553 {
13554 #ifndef __GNUC__
13555 choke me
13556 #endif
13557
13558 ;
13559 return 0;
13560 }
13561 _ACEOF
13562 if ac_fn_c_try_compile "$LINENO"
13563 then :
13564 ac_compiler_gnu=yes
13565 else $as_nop
13566 ac_compiler_gnu=no
13567 fi
13568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13570
13571 fi
13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13573 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13575
13576 if test $ac_compiler_gnu = yes; then
13577 GCC=yes
13578 else
13579 GCC=
13580 fi
13581 ac_test_CFLAGS=${CFLAGS+y}
13582 ac_save_CFLAGS=$CFLAGS
13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13584 printf %s "checking whether $CC accepts -g... " >&6; }
13585 if test ${ac_cv_prog_cc_g+y}
13586 then :
13587 printf %s "(cached) " >&6
13588 else $as_nop
13589 ac_save_c_werror_flag=$ac_c_werror_flag
13590 ac_c_werror_flag=yes
13591 ac_cv_prog_cc_g=no
13592 CFLAGS="-g"
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595
13596 int
13597 main (void)
13598 {
13599
13600 ;
13601 return 0;
13602 }
13603 _ACEOF
13604 if ac_fn_c_try_compile "$LINENO"
13605 then :
13606 ac_cv_prog_cc_g=yes
13607 else $as_nop
13608 CFLAGS=""
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611
13612 int
13613 main (void)
13614 {
13615
13616 ;
13617 return 0;
13618 }
13619 _ACEOF
13620 if ac_fn_c_try_compile "$LINENO"
13621 then :
13622
13623 else $as_nop
13624 ac_c_werror_flag=$ac_save_c_werror_flag
13625 CFLAGS="-g"
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628
13629 int
13630 main (void)
13631 {
13632
13633 ;
13634 return 0;
13635 }
13636 _ACEOF
13637 if ac_fn_c_try_compile "$LINENO"
13638 then :
13639 ac_cv_prog_cc_g=yes
13640 fi
13641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13642 fi
13643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13644 fi
13645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13646 ac_c_werror_flag=$ac_save_c_werror_flag
13647 fi
13648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13649 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13650 if test $ac_test_CFLAGS; then
13651 CFLAGS=$ac_save_CFLAGS
13652 elif test $ac_cv_prog_cc_g = yes; then
13653 if test "$GCC" = yes; then
13654 CFLAGS="-g -O2"
13655 else
13656 CFLAGS="-g"
13657 fi
13658 else
13659 if test "$GCC" = yes; then
13660 CFLAGS="-O2"
13661 else
13662 CFLAGS=
13663 fi
13664 fi
13665 ac_prog_cc_stdc=no
13666 if test x$ac_prog_cc_stdc = xno
13667 then :
13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13669 printf %s "checking for $CC option to enable C11 features... " >&6; }
13670 if test ${ac_cv_prog_cc_c11+y}
13671 then :
13672 printf %s "(cached) " >&6
13673 else $as_nop
13674 ac_cv_prog_cc_c11=no
13675 ac_save_CC=$CC
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13678 $ac_c_conftest_c11_program
13679 _ACEOF
13680 for ac_arg in '' -std=gnu11
13681 do
13682 CC="$ac_save_CC $ac_arg"
13683 if ac_fn_c_try_compile "$LINENO"
13684 then :
13685 ac_cv_prog_cc_c11=$ac_arg
13686 fi
13687 rm -f core conftest.err conftest.$ac_objext conftest.beam
13688 test "x$ac_cv_prog_cc_c11" != "xno" && break
13689 done
13690 rm -f conftest.$ac_ext
13691 CC=$ac_save_CC
13692 fi
13693
13694 if test "x$ac_cv_prog_cc_c11" = xno
13695 then :
13696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13697 printf "%s\n" "unsupported" >&6; }
13698 else $as_nop
13699 if test "x$ac_cv_prog_cc_c11" = x
13700 then :
13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13702 printf "%s\n" "none needed" >&6; }
13703 else $as_nop
13704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13705 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13706 CC="$CC $ac_cv_prog_cc_c11"
13707 fi
13708 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13709 ac_prog_cc_stdc=c11
13710 fi
13711 fi
13712 if test x$ac_prog_cc_stdc = xno
13713 then :
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13715 printf %s "checking for $CC option to enable C99 features... " >&6; }
13716 if test ${ac_cv_prog_cc_c99+y}
13717 then :
13718 printf %s "(cached) " >&6
13719 else $as_nop
13720 ac_cv_prog_cc_c99=no
13721 ac_save_CC=$CC
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13724 $ac_c_conftest_c99_program
13725 _ACEOF
13726 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13727 do
13728 CC="$ac_save_CC $ac_arg"
13729 if ac_fn_c_try_compile "$LINENO"
13730 then :
13731 ac_cv_prog_cc_c99=$ac_arg
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext conftest.beam
13734 test "x$ac_cv_prog_cc_c99" != "xno" && break
13735 done
13736 rm -f conftest.$ac_ext
13737 CC=$ac_save_CC
13738 fi
13739
13740 if test "x$ac_cv_prog_cc_c99" = xno
13741 then :
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13743 printf "%s\n" "unsupported" >&6; }
13744 else $as_nop
13745 if test "x$ac_cv_prog_cc_c99" = x
13746 then :
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13748 printf "%s\n" "none needed" >&6; }
13749 else $as_nop
13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13751 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13752 CC="$CC $ac_cv_prog_cc_c99"
13753 fi
13754 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13755 ac_prog_cc_stdc=c99
13756 fi
13757 fi
13758 if test x$ac_prog_cc_stdc = xno
13759 then :
13760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13761 printf %s "checking for $CC option to enable C89 features... " >&6; }
13762 if test ${ac_cv_prog_cc_c89+y}
13763 then :
13764 printf %s "(cached) " >&6
13765 else $as_nop
13766 ac_cv_prog_cc_c89=no
13767 ac_save_CC=$CC
13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h. */
13770 $ac_c_conftest_c89_program
13771 _ACEOF
13772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13773 do
13774 CC="$ac_save_CC $ac_arg"
13775 if ac_fn_c_try_compile "$LINENO"
13776 then :
13777 ac_cv_prog_cc_c89=$ac_arg
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext conftest.beam
13780 test "x$ac_cv_prog_cc_c89" != "xno" && break
13781 done
13782 rm -f conftest.$ac_ext
13783 CC=$ac_save_CC
13784 fi
13785
13786 if test "x$ac_cv_prog_cc_c89" = xno
13787 then :
13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13789 printf "%s\n" "unsupported" >&6; }
13790 else $as_nop
13791 if test "x$ac_cv_prog_cc_c89" = x
13792 then :
13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13794 printf "%s\n" "none needed" >&6; }
13795 else $as_nop
13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13797 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13798 CC="$CC $ac_cv_prog_cc_c89"
13799 fi
13800 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13801 ac_prog_cc_stdc=c89
13802 fi
13803 fi
13804
13805 ac_ext=c
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13810
13811
13812 ac_ext=c
13813 ac_cpp='$CPP $CPPFLAGS'
13814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13818 printf %s "checking whether $CC understands -c and -o together... " >&6; }
13819 if test ${am_cv_prog_cc_c_o+y}
13820 then :
13821 printf %s "(cached) " >&6
13822 else $as_nop
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13825
13826 int
13827 main (void)
13828 {
13829
13830 ;
13831 return 0;
13832 }
13833 _ACEOF
13834 # Make sure it works both with $CC and with simple cc.
13835 # Following AC_PROG_CC_C_O, we do the test twice because some
13836 # compilers refuse to overwrite an existing .o file with -o,
13837 # though they will create one.
13838 am_cv_prog_cc_c_o=yes
13839 for am_i in 1 2; do
13840 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13841 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } \
13845 && test -f conftest2.$ac_objext; then
13846 : OK
13847 else
13848 am_cv_prog_cc_c_o=no
13849 break
13850 fi
13851 done
13852 rm -f core conftest*
13853 unset am_i
13854 fi
13855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13856 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13857 if test "$am_cv_prog_cc_c_o" != yes; then
13858 # Losing compiler, so override with the script.
13859 # FIXME: It is wrong to rewrite CC.
13860 # But if we don't then we get into trouble of one sort or another.
13861 # A longer-term fix would be to have automake use am__CC in this case,
13862 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13863 CC="$am_aux_dir/compile $CC"
13864 fi
13865 ac_ext=c
13866 ac_cpp='$CPP $CPPFLAGS'
13867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13870
13871
13872 depcc="$CC" am_compiler_list=
13873
13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13875 printf %s "checking dependency style of $depcc... " >&6; }
13876 if test ${am_cv_CC_dependencies_compiler_type+y}
13877 then :
13878 printf %s "(cached) " >&6
13879 else $as_nop
13880 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13881 # We make a subdir and do the tests there. Otherwise we can end up
13882 # making bogus files that we don't know about and never remove. For
13883 # instance it was reported that on HP-UX the gcc test will end up
13884 # making a dummy file named 'D' -- because '-MD' means "put the output
13885 # in D".
13886 rm -rf conftest.dir
13887 mkdir conftest.dir
13888 # Copy depcomp to subdir because otherwise we won't find it if we're
13889 # using a relative directory.
13890 cp "$am_depcomp" conftest.dir
13891 cd conftest.dir
13892 # We will build objects and dependencies in a subdirectory because
13893 # it helps to detect inapplicable dependency modes. For instance
13894 # both Tru64's cc and ICC support -MD to output dependencies as a
13895 # side effect of compilation, but ICC will put the dependencies in
13896 # the current directory while Tru64 will put them in the object
13897 # directory.
13898 mkdir sub
13899
13900 am_cv_CC_dependencies_compiler_type=none
13901 if test "$am_compiler_list" = ""; then
13902 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13903 fi
13904 am__universal=false
13905 case " $depcc " in #(
13906 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13907 esac
13908
13909 for depmode in $am_compiler_list; do
13910 # Setup a source with many dependencies, because some compilers
13911 # like to wrap large dependency lists on column 80 (with \), and
13912 # we should not choose a depcomp mode which is confused by this.
13913 #
13914 # We need to recreate these files for each test, as the compiler may
13915 # overwrite some of them when testing with obscure command lines.
13916 # This happens at least with the AIX C compiler.
13917 : > sub/conftest.c
13918 for i in 1 2 3 4 5 6; do
13919 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13920 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13921 # Solaris 10 /bin/sh.
13922 echo '/* dummy */' > sub/conftst$i.h
13923 done
13924 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13925
13926 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13927 # mode. It turns out that the SunPro C++ compiler does not properly
13928 # handle '-M -o', and we need to detect this. Also, some Intel
13929 # versions had trouble with output in subdirs.
13930 am__obj=sub/conftest.${OBJEXT-o}
13931 am__minus_obj="-o $am__obj"
13932 case $depmode in
13933 gcc)
13934 # This depmode causes a compiler race in universal mode.
13935 test "$am__universal" = false || continue
13936 ;;
13937 nosideeffect)
13938 # After this tag, mechanisms are not by side-effect, so they'll
13939 # only be used when explicitly requested.
13940 if test "x$enable_dependency_tracking" = xyes; then
13941 continue
13942 else
13943 break
13944 fi
13945 ;;
13946 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13947 # This compiler won't grok '-c -o', but also, the minuso test has
13948 # not run yet. These depmodes are late enough in the game, and
13949 # so weak that their functioning should not be impacted.
13950 am__obj=conftest.${OBJEXT-o}
13951 am__minus_obj=
13952 ;;
13953 none) break ;;
13954 esac
13955 if depmode=$depmode \
13956 source=sub/conftest.c object=$am__obj \
13957 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13958 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13959 >/dev/null 2>conftest.err &&
13960 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13961 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13962 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13963 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13964 # icc doesn't choke on unknown options, it will just issue warnings
13965 # or remarks (even with -Werror). So we grep stderr for any message
13966 # that says an option was ignored or not supported.
13967 # When given -MP, icc 7.0 and 7.1 complain thusly:
13968 # icc: Command line warning: ignoring option '-M'; no argument required
13969 # The diagnosis changed in icc 8.0:
13970 # icc: Command line remark: option '-MP' not supported
13971 if (grep 'ignoring option' conftest.err ||
13972 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13973 am_cv_CC_dependencies_compiler_type=$depmode
13974 break
13975 fi
13976 fi
13977 done
13978
13979 cd ..
13980 rm -rf conftest.dir
13981 else
13982 am_cv_CC_dependencies_compiler_type=none
13983 fi
13984
13985 fi
13986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13987 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13988 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13989
13990 if
13991 test "x$enable_dependency_tracking" != xno \
13992 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13993 am__fastdepCC_TRUE=
13994 am__fastdepCC_FALSE='#'
13995 else
13996 am__fastdepCC_TRUE='#'
13997 am__fastdepCC_FALSE=
13998 fi
13999
14000
14001
14002
14003
14004 # gettext
14005
14006
14007 mkdir_p="$MKDIR_P"
14008 case $mkdir_p in
14009 [\\/$]* | ?:[\\/]*) ;;
14010 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14011 esac
14012
14013
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14015 printf %s "checking whether NLS is requested... " >&6; }
14016 # Check whether --enable-nls was given.
14017 if test ${enable_nls+y}
14018 then :
14019 enableval=$enable_nls; USE_NLS=$enableval
14020 else $as_nop
14021 USE_NLS=yes
14022 fi
14023
14024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14025 printf "%s\n" "$USE_NLS" >&6; }
14026
14027
14028
14029
14030 GETTEXT_MACRO_VERSION=0.17
14031
14032
14033
14034
14035 # Prepare PATH_SEPARATOR.
14036 # The user is always right.
14037 if test "${PATH_SEPARATOR+set}" != set; then
14038 echo "#! /bin/sh" >conf$$.sh
14039 echo "exit 0" >>conf$$.sh
14040 chmod +x conf$$.sh
14041 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14042 PATH_SEPARATOR=';'
14043 else
14044 PATH_SEPARATOR=:
14045 fi
14046 rm -f conf$$.sh
14047 fi
14048
14049 # Find out how to test for executable files. Don't use a zero-byte file,
14050 # as systems may use methods other than mode bits to determine executability.
14051 cat >conf$$.file <<_ASEOF
14052 #! /bin/sh
14053 exit 0
14054 _ASEOF
14055 chmod +x conf$$.file
14056 if test -x conf$$.file >/dev/null 2>&1; then
14057 ac_executable_p="test -x"
14058 else
14059 ac_executable_p="test -f"
14060 fi
14061 rm -f conf$$.file
14062
14063 # Extract the first word of "msgfmt", so it can be a program name with args.
14064 set dummy msgfmt; ac_word=$2
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14066 printf %s "checking for $ac_word... " >&6; }
14067 if test ${ac_cv_path_MSGFMT+y}
14068 then :
14069 printf %s "(cached) " >&6
14070 else $as_nop
14071 case "$MSGFMT" in
14072 [\\/]* | ?:[\\/]*)
14073 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14074 ;;
14075 *)
14076 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14077 for ac_dir in $PATH; do
14078 IFS="$ac_save_IFS"
14079 test -z "$ac_dir" && ac_dir=.
14080 for ac_exec_ext in '' $ac_executable_extensions; do
14081 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14082 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14083 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14084 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14085 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14086 break 2
14087 fi
14088 fi
14089 done
14090 done
14091 IFS="$ac_save_IFS"
14092 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14093 ;;
14094 esac
14095 fi
14096 MSGFMT="$ac_cv_path_MSGFMT"
14097 if test "$MSGFMT" != ":"; then
14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14099 printf "%s\n" "$MSGFMT" >&6; }
14100 else
14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102 printf "%s\n" "no" >&6; }
14103 fi
14104
14105 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14106 set dummy gmsgfmt; ac_word=$2
14107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14108 printf %s "checking for $ac_word... " >&6; }
14109 if test ${ac_cv_path_GMSGFMT+y}
14110 then :
14111 printf %s "(cached) " >&6
14112 else $as_nop
14113 case $GMSGFMT in
14114 [\\/]* | ?:[\\/]*)
14115 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14116 ;;
14117 *)
14118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119 for as_dir in $PATH
14120 do
14121 IFS=$as_save_IFS
14122 case $as_dir in #(((
14123 '') as_dir=./ ;;
14124 */) ;;
14125 *) as_dir=$as_dir/ ;;
14126 esac
14127 for ac_exec_ext in '' $ac_executable_extensions; do
14128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14129 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
14130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14131 break 2
14132 fi
14133 done
14134 done
14135 IFS=$as_save_IFS
14136
14137 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14138 ;;
14139 esac
14140 fi
14141 GMSGFMT=$ac_cv_path_GMSGFMT
14142 if test -n "$GMSGFMT"; then
14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14144 printf "%s\n" "$GMSGFMT" >&6; }
14145 else
14146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14147 printf "%s\n" "no" >&6; }
14148 fi
14149
14150
14151
14152 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14153 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14154 *) MSGFMT_015=$MSGFMT ;;
14155 esac
14156
14157 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14158 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14159 *) GMSGFMT_015=$GMSGFMT ;;
14160 esac
14161
14162
14163
14164 # Prepare PATH_SEPARATOR.
14165 # The user is always right.
14166 if test "${PATH_SEPARATOR+set}" != set; then
14167 echo "#! /bin/sh" >conf$$.sh
14168 echo "exit 0" >>conf$$.sh
14169 chmod +x conf$$.sh
14170 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14171 PATH_SEPARATOR=';'
14172 else
14173 PATH_SEPARATOR=:
14174 fi
14175 rm -f conf$$.sh
14176 fi
14177
14178 # Find out how to test for executable files. Don't use a zero-byte file,
14179 # as systems may use methods other than mode bits to determine executability.
14180 cat >conf$$.file <<_ASEOF
14181 #! /bin/sh
14182 exit 0
14183 _ASEOF
14184 chmod +x conf$$.file
14185 if test -x conf$$.file >/dev/null 2>&1; then
14186 ac_executable_p="test -x"
14187 else
14188 ac_executable_p="test -f"
14189 fi
14190 rm -f conf$$.file
14191
14192 # Extract the first word of "xgettext", so it can be a program name with args.
14193 set dummy xgettext; ac_word=$2
14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14195 printf %s "checking for $ac_word... " >&6; }
14196 if test ${ac_cv_path_XGETTEXT+y}
14197 then :
14198 printf %s "(cached) " >&6
14199 else $as_nop
14200 case "$XGETTEXT" in
14201 [\\/]* | ?:[\\/]*)
14202 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14203 ;;
14204 *)
14205 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14206 for ac_dir in $PATH; do
14207 IFS="$ac_save_IFS"
14208 test -z "$ac_dir" && ac_dir=.
14209 for ac_exec_ext in '' $ac_executable_extensions; do
14210 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14211 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14212 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14213 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14214 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14215 break 2
14216 fi
14217 fi
14218 done
14219 done
14220 IFS="$ac_save_IFS"
14221 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14222 ;;
14223 esac
14224 fi
14225 XGETTEXT="$ac_cv_path_XGETTEXT"
14226 if test "$XGETTEXT" != ":"; then
14227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14228 printf "%s\n" "$XGETTEXT" >&6; }
14229 else
14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231 printf "%s\n" "no" >&6; }
14232 fi
14233
14234 rm -f messages.po
14235
14236 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14237 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14238 *) XGETTEXT_015=$XGETTEXT ;;
14239 esac
14240
14241
14242
14243 # Prepare PATH_SEPARATOR.
14244 # The user is always right.
14245 if test "${PATH_SEPARATOR+set}" != set; then
14246 echo "#! /bin/sh" >conf$$.sh
14247 echo "exit 0" >>conf$$.sh
14248 chmod +x conf$$.sh
14249 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14250 PATH_SEPARATOR=';'
14251 else
14252 PATH_SEPARATOR=:
14253 fi
14254 rm -f conf$$.sh
14255 fi
14256
14257 # Find out how to test for executable files. Don't use a zero-byte file,
14258 # as systems may use methods other than mode bits to determine executability.
14259 cat >conf$$.file <<_ASEOF
14260 #! /bin/sh
14261 exit 0
14262 _ASEOF
14263 chmod +x conf$$.file
14264 if test -x conf$$.file >/dev/null 2>&1; then
14265 ac_executable_p="test -x"
14266 else
14267 ac_executable_p="test -f"
14268 fi
14269 rm -f conf$$.file
14270
14271 # Extract the first word of "msgmerge", so it can be a program name with args.
14272 set dummy msgmerge; ac_word=$2
14273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14274 printf %s "checking for $ac_word... " >&6; }
14275 if test ${ac_cv_path_MSGMERGE+y}
14276 then :
14277 printf %s "(cached) " >&6
14278 else $as_nop
14279 case "$MSGMERGE" in
14280 [\\/]* | ?:[\\/]*)
14281 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14282 ;;
14283 *)
14284 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14285 for ac_dir in $PATH; do
14286 IFS="$ac_save_IFS"
14287 test -z "$ac_dir" && ac_dir=.
14288 for ac_exec_ext in '' $ac_executable_extensions; do
14289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14290 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14291 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14292 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14293 break 2
14294 fi
14295 fi
14296 done
14297 done
14298 IFS="$ac_save_IFS"
14299 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14300 ;;
14301 esac
14302 fi
14303 MSGMERGE="$ac_cv_path_MSGMERGE"
14304 if test "$MSGMERGE" != ":"; then
14305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14306 printf "%s\n" "$MSGMERGE" >&6; }
14307 else
14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 printf "%s\n" "no" >&6; }
14310 fi
14311
14312
14313 test -n "$localedir" || localedir='${datadir}/locale'
14314
14315
14316 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14317
14318
14319 ac_config_commands="$ac_config_commands po-directories"
14320
14321
14322
14323 if test "X$prefix" = "XNONE"; then
14324 acl_final_prefix="$ac_default_prefix"
14325 else
14326 acl_final_prefix="$prefix"
14327 fi
14328 if test "X$exec_prefix" = "XNONE"; then
14329 acl_final_exec_prefix='${prefix}'
14330 else
14331 acl_final_exec_prefix="$exec_prefix"
14332 fi
14333 acl_save_prefix="$prefix"
14334 prefix="$acl_final_prefix"
14335 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14336 prefix="$acl_save_prefix"
14337
14338
14339 # Check whether --with-gnu-ld was given.
14340 if test ${with_gnu_ld+y}
14341 then :
14342 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14343 else $as_nop
14344 with_gnu_ld=no
14345 fi
14346
14347 # Prepare PATH_SEPARATOR.
14348 # The user is always right.
14349 if test "${PATH_SEPARATOR+set}" != set; then
14350 echo "#! /bin/sh" >conf$$.sh
14351 echo "exit 0" >>conf$$.sh
14352 chmod +x conf$$.sh
14353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14354 PATH_SEPARATOR=';'
14355 else
14356 PATH_SEPARATOR=:
14357 fi
14358 rm -f conf$$.sh
14359 fi
14360 ac_prog=ld
14361 if test "$GCC" = yes; then
14362 # Check if gcc -print-prog-name=ld gives a path.
14363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14364 printf %s "checking for ld used by GCC... " >&6; }
14365 case $host in
14366 *-*-mingw*)
14367 # gcc leaves a trailing carriage return which upsets mingw
14368 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14369 *)
14370 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14371 esac
14372 case $ac_prog in
14373 # Accept absolute paths.
14374 [\\/]* | [A-Za-z]:[\\/]*)
14375 re_direlt='/[^/][^/]*/\.\./'
14376 # Canonicalize the path of ld
14377 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14378 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14379 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14380 done
14381 test -z "$LD" && LD="$ac_prog"
14382 ;;
14383 "")
14384 # If it fails, then pretend we aren't using GCC.
14385 ac_prog=ld
14386 ;;
14387 *)
14388 # If it is relative, then search for the first ld in PATH.
14389 with_gnu_ld=unknown
14390 ;;
14391 esac
14392 elif test "$with_gnu_ld" = yes; then
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14394 printf %s "checking for GNU ld... " >&6; }
14395 else
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14397 printf %s "checking for non-GNU ld... " >&6; }
14398 fi
14399 if test ${acl_cv_path_LD+y}
14400 then :
14401 printf %s "(cached) " >&6
14402 else $as_nop
14403 if test -z "$LD"; then
14404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14405 for ac_dir in $PATH; do
14406 test -z "$ac_dir" && ac_dir=.
14407 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14408 acl_cv_path_LD="$ac_dir/$ac_prog"
14409 # Check to see if the program is GNU ld. I'd rather use --version,
14410 # but apparently some GNU ld's only accept -v.
14411 # Break only if it was the GNU/non-GNU ld that we prefer.
14412 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14413 *GNU* | *'with BFD'*)
14414 test "$with_gnu_ld" != no && break ;;
14415 *)
14416 test "$with_gnu_ld" != yes && break ;;
14417 esac
14418 fi
14419 done
14420 IFS="$ac_save_ifs"
14421 else
14422 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14423 fi
14424 fi
14425
14426 LD="$acl_cv_path_LD"
14427 if test -n "$LD"; then
14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14429 printf "%s\n" "$LD" >&6; }
14430 else
14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432 printf "%s\n" "no" >&6; }
14433 fi
14434 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14436 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14437 if test ${acl_cv_prog_gnu_ld+y}
14438 then :
14439 printf %s "(cached) " >&6
14440 else $as_nop
14441 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14442 case `$LD -v 2>&1 </dev/null` in
14443 *GNU* | *'with BFD'*)
14444 acl_cv_prog_gnu_ld=yes ;;
14445 *)
14446 acl_cv_prog_gnu_ld=no ;;
14447 esac
14448 fi
14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14450 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
14451 with_gnu_ld=$acl_cv_prog_gnu_ld
14452
14453
14454
14455
14456
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14458 printf %s "checking for shared library run path origin... " >&6; }
14459 if test ${acl_cv_rpath+y}
14460 then :
14461 printf %s "(cached) " >&6
14462 else $as_nop
14463
14464 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14465 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14466 . ./conftest.sh
14467 rm -f ./conftest.sh
14468 acl_cv_rpath=done
14469
14470 fi
14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14472 printf "%s\n" "$acl_cv_rpath" >&6; }
14473 wl="$acl_cv_wl"
14474 acl_libext="$acl_cv_libext"
14475 acl_shlibext="$acl_cv_shlibext"
14476 acl_libname_spec="$acl_cv_libname_spec"
14477 acl_library_names_spec="$acl_cv_library_names_spec"
14478 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14479 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14480 acl_hardcode_direct="$acl_cv_hardcode_direct"
14481 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14482 # Check whether --enable-rpath was given.
14483 if test ${enable_rpath+y}
14484 then :
14485 enableval=$enable_rpath; :
14486 else $as_nop
14487 enable_rpath=yes
14488 fi
14489
14490
14491
14492 acl_libdirstem=lib
14493 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14494 if test -n "$searchpath"; then
14495 acl_save_IFS="${IFS= }"; IFS=":"
14496 for searchdir in $searchpath; do
14497 if test -d "$searchdir"; then
14498 case "$searchdir" in
14499 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14500 *) searchdir=`cd "$searchdir" && pwd`
14501 case "$searchdir" in
14502 */lib64 ) acl_libdirstem=lib64 ;;
14503 esac ;;
14504 esac
14505 fi
14506 done
14507 IFS="$acl_save_IFS"
14508 fi
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518 use_additional=yes
14519
14520 acl_save_prefix="$prefix"
14521 prefix="$acl_final_prefix"
14522 acl_save_exec_prefix="$exec_prefix"
14523 exec_prefix="$acl_final_exec_prefix"
14524
14525 eval additional_includedir=\"$includedir\"
14526 eval additional_libdir=\"$libdir\"
14527
14528 exec_prefix="$acl_save_exec_prefix"
14529 prefix="$acl_save_prefix"
14530
14531
14532 # Check whether --with-libiconv-prefix was given.
14533 if test ${with_libiconv_prefix+y}
14534 then :
14535 withval=$with_libiconv_prefix;
14536 if test "X$withval" = "Xno"; then
14537 use_additional=no
14538 else
14539 if test "X$withval" = "X"; then
14540
14541 acl_save_prefix="$prefix"
14542 prefix="$acl_final_prefix"
14543 acl_save_exec_prefix="$exec_prefix"
14544 exec_prefix="$acl_final_exec_prefix"
14545
14546 eval additional_includedir=\"$includedir\"
14547 eval additional_libdir=\"$libdir\"
14548
14549 exec_prefix="$acl_save_exec_prefix"
14550 prefix="$acl_save_prefix"
14551
14552 else
14553 additional_includedir="$withval/include"
14554 additional_libdir="$withval/$acl_libdirstem"
14555 fi
14556 fi
14557
14558 fi
14559
14560 LIBICONV=
14561 LTLIBICONV=
14562 INCICONV=
14563 LIBICONV_PREFIX=
14564 rpathdirs=
14565 ltrpathdirs=
14566 names_already_handled=
14567 names_next_round='iconv '
14568 while test -n "$names_next_round"; do
14569 names_this_round="$names_next_round"
14570 names_next_round=
14571 for name in $names_this_round; do
14572 already_handled=
14573 for n in $names_already_handled; do
14574 if test "$n" = "$name"; then
14575 already_handled=yes
14576 break
14577 fi
14578 done
14579 if test -z "$already_handled"; then
14580 names_already_handled="$names_already_handled $name"
14581 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14582 eval value=\"\$HAVE_LIB$uppername\"
14583 if test -n "$value"; then
14584 if test "$value" = yes; then
14585 eval value=\"\$LIB$uppername\"
14586 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14587 eval value=\"\$LTLIB$uppername\"
14588 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14589 else
14590 :
14591 fi
14592 else
14593 found_dir=
14594 found_la=
14595 found_so=
14596 found_a=
14597 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14598 if test -n "$acl_shlibext"; then
14599 shrext=".$acl_shlibext" # typically: shrext=.so
14600 else
14601 shrext=
14602 fi
14603 if test $use_additional = yes; then
14604 dir="$additional_libdir"
14605 if test -n "$acl_shlibext"; then
14606 if test -f "$dir/$libname$shrext"; then
14607 found_dir="$dir"
14608 found_so="$dir/$libname$shrext"
14609 else
14610 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14611 ver=`(cd "$dir" && \
14612 for f in "$libname$shrext".*; do echo "$f"; done \
14613 | sed -e "s,^$libname$shrext\\\\.,," \
14614 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14615 | sed 1q ) 2>/dev/null`
14616 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14617 found_dir="$dir"
14618 found_so="$dir/$libname$shrext.$ver"
14619 fi
14620 else
14621 eval library_names=\"$acl_library_names_spec\"
14622 for f in $library_names; do
14623 if test -f "$dir/$f"; then
14624 found_dir="$dir"
14625 found_so="$dir/$f"
14626 break
14627 fi
14628 done
14629 fi
14630 fi
14631 fi
14632 if test "X$found_dir" = "X"; then
14633 if test -f "$dir/$libname.$acl_libext"; then
14634 found_dir="$dir"
14635 found_a="$dir/$libname.$acl_libext"
14636 fi
14637 fi
14638 if test "X$found_dir" != "X"; then
14639 if test -f "$dir/$libname.la"; then
14640 found_la="$dir/$libname.la"
14641 fi
14642 fi
14643 fi
14644 if test "X$found_dir" = "X"; then
14645 for x in $LDFLAGS $LTLIBICONV; do
14646
14647 acl_save_prefix="$prefix"
14648 prefix="$acl_final_prefix"
14649 acl_save_exec_prefix="$exec_prefix"
14650 exec_prefix="$acl_final_exec_prefix"
14651 eval x=\"$x\"
14652 exec_prefix="$acl_save_exec_prefix"
14653 prefix="$acl_save_prefix"
14654
14655 case "$x" in
14656 -L*)
14657 dir=`echo "X$x" | sed -e 's/^X-L//'`
14658 if test -n "$acl_shlibext"; then
14659 if test -f "$dir/$libname$shrext"; then
14660 found_dir="$dir"
14661 found_so="$dir/$libname$shrext"
14662 else
14663 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14664 ver=`(cd "$dir" && \
14665 for f in "$libname$shrext".*; do echo "$f"; done \
14666 | sed -e "s,^$libname$shrext\\\\.,," \
14667 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14668 | sed 1q ) 2>/dev/null`
14669 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14670 found_dir="$dir"
14671 found_so="$dir/$libname$shrext.$ver"
14672 fi
14673 else
14674 eval library_names=\"$acl_library_names_spec\"
14675 for f in $library_names; do
14676 if test -f "$dir/$f"; then
14677 found_dir="$dir"
14678 found_so="$dir/$f"
14679 break
14680 fi
14681 done
14682 fi
14683 fi
14684 fi
14685 if test "X$found_dir" = "X"; then
14686 if test -f "$dir/$libname.$acl_libext"; then
14687 found_dir="$dir"
14688 found_a="$dir/$libname.$acl_libext"
14689 fi
14690 fi
14691 if test "X$found_dir" != "X"; then
14692 if test -f "$dir/$libname.la"; then
14693 found_la="$dir/$libname.la"
14694 fi
14695 fi
14696 ;;
14697 esac
14698 if test "X$found_dir" != "X"; then
14699 break
14700 fi
14701 done
14702 fi
14703 if test "X$found_dir" != "X"; then
14704 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14705 if test "X$found_so" != "X"; then
14706 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14707 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14708 else
14709 haveit=
14710 for x in $ltrpathdirs; do
14711 if test "X$x" = "X$found_dir"; then
14712 haveit=yes
14713 break
14714 fi
14715 done
14716 if test -z "$haveit"; then
14717 ltrpathdirs="$ltrpathdirs $found_dir"
14718 fi
14719 if test "$acl_hardcode_direct" = yes; then
14720 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14721 else
14722 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14723 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14724 haveit=
14725 for x in $rpathdirs; do
14726 if test "X$x" = "X$found_dir"; then
14727 haveit=yes
14728 break
14729 fi
14730 done
14731 if test -z "$haveit"; then
14732 rpathdirs="$rpathdirs $found_dir"
14733 fi
14734 else
14735 haveit=
14736 for x in $LDFLAGS $LIBICONV; do
14737
14738 acl_save_prefix="$prefix"
14739 prefix="$acl_final_prefix"
14740 acl_save_exec_prefix="$exec_prefix"
14741 exec_prefix="$acl_final_exec_prefix"
14742 eval x=\"$x\"
14743 exec_prefix="$acl_save_exec_prefix"
14744 prefix="$acl_save_prefix"
14745
14746 if test "X$x" = "X-L$found_dir"; then
14747 haveit=yes
14748 break
14749 fi
14750 done
14751 if test -z "$haveit"; then
14752 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14753 fi
14754 if test "$acl_hardcode_minus_L" != no; then
14755 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14756 else
14757 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14758 fi
14759 fi
14760 fi
14761 fi
14762 else
14763 if test "X$found_a" != "X"; then
14764 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14765 else
14766 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14767 fi
14768 fi
14769 additional_includedir=
14770 case "$found_dir" in
14771 */$acl_libdirstem | */$acl_libdirstem/)
14772 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14773 LIBICONV_PREFIX="$basedir"
14774 additional_includedir="$basedir/include"
14775 ;;
14776 esac
14777 if test "X$additional_includedir" != "X"; then
14778 if test "X$additional_includedir" != "X/usr/include"; then
14779 haveit=
14780 if test "X$additional_includedir" = "X/usr/local/include"; then
14781 if test -n "$GCC"; then
14782 case $host_os in
14783 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14784 esac
14785 fi
14786 fi
14787 if test -z "$haveit"; then
14788 for x in $CPPFLAGS $INCICONV; do
14789
14790 acl_save_prefix="$prefix"
14791 prefix="$acl_final_prefix"
14792 acl_save_exec_prefix="$exec_prefix"
14793 exec_prefix="$acl_final_exec_prefix"
14794 eval x=\"$x\"
14795 exec_prefix="$acl_save_exec_prefix"
14796 prefix="$acl_save_prefix"
14797
14798 if test "X$x" = "X-I$additional_includedir"; then
14799 haveit=yes
14800 break
14801 fi
14802 done
14803 if test -z "$haveit"; then
14804 if test -d "$additional_includedir"; then
14805 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14806 fi
14807 fi
14808 fi
14809 fi
14810 fi
14811 if test -n "$found_la"; then
14812 save_libdir="$libdir"
14813 case "$found_la" in
14814 */* | *\\*) . "$found_la" ;;
14815 *) . "./$found_la" ;;
14816 esac
14817 libdir="$save_libdir"
14818 for dep in $dependency_libs; do
14819 case "$dep" in
14820 -L*)
14821 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14822 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14823 haveit=
14824 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14825 if test -n "$GCC"; then
14826 case $host_os in
14827 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14828 esac
14829 fi
14830 fi
14831 if test -z "$haveit"; then
14832 haveit=
14833 for x in $LDFLAGS $LIBICONV; do
14834
14835 acl_save_prefix="$prefix"
14836 prefix="$acl_final_prefix"
14837 acl_save_exec_prefix="$exec_prefix"
14838 exec_prefix="$acl_final_exec_prefix"
14839 eval x=\"$x\"
14840 exec_prefix="$acl_save_exec_prefix"
14841 prefix="$acl_save_prefix"
14842
14843 if test "X$x" = "X-L$additional_libdir"; then
14844 haveit=yes
14845 break
14846 fi
14847 done
14848 if test -z "$haveit"; then
14849 if test -d "$additional_libdir"; then
14850 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14851 fi
14852 fi
14853 haveit=
14854 for x in $LDFLAGS $LTLIBICONV; do
14855
14856 acl_save_prefix="$prefix"
14857 prefix="$acl_final_prefix"
14858 acl_save_exec_prefix="$exec_prefix"
14859 exec_prefix="$acl_final_exec_prefix"
14860 eval x=\"$x\"
14861 exec_prefix="$acl_save_exec_prefix"
14862 prefix="$acl_save_prefix"
14863
14864 if test "X$x" = "X-L$additional_libdir"; then
14865 haveit=yes
14866 break
14867 fi
14868 done
14869 if test -z "$haveit"; then
14870 if test -d "$additional_libdir"; then
14871 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14872 fi
14873 fi
14874 fi
14875 fi
14876 ;;
14877 -R*)
14878 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14879 if test "$enable_rpath" != no; then
14880 haveit=
14881 for x in $rpathdirs; do
14882 if test "X$x" = "X$dir"; then
14883 haveit=yes
14884 break
14885 fi
14886 done
14887 if test -z "$haveit"; then
14888 rpathdirs="$rpathdirs $dir"
14889 fi
14890 haveit=
14891 for x in $ltrpathdirs; do
14892 if test "X$x" = "X$dir"; then
14893 haveit=yes
14894 break
14895 fi
14896 done
14897 if test -z "$haveit"; then
14898 ltrpathdirs="$ltrpathdirs $dir"
14899 fi
14900 fi
14901 ;;
14902 -l*)
14903 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14904 ;;
14905 *.la)
14906 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14907 ;;
14908 *)
14909 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14910 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14911 ;;
14912 esac
14913 done
14914 fi
14915 else
14916 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14917 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14918 fi
14919 fi
14920 fi
14921 done
14922 done
14923 if test "X$rpathdirs" != "X"; then
14924 if test -n "$acl_hardcode_libdir_separator"; then
14925 alldirs=
14926 for found_dir in $rpathdirs; do
14927 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14928 done
14929 acl_save_libdir="$libdir"
14930 libdir="$alldirs"
14931 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14932 libdir="$acl_save_libdir"
14933 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14934 else
14935 for found_dir in $rpathdirs; do
14936 acl_save_libdir="$libdir"
14937 libdir="$found_dir"
14938 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14939 libdir="$acl_save_libdir"
14940 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14941 done
14942 fi
14943 fi
14944 if test "X$ltrpathdirs" != "X"; then
14945 for found_dir in $ltrpathdirs; do
14946 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14947 done
14948 fi
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14975 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
14976 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
14977 then :
14978 printf %s "(cached) " >&6
14979 else $as_nop
14980 gt_save_LIBS="$LIBS"
14981 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14983 /* end confdefs.h. */
14984 #include <CoreFoundation/CFPreferences.h>
14985 int
14986 main (void)
14987 {
14988 CFPreferencesCopyAppValue(NULL, NULL)
14989 ;
14990 return 0;
14991 }
14992 _ACEOF
14993 if ac_fn_c_try_link "$LINENO"
14994 then :
14995 gt_cv_func_CFPreferencesCopyAppValue=yes
14996 else $as_nop
14997 gt_cv_func_CFPreferencesCopyAppValue=no
14998 fi
14999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15000 conftest$ac_exeext conftest.$ac_ext
15001 LIBS="$gt_save_LIBS"
15002 fi
15003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15004 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15005 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15006
15007 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15008
15009 fi
15010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15011 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
15012 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
15013 then :
15014 printf %s "(cached) " >&6
15015 else $as_nop
15016 gt_save_LIBS="$LIBS"
15017 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15020 #include <CoreFoundation/CFLocale.h>
15021 int
15022 main (void)
15023 {
15024 CFLocaleCopyCurrent();
15025 ;
15026 return 0;
15027 }
15028 _ACEOF
15029 if ac_fn_c_try_link "$LINENO"
15030 then :
15031 gt_cv_func_CFLocaleCopyCurrent=yes
15032 else $as_nop
15033 gt_cv_func_CFLocaleCopyCurrent=no
15034 fi
15035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15036 conftest$ac_exeext conftest.$ac_ext
15037 LIBS="$gt_save_LIBS"
15038 fi
15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15040 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15041 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15042
15043 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15044
15045 fi
15046 INTL_MACOSX_LIBS=
15047 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15048 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15049 fi
15050
15051
15052
15053
15054
15055
15056 LIBINTL=
15057 LTLIBINTL=
15058 POSUB=
15059
15060 case " $gt_needs " in
15061 *" need-formatstring-macros "*) gt_api_version=3 ;;
15062 *" need-ngettext "*) gt_api_version=2 ;;
15063 *) gt_api_version=1 ;;
15064 esac
15065 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15066 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15067
15068 if test "$USE_NLS" = "yes"; then
15069 gt_use_preinstalled_gnugettext=no
15070
15071
15072 if test $gt_api_version -ge 3; then
15073 gt_revision_test_code='
15074 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15075 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15076 #endif
15077 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15078 '
15079 else
15080 gt_revision_test_code=
15081 fi
15082 if test $gt_api_version -ge 2; then
15083 gt_expression_test_code=' + * ngettext ("", "", 0)'
15084 else
15085 gt_expression_test_code=
15086 fi
15087
15088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15089 printf %s "checking for GNU gettext in libc... " >&6; }
15090 if eval test \${$gt_func_gnugettext_libc+y}
15091 then :
15092 printf %s "(cached) " >&6
15093 else $as_nop
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15096 #include <libintl.h>
15097 $gt_revision_test_code
15098 extern int _nl_msg_cat_cntr;
15099 extern int *_nl_domain_bindings;
15100 int
15101 main (void)
15102 {
15103 bindtextdomain ("", "");
15104 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15105 ;
15106 return 0;
15107 }
15108 _ACEOF
15109 if ac_fn_c_try_link "$LINENO"
15110 then :
15111 eval "$gt_func_gnugettext_libc=yes"
15112 else $as_nop
15113 eval "$gt_func_gnugettext_libc=no"
15114 fi
15115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15116 conftest$ac_exeext conftest.$ac_ext
15117 fi
15118 eval ac_res=\$$gt_func_gnugettext_libc
15119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15120 printf "%s\n" "$ac_res" >&6; }
15121
15122 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15123
15124
15125
15126
15127
15128 am_save_CPPFLAGS="$CPPFLAGS"
15129
15130 for element in $INCICONV; do
15131 haveit=
15132 for x in $CPPFLAGS; do
15133
15134 acl_save_prefix="$prefix"
15135 prefix="$acl_final_prefix"
15136 acl_save_exec_prefix="$exec_prefix"
15137 exec_prefix="$acl_final_exec_prefix"
15138 eval x=\"$x\"
15139 exec_prefix="$acl_save_exec_prefix"
15140 prefix="$acl_save_prefix"
15141
15142 if test "X$x" = "X$element"; then
15143 haveit=yes
15144 break
15145 fi
15146 done
15147 if test -z "$haveit"; then
15148 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15149 fi
15150 done
15151
15152
15153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15154 printf %s "checking for iconv... " >&6; }
15155 if test ${am_cv_func_iconv+y}
15156 then :
15157 printf %s "(cached) " >&6
15158 else $as_nop
15159
15160 am_cv_func_iconv="no, consider installing GNU libiconv"
15161 am_cv_lib_iconv=no
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h. */
15164 #include <stdlib.h>
15165 #include <iconv.h>
15166 int
15167 main (void)
15168 {
15169 iconv_t cd = iconv_open("","");
15170 iconv(cd,NULL,NULL,NULL,NULL);
15171 iconv_close(cd);
15172 ;
15173 return 0;
15174 }
15175 _ACEOF
15176 if ac_fn_c_try_link "$LINENO"
15177 then :
15178 am_cv_func_iconv=yes
15179 fi
15180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15181 conftest$ac_exeext conftest.$ac_ext
15182 if test "$am_cv_func_iconv" != yes; then
15183 am_save_LIBS="$LIBS"
15184 LIBS="$LIBS $LIBICONV"
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15187 #include <stdlib.h>
15188 #include <iconv.h>
15189 int
15190 main (void)
15191 {
15192 iconv_t cd = iconv_open("","");
15193 iconv(cd,NULL,NULL,NULL,NULL);
15194 iconv_close(cd);
15195 ;
15196 return 0;
15197 }
15198 _ACEOF
15199 if ac_fn_c_try_link "$LINENO"
15200 then :
15201 am_cv_lib_iconv=yes
15202 am_cv_func_iconv=yes
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15205 conftest$ac_exeext conftest.$ac_ext
15206 LIBS="$am_save_LIBS"
15207 fi
15208
15209 fi
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15211 printf "%s\n" "$am_cv_func_iconv" >&6; }
15212 if test "$am_cv_func_iconv" = yes; then
15213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15214 printf %s "checking for working iconv... " >&6; }
15215 if test ${am_cv_func_iconv_works+y}
15216 then :
15217 printf %s "(cached) " >&6
15218 else $as_nop
15219
15220 am_save_LIBS="$LIBS"
15221 if test $am_cv_lib_iconv = yes; then
15222 LIBS="$LIBS $LIBICONV"
15223 fi
15224 if test "$cross_compiling" = yes
15225 then :
15226 case "$host_os" in
15227 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15228 *) am_cv_func_iconv_works="guessing yes" ;;
15229 esac
15230 else $as_nop
15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15233
15234 #include <iconv.h>
15235 #include <string.h>
15236 int main ()
15237 {
15238 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15239 returns. */
15240 {
15241 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15242 if (cd_utf8_to_88591 != (iconv_t)(-1))
15243 {
15244 static const char input[] = "\342\202\254"; /* EURO SIGN */
15245 char buf[10];
15246 const char *inptr = input;
15247 size_t inbytesleft = strlen (input);
15248 char *outptr = buf;
15249 size_t outbytesleft = sizeof (buf);
15250 size_t res = iconv (cd_utf8_to_88591,
15251 (char **) &inptr, &inbytesleft,
15252 &outptr, &outbytesleft);
15253 if (res == 0)
15254 return 1;
15255 }
15256 }
15257 #if 0 /* This bug could be worked around by the caller. */
15258 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15259 {
15260 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15261 if (cd_88591_to_utf8 != (iconv_t)(-1))
15262 {
15263 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15264 char buf[50];
15265 const char *inptr = input;
15266 size_t inbytesleft = strlen (input);
15267 char *outptr = buf;
15268 size_t outbytesleft = sizeof (buf);
15269 size_t res = iconv (cd_88591_to_utf8,
15270 (char **) &inptr, &inbytesleft,
15271 &outptr, &outbytesleft);
15272 if ((int)res > 0)
15273 return 1;
15274 }
15275 }
15276 #endif
15277 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15278 provided. */
15279 if (/* Try standardized names. */
15280 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15281 /* Try IRIX, OSF/1 names. */
15282 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15283 /* Try AIX names. */
15284 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15285 /* Try HP-UX names. */
15286 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15287 return 1;
15288 return 0;
15289 }
15290 _ACEOF
15291 if ac_fn_c_try_run "$LINENO"
15292 then :
15293 am_cv_func_iconv_works=yes
15294 else $as_nop
15295 am_cv_func_iconv_works=no
15296 fi
15297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15298 conftest.$ac_objext conftest.beam conftest.$ac_ext
15299 fi
15300
15301 LIBS="$am_save_LIBS"
15302
15303 fi
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15305 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
15306 case "$am_cv_func_iconv_works" in
15307 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15308 *) am_func_iconv=yes ;;
15309 esac
15310 else
15311 am_func_iconv=no am_cv_lib_iconv=no
15312 fi
15313 if test "$am_func_iconv" = yes; then
15314
15315 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
15316
15317 fi
15318 if test "$am_cv_lib_iconv" = yes; then
15319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15320 printf %s "checking how to link with libiconv... " >&6; }
15321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15322 printf "%s\n" "$LIBICONV" >&6; }
15323 else
15324 CPPFLAGS="$am_save_CPPFLAGS"
15325 LIBICONV=
15326 LTLIBICONV=
15327 fi
15328
15329
15330
15331
15332
15333
15334
15335
15336 use_additional=yes
15337
15338 acl_save_prefix="$prefix"
15339 prefix="$acl_final_prefix"
15340 acl_save_exec_prefix="$exec_prefix"
15341 exec_prefix="$acl_final_exec_prefix"
15342
15343 eval additional_includedir=\"$includedir\"
15344 eval additional_libdir=\"$libdir\"
15345
15346 exec_prefix="$acl_save_exec_prefix"
15347 prefix="$acl_save_prefix"
15348
15349
15350 # Check whether --with-libintl-prefix was given.
15351 if test ${with_libintl_prefix+y}
15352 then :
15353 withval=$with_libintl_prefix;
15354 if test "X$withval" = "Xno"; then
15355 use_additional=no
15356 else
15357 if test "X$withval" = "X"; then
15358
15359 acl_save_prefix="$prefix"
15360 prefix="$acl_final_prefix"
15361 acl_save_exec_prefix="$exec_prefix"
15362 exec_prefix="$acl_final_exec_prefix"
15363
15364 eval additional_includedir=\"$includedir\"
15365 eval additional_libdir=\"$libdir\"
15366
15367 exec_prefix="$acl_save_exec_prefix"
15368 prefix="$acl_save_prefix"
15369
15370 else
15371 additional_includedir="$withval/include"
15372 additional_libdir="$withval/$acl_libdirstem"
15373 fi
15374 fi
15375
15376 fi
15377
15378 LIBINTL=
15379 LTLIBINTL=
15380 INCINTL=
15381 LIBINTL_PREFIX=
15382 rpathdirs=
15383 ltrpathdirs=
15384 names_already_handled=
15385 names_next_round='intl '
15386 while test -n "$names_next_round"; do
15387 names_this_round="$names_next_round"
15388 names_next_round=
15389 for name in $names_this_round; do
15390 already_handled=
15391 for n in $names_already_handled; do
15392 if test "$n" = "$name"; then
15393 already_handled=yes
15394 break
15395 fi
15396 done
15397 if test -z "$already_handled"; then
15398 names_already_handled="$names_already_handled $name"
15399 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15400 eval value=\"\$HAVE_LIB$uppername\"
15401 if test -n "$value"; then
15402 if test "$value" = yes; then
15403 eval value=\"\$LIB$uppername\"
15404 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15405 eval value=\"\$LTLIB$uppername\"
15406 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15407 else
15408 :
15409 fi
15410 else
15411 found_dir=
15412 found_la=
15413 found_so=
15414 found_a=
15415 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15416 if test -n "$acl_shlibext"; then
15417 shrext=".$acl_shlibext" # typically: shrext=.so
15418 else
15419 shrext=
15420 fi
15421 if test $use_additional = yes; then
15422 dir="$additional_libdir"
15423 if test -n "$acl_shlibext"; then
15424 if test -f "$dir/$libname$shrext"; then
15425 found_dir="$dir"
15426 found_so="$dir/$libname$shrext"
15427 else
15428 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15429 ver=`(cd "$dir" && \
15430 for f in "$libname$shrext".*; do echo "$f"; done \
15431 | sed -e "s,^$libname$shrext\\\\.,," \
15432 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15433 | sed 1q ) 2>/dev/null`
15434 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15435 found_dir="$dir"
15436 found_so="$dir/$libname$shrext.$ver"
15437 fi
15438 else
15439 eval library_names=\"$acl_library_names_spec\"
15440 for f in $library_names; do
15441 if test -f "$dir/$f"; then
15442 found_dir="$dir"
15443 found_so="$dir/$f"
15444 break
15445 fi
15446 done
15447 fi
15448 fi
15449 fi
15450 if test "X$found_dir" = "X"; then
15451 if test -f "$dir/$libname.$acl_libext"; then
15452 found_dir="$dir"
15453 found_a="$dir/$libname.$acl_libext"
15454 fi
15455 fi
15456 if test "X$found_dir" != "X"; then
15457 if test -f "$dir/$libname.la"; then
15458 found_la="$dir/$libname.la"
15459 fi
15460 fi
15461 fi
15462 if test "X$found_dir" = "X"; then
15463 for x in $LDFLAGS $LTLIBINTL; do
15464
15465 acl_save_prefix="$prefix"
15466 prefix="$acl_final_prefix"
15467 acl_save_exec_prefix="$exec_prefix"
15468 exec_prefix="$acl_final_exec_prefix"
15469 eval x=\"$x\"
15470 exec_prefix="$acl_save_exec_prefix"
15471 prefix="$acl_save_prefix"
15472
15473 case "$x" in
15474 -L*)
15475 dir=`echo "X$x" | sed -e 's/^X-L//'`
15476 if test -n "$acl_shlibext"; then
15477 if test -f "$dir/$libname$shrext"; then
15478 found_dir="$dir"
15479 found_so="$dir/$libname$shrext"
15480 else
15481 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15482 ver=`(cd "$dir" && \
15483 for f in "$libname$shrext".*; do echo "$f"; done \
15484 | sed -e "s,^$libname$shrext\\\\.,," \
15485 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15486 | sed 1q ) 2>/dev/null`
15487 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15488 found_dir="$dir"
15489 found_so="$dir/$libname$shrext.$ver"
15490 fi
15491 else
15492 eval library_names=\"$acl_library_names_spec\"
15493 for f in $library_names; do
15494 if test -f "$dir/$f"; then
15495 found_dir="$dir"
15496 found_so="$dir/$f"
15497 break
15498 fi
15499 done
15500 fi
15501 fi
15502 fi
15503 if test "X$found_dir" = "X"; then
15504 if test -f "$dir/$libname.$acl_libext"; then
15505 found_dir="$dir"
15506 found_a="$dir/$libname.$acl_libext"
15507 fi
15508 fi
15509 if test "X$found_dir" != "X"; then
15510 if test -f "$dir/$libname.la"; then
15511 found_la="$dir/$libname.la"
15512 fi
15513 fi
15514 ;;
15515 esac
15516 if test "X$found_dir" != "X"; then
15517 break
15518 fi
15519 done
15520 fi
15521 if test "X$found_dir" != "X"; then
15522 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15523 if test "X$found_so" != "X"; then
15524 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15525 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15526 else
15527 haveit=
15528 for x in $ltrpathdirs; do
15529 if test "X$x" = "X$found_dir"; then
15530 haveit=yes
15531 break
15532 fi
15533 done
15534 if test -z "$haveit"; then
15535 ltrpathdirs="$ltrpathdirs $found_dir"
15536 fi
15537 if test "$acl_hardcode_direct" = yes; then
15538 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15539 else
15540 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15541 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15542 haveit=
15543 for x in $rpathdirs; do
15544 if test "X$x" = "X$found_dir"; then
15545 haveit=yes
15546 break
15547 fi
15548 done
15549 if test -z "$haveit"; then
15550 rpathdirs="$rpathdirs $found_dir"
15551 fi
15552 else
15553 haveit=
15554 for x in $LDFLAGS $LIBINTL; do
15555
15556 acl_save_prefix="$prefix"
15557 prefix="$acl_final_prefix"
15558 acl_save_exec_prefix="$exec_prefix"
15559 exec_prefix="$acl_final_exec_prefix"
15560 eval x=\"$x\"
15561 exec_prefix="$acl_save_exec_prefix"
15562 prefix="$acl_save_prefix"
15563
15564 if test "X$x" = "X-L$found_dir"; then
15565 haveit=yes
15566 break
15567 fi
15568 done
15569 if test -z "$haveit"; then
15570 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15571 fi
15572 if test "$acl_hardcode_minus_L" != no; then
15573 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15574 else
15575 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15576 fi
15577 fi
15578 fi
15579 fi
15580 else
15581 if test "X$found_a" != "X"; then
15582 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15583 else
15584 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15585 fi
15586 fi
15587 additional_includedir=
15588 case "$found_dir" in
15589 */$acl_libdirstem | */$acl_libdirstem/)
15590 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15591 LIBINTL_PREFIX="$basedir"
15592 additional_includedir="$basedir/include"
15593 ;;
15594 esac
15595 if test "X$additional_includedir" != "X"; then
15596 if test "X$additional_includedir" != "X/usr/include"; then
15597 haveit=
15598 if test "X$additional_includedir" = "X/usr/local/include"; then
15599 if test -n "$GCC"; then
15600 case $host_os in
15601 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15602 esac
15603 fi
15604 fi
15605 if test -z "$haveit"; then
15606 for x in $CPPFLAGS $INCINTL; do
15607
15608 acl_save_prefix="$prefix"
15609 prefix="$acl_final_prefix"
15610 acl_save_exec_prefix="$exec_prefix"
15611 exec_prefix="$acl_final_exec_prefix"
15612 eval x=\"$x\"
15613 exec_prefix="$acl_save_exec_prefix"
15614 prefix="$acl_save_prefix"
15615
15616 if test "X$x" = "X-I$additional_includedir"; then
15617 haveit=yes
15618 break
15619 fi
15620 done
15621 if test -z "$haveit"; then
15622 if test -d "$additional_includedir"; then
15623 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15624 fi
15625 fi
15626 fi
15627 fi
15628 fi
15629 if test -n "$found_la"; then
15630 save_libdir="$libdir"
15631 case "$found_la" in
15632 */* | *\\*) . "$found_la" ;;
15633 *) . "./$found_la" ;;
15634 esac
15635 libdir="$save_libdir"
15636 for dep in $dependency_libs; do
15637 case "$dep" in
15638 -L*)
15639 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15640 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15641 haveit=
15642 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15643 if test -n "$GCC"; then
15644 case $host_os in
15645 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15646 esac
15647 fi
15648 fi
15649 if test -z "$haveit"; then
15650 haveit=
15651 for x in $LDFLAGS $LIBINTL; do
15652
15653 acl_save_prefix="$prefix"
15654 prefix="$acl_final_prefix"
15655 acl_save_exec_prefix="$exec_prefix"
15656 exec_prefix="$acl_final_exec_prefix"
15657 eval x=\"$x\"
15658 exec_prefix="$acl_save_exec_prefix"
15659 prefix="$acl_save_prefix"
15660
15661 if test "X$x" = "X-L$additional_libdir"; then
15662 haveit=yes
15663 break
15664 fi
15665 done
15666 if test -z "$haveit"; then
15667 if test -d "$additional_libdir"; then
15668 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15669 fi
15670 fi
15671 haveit=
15672 for x in $LDFLAGS $LTLIBINTL; do
15673
15674 acl_save_prefix="$prefix"
15675 prefix="$acl_final_prefix"
15676 acl_save_exec_prefix="$exec_prefix"
15677 exec_prefix="$acl_final_exec_prefix"
15678 eval x=\"$x\"
15679 exec_prefix="$acl_save_exec_prefix"
15680 prefix="$acl_save_prefix"
15681
15682 if test "X$x" = "X-L$additional_libdir"; then
15683 haveit=yes
15684 break
15685 fi
15686 done
15687 if test -z "$haveit"; then
15688 if test -d "$additional_libdir"; then
15689 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15690 fi
15691 fi
15692 fi
15693 fi
15694 ;;
15695 -R*)
15696 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15697 if test "$enable_rpath" != no; then
15698 haveit=
15699 for x in $rpathdirs; do
15700 if test "X$x" = "X$dir"; then
15701 haveit=yes
15702 break
15703 fi
15704 done
15705 if test -z "$haveit"; then
15706 rpathdirs="$rpathdirs $dir"
15707 fi
15708 haveit=
15709 for x in $ltrpathdirs; do
15710 if test "X$x" = "X$dir"; then
15711 haveit=yes
15712 break
15713 fi
15714 done
15715 if test -z "$haveit"; then
15716 ltrpathdirs="$ltrpathdirs $dir"
15717 fi
15718 fi
15719 ;;
15720 -l*)
15721 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15722 ;;
15723 *.la)
15724 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15725 ;;
15726 *)
15727 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15728 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15729 ;;
15730 esac
15731 done
15732 fi
15733 else
15734 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15735 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15736 fi
15737 fi
15738 fi
15739 done
15740 done
15741 if test "X$rpathdirs" != "X"; then
15742 if test -n "$acl_hardcode_libdir_separator"; then
15743 alldirs=
15744 for found_dir in $rpathdirs; do
15745 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15746 done
15747 acl_save_libdir="$libdir"
15748 libdir="$alldirs"
15749 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15750 libdir="$acl_save_libdir"
15751 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15752 else
15753 for found_dir in $rpathdirs; do
15754 acl_save_libdir="$libdir"
15755 libdir="$found_dir"
15756 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15757 libdir="$acl_save_libdir"
15758 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15759 done
15760 fi
15761 fi
15762 if test "X$ltrpathdirs" != "X"; then
15763 for found_dir in $ltrpathdirs; do
15764 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15765 done
15766 fi
15767
15768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15769 printf %s "checking for GNU gettext in libintl... " >&6; }
15770 if eval test \${$gt_func_gnugettext_libintl+y}
15771 then :
15772 printf %s "(cached) " >&6
15773 else $as_nop
15774 gt_save_CPPFLAGS="$CPPFLAGS"
15775 CPPFLAGS="$CPPFLAGS $INCINTL"
15776 gt_save_LIBS="$LIBS"
15777 LIBS="$LIBS $LIBINTL"
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779 /* end confdefs.h. */
15780 #include <libintl.h>
15781 $gt_revision_test_code
15782 extern int _nl_msg_cat_cntr;
15783 extern
15784 #ifdef __cplusplus
15785 "C"
15786 #endif
15787 const char *_nl_expand_alias (const char *);
15788 int
15789 main (void)
15790 {
15791 bindtextdomain ("", "");
15792 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15793 ;
15794 return 0;
15795 }
15796 _ACEOF
15797 if ac_fn_c_try_link "$LINENO"
15798 then :
15799 eval "$gt_func_gnugettext_libintl=yes"
15800 else $as_nop
15801 eval "$gt_func_gnugettext_libintl=no"
15802 fi
15803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15804 conftest$ac_exeext conftest.$ac_ext
15805 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15806 LIBS="$LIBS $LIBICONV"
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808 /* end confdefs.h. */
15809 #include <libintl.h>
15810 $gt_revision_test_code
15811 extern int _nl_msg_cat_cntr;
15812 extern
15813 #ifdef __cplusplus
15814 "C"
15815 #endif
15816 const char *_nl_expand_alias (const char *);
15817 int
15818 main (void)
15819 {
15820 bindtextdomain ("", "");
15821 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15822 ;
15823 return 0;
15824 }
15825 _ACEOF
15826 if ac_fn_c_try_link "$LINENO"
15827 then :
15828 LIBINTL="$LIBINTL $LIBICONV"
15829 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15830 eval "$gt_func_gnugettext_libintl=yes"
15831
15832 fi
15833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15834 conftest$ac_exeext conftest.$ac_ext
15835 fi
15836 CPPFLAGS="$gt_save_CPPFLAGS"
15837 LIBS="$gt_save_LIBS"
15838 fi
15839 eval ac_res=\$$gt_func_gnugettext_libintl
15840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15841 printf "%s\n" "$ac_res" >&6; }
15842 fi
15843
15844 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15845 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15846 && test "$PACKAGE" != gettext-runtime \
15847 && test "$PACKAGE" != gettext-tools; }; then
15848 gt_use_preinstalled_gnugettext=yes
15849 else
15850 LIBINTL=
15851 LTLIBINTL=
15852 INCINTL=
15853 fi
15854
15855
15856
15857 if test -n "$INTL_MACOSX_LIBS"; then
15858 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15859 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15860 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15861 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15862 fi
15863 fi
15864
15865 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15866 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15867
15868 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
15869
15870 else
15871 USE_NLS=no
15872 fi
15873 fi
15874
15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15876 printf %s "checking whether to use NLS... " >&6; }
15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15878 printf "%s\n" "$USE_NLS" >&6; }
15879 if test "$USE_NLS" = "yes"; then
15880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15881 printf %s "checking where the gettext function comes from... " >&6; }
15882 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15883 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15884 gt_source="external libintl"
15885 else
15886 gt_source="libc"
15887 fi
15888 else
15889 gt_source="included intl directory"
15890 fi
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15892 printf "%s\n" "$gt_source" >&6; }
15893 fi
15894
15895 if test "$USE_NLS" = "yes"; then
15896
15897 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15898 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15900 printf %s "checking how to link with libintl... " >&6; }
15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15902 printf "%s\n" "$LIBINTL" >&6; }
15903
15904 for element in $INCINTL; do
15905 haveit=
15906 for x in $CPPFLAGS; do
15907
15908 acl_save_prefix="$prefix"
15909 prefix="$acl_final_prefix"
15910 acl_save_exec_prefix="$exec_prefix"
15911 exec_prefix="$acl_final_exec_prefix"
15912 eval x=\"$x\"
15913 exec_prefix="$acl_save_exec_prefix"
15914 prefix="$acl_save_prefix"
15915
15916 if test "X$x" = "X$element"; then
15917 haveit=yes
15918 break
15919 fi
15920 done
15921 if test -z "$haveit"; then
15922 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15923 fi
15924 done
15925
15926 fi
15927
15928
15929 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
15930
15931
15932 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
15933
15934 fi
15935
15936 POSUB=po
15937 fi
15938
15939
15940
15941 INTLLIBS="$LIBINTL"
15942
15943
15944
15945
15946
15947
15948
15949 printf "%s\n" "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
15950
15951
15952 # check for gtk-doc
15953
15954
15955
15956
15957
15958
15959
15960 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15961 if test -n "$ac_tool_prefix"; then
15962 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15963 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15965 printf %s "checking for $ac_word... " >&6; }
15966 if test ${ac_cv_path_PKG_CONFIG+y}
15967 then :
15968 printf %s "(cached) " >&6
15969 else $as_nop
15970 case $PKG_CONFIG in
15971 [\\/]* | ?:[\\/]*)
15972 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15973 ;;
15974 *)
15975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15976 for as_dir in $PATH
15977 do
15978 IFS=$as_save_IFS
15979 case $as_dir in #(((
15980 '') as_dir=./ ;;
15981 */) ;;
15982 *) as_dir=$as_dir/ ;;
15983 esac
15984 for ac_exec_ext in '' $ac_executable_extensions; do
15985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15986 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15988 break 2
15989 fi
15990 done
15991 done
15992 IFS=$as_save_IFS
15993
15994 ;;
15995 esac
15996 fi
15997 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15998 if test -n "$PKG_CONFIG"; then
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16000 printf "%s\n" "$PKG_CONFIG" >&6; }
16001 else
16002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16003 printf "%s\n" "no" >&6; }
16004 fi
16005
16006
16007 fi
16008 if test -z "$ac_cv_path_PKG_CONFIG"; then
16009 ac_pt_PKG_CONFIG=$PKG_CONFIG
16010 # Extract the first word of "pkg-config", so it can be a program name with args.
16011 set dummy pkg-config; ac_word=$2
16012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16013 printf %s "checking for $ac_word... " >&6; }
16014 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
16015 then :
16016 printf %s "(cached) " >&6
16017 else $as_nop
16018 case $ac_pt_PKG_CONFIG in
16019 [\\/]* | ?:[\\/]*)
16020 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16021 ;;
16022 *)
16023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16024 for as_dir in $PATH
16025 do
16026 IFS=$as_save_IFS
16027 case $as_dir in #(((
16028 '') as_dir=./ ;;
16029 */) ;;
16030 *) as_dir=$as_dir/ ;;
16031 esac
16032 for ac_exec_ext in '' $ac_executable_extensions; do
16033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16034 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16036 break 2
16037 fi
16038 done
16039 done
16040 IFS=$as_save_IFS
16041
16042 ;;
16043 esac
16044 fi
16045 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16046 if test -n "$ac_pt_PKG_CONFIG"; then
16047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16048 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
16049 else
16050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051 printf "%s\n" "no" >&6; }
16052 fi
16053
16054 if test "x$ac_pt_PKG_CONFIG" = x; then
16055 PKG_CONFIG=""
16056 else
16057 case $cross_compiling:$ac_tool_warned in
16058 yes:)
16059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16060 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16061 ac_tool_warned=yes ;;
16062 esac
16063 PKG_CONFIG=$ac_pt_PKG_CONFIG
16064 fi
16065 else
16066 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16067 fi
16068
16069 fi
16070 if test -n "$PKG_CONFIG"; then
16071 _pkg_min_version=0.9.0
16072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16073 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16074 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16076 printf "%s\n" "yes" >&6; }
16077 else
16078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16079 printf "%s\n" "no" >&6; }
16080 PKG_CONFIG=""
16081 fi
16082 fi
16083
16084
16085
16086 gtk_doc_requires="gtk-doc >= 1.9"
16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
16088 printf %s "checking for gtk-doc... " >&6; }
16089 if test -n "$PKG_CONFIG" && \
16090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
16091 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
16092 ac_status=$?
16093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16094 test $ac_status = 0; }; then
16095 have_gtk_doc=yes
16096 else
16097 have_gtk_doc=no
16098 fi
16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
16100 printf "%s\n" "$have_gtk_doc" >&6; }
16101
16102 if test "$have_gtk_doc" = "no"; then
16103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
16104 You will not be able to create source packages with 'make dist'
16105 because $gtk_doc_requires is not found." >&5
16106 printf "%s\n" "$as_me: WARNING:
16107 You will not be able to create source packages with 'make dist'
16108 because $gtk_doc_requires is not found." >&2;}
16109 fi
16110
16111 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16112 set dummy gtkdoc-check; ac_word=$2
16113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114 printf %s "checking for $ac_word... " >&6; }
16115 if test ${ac_cv_prog_GTKDOC_CHECK+y}
16116 then :
16117 printf %s "(cached) " >&6
16118 else $as_nop
16119 if test -n "$GTKDOC_CHECK"; then
16120 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
16121 else
16122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16123 for as_dir in $PATH
16124 do
16125 IFS=$as_save_IFS
16126 case $as_dir in #(((
16127 '') as_dir=./ ;;
16128 */) ;;
16129 *) as_dir=$as_dir/ ;;
16130 esac
16131 for ac_exec_ext in '' $ac_executable_extensions; do
16132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16133 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
16134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16135 break 2
16136 fi
16137 done
16138 done
16139 IFS=$as_save_IFS
16140
16141 fi
16142 fi
16143 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
16144 if test -n "$GTKDOC_CHECK"; then
16145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
16146 printf "%s\n" "$GTKDOC_CHECK" >&6; }
16147 else
16148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 printf "%s\n" "no" >&6; }
16150 fi
16151
16152
16153 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16154 set dummy gtkdoc-check; ac_word=$2
16155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16156 printf %s "checking for $ac_word... " >&6; }
16157 if test ${ac_cv_path_GTKDOC_CHECK_PATH+y}
16158 then :
16159 printf %s "(cached) " >&6
16160 else $as_nop
16161 case $GTKDOC_CHECK_PATH in
16162 [\\/]* | ?:[\\/]*)
16163 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
16164 ;;
16165 *)
16166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16167 for as_dir in $PATH
16168 do
16169 IFS=$as_save_IFS
16170 case $as_dir in #(((
16171 '') as_dir=./ ;;
16172 */) ;;
16173 *) as_dir=$as_dir/ ;;
16174 esac
16175 for ac_exec_ext in '' $ac_executable_extensions; do
16176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16177 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir$ac_word$ac_exec_ext"
16178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16179 break 2
16180 fi
16181 done
16182 done
16183 IFS=$as_save_IFS
16184
16185 ;;
16186 esac
16187 fi
16188 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
16189 if test -n "$GTKDOC_CHECK_PATH"; then
16190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
16191 printf "%s\n" "$GTKDOC_CHECK_PATH" >&6; }
16192 else
16193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16194 printf "%s\n" "no" >&6; }
16195 fi
16196
16197
16198 for ac_prog in gtkdoc-rebase
16199 do
16200 # Extract the first word of "$ac_prog", so it can be a program name with args.
16201 set dummy $ac_prog; ac_word=$2
16202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16203 printf %s "checking for $ac_word... " >&6; }
16204 if test ${ac_cv_path_GTKDOC_REBASE+y}
16205 then :
16206 printf %s "(cached) " >&6
16207 else $as_nop
16208 case $GTKDOC_REBASE in
16209 [\\/]* | ?:[\\/]*)
16210 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
16211 ;;
16212 *)
16213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16214 for as_dir in $PATH
16215 do
16216 IFS=$as_save_IFS
16217 case $as_dir in #(((
16218 '') as_dir=./ ;;
16219 */) ;;
16220 *) as_dir=$as_dir/ ;;
16221 esac
16222 for ac_exec_ext in '' $ac_executable_extensions; do
16223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16224 ac_cv_path_GTKDOC_REBASE="$as_dir$ac_word$ac_exec_ext"
16225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16226 break 2
16227 fi
16228 done
16229 done
16230 IFS=$as_save_IFS
16231
16232 ;;
16233 esac
16234 fi
16235 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
16236 if test -n "$GTKDOC_REBASE"; then
16237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
16238 printf "%s\n" "$GTKDOC_REBASE" >&6; }
16239 else
16240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16241 printf "%s\n" "no" >&6; }
16242 fi
16243
16244
16245 test -n "$GTKDOC_REBASE" && break
16246 done
16247 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
16248
16249 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
16250 set dummy gtkdoc-mkpdf; ac_word=$2
16251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16252 printf %s "checking for $ac_word... " >&6; }
16253 if test ${ac_cv_path_GTKDOC_MKPDF+y}
16254 then :
16255 printf %s "(cached) " >&6
16256 else $as_nop
16257 case $GTKDOC_MKPDF in
16258 [\\/]* | ?:[\\/]*)
16259 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
16260 ;;
16261 *)
16262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16263 for as_dir in $PATH
16264 do
16265 IFS=$as_save_IFS
16266 case $as_dir in #(((
16267 '') as_dir=./ ;;
16268 */) ;;
16269 *) as_dir=$as_dir/ ;;
16270 esac
16271 for ac_exec_ext in '' $ac_executable_extensions; do
16272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16273 ac_cv_path_GTKDOC_MKPDF="$as_dir$ac_word$ac_exec_ext"
16274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16275 break 2
16276 fi
16277 done
16278 done
16279 IFS=$as_save_IFS
16280
16281 ;;
16282 esac
16283 fi
16284 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
16285 if test -n "$GTKDOC_MKPDF"; then
16286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
16287 printf "%s\n" "$GTKDOC_MKPDF" >&6; }
16288 else
16289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290 printf "%s\n" "no" >&6; }
16291 fi
16292
16293
16294
16295
16296 # Check whether --with-html-dir was given.
16297 if test ${with_html_dir+y}
16298 then :
16299 withval=$with_html_dir;
16300 else $as_nop
16301 with_html_dir='${datadir}/gtk-doc/html'
16302 fi
16303
16304 HTML_DIR="$with_html_dir"
16305
16306
16307 # Check whether --enable-gtk-doc was given.
16308 if test ${enable_gtk_doc+y}
16309 then :
16310 enableval=$enable_gtk_doc;
16311 else $as_nop
16312 enable_gtk_doc=no
16313 fi
16314
16315
16316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
16317 printf %s "checking whether to build gtk-doc documentation... " >&6; }
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
16319 printf "%s\n" "$enable_gtk_doc" >&6; }
16320
16321 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
16322 as_fn_error $? "
16323 You must have $gtk_doc_requires installed to build documentation for
16324 $PACKAGE_NAME. Please install gtk-doc or disable building the
16325 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
16326 fi
16327
16328 if test "x$PACKAGE_NAME" != "xglib"; then
16329
16330 pkg_failed=no
16331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" >&5
16332 printf %s "checking for glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0... " >&6; }
16333
16334 if test -n "$GTKDOC_DEPS_CFLAGS"; then
16335 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
16336 elif test -n "$PKG_CONFIG"; then
16337 if test -n "$PKG_CONFIG" && \
16338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
16339 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
16340 ac_status=$?
16341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16342 test $ac_status = 0; }; then
16343 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
16344 test "x$?" != "x0" && pkg_failed=yes
16345 else
16346 pkg_failed=yes
16347 fi
16348 else
16349 pkg_failed=untried
16350 fi
16351 if test -n "$GTKDOC_DEPS_LIBS"; then
16352 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
16353 elif test -n "$PKG_CONFIG"; then
16354 if test -n "$PKG_CONFIG" && \
16355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
16356 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
16357 ac_status=$?
16358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359 test $ac_status = 0; }; then
16360 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
16361 test "x$?" != "x0" && pkg_failed=yes
16362 else
16363 pkg_failed=yes
16364 fi
16365 else
16366 pkg_failed=untried
16367 fi
16368
16369
16370
16371 if test $pkg_failed = yes; then
16372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16373 printf "%s\n" "no" >&6; }
16374
16375 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16376 _pkg_short_errors_supported=yes
16377 else
16378 _pkg_short_errors_supported=no
16379 fi
16380 if test $_pkg_short_errors_supported = yes; then
16381 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
16382 else
16383 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
16384 fi
16385 # Put the nasty error message in config.log where it belongs
16386 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
16387
16388 :
16389 elif test $pkg_failed = untried; then
16390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16391 printf "%s\n" "no" >&6; }
16392 :
16393 else
16394 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
16395 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
16396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16397 printf "%s\n" "yes" >&6; }
16398
16399 fi
16400 fi
16401
16402 # Check whether --enable-gtk-doc-html was given.
16403 if test ${enable_gtk_doc_html+y}
16404 then :
16405 enableval=$enable_gtk_doc_html;
16406 else $as_nop
16407 enable_gtk_doc_html=yes
16408 fi
16409
16410 # Check whether --enable-gtk-doc-pdf was given.
16411 if test ${enable_gtk_doc_pdf+y}
16412 then :
16413 enableval=$enable_gtk_doc_pdf;
16414 else $as_nop
16415 enable_gtk_doc_pdf=no
16416 fi
16417
16418
16419 if test -z "$GTKDOC_MKPDF"; then
16420 enable_gtk_doc_pdf=no
16421 fi
16422
16423 if test -z "$AM_DEFAULT_VERBOSITY"; then
16424 AM_DEFAULT_VERBOSITY=1
16425 fi
16426
16427
16428 if test x$have_gtk_doc = xyes; then
16429 HAVE_GTK_DOC_TRUE=
16430 HAVE_GTK_DOC_FALSE='#'
16431 else
16432 HAVE_GTK_DOC_TRUE='#'
16433 HAVE_GTK_DOC_FALSE=
16434 fi
16435
16436 if test x$enable_gtk_doc = xyes; then
16437 ENABLE_GTK_DOC_TRUE=
16438 ENABLE_GTK_DOC_FALSE='#'
16439 else
16440 ENABLE_GTK_DOC_TRUE='#'
16441 ENABLE_GTK_DOC_FALSE=
16442 fi
16443
16444 if test x$enable_gtk_doc_html = xyes; then
16445 GTK_DOC_BUILD_HTML_TRUE=
16446 GTK_DOC_BUILD_HTML_FALSE='#'
16447 else
16448 GTK_DOC_BUILD_HTML_TRUE='#'
16449 GTK_DOC_BUILD_HTML_FALSE=
16450 fi
16451
16452 if test x$enable_gtk_doc_pdf = xyes; then
16453 GTK_DOC_BUILD_PDF_TRUE=
16454 GTK_DOC_BUILD_PDF_FALSE='#'
16455 else
16456 GTK_DOC_BUILD_PDF_TRUE='#'
16457 GTK_DOC_BUILD_PDF_FALSE=
16458 fi
16459
16460 if test -n "$LIBTOOL"; then
16461 GTK_DOC_USE_LIBTOOL_TRUE=
16462 GTK_DOC_USE_LIBTOOL_FALSE='#'
16463 else
16464 GTK_DOC_USE_LIBTOOL_TRUE='#'
16465 GTK_DOC_USE_LIBTOOL_FALSE=
16466 fi
16467
16468 if test -n "$GTKDOC_REBASE"; then
16469 GTK_DOC_USE_REBASE_TRUE=
16470 GTK_DOC_USE_REBASE_FALSE='#'
16471 else
16472 GTK_DOC_USE_REBASE_TRUE='#'
16473 GTK_DOC_USE_REBASE_FALSE=
16474 fi
16475
16476
16477
16478 # Checks for libraries.
16479
16480 pkg_failed=no
16481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.10" >&5
16482 printf %s "checking for glib-2.0 >= 2.10... " >&6; }
16483
16484 if test -n "$GLIB_CFLAGS"; then
16485 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
16486 elif test -n "$PKG_CONFIG"; then
16487 if test -n "$PKG_CONFIG" && \
16488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10\""; } >&5
16489 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10") 2>&5
16490 ac_status=$?
16491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16492 test $ac_status = 0; }; then
16493 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10" 2>/dev/null`
16494 test "x$?" != "x0" && pkg_failed=yes
16495 else
16496 pkg_failed=yes
16497 fi
16498 else
16499 pkg_failed=untried
16500 fi
16501 if test -n "$GLIB_LIBS"; then
16502 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
16503 elif test -n "$PKG_CONFIG"; then
16504 if test -n "$PKG_CONFIG" && \
16505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10\""; } >&5
16506 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10") 2>&5
16507 ac_status=$?
16508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16509 test $ac_status = 0; }; then
16510 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10" 2>/dev/null`
16511 test "x$?" != "x0" && pkg_failed=yes
16512 else
16513 pkg_failed=yes
16514 fi
16515 else
16516 pkg_failed=untried
16517 fi
16518
16519
16520
16521 if test $pkg_failed = yes; then
16522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16523 printf "%s\n" "no" >&6; }
16524
16525 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16526 _pkg_short_errors_supported=yes
16527 else
16528 _pkg_short_errors_supported=no
16529 fi
16530 if test $_pkg_short_errors_supported = yes; then
16531 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10" 2>&1`
16532 else
16533 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10" 2>&1`
16534 fi
16535 # Put the nasty error message in config.log where it belongs
16536 echo "$GLIB_PKG_ERRORS" >&5
16537
16538 as_fn_error $? "Package requirements (glib-2.0 >= 2.10) were not met:
16539
16540 $GLIB_PKG_ERRORS
16541
16542 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16543 installed software in a non-standard prefix.
16544
16545 Alternatively, you may set the environment variables GLIB_CFLAGS
16546 and GLIB_LIBS to avoid the need to call pkg-config.
16547 See the pkg-config man page for more details." "$LINENO" 5
16548 elif test $pkg_failed = untried; then
16549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550 printf "%s\n" "no" >&6; }
16551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16552 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16553 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16554 is in your PATH or set the PKG_CONFIG environment variable to the full
16555 path to pkg-config.
16556
16557 Alternatively, you may set the environment variables GLIB_CFLAGS
16558 and GLIB_LIBS to avoid the need to call pkg-config.
16559 See the pkg-config man page for more details.
16560
16561 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16562 See \`config.log' for more details" "$LINENO" 5; }
16563 else
16564 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
16565 GLIB_LIBS=$pkg_cv_GLIB_LIBS
16566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16567 printf "%s\n" "yes" >&6; }
16568
16569 fi
16570
16571 pkg_failed=no
16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gio-2.0" >&5
16573 printf %s "checking for gio-2.0... " >&6; }
16574
16575 if test -n "$GIO_CFLAGS"; then
16576 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
16577 elif test -n "$PKG_CONFIG"; then
16578 if test -n "$PKG_CONFIG" && \
16579 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
16580 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
16581 ac_status=$?
16582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16583 test $ac_status = 0; }; then
16584 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
16585 test "x$?" != "x0" && pkg_failed=yes
16586 else
16587 pkg_failed=yes
16588 fi
16589 else
16590 pkg_failed=untried
16591 fi
16592 if test -n "$GIO_LIBS"; then
16593 pkg_cv_GIO_LIBS="$GIO_LIBS"
16594 elif test -n "$PKG_CONFIG"; then
16595 if test -n "$PKG_CONFIG" && \
16596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
16597 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
16598 ac_status=$?
16599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16600 test $ac_status = 0; }; then
16601 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
16602 test "x$?" != "x0" && pkg_failed=yes
16603 else
16604 pkg_failed=yes
16605 fi
16606 else
16607 pkg_failed=untried
16608 fi
16609
16610
16611
16612 if test $pkg_failed = yes; then
16613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 printf "%s\n" "no" >&6; }
16615
16616 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16617 _pkg_short_errors_supported=yes
16618 else
16619 _pkg_short_errors_supported=no
16620 fi
16621 if test $_pkg_short_errors_supported = yes; then
16622 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0" 2>&1`
16623 else
16624 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0" 2>&1`
16625 fi
16626 # Put the nasty error message in config.log where it belongs
16627 echo "$GIO_PKG_ERRORS" >&5
16628
16629 as_fn_error $? "Package requirements (gio-2.0) were not met:
16630
16631 $GIO_PKG_ERRORS
16632
16633 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16634 installed software in a non-standard prefix.
16635
16636 Alternatively, you may set the environment variables GIO_CFLAGS
16637 and GIO_LIBS to avoid the need to call pkg-config.
16638 See the pkg-config man page for more details." "$LINENO" 5
16639 elif test $pkg_failed = untried; then
16640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16641 printf "%s\n" "no" >&6; }
16642 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16643 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16644 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16645 is in your PATH or set the PKG_CONFIG environment variable to the full
16646 path to pkg-config.
16647
16648 Alternatively, you may set the environment variables GIO_CFLAGS
16649 and GIO_LIBS to avoid the need to call pkg-config.
16650 See the pkg-config man page for more details.
16651
16652 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16653 See \`config.log' for more details" "$LINENO" 5; }
16654 else
16655 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
16656 GIO_LIBS=$pkg_cv_GIO_LIBS
16657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16658 printf "%s\n" "yes" >&6; }
16659
16660 fi
16661
16662 if test "x$enable_cli_tool" != xno
16663 then :
16664
16665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are building for a Win32 host" >&5
16666 printf %s "checking whether we are building for a Win32 host... " >&6; }
16667 if test ${mingw_cv_win32_host+y}
16668 then :
16669 printf %s "(cached) " >&6
16670 else $as_nop
16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672 /* end confdefs.h. */
16673
16674 #ifdef _WIN32
16675 choke me
16676 #endif
16677 _ACEOF
16678 if ac_fn_c_try_compile "$LINENO"
16679 then :
16680 mingw_cv_win32_host=no
16681 else $as_nop
16682 mingw_cv_win32_host=yes
16683 fi
16684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16685 fi
16686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mingw_cv_win32_host" >&5
16687 printf "%s\n" "$mingw_cv_win32_host" >&6; }
16688 ctpl_cli_packages="gio-2.0 >= 2.24"
16689 # needed by the ctpl utility to write to stdout, either gio-unix or gio-windows
16690 if test "x$mingw_cv_win32_host" = xyes
16691 then :
16692 ctpl_cli_packages="$ctpl_cli_packages gio-windows-2.0"
16693 else $as_nop
16694 ctpl_cli_packages="$ctpl_cli_packages gio-unix-2.0"
16695 fi
16696
16697 pkg_failed=no
16698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ctpl_cli_packages" >&5
16699 printf %s "checking for $ctpl_cli_packages... " >&6; }
16700
16701 if test -n "$CTPL_CLI_CFLAGS"; then
16702 pkg_cv_CTPL_CLI_CFLAGS="$CTPL_CLI_CFLAGS"
16703 elif test -n "$PKG_CONFIG"; then
16704 if test -n "$PKG_CONFIG" && \
16705 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ctpl_cli_packages\""; } >&5
16706 ($PKG_CONFIG --exists --print-errors "$ctpl_cli_packages") 2>&5
16707 ac_status=$?
16708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16709 test $ac_status = 0; }; then
16710 pkg_cv_CTPL_CLI_CFLAGS=`$PKG_CONFIG --cflags "$ctpl_cli_packages" 2>/dev/null`
16711 test "x$?" != "x0" && pkg_failed=yes
16712 else
16713 pkg_failed=yes
16714 fi
16715 else
16716 pkg_failed=untried
16717 fi
16718 if test -n "$CTPL_CLI_LIBS"; then
16719 pkg_cv_CTPL_CLI_LIBS="$CTPL_CLI_LIBS"
16720 elif test -n "$PKG_CONFIG"; then
16721 if test -n "$PKG_CONFIG" && \
16722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ctpl_cli_packages\""; } >&5
16723 ($PKG_CONFIG --exists --print-errors "$ctpl_cli_packages") 2>&5
16724 ac_status=$?
16725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16726 test $ac_status = 0; }; then
16727 pkg_cv_CTPL_CLI_LIBS=`$PKG_CONFIG --libs "$ctpl_cli_packages" 2>/dev/null`
16728 test "x$?" != "x0" && pkg_failed=yes
16729 else
16730 pkg_failed=yes
16731 fi
16732 else
16733 pkg_failed=untried
16734 fi
16735
16736
16737
16738 if test $pkg_failed = yes; then
16739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16740 printf "%s\n" "no" >&6; }
16741
16742 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16743 _pkg_short_errors_supported=yes
16744 else
16745 _pkg_short_errors_supported=no
16746 fi
16747 if test $_pkg_short_errors_supported = yes; then
16748 CTPL_CLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ctpl_cli_packages" 2>&1`
16749 else
16750 CTPL_CLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ctpl_cli_packages" 2>&1`
16751 fi
16752 # Put the nasty error message in config.log where it belongs
16753 echo "$CTPL_CLI_PKG_ERRORS" >&5
16754
16755
16756 if test "x$enable_cli_tool" = "xyes"
16757 then :
16758 as_fn_error $? "Cannot build the CLI tool: $CTPL_CLI_PKG_ERRORS" "$LINENO" 5
16759 elif test "x$enable_cli_tool" != "xno"
16760 then :
16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build the CLI tool: $CTPL_CLI_PKG_ERRORS" >&5
16762 printf "%s\n" "$as_me: WARNING: Cannot build the CLI tool: $CTPL_CLI_PKG_ERRORS" >&2;}
16763 fi
16764
16765 enable_cli_tool=no
16766 elif test $pkg_failed = untried; then
16767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16768 printf "%s\n" "no" >&6; }
16769
16770 if test "x$enable_cli_tool" = "xyes"
16771 then :
16772 as_fn_error $? "Cannot build the CLI tool: $CTPL_CLI_PKG_ERRORS" "$LINENO" 5
16773 elif test "x$enable_cli_tool" != "xno"
16774 then :
16775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build the CLI tool: $CTPL_CLI_PKG_ERRORS" >&5
16776 printf "%s\n" "$as_me: WARNING: Cannot build the CLI tool: $CTPL_CLI_PKG_ERRORS" >&2;}
16777 fi
16778
16779 enable_cli_tool=no
16780 else
16781 CTPL_CLI_CFLAGS=$pkg_cv_CTPL_CLI_CFLAGS
16782 CTPL_CLI_LIBS=$pkg_cv_CTPL_CLI_LIBS
16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16784 printf "%s\n" "yes" >&6; }
16785 enable_cli_tool=yes
16786 fi
16787
16788 fi
16789 if test "x$enable_cli_tool" != xno; then
16790 BUILD_CTPL_TRUE=
16791 BUILD_CTPL_FALSE='#'
16792 else
16793 BUILD_CTPL_TRUE='#'
16794 BUILD_CTPL_FALSE=
16795 fi
16796
16797
16798 # needed for the math functions checks to work
16799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5
16800 printf %s "checking for acos in -lm... " >&6; }
16801 if test ${ac_cv_lib_m_acos+y}
16802 then :
16803 printf %s "(cached) " >&6
16804 else $as_nop
16805 ac_check_lib_save_LIBS=$LIBS
16806 LIBS="-lm $LIBS"
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808 /* end confdefs.h. */
16809
16810 /* Override any GCC internal prototype to avoid an error.
16811 Use char because int might match the return type of a GCC
16812 builtin and then its argument prototype would still apply. */
16813 char acos ();
16814 int
16815 main (void)
16816 {
16817 return acos ();
16818 ;
16819 return 0;
16820 }
16821 _ACEOF
16822 if ac_fn_c_try_link "$LINENO"
16823 then :
16824 ac_cv_lib_m_acos=yes
16825 else $as_nop
16826 ac_cv_lib_m_acos=no
16827 fi
16828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16829 conftest$ac_exeext conftest.$ac_ext
16830 LIBS=$ac_check_lib_save_LIBS
16831 fi
16832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5
16833 printf "%s\n" "$ac_cv_lib_m_acos" >&6; }
16834 if test "x$ac_cv_lib_m_acos" = xyes
16835 then :
16836 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
16837
16838 LIBS="-lm $LIBS"
16839
16840 fi
16841
16842
16843 # Checks for header files.
16844 # Autoupdate added the next two lines to ensure that your configure
16845 # script's behavior did not change. They are probably safe to remove.
16846
16847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
16848 printf %s "checking for egrep... " >&6; }
16849 if test ${ac_cv_path_EGREP+y}
16850 then :
16851 printf %s "(cached) " >&6
16852 else $as_nop
16853 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16854 then ac_cv_path_EGREP="$GREP -E"
16855 else
16856 if test -z "$EGREP"; then
16857 ac_path_EGREP_found=false
16858 # Loop through the user's path and test for each of PROGNAME-LIST
16859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16861 do
16862 IFS=$as_save_IFS
16863 case $as_dir in #(((
16864 '') as_dir=./ ;;
16865 */) ;;
16866 *) as_dir=$as_dir/ ;;
16867 esac
16868 for ac_prog in egrep
16869 do
16870 for ac_exec_ext in '' $ac_executable_extensions; do
16871 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
16872 as_fn_executable_p "$ac_path_EGREP" || continue
16873 # Check for GNU ac_path_EGREP and select it if it is found.
16874 # Check for GNU $ac_path_EGREP
16875 case `"$ac_path_EGREP" --version 2>&1` in
16876 *GNU*)
16877 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16878 *)
16879 ac_count=0
16880 printf %s 0123456789 >"conftest.in"
16881 while :
16882 do
16883 cat "conftest.in" "conftest.in" >"conftest.tmp"
16884 mv "conftest.tmp" "conftest.in"
16885 cp "conftest.in" "conftest.nl"
16886 printf "%s\n" 'EGREP' >> "conftest.nl"
16887 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16889 as_fn_arith $ac_count + 1 && ac_count=$as_val
16890 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16891 # Best one so far, save it but keep looking for a better one
16892 ac_cv_path_EGREP="$ac_path_EGREP"
16893 ac_path_EGREP_max=$ac_count
16894 fi
16895 # 10*(2^10) chars as input seems more than enough
16896 test $ac_count -gt 10 && break
16897 done
16898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16899 esac
16900
16901 $ac_path_EGREP_found && break 3
16902 done
16903 done
16904 done
16905 IFS=$as_save_IFS
16906 if test -z "$ac_cv_path_EGREP"; then
16907 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
16908 fi
16909 else
16910 ac_cv_path_EGREP=$EGREP
16911 fi
16912
16913 fi
16914 fi
16915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
16916 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
16917 EGREP="$ac_cv_path_EGREP"
16918
16919
16920
16921 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16922 if test "x$ac_cv_header_stdlib_h" = xyes
16923 then :
16924 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
16925
16926 fi
16927 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
16928 if test "x$ac_cv_header_string_h" = xyes
16929 then :
16930 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
16931
16932 fi
16933 ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
16934 if test "x$ac_cv_header_math_h" = xyes
16935 then :
16936 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
16937
16938 fi
16939 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16940 if test "x$ac_cv_header_libintl_h" = xyes
16941 then :
16942 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
16943
16944 fi
16945
16946
16947 # Checks for typedefs, structures, and compiler characteristics.
16948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16949 printf %s "checking for an ANSI C-conforming const... " >&6; }
16950 if test ${ac_cv_c_const+y}
16951 then :
16952 printf %s "(cached) " >&6
16953 else $as_nop
16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16956
16957 int
16958 main (void)
16959 {
16960
16961 #ifndef __cplusplus
16962 /* Ultrix mips cc rejects this sort of thing. */
16963 typedef int charset[2];
16964 const charset cs = { 0, 0 };
16965 /* SunOS 4.1.1 cc rejects this. */
16966 char const *const *pcpcc;
16967 char **ppc;
16968 /* NEC SVR4.0.2 mips cc rejects this. */
16969 struct point {int x, y;};
16970 static struct point const zero = {0,0};
16971 /* IBM XL C 1.02.0.0 rejects this.
16972 It does not let you subtract one const X* pointer from another in
16973 an arm of an if-expression whose if-part is not a constant
16974 expression */
16975 const char *g = "string";
16976 pcpcc = &g + (g ? g-g : 0);
16977 /* HPUX 7.0 cc rejects these. */
16978 ++pcpcc;
16979 ppc = (char**) pcpcc;
16980 pcpcc = (char const *const *) ppc;
16981 { /* SCO 3.2v4 cc rejects this sort of thing. */
16982 char tx;
16983 char *t = &tx;
16984 char const *s = 0 ? (char *) 0 : (char const *) 0;
16985
16986 *t++ = 0;
16987 if (s) return 0;
16988 }
16989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16990 int x[] = {25, 17};
16991 const int *foo = &x[0];
16992 ++foo;
16993 }
16994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16995 typedef const int *iptr;
16996 iptr p = 0;
16997 ++p;
16998 }
16999 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17001 struct s { int j; const int *ap[3]; } bx;
17002 struct s *b = &bx; b->j = 5;
17003 }
17004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17005 const int foo = 10;
17006 if (!foo) return 0;
17007 }
17008 return !cs[0] && !zero.x;
17009 #endif
17010
17011 ;
17012 return 0;
17013 }
17014 _ACEOF
17015 if ac_fn_c_try_compile "$LINENO"
17016 then :
17017 ac_cv_c_const=yes
17018 else $as_nop
17019 ac_cv_c_const=no
17020 fi
17021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17022 fi
17023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17024 printf "%s\n" "$ac_cv_c_const" >&6; }
17025 if test $ac_cv_c_const = no; then
17026
17027 printf "%s\n" "#define const /**/" >>confdefs.h
17028
17029 fi
17030
17031 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17032 if test "x$ac_cv_type_size_t" = xyes
17033 then :
17034
17035 else $as_nop
17036
17037 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17038
17039 fi
17040
17041
17042 # Checks for library functions.
17043 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
17044 if test "x$ac_cv_func_memchr" = xyes
17045 then :
17046 printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h
17047
17048 fi
17049 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
17050 if test "x$ac_cv_func_strchr" = xyes
17051 then :
17052 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
17053
17054 fi
17055 ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
17056 if test "x$ac_cv_func_fabs" = xyes
17057 then :
17058 printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
17059
17060 fi
17061
17062 # fpclassify() is a macro
17063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
17064 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
17065 if test ${ac_cv_c_undeclared_builtin_options+y}
17066 then :
17067 printf %s "(cached) " >&6
17068 else $as_nop
17069 ac_save_CFLAGS=$CFLAGS
17070 ac_cv_c_undeclared_builtin_options='cannot detect'
17071 for ac_arg in '' -fno-builtin; do
17072 CFLAGS="$ac_save_CFLAGS $ac_arg"
17073 # This test program should *not* compile successfully.
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076
17077 int
17078 main (void)
17079 {
17080 (void) strchr;
17081 ;
17082 return 0;
17083 }
17084 _ACEOF
17085 if ac_fn_c_try_compile "$LINENO"
17086 then :
17087
17088 else $as_nop
17089 # This test program should compile successfully.
17090 # No library function is consistently available on
17091 # freestanding implementations, so test against a dummy
17092 # declaration. Include always-available headers on the
17093 # off chance that they somehow elicit warnings.
17094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17095 /* end confdefs.h. */
17096 #include <float.h>
17097 #include <limits.h>
17098 #include <stdarg.h>
17099 #include <stddef.h>
17100 extern void ac_decl (int, char *);
17101
17102 int
17103 main (void)
17104 {
17105 (void) ac_decl (0, (char *) 0);
17106 (void) ac_decl;
17107
17108 ;
17109 return 0;
17110 }
17111 _ACEOF
17112 if ac_fn_c_try_compile "$LINENO"
17113 then :
17114 if test x"$ac_arg" = x
17115 then :
17116 ac_cv_c_undeclared_builtin_options='none needed'
17117 else $as_nop
17118 ac_cv_c_undeclared_builtin_options=$ac_arg
17119 fi
17120 break
17121 fi
17122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17123 fi
17124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17125 done
17126 CFLAGS=$ac_save_CFLAGS
17127
17128 fi
17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
17130 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
17131 case $ac_cv_c_undeclared_builtin_options in #(
17132 'cannot detect') :
17133 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17134 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17135 as_fn_error $? "cannot make $CC report undeclared builtins
17136 See \`config.log' for more details" "$LINENO" 5; } ;; #(
17137 'none needed') :
17138 ac_c_undeclared_builtin_options='' ;; #(
17139 *) :
17140 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
17141 esac
17142
17143 ac_fn_check_decl "$LINENO" "fpclassify" "ac_cv_have_decl_fpclassify" "#include <math.h>
17144 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17145 if test "x$ac_cv_have_decl_fpclassify" = xyes
17146 then :
17147 ac_have_decl=1
17148 else $as_nop
17149 ac_have_decl=0
17150 fi
17151 printf "%s\n" "#define HAVE_DECL_FPCLASSIFY $ac_have_decl" >>confdefs.h
17152 if test $ac_have_decl = 1
17153 then :
17154
17155 printf "%s\n" "#define HAVE_FPCLASSIFY 1" >>confdefs.h
17156
17157 fi
17158
17159
17160 # paranoiac compilation
17161 # Check whether --enable-paranoia was given.
17162 if test ${enable_paranoia+y}
17163 then :
17164 enableval=$enable_paranoia; enable_paranoia="$enableval"
17165 else $as_nop
17166 enable_paranoia="no"
17167 fi
17168
17169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable paranoiac compiler options" >&5
17170 printf %s "checking whether to enable paranoiac compiler options... " >&6; }
17171 if test "x$enable_paranoia" = "xyes"; then
17172 CFLAGS="$CFLAGS -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int \
17173 -Werror-implicit-function-declaration -Wmain \
17174 -Wparentheses -Wsequence-point -Wreturn-type -Wswitch \
17175 -Wtrigraphs -Wunused -Wuninitialized -Wunknown-pragmas \
17176 -Wfloat-equal -Wundef -Wshadow -Wpointer-arith \
17177 -Wbad-function-cast -Wwrite-strings \
17178 -Wconversion \
17179 -Wsign-compare -Waggregate-return -Wstrict-prototypes \
17180 -Wmissing-prototypes -Wmissing-declarations \
17181 -Wmissing-noreturn -Wformat -Wmissing-format-attribute \
17182 -Wpacked -Wredundant-decls -Wnested-externs \
17183 -Winline -Wlong-long -Wunreachable-code"
17184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17185 printf "%s\n" "yes" >&6; }
17186 else
17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17188 printf "%s\n" "no" >&6; }
17189 fi
17190
17191 # Output
17192 ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile data/ctpl.pc docs/Makefile docs/reference/Makefile docs/reference/ctpl/Makefile docs/reference/ctpl/version.xml po/Makefile.in testsuite/Makefile README"
17193
17194 cat >confcache <<\_ACEOF
17195 # This file is a shell script that caches the results of configure
17196 # tests run on this system so they can be shared between configure
17197 # scripts and configure runs, see configure's option --config-cache.
17198 # It is not useful on other systems. If it contains results you don't
17199 # want to keep, you may remove or edit it.
17200 #
17201 # config.status only pays attention to the cache file if you give it
17202 # the --recheck option to rerun configure.
17203 #
17204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17206 # following values.
17207
17208 _ACEOF
17209
17210 # The following way of writing the cache mishandles newlines in values,
17211 # but we know of no workaround that is simple, portable, and efficient.
17212 # So, we kill variables containing newlines.
17213 # Ultrix sh set writes to stderr and can't be redirected directly,
17214 # and sets the high bit in the cache file unless we assign to the vars.
17215 (
17216 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17217 eval ac_val=\$$ac_var
17218 case $ac_val in #(
17219 *${as_nl}*)
17220 case $ac_var in #(
17221 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17222 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17223 esac
17224 case $ac_var in #(
17225 _ | IFS | as_nl) ;; #(
17226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17227 *) { eval $ac_var=; unset $ac_var;} ;;
17228 esac ;;
17229 esac
17230 done
17231
17232 (set) 2>&1 |
17233 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17234 *${as_nl}ac_space=\ *)
17235 # `set' does not quote correctly, so add quotes: double-quote
17236 # substitution turns \\\\ into \\, and sed turns \\ into \.
17237 sed -n \
17238 "s/'/'\\\\''/g;
17239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17240 ;; #(
17241 *)
17242 # `set' quotes correctly as required by POSIX, so do not add quotes.
17243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17244 ;;
17245 esac |
17246 sort
17247 ) |
17248 sed '
17249 /^ac_cv_env_/b end
17250 t clear
17251 :clear
17252 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17253 t end
17254 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17255 :end' >>confcache
17256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17257 if test -w "$cache_file"; then
17258 if test "x$cache_file" != "x/dev/null"; then
17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17260 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17261 if test ! -f "$cache_file" || test -h "$cache_file"; then
17262 cat confcache >"$cache_file"
17263 else
17264 case $cache_file in #(
17265 */* | ?:*)
17266 mv -f confcache "$cache_file"$$ &&
17267 mv -f "$cache_file"$$ "$cache_file" ;; #(
17268 *)
17269 mv -f confcache "$cache_file" ;;
17270 esac
17271 fi
17272 fi
17273 else
17274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17275 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17276 fi
17277 fi
17278 rm -f confcache
17279
17280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17281 # Let make expand exec_prefix.
17282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17283
17284 DEFS=-DHAVE_CONFIG_H
17285
17286 ac_libobjs=
17287 ac_ltlibobjs=
17288 U=
17289 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17290 # 1. Remove the extension, and $U if already installed.
17291 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17292 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17293 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17294 # will be set to the directory where LIBOBJS objects are built.
17295 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17296 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17297 done
17298 LIBOBJS=$ac_libobjs
17299
17300 LTLIBOBJS=$ac_ltlibobjs
17301
17302
17303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17304 printf %s "checking that generated files are newer than configure... " >&6; }
17305 if test -n "$am_sleep_pid"; then
17306 # Hide warnings about reused PIDs.
17307 wait $am_sleep_pid 2>/dev/null
17308 fi
17309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17310 printf "%s\n" "done" >&6; }
17311 if test -n "$EXEEXT"; then
17312 am__EXEEXT_TRUE=
17313 am__EXEEXT_FALSE='#'
17314 else
17315 am__EXEEXT_TRUE='#'
17316 am__EXEEXT_FALSE=
17317 fi
17318
17319 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17320 as_fn_error $? "conditional \"AMDEP\" was never defined.
17321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17322 fi
17323 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17324 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17326 fi
17327 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17328 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17330 fi
17331 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
17332 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
17333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17334 fi
17335 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
17336 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
17337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17338 fi
17339 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
17340 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
17341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17342 fi
17343 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
17344 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
17345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17346 fi
17347 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
17348 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
17349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17350 fi
17351 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
17352 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
17353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17354 fi
17355 if test -z "${BUILD_CTPL_TRUE}" && test -z "${BUILD_CTPL_FALSE}"; then
17356 as_fn_error $? "conditional \"BUILD_CTPL\" was never defined.
17357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17358 fi
17359
17360 : "${CONFIG_STATUS=./config.status}"
17361 ac_write_fail=0
17362 ac_clean_files_save=$ac_clean_files
17363 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17365 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17366 as_write_fail=0
17367 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17368 #! $SHELL
17369 # Generated by $as_me.
17370 # Run this file to recreate the current configuration.
17371 # Compiler output produced by configure, useful for debugging
17372 # configure, is in config.log if it exists.
17373
17374 debug=false
17375 ac_cs_recheck=false
17376 ac_cs_silent=false
17377
17378 SHELL=\${CONFIG_SHELL-$SHELL}
17379 export SHELL
17380 _ASEOF
17381 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17382 ## -------------------- ##
17383 ## M4sh Initialization. ##
17384 ## -------------------- ##
17385
17386 # Be more Bourne compatible
17387 DUALCASE=1; export DUALCASE # for MKS sh
17388 as_nop=:
17389 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17390 then :
17391 emulate sh
17392 NULLCMD=:
17393 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17394 # is contrary to our usage. Disable this feature.
17395 alias -g '${1+"$@"}'='"$@"'
17396 setopt NO_GLOB_SUBST
17397 else $as_nop
17398 case `(set -o) 2>/dev/null` in #(
17399 *posix*) :
17400 set -o posix ;; #(
17401 *) :
17402 ;;
17403 esac
17404 fi
17405
17406
17407
17408 # Reset variables that may have inherited troublesome values from
17409 # the environment.
17410
17411 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17412 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17413 # side effect of setting IFS to empty, thus disabling word splitting.)
17414 # Quoting is to prevent editors from complaining about space-tab.
17415 as_nl='
17416 '
17417 export as_nl
17418 IFS=" "" $as_nl"
17419
17420 PS1='$ '
17421 PS2='> '
17422 PS4='+ '
17423
17424 # Ensure predictable behavior from utilities with locale-dependent output.
17425 LC_ALL=C
17426 export LC_ALL
17427 LANGUAGE=C
17428 export LANGUAGE
17429
17430 # We cannot yet rely on "unset" to work, but we need these variables
17431 # to be unset--not just set to an empty or harmless value--now, to
17432 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17433 # also avoids known problems related to "unset" and subshell syntax
17434 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17435 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17436 do eval test \${$as_var+y} \
17437 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17438 done
17439
17440 # Ensure that fds 0, 1, and 2 are open.
17441 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17442 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17443 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17444
17445 # The user is always right.
17446 if ${PATH_SEPARATOR+false} :; then
17447 PATH_SEPARATOR=:
17448 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17449 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17450 PATH_SEPARATOR=';'
17451 }
17452 fi
17453
17454
17455 # Find who we are. Look in the path if we contain no directory separator.
17456 as_myself=
17457 case $0 in #((
17458 *[\\/]* ) as_myself=$0 ;;
17459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17460 for as_dir in $PATH
17461 do
17462 IFS=$as_save_IFS
17463 case $as_dir in #(((
17464 '') as_dir=./ ;;
17465 */) ;;
17466 *) as_dir=$as_dir/ ;;
17467 esac
17468 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17469 done
17470 IFS=$as_save_IFS
17471
17472 ;;
17473 esac
17474 # We did not find ourselves, most probably we were run as `sh COMMAND'
17475 # in which case we are not to be found in the path.
17476 if test "x$as_myself" = x; then
17477 as_myself=$0
17478 fi
17479 if test ! -f "$as_myself"; then
17480 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17481 exit 1
17482 fi
17483
17484
17485
17486 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17487 # ----------------------------------------
17488 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17489 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17490 # script with STATUS, using 1 if that was 0.
17491 as_fn_error ()
17492 {
17493 as_status=$1; test $as_status -eq 0 && as_status=1
17494 if test "$4"; then
17495 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17497 fi
17498 printf "%s\n" "$as_me: error: $2" >&2
17499 as_fn_exit $as_status
17500 } # as_fn_error
17501
17502
17503
17504 # as_fn_set_status STATUS
17505 # -----------------------
17506 # Set $? to STATUS, without forking.
17507 as_fn_set_status ()
17508 {
17509 return $1
17510 } # as_fn_set_status
17511
17512 # as_fn_exit STATUS
17513 # -----------------
17514 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17515 as_fn_exit ()
17516 {
17517 set +e
17518 as_fn_set_status $1
17519 exit $1
17520 } # as_fn_exit
17521
17522 # as_fn_unset VAR
17523 # ---------------
17524 # Portably unset VAR.
17525 as_fn_unset ()
17526 {
17527 { eval $1=; unset $1;}
17528 }
17529 as_unset=as_fn_unset
17530
17531 # as_fn_append VAR VALUE
17532 # ----------------------
17533 # Append the text in VALUE to the end of the definition contained in VAR. Take
17534 # advantage of any shell optimizations that allow amortized linear growth over
17535 # repeated appends, instead of the typical quadratic growth present in naive
17536 # implementations.
17537 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17538 then :
17539 eval 'as_fn_append ()
17540 {
17541 eval $1+=\$2
17542 }'
17543 else $as_nop
17544 as_fn_append ()
17545 {
17546 eval $1=\$$1\$2
17547 }
17548 fi # as_fn_append
17549
17550 # as_fn_arith ARG...
17551 # ------------------
17552 # Perform arithmetic evaluation on the ARGs, and store the result in the
17553 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17554 # must be portable across $(()) and expr.
17555 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17556 then :
17557 eval 'as_fn_arith ()
17558 {
17559 as_val=$(( $* ))
17560 }'
17561 else $as_nop
17562 as_fn_arith ()
17563 {
17564 as_val=`expr "$@" || test $? -eq 1`
17565 }
17566 fi # as_fn_arith
17567
17568
17569 if expr a : '\(a\)' >/dev/null 2>&1 &&
17570 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17571 as_expr=expr
17572 else
17573 as_expr=false
17574 fi
17575
17576 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17577 as_basename=basename
17578 else
17579 as_basename=false
17580 fi
17581
17582 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17583 as_dirname=dirname
17584 else
17585 as_dirname=false
17586 fi
17587
17588 as_me=`$as_basename -- "$0" ||
17589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17590 X"$0" : 'X\(//\)$' \| \
17591 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17592 printf "%s\n" X/"$0" |
17593 sed '/^.*\/\([^/][^/]*\)\/*$/{
17594 s//\1/
17595 q
17596 }
17597 /^X\/\(\/\/\)$/{
17598 s//\1/
17599 q
17600 }
17601 /^X\/\(\/\).*/{
17602 s//\1/
17603 q
17604 }
17605 s/.*/./; q'`
17606
17607 # Avoid depending upon Character Ranges.
17608 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17609 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17610 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17611 as_cr_digits='0123456789'
17612 as_cr_alnum=$as_cr_Letters$as_cr_digits
17613
17614
17615 # Determine whether it's possible to make 'echo' print without a newline.
17616 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17617 # for compatibility with existing Makefiles.
17618 ECHO_C= ECHO_N= ECHO_T=
17619 case `echo -n x` in #(((((
17620 -n*)
17621 case `echo 'xy\c'` in
17622 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17623 xy) ECHO_C='\c';;
17624 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17625 ECHO_T=' ';;
17626 esac;;
17627 *)
17628 ECHO_N='-n';;
17629 esac
17630
17631 # For backward compatibility with old third-party macros, we provide
17632 # the shell variables $as_echo and $as_echo_n. New code should use
17633 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17634 as_echo='printf %s\n'
17635 as_echo_n='printf %s'
17636
17637 rm -f conf$$ conf$$.exe conf$$.file
17638 if test -d conf$$.dir; then
17639 rm -f conf$$.dir/conf$$.file
17640 else
17641 rm -f conf$$.dir
17642 mkdir conf$$.dir 2>/dev/null
17643 fi
17644 if (echo >conf$$.file) 2>/dev/null; then
17645 if ln -s conf$$.file conf$$ 2>/dev/null; then
17646 as_ln_s='ln -s'
17647 # ... but there are two gotchas:
17648 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17649 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17650 # In both cases, we have to default to `cp -pR'.
17651 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17652 as_ln_s='cp -pR'
17653 elif ln conf$$.file conf$$ 2>/dev/null; then
17654 as_ln_s=ln
17655 else
17656 as_ln_s='cp -pR'
17657 fi
17658 else
17659 as_ln_s='cp -pR'
17660 fi
17661 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17662 rmdir conf$$.dir 2>/dev/null
17663
17664
17665 # as_fn_mkdir_p
17666 # -------------
17667 # Create "$as_dir" as a directory, including parents if necessary.
17668 as_fn_mkdir_p ()
17669 {
17670
17671 case $as_dir in #(
17672 -*) as_dir=./$as_dir;;
17673 esac
17674 test -d "$as_dir" || eval $as_mkdir_p || {
17675 as_dirs=
17676 while :; do
17677 case $as_dir in #(
17678 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17679 *) as_qdir=$as_dir;;
17680 esac
17681 as_dirs="'$as_qdir' $as_dirs"
17682 as_dir=`$as_dirname -- "$as_dir" ||
17683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17684 X"$as_dir" : 'X\(//\)[^/]' \| \
17685 X"$as_dir" : 'X\(//\)$' \| \
17686 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17687 printf "%s\n" X"$as_dir" |
17688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17689 s//\1/
17690 q
17691 }
17692 /^X\(\/\/\)[^/].*/{
17693 s//\1/
17694 q
17695 }
17696 /^X\(\/\/\)$/{
17697 s//\1/
17698 q
17699 }
17700 /^X\(\/\).*/{
17701 s//\1/
17702 q
17703 }
17704 s/.*/./; q'`
17705 test -d "$as_dir" && break
17706 done
17707 test -z "$as_dirs" || eval "mkdir $as_dirs"
17708 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17709
17710
17711 } # as_fn_mkdir_p
17712 if mkdir -p . 2>/dev/null; then
17713 as_mkdir_p='mkdir -p "$as_dir"'
17714 else
17715 test -d ./-p && rmdir ./-p
17716 as_mkdir_p=false
17717 fi
17718
17719
17720 # as_fn_executable_p FILE
17721 # -----------------------
17722 # Test if FILE is an executable regular file.
17723 as_fn_executable_p ()
17724 {
17725 test -f "$1" && test -x "$1"
17726 } # as_fn_executable_p
17727 as_test_x='test -x'
17728 as_executable_p=as_fn_executable_p
17729
17730 # Sed expression to map a string onto a valid CPP name.
17731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17732
17733 # Sed expression to map a string onto a valid variable name.
17734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17735
17736
17737 exec 6>&1
17738 ## ----------------------------------- ##
17739 ## Main body of $CONFIG_STATUS script. ##
17740 ## ----------------------------------- ##
17741 _ASEOF
17742 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17743
17744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17745 # Save the log message, to keep $0 and so on meaningful, and to
17746 # report actual input values of CONFIG_FILES etc. instead of their
17747 # values after options handling.
17748 ac_log="
17749 This file was extended by CTPL $as_me 0.3.5, which was
17750 generated by GNU Autoconf 2.71. Invocation command line was
17751
17752 CONFIG_FILES = $CONFIG_FILES
17753 CONFIG_HEADERS = $CONFIG_HEADERS
17754 CONFIG_LINKS = $CONFIG_LINKS
17755 CONFIG_COMMANDS = $CONFIG_COMMANDS
17756 $ $0 $@
17757
17758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17759 "
17760
17761 _ACEOF
17762
17763 case $ac_config_files in *"
17764 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17765 esac
17766
17767 case $ac_config_headers in *"
17768 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17769 esac
17770
17771
17772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17773 # Files that config.status was made for.
17774 config_files="$ac_config_files"
17775 config_headers="$ac_config_headers"
17776 config_commands="$ac_config_commands"
17777
17778 _ACEOF
17779
17780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17781 ac_cs_usage="\
17782 \`$as_me' instantiates files and other configuration actions
17783 from templates according to the current configuration. Unless the files
17784 and actions are specified as TAGs, all are instantiated by default.
17785
17786 Usage: $0 [OPTION]... [TAG]...
17787
17788 -h, --help print this help, then exit
17789 -V, --version print version number and configuration settings, then exit
17790 --config print configuration, then exit
17791 -q, --quiet, --silent
17792 do not print progress messages
17793 -d, --debug don't remove temporary files
17794 --recheck update $as_me by reconfiguring in the same conditions
17795 --file=FILE[:TEMPLATE]
17796 instantiate the configuration file FILE
17797 --header=FILE[:TEMPLATE]
17798 instantiate the configuration header FILE
17799
17800 Configuration files:
17801 $config_files
17802
17803 Configuration headers:
17804 $config_headers
17805
17806 Configuration commands:
17807 $config_commands
17808
17809 Report bugs to <[email protected]>.
17810 CTPL home page: <http://ctpl.tuxfamily.org>."
17811
17812 _ACEOF
17813 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17814 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17816 ac_cs_config='$ac_cs_config_escaped'
17817 ac_cs_version="\\
17818 CTPL config.status 0.3.5
17819 configured by $0, generated by GNU Autoconf 2.71,
17820 with options \\"\$ac_cs_config\\"
17821
17822 Copyright (C) 2021 Free Software Foundation, Inc.
17823 This config.status script is free software; the Free Software Foundation
17824 gives unlimited permission to copy, distribute and modify it."
17825
17826 ac_pwd='$ac_pwd'
17827 srcdir='$srcdir'
17828 INSTALL='$INSTALL'
17829 MKDIR_P='$MKDIR_P'
17830 AWK='$AWK'
17831 test -n "\$AWK" || AWK=awk
17832 _ACEOF
17833
17834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17835 # The default lists apply if the user does not specify any file.
17836 ac_need_defaults=:
17837 while test $# != 0
17838 do
17839 case $1 in
17840 --*=?*)
17841 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17842 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17843 ac_shift=:
17844 ;;
17845 --*=)
17846 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17847 ac_optarg=
17848 ac_shift=:
17849 ;;
17850 *)
17851 ac_option=$1
17852 ac_optarg=$2
17853 ac_shift=shift
17854 ;;
17855 esac
17856
17857 case $ac_option in
17858 # Handling of the options.
17859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17860 ac_cs_recheck=: ;;
17861 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17862 printf "%s\n" "$ac_cs_version"; exit ;;
17863 --config | --confi | --conf | --con | --co | --c )
17864 printf "%s\n" "$ac_cs_config"; exit ;;
17865 --debug | --debu | --deb | --de | --d | -d )
17866 debug=: ;;
17867 --file | --fil | --fi | --f )
17868 $ac_shift
17869 case $ac_optarg in
17870 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17871 '') as_fn_error $? "missing file argument" ;;
17872 esac
17873 as_fn_append CONFIG_FILES " '$ac_optarg'"
17874 ac_need_defaults=false;;
17875 --header | --heade | --head | --hea )
17876 $ac_shift
17877 case $ac_optarg in
17878 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17879 esac
17880 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17881 ac_need_defaults=false;;
17882 --he | --h)
17883 # Conflict between --help and --header
17884 as_fn_error $? "ambiguous option: \`$1'
17885 Try \`$0 --help' for more information.";;
17886 --help | --hel | -h )
17887 printf "%s\n" "$ac_cs_usage"; exit ;;
17888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17889 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17890 ac_cs_silent=: ;;
17891
17892 # This is an error.
17893 -*) as_fn_error $? "unrecognized option: \`$1'
17894 Try \`$0 --help' for more information." ;;
17895
17896 *) as_fn_append ac_config_targets " $1"
17897 ac_need_defaults=false ;;
17898
17899 esac
17900 shift
17901 done
17902
17903 ac_configure_extra_args=
17904
17905 if $ac_cs_silent; then
17906 exec 6>/dev/null
17907 ac_configure_extra_args="$ac_configure_extra_args --silent"
17908 fi
17909
17910 _ACEOF
17911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17912 if \$ac_cs_recheck; then
17913 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17914 shift
17915 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17916 CONFIG_SHELL='$SHELL'
17917 export CONFIG_SHELL
17918 exec "\$@"
17919 fi
17920
17921 _ACEOF
17922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17923 exec 5>>config.log
17924 {
17925 echo
17926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17927 ## Running $as_me. ##
17928 _ASBOX
17929 printf "%s\n" "$ac_log"
17930 } >&5
17931
17932 _ACEOF
17933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17934 #
17935 # INIT-COMMANDS
17936 #
17937 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17938
17939
17940 # The HP-UX ksh and POSIX shell print the target directory to stdout
17941 # if CDPATH is set.
17942 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17943
17944 sed_quote_subst='$sed_quote_subst'
17945 double_quote_subst='$double_quote_subst'
17946 delay_variable_subst='$delay_variable_subst'
17947 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17948 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17949 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17950 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17951 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17952 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17953 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17954 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17955 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17956 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17957 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17958 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17959 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17960 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17961 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17962 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17963 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17964 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17965 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17966 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17967 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17968 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17969 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17970 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17971 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17972 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17973 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17974 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17975 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17976 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17977 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17978 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17979 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17980 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17981 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17982 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17983 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17984 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17985 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17986 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17987 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17988 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17989 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17990 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17991 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17992 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17993 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17994 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17995 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17996 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17997 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17998 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17999 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18000 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18001 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18002 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18003 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18004 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18005 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18006 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18007 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"`'
18008 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18009 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18010 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18011 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18012 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18013 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18014 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18015 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18016 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18017 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18018 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18019 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18020 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18021 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18022 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18023 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18024 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18025 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18026 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18027 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18028 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18029 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18030 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18031 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18032 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18033 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18034 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18035 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18036 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18037 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18038 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18039 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18040 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18041 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18042 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18043 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18044 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18045 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18046 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18047 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18048 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18049 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18050 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18051 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18052 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18053 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18054 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18055 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18056 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18057 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18058 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18059 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18060 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18061 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18062 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18063 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18064 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18065 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18066 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18067 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18068 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18069 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18070 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18071 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18072 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18073 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18074 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18075 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18076 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18077 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18078 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18079 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18080 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18081 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18082 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18083 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18084
18085 LTCC='$LTCC'
18086 LTCFLAGS='$LTCFLAGS'
18087 compiler='$compiler_DEFAULT'
18088
18089 # A function that is used when there is no print builtin or printf.
18090 func_fallback_echo ()
18091 {
18092 eval 'cat <<_LTECHO_EOF
18093 \$1
18094 _LTECHO_EOF'
18095 }
18096
18097 # Quote evaled strings.
18098 for var in SHELL \
18099 ECHO \
18100 PATH_SEPARATOR \
18101 SED \
18102 GREP \
18103 EGREP \
18104 FGREP \
18105 LD \
18106 NM \
18107 LN_S \
18108 lt_SP2NL \
18109 lt_NL2SP \
18110 reload_flag \
18111 FILECMD \
18112 OBJDUMP \
18113 deplibs_check_method \
18114 file_magic_cmd \
18115 file_magic_glob \
18116 want_nocaseglob \
18117 DLLTOOL \
18118 sharedlib_from_linklib_cmd \
18119 AR \
18120 archiver_list_spec \
18121 STRIP \
18122 RANLIB \
18123 CC \
18124 CFLAGS \
18125 compiler \
18126 lt_cv_sys_global_symbol_pipe \
18127 lt_cv_sys_global_symbol_to_cdecl \
18128 lt_cv_sys_global_symbol_to_import \
18129 lt_cv_sys_global_symbol_to_c_name_address \
18130 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18131 lt_cv_nm_interface \
18132 nm_file_list_spec \
18133 lt_cv_truncate_bin \
18134 lt_prog_compiler_no_builtin_flag \
18135 lt_prog_compiler_pic \
18136 lt_prog_compiler_wl \
18137 lt_prog_compiler_static \
18138 lt_cv_prog_compiler_c_o \
18139 need_locks \
18140 MANIFEST_TOOL \
18141 DSYMUTIL \
18142 NMEDIT \
18143 LIPO \
18144 OTOOL \
18145 OTOOL64 \
18146 shrext_cmds \
18147 export_dynamic_flag_spec \
18148 whole_archive_flag_spec \
18149 compiler_needs_object \
18150 with_gnu_ld \
18151 allow_undefined_flag \
18152 no_undefined_flag \
18153 hardcode_libdir_flag_spec \
18154 hardcode_libdir_separator \
18155 exclude_expsyms \
18156 include_expsyms \
18157 file_list_spec \
18158 variables_saved_for_relink \
18159 libname_spec \
18160 library_names_spec \
18161 soname_spec \
18162 install_override_mode \
18163 finish_eval \
18164 old_striplib \
18165 striplib; do
18166 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18167 *[\\\\\\\`\\"\\\$]*)
18168 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18169 ;;
18170 *)
18171 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18172 ;;
18173 esac
18174 done
18175
18176 # Double-quote double-evaled strings.
18177 for var in reload_cmds \
18178 old_postinstall_cmds \
18179 old_postuninstall_cmds \
18180 old_archive_cmds \
18181 extract_expsyms_cmds \
18182 old_archive_from_new_cmds \
18183 old_archive_from_expsyms_cmds \
18184 archive_cmds \
18185 archive_expsym_cmds \
18186 module_cmds \
18187 module_expsym_cmds \
18188 export_symbols_cmds \
18189 prelink_cmds \
18190 postlink_cmds \
18191 postinstall_cmds \
18192 postuninstall_cmds \
18193 finish_cmds \
18194 sys_lib_search_path_spec \
18195 configure_time_dlsearch_path \
18196 configure_time_lt_sys_library_path; do
18197 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18198 *[\\\\\\\`\\"\\\$]*)
18199 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18200 ;;
18201 *)
18202 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18203 ;;
18204 esac
18205 done
18206
18207 ac_aux_dir='$ac_aux_dir'
18208
18209 # See if we are running on zsh, and set the options that allow our
18210 # commands through without removal of \ escapes INIT.
18211 if test -n "\${ZSH_VERSION+set}"; then
18212 setopt NO_GLOB_SUBST
18213 fi
18214
18215
18216 PACKAGE='$PACKAGE'
18217 VERSION='$VERSION'
18218 RM='$RM'
18219 ofile='$ofile'
18220
18221
18222
18223 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18224 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18225 # from automake < 1.5.
18226 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18227 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18228 LINGUAS="${LINGUAS-%UNSET%}"
18229
18230
18231 _ACEOF
18232
18233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18234
18235 # Handling of arguments.
18236 for ac_config_target in $ac_config_targets
18237 do
18238 case $ac_config_target in
18239 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18240 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18241 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18242 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18243 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18244 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18245 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
18246 "data/ctpl.pc") CONFIG_FILES="$CONFIG_FILES data/ctpl.pc" ;;
18247 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
18248 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
18249 "docs/reference/ctpl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/ctpl/Makefile" ;;
18250 "docs/reference/ctpl/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/ctpl/version.xml" ;;
18251 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18252 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18253 "README") CONFIG_FILES="$CONFIG_FILES README" ;;
18254
18255 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18256 esac
18257 done
18258
18259
18260 # If the user did not use the arguments to specify the items to instantiate,
18261 # then the envvar interface is used. Set only those that are not.
18262 # We use the long form for the default assignment because of an extremely
18263 # bizarre bug on SunOS 4.1.3.
18264 if $ac_need_defaults; then
18265 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18266 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18267 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18268 fi
18269
18270 # Have a temporary directory for convenience. Make it in the build tree
18271 # simply because there is no reason against having it here, and in addition,
18272 # creating and moving files from /tmp can sometimes cause problems.
18273 # Hook for its removal unless debugging.
18274 # Note that there is a small window in which the directory will not be cleaned:
18275 # after its creation but before its name has been assigned to `$tmp'.
18276 $debug ||
18277 {
18278 tmp= ac_tmp=
18279 trap 'exit_status=$?
18280 : "${ac_tmp:=$tmp}"
18281 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18282 ' 0
18283 trap 'as_fn_exit 1' 1 2 13 15
18284 }
18285 # Create a (secure) tmp directory for tmp files.
18286
18287 {
18288 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18289 test -d "$tmp"
18290 } ||
18291 {
18292 tmp=./conf$$-$RANDOM
18293 (umask 077 && mkdir "$tmp")
18294 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18295 ac_tmp=$tmp
18296
18297 # Set up the scripts for CONFIG_FILES section.
18298 # No need to generate them if there are no CONFIG_FILES.
18299 # This happens for instance with `./config.status config.h'.
18300 if test -n "$CONFIG_FILES"; then
18301
18302
18303 ac_cr=`echo X | tr X '\015'`
18304 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18305 # But we know of no other shell where ac_cr would be empty at this
18306 # point, so we can use a bashism as a fallback.
18307 if test "x$ac_cr" = x; then
18308 eval ac_cr=\$\'\\r\'
18309 fi
18310 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18311 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18312 ac_cs_awk_cr='\\r'
18313 else
18314 ac_cs_awk_cr=$ac_cr
18315 fi
18316
18317 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18318 _ACEOF
18319
18320
18321 {
18322 echo "cat >conf$$subs.awk <<_ACEOF" &&
18323 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18324 echo "_ACEOF"
18325 } >conf$$subs.sh ||
18326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18327 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18328 ac_delim='%!_!# '
18329 for ac_last_try in false false false false false :; do
18330 . ./conf$$subs.sh ||
18331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18332
18333 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18334 if test $ac_delim_n = $ac_delim_num; then
18335 break
18336 elif $ac_last_try; then
18337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18338 else
18339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18340 fi
18341 done
18342 rm -f conf$$subs.sh
18343
18344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18345 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18346 _ACEOF
18347 sed -n '
18348 h
18349 s/^/S["/; s/!.*/"]=/
18350 p
18351 g
18352 s/^[^!]*!//
18353 :repl
18354 t repl
18355 s/'"$ac_delim"'$//
18356 t delim
18357 :nl
18358 h
18359 s/\(.\{148\}\)..*/\1/
18360 t more1
18361 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18362 p
18363 n
18364 b repl
18365 :more1
18366 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18367 p
18368 g
18369 s/.\{148\}//
18370 t nl
18371 :delim
18372 h
18373 s/\(.\{148\}\)..*/\1/
18374 t more2
18375 s/["\\]/\\&/g; s/^/"/; s/$/"/
18376 p
18377 b
18378 :more2
18379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18380 p
18381 g
18382 s/.\{148\}//
18383 t delim
18384 ' <conf$$subs.awk | sed '
18385 /^[^""]/{
18386 N
18387 s/\n//
18388 }
18389 ' >>$CONFIG_STATUS || ac_write_fail=1
18390 rm -f conf$$subs.awk
18391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18392 _ACAWK
18393 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18394 for (key in S) S_is_set[key] = 1
18395 FS = ""
18396
18397 }
18398 {
18399 line = $ 0
18400 nfields = split(line, field, "@")
18401 substed = 0
18402 len = length(field[1])
18403 for (i = 2; i < nfields; i++) {
18404 key = field[i]
18405 keylen = length(key)
18406 if (S_is_set[key]) {
18407 value = S[key]
18408 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18409 len += length(value) + length(field[++i])
18410 substed = 1
18411 } else
18412 len += 1 + keylen
18413 }
18414
18415 print line
18416 }
18417
18418 _ACAWK
18419 _ACEOF
18420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18421 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18422 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18423 else
18424 cat
18425 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18426 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18427 _ACEOF
18428
18429 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18430 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18431 # trailing colons and then remove the whole line if VPATH becomes empty
18432 # (actually we leave an empty line to preserve line numbers).
18433 if test "x$srcdir" = x.; then
18434 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18435 h
18436 s///
18437 s/^/:/
18438 s/[ ]*$/:/
18439 s/:\$(srcdir):/:/g
18440 s/:\${srcdir}:/:/g
18441 s/:@srcdir@:/:/g
18442 s/^:*//
18443 s/:*$//
18444 x
18445 s/\(=[ ]*\).*/\1/
18446 G
18447 s/\n//
18448 s/^[^=]*=[ ]*$//
18449 }'
18450 fi
18451
18452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18453 fi # test -n "$CONFIG_FILES"
18454
18455 # Set up the scripts for CONFIG_HEADERS section.
18456 # No need to generate them if there are no CONFIG_HEADERS.
18457 # This happens for instance with `./config.status Makefile'.
18458 if test -n "$CONFIG_HEADERS"; then
18459 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18460 BEGIN {
18461 _ACEOF
18462
18463 # Transform confdefs.h into an awk script `defines.awk', embedded as
18464 # here-document in config.status, that substitutes the proper values into
18465 # config.h.in to produce config.h.
18466
18467 # Create a delimiter string that does not exist in confdefs.h, to ease
18468 # handling of long lines.
18469 ac_delim='%!_!# '
18470 for ac_last_try in false false :; do
18471 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18472 if test -z "$ac_tt"; then
18473 break
18474 elif $ac_last_try; then
18475 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18476 else
18477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18478 fi
18479 done
18480
18481 # For the awk script, D is an array of macro values keyed by name,
18482 # likewise P contains macro parameters if any. Preserve backslash
18483 # newline sequences.
18484
18485 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18486 sed -n '
18487 s/.\{148\}/&'"$ac_delim"'/g
18488 t rset
18489 :rset
18490 s/^[ ]*#[ ]*define[ ][ ]*/ /
18491 t def
18492 d
18493 :def
18494 s/\\$//
18495 t bsnl
18496 s/["\\]/\\&/g
18497 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18498 D["\1"]=" \3"/p
18499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18500 d
18501 :bsnl
18502 s/["\\]/\\&/g
18503 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18504 D["\1"]=" \3\\\\\\n"\\/p
18505 t cont
18506 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18507 t cont
18508 d
18509 :cont
18510 n
18511 s/.\{148\}/&'"$ac_delim"'/g
18512 t clear
18513 :clear
18514 s/\\$//
18515 t bsnlc
18516 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18517 d
18518 :bsnlc
18519 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18520 b cont
18521 ' <confdefs.h | sed '
18522 s/'"$ac_delim"'/"\\\
18523 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18524
18525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18526 for (key in D) D_is_set[key] = 1
18527 FS = ""
18528 }
18529 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18530 line = \$ 0
18531 split(line, arg, " ")
18532 if (arg[1] == "#") {
18533 defundef = arg[2]
18534 mac1 = arg[3]
18535 } else {
18536 defundef = substr(arg[1], 2)
18537 mac1 = arg[2]
18538 }
18539 split(mac1, mac2, "(") #)
18540 macro = mac2[1]
18541 prefix = substr(line, 1, index(line, defundef) - 1)
18542 if (D_is_set[macro]) {
18543 # Preserve the white space surrounding the "#".
18544 print prefix "define", macro P[macro] D[macro]
18545 next
18546 } else {
18547 # Replace #undef with comments. This is necessary, for example,
18548 # in the case of _POSIX_SOURCE, which is predefined and required
18549 # on some systems where configure will not decide to define it.
18550 if (defundef == "undef") {
18551 print "/*", prefix defundef, macro, "*/"
18552 next
18553 }
18554 }
18555 }
18556 { print }
18557 _ACAWK
18558 _ACEOF
18559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18560 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18561 fi # test -n "$CONFIG_HEADERS"
18562
18563
18564 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18565 shift
18566 for ac_tag
18567 do
18568 case $ac_tag in
18569 :[FHLC]) ac_mode=$ac_tag; continue;;
18570 esac
18571 case $ac_mode$ac_tag in
18572 :[FHL]*:*);;
18573 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18574 :[FH]-) ac_tag=-:-;;
18575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18576 esac
18577 ac_save_IFS=$IFS
18578 IFS=:
18579 set x $ac_tag
18580 IFS=$ac_save_IFS
18581 shift
18582 ac_file=$1
18583 shift
18584
18585 case $ac_mode in
18586 :L) ac_source=$1;;
18587 :[FH])
18588 ac_file_inputs=
18589 for ac_f
18590 do
18591 case $ac_f in
18592 -) ac_f="$ac_tmp/stdin";;
18593 *) # Look for the file first in the build tree, then in the source tree
18594 # (if the path is not absolute). The absolute path cannot be DOS-style,
18595 # because $ac_f cannot contain `:'.
18596 test -f "$ac_f" ||
18597 case $ac_f in
18598 [\\/$]*) false;;
18599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18600 esac ||
18601 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18602 esac
18603 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18604 as_fn_append ac_file_inputs " '$ac_f'"
18605 done
18606
18607 # Let's still pretend it is `configure' which instantiates (i.e., don't
18608 # use $as_me), people would be surprised to read:
18609 # /* config.h. Generated by config.status. */
18610 configure_input='Generated from '`
18611 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18612 `' by configure.'
18613 if test x"$ac_file" != x-; then
18614 configure_input="$ac_file. $configure_input"
18615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18616 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18617 fi
18618 # Neutralize special characters interpreted by sed in replacement strings.
18619 case $configure_input in #(
18620 *\&* | *\|* | *\\* )
18621 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18622 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18623 *) ac_sed_conf_input=$configure_input;;
18624 esac
18625
18626 case $ac_tag in
18627 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18629 esac
18630 ;;
18631 esac
18632
18633 ac_dir=`$as_dirname -- "$ac_file" ||
18634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18635 X"$ac_file" : 'X\(//\)[^/]' \| \
18636 X"$ac_file" : 'X\(//\)$' \| \
18637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18638 printf "%s\n" X"$ac_file" |
18639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18640 s//\1/
18641 q
18642 }
18643 /^X\(\/\/\)[^/].*/{
18644 s//\1/
18645 q
18646 }
18647 /^X\(\/\/\)$/{
18648 s//\1/
18649 q
18650 }
18651 /^X\(\/\).*/{
18652 s//\1/
18653 q
18654 }
18655 s/.*/./; q'`
18656 as_dir="$ac_dir"; as_fn_mkdir_p
18657 ac_builddir=.
18658
18659 case "$ac_dir" in
18660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18661 *)
18662 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18663 # A ".." for each directory in $ac_dir_suffix.
18664 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18665 case $ac_top_builddir_sub in
18666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18668 esac ;;
18669 esac
18670 ac_abs_top_builddir=$ac_pwd
18671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18672 # for backward compatibility:
18673 ac_top_builddir=$ac_top_build_prefix
18674
18675 case $srcdir in
18676 .) # We are building in place.
18677 ac_srcdir=.
18678 ac_top_srcdir=$ac_top_builddir_sub
18679 ac_abs_top_srcdir=$ac_pwd ;;
18680 [\\/]* | ?:[\\/]* ) # Absolute name.
18681 ac_srcdir=$srcdir$ac_dir_suffix;
18682 ac_top_srcdir=$srcdir
18683 ac_abs_top_srcdir=$srcdir ;;
18684 *) # Relative name.
18685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18686 ac_top_srcdir=$ac_top_build_prefix$srcdir
18687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18688 esac
18689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18690
18691
18692 case $ac_mode in
18693 :F)
18694 #
18695 # CONFIG_FILE
18696 #
18697
18698 case $INSTALL in
18699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18701 esac
18702 ac_MKDIR_P=$MKDIR_P
18703 case $MKDIR_P in
18704 [\\/$]* | ?:[\\/]* ) ;;
18705 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18706 esac
18707 _ACEOF
18708
18709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18710 # If the template does not know about datarootdir, expand it.
18711 # FIXME: This hack should be removed a few years after 2.60.
18712 ac_datarootdir_hack=; ac_datarootdir_seen=
18713 ac_sed_dataroot='
18714 /datarootdir/ {
18715 p
18716 q
18717 }
18718 /@datadir@/p
18719 /@docdir@/p
18720 /@infodir@/p
18721 /@localedir@/p
18722 /@mandir@/p'
18723 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18724 *datarootdir*) ac_datarootdir_seen=yes;;
18725 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18727 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18728 _ACEOF
18729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18730 ac_datarootdir_hack='
18731 s&@datadir@&$datadir&g
18732 s&@docdir@&$docdir&g
18733 s&@infodir@&$infodir&g
18734 s&@localedir@&$localedir&g
18735 s&@mandir@&$mandir&g
18736 s&\\\${datarootdir}&$datarootdir&g' ;;
18737 esac
18738 _ACEOF
18739
18740 # Neutralize VPATH when `$srcdir' = `.'.
18741 # Shell code in configure.ac might set extrasub.
18742 # FIXME: do we really want to maintain this feature?
18743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18744 ac_sed_extra="$ac_vpsub
18745 $extrasub
18746 _ACEOF
18747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18748 :t
18749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18750 s|@configure_input@|$ac_sed_conf_input|;t t
18751 s&@top_builddir@&$ac_top_builddir_sub&;t t
18752 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18753 s&@srcdir@&$ac_srcdir&;t t
18754 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18755 s&@top_srcdir@&$ac_top_srcdir&;t t
18756 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18757 s&@builddir@&$ac_builddir&;t t
18758 s&@abs_builddir@&$ac_abs_builddir&;t t
18759 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18760 s&@INSTALL@&$ac_INSTALL&;t t
18761 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18762 $ac_datarootdir_hack
18763 "
18764 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18765 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18766
18767 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18768 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18770 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18772 which seems to be undefined. Please make sure it is defined" >&5
18773 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18774 which seems to be undefined. Please make sure it is defined" >&2;}
18775
18776 rm -f "$ac_tmp/stdin"
18777 case $ac_file in
18778 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18779 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18780 esac \
18781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18782 ;;
18783 :H)
18784 #
18785 # CONFIG_HEADER
18786 #
18787 if test x"$ac_file" != x-; then
18788 {
18789 printf "%s\n" "/* $configure_input */" >&1 \
18790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18791 } >"$ac_tmp/config.h" \
18792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18793 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18795 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18796 else
18797 rm -f "$ac_file"
18798 mv "$ac_tmp/config.h" "$ac_file" \
18799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18800 fi
18801 else
18802 printf "%s\n" "/* $configure_input */" >&1 \
18803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18804 || as_fn_error $? "could not create -" "$LINENO" 5
18805 fi
18806 # Compute "$ac_file"'s index in $config_headers.
18807 _am_arg="$ac_file"
18808 _am_stamp_count=1
18809 for _am_header in $config_headers :; do
18810 case $_am_header in
18811 $_am_arg | $_am_arg:* )
18812 break ;;
18813 * )
18814 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18815 esac
18816 done
18817 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18818 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18819 X"$_am_arg" : 'X\(//\)[^/]' \| \
18820 X"$_am_arg" : 'X\(//\)$' \| \
18821 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18822 printf "%s\n" X"$_am_arg" |
18823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18824 s//\1/
18825 q
18826 }
18827 /^X\(\/\/\)[^/].*/{
18828 s//\1/
18829 q
18830 }
18831 /^X\(\/\/\)$/{
18832 s//\1/
18833 q
18834 }
18835 /^X\(\/\).*/{
18836 s//\1/
18837 q
18838 }
18839 s/.*/./; q'`/stamp-h$_am_stamp_count
18840 ;;
18841
18842 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18843 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18844 ;;
18845 esac
18846
18847
18848 case $ac_file$ac_mode in
18849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18850 # Older Autoconf quotes --file arguments for eval, but not when files
18851 # are listed without --file. Let's play safe and only enable the eval
18852 # if we detect the quoting.
18853 # TODO: see whether this extra hack can be removed once we start
18854 # requiring Autoconf 2.70 or later.
18855 case $CONFIG_FILES in #(
18856 *\'*) :
18857 eval set x "$CONFIG_FILES" ;; #(
18858 *) :
18859 set x $CONFIG_FILES ;; #(
18860 *) :
18861 ;;
18862 esac
18863 shift
18864 # Used to flag and report bootstrapping failures.
18865 am_rc=0
18866 for am_mf
18867 do
18868 # Strip MF so we end up with the name of the file.
18869 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18870 # Check whether this is an Automake generated Makefile which includes
18871 # dependency-tracking related rules and includes.
18872 # Grep'ing the whole file directly is not great: AIX grep has a line
18873 # limit of 2048, but all sed's we know have understand at least 4000.
18874 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18875 || continue
18876 am_dirpart=`$as_dirname -- "$am_mf" ||
18877 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18878 X"$am_mf" : 'X\(//\)[^/]' \| \
18879 X"$am_mf" : 'X\(//\)$' \| \
18880 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18881 printf "%s\n" X"$am_mf" |
18882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18883 s//\1/
18884 q
18885 }
18886 /^X\(\/\/\)[^/].*/{
18887 s//\1/
18888 q
18889 }
18890 /^X\(\/\/\)$/{
18891 s//\1/
18892 q
18893 }
18894 /^X\(\/\).*/{
18895 s//\1/
18896 q
18897 }
18898 s/.*/./; q'`
18899 am_filepart=`$as_basename -- "$am_mf" ||
18900 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18901 X"$am_mf" : 'X\(//\)$' \| \
18902 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18903 printf "%s\n" X/"$am_mf" |
18904 sed '/^.*\/\([^/][^/]*\)\/*$/{
18905 s//\1/
18906 q
18907 }
18908 /^X\/\(\/\/\)$/{
18909 s//\1/
18910 q
18911 }
18912 /^X\/\(\/\).*/{
18913 s//\1/
18914 q
18915 }
18916 s/.*/./; q'`
18917 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18918 && sed -e '/# am--include-marker/d' "$am_filepart" \
18919 | $MAKE -f - am--depfiles" >&5
18920 (cd "$am_dirpart" \
18921 && sed -e '/# am--include-marker/d' "$am_filepart" \
18922 | $MAKE -f - am--depfiles) >&5 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } || am_rc=$?
18926 done
18927 if test $am_rc -ne 0; then
18928 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18929 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18930 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18931 for automatic dependency tracking. If GNU make was not used, consider
18932 re-running the configure script with MAKE=\"gmake\" (or whatever is
18933 necessary). You can also try re-running configure with the
18934 '--disable-dependency-tracking' option to at least be able to build
18935 the package (albeit without support for automatic dependency tracking).
18936 See \`config.log' for more details" "$LINENO" 5; }
18937 fi
18938 { am_dirpart=; unset am_dirpart;}
18939 { am_filepart=; unset am_filepart;}
18940 { am_mf=; unset am_mf;}
18941 { am_rc=; unset am_rc;}
18942 rm -f conftest-deps.mk
18943 }
18944 ;;
18945 "libtool":C)
18946
18947 # See if we are running on zsh, and set the options that allow our
18948 # commands through without removal of \ escapes.
18949 if test -n "${ZSH_VERSION+set}"; then
18950 setopt NO_GLOB_SUBST
18951 fi
18952
18953 cfgfile=${ofile}T
18954 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18955 $RM "$cfgfile"
18956
18957 cat <<_LT_EOF >> "$cfgfile"
18958 #! $SHELL
18959 # Generated automatically by $as_me ($PACKAGE) $VERSION
18960 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18961
18962 # Provide generalized library-building support services.
18963 # Written by Gordon Matzigkeit, 1996
18964
18965 # Copyright (C) 2014 Free Software Foundation, Inc.
18966 # This is free software; see the source for copying conditions. There is NO
18967 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18968
18969 # GNU Libtool is free software; you can redistribute it and/or modify
18970 # it under the terms of the GNU General Public License as published by
18971 # the Free Software Foundation; either version 2 of of the License, or
18972 # (at your option) any later version.
18973 #
18974 # As a special exception to the GNU General Public License, if you
18975 # distribute this file as part of a program or library that is built
18976 # using GNU Libtool, you may include this file under the same
18977 # distribution terms that you use for the rest of that program.
18978 #
18979 # GNU Libtool is distributed in the hope that it will be useful, but
18980 # WITHOUT ANY WARRANTY; without even the implied warranty of
18981 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18982 # GNU General Public License for more details.
18983 #
18984 # You should have received a copy of the GNU General Public License
18985 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18986
18987
18988 # The names of the tagged configurations supported by this script.
18989 available_tags=''
18990
18991 # Configured defaults for sys_lib_dlsearch_path munging.
18992 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18993
18994 # ### BEGIN LIBTOOL CONFIG
18995
18996 # Which release of libtool.m4 was used?
18997 macro_version=$macro_version
18998 macro_revision=$macro_revision
18999
19000 # Whether or not to build shared libraries.
19001 build_libtool_libs=$enable_shared
19002
19003 # Whether or not to build static libraries.
19004 build_old_libs=$enable_static
19005
19006 # What type of objects to build.
19007 pic_mode=$pic_mode
19008
19009 # Whether or not to optimize for fast installation.
19010 fast_install=$enable_fast_install
19011
19012 # Shared archive member basename,for filename based shared library versioning on AIX.
19013 shared_archive_member_spec=$shared_archive_member_spec
19014
19015 # Shell to use when invoking shell scripts.
19016 SHELL=$lt_SHELL
19017
19018 # An echo program that protects backslashes.
19019 ECHO=$lt_ECHO
19020
19021 # The PATH separator for the build system.
19022 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19023
19024 # The host system.
19025 host_alias=$host_alias
19026 host=$host
19027 host_os=$host_os
19028
19029 # The build system.
19030 build_alias=$build_alias
19031 build=$build
19032 build_os=$build_os
19033
19034 # A sed program that does not truncate output.
19035 SED=$lt_SED
19036
19037 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19038 Xsed="\$SED -e 1s/^X//"
19039
19040 # A grep program that handles long lines.
19041 GREP=$lt_GREP
19042
19043 # An ERE matcher.
19044 EGREP=$lt_EGREP
19045
19046 # A literal string matcher.
19047 FGREP=$lt_FGREP
19048
19049 # A BSD- or MS-compatible name lister.
19050 NM=$lt_NM
19051
19052 # Whether we need soft or hard links.
19053 LN_S=$lt_LN_S
19054
19055 # What is the maximum length of a command?
19056 max_cmd_len=$max_cmd_len
19057
19058 # Object file suffix (normally "o").
19059 objext=$ac_objext
19060
19061 # Executable file suffix (normally "").
19062 exeext=$exeext
19063
19064 # whether the shell understands "unset".
19065 lt_unset=$lt_unset
19066
19067 # turn spaces into newlines.
19068 SP2NL=$lt_lt_SP2NL
19069
19070 # turn newlines into spaces.
19071 NL2SP=$lt_lt_NL2SP
19072
19073 # convert \$build file names to \$host format.
19074 to_host_file_cmd=$lt_cv_to_host_file_cmd
19075
19076 # convert \$build files to toolchain format.
19077 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19078
19079 # A file(cmd) program that detects file types.
19080 FILECMD=$lt_FILECMD
19081
19082 # An object symbol dumper.
19083 OBJDUMP=$lt_OBJDUMP
19084
19085 # Method to check whether dependent libraries are shared objects.
19086 deplibs_check_method=$lt_deplibs_check_method
19087
19088 # Command to use when deplibs_check_method = "file_magic".
19089 file_magic_cmd=$lt_file_magic_cmd
19090
19091 # How to find potential files when deplibs_check_method = "file_magic".
19092 file_magic_glob=$lt_file_magic_glob
19093
19094 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19095 want_nocaseglob=$lt_want_nocaseglob
19096
19097 # DLL creation program.
19098 DLLTOOL=$lt_DLLTOOL
19099
19100 # Command to associate shared and link libraries.
19101 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19102
19103 # The archiver.
19104 AR=$lt_AR
19105
19106 # Flags to create an archive (by configure).
19107 lt_ar_flags=$lt_ar_flags
19108
19109 # Flags to create an archive.
19110 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19111
19112 # How to feed a file listing to the archiver.
19113 archiver_list_spec=$lt_archiver_list_spec
19114
19115 # A symbol stripping program.
19116 STRIP=$lt_STRIP
19117
19118 # Commands used to install an old-style archive.
19119 RANLIB=$lt_RANLIB
19120 old_postinstall_cmds=$lt_old_postinstall_cmds
19121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19122
19123 # Whether to use a lock for old archive extraction.
19124 lock_old_archive_extraction=$lock_old_archive_extraction
19125
19126 # A C compiler.
19127 LTCC=$lt_CC
19128
19129 # LTCC compiler flags.
19130 LTCFLAGS=$lt_CFLAGS
19131
19132 # Take the output of nm and produce a listing of raw symbols and C names.
19133 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19134
19135 # Transform the output of nm in a proper C declaration.
19136 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19137
19138 # Transform the output of nm into a list of symbols to manually relocate.
19139 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19140
19141 # Transform the output of nm in a C name address pair.
19142 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19143
19144 # Transform the output of nm in a C name address pair when lib prefix is needed.
19145 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19146
19147 # The name lister interface.
19148 nm_interface=$lt_lt_cv_nm_interface
19149
19150 # Specify filename containing input files for \$NM.
19151 nm_file_list_spec=$lt_nm_file_list_spec
19152
19153 # The root where to search for dependent libraries,and where our libraries should be installed.
19154 lt_sysroot=$lt_sysroot
19155
19156 # Command to truncate a binary pipe.
19157 lt_truncate_bin=$lt_lt_cv_truncate_bin
19158
19159 # The name of the directory that contains temporary libtool files.
19160 objdir=$objdir
19161
19162 # Used to examine libraries when file_magic_cmd begins with "file".
19163 MAGIC_CMD=$MAGIC_CMD
19164
19165 # Must we lock files when doing compilation?
19166 need_locks=$lt_need_locks
19167
19168 # Manifest tool.
19169 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19170
19171 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19172 DSYMUTIL=$lt_DSYMUTIL
19173
19174 # Tool to change global to local symbols on Mac OS X.
19175 NMEDIT=$lt_NMEDIT
19176
19177 # Tool to manipulate fat objects and archives on Mac OS X.
19178 LIPO=$lt_LIPO
19179
19180 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19181 OTOOL=$lt_OTOOL
19182
19183 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19184 OTOOL64=$lt_OTOOL64
19185
19186 # Old archive suffix (normally "a").
19187 libext=$libext
19188
19189 # Shared library suffix (normally ".so").
19190 shrext_cmds=$lt_shrext_cmds
19191
19192 # The commands to extract the exported symbol list from a shared archive.
19193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19194
19195 # Variables whose values should be saved in libtool wrapper scripts and
19196 # restored at link time.
19197 variables_saved_for_relink=$lt_variables_saved_for_relink
19198
19199 # Do we need the "lib" prefix for modules?
19200 need_lib_prefix=$need_lib_prefix
19201
19202 # Do we need a version for libraries?
19203 need_version=$need_version
19204
19205 # Library versioning type.
19206 version_type=$version_type
19207
19208 # Shared library runtime path variable.
19209 runpath_var=$runpath_var
19210
19211 # Shared library path variable.
19212 shlibpath_var=$shlibpath_var
19213
19214 # Is shlibpath searched before the hard-coded library search path?
19215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19216
19217 # Format of library name prefix.
19218 libname_spec=$lt_libname_spec
19219
19220 # List of archive names. First name is the real one, the rest are links.
19221 # The last name is the one that the linker finds with -lNAME
19222 library_names_spec=$lt_library_names_spec
19223
19224 # The coded name of the library, if different from the real name.
19225 soname_spec=$lt_soname_spec
19226
19227 # Permission mode override for installation of shared libraries.
19228 install_override_mode=$lt_install_override_mode
19229
19230 # Command to use after installation of a shared archive.
19231 postinstall_cmds=$lt_postinstall_cmds
19232
19233 # Command to use after uninstallation of a shared archive.
19234 postuninstall_cmds=$lt_postuninstall_cmds
19235
19236 # Commands used to finish a libtool library installation in a directory.
19237 finish_cmds=$lt_finish_cmds
19238
19239 # As "finish_cmds", except a single script fragment to be evaled but
19240 # not shown.
19241 finish_eval=$lt_finish_eval
19242
19243 # Whether we should hardcode library paths into libraries.
19244 hardcode_into_libs=$hardcode_into_libs
19245
19246 # Compile-time system search path for libraries.
19247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19248
19249 # Detected run-time system search path for libraries.
19250 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19251
19252 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19253 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19254
19255 # Whether dlopen is supported.
19256 dlopen_support=$enable_dlopen
19257
19258 # Whether dlopen of programs is supported.
19259 dlopen_self=$enable_dlopen_self
19260
19261 # Whether dlopen of statically linked programs is supported.
19262 dlopen_self_static=$enable_dlopen_self_static
19263
19264 # Commands to strip libraries.
19265 old_striplib=$lt_old_striplib
19266 striplib=$lt_striplib
19267
19268
19269 # The linker used to build libraries.
19270 LD=$lt_LD
19271
19272 # How to create reloadable object files.
19273 reload_flag=$lt_reload_flag
19274 reload_cmds=$lt_reload_cmds
19275
19276 # Commands used to build an old-style archive.
19277 old_archive_cmds=$lt_old_archive_cmds
19278
19279 # A language specific compiler.
19280 CC=$lt_compiler
19281
19282 # Is the compiler the GNU compiler?
19283 with_gcc=$GCC
19284
19285 # Compiler flag to turn off builtin functions.
19286 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19287
19288 # Additional compiler flags for building library objects.
19289 pic_flag=$lt_lt_prog_compiler_pic
19290
19291 # How to pass a linker flag through the compiler.
19292 wl=$lt_lt_prog_compiler_wl
19293
19294 # Compiler flag to prevent dynamic linking.
19295 link_static_flag=$lt_lt_prog_compiler_static
19296
19297 # Does compiler simultaneously support -c and -o options?
19298 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19299
19300 # Whether or not to add -lc for building shared libraries.
19301 build_libtool_need_lc=$archive_cmds_need_lc
19302
19303 # Whether or not to disallow shared libs when runtime libs are static.
19304 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19305
19306 # Compiler flag to allow reflexive dlopens.
19307 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19308
19309 # Compiler flag to generate shared objects directly from archives.
19310 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19311
19312 # Whether the compiler copes with passing no objects directly.
19313 compiler_needs_object=$lt_compiler_needs_object
19314
19315 # Create an old-style archive from a shared archive.
19316 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19317
19318 # Create a temporary old-style archive to link instead of a shared archive.
19319 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19320
19321 # Commands used to build a shared archive.
19322 archive_cmds=$lt_archive_cmds
19323 archive_expsym_cmds=$lt_archive_expsym_cmds
19324
19325 # Commands used to build a loadable module if different from building
19326 # a shared archive.
19327 module_cmds=$lt_module_cmds
19328 module_expsym_cmds=$lt_module_expsym_cmds
19329
19330 # Whether we are building with GNU ld or not.
19331 with_gnu_ld=$lt_with_gnu_ld
19332
19333 # Flag that allows shared libraries with undefined symbols to be built.
19334 allow_undefined_flag=$lt_allow_undefined_flag
19335
19336 # Flag that enforces no undefined symbols.
19337 no_undefined_flag=$lt_no_undefined_flag
19338
19339 # Flag to hardcode \$libdir into a binary during linking.
19340 # This must work even if \$libdir does not exist
19341 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19342
19343 # Whether we need a single "-rpath" flag with a separated argument.
19344 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19345
19346 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19347 # DIR into the resulting binary.
19348 hardcode_direct=$hardcode_direct
19349
19350 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19351 # DIR into the resulting binary and the resulting library dependency is
19352 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19353 # library is relocated.
19354 hardcode_direct_absolute=$hardcode_direct_absolute
19355
19356 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19357 # into the resulting binary.
19358 hardcode_minus_L=$hardcode_minus_L
19359
19360 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19361 # into the resulting binary.
19362 hardcode_shlibpath_var=$hardcode_shlibpath_var
19363
19364 # Set to "yes" if building a shared library automatically hardcodes DIR
19365 # into the library and all subsequent libraries and executables linked
19366 # against it.
19367 hardcode_automatic=$hardcode_automatic
19368
19369 # Set to yes if linker adds runtime paths of dependent libraries
19370 # to runtime path list.
19371 inherit_rpath=$inherit_rpath
19372
19373 # Whether libtool must link a program against all its dependency libraries.
19374 link_all_deplibs=$link_all_deplibs
19375
19376 # Set to "yes" if exported symbols are required.
19377 always_export_symbols=$always_export_symbols
19378
19379 # The commands to list exported symbols.
19380 export_symbols_cmds=$lt_export_symbols_cmds
19381
19382 # Symbols that should not be listed in the preloaded symbols.
19383 exclude_expsyms=$lt_exclude_expsyms
19384
19385 # Symbols that must always be exported.
19386 include_expsyms=$lt_include_expsyms
19387
19388 # Commands necessary for linking programs (against libraries) with templates.
19389 prelink_cmds=$lt_prelink_cmds
19390
19391 # Commands necessary for finishing linking programs.
19392 postlink_cmds=$lt_postlink_cmds
19393
19394 # Specify filename containing input files.
19395 file_list_spec=$lt_file_list_spec
19396
19397 # How to hardcode a shared library path into an executable.
19398 hardcode_action=$hardcode_action
19399
19400 # ### END LIBTOOL CONFIG
19401
19402 _LT_EOF
19403
19404 cat <<'_LT_EOF' >> "$cfgfile"
19405
19406 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19407
19408 # func_munge_path_list VARIABLE PATH
19409 # -----------------------------------
19410 # VARIABLE is name of variable containing _space_ separated list of
19411 # directories to be munged by the contents of PATH, which is string
19412 # having a format:
19413 # "DIR[:DIR]:"
19414 # string "DIR[ DIR]" will be prepended to VARIABLE
19415 # ":DIR[:DIR]"
19416 # string "DIR[ DIR]" will be appended to VARIABLE
19417 # "DIRP[:DIRP]::[DIRA:]DIRA"
19418 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19419 # "DIRA[ DIRA]" will be appended to VARIABLE
19420 # "DIR[:DIR]"
19421 # VARIABLE will be replaced by "DIR[ DIR]"
19422 func_munge_path_list ()
19423 {
19424 case x$2 in
19425 x)
19426 ;;
19427 *:)
19428 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19429 ;;
19430 x:*)
19431 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19432 ;;
19433 *::*)
19434 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19435 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19436 ;;
19437 *)
19438 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19439 ;;
19440 esac
19441 }
19442
19443
19444 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19445 func_cc_basename ()
19446 {
19447 for cc_temp in $*""; do
19448 case $cc_temp in
19449 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19450 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19451 \-*) ;;
19452 *) break;;
19453 esac
19454 done
19455 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19456 }
19457
19458
19459 # ### END FUNCTIONS SHARED WITH CONFIGURE
19460
19461 _LT_EOF
19462
19463 case $host_os in
19464 aix3*)
19465 cat <<\_LT_EOF >> "$cfgfile"
19466 # AIX sometimes has problems with the GCC collect2 program. For some
19467 # reason, if we set the COLLECT_NAMES environment variable, the problems
19468 # vanish in a puff of smoke.
19469 if test set != "${COLLECT_NAMES+set}"; then
19470 COLLECT_NAMES=
19471 export COLLECT_NAMES
19472 fi
19473 _LT_EOF
19474 ;;
19475 esac
19476
19477
19478
19479 ltmain=$ac_aux_dir/ltmain.sh
19480
19481
19482 # We use sed instead of cat because bash on DJGPP gets confused if
19483 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19484 # text mode, it properly converts lines to CR/LF. This bash problem
19485 # is reportedly fixed, but why not run on old versions too?
19486 $SED '$q' "$ltmain" >> "$cfgfile" \
19487 || (rm -f "$cfgfile"; exit 1)
19488
19489 mv -f "$cfgfile" "$ofile" ||
19490 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19491 chmod +x "$ofile"
19492
19493 ;;
19494 "po-directories":C)
19495 for ac_file in $CONFIG_FILES; do
19496 # Support "outfile[:infile[:infile...]]"
19497 case "$ac_file" in
19498 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19499 esac
19500 # PO directories have a Makefile.in generated from Makefile.in.in.
19501 case "$ac_file" in */Makefile.in)
19502 # Adjust a relative srcdir.
19503 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19504 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19505 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19506 # In autoconf-2.13 it is called $ac_given_srcdir.
19507 # In autoconf-2.50 it is called $srcdir.
19508 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19509 case "$ac_given_srcdir" in
19510 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19511 /*) top_srcdir="$ac_given_srcdir" ;;
19512 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19513 esac
19514 # Treat a directory as a PO directory if and only if it has a
19515 # POTFILES.in file. This allows packages to have multiple PO
19516 # directories under different names or in different locations.
19517 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19518 rm -f "$ac_dir/POTFILES"
19519 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19520 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19521 POMAKEFILEDEPS="POTFILES.in"
19522 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19523 # on $ac_dir but don't depend on user-specified configuration
19524 # parameters.
19525 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19526 # The LINGUAS file contains the set of available languages.
19527 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19528 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19529 fi
19530 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19531 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19532 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19533 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19534 else
19535 # The set of available languages was given in configure.in.
19536 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19537 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19538 fi
19539 # Compute POFILES
19540 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19541 # Compute UPDATEPOFILES
19542 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19543 # Compute DUMMYPOFILES
19544 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19545 # Compute GMOFILES
19546 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19547 case "$ac_given_srcdir" in
19548 .) srcdirpre= ;;
19549 *) srcdirpre='$(srcdir)/' ;;
19550 esac
19551 POFILES=
19552 UPDATEPOFILES=
19553 DUMMYPOFILES=
19554 GMOFILES=
19555 for lang in $ALL_LINGUAS; do
19556 POFILES="$POFILES $srcdirpre$lang.po"
19557 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19558 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19559 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19560 done
19561 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19562 # environment variable.
19563 INST_LINGUAS=
19564 if test -n "$ALL_LINGUAS"; then
19565 for presentlang in $ALL_LINGUAS; do
19566 useit=no
19567 if test "%UNSET%" != "$LINGUAS"; then
19568 desiredlanguages="$LINGUAS"
19569 else
19570 desiredlanguages="$ALL_LINGUAS"
19571 fi
19572 for desiredlang in $desiredlanguages; do
19573 # Use the presentlang catalog if desiredlang is
19574 # a. equal to presentlang, or
19575 # b. a variant of presentlang (because in this case,
19576 # presentlang can be used as a fallback for messages
19577 # which are not translated in the desiredlang catalog).
19578 case "$desiredlang" in
19579 "$presentlang"*) useit=yes;;
19580 esac
19581 done
19582 if test $useit = yes; then
19583 INST_LINGUAS="$INST_LINGUAS $presentlang"
19584 fi
19585 done
19586 fi
19587 CATALOGS=
19588 if test -n "$INST_LINGUAS"; then
19589 for lang in $INST_LINGUAS; do
19590 CATALOGS="$CATALOGS $lang.gmo"
19591 done
19592 fi
19593 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19594 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19595 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19596 if test -f "$f"; then
19597 case "$f" in
19598 *.orig | *.bak | *~) ;;
19599 *) cat "$f" >> "$ac_dir/Makefile" ;;
19600 esac
19601 fi
19602 done
19603 fi
19604 ;;
19605 esac
19606 done ;;
19607
19608 esac
19609 done # for ac_tag
19610
19611
19612 as_fn_exit 0
19613 _ACEOF
19614 ac_clean_files=$ac_clean_files_save
19615
19616 test $ac_write_fail = 0 ||
19617 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19618
19619
19620 # configure is writing to config.log, and then calls config.status.
19621 # config.status does its own redirection, appending to config.log.
19622 # Unfortunately, on DOS this fails, as config.log is still kept open
19623 # by configure, so config.status won't be able to write to it; its
19624 # output is simply discarded. So we exec the FD to /dev/null,
19625 # effectively closing config.log, so it can be properly (re)opened and
19626 # appended to by config.status. When coming back to configure, we
19627 # need to make the FD available again.
19628 if test "$no_create" != yes; then
19629 ac_cs_success=:
19630 ac_config_status_args=
19631 test "$silent" = yes &&
19632 ac_config_status_args="$ac_config_status_args --quiet"
19633 exec 5>/dev/null
19634 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19635 exec 5>>config.log
19636 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19637 # would make configure fail if this is the last instruction.
19638 $ac_cs_success || as_fn_exit 1
19639 fi
19640 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19642 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19643 fi
19644
19645