Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.72 for garcon 4.20.0.
5 #
6 # Report bugs to <https://gitlab.xfce.org/xfce/garcon>.
7 #
8 # Copyright (c) 2007-2024 The Xfce development team. All rights reserved.
9 # Written for Xfce by Jannis Pohlmann <[email protected]>.
10 #
11 #
12 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
13 # Inc.
14 #
15 #
16 # This configure script is free software; the Free Software Foundation
17 # gives unlimited permission to copy, distribute and modify it.
18 ## -------------------- ##
19 ## M4sh Initialization. ##
20 ## -------------------- ##
21
22 # Be more Bourne compatible
23 DUALCASE=1; export DUALCASE # for MKS sh
24 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 then :
26 emulate sh
27 NULLCMD=:
28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29 # is contrary to our usage. Disable this feature.
30 alias -g '${1+"$@"}'='"$@"'
31 setopt NO_GLOB_SUBST
32 else case e in #(
33 e) case `(set -o) 2>/dev/null` in #(
34 *posix*) :
35 set -o posix ;; #(
36 *) :
37 ;;
38 esac ;;
39 esac
40 fi
41
42
43
44 # Reset variables that may have inherited troublesome values from
45 # the environment.
46
47 # IFS needs to be set, to space, tab, and newline, in precisely that order.
48 # (If _AS_PATH_WALK were called with IFS unset, it would have the
49 # side effect of setting IFS to empty, thus disabling word splitting.)
50 # Quoting is to prevent editors from complaining about space-tab.
51 as_nl='
52 '
53 export as_nl
54 IFS=" "" $as_nl"
55
56 PS1='$ '
57 PS2='> '
58 PS4='+ '
59
60 # Ensure predictable behavior from utilities with locale-dependent output.
61 LC_ALL=C
62 export LC_ALL
63 LANGUAGE=C
64 export LANGUAGE
65
66 # We cannot yet rely on "unset" to work, but we need these variables
67 # to be unset--not just set to an empty or harmless value--now, to
68 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
69 # also avoids known problems related to "unset" and subshell syntax
70 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
71 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
72 do eval test \${$as_var+y} \
73 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
74 done
75
76 # Ensure that fds 0, 1, and 2 are open.
77 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
78 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
79 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
80
81 # The user is always right.
82 if ${PATH_SEPARATOR+false} :; then
83 PATH_SEPARATOR=:
84 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
85 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 PATH_SEPARATOR=';'
87 }
88 fi
89
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 case $as_dir in #(((
100 '') as_dir=./ ;;
101 */) ;;
102 *) as_dir=$as_dir/ ;;
103 esac
104 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as 'sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 exit 1
118 fi
119
120
121 # Use a proper internal environment variable to ensure we don't fall
122 # into an infinite loop, continuously re-executing ourselves.
123 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
124 _as_can_reexec=no; export _as_can_reexec;
125 # We cannot yet assume a decent shell, so we have to provide a
126 # neutralization value for shells without unset; and this also
127 # works around shells that cannot unset nonexistent variables.
128 # Preserve -v and -x to the replacement shell.
129 BASH_ENV=/dev/null
130 ENV=/dev/null
131 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
132 case $- in # ((((
133 *v*x* | *x*v* ) as_opts=-vx ;;
134 *v* ) as_opts=-v ;;
135 *x* ) as_opts=-x ;;
136 * ) as_opts= ;;
137 esac
138 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
139 # Admittedly, this is quite paranoid, since all the known shells bail
140 # out after a failed 'exec'.
141 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
142 exit 255
143 fi
144 # We don't want this to propagate to other subprocesses.
145 { _as_can_reexec=; unset _as_can_reexec;}
146 if test "x$CONFIG_SHELL" = x; then
147 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 then :
149 emulate sh
150 NULLCMD=:
151 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
152 # is contrary to our usage. Disable this feature.
153 alias -g '\${1+\"\$@\"}'='\"\$@\"'
154 setopt NO_GLOB_SUBST
155 else case e in #(
156 e) case \`(set -o) 2>/dev/null\` in #(
157 *posix*) :
158 set -o posix ;; #(
159 *) :
160 ;;
161 esac ;;
162 esac
163 fi
164 "
165 as_required="as_fn_return () { (exit \$1); }
166 as_fn_success () { as_fn_return 0; }
167 as_fn_failure () { as_fn_return 1; }
168 as_fn_ret_success () { return 0; }
169 as_fn_ret_failure () { return 1; }
170
171 exitcode=0
172 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
173 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
174 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
175 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
176 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
177 then :
178
179 else case e in #(
180 e) exitcode=1; echo positional parameters were not saved. ;;
181 esac
182 fi
183 test x\$exitcode = x0 || exit 1
184 blah=\$(echo \$(echo blah))
185 test x\"\$blah\" = xblah || exit 1
186 test -x / || exit 1"
187 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
188 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
189 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
190 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
191
192 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
193 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
194 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
195 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
196 PATH=/empty FPATH=/empty; export PATH FPATH
197 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
198 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null
201 then :
202 as_have_required=yes
203 else case e in #(
204 e) as_have_required=no ;;
205 esac
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
208 then :
209
210 else case e in #(
211 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 as_found=false
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 do
215 IFS=$as_save_IFS
216 case $as_dir in #(((
217 '') as_dir=./ ;;
218 */) ;;
219 *) as_dir=$as_dir/ ;;
220 esac
221 as_found=:
222 case $as_dir in #(
223 /*)
224 for as_base in sh bash ksh sh5; do
225 # Try only shells that exist, to save several forks.
226 as_shell=$as_dir$as_base
227 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
228 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
229 then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
232 then :
233 break 2
234 fi
235 fi
236 done;;
237 esac
238 as_found=false
239 done
240 IFS=$as_save_IFS
241 if $as_found
242 then :
243
244 else case e in #(
245 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
246 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
247 then :
248 CONFIG_SHELL=$SHELL as_have_required=yes
249 fi ;;
250 esac
251 fi
252
253
254 if test "x$CONFIG_SHELL" != x
255 then :
256 export CONFIG_SHELL
257 # We cannot yet assume a decent shell, so we have to provide a
258 # neutralization value for shells without unset; and this also
259 # works around shells that cannot unset nonexistent variables.
260 # Preserve -v and -x to the replacement shell.
261 BASH_ENV=/dev/null
262 ENV=/dev/null
263 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
264 case $- in # ((((
265 *v*x* | *x*v* ) as_opts=-vx ;;
266 *v* ) as_opts=-v ;;
267 *x* ) as_opts=-x ;;
268 * ) as_opts= ;;
269 esac
270 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
271 # Admittedly, this is quite paranoid, since all the known shells bail
272 # out after a failed 'exec'.
273 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
274 exit 255
275 fi
276
277 if test x$as_have_required = xno
278 then :
279 printf "%s\n" "$0: This script requires a shell more modern than all"
280 printf "%s\n" "$0: the shells that I found on your system."
281 if test ${ZSH_VERSION+y} ; then
282 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
283 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
284 else
285 printf "%s\n" "$0: Please tell [email protected] and
286 $0: https://gitlab.xfce.org/xfce/garcon about your system,
287 $0: including any error possibly output before this
288 $0: message. Then install a modern shell, or manually run
289 $0: the script under such a shell if you do have one."
290 fi
291 exit 1
292 fi ;;
293 esac
294 fi
295 fi
296 SHELL=${CONFIG_SHELL-/bin/sh}
297 export SHELL
298 # Unset more variables known to interfere with behavior of common tools.
299 CLICOLOR_FORCE= GREP_OPTIONS=
300 unset CLICOLOR_FORCE GREP_OPTIONS
301
302 ## --------------------- ##
303 ## M4sh Shell Functions. ##
304 ## --------------------- ##
305 # as_fn_unset VAR
306 # ---------------
307 # Portably unset VAR.
308 as_fn_unset ()
309 {
310 { eval $1=; unset $1;}
311 }
312 as_unset=as_fn_unset
313
314
315 # as_fn_set_status STATUS
316 # -----------------------
317 # Set $? to STATUS, without forking.
318 as_fn_set_status ()
319 {
320 return $1
321 } # as_fn_set_status
322
323 # as_fn_exit STATUS
324 # -----------------
325 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 as_fn_exit ()
327 {
328 set +e
329 as_fn_set_status $1
330 exit $1
331 } # as_fn_exit
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 case e in #(
401 e) as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 } ;;
405 esac
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else case e in #(
420 e) as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 } ;;
424 esac
425 fi # as_fn_arith
426
427
428 # as_fn_error STATUS ERROR [LINENO LOG_FD]
429 # ----------------------------------------
430 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
431 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
432 # script with STATUS, using 1 if that was 0.
433 as_fn_error ()
434 {
435 as_status=$1; test $as_status -eq 0 && as_status=1
436 if test "$4"; then
437 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
439 fi
440 printf "%s\n" "$as_me: error: $2" >&2
441 as_fn_exit $as_status
442 } # as_fn_error
443
444 if expr a : '\(a\)' >/dev/null 2>&1 &&
445 test "X`expr 00001 : '.*\(...\)'`" = X001; then
446 as_expr=expr
447 else
448 as_expr=false
449 fi
450
451 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
452 as_basename=basename
453 else
454 as_basename=false
455 fi
456
457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
458 as_dirname=dirname
459 else
460 as_dirname=false
461 fi
462
463 as_me=`$as_basename -- "$0" ||
464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
465 X"$0" : 'X\(//\)$' \| \
466 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
467 printf "%s\n" X/"$0" |
468 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\/\)$/{
473 s//\1/
474 q
475 }
476 /^X\/\(\/\).*/{
477 s//\1/
478 q
479 }
480 s/.*/./; q'`
481
482 # Avoid depending upon Character Ranges.
483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
486 as_cr_digits='0123456789'
487 as_cr_alnum=$as_cr_Letters$as_cr_digits
488
489
490 as_lineno_1=$LINENO as_lineno_1a=$LINENO
491 as_lineno_2=$LINENO as_lineno_2a=$LINENO
492 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
493 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
494 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
495 sed -n '
496 p
497 /[$]LINENO/=
498 ' <$as_myself |
499 sed '
500 t clear
501 :clear
502 s/[$]LINENO.*/&-/
503 t lineno
504 b
505 :lineno
506 N
507 :loop
508 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
509 t loop
510 s/-\n.*//
511 ' >$as_me.lineno &&
512 chmod +x "$as_me.lineno" ||
513 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
514
515 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
516 # already done that, so ensure we don't try to do so again and fall
517 # in an infinite loop. This has already happened in practice.
518 _as_can_reexec=no; export _as_can_reexec
519 # Don't try to exec as it changes $[0], causing all sort of problems
520 # (the dirname of $[0] is not the place where we might find the
521 # original and so on. Autoconf is especially sensitive to this).
522 . "./$as_me.lineno"
523 # Exit status is that of the last command.
524 exit
525 }
526
527
528 # Determine whether it's possible to make 'echo' print without a newline.
529 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
530 # for compatibility with existing Makefiles.
531 ECHO_C= ECHO_N= ECHO_T=
532 case `echo -n x` in #(((((
533 -n*)
534 case `echo 'xy\c'` in
535 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
536 xy) ECHO_C='\c';;
537 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
538 ECHO_T=' ';;
539 esac;;
540 *)
541 ECHO_N='-n';;
542 esac
543
544 # For backward compatibility with old third-party macros, we provide
545 # the shell variables $as_echo and $as_echo_n. New code should use
546 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
547 as_echo='printf %s\n'
548 as_echo_n='printf %s'
549
550 rm -f conf$$ conf$$.exe conf$$.file
551 if test -d conf$$.dir; then
552 rm -f conf$$.dir/conf$$.file
553 else
554 rm -f conf$$.dir
555 mkdir conf$$.dir 2>/dev/null
556 fi
557 if (echo >conf$$.file) 2>/dev/null; then
558 if ln -s conf$$.file conf$$ 2>/dev/null; then
559 as_ln_s='ln -s'
560 # ... but there are two gotchas:
561 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
562 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
563 # In both cases, we have to default to 'cp -pR'.
564 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
565 as_ln_s='cp -pR'
566 elif ln conf$$.file conf$$ 2>/dev/null; then
567 as_ln_s=ln
568 else
569 as_ln_s='cp -pR'
570 fi
571 else
572 as_ln_s='cp -pR'
573 fi
574 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
575 rmdir conf$$.dir 2>/dev/null
576
577 if mkdir -p . 2>/dev/null; then
578 as_mkdir_p='mkdir -p "$as_dir"'
579 else
580 test -d ./-p && rmdir ./-p
581 as_mkdir_p=false
582 fi
583
584 as_test_x='test -x'
585 as_executable_p=as_fn_executable_p
586
587 # Sed expression to map a string onto a valid CPP name.
588 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
590
591 # Sed expression to map a string onto a valid variable name.
592 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
593 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='garcon'
620 PACKAGE_TARNAME='garcon'
621 PACKAGE_VERSION='4.20.0'
622 PACKAGE_STRING='garcon 4.20.0'
623 PACKAGE_BUGREPORT='https://gitlab.xfce.org/xfce/garcon'
624 PACKAGE_URL=''
625
626 # Factoring default headers for most tests.
627 ac_includes_default="\
628 #include <stddef.h>
629 #ifdef HAVE_STDIO_H
630 # include <stdio.h>
631 #endif
632 #ifdef HAVE_STDLIB_H
633 # include <stdlib.h>
634 #endif
635 #ifdef HAVE_STRING_H
636 # include <string.h>
637 #endif
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
640 #endif
641 #ifdef HAVE_STDINT_H
642 # include <stdint.h>
643 #endif
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
646 #endif
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
649 #endif
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
652 #endif
653 #ifdef HAVE_UNISTD_H
654 # include <unistd.h>
655 #endif"
656
657 ac_header_c_list=
658 ac_func_c_list=
659 gt_needs=
660 ac_subst_vars='am__EXEEXT_FALSE
661 am__EXEEXT_TRUE
662 LTLIBOBJS
663 LIBOBJS
664 HAVE_INTROSPECTION_FALSE
665 HAVE_INTROSPECTION_TRUE
666 INTROSPECTION_MAKEFILE
667 INTROSPECTION_LIBS
668 INTROSPECTION_CFLAGS
669 INTROSPECTION_TYPELIBDIR
670 INTROSPECTION_GIRDIR
671 INTROSPECTION_GENERATE
672 INTROSPECTION_COMPILER
673 INTROSPECTION_SCANNER
674 GTK_DOC_USE_REBASE_FALSE
675 GTK_DOC_USE_REBASE_TRUE
676 GTK_DOC_USE_LIBTOOL_FALSE
677 GTK_DOC_USE_LIBTOOL_TRUE
678 GTK_DOC_BUILD_PDF_FALSE
679 GTK_DOC_BUILD_PDF_TRUE
680 GTK_DOC_BUILD_HTML_FALSE
681 GTK_DOC_BUILD_HTML_TRUE
682 ENABLE_GTK_DOC_FALSE
683 ENABLE_GTK_DOC_TRUE
684 HAVE_GTK_DOC_FALSE
685 HAVE_GTK_DOC_TRUE
686 GTKDOC_DEPS_LIBS
687 GTKDOC_DEPS_CFLAGS
688 HTML_DIR
689 GTKDOC_MKPDF
690 GTKDOC_REBASE
691 GTKDOC_CHECK_PATH
692 GTKDOC_CHECK
693 LIBXFCE4UI2_REQUIRED_VERSION
694 LIBXFCE4UI2_LIBS
695 LIBXFCE4UI2_CFLAGS
696 LIBXFCE4UI2_VERSION
697 LIBXFCE4UTIL_REQUIRED_VERSION
698 LIBXFCE4UTIL_LIBS
699 LIBXFCE4UTIL_CFLAGS
700 LIBXFCE4UTIL_VERSION
701 GTK3_REQUIRED_VERSION
702 GTK3_LIBS
703 GTK3_CFLAGS
704 GTK3_VERSION
705 GTHREAD_REQUIRED_VERSION
706 GTHREAD_LIBS
707 GTHREAD_CFLAGS
708 GTHREAD_VERSION
709 GOBJECT_REQUIRED_VERSION
710 GOBJECT_LIBS
711 GOBJECT_CFLAGS
712 GOBJECT_VERSION
713 GIO_REQUIRED_VERSION
714 GIO_LIBS
715 GIO_CFLAGS
716 GIO_VERSION
717 GLIB_REQUIRED_VERSION
718 GLIB_LIBS
719 GLIB_CFLAGS
720 GLIB_VERSION
721 PKG_CONFIG_LIBDIR
722 PKG_CONFIG_PATH
723 PKG_CONFIG
724 POSUB
725 LTLIBINTL
726 LIBINTL
727 INTLLIBS
728 LTLIBICONV
729 LIBICONV
730 INTL_MACOSX_LIBS
731 CPP
732 XGETTEXT_EXTRA_OPTIONS
733 MSGMERGE
734 XGETTEXT_015
735 XGETTEXT
736 GMSGFMT_015
737 MSGFMT_015
738 GMSGFMT
739 MSGFMT
740 GETTEXT_MACRO_VERSION
741 USE_NLS
742 GETTEXT_PACKAGE
743 LT_SYS_LIBRARY_PATH
744 OTOOL64
745 OTOOL
746 LIPO
747 NMEDIT
748 DSYMUTIL
749 MANIFEST_TOOL
750 RANLIB
751 ac_ct_AR
752 AR
753 DLLTOOL
754 OBJDUMP
755 FILECMD
756 LN_S
757 NM
758 ac_ct_DUMPBIN
759 DUMPBIN
760 LD
761 FGREP
762 EGREP
763 GREP
764 SED
765 host_os
766 host_vendor
767 host_cpu
768 host
769 build_os
770 build_vendor
771 build_cpu
772 build
773 LIBTOOL
774 am__fastdepCCAS_FALSE
775 am__fastdepCCAS_TRUE
776 CCASDEPMODE
777 CCASFLAGS
778 CCAS
779 am__fastdepCC_FALSE
780 am__fastdepCC_TRUE
781 CCDEPMODE
782 am__nodep
783 AMDEPBACKSLASH
784 AMDEP_FALSE
785 AMDEP_TRUE
786 am__include
787 DEPDIR
788 OBJEXT
789 EXEEXT
790 ac_ct_CC
791 CPPFLAGS
792 LDFLAGS
793 CFLAGS
794 CC
795 GARCON_VERSION_API
796 GARCON_VERSION_API_MAJOR
797 GARCON_VERSION_MICRO
798 GARCON_VERSION_MINOR
799 GARCON_VERSION_MAJOR
800 GARCON_VERINFO
801 MAINT
802 MAINTAINER_MODE_FALSE
803 MAINTAINER_MODE_TRUE
804 am__xargs_n
805 am__rm_f_notfound
806 AM_BACKSLASH
807 AM_DEFAULT_VERBOSITY
808 AM_DEFAULT_V
809 AM_V
810 CSCOPE
811 ETAGS
812 CTAGS
813 am__untar
814 am__tar
815 AMTAR
816 am__leading_dot
817 SET_MAKE
818 AWK
819 mkdir_p
820 MKDIR_P
821 INSTALL_STRIP_PROGRAM
822 STRIP
823 install_sh
824 MAKEINFO
825 AUTOHEADER
826 AUTOMAKE
827 AUTOCONF
828 ACLOCAL
829 VERSION
830 PACKAGE
831 CYGPATH_W
832 am__isrc
833 INSTALL_DATA
834 INSTALL_SCRIPT
835 INSTALL_PROGRAM
836 target_alias
837 host_alias
838 build_alias
839 LIBS
840 ECHO_T
841 ECHO_N
842 ECHO_C
843 DEFS
844 mandir
845 localedir
846 libdir
847 psdir
848 pdfdir
849 dvidir
850 htmldir
851 infodir
852 docdir
853 oldincludedir
854 includedir
855 runstatedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL
875 am__quote'
876 ac_subst_files=''
877 ac_user_opts='
878 enable_option_checking
879 enable_silent_rules
880 enable_maintainer_mode
881 enable_dependency_tracking
882 enable_static
883 enable_shared
884 enable_pic
885 with_pic
886 enable_fast_install
887 enable_aix_soname
888 with_aix_soname
889 with_gnu_ld
890 with_sysroot
891 enable_libtool_lock
892 enable_nls
893 enable_rpath
894 with_libiconv_prefix
895 with_libintl_prefix
896 with_html_dir
897 enable_gtk_doc
898 enable_gtk_doc_html
899 enable_gtk_doc_pdf
900 enable_introspection
901 enable_debug
902 enable_linker_opts
903 '
904 ac_precious_vars='build_alias
905 host_alias
906 target_alias
907 CC
908 CFLAGS
909 LDFLAGS
910 LIBS
911 CPPFLAGS
912 CCAS
913 CCASFLAGS
914 LT_SYS_LIBRARY_PATH
915 CPP
916 PKG_CONFIG
917 PKG_CONFIG_PATH
918 PKG_CONFIG_LIBDIR
919 GTKDOC_DEPS_CFLAGS
920 GTKDOC_DEPS_LIBS'
921
922
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 ac_unrecognized_opts=
927 ac_unrecognized_sep=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
930 cache_file=/dev/null
931 exec_prefix=NONE
932 no_create=
933 no_recursion=
934 prefix=NONE
935 program_prefix=NONE
936 program_suffix=NONE
937 program_transform_name=s,x,x,
938 silent=
939 site=
940 srcdir=
941 verbose=
942 x_includes=NONE
943 x_libraries=NONE
944
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 runstatedir='${localstatedir}/run'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
971
972 ac_prev=
973 ac_dashdash=
974 for ac_option
975 do
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
979 ac_prev=
980 continue
981 fi
982
983 case $ac_option in
984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 *=) ac_optarg= ;;
986 *) ac_optarg=yes ;;
987 esac
988
989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
992
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 bindir=$ac_optarg ;;
997
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1002
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1009
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1012
1013 -datadir | --datadir | --datadi | --datad)
1014 ac_prev=datadir ;;
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1017
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1024
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: '$ac_useropt'"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=no ;;
1040
1041 -docdir | --docdir | --docdi | --doc | --do)
1042 ac_prev=docdir ;;
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1045
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047 ac_prev=dvidir ;;
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1050
1051 -enable-* | --enable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: '$ac_useropt'"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=\$ac_optarg ;;
1066
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1075
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1078 with_gas=yes ;;
1079
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1086
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1091
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 ac_prev=htmldir ;;
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 | --ht=*)
1096 htmldir=$ac_optarg ;;
1097
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1104
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 ac_prev=infodir ;;
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1109
1110 -libdir | --libdir | --libdi | --libd)
1111 ac_prev=libdir ;;
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1114
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1121
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1126
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1133
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 ac_prev=mandir ;;
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1138
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1141 with_fp=no ;;
1142
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1145 no_create=yes ;;
1146
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 no_recursion=yes ;;
1150
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1159
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 ac_prev=prefix ;;
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1164
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1171
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1178
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1195
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 ac_prev=pdfdir ;;
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1200
1201 -psdir | --psdir | --psdi | --psd | --ps)
1202 ac_prev=psdir ;;
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 psdir=$ac_optarg ;;
1205
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 silent=yes ;;
1209
1210 -runstatedir | --runstatedir | --runstatedi | --runstated \
1211 | --runstate | --runstat | --runsta | --runst | --runs \
1212 | --run | --ru | --r)
1213 ac_prev=runstatedir ;;
1214 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1215 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1216 | --run=* | --ru=* | --r=*)
1217 runstatedir=$ac_optarg ;;
1218
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
1223 sbindir=$ac_optarg ;;
1224
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
1234 sharedstatedir=$ac_optarg ;;
1235
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
1239 site=$ac_optarg ;;
1240
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1245
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1252
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1257
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1260
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1263
1264 -with-* | --with-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: '$ac_useropt'"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=\$ac_optarg ;;
1279
1280 -without-* | --without-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: '$ac_useropt'"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
1295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1313
1314 -*) as_fn_error $? "unrecognized option: '$ac_option'
1315 Try '$0 --help' for more information"
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 case $ac_envvar in #(
1322 '' | [0-9]* | *[!_$as_cr_alnum]* )
1323 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1324 esac
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1327
1328 *)
1329 # FIXME: should be removed in autoconf 3.0.
1330 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1334 ;;
1335
1336 esac
1337 done
1338
1339 if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 as_fn_error $? "missing argument to $ac_option"
1342 fi
1343
1344 if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
1347 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1348 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1349 esac
1350 fi
1351
1352 # Check all directory arguments for consistency.
1353 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356 libdir localedir mandir runstatedir
1357 do
1358 eval ac_val=\$$ac_var
1359 # Remove trailing slashes.
1360 case $ac_val in
1361 */ )
1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\$ac_val;;
1364 esac
1365 # Be sure to have absolute directory names.
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
1370 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1371 done
1372
1373 # There might be people who depend on the old broken behavior: '$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1376 build=$build_alias
1377 host=$host_alias
1378 target=$target_alias
1379
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387 fi
1388
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392 test "$silent" = yes && exec 6>/dev/null
1393
1394
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error $? "working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error $? "pwd does not report name of working directory"
1401
1402
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 printf "%s\n" X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
1430 srcdir=$ac_confdir
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 srcdir=..
1433 fi
1434 else
1435 ac_srcdir_defaulted=no
1436 fi
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1440 fi
1441 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1442 ac_abs_confdir=`(
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1444 pwd)`
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1448 fi
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1452 case $srcdir in
1453 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 esac
1455 for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 done
1461
1462 #
1463 # Report the --help message.
1464 #
1465 if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1468 cat <<_ACEOF
1469 'configure' configures garcon 4.20.0 to adapt to many kinds of systems.
1470
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE. See below for descriptions of some of the useful variables.
1475
1476 Defaults for the options are specified in brackets.
1477
1478 Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print 'checking ...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for '--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or '..']
1488
1489 Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 [PREFIX]
1494
1495 By default, 'make install' will install all the files in
1496 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1497 an installation prefix other than '$ac_default_prefix' using '--prefix',
1498 for instance '--prefix=\$HOME'.
1499
1500 For better control, use the options below.
1501
1502 Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1510 --libdir=DIR object code libraries [EPREFIX/lib]
1511 --includedir=DIR C header files [PREFIX/include]
1512 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515 --infodir=DIR info documentation [DATAROOTDIR/info]
1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517 --mandir=DIR man documentation [DATAROOTDIR/man]
1518 --docdir=DIR documentation root [DATAROOTDIR/doc/garcon]
1519 --htmldir=DIR html documentation [DOCDIR]
1520 --dvidir=DIR dvi documentation [DOCDIR]
1521 --pdfdir=DIR pdf documentation [DOCDIR]
1522 --psdir=DIR ps documentation [DOCDIR]
1523 _ACEOF
1524
1525 cat <<\_ACEOF
1526
1527 Program names:
1528 --program-prefix=PREFIX prepend PREFIX to installed program names
1529 --program-suffix=SUFFIX append SUFFIX to installed program names
1530 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1531
1532 System types:
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 _ACEOF
1536 fi
1537
1538 if test -n "$ac_init_help"; then
1539 case $ac_init_help in
1540 short | recursive ) echo "Configuration of garcon 4.20.0:";;
1541 esac
1542 cat <<\_ACEOF
1543
1544 Optional Features:
1545 --disable-option-checking ignore unrecognized --enable/--with options
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --enable-silent-rules less verbose build output (undo: "make V=1")
1549 --disable-silent-rules verbose build output (undo: "make V=0")
1550 --enable-maintainer-mode
1551 enable make rules and dependencies not useful (and
1552 sometimes confusing) to the casual installer
1553 --enable-dependency-tracking
1554 do not reject slow dependency extractors
1555 --disable-dependency-tracking
1556 speeds up one-time build
1557 --enable-static[=PKGS] build static libraries [default=no]
1558 --enable-shared[=PKGS] build shared libraries [default=yes]
1559 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1560 both]
1561 --enable-fast-install[=PKGS]
1562 optimize for fast installation [default=yes]
1563 --enable-aix-soname=aix|svr4|both
1564 shared library versioning (aka "SONAME") variant to
1565 provide on AIX, [default=aix].
1566 --disable-libtool-lock avoid locking (might break parallel builds)
1567 --disable-nls do not use Native Language Support
1568 --disable-rpath do not hardcode runtime library paths
1569 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1570 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1571 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1572 --enable-introspection=[no/auto/yes]
1573 Enable introspection for this build
1574 --enable-debug[=no|minimum|yes|full|werror]
1575 Build with debugging support
1576 [default=[minimum]]
1577 --disable-debug Include no debugging support
1578 --disable-linker-opts Disable linker optimizations
1579
1580 Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1584 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1585 compiler's sysroot if not specified).
1586 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1587 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1588 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1589 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1590 --without-libintl-prefix don't search for libintl in includedir and libdir
1591 --with-html-dir=PATH path to installed docs
1592
1593 Some influential environment variables:
1594 CC C compiler command
1595 CFLAGS C compiler flags
1596 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1597 nonstandard directory <lib dir>
1598 LIBS libraries to pass to the linker, e.g. -l<library>
1599 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1600 you have headers in a nonstandard directory <include dir>
1601 CCAS assembler compiler command (defaults to CC)
1602 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1603 LT_SYS_LIBRARY_PATH
1604 User-defined run-time library search path.
1605 CPP C preprocessor
1606 PKG_CONFIG path to pkg-config utility
1607 PKG_CONFIG_PATH
1608 directories to add to pkg-config's search path
1609 PKG_CONFIG_LIBDIR
1610 path overriding pkg-config's built-in search path
1611 GTKDOC_DEPS_CFLAGS
1612 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1613 GTKDOC_DEPS_LIBS
1614 linker flags for GTKDOC_DEPS, overriding pkg-config
1615
1616 Use these variables to override the choices made by 'configure' or to help
1617 it to find libraries and programs with nonstandard names/locations.
1618
1619 Report bugs to <https://gitlab.xfce.org/xfce/garcon>.
1620 _ACEOF
1621 ac_status=$?
1622 fi
1623
1624 if test "$ac_init_help" = "recursive"; then
1625 # If there are subdirs, report their specific --help.
1626 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1627 test -d "$ac_dir" ||
1628 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1629 continue
1630 ac_builddir=.
1631
1632 case "$ac_dir" in
1633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 *)
1635 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641 esac ;;
1642 esac
1643 ac_abs_top_builddir=$ac_pwd
1644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645 # for backward compatibility:
1646 ac_top_builddir=$ac_top_build_prefix
1647
1648 case $srcdir in
1649 .) # We are building in place.
1650 ac_srcdir=.
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
1654 ac_srcdir=$srcdir$ac_dir_suffix;
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1657 *) # Relative name.
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 esac
1662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for configure.gnu first; this name is used for a wrapper for
1666 # Metaconfig's "Configure" on case-insensitive file systems.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1673 else
1674 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1677 done
1678 fi
1679
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1682 cat <<\_ACEOF
1683 garcon configure 4.20.0
1684 generated by GNU Autoconf 2.72
1685
1686 Copyright (C) 2023 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1689
1690 Copyright (c) 2007-2024 The Xfce development team. All rights reserved.
1691 Written for Xfce by Jannis Pohlmann <[email protected]>.
1692 _ACEOF
1693 exit
1694 fi
1695
1696 ## ------------------------ ##
1697 ## Autoconf initialization. ##
1698 ## ------------------------ ##
1699
1700 # ac_fn_c_try_compile LINENO
1701 # --------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext conftest.beam
1707 if { { ac_try="$ac_compile"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 printf "%s\n" "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext
1726 then :
1727 ac_retval=0
1728 else case e in #(
1729 e) printf "%s\n" "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1 ;;
1733 esac
1734 fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_compile
1739
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 printf "%s\n" "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 test -x conftest$ac_exeext
1768 }
1769 then :
1770 ac_retval=0
1771 else case e in #(
1772 e) printf "%s\n" "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1 ;;
1776 esac
1777 fi
1778 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1779 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1780 # interfere with the next link command; also delete a directory that is
1781 # left behind by Apple's compiler. We do this before executing the actions.
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_link
1787
1788 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists and can be compiled using the include files in
1791 # INCLUDES, setting the cache variable VAR accordingly.
1792 ac_fn_c_check_header_compile ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 printf %s "checking for $2... " >&6; }
1797 if eval test \${$3+y}
1798 then :
1799 printf %s "(cached) " >&6
1800 else case e in #(
1801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 $4
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"
1807 then :
1808 eval "$3=yes"
1809 else case e in #(
1810 e) eval "$3=no" ;;
1811 esac
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1814 esac
1815 fi
1816 eval ac_res=\$$3
1817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 printf "%s\n" "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821 } # ac_fn_c_check_header_compile
1822
1823 # ac_fn_c_check_func LINENO FUNC VAR
1824 # ----------------------------------
1825 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1826 ac_fn_c_check_func ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 printf %s "checking for $2... " >&6; }
1831 if eval test \${$3+y}
1832 then :
1833 printf %s "(cached) " >&6
1834 else case e in #(
1835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1839 #define $2 innocuous_$2
1840
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char $2 (void); below. */
1843
1844 #include <limits.h>
1845 #undef $2
1846
1847 /* Override any GCC internal prototype to avoid an error.
1848 Use char because int might match the return type of a GCC
1849 builtin and then its argument prototype would still apply. */
1850 #ifdef __cplusplus
1851 extern "C"
1852 #endif
1853 char $2 (void);
1854 /* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857 #if defined __stub_$2 || defined __stub___$2
1858 choke me
1859 #endif
1860
1861 int
1862 main (void)
1863 {
1864 return $2 ();
1865 ;
1866 return 0;
1867 }
1868 _ACEOF
1869 if ac_fn_c_try_link "$LINENO"
1870 then :
1871 eval "$3=yes"
1872 else case e in #(
1873 e) eval "$3=no" ;;
1874 esac
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1877 conftest$ac_exeext conftest.$ac_ext ;;
1878 esac
1879 fi
1880 eval ac_res=\$$3
1881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 printf "%s\n" "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_func
1886
1887 # ac_fn_c_try_run LINENO
1888 # ----------------------
1889 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1890 # executables *can* be run.
1891 ac_fn_c_try_run ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 printf "%s\n" "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>&5
1902 ac_status=$?
1903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1905 { { case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 printf "%s\n" "$ac_try_echo"; } >&5
1911 (eval "$ac_try") 2>&5
1912 ac_status=$?
1913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; }; }
1915 then :
1916 ac_retval=0
1917 else case e in #(
1918 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1919 printf "%s\n" "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 ac_retval=$ac_status ;;
1923 esac
1924 fi
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929 } # ac_fn_c_try_run
1930
1931 # ac_fn_c_try_cpp LINENO
1932 # ----------------------
1933 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_c_try_cpp ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_cpp conftest.$ac_ext"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 printf "%s\n" "$ac_try_echo"; } >&5
1944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1950 fi
1951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } > conftest.i && {
1953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1955 }
1956 then :
1957 ac_retval=0
1958 else case e in #(
1959 e) printf "%s\n" "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962 ac_retval=1 ;;
1963 esac
1964 fi
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1967
1968 } # ac_fn_c_try_cpp
1969 ac_configure_args_raw=
1970 for ac_arg
1971 do
1972 case $ac_arg in
1973 *\'*)
1974 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1975 esac
1976 as_fn_append ac_configure_args_raw " '$ac_arg'"
1977 done
1978
1979 case $ac_configure_args_raw in
1980 *$as_nl*)
1981 ac_safe_unquote= ;;
1982 *)
1983 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1984 ac_unsafe_a="$ac_unsafe_z#~"
1985 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1986 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1987 esac
1988
1989 cat >config.log <<_ACEOF
1990 This file contains any messages produced by compilers while
1991 running configure, to aid debugging if configure makes a mistake.
1992
1993 It was created by garcon $as_me 4.20.0, which was
1994 generated by GNU Autoconf 2.72. Invocation command line was
1995
1996 $ $0$ac_configure_args_raw
1997
1998 _ACEOF
1999 exec 5>>config.log
2000 {
2001 cat <<_ASUNAME
2002 ## --------- ##
2003 ## Platform. ##
2004 ## --------- ##
2005
2006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2011
2012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2014
2015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2018 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2022
2023 _ASUNAME
2024
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028 IFS=$as_save_IFS
2029 case $as_dir in #(((
2030 '') as_dir=./ ;;
2031 */) ;;
2032 *) as_dir=$as_dir/ ;;
2033 esac
2034 printf "%s\n" "PATH: $as_dir"
2035 done
2036 IFS=$as_save_IFS
2037
2038 } >&5
2039
2040 cat >&5 <<_ACEOF
2041
2042
2043 ## ----------- ##
2044 ## Core tests. ##
2045 ## ----------- ##
2046
2047 _ACEOF
2048
2049
2050 # Keep a trace of the command line.
2051 # Strip out --no-create and --no-recursion so they do not pile up.
2052 # Strip out --silent because we don't want to record it for future runs.
2053 # Also quote any args containing shell meta-characters.
2054 # Make two passes to allow for proper duplicate-argument suppression.
2055 ac_configure_args=
2056 ac_configure_args0=
2057 ac_configure_args1=
2058 ac_must_keep_next=false
2059 for ac_pass in 1 2
2060 do
2061 for ac_arg
2062 do
2063 case $ac_arg in
2064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2066 | -silent | --silent | --silen | --sile | --sil)
2067 continue ;;
2068 *\'*)
2069 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2070 esac
2071 case $ac_pass in
2072 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2073 2)
2074 as_fn_append ac_configure_args1 " '$ac_arg'"
2075 if test $ac_must_keep_next = true; then
2076 ac_must_keep_next=false # Got value, back to normal.
2077 else
2078 case $ac_arg in
2079 *=* | --config-cache | -C | -disable-* | --disable-* \
2080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2082 | -with-* | --with-* | -without-* | --without-* | --x)
2083 case "$ac_configure_args0 " in
2084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2085 esac
2086 ;;
2087 -* ) ac_must_keep_next=true ;;
2088 esac
2089 fi
2090 as_fn_append ac_configure_args " '$ac_arg'"
2091 ;;
2092 esac
2093 done
2094 done
2095 { ac_configure_args0=; unset ac_configure_args0;}
2096 { ac_configure_args1=; unset ac_configure_args1;}
2097
2098 # When interrupted or exit'd, cleanup temporary files, and complete
2099 # config.log. We remove comments because anyway the quotes in there
2100 # would cause problems or look ugly.
2101 # WARNING: Use '\'' to represent an apostrophe within the trap.
2102 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2103 trap 'exit_status=$?
2104 # Sanitize IFS.
2105 IFS=" "" $as_nl"
2106 # Save into config.log some information that might help in debugging.
2107 {
2108 echo
2109
2110 printf "%s\n" "## ---------------- ##
2111 ## Cache variables. ##
2112 ## ---------------- ##"
2113 echo
2114 # The following way of writing the cache mishandles newlines in values,
2115 (
2116 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2117 eval ac_val=\$$ac_var
2118 case $ac_val in #(
2119 *${as_nl}*)
2120 case $ac_var in #(
2121 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2122 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2123 esac
2124 case $ac_var in #(
2125 _ | IFS | as_nl) ;; #(
2126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2127 *) { eval $ac_var=; unset $ac_var;} ;;
2128 esac ;;
2129 esac
2130 done
2131 (set) 2>&1 |
2132 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2133 *${as_nl}ac_space=\ *)
2134 sed -n \
2135 "s/'\''/'\''\\\\'\'''\''/g;
2136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2137 ;; #(
2138 *)
2139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2140 ;;
2141 esac |
2142 sort
2143 )
2144 echo
2145
2146 printf "%s\n" "## ----------------- ##
2147 ## Output variables. ##
2148 ## ----------------- ##"
2149 echo
2150 for ac_var in $ac_subst_vars
2151 do
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 printf "%s\n" "$ac_var='\''$ac_val'\''"
2157 done | sort
2158 echo
2159
2160 if test -n "$ac_subst_files"; then
2161 printf "%s\n" "## ------------------- ##
2162 ## File substitutions. ##
2163 ## ------------------- ##"
2164 echo
2165 for ac_var in $ac_subst_files
2166 do
2167 eval ac_val=\$$ac_var
2168 case $ac_val in
2169 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170 esac
2171 printf "%s\n" "$ac_var='\''$ac_val'\''"
2172 done | sort
2173 echo
2174 fi
2175
2176 if test -s confdefs.h; then
2177 printf "%s\n" "## ----------- ##
2178 ## confdefs.h. ##
2179 ## ----------- ##"
2180 echo
2181 cat confdefs.h
2182 echo
2183 fi
2184 test "$ac_signal" != 0 &&
2185 printf "%s\n" "$as_me: caught signal $ac_signal"
2186 printf "%s\n" "$as_me: exit $exit_status"
2187 } >&5
2188 rm -f core *.core core.conftest.* &&
2189 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2190 exit $exit_status
2191 ' 0
2192 for ac_signal in 1 2 13 15; do
2193 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2194 done
2195 ac_signal=0
2196
2197 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2198 rm -f -r conftest* confdefs.h
2199
2200 printf "%s\n" "/* confdefs.h */" > confdefs.h
2201
2202 # Predefined preprocessor variables.
2203
2204 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2205
2206 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2207
2208 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2209
2210 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2211
2212 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2213
2214 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2215
2216
2217 # Let the site file select an alternate cache file if it wants to.
2218 # Prefer an explicitly selected file to automatically selected ones.
2219 if test -n "$CONFIG_SITE"; then
2220 ac_site_files="$CONFIG_SITE"
2221 elif test "x$prefix" != xNONE; then
2222 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2223 else
2224 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2225 fi
2226
2227 for ac_site_file in $ac_site_files
2228 do
2229 case $ac_site_file in #(
2230 */*) :
2231 ;; #(
2232 *) :
2233 ac_site_file=./$ac_site_file ;;
2234 esac
2235 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2238 sed 's/^/| /' "$ac_site_file" >&5
2239 . "$ac_site_file" \
2240 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2241 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2242 as_fn_error $? "failed to load site script $ac_site_file
2243 See 'config.log' for more details" "$LINENO" 5; }
2244 fi
2245 done
2246
2247 if test -r "$cache_file"; then
2248 # Some versions of bash will fail to source /dev/null (special files
2249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2253 case $cache_file in
2254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255 *) . "./$cache_file";;
2256 esac
2257 fi
2258 else
2259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2261 >$cache_file
2262 fi
2263
2264 # Test code for whether the C compiler supports C89 (global declarations)
2265 ac_c_conftest_c89_globals='
2266 /* Does the compiler advertise C89 conformance?
2267 Do not test the value of __STDC__, because some compilers set it to 0
2268 while being otherwise adequately conformant. */
2269 #if !defined __STDC__
2270 # error "Compiler does not advertise C89 conformance"
2271 #endif
2272
2273 #include <stddef.h>
2274 #include <stdarg.h>
2275 struct stat;
2276 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2277 struct buf { int x; };
2278 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2279 static char *e (char **p, int i)
2280 {
2281 return p[i];
2282 }
2283 static char *f (char * (*g) (char **, int), char **p, ...)
2284 {
2285 char *s;
2286 va_list v;
2287 va_start (v,p);
2288 s = g (p, va_arg (v,int));
2289 va_end (v);
2290 return s;
2291 }
2292
2293 /* C89 style stringification. */
2294 #define noexpand_stringify(a) #a
2295 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2296
2297 /* C89 style token pasting. Exercises some of the corner cases that
2298 e.g. old MSVC gets wrong, but not very hard. */
2299 #define noexpand_concat(a,b) a##b
2300 #define expand_concat(a,b) noexpand_concat(a,b)
2301 extern int vA;
2302 extern int vbee;
2303 #define aye A
2304 #define bee B
2305 int *pvA = &expand_concat(v,aye);
2306 int *pvbee = &noexpand_concat(v,bee);
2307
2308 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2309 function prototypes and stuff, but not \xHH hex character constants.
2310 These do not provoke an error unfortunately, instead are silently treated
2311 as an "x". The following induces an error, until -std is added to get
2312 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2313 array size at least. It is necessary to write \x00 == 0 to get something
2314 that is true only with -std. */
2315 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2316
2317 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2318 inside strings and character constants. */
2319 #define FOO(x) '\''x'\''
2320 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2321
2322 int test (int i, double x);
2323 struct s1 {int (*f) (int a);};
2324 struct s2 {int (*f) (double a);};
2325 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2326 int, int);'
2327
2328 # Test code for whether the C compiler supports C89 (body of main).
2329 ac_c_conftest_c89_main='
2330 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2331 '
2332
2333 # Test code for whether the C compiler supports C99 (global declarations)
2334 ac_c_conftest_c99_globals='
2335 /* Does the compiler advertise C99 conformance? */
2336 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2337 # error "Compiler does not advertise C99 conformance"
2338 #endif
2339
2340 // See if C++-style comments work.
2341
2342 #include <stdbool.h>
2343 extern int puts (const char *);
2344 extern int printf (const char *, ...);
2345 extern int dprintf (int, const char *, ...);
2346 extern void *malloc (size_t);
2347 extern void free (void *);
2348
2349 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2350 // dprintf is used instead of fprintf to avoid needing to declare
2351 // FILE and stderr.
2352 #define debug(...) dprintf (2, __VA_ARGS__)
2353 #define showlist(...) puts (#__VA_ARGS__)
2354 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2355 static void
2356 test_varargs_macros (void)
2357 {
2358 int x = 1234;
2359 int y = 5678;
2360 debug ("Flag");
2361 debug ("X = %d\n", x);
2362 showlist (The first, second, and third items.);
2363 report (x>y, "x is %d but y is %d", x, y);
2364 }
2365
2366 // Check long long types.
2367 #define BIG64 18446744073709551615ull
2368 #define BIG32 4294967295ul
2369 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2370 #if !BIG_OK
2371 #error "your preprocessor is broken"
2372 #endif
2373 #if BIG_OK
2374 #else
2375 #error "your preprocessor is broken"
2376 #endif
2377 static long long int bignum = -9223372036854775807LL;
2378 static unsigned long long int ubignum = BIG64;
2379
2380 struct incomplete_array
2381 {
2382 int datasize;
2383 double data[];
2384 };
2385
2386 struct named_init {
2387 int number;
2388 const wchar_t *name;
2389 double average;
2390 };
2391
2392 typedef const char *ccp;
2393
2394 static inline int
2395 test_restrict (ccp restrict text)
2396 {
2397 // Iterate through items via the restricted pointer.
2398 // Also check for declarations in for loops.
2399 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2400 continue;
2401 return 0;
2402 }
2403
2404 // Check varargs and va_copy.
2405 static bool
2406 test_varargs (const char *format, ...)
2407 {
2408 va_list args;
2409 va_start (args, format);
2410 va_list args_copy;
2411 va_copy (args_copy, args);
2412
2413 const char *str = "";
2414 int number = 0;
2415 float fnumber = 0;
2416
2417 while (*format)
2418 {
2419 switch (*format++)
2420 {
2421 case '\''s'\'': // string
2422 str = va_arg (args_copy, const char *);
2423 break;
2424 case '\''d'\'': // int
2425 number = va_arg (args_copy, int);
2426 break;
2427 case '\''f'\'': // float
2428 fnumber = va_arg (args_copy, double);
2429 break;
2430 default:
2431 break;
2432 }
2433 }
2434 va_end (args_copy);
2435 va_end (args);
2436
2437 return *str && number && fnumber;
2438 }
2439 '
2440
2441 # Test code for whether the C compiler supports C99 (body of main).
2442 ac_c_conftest_c99_main='
2443 // Check bool.
2444 _Bool success = false;
2445 success |= (argc != 0);
2446
2447 // Check restrict.
2448 if (test_restrict ("String literal") == 0)
2449 success = true;
2450 char *restrict newvar = "Another string";
2451
2452 // Check varargs.
2453 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2454 test_varargs_macros ();
2455
2456 // Check flexible array members.
2457 struct incomplete_array *ia =
2458 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2459 ia->datasize = 10;
2460 for (int i = 0; i < ia->datasize; ++i)
2461 ia->data[i] = i * 1.234;
2462 // Work around memory leak warnings.
2463 free (ia);
2464
2465 // Check named initializers.
2466 struct named_init ni = {
2467 .number = 34,
2468 .name = L"Test wide string",
2469 .average = 543.34343,
2470 };
2471
2472 ni.number = 58;
2473
2474 int dynamic_array[ni.number];
2475 dynamic_array[0] = argv[0][0];
2476 dynamic_array[ni.number - 1] = 543;
2477
2478 // work around unused variable warnings
2479 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2480 || dynamic_array[ni.number - 1] != 543);
2481 '
2482
2483 # Test code for whether the C compiler supports C11 (global declarations)
2484 ac_c_conftest_c11_globals='
2485 /* Does the compiler advertise C11 conformance? */
2486 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2487 # error "Compiler does not advertise C11 conformance"
2488 #endif
2489
2490 // Check _Alignas.
2491 char _Alignas (double) aligned_as_double;
2492 char _Alignas (0) no_special_alignment;
2493 extern char aligned_as_int;
2494 char _Alignas (0) _Alignas (int) aligned_as_int;
2495
2496 // Check _Alignof.
2497 enum
2498 {
2499 int_alignment = _Alignof (int),
2500 int_array_alignment = _Alignof (int[100]),
2501 char_alignment = _Alignof (char)
2502 };
2503 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2504
2505 // Check _Noreturn.
2506 int _Noreturn does_not_return (void) { for (;;) continue; }
2507
2508 // Check _Static_assert.
2509 struct test_static_assert
2510 {
2511 int x;
2512 _Static_assert (sizeof (int) <= sizeof (long int),
2513 "_Static_assert does not work in struct");
2514 long int y;
2515 };
2516
2517 // Check UTF-8 literals.
2518 #define u8 syntax error!
2519 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2520
2521 // Check duplicate typedefs.
2522 typedef long *long_ptr;
2523 typedef long int *long_ptr;
2524 typedef long_ptr long_ptr;
2525
2526 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2527 struct anonymous
2528 {
2529 union {
2530 struct { int i; int j; };
2531 struct { int k; long int l; } w;
2532 };
2533 int m;
2534 } v1;
2535 '
2536
2537 # Test code for whether the C compiler supports C11 (body of main).
2538 ac_c_conftest_c11_main='
2539 _Static_assert ((offsetof (struct anonymous, i)
2540 == offsetof (struct anonymous, w.k)),
2541 "Anonymous union alignment botch");
2542 v1.i = 2;
2543 v1.w.k = 5;
2544 ok |= v1.i != 5;
2545 '
2546
2547 # Test code for whether the C compiler supports C11 (complete).
2548 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2549 ${ac_c_conftest_c99_globals}
2550 ${ac_c_conftest_c11_globals}
2551
2552 int
2553 main (int argc, char **argv)
2554 {
2555 int ok = 0;
2556 ${ac_c_conftest_c89_main}
2557 ${ac_c_conftest_c99_main}
2558 ${ac_c_conftest_c11_main}
2559 return ok;
2560 }
2561 "
2562
2563 # Test code for whether the C compiler supports C99 (complete).
2564 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2565 ${ac_c_conftest_c99_globals}
2566
2567 int
2568 main (int argc, char **argv)
2569 {
2570 int ok = 0;
2571 ${ac_c_conftest_c89_main}
2572 ${ac_c_conftest_c99_main}
2573 return ok;
2574 }
2575 "
2576
2577 # Test code for whether the C compiler supports C89 (complete).
2578 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2579
2580 int
2581 main (int argc, char **argv)
2582 {
2583 int ok = 0;
2584 ${ac_c_conftest_c89_main}
2585 return ok;
2586 }
2587 "
2588
2589 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2590 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2591 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2592 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2593 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2594 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2595 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2596 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2597 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2598 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2599 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2600 gt_needs="$gt_needs "
2601
2602 # Auxiliary files required by this configure script.
2603 ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile missing install-sh"
2604
2605 # Locations in which to look for auxiliary files.
2606 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2607
2608 # Search for a directory containing all of the required auxiliary files,
2609 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2610 # If we don't find one directory that contains all the files we need,
2611 # we report the set of missing files from the *first* directory in
2612 # $ac_aux_dir_candidates and give up.
2613 ac_missing_aux_files=""
2614 ac_first_candidate=:
2615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 as_found=false
2618 for as_dir in $ac_aux_dir_candidates
2619 do
2620 IFS=$as_save_IFS
2621 case $as_dir in #(((
2622 '') as_dir=./ ;;
2623 */) ;;
2624 *) as_dir=$as_dir/ ;;
2625 esac
2626 as_found=:
2627
2628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2629 ac_aux_dir_found=yes
2630 ac_install_sh=
2631 for ac_aux in $ac_aux_files
2632 do
2633 # As a special case, if "install-sh" is required, that requirement
2634 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2635 # and $ac_install_sh is set appropriately for whichever one is found.
2636 if test x"$ac_aux" = x"install-sh"
2637 then
2638 if test -f "${as_dir}install-sh"; then
2639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2640 ac_install_sh="${as_dir}install-sh -c"
2641 elif test -f "${as_dir}install.sh"; then
2642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2643 ac_install_sh="${as_dir}install.sh -c"
2644 elif test -f "${as_dir}shtool"; then
2645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2646 ac_install_sh="${as_dir}shtool install -c"
2647 else
2648 ac_aux_dir_found=no
2649 if $ac_first_candidate; then
2650 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2651 else
2652 break
2653 fi
2654 fi
2655 else
2656 if test -f "${as_dir}${ac_aux}"; then
2657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2658 else
2659 ac_aux_dir_found=no
2660 if $ac_first_candidate; then
2661 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2662 else
2663 break
2664 fi
2665 fi
2666 fi
2667 done
2668 if test "$ac_aux_dir_found" = yes; then
2669 ac_aux_dir="$as_dir"
2670 break
2671 fi
2672 ac_first_candidate=false
2673
2674 as_found=false
2675 done
2676 IFS=$as_save_IFS
2677 if $as_found
2678 then :
2679
2680 else case e in #(
2681 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2682 esac
2683 fi
2684
2685
2686 # These three variables are undocumented and unsupported,
2687 # and are intended to be withdrawn in a future Autoconf release.
2688 # They can cause serious problems if a builder's source tree is in a directory
2689 # whose full name contains unusual characters.
2690 if test -f "${ac_aux_dir}config.guess"; then
2691 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2692 fi
2693 if test -f "${ac_aux_dir}config.sub"; then
2694 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2695 fi
2696 if test -f "$ac_aux_dir/configure"; then
2697 ac_configure="$SHELL ${ac_aux_dir}configure"
2698 fi
2699
2700 # Check that the precious variables saved in the cache have kept the same
2701 # value.
2702 ac_cache_corrupted=false
2703 for ac_var in $ac_precious_vars; do
2704 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2705 eval ac_new_set=\$ac_env_${ac_var}_set
2706 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2707 eval ac_new_val=\$ac_env_${ac_var}_value
2708 case $ac_old_set,$ac_new_set in
2709 set,)
2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2711 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2712 ac_cache_corrupted=: ;;
2713 ,set)
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2715 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2716 ac_cache_corrupted=: ;;
2717 ,);;
2718 *)
2719 if test "x$ac_old_val" != "x$ac_new_val"; then
2720 # differences in whitespace do not lead to failure.
2721 ac_old_val_w=`echo x $ac_old_val`
2722 ac_new_val_w=`echo x $ac_new_val`
2723 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2725 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2726 ac_cache_corrupted=:
2727 else
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2729 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2730 eval $ac_var=\$ac_old_val
2731 fi
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2733 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2735 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2736 fi;;
2737 esac
2738 # Pass precious variables to config.status.
2739 if test "$ac_new_set" = set; then
2740 case $ac_new_val in
2741 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2742 *) ac_arg=$ac_var=$ac_new_val ;;
2743 esac
2744 case " $ac_configure_args " in
2745 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2746 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2747 esac
2748 fi
2749 done
2750 if $ac_cache_corrupted; then
2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2752 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2754 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2755 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2756 and start over" "$LINENO" 5
2757 fi
2758 ## -------------------- ##
2759 ## Main body of script. ##
2760 ## -------------------- ##
2761
2762 ac_ext=c
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767
2768
2769
2770
2771
2772
2773 am__api_version='1.17'
2774
2775
2776
2777 # Find a good install program. We prefer a C program (faster),
2778 # so one script is as good as another. But avoid the broken or
2779 # incompatible versions:
2780 # SysV /etc/install, /usr/sbin/install
2781 # SunOS /usr/etc/install
2782 # IRIX /sbin/install
2783 # AIX /bin/install
2784 # AmigaOS /C/install, which installs bootblocks on floppy discs
2785 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2786 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2787 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2788 # OS/2's system install, which has a completely different semantic
2789 # ./install, which can be erroneously created by make from ./install.sh.
2790 # Reject install programs that cannot install multiple files.
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2792 printf %s "checking for a BSD-compatible install... " >&6; }
2793 if test -z "$INSTALL"; then
2794 if test ${ac_cv_path_install+y}
2795 then :
2796 printf %s "(cached) " >&6
2797 else case e in #(
2798 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 case $as_dir in #(((
2803 '') as_dir=./ ;;
2804 */) ;;
2805 *) as_dir=$as_dir/ ;;
2806 esac
2807 # Account for fact that we put trailing slashes in our PATH walk.
2808 case $as_dir in #((
2809 ./ | /[cC]/* | \
2810 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2811 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2812 /usr/ucb/* ) ;;
2813 *)
2814 # OSF1 and SCO ODT 3.0 have their own names for install.
2815 # Don't use installbsd from OSF since it installs stuff as root
2816 # by default.
2817 for ac_prog in ginstall scoinst install; do
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2820 if test $ac_prog = install &&
2821 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2822 # AIX install. It has an incompatible calling convention.
2823 :
2824 elif test $ac_prog = install &&
2825 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2826 # program-specific install script used by HP pwplus--don't use.
2827 :
2828 else
2829 rm -rf conftest.one conftest.two conftest.dir
2830 echo one > conftest.one
2831 echo two > conftest.two
2832 mkdir conftest.dir
2833 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2834 test -s conftest.one && test -s conftest.two &&
2835 test -s conftest.dir/conftest.one &&
2836 test -s conftest.dir/conftest.two
2837 then
2838 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2839 break 3
2840 fi
2841 fi
2842 fi
2843 done
2844 done
2845 ;;
2846 esac
2847
2848 done
2849 IFS=$as_save_IFS
2850
2851 rm -rf conftest.one conftest.two conftest.dir
2852 ;;
2853 esac
2854 fi
2855 if test ${ac_cv_path_install+y}; then
2856 INSTALL=$ac_cv_path_install
2857 else
2858 # As a last resort, use the slow shell script. Don't cache a
2859 # value for INSTALL within a source directory, because that will
2860 # break other packages using the cache if that directory is
2861 # removed, or if the value is a relative name.
2862 INSTALL=$ac_install_sh
2863 fi
2864 fi
2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2866 printf "%s\n" "$INSTALL" >&6; }
2867
2868 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2869 # It thinks the first close brace ends the variable substitution.
2870 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2871
2872 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2873
2874 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2875
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2877 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2878 if test ${am_cv_sleep_fractional_seconds+y}
2879 then :
2880 printf %s "(cached) " >&6
2881 else case e in #(
2882 e) if sleep 0.001 2>/dev/null
2883 then :
2884 am_cv_sleep_fractional_seconds=yes
2885 else case e in #(
2886 e) am_cv_sleep_fractional_seconds=no ;;
2887 esac
2888 fi
2889 ;;
2890 esac
2891 fi
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2893 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2894
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2896 printf %s "checking filesystem timestamp resolution... " >&6; }
2897 if test ${am_cv_filesystem_timestamp_resolution+y}
2898 then :
2899 printf %s "(cached) " >&6
2900 else case e in #(
2901 e) # Default to the worst case.
2902 am_cv_filesystem_timestamp_resolution=2
2903
2904 # Only try to go finer than 1 sec if sleep can do it.
2905 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2906 # - 1 sec is not much of a win compared to 2 sec, and
2907 # - it takes 2 seconds to perform the test whether 1 sec works.
2908 #
2909 # Instead, just use the default 2s on platforms that have 1s resolution,
2910 # accept the extra 1s delay when using $sleep in the Automake tests, in
2911 # exchange for not incurring the 2s delay for running the test for all
2912 # packages.
2913 #
2914 am_try_resolutions=
2915 if test "$am_cv_sleep_fractional_seconds" = yes; then
2916 # Even a millisecond often causes a bunch of false positives,
2917 # so just try a hundredth of a second. The time saved between .001 and
2918 # .01 is not terribly consequential.
2919 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2920 fi
2921
2922 # In order to catch current-generation FAT out, we must *modify* files
2923 # that already exist; the *creation* timestamp is finer. Use names
2924 # that make ls -t sort them differently when they have equal
2925 # timestamps than when they have distinct timestamps, keeping
2926 # in mind that ls -t prints the *newest* file first.
2927 rm -f conftest.ts?
2928 : > conftest.ts1
2929 : > conftest.ts2
2930 : > conftest.ts3
2931
2932 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2933 # clobber the current shell's arguments. (Outer-level square brackets
2934 # are removed by m4; they're present so that m4 does not expand
2935 # <dollar><star>; be careful, easy to get confused.)
2936 if (
2937 set X `ls -t conftest.ts[12]` &&
2938 {
2939 test "$*" != "X conftest.ts1 conftest.ts2" ||
2940 test "$*" != "X conftest.ts2 conftest.ts1";
2941 }
2942 ); then :; else
2943 # If neither matched, then we have a broken ls. This can happen
2944 # if, for instance, CONFIG_SHELL is bash and it inherits a
2945 # broken ls alias from the environment. This has actually
2946 # happened. Such a system could not be considered "sane".
2947 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2948 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2949 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2950 as_fn_error $? "ls -t produces unexpected output.
2951 Make sure there is not a broken ls alias in your environment.
2952 See 'config.log' for more details" "$LINENO" 5; }
2953 fi
2954
2955 for am_try_res in $am_try_resolutions; do
2956 # Any one fine-grained sleep might happen to cross the boundary
2957 # between two values of a coarser actual resolution, but if we do
2958 # two fine-grained sleeps in a row, at least one of them will fall
2959 # entirely within a coarse interval.
2960 echo alpha > conftest.ts1
2961 sleep $am_try_res
2962 echo beta > conftest.ts2
2963 sleep $am_try_res
2964 echo gamma > conftest.ts3
2965
2966 # We assume that 'ls -t' will make use of high-resolution
2967 # timestamps if the operating system supports them at all.
2968 if (set X `ls -t conftest.ts?` &&
2969 test "$2" = conftest.ts3 &&
2970 test "$3" = conftest.ts2 &&
2971 test "$4" = conftest.ts1); then
2972 #
2973 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2974 # because we don't need to test make.
2975 make_ok=true
2976 if test $am_try_res != 1; then
2977 # But if we've succeeded so far with a subsecond resolution, we
2978 # have one more thing to check: make. It can happen that
2979 # everything else supports the subsecond mtimes, but make doesn't;
2980 # notably on macOS, which ships make 3.81 from 2006 (the last one
2981 # released under GPLv2). https://bugs.gnu.org/68808
2982 #
2983 # We test $MAKE if it is defined in the environment, else "make".
2984 # It might get overridden later, but our hope is that in practice
2985 # it does not matter: it is the system "make" which is (by far)
2986 # the most likely to be broken, whereas if the user overrides it,
2987 # probably they did so with a better, or at least not worse, make.
2988 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2989 #
2990 # Create a Makefile (real tab character here):
2991 rm -f conftest.mk
2992 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2993 echo ' touch conftest.ts2' >>conftest.mk
2994 #
2995 # Now, running
2996 # touch conftest.ts1; touch conftest.ts2; make
2997 # should touch ts1 because ts2 is newer. This could happen by luck,
2998 # but most often, it will fail if make's support is insufficient. So
2999 # test for several consecutive successes.
3000 #
3001 # (We reuse conftest.ts[12] because we still want to modify existing
3002 # files, not create new ones, per above.)
3003 n=0
3004 make=${MAKE-make}
3005 until test $n -eq 3; do
3006 echo one > conftest.ts1
3007 sleep $am_try_res
3008 echo two > conftest.ts2 # ts2 should now be newer than ts1
3009 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3010 make_ok=false
3011 break # out of $n loop
3012 fi
3013 n=`expr $n + 1`
3014 done
3015 fi
3016 #
3017 if $make_ok; then
3018 # Everything we know to check worked out, so call this resolution good.
3019 am_cv_filesystem_timestamp_resolution=$am_try_res
3020 break # out of $am_try_res loop
3021 fi
3022 # Otherwise, we'll go on to check the next resolution.
3023 fi
3024 done
3025 rm -f conftest.ts?
3026 # (end _am_filesystem_timestamp_resolution)
3027 ;;
3028 esac
3029 fi
3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3031 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3032
3033 # This check should not be cached, as it may vary across builds of
3034 # different projects.
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3036 printf %s "checking whether build environment is sane... " >&6; }
3037 # Reject unsafe characters in $srcdir or the absolute working directory
3038 # name. Accept space and tab only in the latter.
3039 am_lf='
3040 '
3041 case `pwd` in
3042 *[\\\"\#\$\&\'\`$am_lf]*)
3043 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3044 esac
3045 case $srcdir in
3046 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3047 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3048 esac
3049
3050 # Do 'set' in a subshell so we don't clobber the current shell's
3051 # arguments. Must try -L first in case configure is actually a
3052 # symlink; some systems play weird games with the mod time of symlinks
3053 # (eg FreeBSD returns the mod time of the symlink's containing
3054 # directory).
3055 am_build_env_is_sane=no
3056 am_has_slept=no
3057 rm -f conftest.file
3058 for am_try in 1 2; do
3059 echo "timestamp, slept: $am_has_slept" > conftest.file
3060 if (
3061 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3062 if test "$*" = "X"; then
3063 # -L didn't work.
3064 set X `ls -t "$srcdir/configure" conftest.file`
3065 fi
3066 test "$2" = conftest.file
3067 ); then
3068 am_build_env_is_sane=yes
3069 break
3070 fi
3071 # Just in case.
3072 sleep "$am_cv_filesystem_timestamp_resolution"
3073 am_has_slept=yes
3074 done
3075
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3077 printf "%s\n" "$am_build_env_is_sane" >&6; }
3078 if test "$am_build_env_is_sane" = no; then
3079 as_fn_error $? "newly created file is older than distributed files!
3080 Check your system clock" "$LINENO" 5
3081 fi
3082
3083 # If we didn't sleep, we still need to ensure time stamps of config.status and
3084 # generated files are strictly newer.
3085 am_sleep_pid=
3086 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3087 then :
3088
3089 else case e in #(
3090 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3091 am_sleep_pid=$!
3092 ;;
3093 esac
3094 fi
3095
3096 rm -f conftest.file
3097
3098 test "$program_prefix" != NONE &&
3099 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3100 # Use a double $ so make ignores it.
3101 test "$program_suffix" != NONE &&
3102 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3103 # Double any \ or $.
3104 # By default was 's,x,x', remove it if useless.
3105 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3106 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3107
3108
3109 # Expand $ac_aux_dir to an absolute path.
3110 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3111
3112
3113 if test x"${MISSING+set}" != xset; then
3114 MISSING="\${SHELL} '$am_aux_dir/missing'"
3115 fi
3116 # Use eval to expand $SHELL
3117 if eval "$MISSING --is-lightweight"; then
3118 am_missing_run="$MISSING "
3119 else
3120 am_missing_run=
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3122 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3123 fi
3124
3125 if test x"${install_sh+set}" != xset; then
3126 case $am_aux_dir in
3127 *\ * | *\ *)
3128 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3129 *)
3130 install_sh="\${SHELL} $am_aux_dir/install-sh"
3131 esac
3132 fi
3133
3134 # Installed binaries are usually stripped using 'strip' when the user
3135 # run "make install-strip". However 'strip' might not be the right
3136 # tool to use in cross-compilation environments, therefore Automake
3137 # will honor the 'STRIP' environment variable to overrule this program.
3138 if test "$cross_compiling" != no; then
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}strip; ac_word=$2
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 printf %s "checking for $ac_word... " >&6; }
3144 if test ${ac_cv_prog_STRIP+y}
3145 then :
3146 printf %s "(cached) " >&6
3147 else case e in #(
3148 e) if test -n "$STRIP"; then
3149 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154 IFS=$as_save_IFS
3155 case $as_dir in #(((
3156 '') as_dir=./ ;;
3157 */) ;;
3158 *) as_dir=$as_dir/ ;;
3159 esac
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3164 break 2
3165 fi
3166 done
3167 done
3168 IFS=$as_save_IFS
3169
3170 fi ;;
3171 esac
3172 fi
3173 STRIP=$ac_cv_prog_STRIP
3174 if test -n "$STRIP"; then
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3176 printf "%s\n" "$STRIP" >&6; }
3177 else
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 printf "%s\n" "no" >&6; }
3180 fi
3181
3182
3183 fi
3184 if test -z "$ac_cv_prog_STRIP"; then
3185 ac_ct_STRIP=$STRIP
3186 # Extract the first word of "strip", so it can be a program name with args.
3187 set dummy strip; ac_word=$2
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 printf %s "checking for $ac_word... " >&6; }
3190 if test ${ac_cv_prog_ac_ct_STRIP+y}
3191 then :
3192 printf %s "(cached) " >&6
3193 else case e in #(
3194 e) if test -n "$ac_ct_STRIP"; then
3195 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200 IFS=$as_save_IFS
3201 case $as_dir in #(((
3202 '') as_dir=./ ;;
3203 */) ;;
3204 *) as_dir=$as_dir/ ;;
3205 esac
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3208 ac_cv_prog_ac_ct_STRIP="strip"
3209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212 done
3213 done
3214 IFS=$as_save_IFS
3215
3216 fi ;;
3217 esac
3218 fi
3219 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3220 if test -n "$ac_ct_STRIP"; then
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3222 printf "%s\n" "$ac_ct_STRIP" >&6; }
3223 else
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 printf "%s\n" "no" >&6; }
3226 fi
3227
3228 if test "x$ac_ct_STRIP" = x; then
3229 STRIP=":"
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 STRIP=$ac_ct_STRIP
3238 fi
3239 else
3240 STRIP="$ac_cv_prog_STRIP"
3241 fi
3242
3243 fi
3244 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3245
3246
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3248 printf %s "checking for a race-free mkdir -p... " >&6; }
3249 if test -z "$MKDIR_P"; then
3250 if test ${ac_cv_path_mkdir+y}
3251 then :
3252 printf %s "(cached) " >&6
3253 else case e in #(
3254 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3256 do
3257 IFS=$as_save_IFS
3258 case $as_dir in #(((
3259 '') as_dir=./ ;;
3260 */) ;;
3261 *) as_dir=$as_dir/ ;;
3262 esac
3263 for ac_prog in mkdir gmkdir; do
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3266 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3267 'mkdir ('*'coreutils) '* | \
3268 *'BusyBox '* | \
3269 'mkdir (fileutils) '4.1*)
3270 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3271 break 3;;
3272 esac
3273 done
3274 done
3275 done
3276 IFS=$as_save_IFS
3277 ;;
3278 esac
3279 fi
3280
3281 test -d ./--version && rmdir ./--version
3282 if test ${ac_cv_path_mkdir+y}; then
3283 MKDIR_P="$ac_cv_path_mkdir -p"
3284 else
3285 # As a last resort, use plain mkdir -p,
3286 # in the hope it doesn't have the bugs of ancient mkdir.
3287 MKDIR_P='mkdir -p'
3288 fi
3289 fi
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3291 printf "%s\n" "$MKDIR_P" >&6; }
3292
3293 for ac_prog in gawk mawk nawk awk
3294 do
3295 # Extract the first word of "$ac_prog", so it can be a program name with args.
3296 set dummy $ac_prog; ac_word=$2
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 printf %s "checking for $ac_word... " >&6; }
3299 if test ${ac_cv_prog_AWK+y}
3300 then :
3301 printf %s "(cached) " >&6
3302 else case e in #(
3303 e) if test -n "$AWK"; then
3304 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309 IFS=$as_save_IFS
3310 case $as_dir in #(((
3311 '') as_dir=./ ;;
3312 */) ;;
3313 *) as_dir=$as_dir/ ;;
3314 esac
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_AWK="$ac_prog"
3318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi ;;
3326 esac
3327 fi
3328 AWK=$ac_cv_prog_AWK
3329 if test -n "$AWK"; then
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3331 printf "%s\n" "$AWK" >&6; }
3332 else
3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 printf "%s\n" "no" >&6; }
3335 fi
3336
3337
3338 test -n "$AWK" && break
3339 done
3340
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3342 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3343 set x ${MAKE-make}
3344 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3345 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3346 then :
3347 printf %s "(cached) " >&6
3348 else case e in #(
3349 e) cat >conftest.make <<\_ACEOF
3350 SHELL = /bin/sh
3351 all:
3352 @echo '@@@%%%=$(MAKE)=@@@%%%'
3353 _ACEOF
3354 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3355 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3356 *@@@%%%=?*=@@@%%%*)
3357 eval ac_cv_prog_make_${ac_make}_set=yes;;
3358 *)
3359 eval ac_cv_prog_make_${ac_make}_set=no;;
3360 esac
3361 rm -f conftest.make ;;
3362 esac
3363 fi
3364 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366 printf "%s\n" "yes" >&6; }
3367 SET_MAKE=
3368 else
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 printf "%s\n" "no" >&6; }
3371 SET_MAKE="MAKE=${MAKE-make}"
3372 fi
3373
3374 rm -rf .tst 2>/dev/null
3375 mkdir .tst 2>/dev/null
3376 if test -d .tst; then
3377 am__leading_dot=.
3378 else
3379 am__leading_dot=_
3380 fi
3381 rmdir .tst 2>/dev/null
3382
3383 AM_DEFAULT_VERBOSITY=1
3384 # Check whether --enable-silent-rules was given.
3385 if test ${enable_silent_rules+y}
3386 then :
3387 enableval=$enable_silent_rules;
3388 fi
3389
3390 am_make=${MAKE-make}
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3392 printf %s "checking whether $am_make supports nested variables... " >&6; }
3393 if test ${am_cv_make_support_nested_variables+y}
3394 then :
3395 printf %s "(cached) " >&6
3396 else case e in #(
3397 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3398 BAR0=false
3399 BAR1=true
3400 V=1
3401 am__doit:
3402 @$(TRUE)
3403 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3404 am_cv_make_support_nested_variables=yes
3405 else
3406 am_cv_make_support_nested_variables=no
3407 fi ;;
3408 esac
3409 fi
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3411 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3412 AM_BACKSLASH='\'
3413
3414 am__rm_f_notfound=
3415 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3416 then :
3417
3418 else case e in #(
3419 e) am__rm_f_notfound='""' ;;
3420 esac
3421 fi
3422
3423
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3425 printf %s "checking xargs -n works... " >&6; }
3426 if test ${am_cv_xargs_n_works+y}
3427 then :
3428 printf %s "(cached) " >&6
3429 else case e in #(
3430 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3431 3"
3432 then :
3433 am_cv_xargs_n_works=yes
3434 else case e in #(
3435 e) am_cv_xargs_n_works=no ;;
3436 esac
3437 fi ;;
3438 esac
3439 fi
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3441 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3442 if test "$am_cv_xargs_n_works" = yes
3443 then :
3444 am__xargs_n='xargs -n'
3445 else case e in #(
3446 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3447 ;;
3448 esac
3449 fi
3450
3451 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3452 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3453 # is not polluted with repeated "-I."
3454 am__isrc=' -I$(srcdir)'
3455 # test to see if srcdir already configured
3456 if test -f $srcdir/config.status; then
3457 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3458 fi
3459 fi
3460
3461 # test whether we have cygpath
3462 if test -z "$CYGPATH_W"; then
3463 if (cygpath --version) >/dev/null 2>/dev/null; then
3464 CYGPATH_W='cygpath -w'
3465 else
3466 CYGPATH_W=echo
3467 fi
3468 fi
3469
3470
3471 # Define the identity of the package.
3472 PACKAGE='garcon'
3473 VERSION='4.20.0'
3474
3475
3476 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3477
3478
3479 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3480
3481 # Some tools Automake needs.
3482
3483 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3484
3485
3486 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3487
3488
3489 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3490
3491
3492 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3493
3494
3495 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3496
3497 # For better backward compatibility. To be removed once Automake 1.9.x
3498 # dies out for good. For more background, see:
3499 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3500 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3501 mkdir_p='$(MKDIR_P)'
3502
3503 # We need awk for the "check" target (and possibly the TAP driver). The
3504 # system "awk" is bad on some platforms.
3505 # Always define AMTAR for backward compatibility. Yes, it's still used
3506 # in the wild :-( We should find a proper way to deprecate it ...
3507 AMTAR='$${TAR-tar}'
3508
3509
3510 # We'll loop over all known methods to create a tar archive until one works.
3511 _am_tools='gnutar plaintar pax cpio none'
3512
3513 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3514 # There is notably a 21 bits limit for the UID and the GID. In fact,
3515 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3516 # and bug#13588).
3517 am_max_uid=2097151 # 2^21 - 1
3518 am_max_gid=$am_max_uid
3519 # The $UID and $GID variables are not portable, so we need to resort
3520 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3521 # below are definitely unexpected, so allow the users to see them
3522 # (that is, avoid stderr redirection).
3523 am_uid=`id -u || echo unknown`
3524 am_gid=`id -g || echo unknown`
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3526 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3527 if test x$am_uid = xunknown; then
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3529 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3530 elif test $am_uid -le $am_max_uid; then
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532 printf "%s\n" "yes" >&6; }
3533 else
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 printf "%s\n" "no" >&6; }
3536 _am_tools=none
3537 fi
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3539 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3540 if test x$gm_gid = xunknown; then
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3542 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3543 elif test $am_gid -le $am_max_gid; then
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3545 printf "%s\n" "yes" >&6; }
3546 else
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 printf "%s\n" "no" >&6; }
3549 _am_tools=none
3550 fi
3551
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3553 printf %s "checking how to create a ustar tar archive... " >&6; }
3554
3555 # Go ahead even if we have the value already cached. We do so because we
3556 # need to set the values for the 'am__tar' and 'am__untar' variables.
3557 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3558
3559 for _am_tool in $_am_tools; do
3560 case $_am_tool in
3561 gnutar)
3562 for _am_tar in tar gnutar gtar; do
3563 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3564 ($_am_tar --version) >&5 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && break
3568 done
3569 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3570 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3571 am__untar="$_am_tar -xf -"
3572 ;;
3573 plaintar)
3574 # Must skip GNU tar: if it does not support --format= it doesn't create
3575 # ustar tarball either.
3576 (tar --version) >/dev/null 2>&1 && continue
3577 am__tar='tar chf - "$$tardir"'
3578 am__tar_='tar chf - "$tardir"'
3579 am__untar='tar xf -'
3580 ;;
3581 pax)
3582 am__tar='pax -L -x ustar -w "$$tardir"'
3583 am__tar_='pax -L -x ustar -w "$tardir"'
3584 am__untar='pax -r'
3585 ;;
3586 cpio)
3587 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3588 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3589 am__untar='cpio -i -H ustar -d'
3590 ;;
3591 none)
3592 am__tar=false
3593 am__tar_=false
3594 am__untar=false
3595 ;;
3596 esac
3597
3598 # If the value was cached, stop now. We just wanted to have am__tar
3599 # and am__untar set.
3600 test -n "${am_cv_prog_tar_ustar}" && break
3601
3602 # tar/untar a dummy directory, and stop if the command works.
3603 rm -rf conftest.dir
3604 mkdir conftest.dir
3605 echo GrepMe > conftest.dir/file
3606 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3607 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }
3611 rm -rf conftest.dir
3612 if test -s conftest.tar; then
3613 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3614 ($am__untar <conftest.tar) >&5 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }
3618 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3619 (cat conftest.dir/file) >&5 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }
3623 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3624 fi
3625 done
3626 rm -rf conftest.dir
3627
3628 if test ${am_cv_prog_tar_ustar+y}
3629 then :
3630 printf %s "(cached) " >&6
3631 else case e in #(
3632 e) am_cv_prog_tar_ustar=$_am_tool ;;
3633 esac
3634 fi
3635
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3637 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3638
3639
3640
3641
3642
3643 # Variables for tags utilities; see am/tags.am
3644 if test -z "$CTAGS"; then
3645 CTAGS=ctags
3646 fi
3647
3648 if test -z "$ETAGS"; then
3649 ETAGS=etags
3650 fi
3651
3652 if test -z "$CSCOPE"; then
3653 CSCOPE=cscope
3654 fi
3655
3656
3657
3658
3659
3660
3661
3662 ac_config_headers="$ac_config_headers config.h"
3663
3664
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3666 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3667 # Check whether --enable-maintainer-mode was given.
3668 if test ${enable_maintainer_mode+y}
3669 then :
3670 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3671 else case e in #(
3672 e) USE_MAINTAINER_MODE=no ;;
3673 esac
3674 fi
3675
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3677 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3678 if test $USE_MAINTAINER_MODE = yes; then
3679 MAINTAINER_MODE_TRUE=
3680 MAINTAINER_MODE_FALSE='#'
3681 else
3682 MAINTAINER_MODE_TRUE='#'
3683 MAINTAINER_MODE_FALSE=
3684 fi
3685
3686 MAINT=$MAINTAINER_MODE_TRUE
3687
3688
3689
3690 AM_DEFAULT_VERBOSITY=0
3691
3692 GARCON_VERINFO=0:0:0
3693
3694
3695 GARCON_VERSION_MAJOR=4
3696 GARCON_VERSION_MINOR=20
3697 GARCON_VERSION_MICRO=0
3698 GARCON_VERSION_API_MAJOR=1
3699 GARCON_VERSION_API=$GARCON_VERSION_API_MAJOR
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715 DEPDIR="${am__leading_dot}deps"
3716
3717 ac_config_commands="$ac_config_commands depfiles"
3718
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3720 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3721 cat > confinc.mk << 'END'
3722 am__doit:
3723 @echo this is the am__doit target >confinc.out
3724 .PHONY: am__doit
3725 END
3726 am__include="#"
3727 am__quote=
3728 # BSD make does it like this.
3729 echo '.include "confinc.mk" # ignored' > confmf.BSD
3730 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3731 echo 'include confinc.mk # ignored' > confmf.GNU
3732 _am_result=no
3733 for s in GNU BSD; do
3734 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3735 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }
3739 case $?:`cat confinc.out 2>/dev/null` in #(
3740 '0:this is the am__doit target') :
3741 case $s in #(
3742 BSD) :
3743 am__include='.include' am__quote='"' ;; #(
3744 *) :
3745 am__include='include' am__quote='' ;;
3746 esac ;; #(
3747 *) :
3748 ;;
3749 esac
3750 if test "$am__include" != "#"; then
3751 _am_result="yes ($s style)"
3752 break
3753 fi
3754 done
3755 rm -f confinc.* confmf.*
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3757 printf "%s\n" "${_am_result}" >&6; }
3758
3759 # Check whether --enable-dependency-tracking was given.
3760 if test ${enable_dependency_tracking+y}
3761 then :
3762 enableval=$enable_dependency_tracking;
3763 fi
3764
3765 if test "x$enable_dependency_tracking" != xno; then
3766 am_depcomp="$ac_aux_dir/depcomp"
3767 AMDEPBACKSLASH='\'
3768 am__nodep='_no'
3769 fi
3770 if test "x$enable_dependency_tracking" != xno; then
3771 AMDEP_TRUE=
3772 AMDEP_FALSE='#'
3773 else
3774 AMDEP_TRUE='#'
3775 AMDEP_FALSE=
3776 fi
3777
3778
3779 ac_ext=c
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 printf %s "checking for $ac_word... " >&6; }
3789 if test ${ac_cv_prog_CC+y}
3790 then :
3791 printf %s "(cached) " >&6
3792 else case e in #(
3793 e) if test -n "$CC"; then
3794 ac_cv_prog_CC="$CC" # Let the user override the test.
3795 else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3798 do
3799 IFS=$as_save_IFS
3800 case $as_dir in #(((
3801 '') as_dir=./ ;;
3802 */) ;;
3803 *) as_dir=$as_dir/ ;;
3804 esac
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3809 break 2
3810 fi
3811 done
3812 done
3813 IFS=$as_save_IFS
3814
3815 fi ;;
3816 esac
3817 fi
3818 CC=$ac_cv_prog_CC
3819 if test -n "$CC"; then
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3821 printf "%s\n" "$CC" >&6; }
3822 else
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 printf "%s\n" "no" >&6; }
3825 fi
3826
3827
3828 fi
3829 if test -z "$ac_cv_prog_CC"; then
3830 ac_ct_CC=$CC
3831 # Extract the first word of "gcc", so it can be a program name with args.
3832 set dummy gcc; ac_word=$2
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 printf %s "checking for $ac_word... " >&6; }
3835 if test ${ac_cv_prog_ac_ct_CC+y}
3836 then :
3837 printf %s "(cached) " >&6
3838 else case e in #(
3839 e) if test -n "$ac_ct_CC"; then
3840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845 IFS=$as_save_IFS
3846 case $as_dir in #(((
3847 '') as_dir=./ ;;
3848 */) ;;
3849 *) as_dir=$as_dir/ ;;
3850 esac
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_ac_ct_CC="gcc"
3854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857 done
3858 done
3859 IFS=$as_save_IFS
3860
3861 fi ;;
3862 esac
3863 fi
3864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3865 if test -n "$ac_ct_CC"; then
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3867 printf "%s\n" "$ac_ct_CC" >&6; }
3868 else
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 printf "%s\n" "no" >&6; }
3871 fi
3872
3873 if test "x$ac_ct_CC" = x; then
3874 CC=""
3875 else
3876 case $cross_compiling:$ac_tool_warned in
3877 yes:)
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3879 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3880 ac_tool_warned=yes ;;
3881 esac
3882 CC=$ac_ct_CC
3883 fi
3884 else
3885 CC="$ac_cv_prog_CC"
3886 fi
3887
3888 if test -z "$CC"; then
3889 if test -n "$ac_tool_prefix"; then
3890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3891 set dummy ${ac_tool_prefix}cc; ac_word=$2
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 printf %s "checking for $ac_word... " >&6; }
3894 if test ${ac_cv_prog_CC+y}
3895 then :
3896 printf %s "(cached) " >&6
3897 else case e in #(
3898 e) if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904 IFS=$as_save_IFS
3905 case $as_dir in #(((
3906 '') as_dir=./ ;;
3907 */) ;;
3908 *) as_dir=$as_dir/ ;;
3909 esac
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_CC="${ac_tool_prefix}cc"
3913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916 done
3917 done
3918 IFS=$as_save_IFS
3919
3920 fi ;;
3921 esac
3922 fi
3923 CC=$ac_cv_prog_CC
3924 if test -n "$CC"; then
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3926 printf "%s\n" "$CC" >&6; }
3927 else
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 printf "%s\n" "no" >&6; }
3930 fi
3931
3932
3933 fi
3934 fi
3935 if test -z "$CC"; then
3936 # Extract the first word of "cc", so it can be a program name with args.
3937 set dummy cc; ac_word=$2
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 printf %s "checking for $ac_word... " >&6; }
3940 if test ${ac_cv_prog_CC+y}
3941 then :
3942 printf %s "(cached) " >&6
3943 else case e in #(
3944 e) if test -n "$CC"; then
3945 ac_cv_prog_CC="$CC" # Let the user override the test.
3946 else
3947 ac_prog_rejected=no
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951 IFS=$as_save_IFS
3952 case $as_dir in #(((
3953 '') as_dir=./ ;;
3954 */) ;;
3955 *) as_dir=$as_dir/ ;;
3956 esac
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3959 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3960 ac_prog_rejected=yes
3961 continue
3962 fi
3963 ac_cv_prog_CC="cc"
3964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967 done
3968 done
3969 IFS=$as_save_IFS
3970
3971 if test $ac_prog_rejected = yes; then
3972 # We found a bogon in the path, so make sure we never use it.
3973 set dummy $ac_cv_prog_CC
3974 shift
3975 if test $# != 0; then
3976 # We chose a different compiler from the bogus one.
3977 # However, it has the same basename, so the bogon will be chosen
3978 # first if we set CC to just the basename; use the full file name.
3979 shift
3980 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3981 fi
3982 fi
3983 fi ;;
3984 esac
3985 fi
3986 CC=$ac_cv_prog_CC
3987 if test -n "$CC"; then
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3989 printf "%s\n" "$CC" >&6; }
3990 else
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 printf "%s\n" "no" >&6; }
3993 fi
3994
3995
3996 fi
3997 if test -z "$CC"; then
3998 if test -n "$ac_tool_prefix"; then
3999 for ac_prog in cl.exe
4000 do
4001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004 printf %s "checking for $ac_word... " >&6; }
4005 if test ${ac_cv_prog_CC+y}
4006 then :
4007 printf %s "(cached) " >&6
4008 else case e in #(
4009 e) if test -n "$CC"; then
4010 ac_cv_prog_CC="$CC" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015 IFS=$as_save_IFS
4016 case $as_dir in #(((
4017 '') as_dir=./ ;;
4018 */) ;;
4019 *) as_dir=$as_dir/ ;;
4020 esac
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027 done
4028 done
4029 IFS=$as_save_IFS
4030
4031 fi ;;
4032 esac
4033 fi
4034 CC=$ac_cv_prog_CC
4035 if test -n "$CC"; then
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037 printf "%s\n" "$CC" >&6; }
4038 else
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 printf "%s\n" "no" >&6; }
4041 fi
4042
4043
4044 test -n "$CC" && break
4045 done
4046 fi
4047 if test -z "$CC"; then
4048 ac_ct_CC=$CC
4049 for ac_prog in cl.exe
4050 do
4051 # Extract the first word of "$ac_prog", so it can be a program name with args.
4052 set dummy $ac_prog; ac_word=$2
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054 printf %s "checking for $ac_word... " >&6; }
4055 if test ${ac_cv_prog_ac_ct_CC+y}
4056 then :
4057 printf %s "(cached) " >&6
4058 else case e in #(
4059 e) if test -n "$ac_ct_CC"; then
4060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065 IFS=$as_save_IFS
4066 case $as_dir in #(((
4067 '') as_dir=./ ;;
4068 */) ;;
4069 *) as_dir=$as_dir/ ;;
4070 esac
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_ac_ct_CC="$ac_prog"
4074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4075 break 2
4076 fi
4077 done
4078 done
4079 IFS=$as_save_IFS
4080
4081 fi ;;
4082 esac
4083 fi
4084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4085 if test -n "$ac_ct_CC"; then
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4087 printf "%s\n" "$ac_ct_CC" >&6; }
4088 else
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 printf "%s\n" "no" >&6; }
4091 fi
4092
4093
4094 test -n "$ac_ct_CC" && break
4095 done
4096
4097 if test "x$ac_ct_CC" = x; then
4098 CC=""
4099 else
4100 case $cross_compiling:$ac_tool_warned in
4101 yes:)
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4104 ac_tool_warned=yes ;;
4105 esac
4106 CC=$ac_ct_CC
4107 fi
4108 fi
4109
4110 fi
4111 if test -z "$CC"; then
4112 if test -n "$ac_tool_prefix"; then
4113 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}clang; ac_word=$2
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 printf %s "checking for $ac_word... " >&6; }
4117 if test ${ac_cv_prog_CC+y}
4118 then :
4119 printf %s "(cached) " >&6
4120 else case e in #(
4121 e) if test -n "$CC"; then
4122 ac_cv_prog_CC="$CC" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127 IFS=$as_save_IFS
4128 case $as_dir in #(((
4129 '') as_dir=./ ;;
4130 */) ;;
4131 *) as_dir=$as_dir/ ;;
4132 esac
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_CC="${ac_tool_prefix}clang"
4136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139 done
4140 done
4141 IFS=$as_save_IFS
4142
4143 fi ;;
4144 esac
4145 fi
4146 CC=$ac_cv_prog_CC
4147 if test -n "$CC"; then
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 printf "%s\n" "$CC" >&6; }
4150 else
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 printf "%s\n" "no" >&6; }
4153 fi
4154
4155
4156 fi
4157 if test -z "$ac_cv_prog_CC"; then
4158 ac_ct_CC=$CC
4159 # Extract the first word of "clang", so it can be a program name with args.
4160 set dummy clang; ac_word=$2
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 printf %s "checking for $ac_word... " >&6; }
4163 if test ${ac_cv_prog_ac_ct_CC+y}
4164 then :
4165 printf %s "(cached) " >&6
4166 else case e in #(
4167 e) if test -n "$ac_ct_CC"; then
4168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173 IFS=$as_save_IFS
4174 case $as_dir in #(((
4175 '') as_dir=./ ;;
4176 */) ;;
4177 *) as_dir=$as_dir/ ;;
4178 esac
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_ac_ct_CC="clang"
4182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185 done
4186 done
4187 IFS=$as_save_IFS
4188
4189 fi ;;
4190 esac
4191 fi
4192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4193 if test -n "$ac_ct_CC"; then
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4195 printf "%s\n" "$ac_ct_CC" >&6; }
4196 else
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 printf "%s\n" "no" >&6; }
4199 fi
4200
4201 if test "x$ac_ct_CC" = x; then
4202 CC=""
4203 else
4204 case $cross_compiling:$ac_tool_warned in
4205 yes:)
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4207 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4208 ac_tool_warned=yes ;;
4209 esac
4210 CC=$ac_ct_CC
4211 fi
4212 else
4213 CC="$ac_cv_prog_CC"
4214 fi
4215
4216 fi
4217
4218
4219 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4220 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4221 as_fn_error $? "no acceptable C compiler found in \$PATH
4222 See 'config.log' for more details" "$LINENO" 5; }
4223
4224 # Provide some information about the compiler.
4225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4226 set X $ac_compile
4227 ac_compiler=$2
4228 for ac_option in --version -v -V -qversion -version; do
4229 { { ac_try="$ac_compiler $ac_option >&5"
4230 case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4235 printf "%s\n" "$ac_try_echo"; } >&5
4236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4237 ac_status=$?
4238 if test -s conftest.err; then
4239 sed '10a\
4240 ... rest of stderr output deleted ...
4241 10q' conftest.err >conftest.er1
4242 cat conftest.er1 >&5
4243 fi
4244 rm -f conftest.er1 conftest.err
4245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; }
4247 done
4248
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251
4252 int
4253 main (void)
4254 {
4255
4256 ;
4257 return 0;
4258 }
4259 _ACEOF
4260 ac_clean_files_save=$ac_clean_files
4261 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4262 # Try to create an executable without -o first, disregard a.out.
4263 # It will help us diagnose broken compilers, and finding out an intuition
4264 # of exeext.
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4266 printf %s "checking whether the C compiler works... " >&6; }
4267 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4268
4269 # The possible output files:
4270 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4271
4272 ac_rmfiles=
4273 for ac_file in $ac_files
4274 do
4275 case $ac_file in
4276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4277 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4278 esac
4279 done
4280 rm -f $ac_rmfiles
4281
4282 if { { ac_try="$ac_link_default"
4283 case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 printf "%s\n" "$ac_try_echo"; } >&5
4289 (eval "$ac_link_default") 2>&5
4290 ac_status=$?
4291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292 test $ac_status = 0; }
4293 then :
4294 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4295 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4296 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4297 # so that the user can short-circuit this test for compilers unknown to
4298 # Autoconf.
4299 for ac_file in $ac_files ''
4300 do
4301 test -f "$ac_file" || continue
4302 case $ac_file in
4303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4304 ;;
4305 [ab].out )
4306 # We found the default executable, but exeext='' is most
4307 # certainly right.
4308 break;;
4309 *.* )
4310 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4311 then :; else
4312 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4313 fi
4314 # We set ac_cv_exeext here because the later test for it is not
4315 # safe: cross compilers may not add the suffix if given an '-o'
4316 # argument, so we may need to know it at that point already.
4317 # Even if this section looks crufty: it has the advantage of
4318 # actually working.
4319 break;;
4320 * )
4321 break;;
4322 esac
4323 done
4324 test "$ac_cv_exeext" = no && ac_cv_exeext=
4325
4326 else case e in #(
4327 e) ac_file='' ;;
4328 esac
4329 fi
4330 if test -z "$ac_file"
4331 then :
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 printf "%s\n" "no" >&6; }
4334 printf "%s\n" "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4336
4337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4338 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4339 as_fn_error 77 "C compiler cannot create executables
4340 See 'config.log' for more details" "$LINENO" 5; }
4341 else case e in #(
4342 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4343 printf "%s\n" "yes" >&6; } ;;
4344 esac
4345 fi
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4347 printf %s "checking for C compiler default output file name... " >&6; }
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4349 printf "%s\n" "$ac_file" >&6; }
4350 ac_exeext=$ac_cv_exeext
4351
4352 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4353 ac_clean_files=$ac_clean_files_save
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4355 printf %s "checking for suffix of executables... " >&6; }
4356 if { { ac_try="$ac_link"
4357 case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360 esac
4361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4362 printf "%s\n" "$ac_try_echo"; } >&5
4363 (eval "$ac_link") 2>&5
4364 ac_status=$?
4365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4366 test $ac_status = 0; }
4367 then :
4368 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4369 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4370 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4371 # 'rm'.
4372 for ac_file in conftest.exe conftest conftest.*; do
4373 test -f "$ac_file" || continue
4374 case $ac_file in
4375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4377 break;;
4378 * ) break;;
4379 esac
4380 done
4381 else case e in #(
4382 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4383 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4384 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4385 See 'config.log' for more details" "$LINENO" 5; } ;;
4386 esac
4387 fi
4388 rm -f conftest conftest$ac_cv_exeext
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4390 printf "%s\n" "$ac_cv_exeext" >&6; }
4391
4392 rm -f conftest.$ac_ext
4393 EXEEXT=$ac_cv_exeext
4394 ac_exeext=$EXEEXT
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #include <stdio.h>
4398 int
4399 main (void)
4400 {
4401 FILE *f = fopen ("conftest.out", "w");
4402 if (!f)
4403 return 1;
4404 return ferror (f) || fclose (f) != 0;
4405
4406 ;
4407 return 0;
4408 }
4409 _ACEOF
4410 ac_clean_files="$ac_clean_files conftest.out"
4411 # Check that the compiler produces executables we can run. If not, either
4412 # the compiler is broken, or we cross compile.
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4414 printf %s "checking whether we are cross compiling... " >&6; }
4415 if test "$cross_compiling" != yes; then
4416 { { ac_try="$ac_link"
4417 case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420 esac
4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4422 printf "%s\n" "$ac_try_echo"; } >&5
4423 (eval "$ac_link") 2>&5
4424 ac_status=$?
4425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426 test $ac_status = 0; }
4427 if { ac_try='./conftest$ac_cv_exeext'
4428 { { case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 printf "%s\n" "$ac_try_echo"; } >&5
4434 (eval "$ac_try") 2>&5
4435 ac_status=$?
4436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; }; then
4438 cross_compiling=no
4439 else
4440 if test "$cross_compiling" = maybe; then
4441 cross_compiling=yes
4442 else
4443 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4444 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4445 as_fn_error 77 "cannot run C compiled programs.
4446 If you meant to cross compile, use '--host'.
4447 See 'config.log' for more details" "$LINENO" 5; }
4448 fi
4449 fi
4450 fi
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4452 printf "%s\n" "$cross_compiling" >&6; }
4453
4454 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4455 conftest.o conftest.obj conftest.out
4456 ac_clean_files=$ac_clean_files_save
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4458 printf %s "checking for suffix of object files... " >&6; }
4459 if test ${ac_cv_objext+y}
4460 then :
4461 printf %s "(cached) " >&6
4462 else case e in #(
4463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465
4466 int
4467 main (void)
4468 {
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 rm -f conftest.o conftest.obj
4475 if { { ac_try="$ac_compile"
4476 case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479 esac
4480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4481 printf "%s\n" "$ac_try_echo"; } >&5
4482 (eval "$ac_compile") 2>&5
4483 ac_status=$?
4484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4485 test $ac_status = 0; }
4486 then :
4487 for ac_file in conftest.o conftest.obj conftest.*; do
4488 test -f "$ac_file" || continue;
4489 case $ac_file in
4490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4491 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4492 break;;
4493 esac
4494 done
4495 else case e in #(
4496 e) printf "%s\n" "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4500 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4501 as_fn_error $? "cannot compute suffix of object files: cannot compile
4502 See 'config.log' for more details" "$LINENO" 5; } ;;
4503 esac
4504 fi
4505 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4506 esac
4507 fi
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4509 printf "%s\n" "$ac_cv_objext" >&6; }
4510 OBJEXT=$ac_cv_objext
4511 ac_objext=$OBJEXT
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4513 printf %s "checking whether the compiler supports GNU C... " >&6; }
4514 if test ${ac_cv_c_compiler_gnu+y}
4515 then :
4516 printf %s "(cached) " >&6
4517 else case e in #(
4518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520
4521 int
4522 main (void)
4523 {
4524 #ifndef __GNUC__
4525 choke me
4526 #endif
4527
4528 ;
4529 return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_c_try_compile "$LINENO"
4533 then :
4534 ac_compiler_gnu=yes
4535 else case e in #(
4536 e) ac_compiler_gnu=no ;;
4537 esac
4538 fi
4539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4540 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4541 ;;
4542 esac
4543 fi
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4545 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548 if test $ac_compiler_gnu = yes; then
4549 GCC=yes
4550 else
4551 GCC=
4552 fi
4553 ac_test_CFLAGS=${CFLAGS+y}
4554 ac_save_CFLAGS=$CFLAGS
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4556 printf %s "checking whether $CC accepts -g... " >&6; }
4557 if test ${ac_cv_prog_cc_g+y}
4558 then :
4559 printf %s "(cached) " >&6
4560 else case e in #(
4561 e) ac_save_c_werror_flag=$ac_c_werror_flag
4562 ac_c_werror_flag=yes
4563 ac_cv_prog_cc_g=no
4564 CFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567
4568 int
4569 main (void)
4570 {
4571
4572 ;
4573 return 0;
4574 }
4575 _ACEOF
4576 if ac_fn_c_try_compile "$LINENO"
4577 then :
4578 ac_cv_prog_cc_g=yes
4579 else case e in #(
4580 e) CFLAGS=""
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583
4584 int
4585 main (void)
4586 {
4587
4588 ;
4589 return 0;
4590 }
4591 _ACEOF
4592 if ac_fn_c_try_compile "$LINENO"
4593 then :
4594
4595 else case e in #(
4596 e) ac_c_werror_flag=$ac_save_c_werror_flag
4597 CFLAGS="-g"
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600
4601 int
4602 main (void)
4603 {
4604
4605 ;
4606 return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"
4610 then :
4611 ac_cv_prog_cc_g=yes
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4614 esac
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4617 esac
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4620 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4621 esac
4622 fi
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4624 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4625 if test $ac_test_CFLAGS; then
4626 CFLAGS=$ac_save_CFLAGS
4627 elif test $ac_cv_prog_cc_g = yes; then
4628 if test "$GCC" = yes; then
4629 CFLAGS="-g -O2"
4630 else
4631 CFLAGS="-g"
4632 fi
4633 else
4634 if test "$GCC" = yes; then
4635 CFLAGS="-O2"
4636 else
4637 CFLAGS=
4638 fi
4639 fi
4640 ac_prog_cc_stdc=no
4641 if test x$ac_prog_cc_stdc = xno
4642 then :
4643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4644 printf %s "checking for $CC option to enable C11 features... " >&6; }
4645 if test ${ac_cv_prog_cc_c11+y}
4646 then :
4647 printf %s "(cached) " >&6
4648 else case e in #(
4649 e) ac_cv_prog_cc_c11=no
4650 ac_save_CC=$CC
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653 $ac_c_conftest_c11_program
4654 _ACEOF
4655 for ac_arg in '' -std=gnu11
4656 do
4657 CC="$ac_save_CC $ac_arg"
4658 if ac_fn_c_try_compile "$LINENO"
4659 then :
4660 ac_cv_prog_cc_c11=$ac_arg
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext conftest.beam
4663 test "x$ac_cv_prog_cc_c11" != "xno" && break
4664 done
4665 rm -f conftest.$ac_ext
4666 CC=$ac_save_CC ;;
4667 esac
4668 fi
4669
4670 if test "x$ac_cv_prog_cc_c11" = xno
4671 then :
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4673 printf "%s\n" "unsupported" >&6; }
4674 else case e in #(
4675 e) if test "x$ac_cv_prog_cc_c11" = x
4676 then :
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4678 printf "%s\n" "none needed" >&6; }
4679 else case e in #(
4680 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4681 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4682 CC="$CC $ac_cv_prog_cc_c11" ;;
4683 esac
4684 fi
4685 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4686 ac_prog_cc_stdc=c11 ;;
4687 esac
4688 fi
4689 fi
4690 if test x$ac_prog_cc_stdc = xno
4691 then :
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4693 printf %s "checking for $CC option to enable C99 features... " >&6; }
4694 if test ${ac_cv_prog_cc_c99+y}
4695 then :
4696 printf %s "(cached) " >&6
4697 else case e in #(
4698 e) ac_cv_prog_cc_c99=no
4699 ac_save_CC=$CC
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 $ac_c_conftest_c99_program
4703 _ACEOF
4704 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4705 do
4706 CC="$ac_save_CC $ac_arg"
4707 if ac_fn_c_try_compile "$LINENO"
4708 then :
4709 ac_cv_prog_cc_c99=$ac_arg
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.beam
4712 test "x$ac_cv_prog_cc_c99" != "xno" && break
4713 done
4714 rm -f conftest.$ac_ext
4715 CC=$ac_save_CC ;;
4716 esac
4717 fi
4718
4719 if test "x$ac_cv_prog_cc_c99" = xno
4720 then :
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4722 printf "%s\n" "unsupported" >&6; }
4723 else case e in #(
4724 e) if test "x$ac_cv_prog_cc_c99" = x
4725 then :
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4727 printf "%s\n" "none needed" >&6; }
4728 else case e in #(
4729 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4730 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4731 CC="$CC $ac_cv_prog_cc_c99" ;;
4732 esac
4733 fi
4734 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4735 ac_prog_cc_stdc=c99 ;;
4736 esac
4737 fi
4738 fi
4739 if test x$ac_prog_cc_stdc = xno
4740 then :
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4742 printf %s "checking for $CC option to enable C89 features... " >&6; }
4743 if test ${ac_cv_prog_cc_c89+y}
4744 then :
4745 printf %s "(cached) " >&6
4746 else case e in #(
4747 e) ac_cv_prog_cc_c89=no
4748 ac_save_CC=$CC
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751 $ac_c_conftest_c89_program
4752 _ACEOF
4753 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4754 do
4755 CC="$ac_save_CC $ac_arg"
4756 if ac_fn_c_try_compile "$LINENO"
4757 then :
4758 ac_cv_prog_cc_c89=$ac_arg
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.beam
4761 test "x$ac_cv_prog_cc_c89" != "xno" && break
4762 done
4763 rm -f conftest.$ac_ext
4764 CC=$ac_save_CC ;;
4765 esac
4766 fi
4767
4768 if test "x$ac_cv_prog_cc_c89" = xno
4769 then :
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4771 printf "%s\n" "unsupported" >&6; }
4772 else case e in #(
4773 e) if test "x$ac_cv_prog_cc_c89" = x
4774 then :
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4776 printf "%s\n" "none needed" >&6; }
4777 else case e in #(
4778 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4779 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4780 CC="$CC $ac_cv_prog_cc_c89" ;;
4781 esac
4782 fi
4783 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4784 ac_prog_cc_stdc=c89 ;;
4785 esac
4786 fi
4787 fi
4788
4789 ac_ext=c
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794
4795
4796 ac_ext=c
4797 ac_cpp='$CPP $CPPFLAGS'
4798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4802 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4803 if test ${am_cv_prog_cc_c_o+y}
4804 then :
4805 printf %s "(cached) " >&6
4806 else case e in #(
4807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809
4810 int
4811 main (void)
4812 {
4813
4814 ;
4815 return 0;
4816 }
4817 _ACEOF
4818 # Make sure it works both with $CC and with simple cc.
4819 # Following AC_PROG_CC_C_O, we do the test twice because some
4820 # compilers refuse to overwrite an existing .o file with -o,
4821 # though they will create one.
4822 am_cv_prog_cc_c_o=yes
4823 for am_i in 1 2; do
4824 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4825 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } \
4829 && test -f conftest2.$ac_objext; then
4830 : OK
4831 else
4832 am_cv_prog_cc_c_o=no
4833 break
4834 fi
4835 done
4836 rm -f core conftest*
4837 unset am_i ;;
4838 esac
4839 fi
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4841 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4842 if test "$am_cv_prog_cc_c_o" != yes; then
4843 # Losing compiler, so override with the script.
4844 # FIXME: It is wrong to rewrite CC.
4845 # But if we don't then we get into trouble of one sort or another.
4846 # A longer-term fix would be to have automake use am__CC in this case,
4847 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4848 CC="$am_aux_dir/compile $CC"
4849 fi
4850 ac_ext=c
4851 ac_cpp='$CPP $CPPFLAGS'
4852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855
4856
4857 depcc="$CC" am_compiler_list=
4858
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4860 printf %s "checking dependency style of $depcc... " >&6; }
4861 if test ${am_cv_CC_dependencies_compiler_type+y}
4862 then :
4863 printf %s "(cached) " >&6
4864 else case e in #(
4865 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4866 # We make a subdir and do the tests there. Otherwise we can end up
4867 # making bogus files that we don't know about and never remove. For
4868 # instance it was reported that on HP-UX the gcc test will end up
4869 # making a dummy file named 'D' -- because '-MD' means "put the output
4870 # in D".
4871 rm -rf conftest.dir
4872 mkdir conftest.dir
4873 # Copy depcomp to subdir because otherwise we won't find it if we're
4874 # using a relative directory.
4875 cp "$am_depcomp" conftest.dir
4876 cd conftest.dir
4877 # We will build objects and dependencies in a subdirectory because
4878 # it helps to detect inapplicable dependency modes. For instance
4879 # both Tru64's cc and ICC support -MD to output dependencies as a
4880 # side effect of compilation, but ICC will put the dependencies in
4881 # the current directory while Tru64 will put them in the object
4882 # directory.
4883 mkdir sub
4884
4885 am_cv_CC_dependencies_compiler_type=none
4886 if test "$am_compiler_list" = ""; then
4887 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4888 fi
4889 am__universal=false
4890 case " $depcc " in #(
4891 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4892 esac
4893
4894 for depmode in $am_compiler_list; do
4895 # Setup a source with many dependencies, because some compilers
4896 # like to wrap large dependency lists on column 80 (with \), and
4897 # we should not choose a depcomp mode which is confused by this.
4898 #
4899 # We need to recreate these files for each test, as the compiler may
4900 # overwrite some of them when testing with obscure command lines.
4901 # This happens at least with the AIX C compiler.
4902 : > sub/conftest.c
4903 for i in 1 2 3 4 5 6; do
4904 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4905 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4906 # Solaris 10 /bin/sh.
4907 echo '/* dummy */' > sub/conftst$i.h
4908 done
4909 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4910
4911 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4912 # mode. It turns out that the SunPro C++ compiler does not properly
4913 # handle '-M -o', and we need to detect this. Also, some Intel
4914 # versions had trouble with output in subdirs.
4915 am__obj=sub/conftest.${OBJEXT-o}
4916 am__minus_obj="-o $am__obj"
4917 case $depmode in
4918 gcc)
4919 # This depmode causes a compiler race in universal mode.
4920 test "$am__universal" = false || continue
4921 ;;
4922 nosideeffect)
4923 # After this tag, mechanisms are not by side-effect, so they'll
4924 # only be used when explicitly requested.
4925 if test "x$enable_dependency_tracking" = xyes; then
4926 continue
4927 else
4928 break
4929 fi
4930 ;;
4931 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4932 # This compiler won't grok '-c -o', but also, the minuso test has
4933 # not run yet. These depmodes are late enough in the game, and
4934 # so weak that their functioning should not be impacted.
4935 am__obj=conftest.${OBJEXT-o}
4936 am__minus_obj=
4937 ;;
4938 none) break ;;
4939 esac
4940 if depmode=$depmode \
4941 source=sub/conftest.c object=$am__obj \
4942 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4943 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4944 >/dev/null 2>conftest.err &&
4945 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4946 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4947 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4948 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4949 # icc doesn't choke on unknown options, it will just issue warnings
4950 # or remarks (even with -Werror). So we grep stderr for any message
4951 # that says an option was ignored or not supported.
4952 # When given -MP, icc 7.0 and 7.1 complain thus:
4953 # icc: Command line warning: ignoring option '-M'; no argument required
4954 # The diagnosis changed in icc 8.0:
4955 # icc: Command line remark: option '-MP' not supported
4956 if (grep 'ignoring option' conftest.err ||
4957 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4958 am_cv_CC_dependencies_compiler_type=$depmode
4959 break
4960 fi
4961 fi
4962 done
4963
4964 cd ..
4965 rm -rf conftest.dir
4966 else
4967 am_cv_CC_dependencies_compiler_type=none
4968 fi
4969 ;;
4970 esac
4971 fi
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4973 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4974 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4975
4976 if
4977 test "x$enable_dependency_tracking" != xno \
4978 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4979 am__fastdepCC_TRUE=
4980 am__fastdepCC_FALSE='#'
4981 else
4982 am__fastdepCC_TRUE='#'
4983 am__fastdepCC_FALSE=
4984 fi
4985
4986
4987 # By default we simply use the C compiler to build assembly code.
4988
4989 test "${CCAS+set}" = set || CCAS=$CC
4990 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4991
4992
4993
4994 depcc="$CCAS" am_compiler_list=
4995
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4997 printf %s "checking dependency style of $depcc... " >&6; }
4998 if test ${am_cv_CCAS_dependencies_compiler_type+y}
4999 then :
5000 printf %s "(cached) " >&6
5001 else case e in #(
5002 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5003 # We make a subdir and do the tests there. Otherwise we can end up
5004 # making bogus files that we don't know about and never remove. For
5005 # instance it was reported that on HP-UX the gcc test will end up
5006 # making a dummy file named 'D' -- because '-MD' means "put the output
5007 # in D".
5008 rm -rf conftest.dir
5009 mkdir conftest.dir
5010 # Copy depcomp to subdir because otherwise we won't find it if we're
5011 # using a relative directory.
5012 cp "$am_depcomp" conftest.dir
5013 cd conftest.dir
5014 # We will build objects and dependencies in a subdirectory because
5015 # it helps to detect inapplicable dependency modes. For instance
5016 # both Tru64's cc and ICC support -MD to output dependencies as a
5017 # side effect of compilation, but ICC will put the dependencies in
5018 # the current directory while Tru64 will put them in the object
5019 # directory.
5020 mkdir sub
5021
5022 am_cv_CCAS_dependencies_compiler_type=none
5023 if test "$am_compiler_list" = ""; then
5024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5025 fi
5026 am__universal=false
5027
5028
5029 for depmode in $am_compiler_list; do
5030 # Setup a source with many dependencies, because some compilers
5031 # like to wrap large dependency lists on column 80 (with \), and
5032 # we should not choose a depcomp mode which is confused by this.
5033 #
5034 # We need to recreate these files for each test, as the compiler may
5035 # overwrite some of them when testing with obscure command lines.
5036 # This happens at least with the AIX C compiler.
5037 : > sub/conftest.c
5038 for i in 1 2 3 4 5 6; do
5039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5040 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5041 # Solaris 10 /bin/sh.
5042 echo '/* dummy */' > sub/conftst$i.h
5043 done
5044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5045
5046 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5047 # mode. It turns out that the SunPro C++ compiler does not properly
5048 # handle '-M -o', and we need to detect this. Also, some Intel
5049 # versions had trouble with output in subdirs.
5050 am__obj=sub/conftest.${OBJEXT-o}
5051 am__minus_obj="-o $am__obj"
5052 case $depmode in
5053 gcc)
5054 # This depmode causes a compiler race in universal mode.
5055 test "$am__universal" = false || continue
5056 ;;
5057 nosideeffect)
5058 # After this tag, mechanisms are not by side-effect, so they'll
5059 # only be used when explicitly requested.
5060 if test "x$enable_dependency_tracking" = xyes; then
5061 continue
5062 else
5063 break
5064 fi
5065 ;;
5066 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5067 # This compiler won't grok '-c -o', but also, the minuso test has
5068 # not run yet. These depmodes are late enough in the game, and
5069 # so weak that their functioning should not be impacted.
5070 am__obj=conftest.${OBJEXT-o}
5071 am__minus_obj=
5072 ;;
5073 none) break ;;
5074 esac
5075 if depmode=$depmode \
5076 source=sub/conftest.c object=$am__obj \
5077 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5078 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5079 >/dev/null 2>conftest.err &&
5080 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5081 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5082 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5084 # icc doesn't choke on unknown options, it will just issue warnings
5085 # or remarks (even with -Werror). So we grep stderr for any message
5086 # that says an option was ignored or not supported.
5087 # When given -MP, icc 7.0 and 7.1 complain thus:
5088 # icc: Command line warning: ignoring option '-M'; no argument required
5089 # The diagnosis changed in icc 8.0:
5090 # icc: Command line remark: option '-MP' not supported
5091 if (grep 'ignoring option' conftest.err ||
5092 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5093 am_cv_CCAS_dependencies_compiler_type=$depmode
5094 break
5095 fi
5096 fi
5097 done
5098
5099 cd ..
5100 rm -rf conftest.dir
5101 else
5102 am_cv_CCAS_dependencies_compiler_type=none
5103 fi
5104 ;;
5105 esac
5106 fi
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5108 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5109 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5110
5111 if
5112 test "x$enable_dependency_tracking" != xno \
5113 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5114 am__fastdepCCAS_TRUE=
5115 am__fastdepCCAS_FALSE='#'
5116 else
5117 am__fastdepCCAS_TRUE='#'
5118 am__fastdepCCAS_FALSE=
5119 fi
5120
5121
5122 ac_ext=c
5123 ac_cpp='$CPP $CPPFLAGS'
5124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5127 if test -n "$ac_tool_prefix"; then
5128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131 printf %s "checking for $ac_word... " >&6; }
5132 if test ${ac_cv_prog_CC+y}
5133 then :
5134 printf %s "(cached) " >&6
5135 else case e in #(
5136 e) if test -n "$CC"; then
5137 ac_cv_prog_CC="$CC" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142 IFS=$as_save_IFS
5143 case $as_dir in #(((
5144 '') as_dir=./ ;;
5145 */) ;;
5146 *) as_dir=$as_dir/ ;;
5147 esac
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 fi ;;
5159 esac
5160 fi
5161 CC=$ac_cv_prog_CC
5162 if test -n "$CC"; then
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5164 printf "%s\n" "$CC" >&6; }
5165 else
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 printf "%s\n" "no" >&6; }
5168 fi
5169
5170
5171 fi
5172 if test -z "$ac_cv_prog_CC"; then
5173 ac_ct_CC=$CC
5174 # Extract the first word of "gcc", so it can be a program name with args.
5175 set dummy gcc; ac_word=$2
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 printf %s "checking for $ac_word... " >&6; }
5178 if test ${ac_cv_prog_ac_ct_CC+y}
5179 then :
5180 printf %s "(cached) " >&6
5181 else case e in #(
5182 e) if test -n "$ac_ct_CC"; then
5183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188 IFS=$as_save_IFS
5189 case $as_dir in #(((
5190 '') as_dir=./ ;;
5191 */) ;;
5192 *) as_dir=$as_dir/ ;;
5193 esac
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_ac_ct_CC="gcc"
5197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 fi ;;
5205 esac
5206 fi
5207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5208 if test -n "$ac_ct_CC"; then
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5210 printf "%s\n" "$ac_ct_CC" >&6; }
5211 else
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 printf "%s\n" "no" >&6; }
5214 fi
5215
5216 if test "x$ac_ct_CC" = x; then
5217 CC=""
5218 else
5219 case $cross_compiling:$ac_tool_warned in
5220 yes:)
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223 ac_tool_warned=yes ;;
5224 esac
5225 CC=$ac_ct_CC
5226 fi
5227 else
5228 CC="$ac_cv_prog_CC"
5229 fi
5230
5231 if test -z "$CC"; then
5232 if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}cc; ac_word=$2
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 printf %s "checking for $ac_word... " >&6; }
5237 if test ${ac_cv_prog_CC+y}
5238 then :
5239 printf %s "(cached) " >&6
5240 else case e in #(
5241 e) if test -n "$CC"; then
5242 ac_cv_prog_CC="$CC" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 case $as_dir in #(((
5249 '') as_dir=./ ;;
5250 */) ;;
5251 *) as_dir=$as_dir/ ;;
5252 esac
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_CC="${ac_tool_prefix}cc"
5256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi ;;
5264 esac
5265 fi
5266 CC=$ac_cv_prog_CC
5267 if test -n "$CC"; then
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5269 printf "%s\n" "$CC" >&6; }
5270 else
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 printf "%s\n" "no" >&6; }
5273 fi
5274
5275
5276 fi
5277 fi
5278 if test -z "$CC"; then
5279 # Extract the first word of "cc", so it can be a program name with args.
5280 set dummy cc; ac_word=$2
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 printf %s "checking for $ac_word... " >&6; }
5283 if test ${ac_cv_prog_CC+y}
5284 then :
5285 printf %s "(cached) " >&6
5286 else case e in #(
5287 e) if test -n "$CC"; then
5288 ac_cv_prog_CC="$CC" # Let the user override the test.
5289 else
5290 ac_prog_rejected=no
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294 IFS=$as_save_IFS
5295 case $as_dir in #(((
5296 '') as_dir=./ ;;
5297 */) ;;
5298 *) as_dir=$as_dir/ ;;
5299 esac
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5302 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5303 ac_prog_rejected=yes
5304 continue
5305 fi
5306 ac_cv_prog_CC="cc"
5307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5308 break 2
5309 fi
5310 done
5311 done
5312 IFS=$as_save_IFS
5313
5314 if test $ac_prog_rejected = yes; then
5315 # We found a bogon in the path, so make sure we never use it.
5316 set dummy $ac_cv_prog_CC
5317 shift
5318 if test $# != 0; then
5319 # We chose a different compiler from the bogus one.
5320 # However, it has the same basename, so the bogon will be chosen
5321 # first if we set CC to just the basename; use the full file name.
5322 shift
5323 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5324 fi
5325 fi
5326 fi ;;
5327 esac
5328 fi
5329 CC=$ac_cv_prog_CC
5330 if test -n "$CC"; then
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5332 printf "%s\n" "$CC" >&6; }
5333 else
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 printf "%s\n" "no" >&6; }
5336 fi
5337
5338
5339 fi
5340 if test -z "$CC"; then
5341 if test -n "$ac_tool_prefix"; then
5342 for ac_prog in cl.exe
5343 do
5344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 printf %s "checking for $ac_word... " >&6; }
5348 if test ${ac_cv_prog_CC+y}
5349 then :
5350 printf %s "(cached) " >&6
5351 else case e in #(
5352 e) if test -n "$CC"; then
5353 ac_cv_prog_CC="$CC" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 case $as_dir in #(((
5360 '') as_dir=./ ;;
5361 */) ;;
5362 *) as_dir=$as_dir/ ;;
5363 esac
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370 done
5371 done
5372 IFS=$as_save_IFS
5373
5374 fi ;;
5375 esac
5376 fi
5377 CC=$ac_cv_prog_CC
5378 if test -n "$CC"; then
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5380 printf "%s\n" "$CC" >&6; }
5381 else
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 printf "%s\n" "no" >&6; }
5384 fi
5385
5386
5387 test -n "$CC" && break
5388 done
5389 fi
5390 if test -z "$CC"; then
5391 ac_ct_CC=$CC
5392 for ac_prog in cl.exe
5393 do
5394 # Extract the first word of "$ac_prog", so it can be a program name with args.
5395 set dummy $ac_prog; ac_word=$2
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 printf %s "checking for $ac_word... " >&6; }
5398 if test ${ac_cv_prog_ac_ct_CC+y}
5399 then :
5400 printf %s "(cached) " >&6
5401 else case e in #(
5402 e) if test -n "$ac_ct_CC"; then
5403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408 IFS=$as_save_IFS
5409 case $as_dir in #(((
5410 '') as_dir=./ ;;
5411 */) ;;
5412 *) as_dir=$as_dir/ ;;
5413 esac
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_ac_ct_CC="$ac_prog"
5417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5418 break 2
5419 fi
5420 done
5421 done
5422 IFS=$as_save_IFS
5423
5424 fi ;;
5425 esac
5426 fi
5427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5428 if test -n "$ac_ct_CC"; then
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5430 printf "%s\n" "$ac_ct_CC" >&6; }
5431 else
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 printf "%s\n" "no" >&6; }
5434 fi
5435
5436
5437 test -n "$ac_ct_CC" && break
5438 done
5439
5440 if test "x$ac_ct_CC" = x; then
5441 CC=""
5442 else
5443 case $cross_compiling:$ac_tool_warned in
5444 yes:)
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5446 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447 ac_tool_warned=yes ;;
5448 esac
5449 CC=$ac_ct_CC
5450 fi
5451 fi
5452
5453 fi
5454 if test -z "$CC"; then
5455 if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5457 set dummy ${ac_tool_prefix}clang; ac_word=$2
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 printf %s "checking for $ac_word... " >&6; }
5460 if test ${ac_cv_prog_CC+y}
5461 then :
5462 printf %s "(cached) " >&6
5463 else case e in #(
5464 e) if test -n "$CC"; then
5465 ac_cv_prog_CC="$CC" # Let the user override the test.
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470 IFS=$as_save_IFS
5471 case $as_dir in #(((
5472 '') as_dir=./ ;;
5473 */) ;;
5474 *) as_dir=$as_dir/ ;;
5475 esac
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_CC="${ac_tool_prefix}clang"
5479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482 done
5483 done
5484 IFS=$as_save_IFS
5485
5486 fi ;;
5487 esac
5488 fi
5489 CC=$ac_cv_prog_CC
5490 if test -n "$CC"; then
5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5492 printf "%s\n" "$CC" >&6; }
5493 else
5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 printf "%s\n" "no" >&6; }
5496 fi
5497
5498
5499 fi
5500 if test -z "$ac_cv_prog_CC"; then
5501 ac_ct_CC=$CC
5502 # Extract the first word of "clang", so it can be a program name with args.
5503 set dummy clang; ac_word=$2
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 printf %s "checking for $ac_word... " >&6; }
5506 if test ${ac_cv_prog_ac_ct_CC+y}
5507 then :
5508 printf %s "(cached) " >&6
5509 else case e in #(
5510 e) if test -n "$ac_ct_CC"; then
5511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516 IFS=$as_save_IFS
5517 case $as_dir in #(((
5518 '') as_dir=./ ;;
5519 */) ;;
5520 *) as_dir=$as_dir/ ;;
5521 esac
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5524 ac_cv_prog_ac_ct_CC="clang"
5525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5526 break 2
5527 fi
5528 done
5529 done
5530 IFS=$as_save_IFS
5531
5532 fi ;;
5533 esac
5534 fi
5535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5536 if test -n "$ac_ct_CC"; then
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5538 printf "%s\n" "$ac_ct_CC" >&6; }
5539 else
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 printf "%s\n" "no" >&6; }
5542 fi
5543
5544 if test "x$ac_ct_CC" = x; then
5545 CC=""
5546 else
5547 case $cross_compiling:$ac_tool_warned in
5548 yes:)
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551 ac_tool_warned=yes ;;
5552 esac
5553 CC=$ac_ct_CC
5554 fi
5555 else
5556 CC="$ac_cv_prog_CC"
5557 fi
5558
5559 fi
5560
5561
5562 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5563 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5564 as_fn_error $? "no acceptable C compiler found in \$PATH
5565 See 'config.log' for more details" "$LINENO" 5; }
5566
5567 # Provide some information about the compiler.
5568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5569 set X $ac_compile
5570 ac_compiler=$2
5571 for ac_option in --version -v -V -qversion -version; do
5572 { { ac_try="$ac_compiler $ac_option >&5"
5573 case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576 esac
5577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5578 printf "%s\n" "$ac_try_echo"; } >&5
5579 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5580 ac_status=$?
5581 if test -s conftest.err; then
5582 sed '10a\
5583 ... rest of stderr output deleted ...
5584 10q' conftest.err >conftest.er1
5585 cat conftest.er1 >&5
5586 fi
5587 rm -f conftest.er1 conftest.err
5588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5589 test $ac_status = 0; }
5590 done
5591
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5593 printf %s "checking whether the compiler supports GNU C... " >&6; }
5594 if test ${ac_cv_c_compiler_gnu+y}
5595 then :
5596 printf %s "(cached) " >&6
5597 else case e in #(
5598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600
5601 int
5602 main (void)
5603 {
5604 #ifndef __GNUC__
5605 choke me
5606 #endif
5607
5608 ;
5609 return 0;
5610 }
5611 _ACEOF
5612 if ac_fn_c_try_compile "$LINENO"
5613 then :
5614 ac_compiler_gnu=yes
5615 else case e in #(
5616 e) ac_compiler_gnu=no ;;
5617 esac
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5621 ;;
5622 esac
5623 fi
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5625 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5627
5628 if test $ac_compiler_gnu = yes; then
5629 GCC=yes
5630 else
5631 GCC=
5632 fi
5633 ac_test_CFLAGS=${CFLAGS+y}
5634 ac_save_CFLAGS=$CFLAGS
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5636 printf %s "checking whether $CC accepts -g... " >&6; }
5637 if test ${ac_cv_prog_cc_g+y}
5638 then :
5639 printf %s "(cached) " >&6
5640 else case e in #(
5641 e) ac_save_c_werror_flag=$ac_c_werror_flag
5642 ac_c_werror_flag=yes
5643 ac_cv_prog_cc_g=no
5644 CFLAGS="-g"
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647
5648 int
5649 main (void)
5650 {
5651
5652 ;
5653 return 0;
5654 }
5655 _ACEOF
5656 if ac_fn_c_try_compile "$LINENO"
5657 then :
5658 ac_cv_prog_cc_g=yes
5659 else case e in #(
5660 e) CFLAGS=""
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663
5664 int
5665 main (void)
5666 {
5667
5668 ;
5669 return 0;
5670 }
5671 _ACEOF
5672 if ac_fn_c_try_compile "$LINENO"
5673 then :
5674
5675 else case e in #(
5676 e) ac_c_werror_flag=$ac_save_c_werror_flag
5677 CFLAGS="-g"
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680
5681 int
5682 main (void)
5683 {
5684
5685 ;
5686 return 0;
5687 }
5688 _ACEOF
5689 if ac_fn_c_try_compile "$LINENO"
5690 then :
5691 ac_cv_prog_cc_g=yes
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5694 esac
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5697 esac
5698 fi
5699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5700 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5701 esac
5702 fi
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5704 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5705 if test $ac_test_CFLAGS; then
5706 CFLAGS=$ac_save_CFLAGS
5707 elif test $ac_cv_prog_cc_g = yes; then
5708 if test "$GCC" = yes; then
5709 CFLAGS="-g -O2"
5710 else
5711 CFLAGS="-g"
5712 fi
5713 else
5714 if test "$GCC" = yes; then
5715 CFLAGS="-O2"
5716 else
5717 CFLAGS=
5718 fi
5719 fi
5720 ac_prog_cc_stdc=no
5721 if test x$ac_prog_cc_stdc = xno
5722 then :
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5724 printf %s "checking for $CC option to enable C11 features... " >&6; }
5725 if test ${ac_cv_prog_cc_c11+y}
5726 then :
5727 printf %s "(cached) " >&6
5728 else case e in #(
5729 e) ac_cv_prog_cc_c11=no
5730 ac_save_CC=$CC
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733 $ac_c_conftest_c11_program
5734 _ACEOF
5735 for ac_arg in '' -std=gnu11
5736 do
5737 CC="$ac_save_CC $ac_arg"
5738 if ac_fn_c_try_compile "$LINENO"
5739 then :
5740 ac_cv_prog_cc_c11=$ac_arg
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext conftest.beam
5743 test "x$ac_cv_prog_cc_c11" != "xno" && break
5744 done
5745 rm -f conftest.$ac_ext
5746 CC=$ac_save_CC ;;
5747 esac
5748 fi
5749
5750 if test "x$ac_cv_prog_cc_c11" = xno
5751 then :
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5753 printf "%s\n" "unsupported" >&6; }
5754 else case e in #(
5755 e) if test "x$ac_cv_prog_cc_c11" = x
5756 then :
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5758 printf "%s\n" "none needed" >&6; }
5759 else case e in #(
5760 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5761 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5762 CC="$CC $ac_cv_prog_cc_c11" ;;
5763 esac
5764 fi
5765 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5766 ac_prog_cc_stdc=c11 ;;
5767 esac
5768 fi
5769 fi
5770 if test x$ac_prog_cc_stdc = xno
5771 then :
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5773 printf %s "checking for $CC option to enable C99 features... " >&6; }
5774 if test ${ac_cv_prog_cc_c99+y}
5775 then :
5776 printf %s "(cached) " >&6
5777 else case e in #(
5778 e) ac_cv_prog_cc_c99=no
5779 ac_save_CC=$CC
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 $ac_c_conftest_c99_program
5783 _ACEOF
5784 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5785 do
5786 CC="$ac_save_CC $ac_arg"
5787 if ac_fn_c_try_compile "$LINENO"
5788 then :
5789 ac_cv_prog_cc_c99=$ac_arg
5790 fi
5791 rm -f core conftest.err conftest.$ac_objext conftest.beam
5792 test "x$ac_cv_prog_cc_c99" != "xno" && break
5793 done
5794 rm -f conftest.$ac_ext
5795 CC=$ac_save_CC ;;
5796 esac
5797 fi
5798
5799 if test "x$ac_cv_prog_cc_c99" = xno
5800 then :
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5802 printf "%s\n" "unsupported" >&6; }
5803 else case e in #(
5804 e) if test "x$ac_cv_prog_cc_c99" = x
5805 then :
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5807 printf "%s\n" "none needed" >&6; }
5808 else case e in #(
5809 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5810 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5811 CC="$CC $ac_cv_prog_cc_c99" ;;
5812 esac
5813 fi
5814 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5815 ac_prog_cc_stdc=c99 ;;
5816 esac
5817 fi
5818 fi
5819 if test x$ac_prog_cc_stdc = xno
5820 then :
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5822 printf %s "checking for $CC option to enable C89 features... " >&6; }
5823 if test ${ac_cv_prog_cc_c89+y}
5824 then :
5825 printf %s "(cached) " >&6
5826 else case e in #(
5827 e) ac_cv_prog_cc_c89=no
5828 ac_save_CC=$CC
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5831 $ac_c_conftest_c89_program
5832 _ACEOF
5833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5834 do
5835 CC="$ac_save_CC $ac_arg"
5836 if ac_fn_c_try_compile "$LINENO"
5837 then :
5838 ac_cv_prog_cc_c89=$ac_arg
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext conftest.beam
5841 test "x$ac_cv_prog_cc_c89" != "xno" && break
5842 done
5843 rm -f conftest.$ac_ext
5844 CC=$ac_save_CC ;;
5845 esac
5846 fi
5847
5848 if test "x$ac_cv_prog_cc_c89" = xno
5849 then :
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5851 printf "%s\n" "unsupported" >&6; }
5852 else case e in #(
5853 e) if test "x$ac_cv_prog_cc_c89" = x
5854 then :
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5856 printf "%s\n" "none needed" >&6; }
5857 else case e in #(
5858 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5859 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5860 CC="$CC $ac_cv_prog_cc_c89" ;;
5861 esac
5862 fi
5863 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5864 ac_prog_cc_stdc=c89 ;;
5865 esac
5866 fi
5867 fi
5868
5869 ac_ext=c
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874
5875
5876 ac_ext=c
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5882 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5883 if test ${am_cv_prog_cc_c_o+y}
5884 then :
5885 printf %s "(cached) " >&6
5886 else case e in #(
5887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889
5890 int
5891 main (void)
5892 {
5893
5894 ;
5895 return 0;
5896 }
5897 _ACEOF
5898 # Make sure it works both with $CC and with simple cc.
5899 # Following AC_PROG_CC_C_O, we do the test twice because some
5900 # compilers refuse to overwrite an existing .o file with -o,
5901 # though they will create one.
5902 am_cv_prog_cc_c_o=yes
5903 for am_i in 1 2; do
5904 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5905 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } \
5909 && test -f conftest2.$ac_objext; then
5910 : OK
5911 else
5912 am_cv_prog_cc_c_o=no
5913 break
5914 fi
5915 done
5916 rm -f core conftest*
5917 unset am_i ;;
5918 esac
5919 fi
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5921 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5922 if test "$am_cv_prog_cc_c_o" != yes; then
5923 # Losing compiler, so override with the script.
5924 # FIXME: It is wrong to rewrite CC.
5925 # But if we don't then we get into trouble of one sort or another.
5926 # A longer-term fix would be to have automake use am__CC in this case,
5927 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5928 CC="$am_aux_dir/compile $CC"
5929 fi
5930 ac_ext=c
5931 ac_cpp='$CPP $CPPFLAGS'
5932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5935
5936
5937 depcc="$CC" am_compiler_list=
5938
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5940 printf %s "checking dependency style of $depcc... " >&6; }
5941 if test ${am_cv_CC_dependencies_compiler_type+y}
5942 then :
5943 printf %s "(cached) " >&6
5944 else case e in #(
5945 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5946 # We make a subdir and do the tests there. Otherwise we can end up
5947 # making bogus files that we don't know about and never remove. For
5948 # instance it was reported that on HP-UX the gcc test will end up
5949 # making a dummy file named 'D' -- because '-MD' means "put the output
5950 # in D".
5951 rm -rf conftest.dir
5952 mkdir conftest.dir
5953 # Copy depcomp to subdir because otherwise we won't find it if we're
5954 # using a relative directory.
5955 cp "$am_depcomp" conftest.dir
5956 cd conftest.dir
5957 # We will build objects and dependencies in a subdirectory because
5958 # it helps to detect inapplicable dependency modes. For instance
5959 # both Tru64's cc and ICC support -MD to output dependencies as a
5960 # side effect of compilation, but ICC will put the dependencies in
5961 # the current directory while Tru64 will put them in the object
5962 # directory.
5963 mkdir sub
5964
5965 am_cv_CC_dependencies_compiler_type=none
5966 if test "$am_compiler_list" = ""; then
5967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5968 fi
5969 am__universal=false
5970 case " $depcc " in #(
5971 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5972 esac
5973
5974 for depmode in $am_compiler_list; do
5975 # Setup a source with many dependencies, because some compilers
5976 # like to wrap large dependency lists on column 80 (with \), and
5977 # we should not choose a depcomp mode which is confused by this.
5978 #
5979 # We need to recreate these files for each test, as the compiler may
5980 # overwrite some of them when testing with obscure command lines.
5981 # This happens at least with the AIX C compiler.
5982 : > sub/conftest.c
5983 for i in 1 2 3 4 5 6; do
5984 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5985 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5986 # Solaris 10 /bin/sh.
5987 echo '/* dummy */' > sub/conftst$i.h
5988 done
5989 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5990
5991 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5992 # mode. It turns out that the SunPro C++ compiler does not properly
5993 # handle '-M -o', and we need to detect this. Also, some Intel
5994 # versions had trouble with output in subdirs.
5995 am__obj=sub/conftest.${OBJEXT-o}
5996 am__minus_obj="-o $am__obj"
5997 case $depmode in
5998 gcc)
5999 # This depmode causes a compiler race in universal mode.
6000 test "$am__universal" = false || continue
6001 ;;
6002 nosideeffect)
6003 # After this tag, mechanisms are not by side-effect, so they'll
6004 # only be used when explicitly requested.
6005 if test "x$enable_dependency_tracking" = xyes; then
6006 continue
6007 else
6008 break
6009 fi
6010 ;;
6011 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6012 # This compiler won't grok '-c -o', but also, the minuso test has
6013 # not run yet. These depmodes are late enough in the game, and
6014 # so weak that their functioning should not be impacted.
6015 am__obj=conftest.${OBJEXT-o}
6016 am__minus_obj=
6017 ;;
6018 none) break ;;
6019 esac
6020 if depmode=$depmode \
6021 source=sub/conftest.c object=$am__obj \
6022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6023 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6024 >/dev/null 2>conftest.err &&
6025 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6026 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6027 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6028 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6029 # icc doesn't choke on unknown options, it will just issue warnings
6030 # or remarks (even with -Werror). So we grep stderr for any message
6031 # that says an option was ignored or not supported.
6032 # When given -MP, icc 7.0 and 7.1 complain thus:
6033 # icc: Command line warning: ignoring option '-M'; no argument required
6034 # The diagnosis changed in icc 8.0:
6035 # icc: Command line remark: option '-MP' not supported
6036 if (grep 'ignoring option' conftest.err ||
6037 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6038 am_cv_CC_dependencies_compiler_type=$depmode
6039 break
6040 fi
6041 fi
6042 done
6043
6044 cd ..
6045 rm -rf conftest.dir
6046 else
6047 am_cv_CC_dependencies_compiler_type=none
6048 fi
6049 ;;
6050 esac
6051 fi
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6053 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6054 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6055
6056 if
6057 test "x$enable_dependency_tracking" != xno \
6058 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6059 am__fastdepCC_TRUE=
6060 am__fastdepCC_FALSE='#'
6061 else
6062 am__fastdepCC_TRUE='#'
6063 am__fastdepCC_FALSE=
6064 fi
6065
6066
6067
6068
6069
6070
6071 case `pwd` in
6072 *\ * | *\ *)
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6074 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6075 esac
6076
6077
6078
6079 macro_version='2.5.4.1-baa1-dirty'
6080 macro_revision='2.5.4.1'
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 ltmain=$ac_aux_dir/ltmain.sh
6096
6097
6098
6099 # Make sure we can run config.sub.
6100 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6101 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6102
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6104 printf %s "checking build system type... " >&6; }
6105 if test ${ac_cv_build+y}
6106 then :
6107 printf %s "(cached) " >&6
6108 else case e in #(
6109 e) ac_build_alias=$build_alias
6110 test "x$ac_build_alias" = x &&
6111 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6112 test "x$ac_build_alias" = x &&
6113 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6114 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6115 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6116 ;;
6117 esac
6118 fi
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6120 printf "%s\n" "$ac_cv_build" >&6; }
6121 case $ac_cv_build in
6122 *-*-*) ;;
6123 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6124 esac
6125 build=$ac_cv_build
6126 ac_save_IFS=$IFS; IFS='-'
6127 set x $ac_cv_build
6128 shift
6129 build_cpu=$1
6130 build_vendor=$2
6131 shift; shift
6132 # Remember, the first character of IFS is used to create $*,
6133 # except with old shells:
6134 build_os=$*
6135 IFS=$ac_save_IFS
6136 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6137
6138
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6140 printf %s "checking host system type... " >&6; }
6141 if test ${ac_cv_host+y}
6142 then :
6143 printf %s "(cached) " >&6
6144 else case e in #(
6145 e) if test "x$host_alias" = x; then
6146 ac_cv_host=$ac_cv_build
6147 else
6148 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6149 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6150 fi
6151 ;;
6152 esac
6153 fi
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6155 printf "%s\n" "$ac_cv_host" >&6; }
6156 case $ac_cv_host in
6157 *-*-*) ;;
6158 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6159 esac
6160 host=$ac_cv_host
6161 ac_save_IFS=$IFS; IFS='-'
6162 set x $ac_cv_host
6163 shift
6164 host_cpu=$1
6165 host_vendor=$2
6166 shift; shift
6167 # Remember, the first character of IFS is used to create $*,
6168 # except with old shells:
6169 host_os=$*
6170 IFS=$ac_save_IFS
6171 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6172
6173
6174 # Backslashify metacharacters that are still active within
6175 # double-quoted strings.
6176 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6177
6178 # Same as above, but do not quote variable references.
6179 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6180
6181 # Sed substitution to delay expansion of an escaped shell variable in a
6182 # double_quote_subst'ed string.
6183 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6184
6185 # Sed substitution to delay expansion of an escaped single quote.
6186 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6187
6188 # Sed substitution to avoid accidental globbing in evaled expressions
6189 no_glob_subst='s/\*/\\\*/g'
6190
6191 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6192 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6193 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6194
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6196 printf %s "checking how to print strings... " >&6; }
6197 # Test print first, because it will be a builtin if present.
6198 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6199 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6200 ECHO='print -r --'
6201 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6202 ECHO='printf %s\n'
6203 else
6204 # Use this function as a fallback that always works.
6205 func_fallback_echo ()
6206 {
6207 eval 'cat <<_LTECHO_EOF
6208 $1
6209 _LTECHO_EOF'
6210 }
6211 ECHO='func_fallback_echo'
6212 fi
6213
6214 # func_echo_all arg...
6215 # Invoke $ECHO with all args, space-separated.
6216 func_echo_all ()
6217 {
6218 $ECHO ""
6219 }
6220
6221 case $ECHO in
6222 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6223 printf "%s\n" "printf" >&6; } ;;
6224 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6225 printf "%s\n" "print -r" >&6; } ;;
6226 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6227 printf "%s\n" "cat" >&6; } ;;
6228 esac
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6244 printf %s "checking for a sed that does not truncate output... " >&6; }
6245 if test ${ac_cv_path_SED+y}
6246 then :
6247 printf %s "(cached) " >&6
6248 else case e in #(
6249 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6250 for ac_i in 1 2 3 4 5 6 7; do
6251 ac_script="$ac_script$as_nl$ac_script"
6252 done
6253 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6254 { ac_script=; unset ac_script;}
6255 if test -z "$SED"; then
6256 ac_path_SED_found=false
6257 # Loop through the user's path and test for each of PROGNAME-LIST
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261 IFS=$as_save_IFS
6262 case $as_dir in #(((
6263 '') as_dir=./ ;;
6264 */) ;;
6265 *) as_dir=$as_dir/ ;;
6266 esac
6267 for ac_prog in sed gsed
6268 do
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6271 as_fn_executable_p "$ac_path_SED" || continue
6272 # Check for GNU ac_path_SED and select it if it is found.
6273 # Check for GNU $ac_path_SED
6274 case `"$ac_path_SED" --version 2>&1` in #(
6275 *GNU*)
6276 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6277 #(
6278 *)
6279 ac_count=0
6280 printf %s 0123456789 >"conftest.in"
6281 while :
6282 do
6283 cat "conftest.in" "conftest.in" >"conftest.tmp"
6284 mv "conftest.tmp" "conftest.in"
6285 cp "conftest.in" "conftest.nl"
6286 printf "%s\n" '' >> "conftest.nl"
6287 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6289 as_fn_arith $ac_count + 1 && ac_count=$as_val
6290 if test $ac_count -gt ${ac_path_SED_max-0}; then
6291 # Best one so far, save it but keep looking for a better one
6292 ac_cv_path_SED="$ac_path_SED"
6293 ac_path_SED_max=$ac_count
6294 fi
6295 # 10*(2^10) chars as input seems more than enough
6296 test $ac_count -gt 10 && break
6297 done
6298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6299 esac
6300
6301 $ac_path_SED_found && break 3
6302 done
6303 done
6304 done
6305 IFS=$as_save_IFS
6306 if test -z "$ac_cv_path_SED"; then
6307 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6308 fi
6309 else
6310 ac_cv_path_SED=$SED
6311 fi
6312 ;;
6313 esac
6314 fi
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6316 printf "%s\n" "$ac_cv_path_SED" >&6; }
6317 SED="$ac_cv_path_SED"
6318 rm -f conftest.sed
6319
6320 test -z "$SED" && SED=sed
6321 Xsed="$SED -e 1s/^X//"
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6334 printf %s "checking for grep that handles long lines and -e... " >&6; }
6335 if test ${ac_cv_path_GREP+y}
6336 then :
6337 printf %s "(cached) " >&6
6338 else case e in #(
6339 e) if test -z "$GREP"; then
6340 ac_path_GREP_found=false
6341 # Loop through the user's path and test for each of PROGNAME-LIST
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6344 do
6345 IFS=$as_save_IFS
6346 case $as_dir in #(((
6347 '') as_dir=./ ;;
6348 */) ;;
6349 *) as_dir=$as_dir/ ;;
6350 esac
6351 for ac_prog in grep ggrep
6352 do
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6355 as_fn_executable_p "$ac_path_GREP" || continue
6356 # Check for GNU ac_path_GREP and select it if it is found.
6357 # Check for GNU $ac_path_GREP
6358 case `"$ac_path_GREP" --version 2>&1` in #(
6359 *GNU*)
6360 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6361 #(
6362 *)
6363 ac_count=0
6364 printf %s 0123456789 >"conftest.in"
6365 while :
6366 do
6367 cat "conftest.in" "conftest.in" >"conftest.tmp"
6368 mv "conftest.tmp" "conftest.in"
6369 cp "conftest.in" "conftest.nl"
6370 printf "%s\n" 'GREP' >> "conftest.nl"
6371 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6373 as_fn_arith $ac_count + 1 && ac_count=$as_val
6374 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6375 # Best one so far, save it but keep looking for a better one
6376 ac_cv_path_GREP="$ac_path_GREP"
6377 ac_path_GREP_max=$ac_count
6378 fi
6379 # 10*(2^10) chars as input seems more than enough
6380 test $ac_count -gt 10 && break
6381 done
6382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6383 esac
6384
6385 $ac_path_GREP_found && break 3
6386 done
6387 done
6388 done
6389 IFS=$as_save_IFS
6390 if test -z "$ac_cv_path_GREP"; then
6391 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6392 fi
6393 else
6394 ac_cv_path_GREP=$GREP
6395 fi
6396 ;;
6397 esac
6398 fi
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6400 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6401 GREP="$ac_cv_path_GREP"
6402
6403
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6405 printf %s "checking for egrep... " >&6; }
6406 if test ${ac_cv_path_EGREP+y}
6407 then :
6408 printf %s "(cached) " >&6
6409 else case e in #(
6410 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6411 then ac_cv_path_EGREP="$GREP -E"
6412 else
6413 if test -z "$EGREP"; then
6414 ac_path_EGREP_found=false
6415 # Loop through the user's path and test for each of PROGNAME-LIST
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6418 do
6419 IFS=$as_save_IFS
6420 case $as_dir in #(((
6421 '') as_dir=./ ;;
6422 */) ;;
6423 *) as_dir=$as_dir/ ;;
6424 esac
6425 for ac_prog in egrep
6426 do
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6429 as_fn_executable_p "$ac_path_EGREP" || continue
6430 # Check for GNU ac_path_EGREP and select it if it is found.
6431 # Check for GNU $ac_path_EGREP
6432 case `"$ac_path_EGREP" --version 2>&1` in #(
6433 *GNU*)
6434 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6435 #(
6436 *)
6437 ac_count=0
6438 printf %s 0123456789 >"conftest.in"
6439 while :
6440 do
6441 cat "conftest.in" "conftest.in" >"conftest.tmp"
6442 mv "conftest.tmp" "conftest.in"
6443 cp "conftest.in" "conftest.nl"
6444 printf "%s\n" 'EGREP' >> "conftest.nl"
6445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6447 as_fn_arith $ac_count + 1 && ac_count=$as_val
6448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6449 # Best one so far, save it but keep looking for a better one
6450 ac_cv_path_EGREP="$ac_path_EGREP"
6451 ac_path_EGREP_max=$ac_count
6452 fi
6453 # 10*(2^10) chars as input seems more than enough
6454 test $ac_count -gt 10 && break
6455 done
6456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6457 esac
6458
6459 $ac_path_EGREP_found && break 3
6460 done
6461 done
6462 done
6463 IFS=$as_save_IFS
6464 if test -z "$ac_cv_path_EGREP"; then
6465 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6466 fi
6467 else
6468 ac_cv_path_EGREP=$EGREP
6469 fi
6470
6471 fi ;;
6472 esac
6473 fi
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6475 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6476 EGREP="$ac_cv_path_EGREP"
6477
6478 EGREP_TRADITIONAL=$EGREP
6479 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6480
6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6482 printf %s "checking for fgrep... " >&6; }
6483 if test ${ac_cv_path_FGREP+y}
6484 then :
6485 printf %s "(cached) " >&6
6486 else case e in #(
6487 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6488 then ac_cv_path_FGREP="$GREP -F"
6489 else
6490 if test -z "$FGREP"; then
6491 ac_path_FGREP_found=false
6492 # Loop through the user's path and test for each of PROGNAME-LIST
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6495 do
6496 IFS=$as_save_IFS
6497 case $as_dir in #(((
6498 '') as_dir=./ ;;
6499 */) ;;
6500 *) as_dir=$as_dir/ ;;
6501 esac
6502 for ac_prog in fgrep
6503 do
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6506 as_fn_executable_p "$ac_path_FGREP" || continue
6507 # Check for GNU ac_path_FGREP and select it if it is found.
6508 # Check for GNU $ac_path_FGREP
6509 case `"$ac_path_FGREP" --version 2>&1` in #(
6510 *GNU*)
6511 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6512 #(
6513 *)
6514 ac_count=0
6515 printf %s 0123456789 >"conftest.in"
6516 while :
6517 do
6518 cat "conftest.in" "conftest.in" >"conftest.tmp"
6519 mv "conftest.tmp" "conftest.in"
6520 cp "conftest.in" "conftest.nl"
6521 printf "%s\n" 'FGREP' >> "conftest.nl"
6522 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6524 as_fn_arith $ac_count + 1 && ac_count=$as_val
6525 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6526 # Best one so far, save it but keep looking for a better one
6527 ac_cv_path_FGREP="$ac_path_FGREP"
6528 ac_path_FGREP_max=$ac_count
6529 fi
6530 # 10*(2^10) chars as input seems more than enough
6531 test $ac_count -gt 10 && break
6532 done
6533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6534 esac
6535
6536 $ac_path_FGREP_found && break 3
6537 done
6538 done
6539 done
6540 IFS=$as_save_IFS
6541 if test -z "$ac_cv_path_FGREP"; then
6542 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6543 fi
6544 else
6545 ac_cv_path_FGREP=$FGREP
6546 fi
6547
6548 fi ;;
6549 esac
6550 fi
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6552 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6553 FGREP="$ac_cv_path_FGREP"
6554
6555
6556 test -z "$GREP" && GREP=grep
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576 # Check whether --with-gnu-ld was given.
6577 if test ${with_gnu_ld+y}
6578 then :
6579 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6580 else case e in #(
6581 e) with_gnu_ld=no ;;
6582 esac
6583 fi
6584
6585 ac_prog=ld
6586 if test yes = "$GCC"; then
6587 # Check if gcc -print-prog-name=ld gives a path.
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6589 printf %s "checking for ld used by $CC... " >&6; }
6590 case $host in
6591 *-*-mingw* | *-*-windows*)
6592 # gcc leaves a trailing carriage return, which upsets mingw
6593 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6594 *)
6595 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6596 esac
6597 case $ac_prog in
6598 # Accept absolute paths.
6599 [\\/]* | ?:[\\/]*)
6600 re_direlt='/[^/][^/]*/\.\./'
6601 # Canonicalize the pathname of ld
6602 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6603 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6604 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6605 done
6606 test -z "$LD" && LD=$ac_prog
6607 ;;
6608 "")
6609 # If it fails, then pretend we aren't using GCC.
6610 ac_prog=ld
6611 ;;
6612 *)
6613 # If it is relative, then search for the first ld in PATH.
6614 with_gnu_ld=unknown
6615 ;;
6616 esac
6617 elif test yes = "$with_gnu_ld"; then
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6619 printf %s "checking for GNU ld... " >&6; }
6620 else
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6622 printf %s "checking for non-GNU ld... " >&6; }
6623 fi
6624 if test ${lt_cv_path_LD+y}
6625 then :
6626 printf %s "(cached) " >&6
6627 else case e in #(
6628 e) if test -z "$LD"; then
6629 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6630 for ac_dir in $PATH; do
6631 IFS=$lt_save_ifs
6632 test -z "$ac_dir" && ac_dir=.
6633 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6634 lt_cv_path_LD=$ac_dir/$ac_prog
6635 # Check to see if the program is GNU ld. I'd rather use --version,
6636 # but apparently some variants of GNU ld only accept -v.
6637 # Break only if it was the GNU/non-GNU ld that we prefer.
6638 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6639 *GNU* | *'with BFD'*)
6640 test no != "$with_gnu_ld" && break
6641 ;;
6642 *)
6643 test yes != "$with_gnu_ld" && break
6644 ;;
6645 esac
6646 fi
6647 done
6648 IFS=$lt_save_ifs
6649 else
6650 lt_cv_path_LD=$LD # Let the user override the test with a path.
6651 fi ;;
6652 esac
6653 fi
6654
6655 LD=$lt_cv_path_LD
6656 if test -n "$LD"; then
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6658 printf "%s\n" "$LD" >&6; }
6659 else
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 printf "%s\n" "no" >&6; }
6662 fi
6663 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6665 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6666 if test ${lt_cv_prog_gnu_ld+y}
6667 then :
6668 printf %s "(cached) " >&6
6669 else case e in #(
6670 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6671 case `$LD -v 2>&1 </dev/null` in
6672 *GNU* | *'with BFD'*)
6673 lt_cv_prog_gnu_ld=yes
6674 ;;
6675 *)
6676 lt_cv_prog_gnu_ld=no
6677 ;;
6678 esac ;;
6679 esac
6680 fi
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6682 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6683 with_gnu_ld=$lt_cv_prog_gnu_ld
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6694 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6695 if test ${lt_cv_path_NM+y}
6696 then :
6697 printf %s "(cached) " >&6
6698 else case e in #(
6699 e) if test -n "$NM"; then
6700 # Let the user override the test.
6701 lt_cv_path_NM=$NM
6702 else
6703 lt_nm_to_check=${ac_tool_prefix}nm
6704 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6705 lt_nm_to_check="$lt_nm_to_check nm"
6706 fi
6707 for lt_tmp_nm in $lt_nm_to_check; do
6708 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6709 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6710 IFS=$lt_save_ifs
6711 test -z "$ac_dir" && ac_dir=.
6712 tmp_nm=$ac_dir/$lt_tmp_nm
6713 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6714 # Check to see if the nm accepts a BSD-compat flag.
6715 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6716 # nm: unknown option "B" ignored
6717 # Tru64's nm complains that /dev/null is an invalid object file
6718 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6719 case $build_os in
6720 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6721 *) lt_bad_file=/dev/null ;;
6722 esac
6723 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6724 *$lt_bad_file* | *'Invalid file or object type'*)
6725 lt_cv_path_NM="$tmp_nm -B"
6726 break 2
6727 ;;
6728 *)
6729 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6730 */dev/null*)
6731 lt_cv_path_NM="$tmp_nm -p"
6732 break 2
6733 ;;
6734 *)
6735 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6736 continue # so that we can try to find one that supports BSD flags
6737 ;;
6738 esac
6739 ;;
6740 esac
6741 fi
6742 done
6743 IFS=$lt_save_ifs
6744 done
6745 : ${lt_cv_path_NM=no}
6746 fi ;;
6747 esac
6748 fi
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6750 printf "%s\n" "$lt_cv_path_NM" >&6; }
6751 if test no != "$lt_cv_path_NM"; then
6752 NM=$lt_cv_path_NM
6753 else
6754 # Didn't find any BSD compatible name lister, look for dumpbin.
6755 if test -n "$DUMPBIN"; then :
6756 # Let the user override the test.
6757 else
6758 if test -n "$ac_tool_prefix"; then
6759 for ac_prog in dumpbin "link -dump"
6760 do
6761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 printf %s "checking for $ac_word... " >&6; }
6765 if test ${ac_cv_prog_DUMPBIN+y}
6766 then :
6767 printf %s "(cached) " >&6
6768 else case e in #(
6769 e) if test -n "$DUMPBIN"; then
6770 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775 IFS=$as_save_IFS
6776 case $as_dir in #(((
6777 '') as_dir=./ ;;
6778 */) ;;
6779 *) as_dir=$as_dir/ ;;
6780 esac
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6783 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791 fi ;;
6792 esac
6793 fi
6794 DUMPBIN=$ac_cv_prog_DUMPBIN
6795 if test -n "$DUMPBIN"; then
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6797 printf "%s\n" "$DUMPBIN" >&6; }
6798 else
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 printf "%s\n" "no" >&6; }
6801 fi
6802
6803
6804 test -n "$DUMPBIN" && break
6805 done
6806 fi
6807 if test -z "$DUMPBIN"; then
6808 ac_ct_DUMPBIN=$DUMPBIN
6809 for ac_prog in dumpbin "link -dump"
6810 do
6811 # Extract the first word of "$ac_prog", so it can be a program name with args.
6812 set dummy $ac_prog; ac_word=$2
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 printf %s "checking for $ac_word... " >&6; }
6815 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6816 then :
6817 printf %s "(cached) " >&6
6818 else case e in #(
6819 e) if test -n "$ac_ct_DUMPBIN"; then
6820 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825 IFS=$as_save_IFS
6826 case $as_dir in #(((
6827 '') as_dir=./ ;;
6828 */) ;;
6829 *) as_dir=$as_dir/ ;;
6830 esac
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi ;;
6842 esac
6843 fi
6844 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6845 if test -n "$ac_ct_DUMPBIN"; then
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6847 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6848 else
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 printf "%s\n" "no" >&6; }
6851 fi
6852
6853
6854 test -n "$ac_ct_DUMPBIN" && break
6855 done
6856
6857 if test "x$ac_ct_DUMPBIN" = x; then
6858 DUMPBIN=":"
6859 else
6860 case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866 DUMPBIN=$ac_ct_DUMPBIN
6867 fi
6868 fi
6869
6870 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6871 *COFF*)
6872 DUMPBIN="$DUMPBIN -symbols -headers"
6873 ;;
6874 *)
6875 DUMPBIN=:
6876 ;;
6877 esac
6878 fi
6879
6880 if test : != "$DUMPBIN"; then
6881 NM=$DUMPBIN
6882 fi
6883 fi
6884 test -z "$NM" && NM=nm
6885
6886
6887
6888
6889
6890
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6892 printf %s "checking the name lister ($NM) interface... " >&6; }
6893 if test ${lt_cv_nm_interface+y}
6894 then :
6895 printf %s "(cached) " >&6
6896 else case e in #(
6897 e) lt_cv_nm_interface="BSD nm"
6898 echo "int some_variable = 0;" > conftest.$ac_ext
6899 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6900 (eval "$ac_compile" 2>conftest.err)
6901 cat conftest.err >&5
6902 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6903 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6904 cat conftest.err >&5
6905 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6906 cat conftest.out >&5
6907 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6908 lt_cv_nm_interface="MS dumpbin"
6909 fi
6910 rm -f conftest* ;;
6911 esac
6912 fi
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6914 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6915
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6917 printf %s "checking whether ln -s works... " >&6; }
6918 LN_S=$as_ln_s
6919 if test "$LN_S" = "ln -s"; then
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6921 printf "%s\n" "yes" >&6; }
6922 else
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6924 printf "%s\n" "no, using $LN_S" >&6; }
6925 fi
6926
6927 # find the maximum length of command line arguments
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6929 printf %s "checking the maximum length of command line arguments... " >&6; }
6930 if test ${lt_cv_sys_max_cmd_len+y}
6931 then :
6932 printf %s "(cached) " >&6
6933 else case e in #(
6934 e) i=0
6935 teststring=ABCD
6936
6937 case $build_os in
6938 msdosdjgpp*)
6939 # On DJGPP, this test can blow up pretty badly due to problems in libc
6940 # (any single argument exceeding 2000 bytes causes a buffer overrun
6941 # during glob expansion). Even if it were fixed, the result of this
6942 # check would be larger than it should be.
6943 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6944 ;;
6945
6946 gnu* | ironclad*)
6947 # Under GNU Hurd and Ironclad, this test is not required because there
6948 # is no limit to the length of command line arguments.
6949 # Libtool will interpret -1 as no limit whatsoever
6950 lt_cv_sys_max_cmd_len=-1;
6951 ;;
6952
6953 cygwin* | mingw* | windows* | cegcc*)
6954 # On Win9x/ME, this test blows up -- it succeeds, but takes
6955 # about 5 minutes as the teststring grows exponentially.
6956 # Worse, since 9x/ME are not pre-emptively multitasking,
6957 # you end up with a "frozen" computer, even though with patience
6958 # the test eventually succeeds (with a max line length of 256k).
6959 # Instead, let's just punt: use the minimum linelength reported by
6960 # all of the supported platforms: 8192 (on NT/2K/XP).
6961 lt_cv_sys_max_cmd_len=8192;
6962 ;;
6963
6964 mint*)
6965 # On MiNT this can take a long time and run out of memory.
6966 lt_cv_sys_max_cmd_len=8192;
6967 ;;
6968
6969 amigaos*)
6970 # On AmigaOS with pdksh, this test takes hours, literally.
6971 # So we just punt and use a minimum line length of 8192.
6972 lt_cv_sys_max_cmd_len=8192;
6973 ;;
6974
6975 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6976 # This has been around since 386BSD, at least. Likely further.
6977 if test -x /sbin/sysctl; then
6978 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6979 elif test -x /usr/sbin/sysctl; then
6980 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6981 else
6982 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6983 fi
6984 # And add a safety zone
6985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6987 ;;
6988
6989 interix*)
6990 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6991 lt_cv_sys_max_cmd_len=196608
6992 ;;
6993
6994 os2*)
6995 # The test takes a long time on OS/2.
6996 lt_cv_sys_max_cmd_len=8192
6997 ;;
6998
6999 osf*)
7000 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7001 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7002 # nice to cause kernel panics so lets avoid the loop below.
7003 # First set a reasonable default.
7004 lt_cv_sys_max_cmd_len=16384
7005 #
7006 if test -x /sbin/sysconfig; then
7007 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7008 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7009 esac
7010 fi
7011 ;;
7012 sco3.2v5*)
7013 lt_cv_sys_max_cmd_len=102400
7014 ;;
7015 sysv5* | sco5v6* | sysv4.2uw2*)
7016 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7017 if test -n "$kargmax"; then
7018 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7019 else
7020 lt_cv_sys_max_cmd_len=32768
7021 fi
7022 ;;
7023 *)
7024 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7025 if test -n "$lt_cv_sys_max_cmd_len" && \
7026 test undefined != "$lt_cv_sys_max_cmd_len"; then
7027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7029 else
7030 # Make teststring a little bigger before we do anything with it.
7031 # a 1K string should be a reasonable start.
7032 for i in 1 2 3 4 5 6 7 8; do
7033 teststring=$teststring$teststring
7034 done
7035 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7036 # If test is not a shell built-in, we'll probably end up computing a
7037 # maximum length that is only half of the actual maximum length, but
7038 # we can't tell.
7039 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7040 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7041 test 17 != "$i" # 1/2 MB should be enough
7042 do
7043 i=`expr $i + 1`
7044 teststring=$teststring$teststring
7045 done
7046 # Only check the string length outside the loop.
7047 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7048 teststring=
7049 # Add a significant safety factor because C++ compilers can tack on
7050 # massive amounts of additional arguments before passing them to the
7051 # linker. It appears as though 1/2 is a usable value.
7052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7053 fi
7054 ;;
7055 esac
7056 ;;
7057 esac
7058 fi
7059
7060 if test -n "$lt_cv_sys_max_cmd_len"; then
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7062 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7063 else
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7065 printf "%s\n" "none" >&6; }
7066 fi
7067 max_cmd_len=$lt_cv_sys_max_cmd_len
7068
7069
7070
7071
7072
7073
7074 : ${CP="cp -f"}
7075 : ${MV="mv -f"}
7076 : ${RM="rm -f"}
7077
7078 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7079 lt_unset=unset
7080 else
7081 lt_unset=false
7082 fi
7083
7084
7085
7086
7087
7088 # test EBCDIC or ASCII
7089 case `echo X|tr X '\101'` in
7090 A) # ASCII based system
7091 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7092 lt_SP2NL='tr \040 \012'
7093 lt_NL2SP='tr \015\012 \040\040'
7094 ;;
7095 *) # EBCDIC based system
7096 lt_SP2NL='tr \100 \n'
7097 lt_NL2SP='tr \r\n \100\100'
7098 ;;
7099 esac
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7110 printf %s "checking how to convert $build file names to $host format... " >&6; }
7111 if test ${lt_cv_to_host_file_cmd+y}
7112 then :
7113 printf %s "(cached) " >&6
7114 else case e in #(
7115 e) case $host in
7116 *-*-mingw* )
7117 case $build in
7118 *-*-mingw* | *-*-windows* ) # actually msys
7119 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7120 ;;
7121 *-*-cygwin* )
7122 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7123 ;;
7124 * ) # otherwise, assume *nix
7125 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7126 ;;
7127 esac
7128 ;;
7129 *-*-cygwin* )
7130 case $build in
7131 *-*-mingw* | *-*-windows* ) # actually msys
7132 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7133 ;;
7134 *-*-cygwin* )
7135 lt_cv_to_host_file_cmd=func_convert_file_noop
7136 ;;
7137 * ) # otherwise, assume *nix
7138 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7139 ;;
7140 esac
7141 ;;
7142 * ) # unhandled hosts (and "normal" native builds)
7143 lt_cv_to_host_file_cmd=func_convert_file_noop
7144 ;;
7145 esac
7146 ;;
7147 esac
7148 fi
7149
7150 to_host_file_cmd=$lt_cv_to_host_file_cmd
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7152 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7153
7154
7155
7156
7157
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7159 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7160 if test ${lt_cv_to_tool_file_cmd+y}
7161 then :
7162 printf %s "(cached) " >&6
7163 else case e in #(
7164 e) #assume ordinary cross tools, or native build.
7165 lt_cv_to_tool_file_cmd=func_convert_file_noop
7166 case $host in
7167 *-*-mingw* | *-*-windows* )
7168 case $build in
7169 *-*-mingw* | *-*-windows* ) # actually msys
7170 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7171 ;;
7172 esac
7173 ;;
7174 esac
7175 ;;
7176 esac
7177 fi
7178
7179 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7181 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7182
7183
7184
7185
7186
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7188 printf %s "checking for $LD option to reload object files... " >&6; }
7189 if test ${lt_cv_ld_reload_flag+y}
7190 then :
7191 printf %s "(cached) " >&6
7192 else case e in #(
7193 e) lt_cv_ld_reload_flag='-r' ;;
7194 esac
7195 fi
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7197 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7198 reload_flag=$lt_cv_ld_reload_flag
7199 case $reload_flag in
7200 "" | " "*) ;;
7201 *) reload_flag=" $reload_flag" ;;
7202 esac
7203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7204 case $host_os in
7205 cygwin* | mingw* | windows* | pw32* | cegcc*)
7206 if test yes != "$GCC"; then
7207 reload_cmds=false
7208 fi
7209 ;;
7210 darwin*)
7211 if test yes = "$GCC"; then
7212 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7213 else
7214 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7215 fi
7216 ;;
7217 esac
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227 # Extract the first word of "file", so it can be a program name with args.
7228 set dummy file; ac_word=$2
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 printf %s "checking for $ac_word... " >&6; }
7231 if test ${ac_cv_prog_FILECMD+y}
7232 then :
7233 printf %s "(cached) " >&6
7234 else case e in #(
7235 e) if test -n "$FILECMD"; then
7236 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241 IFS=$as_save_IFS
7242 case $as_dir in #(((
7243 '') as_dir=./ ;;
7244 */) ;;
7245 *) as_dir=$as_dir/ ;;
7246 esac
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7249 ac_cv_prog_FILECMD="file"
7250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7251 break 2
7252 fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7256
7257 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7258 fi ;;
7259 esac
7260 fi
7261 FILECMD=$ac_cv_prog_FILECMD
7262 if test -n "$FILECMD"; then
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7264 printf "%s\n" "$FILECMD" >&6; }
7265 else
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 printf "%s\n" "no" >&6; }
7268 fi
7269
7270
7271
7272
7273
7274
7275
7276
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 printf %s "checking for $ac_word... " >&6; }
7282 if test ${ac_cv_prog_OBJDUMP+y}
7283 then :
7284 printf %s "(cached) " >&6
7285 else case e in #(
7286 e) if test -n "$OBJDUMP"; then
7287 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7288 else
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292 IFS=$as_save_IFS
7293 case $as_dir in #(((
7294 '') as_dir=./ ;;
7295 */) ;;
7296 *) as_dir=$as_dir/ ;;
7297 esac
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304 done
7305 done
7306 IFS=$as_save_IFS
7307
7308 fi ;;
7309 esac
7310 fi
7311 OBJDUMP=$ac_cv_prog_OBJDUMP
7312 if test -n "$OBJDUMP"; then
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7314 printf "%s\n" "$OBJDUMP" >&6; }
7315 else
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 printf "%s\n" "no" >&6; }
7318 fi
7319
7320
7321 fi
7322 if test -z "$ac_cv_prog_OBJDUMP"; then
7323 ac_ct_OBJDUMP=$OBJDUMP
7324 # Extract the first word of "objdump", so it can be a program name with args.
7325 set dummy objdump; ac_word=$2
7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 printf %s "checking for $ac_word... " >&6; }
7328 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7329 then :
7330 printf %s "(cached) " >&6
7331 else case e in #(
7332 e) if test -n "$ac_ct_OBJDUMP"; then
7333 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338 IFS=$as_save_IFS
7339 case $as_dir in #(((
7340 '') as_dir=./ ;;
7341 */) ;;
7342 *) as_dir=$as_dir/ ;;
7343 esac
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350 done
7351 done
7352 IFS=$as_save_IFS
7353
7354 fi ;;
7355 esac
7356 fi
7357 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7358 if test -n "$ac_ct_OBJDUMP"; then
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7360 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7361 else
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 printf "%s\n" "no" >&6; }
7364 fi
7365
7366 if test "x$ac_ct_OBJDUMP" = x; then
7367 OBJDUMP="false"
7368 else
7369 case $cross_compiling:$ac_tool_warned in
7370 yes:)
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned=yes ;;
7374 esac
7375 OBJDUMP=$ac_ct_OBJDUMP
7376 fi
7377 else
7378 OBJDUMP="$ac_cv_prog_OBJDUMP"
7379 fi
7380
7381 test -z "$OBJDUMP" && OBJDUMP=objdump
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7392 printf %s "checking how to recognize dependent libraries... " >&6; }
7393 if test ${lt_cv_deplibs_check_method+y}
7394 then :
7395 printf %s "(cached) " >&6
7396 else case e in #(
7397 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7398 lt_cv_file_magic_test_file=
7399 lt_cv_deplibs_check_method='unknown'
7400 # Need to set the preceding variable on all platforms that support
7401 # interlibrary dependencies.
7402 # 'none' -- dependencies not supported.
7403 # 'unknown' -- same as none, but documents that we really don't know.
7404 # 'pass_all' -- all dependencies passed with no checks.
7405 # 'file_magic [[regex]]' -- check by looking for files in library path
7406 # that responds to the $file_magic_cmd with a given extended regex.
7407 # If you have 'file' or equivalent on your system and you're not sure
7408 # whether 'pass_all' will *always* work, you probably want this one.
7409
7410 case $host_os in
7411 aix[4-9]*)
7412 lt_cv_deplibs_check_method=pass_all
7413 ;;
7414
7415 beos*)
7416 lt_cv_deplibs_check_method=pass_all
7417 ;;
7418
7419 bsdi[45]*)
7420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7421 lt_cv_file_magic_cmd='$FILECMD -L'
7422 lt_cv_file_magic_test_file=/shlib/libc.so
7423 ;;
7424
7425 cygwin*)
7426 # func_win32_libid is a shell function defined in ltmain.sh
7427 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7428 lt_cv_file_magic_cmd='func_win32_libid'
7429 ;;
7430
7431 mingw* | windows* | pw32*)
7432 # Base MSYS/MinGW do not provide the 'file' command needed by
7433 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7434 # unless we find 'file', for example because we are cross-compiling.
7435 if ( file / ) >/dev/null 2>&1; then
7436 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7437 lt_cv_file_magic_cmd='func_win32_libid'
7438 else
7439 # Keep this pattern in sync with the one in func_win32_libid.
7440 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7441 lt_cv_file_magic_cmd='$OBJDUMP -f'
7442 fi
7443 ;;
7444
7445 cegcc*)
7446 # use the weaker test based on 'objdump'. See mingw*.
7447 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7448 lt_cv_file_magic_cmd='$OBJDUMP -f'
7449 ;;
7450
7451 darwin* | rhapsody*)
7452 lt_cv_deplibs_check_method=pass_all
7453 ;;
7454
7455 freebsd* | dragonfly* | midnightbsd*)
7456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7457 case $host_cpu in
7458 i*86 )
7459 # Not sure whether the presence of OpenBSD here was a mistake.
7460 # Let's accept both of them until this is cleared up.
7461 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7462 lt_cv_file_magic_cmd=$FILECMD
7463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7464 ;;
7465 esac
7466 else
7467 lt_cv_deplibs_check_method=pass_all
7468 fi
7469 ;;
7470
7471 haiku*)
7472 lt_cv_deplibs_check_method=pass_all
7473 ;;
7474
7475 hpux10.20* | hpux11*)
7476 lt_cv_file_magic_cmd=$FILECMD
7477 case $host_cpu in
7478 ia64*)
7479 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7480 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7481 ;;
7482 hppa*64*)
7483 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]'
7484 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7485 ;;
7486 *)
7487 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7488 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7489 ;;
7490 esac
7491 ;;
7492
7493 interix[3-9]*)
7494 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7496 ;;
7497
7498 irix5* | irix6* | nonstopux*)
7499 case $LD in
7500 *-32|*"-32 ") libmagic=32-bit;;
7501 *-n32|*"-n32 ") libmagic=N32;;
7502 *-64|*"-64 ") libmagic=64-bit;;
7503 *) libmagic=never-match;;
7504 esac
7505 lt_cv_deplibs_check_method=pass_all
7506 ;;
7507
7508 # This must be glibc/ELF.
7509 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7510 lt_cv_deplibs_check_method=pass_all
7511 ;;
7512
7513 *-mlibc)
7514 lt_cv_deplibs_check_method=pass_all
7515 ;;
7516
7517 netbsd* | netbsdelf*-gnu)
7518 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7520 else
7521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7522 fi
7523 ;;
7524
7525 newos6*)
7526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7527 lt_cv_file_magic_cmd=$FILECMD
7528 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7529 ;;
7530
7531 *nto* | *qnx*)
7532 lt_cv_deplibs_check_method=pass_all
7533 ;;
7534
7535 openbsd*)
7536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7538 else
7539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7540 fi
7541 ;;
7542
7543 osf3* | osf4* | osf5*)
7544 lt_cv_deplibs_check_method=pass_all
7545 ;;
7546
7547 rdos*)
7548 lt_cv_deplibs_check_method=pass_all
7549 ;;
7550
7551 serenity*)
7552 lt_cv_deplibs_check_method=pass_all
7553 ;;
7554
7555 solaris*)
7556 lt_cv_deplibs_check_method=pass_all
7557 ;;
7558
7559 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7560 lt_cv_deplibs_check_method=pass_all
7561 ;;
7562
7563 sysv4 | sysv4.3*)
7564 case $host_vendor in
7565 motorola)
7566 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]'
7567 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7568 ;;
7569 ncr)
7570 lt_cv_deplibs_check_method=pass_all
7571 ;;
7572 sequent)
7573 lt_cv_file_magic_cmd='/bin/file'
7574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7575 ;;
7576 sni)
7577 lt_cv_file_magic_cmd='/bin/file'
7578 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7579 lt_cv_file_magic_test_file=/lib/libc.so
7580 ;;
7581 siemens)
7582 lt_cv_deplibs_check_method=pass_all
7583 ;;
7584 pc)
7585 lt_cv_deplibs_check_method=pass_all
7586 ;;
7587 esac
7588 ;;
7589
7590 tpf*)
7591 lt_cv_deplibs_check_method=pass_all
7592 ;;
7593 os2*)
7594 lt_cv_deplibs_check_method=pass_all
7595 ;;
7596 esac
7597 ;;
7598 esac
7599 fi
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7601 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7602
7603 file_magic_glob=
7604 want_nocaseglob=no
7605 if test "$build" = "$host"; then
7606 case $host_os in
7607 mingw* | windows* | pw32*)
7608 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7609 want_nocaseglob=yes
7610 else
7611 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7612 fi
7613 ;;
7614 esac
7615 fi
7616
7617 file_magic_cmd=$lt_cv_file_magic_cmd
7618 deplibs_check_method=$lt_cv_deplibs_check_method
7619 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642 if test -n "$ac_tool_prefix"; then
7643 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7644 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 printf %s "checking for $ac_word... " >&6; }
7647 if test ${ac_cv_prog_DLLTOOL+y}
7648 then :
7649 printf %s "(cached) " >&6
7650 else case e in #(
7651 e) if test -n "$DLLTOOL"; then
7652 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657 IFS=$as_save_IFS
7658 case $as_dir in #(((
7659 '') as_dir=./ ;;
7660 */) ;;
7661 *) as_dir=$as_dir/ ;;
7662 esac
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7665 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7667 break 2
7668 fi
7669 done
7670 done
7671 IFS=$as_save_IFS
7672
7673 fi ;;
7674 esac
7675 fi
7676 DLLTOOL=$ac_cv_prog_DLLTOOL
7677 if test -n "$DLLTOOL"; then
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7679 printf "%s\n" "$DLLTOOL" >&6; }
7680 else
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 printf "%s\n" "no" >&6; }
7683 fi
7684
7685
7686 fi
7687 if test -z "$ac_cv_prog_DLLTOOL"; then
7688 ac_ct_DLLTOOL=$DLLTOOL
7689 # Extract the first word of "dlltool", so it can be a program name with args.
7690 set dummy dlltool; ac_word=$2
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692 printf %s "checking for $ac_word... " >&6; }
7693 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7694 then :
7695 printf %s "(cached) " >&6
7696 else case e in #(
7697 e) if test -n "$ac_ct_DLLTOOL"; then
7698 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7702 do
7703 IFS=$as_save_IFS
7704 case $as_dir in #(((
7705 '') as_dir=./ ;;
7706 */) ;;
7707 *) as_dir=$as_dir/ ;;
7708 esac
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7711 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7713 break 2
7714 fi
7715 done
7716 done
7717 IFS=$as_save_IFS
7718
7719 fi ;;
7720 esac
7721 fi
7722 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7723 if test -n "$ac_ct_DLLTOOL"; then
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7725 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7726 else
7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 printf "%s\n" "no" >&6; }
7729 fi
7730
7731 if test "x$ac_ct_DLLTOOL" = x; then
7732 DLLTOOL="false"
7733 else
7734 case $cross_compiling:$ac_tool_warned in
7735 yes:)
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738 ac_tool_warned=yes ;;
7739 esac
7740 DLLTOOL=$ac_ct_DLLTOOL
7741 fi
7742 else
7743 DLLTOOL="$ac_cv_prog_DLLTOOL"
7744 fi
7745
7746 test -z "$DLLTOOL" && DLLTOOL=dlltool
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7758 printf %s "checking how to associate runtime and link libraries... " >&6; }
7759 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7760 then :
7761 printf %s "(cached) " >&6
7762 else case e in #(
7763 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7764
7765 case $host_os in
7766 cygwin* | mingw* | windows* | pw32* | cegcc*)
7767 # two different shell functions defined in ltmain.sh;
7768 # decide which one to use based on capabilities of $DLLTOOL
7769 case `$DLLTOOL --help 2>&1` in
7770 *--identify-strict*)
7771 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7772 ;;
7773 *)
7774 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7775 ;;
7776 esac
7777 ;;
7778 *)
7779 # fallback: assume linklib IS sharedlib
7780 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7781 ;;
7782 esac
7783 ;;
7784 esac
7785 fi
7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7787 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7788 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7789 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7790
7791
7792
7793
7794
7795
7796
7797
7798 if test -n "$ac_tool_prefix"; then
7799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 printf %s "checking for $ac_word... " >&6; }
7803 if test ${ac_cv_prog_RANLIB+y}
7804 then :
7805 printf %s "(cached) " >&6
7806 else case e in #(
7807 e) if test -n "$RANLIB"; then
7808 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813 IFS=$as_save_IFS
7814 case $as_dir in #(((
7815 '') as_dir=./ ;;
7816 */) ;;
7817 *) as_dir=$as_dir/ ;;
7818 esac
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829 fi ;;
7830 esac
7831 fi
7832 RANLIB=$ac_cv_prog_RANLIB
7833 if test -n "$RANLIB"; then
7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7835 printf "%s\n" "$RANLIB" >&6; }
7836 else
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 printf "%s\n" "no" >&6; }
7839 fi
7840
7841
7842 fi
7843 if test -z "$ac_cv_prog_RANLIB"; then
7844 ac_ct_RANLIB=$RANLIB
7845 # Extract the first word of "ranlib", so it can be a program name with args.
7846 set dummy ranlib; ac_word=$2
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 printf %s "checking for $ac_word... " >&6; }
7849 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7850 then :
7851 printf %s "(cached) " >&6
7852 else case e in #(
7853 e) if test -n "$ac_ct_RANLIB"; then
7854 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7858 do
7859 IFS=$as_save_IFS
7860 case $as_dir in #(((
7861 '') as_dir=./ ;;
7862 */) ;;
7863 *) as_dir=$as_dir/ ;;
7864 esac
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7867 ac_cv_prog_ac_ct_RANLIB="ranlib"
7868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871 done
7872 done
7873 IFS=$as_save_IFS
7874
7875 fi ;;
7876 esac
7877 fi
7878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7879 if test -n "$ac_ct_RANLIB"; then
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7881 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7882 else
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 printf "%s\n" "no" >&6; }
7885 fi
7886
7887 if test "x$ac_ct_RANLIB" = x; then
7888 RANLIB=":"
7889 else
7890 case $cross_compiling:$ac_tool_warned in
7891 yes:)
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7893 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7894 ac_tool_warned=yes ;;
7895 esac
7896 RANLIB=$ac_ct_RANLIB
7897 fi
7898 else
7899 RANLIB="$ac_cv_prog_RANLIB"
7900 fi
7901
7902 if test -n "$ac_tool_prefix"; then
7903 for ac_prog in ar
7904 do
7905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908 printf %s "checking for $ac_word... " >&6; }
7909 if test ${ac_cv_prog_AR+y}
7910 then :
7911 printf %s "(cached) " >&6
7912 else case e in #(
7913 e) if test -n "$AR"; then
7914 ac_cv_prog_AR="$AR" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919 IFS=$as_save_IFS
7920 case $as_dir in #(((
7921 '') as_dir=./ ;;
7922 */) ;;
7923 *) as_dir=$as_dir/ ;;
7924 esac
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi ;;
7936 esac
7937 fi
7938 AR=$ac_cv_prog_AR
7939 if test -n "$AR"; then
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7941 printf "%s\n" "$AR" >&6; }
7942 else
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 printf "%s\n" "no" >&6; }
7945 fi
7946
7947
7948 test -n "$AR" && break
7949 done
7950 fi
7951 if test -z "$AR"; then
7952 ac_ct_AR=$AR
7953 for ac_prog in ar
7954 do
7955 # Extract the first word of "$ac_prog", so it can be a program name with args.
7956 set dummy $ac_prog; ac_word=$2
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 printf %s "checking for $ac_word... " >&6; }
7959 if test ${ac_cv_prog_ac_ct_AR+y}
7960 then :
7961 printf %s "(cached) " >&6
7962 else case e in #(
7963 e) if test -n "$ac_ct_AR"; then
7964 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7965 else
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7968 do
7969 IFS=$as_save_IFS
7970 case $as_dir in #(((
7971 '') as_dir=./ ;;
7972 */) ;;
7973 *) as_dir=$as_dir/ ;;
7974 esac
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_ac_ct_AR="$ac_prog"
7978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7979 break 2
7980 fi
7981 done
7982 done
7983 IFS=$as_save_IFS
7984
7985 fi ;;
7986 esac
7987 fi
7988 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7989 if test -n "$ac_ct_AR"; then
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7991 printf "%s\n" "$ac_ct_AR" >&6; }
7992 else
7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 printf "%s\n" "no" >&6; }
7995 fi
7996
7997
7998 test -n "$ac_ct_AR" && break
7999 done
8000
8001 if test "x$ac_ct_AR" = x; then
8002 AR="false"
8003 else
8004 case $cross_compiling:$ac_tool_warned in
8005 yes:)
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8007 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8008 ac_tool_warned=yes ;;
8009 esac
8010 AR=$ac_ct_AR
8011 fi
8012 fi
8013
8014 : ${AR=ar}
8015
8016
8017
8018
8019
8020
8021 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8022 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8023 # higher priority because that's what people were doing historically (setting
8024 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8025 # variable obsoleted/removed.
8026
8027 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8028 lt_ar_flags=$AR_FLAGS
8029
8030
8031
8032
8033
8034
8035 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8036 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8037
8038
8039
8040
8041
8042
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8044 printf %s "checking for archiver @FILE support... " >&6; }
8045 if test ${lt_cv_ar_at_file+y}
8046 then :
8047 printf %s "(cached) " >&6
8048 else case e in #(
8049 e) lt_cv_ar_at_file=no
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052
8053 int
8054 main (void)
8055 {
8056
8057 ;
8058 return 0;
8059 }
8060 _ACEOF
8061 if ac_fn_c_try_compile "$LINENO"
8062 then :
8063 echo conftest.$ac_objext > conftest.lst
8064 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8066 (eval $lt_ar_try) 2>&5
8067 ac_status=$?
8068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8069 test $ac_status = 0; }
8070 if test 0 -eq "$ac_status"; then
8071 # Ensure the archiver fails upon bogus file names.
8072 rm -f conftest.$ac_objext libconftest.a
8073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8074 (eval $lt_ar_try) 2>&5
8075 ac_status=$?
8076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8077 test $ac_status = 0; }
8078 if test 0 -ne "$ac_status"; then
8079 lt_cv_ar_at_file=@
8080 fi
8081 fi
8082 rm -f conftest.* libconftest.a
8083
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8086 ;;
8087 esac
8088 fi
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8090 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8091
8092 if test no = "$lt_cv_ar_at_file"; then
8093 archiver_list_spec=
8094 else
8095 archiver_list_spec=$lt_cv_ar_at_file
8096 fi
8097
8098
8099
8100
8101
8102
8103
8104 if test -n "$ac_tool_prefix"; then
8105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8106 set dummy ${ac_tool_prefix}strip; ac_word=$2
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 printf %s "checking for $ac_word... " >&6; }
8109 if test ${ac_cv_prog_STRIP+y}
8110 then :
8111 printf %s "(cached) " >&6
8112 else case e in #(
8113 e) if test -n "$STRIP"; then
8114 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8118 do
8119 IFS=$as_save_IFS
8120 case $as_dir in #(((
8121 '') as_dir=./ ;;
8122 */) ;;
8123 *) as_dir=$as_dir/ ;;
8124 esac
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8127 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8129 break 2
8130 fi
8131 done
8132 done
8133 IFS=$as_save_IFS
8134
8135 fi ;;
8136 esac
8137 fi
8138 STRIP=$ac_cv_prog_STRIP
8139 if test -n "$STRIP"; then
8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8141 printf "%s\n" "$STRIP" >&6; }
8142 else
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 printf "%s\n" "no" >&6; }
8145 fi
8146
8147
8148 fi
8149 if test -z "$ac_cv_prog_STRIP"; then
8150 ac_ct_STRIP=$STRIP
8151 # Extract the first word of "strip", so it can be a program name with args.
8152 set dummy strip; ac_word=$2
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 printf %s "checking for $ac_word... " >&6; }
8155 if test ${ac_cv_prog_ac_ct_STRIP+y}
8156 then :
8157 printf %s "(cached) " >&6
8158 else case e in #(
8159 e) if test -n "$ac_ct_STRIP"; then
8160 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165 IFS=$as_save_IFS
8166 case $as_dir in #(((
8167 '') as_dir=./ ;;
8168 */) ;;
8169 *) as_dir=$as_dir/ ;;
8170 esac
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8173 ac_cv_prog_ac_ct_STRIP="strip"
8174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8175 break 2
8176 fi
8177 done
8178 done
8179 IFS=$as_save_IFS
8180
8181 fi ;;
8182 esac
8183 fi
8184 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8185 if test -n "$ac_ct_STRIP"; then
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8187 printf "%s\n" "$ac_ct_STRIP" >&6; }
8188 else
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 printf "%s\n" "no" >&6; }
8191 fi
8192
8193 if test "x$ac_ct_STRIP" = x; then
8194 STRIP=":"
8195 else
8196 case $cross_compiling:$ac_tool_warned in
8197 yes:)
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8199 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8200 ac_tool_warned=yes ;;
8201 esac
8202 STRIP=$ac_ct_STRIP
8203 fi
8204 else
8205 STRIP="$ac_cv_prog_STRIP"
8206 fi
8207
8208 test -z "$STRIP" && STRIP=:
8209
8210
8211
8212
8213
8214
8215
8216 test -z "$RANLIB" && RANLIB=:
8217
8218
8219
8220
8221
8222
8223 # Determine commands to create old-style static archives.
8224 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8225 old_postinstall_cmds='chmod 644 $oldlib'
8226 old_postuninstall_cmds=
8227
8228 if test -n "$RANLIB"; then
8229 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8230 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8231 fi
8232
8233 case $host_os in
8234 darwin*)
8235 lock_old_archive_extraction=yes ;;
8236 *)
8237 lock_old_archive_extraction=no ;;
8238 esac
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278 # If no C compiler was specified, use CC.
8279 LTCC=${LTCC-"$CC"}
8280
8281 # If no C compiler flags were specified, use CFLAGS.
8282 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8283
8284 # Allow CC to be a program name with arguments.
8285 compiler=$CC
8286
8287
8288 # Check for command to grab the raw symbol name followed by C symbol from nm.
8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8290 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8291 if test ${lt_cv_sys_global_symbol_pipe+y}
8292 then :
8293 printf %s "(cached) " >&6
8294 else case e in #(
8295 e)
8296 # These are sane defaults that work on at least a few old systems.
8297 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8298
8299 # Character class describing NM global symbol codes.
8300 symcode='[BCDEGRST]'
8301
8302 # Regexp to match symbols that can be accessed directly from C.
8303 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8304
8305 # Define system-specific variables.
8306 case $host_os in
8307 aix*)
8308 symcode='[BCDT]'
8309 ;;
8310 cygwin* | mingw* | windows* | pw32* | cegcc*)
8311 symcode='[ABCDGISTW]'
8312 ;;
8313 hpux*)
8314 if test ia64 = "$host_cpu"; then
8315 symcode='[ABCDEGRST]'
8316 fi
8317 ;;
8318 irix* | nonstopux*)
8319 symcode='[BCDEGRST]'
8320 ;;
8321 osf*)
8322 symcode='[BCDEGQRST]'
8323 ;;
8324 solaris*)
8325 symcode='[BCDRT]'
8326 ;;
8327 sco3.2v5*)
8328 symcode='[DT]'
8329 ;;
8330 sysv4.2uw2*)
8331 symcode='[DT]'
8332 ;;
8333 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8334 symcode='[ABDT]'
8335 ;;
8336 sysv4)
8337 symcode='[DFNSTU]'
8338 ;;
8339 esac
8340
8341 # If we're using GNU nm, then use its standard symbol codes.
8342 case `$NM -V 2>&1` in
8343 *GNU* | *'with BFD'*)
8344 symcode='[ABCDGIRSTW]' ;;
8345 esac
8346
8347 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8348 # Gets list of data symbols to import.
8349 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8350 # Adjust the below global symbol transforms to fixup imported variables.
8351 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8352 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8353 lt_c_name_lib_hook="\
8354 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8355 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8356 else
8357 # Disable hooks by default.
8358 lt_cv_sys_global_symbol_to_import=
8359 lt_cdecl_hook=
8360 lt_c_name_hook=
8361 lt_c_name_lib_hook=
8362 fi
8363
8364 # Transform an extracted symbol line into a proper C declaration.
8365 # Some systems (esp. on ia64) link data and code symbols differently,
8366 # so use this general approach.
8367 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8368 $lt_cdecl_hook\
8369 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8370 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8371
8372 # Transform an extracted symbol line into symbol name and symbol address
8373 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8374 $lt_c_name_hook\
8375 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8376 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8377
8378 # Transform an extracted symbol line into symbol name with lib prefix and
8379 # symbol address.
8380 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8381 $lt_c_name_lib_hook\
8382 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8383 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8384 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8385
8386 # Handle CRLF in mingw tool chain
8387 opt_cr=
8388 case $build_os in
8389 mingw* | windows*)
8390 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8391 ;;
8392 esac
8393
8394 # Try without a prefix underscore, then with it.
8395 for ac_symprfx in "" "_"; do
8396
8397 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8398 symxfrm="\\1 $ac_symprfx\\2 \\2"
8399
8400 # Write the raw and C identifiers.
8401 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8402 # Fake it for dumpbin and say T for any non-static function,
8403 # D for any global variable and I for any imported variable.
8404 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8405 # which start with @ or ?.
8406 lt_cv_sys_global_symbol_pipe="$AWK '"\
8407 " {last_section=section; section=\$ 3};"\
8408 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8409 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8410 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8411 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8412 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8413 " \$ 0!~/External *\|/{next};"\
8414 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8415 " {if(hide[section]) next};"\
8416 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8417 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8418 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8419 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8420 " ' prfx=^$ac_symprfx"
8421 else
8422 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8423 fi
8424 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8425
8426 # Check to see that the pipe works correctly.
8427 pipe_works=no
8428
8429 rm -f conftest*
8430 cat > conftest.$ac_ext <<_LT_EOF
8431 #ifdef __cplusplus
8432 extern "C" {
8433 #endif
8434 char nm_test_var;
8435 void nm_test_func(void);
8436 void nm_test_func(void){}
8437 #ifdef __cplusplus
8438 }
8439 #endif
8440 int main(void){nm_test_var='a';nm_test_func();return(0);}
8441 _LT_EOF
8442
8443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8444 (eval $ac_compile) 2>&5
8445 ac_status=$?
8446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8447 test $ac_status = 0; }; then
8448 # Now try to grab the symbols.
8449 nlist=conftest.nm
8450 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8451 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8452 # Try sorting and uniquifying the output.
8453 if sort "$nlist" | uniq > "$nlist"T; then
8454 mv -f "$nlist"T "$nlist"
8455 else
8456 rm -f "$nlist"T
8457 fi
8458
8459 # Make sure that we snagged all the symbols we need.
8460 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8461 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8462 cat <<_LT_EOF > conftest.$ac_ext
8463 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8464 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8465 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8466 relocations are performed -- see ld's documentation on pseudo-relocs. */
8467 # define LT_DLSYM_CONST
8468 #elif defined __osf__
8469 /* This system does not cope well with relocations in const data. */
8470 # define LT_DLSYM_CONST
8471 #else
8472 # define LT_DLSYM_CONST const
8473 #endif
8474
8475 #ifdef __cplusplus
8476 extern "C" {
8477 #endif
8478
8479 _LT_EOF
8480 # Now generate the symbol file.
8481 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8482
8483 cat <<_LT_EOF >> conftest.$ac_ext
8484
8485 /* The mapping between symbol names and symbols. */
8486 LT_DLSYM_CONST struct {
8487 const char *name;
8488 void *address;
8489 }
8490 lt__PROGRAM__LTX_preloaded_symbols[] =
8491 {
8492 { "@PROGRAM@", (void *) 0 },
8493 _LT_EOF
8494 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8495 cat <<\_LT_EOF >> conftest.$ac_ext
8496 {0, (void *) 0}
8497 };
8498
8499 /* This works around a problem in FreeBSD linker */
8500 #ifdef FREEBSD_WORKAROUND
8501 static const void *lt_preloaded_setup() {
8502 return lt__PROGRAM__LTX_preloaded_symbols;
8503 }
8504 #endif
8505
8506 #ifdef __cplusplus
8507 }
8508 #endif
8509 _LT_EOF
8510 # Now try linking the two files.
8511 mv conftest.$ac_objext conftstm.$ac_objext
8512 lt_globsym_save_LIBS=$LIBS
8513 lt_globsym_save_CFLAGS=$CFLAGS
8514 LIBS=conftstm.$ac_objext
8515 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8517 (eval $ac_link) 2>&5
8518 ac_status=$?
8519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8520 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8521 pipe_works=yes
8522 fi
8523 LIBS=$lt_globsym_save_LIBS
8524 CFLAGS=$lt_globsym_save_CFLAGS
8525 else
8526 echo "cannot find nm_test_func in $nlist" >&5
8527 fi
8528 else
8529 echo "cannot find nm_test_var in $nlist" >&5
8530 fi
8531 else
8532 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8533 fi
8534 else
8535 echo "$progname: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8537 fi
8538 rm -rf conftest* conftst*
8539
8540 # Do not use the global_symbol_pipe unless it works.
8541 if test yes = "$pipe_works"; then
8542 break
8543 else
8544 lt_cv_sys_global_symbol_pipe=
8545 fi
8546 done
8547 ;;
8548 esac
8549 fi
8550
8551 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8552 lt_cv_sys_global_symbol_to_cdecl=
8553 fi
8554 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8556 printf "%s\n" "failed" >&6; }
8557 else
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8559 printf "%s\n" "ok" >&6; }
8560 fi
8561
8562 # Response file support.
8563 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8564 nm_file_list_spec='@'
8565 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8566 nm_file_list_spec='@'
8567 fi
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8606 printf %s "checking for sysroot... " >&6; }
8607
8608 # Check whether --with-sysroot was given.
8609 if test ${with_sysroot+y}
8610 then :
8611 withval=$with_sysroot;
8612 else case e in #(
8613 e) with_sysroot=no ;;
8614 esac
8615 fi
8616
8617
8618 lt_sysroot=
8619 case $with_sysroot in #(
8620 yes)
8621 if test yes = "$GCC"; then
8622 # Trim trailing / since we'll always append absolute paths and we want
8623 # to avoid //, if only for less confusing output for the user.
8624 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8625 fi
8626 ;; #(
8627 /*)
8628 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8629 ;; #(
8630 no|'')
8631 ;; #(
8632 *)
8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8634 printf "%s\n" "$with_sysroot" >&6; }
8635 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8636 ;;
8637 esac
8638
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8640 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8641
8642
8643
8644
8645
8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8647 printf %s "checking for a working dd... " >&6; }
8648 if test ${ac_cv_path_lt_DD+y}
8649 then :
8650 printf %s "(cached) " >&6
8651 else case e in #(
8652 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8653 cat conftest.i conftest.i >conftest2.i
8654 : ${lt_DD:=$DD}
8655 if test -z "$lt_DD"; then
8656 ac_path_lt_DD_found=false
8657 # Loop through the user's path and test for each of PROGNAME-LIST
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8660 do
8661 IFS=$as_save_IFS
8662 case $as_dir in #(((
8663 '') as_dir=./ ;;
8664 */) ;;
8665 *) as_dir=$as_dir/ ;;
8666 esac
8667 for ac_prog in dd
8668 do
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8671 as_fn_executable_p "$ac_path_lt_DD" || continue
8672 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8673 cmp -s conftest.i conftest.out \
8674 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8675 fi
8676 $ac_path_lt_DD_found && break 3
8677 done
8678 done
8679 done
8680 IFS=$as_save_IFS
8681 if test -z "$ac_cv_path_lt_DD"; then
8682 :
8683 fi
8684 else
8685 ac_cv_path_lt_DD=$lt_DD
8686 fi
8687
8688 rm -f conftest.i conftest2.i conftest.out ;;
8689 esac
8690 fi
8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8692 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8693
8694
8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8696 printf %s "checking how to truncate binary pipes... " >&6; }
8697 if test ${lt_cv_truncate_bin+y}
8698 then :
8699 printf %s "(cached) " >&6
8700 else case e in #(
8701 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8702 cat conftest.i conftest.i >conftest2.i
8703 lt_cv_truncate_bin=
8704 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8705 cmp -s conftest.i conftest.out \
8706 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8707 fi
8708 rm -f conftest.i conftest2.i conftest.out
8709 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8710 esac
8711 fi
8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8713 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8714
8715
8716
8717
8718
8719
8720
8721 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8722 func_cc_basename ()
8723 {
8724 for cc_temp in $*""; do
8725 case $cc_temp in
8726 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8727 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8728 \-*) ;;
8729 *) break;;
8730 esac
8731 done
8732 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8733 }
8734
8735 # Check whether --enable-libtool-lock was given.
8736 if test ${enable_libtool_lock+y}
8737 then :
8738 enableval=$enable_libtool_lock;
8739 fi
8740
8741 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8742
8743 # Some flags need to be propagated to the compiler or linker for good
8744 # libtool support.
8745 case $host in
8746 ia64-*-hpux*)
8747 # Find out what ABI is being produced by ac_compile, and set mode
8748 # options accordingly.
8749 echo 'int i;' > conftest.$ac_ext
8750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8751 (eval $ac_compile) 2>&5
8752 ac_status=$?
8753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8754 test $ac_status = 0; }; then
8755 case `$FILECMD conftest.$ac_objext` in
8756 *ELF-32*)
8757 HPUX_IA64_MODE=32
8758 ;;
8759 *ELF-64*)
8760 HPUX_IA64_MODE=64
8761 ;;
8762 esac
8763 fi
8764 rm -rf conftest*
8765 ;;
8766 *-*-irix6*)
8767 # Find out what ABI is being produced by ac_compile, and set linker
8768 # options accordingly.
8769 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8771 (eval $ac_compile) 2>&5
8772 ac_status=$?
8773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8774 test $ac_status = 0; }; then
8775 if test yes = "$lt_cv_prog_gnu_ld"; then
8776 case `$FILECMD conftest.$ac_objext` in
8777 *32-bit*)
8778 LD="${LD-ld} -melf32bsmip"
8779 ;;
8780 *N32*)
8781 LD="${LD-ld} -melf32bmipn32"
8782 ;;
8783 *64-bit*)
8784 LD="${LD-ld} -melf64bmip"
8785 ;;
8786 esac
8787 else
8788 case `$FILECMD conftest.$ac_objext` in
8789 *32-bit*)
8790 LD="${LD-ld} -32"
8791 ;;
8792 *N32*)
8793 LD="${LD-ld} -n32"
8794 ;;
8795 *64-bit*)
8796 LD="${LD-ld} -64"
8797 ;;
8798 esac
8799 fi
8800 fi
8801 rm -rf conftest*
8802 ;;
8803
8804 mips64*-*linux*)
8805 # Find out what ABI is being produced by ac_compile, and set linker
8806 # options accordingly.
8807 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8809 (eval $ac_compile) 2>&5
8810 ac_status=$?
8811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8812 test $ac_status = 0; }; then
8813 emul=elf
8814 case `$FILECMD conftest.$ac_objext` in
8815 *32-bit*)
8816 emul="${emul}32"
8817 ;;
8818 *64-bit*)
8819 emul="${emul}64"
8820 ;;
8821 esac
8822 case `$FILECMD conftest.$ac_objext` in
8823 *MSB*)
8824 emul="${emul}btsmip"
8825 ;;
8826 *LSB*)
8827 emul="${emul}ltsmip"
8828 ;;
8829 esac
8830 case `$FILECMD conftest.$ac_objext` in
8831 *N32*)
8832 emul="${emul}n32"
8833 ;;
8834 esac
8835 LD="${LD-ld} -m $emul"
8836 fi
8837 rm -rf conftest*
8838 ;;
8839
8840 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8841 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8842 # Find out what ABI is being produced by ac_compile, and set linker
8843 # options accordingly. Note that the listed cases only cover the
8844 # situations where additional linker options are needed (such as when
8845 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8846 # vice versa); the common cases where no linker options are needed do
8847 # not appear in the list.
8848 echo 'int i;' > conftest.$ac_ext
8849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8850 (eval $ac_compile) 2>&5
8851 ac_status=$?
8852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8853 test $ac_status = 0; }; then
8854 case `$FILECMD conftest.o` in
8855 *32-bit*)
8856 case $host in
8857 x86_64-*kfreebsd*-gnu)
8858 LD="${LD-ld} -m elf_i386_fbsd"
8859 ;;
8860 x86_64-*linux*|x86_64-gnu*)
8861 case `$FILECMD conftest.o` in
8862 *x86-64*)
8863 LD="${LD-ld} -m elf32_x86_64"
8864 ;;
8865 *)
8866 LD="${LD-ld} -m elf_i386"
8867 ;;
8868 esac
8869 ;;
8870 powerpc64le-*linux*)
8871 LD="${LD-ld} -m elf32lppclinux"
8872 ;;
8873 powerpc64-*linux*)
8874 LD="${LD-ld} -m elf32ppclinux"
8875 ;;
8876 s390x-*linux*)
8877 LD="${LD-ld} -m elf_s390"
8878 ;;
8879 sparc64-*linux*)
8880 LD="${LD-ld} -m elf32_sparc"
8881 ;;
8882 esac
8883 ;;
8884 *64-bit*)
8885 case $host in
8886 x86_64-*kfreebsd*-gnu)
8887 LD="${LD-ld} -m elf_x86_64_fbsd"
8888 ;;
8889 x86_64-*linux*|x86_64-gnu*)
8890 LD="${LD-ld} -m elf_x86_64"
8891 ;;
8892 powerpcle-*linux*)
8893 LD="${LD-ld} -m elf64lppc"
8894 ;;
8895 powerpc-*linux*)
8896 LD="${LD-ld} -m elf64ppc"
8897 ;;
8898 s390*-*linux*|s390*-*tpf*)
8899 LD="${LD-ld} -m elf64_s390"
8900 ;;
8901 sparc*-*linux*)
8902 LD="${LD-ld} -m elf64_sparc"
8903 ;;
8904 esac
8905 ;;
8906 esac
8907 fi
8908 rm -rf conftest*
8909 ;;
8910
8911 *-*-sco3.2v5*)
8912 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8913 SAVE_CFLAGS=$CFLAGS
8914 CFLAGS="$CFLAGS -belf"
8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8916 printf %s "checking whether the C compiler needs -belf... " >&6; }
8917 if test ${lt_cv_cc_needs_belf+y}
8918 then :
8919 printf %s "(cached) " >&6
8920 else case e in #(
8921 e) ac_ext=c
8922 ac_cpp='$CPP $CPPFLAGS'
8923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929
8930 int
8931 main (void)
8932 {
8933
8934 ;
8935 return 0;
8936 }
8937 _ACEOF
8938 if ac_fn_c_try_link "$LINENO"
8939 then :
8940 lt_cv_cc_needs_belf=yes
8941 else case e in #(
8942 e) lt_cv_cc_needs_belf=no ;;
8943 esac
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8946 conftest$ac_exeext conftest.$ac_ext
8947 ac_ext=c
8948 ac_cpp='$CPP $CPPFLAGS'
8949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8952 ;;
8953 esac
8954 fi
8955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8956 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8957 if test yes != "$lt_cv_cc_needs_belf"; then
8958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8959 CFLAGS=$SAVE_CFLAGS
8960 fi
8961 ;;
8962 *-*solaris*)
8963 # Find out what ABI is being produced by ac_compile, and set linker
8964 # options accordingly.
8965 echo 'int i;' > conftest.$ac_ext
8966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8967 (eval $ac_compile) 2>&5
8968 ac_status=$?
8969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8970 test $ac_status = 0; }; then
8971 case `$FILECMD conftest.o` in
8972 *64-bit*)
8973 case $lt_cv_prog_gnu_ld in
8974 yes*)
8975 case $host in
8976 i?86-*-solaris*|x86_64-*-solaris*)
8977 LD="${LD-ld} -m elf_x86_64"
8978 ;;
8979 sparc*-*-solaris*)
8980 LD="${LD-ld} -m elf64_sparc"
8981 ;;
8982 esac
8983 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8984 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8985 LD=${LD-ld}_sol2
8986 fi
8987 ;;
8988 *)
8989 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8990 LD="${LD-ld} -64"
8991 fi
8992 ;;
8993 esac
8994 ;;
8995 esac
8996 fi
8997 rm -rf conftest*
8998 ;;
8999 esac
9000
9001 need_locks=$enable_libtool_lock
9002
9003 if test -n "$ac_tool_prefix"; then
9004 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9005 set dummy ${ac_tool_prefix}mt; ac_word=$2
9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 printf %s "checking for $ac_word... " >&6; }
9008 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9009 then :
9010 printf %s "(cached) " >&6
9011 else case e in #(
9012 e) if test -n "$MANIFEST_TOOL"; then
9013 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9014 else
9015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016 for as_dir in $PATH
9017 do
9018 IFS=$as_save_IFS
9019 case $as_dir in #(((
9020 '') as_dir=./ ;;
9021 */) ;;
9022 *) as_dir=$as_dir/ ;;
9023 esac
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9026 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9028 break 2
9029 fi
9030 done
9031 done
9032 IFS=$as_save_IFS
9033
9034 fi ;;
9035 esac
9036 fi
9037 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9038 if test -n "$MANIFEST_TOOL"; then
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9040 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9041 else
9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043 printf "%s\n" "no" >&6; }
9044 fi
9045
9046
9047 fi
9048 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9049 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9050 # Extract the first word of "mt", so it can be a program name with args.
9051 set dummy mt; ac_word=$2
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053 printf %s "checking for $ac_word... " >&6; }
9054 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9055 then :
9056 printf %s "(cached) " >&6
9057 else case e in #(
9058 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9059 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9060 else
9061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062 for as_dir in $PATH
9063 do
9064 IFS=$as_save_IFS
9065 case $as_dir in #(((
9066 '') as_dir=./ ;;
9067 */) ;;
9068 *) as_dir=$as_dir/ ;;
9069 esac
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9072 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9074 break 2
9075 fi
9076 done
9077 done
9078 IFS=$as_save_IFS
9079
9080 fi ;;
9081 esac
9082 fi
9083 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9084 if test -n "$ac_ct_MANIFEST_TOOL"; then
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9086 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9087 else
9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 printf "%s\n" "no" >&6; }
9090 fi
9091
9092 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9093 MANIFEST_TOOL=":"
9094 else
9095 case $cross_compiling:$ac_tool_warned in
9096 yes:)
9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9098 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9099 ac_tool_warned=yes ;;
9100 esac
9101 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9102 fi
9103 else
9104 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9105 fi
9106
9107 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9109 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9110 if test ${lt_cv_path_manifest_tool+y}
9111 then :
9112 printf %s "(cached) " >&6
9113 else case e in #(
9114 e) lt_cv_path_manifest_tool=no
9115 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9116 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9117 cat conftest.err >&5
9118 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9119 lt_cv_path_manifest_tool=yes
9120 fi
9121 rm -f conftest* ;;
9122 esac
9123 fi
9124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9125 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9126 if test yes != "$lt_cv_path_manifest_tool"; then
9127 MANIFEST_TOOL=:
9128 fi
9129
9130
9131
9132
9133
9134
9135 case $host_os in
9136 rhapsody* | darwin*)
9137 if test -n "$ac_tool_prefix"; then
9138 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9139 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9141 printf %s "checking for $ac_word... " >&6; }
9142 if test ${ac_cv_prog_DSYMUTIL+y}
9143 then :
9144 printf %s "(cached) " >&6
9145 else case e in #(
9146 e) if test -n "$DSYMUTIL"; then
9147 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9148 else
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in $PATH
9151 do
9152 IFS=$as_save_IFS
9153 case $as_dir in #(((
9154 '') as_dir=./ ;;
9155 */) ;;
9156 *) as_dir=$as_dir/ ;;
9157 esac
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9160 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9162 break 2
9163 fi
9164 done
9165 done
9166 IFS=$as_save_IFS
9167
9168 fi ;;
9169 esac
9170 fi
9171 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9172 if test -n "$DSYMUTIL"; then
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9174 printf "%s\n" "$DSYMUTIL" >&6; }
9175 else
9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177 printf "%s\n" "no" >&6; }
9178 fi
9179
9180
9181 fi
9182 if test -z "$ac_cv_prog_DSYMUTIL"; then
9183 ac_ct_DSYMUTIL=$DSYMUTIL
9184 # Extract the first word of "dsymutil", so it can be a program name with args.
9185 set dummy dsymutil; ac_word=$2
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 printf %s "checking for $ac_word... " >&6; }
9188 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9189 then :
9190 printf %s "(cached) " >&6
9191 else case e in #(
9192 e) if test -n "$ac_ct_DSYMUTIL"; then
9193 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9194 else
9195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196 for as_dir in $PATH
9197 do
9198 IFS=$as_save_IFS
9199 case $as_dir in #(((
9200 '') as_dir=./ ;;
9201 */) ;;
9202 *) as_dir=$as_dir/ ;;
9203 esac
9204 for ac_exec_ext in '' $ac_executable_extensions; do
9205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9206 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9208 break 2
9209 fi
9210 done
9211 done
9212 IFS=$as_save_IFS
9213
9214 fi ;;
9215 esac
9216 fi
9217 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9218 if test -n "$ac_ct_DSYMUTIL"; then
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9220 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9221 else
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 printf "%s\n" "no" >&6; }
9224 fi
9225
9226 if test "x$ac_ct_DSYMUTIL" = x; then
9227 DSYMUTIL=":"
9228 else
9229 case $cross_compiling:$ac_tool_warned in
9230 yes:)
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9232 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9233 ac_tool_warned=yes ;;
9234 esac
9235 DSYMUTIL=$ac_ct_DSYMUTIL
9236 fi
9237 else
9238 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9239 fi
9240
9241 if test -n "$ac_tool_prefix"; then
9242 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9243 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 printf %s "checking for $ac_word... " >&6; }
9246 if test ${ac_cv_prog_NMEDIT+y}
9247 then :
9248 printf %s "(cached) " >&6
9249 else case e in #(
9250 e) if test -n "$NMEDIT"; then
9251 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9252 else
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 for as_dir in $PATH
9255 do
9256 IFS=$as_save_IFS
9257 case $as_dir in #(((
9258 '') as_dir=./ ;;
9259 */) ;;
9260 *) as_dir=$as_dir/ ;;
9261 esac
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9264 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9266 break 2
9267 fi
9268 done
9269 done
9270 IFS=$as_save_IFS
9271
9272 fi ;;
9273 esac
9274 fi
9275 NMEDIT=$ac_cv_prog_NMEDIT
9276 if test -n "$NMEDIT"; then
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9278 printf "%s\n" "$NMEDIT" >&6; }
9279 else
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 printf "%s\n" "no" >&6; }
9282 fi
9283
9284
9285 fi
9286 if test -z "$ac_cv_prog_NMEDIT"; then
9287 ac_ct_NMEDIT=$NMEDIT
9288 # Extract the first word of "nmedit", so it can be a program name with args.
9289 set dummy nmedit; ac_word=$2
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9291 printf %s "checking for $ac_word... " >&6; }
9292 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9293 then :
9294 printf %s "(cached) " >&6
9295 else case e in #(
9296 e) if test -n "$ac_ct_NMEDIT"; then
9297 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9298 else
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 for as_dir in $PATH
9301 do
9302 IFS=$as_save_IFS
9303 case $as_dir in #(((
9304 '') as_dir=./ ;;
9305 */) ;;
9306 *) as_dir=$as_dir/ ;;
9307 esac
9308 for ac_exec_ext in '' $ac_executable_extensions; do
9309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9310 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9312 break 2
9313 fi
9314 done
9315 done
9316 IFS=$as_save_IFS
9317
9318 fi ;;
9319 esac
9320 fi
9321 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9322 if test -n "$ac_ct_NMEDIT"; then
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9324 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9325 else
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9327 printf "%s\n" "no" >&6; }
9328 fi
9329
9330 if test "x$ac_ct_NMEDIT" = x; then
9331 NMEDIT=":"
9332 else
9333 case $cross_compiling:$ac_tool_warned in
9334 yes:)
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9336 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9337 ac_tool_warned=yes ;;
9338 esac
9339 NMEDIT=$ac_ct_NMEDIT
9340 fi
9341 else
9342 NMEDIT="$ac_cv_prog_NMEDIT"
9343 fi
9344
9345 if test -n "$ac_tool_prefix"; then
9346 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9347 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349 printf %s "checking for $ac_word... " >&6; }
9350 if test ${ac_cv_prog_LIPO+y}
9351 then :
9352 printf %s "(cached) " >&6
9353 else case e in #(
9354 e) if test -n "$LIPO"; then
9355 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9356 else
9357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in $PATH
9359 do
9360 IFS=$as_save_IFS
9361 case $as_dir in #(((
9362 '') as_dir=./ ;;
9363 */) ;;
9364 *) as_dir=$as_dir/ ;;
9365 esac
9366 for ac_exec_ext in '' $ac_executable_extensions; do
9367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9368 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9370 break 2
9371 fi
9372 done
9373 done
9374 IFS=$as_save_IFS
9375
9376 fi ;;
9377 esac
9378 fi
9379 LIPO=$ac_cv_prog_LIPO
9380 if test -n "$LIPO"; then
9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9382 printf "%s\n" "$LIPO" >&6; }
9383 else
9384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385 printf "%s\n" "no" >&6; }
9386 fi
9387
9388
9389 fi
9390 if test -z "$ac_cv_prog_LIPO"; then
9391 ac_ct_LIPO=$LIPO
9392 # Extract the first word of "lipo", so it can be a program name with args.
9393 set dummy lipo; ac_word=$2
9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395 printf %s "checking for $ac_word... " >&6; }
9396 if test ${ac_cv_prog_ac_ct_LIPO+y}
9397 then :
9398 printf %s "(cached) " >&6
9399 else case e in #(
9400 e) if test -n "$ac_ct_LIPO"; then
9401 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9402 else
9403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9404 for as_dir in $PATH
9405 do
9406 IFS=$as_save_IFS
9407 case $as_dir in #(((
9408 '') as_dir=./ ;;
9409 */) ;;
9410 *) as_dir=$as_dir/ ;;
9411 esac
9412 for ac_exec_ext in '' $ac_executable_extensions; do
9413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9414 ac_cv_prog_ac_ct_LIPO="lipo"
9415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9416 break 2
9417 fi
9418 done
9419 done
9420 IFS=$as_save_IFS
9421
9422 fi ;;
9423 esac
9424 fi
9425 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9426 if test -n "$ac_ct_LIPO"; then
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9428 printf "%s\n" "$ac_ct_LIPO" >&6; }
9429 else
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 printf "%s\n" "no" >&6; }
9432 fi
9433
9434 if test "x$ac_ct_LIPO" = x; then
9435 LIPO=":"
9436 else
9437 case $cross_compiling:$ac_tool_warned in
9438 yes:)
9439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9440 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9441 ac_tool_warned=yes ;;
9442 esac
9443 LIPO=$ac_ct_LIPO
9444 fi
9445 else
9446 LIPO="$ac_cv_prog_LIPO"
9447 fi
9448
9449 if test -n "$ac_tool_prefix"; then
9450 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9451 set dummy ${ac_tool_prefix}otool; ac_word=$2
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 printf %s "checking for $ac_word... " >&6; }
9454 if test ${ac_cv_prog_OTOOL+y}
9455 then :
9456 printf %s "(cached) " >&6
9457 else case e in #(
9458 e) if test -n "$OTOOL"; then
9459 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9460 else
9461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462 for as_dir in $PATH
9463 do
9464 IFS=$as_save_IFS
9465 case $as_dir in #(((
9466 '') as_dir=./ ;;
9467 */) ;;
9468 *) as_dir=$as_dir/ ;;
9469 esac
9470 for ac_exec_ext in '' $ac_executable_extensions; do
9471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9472 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9474 break 2
9475 fi
9476 done
9477 done
9478 IFS=$as_save_IFS
9479
9480 fi ;;
9481 esac
9482 fi
9483 OTOOL=$ac_cv_prog_OTOOL
9484 if test -n "$OTOOL"; then
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9486 printf "%s\n" "$OTOOL" >&6; }
9487 else
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9489 printf "%s\n" "no" >&6; }
9490 fi
9491
9492
9493 fi
9494 if test -z "$ac_cv_prog_OTOOL"; then
9495 ac_ct_OTOOL=$OTOOL
9496 # Extract the first word of "otool", so it can be a program name with args.
9497 set dummy otool; ac_word=$2
9498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9499 printf %s "checking for $ac_word... " >&6; }
9500 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9501 then :
9502 printf %s "(cached) " >&6
9503 else case e in #(
9504 e) if test -n "$ac_ct_OTOOL"; then
9505 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9506 else
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508 for as_dir in $PATH
9509 do
9510 IFS=$as_save_IFS
9511 case $as_dir in #(((
9512 '') as_dir=./ ;;
9513 */) ;;
9514 *) as_dir=$as_dir/ ;;
9515 esac
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9518 ac_cv_prog_ac_ct_OTOOL="otool"
9519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9520 break 2
9521 fi
9522 done
9523 done
9524 IFS=$as_save_IFS
9525
9526 fi ;;
9527 esac
9528 fi
9529 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9530 if test -n "$ac_ct_OTOOL"; then
9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9532 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9533 else
9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535 printf "%s\n" "no" >&6; }
9536 fi
9537
9538 if test "x$ac_ct_OTOOL" = x; then
9539 OTOOL=":"
9540 else
9541 case $cross_compiling:$ac_tool_warned in
9542 yes:)
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9544 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9545 ac_tool_warned=yes ;;
9546 esac
9547 OTOOL=$ac_ct_OTOOL
9548 fi
9549 else
9550 OTOOL="$ac_cv_prog_OTOOL"
9551 fi
9552
9553 if test -n "$ac_tool_prefix"; then
9554 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9555 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557 printf %s "checking for $ac_word... " >&6; }
9558 if test ${ac_cv_prog_OTOOL64+y}
9559 then :
9560 printf %s "(cached) " >&6
9561 else case e in #(
9562 e) if test -n "$OTOOL64"; then
9563 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9564 else
9565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566 for as_dir in $PATH
9567 do
9568 IFS=$as_save_IFS
9569 case $as_dir in #(((
9570 '') as_dir=./ ;;
9571 */) ;;
9572 *) as_dir=$as_dir/ ;;
9573 esac
9574 for ac_exec_ext in '' $ac_executable_extensions; do
9575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9576 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9578 break 2
9579 fi
9580 done
9581 done
9582 IFS=$as_save_IFS
9583
9584 fi ;;
9585 esac
9586 fi
9587 OTOOL64=$ac_cv_prog_OTOOL64
9588 if test -n "$OTOOL64"; then
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9590 printf "%s\n" "$OTOOL64" >&6; }
9591 else
9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593 printf "%s\n" "no" >&6; }
9594 fi
9595
9596
9597 fi
9598 if test -z "$ac_cv_prog_OTOOL64"; then
9599 ac_ct_OTOOL64=$OTOOL64
9600 # Extract the first word of "otool64", so it can be a program name with args.
9601 set dummy otool64; ac_word=$2
9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603 printf %s "checking for $ac_word... " >&6; }
9604 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9605 then :
9606 printf %s "(cached) " >&6
9607 else case e in #(
9608 e) if test -n "$ac_ct_OTOOL64"; then
9609 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9610 else
9611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 for as_dir in $PATH
9613 do
9614 IFS=$as_save_IFS
9615 case $as_dir in #(((
9616 '') as_dir=./ ;;
9617 */) ;;
9618 *) as_dir=$as_dir/ ;;
9619 esac
9620 for ac_exec_ext in '' $ac_executable_extensions; do
9621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9622 ac_cv_prog_ac_ct_OTOOL64="otool64"
9623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9624 break 2
9625 fi
9626 done
9627 done
9628 IFS=$as_save_IFS
9629
9630 fi ;;
9631 esac
9632 fi
9633 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9634 if test -n "$ac_ct_OTOOL64"; then
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9636 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9637 else
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639 printf "%s\n" "no" >&6; }
9640 fi
9641
9642 if test "x$ac_ct_OTOOL64" = x; then
9643 OTOOL64=":"
9644 else
9645 case $cross_compiling:$ac_tool_warned in
9646 yes:)
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9648 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9649 ac_tool_warned=yes ;;
9650 esac
9651 OTOOL64=$ac_ct_OTOOL64
9652 fi
9653 else
9654 OTOOL64="$ac_cv_prog_OTOOL64"
9655 fi
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9684 printf %s "checking for -single_module linker flag... " >&6; }
9685 if test ${lt_cv_apple_cc_single_mod+y}
9686 then :
9687 printf %s "(cached) " >&6
9688 else case e in #(
9689 e) lt_cv_apple_cc_single_mod=no
9690 if test -z "$LT_MULTI_MODULE"; then
9691 # By default we will add the -single_module flag. You can override
9692 # by either setting the environment variable LT_MULTI_MODULE
9693 # non-empty at configure time, or by adding -multi_module to the
9694 # link flags.
9695 rm -rf libconftest.dylib*
9696 echo "int foo(void){return 1;}" > conftest.c
9697 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9698 -dynamiclib -Wl,-single_module conftest.c" >&5
9699 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9700 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9701 _lt_result=$?
9702 # If there is a non-empty error log, and "single_module"
9703 # appears in it, assume the flag caused a linker warning
9704 if test -s conftest.err && $GREP single_module conftest.err; then
9705 cat conftest.err >&5
9706 # Otherwise, if the output was created with a 0 exit code from
9707 # the compiler, it worked.
9708 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9709 lt_cv_apple_cc_single_mod=yes
9710 else
9711 cat conftest.err >&5
9712 fi
9713 rm -rf libconftest.dylib*
9714 rm -f conftest.*
9715 fi ;;
9716 esac
9717 fi
9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9719 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9720
9721 # Feature test to disable chained fixups since it is not
9722 # compatible with '-undefined dynamic_lookup'
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9724 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9725 if test ${lt_cv_support_no_fixup_chains+y}
9726 then :
9727 printf %s "(cached) " >&6
9728 else case e in #(
9729 e) save_LDFLAGS=$LDFLAGS
9730 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9733
9734 int
9735 main (void)
9736 {
9737
9738 ;
9739 return 0;
9740 }
9741 _ACEOF
9742 if ac_fn_c_try_link "$LINENO"
9743 then :
9744 lt_cv_support_no_fixup_chains=yes
9745 else case e in #(
9746 e) lt_cv_support_no_fixup_chains=no
9747 ;;
9748 esac
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9751 conftest$ac_exeext conftest.$ac_ext
9752 LDFLAGS=$save_LDFLAGS
9753
9754 ;;
9755 esac
9756 fi
9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9758 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9759
9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9761 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9762 if test ${lt_cv_ld_exported_symbols_list+y}
9763 then :
9764 printf %s "(cached) " >&6
9765 else case e in #(
9766 e) lt_cv_ld_exported_symbols_list=no
9767 save_LDFLAGS=$LDFLAGS
9768 echo "_main" > conftest.sym
9769 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9772
9773 int
9774 main (void)
9775 {
9776
9777 ;
9778 return 0;
9779 }
9780 _ACEOF
9781 if ac_fn_c_try_link "$LINENO"
9782 then :
9783 lt_cv_ld_exported_symbols_list=yes
9784 else case e in #(
9785 e) lt_cv_ld_exported_symbols_list=no ;;
9786 esac
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9789 conftest$ac_exeext conftest.$ac_ext
9790 LDFLAGS=$save_LDFLAGS
9791 ;;
9792 esac
9793 fi
9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9795 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9796
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9798 printf %s "checking for -force_load linker flag... " >&6; }
9799 if test ${lt_cv_ld_force_load+y}
9800 then :
9801 printf %s "(cached) " >&6
9802 else case e in #(
9803 e) lt_cv_ld_force_load=no
9804 cat > conftest.c << _LT_EOF
9805 int forced_loaded() { return 2;}
9806 _LT_EOF
9807 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9808 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9809 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9810 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9811 echo "$RANLIB libconftest.a" >&5
9812 $RANLIB libconftest.a 2>&5
9813 cat > conftest.c << _LT_EOF
9814 int main(void) { return 0;}
9815 _LT_EOF
9816 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9817 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9818 _lt_result=$?
9819 if test -s conftest.err && $GREP force_load conftest.err; then
9820 cat conftest.err >&5
9821 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9822 lt_cv_ld_force_load=yes
9823 else
9824 cat conftest.err >&5
9825 fi
9826 rm -f conftest.err libconftest.a conftest conftest.c
9827 rm -rf conftest.dSYM
9828 ;;
9829 esac
9830 fi
9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9832 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9833 case $host_os in
9834 rhapsody* | darwin1.[012])
9835 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9836 darwin1.*)
9837 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9838 darwin*)
9839 case $MACOSX_DEPLOYMENT_TARGET,$host in
9840 10.[012],*|,*powerpc*-darwin[5-8]*)
9841 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9842 *)
9843 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9844 if test yes = "$lt_cv_support_no_fixup_chains"; then
9845 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9846 fi
9847 ;;
9848 esac
9849 ;;
9850 esac
9851 if test yes = "$lt_cv_apple_cc_single_mod"; then
9852 _lt_dar_single_mod='$single_module'
9853 fi
9854 _lt_dar_needs_single_mod=no
9855 case $host_os in
9856 rhapsody* | darwin1.*)
9857 _lt_dar_needs_single_mod=yes ;;
9858 darwin*)
9859 # When targeting Mac OS X 10.4 (darwin 8) or later,
9860 # -single_module is the default and -multi_module is unsupported.
9861 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9862 # target any OS version that needs -single_module.
9863 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9864 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9865 _lt_dar_needs_single_mod=yes ;;
9866 esac
9867 ;;
9868 esac
9869 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9870 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9871 else
9872 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9873 fi
9874 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9875 _lt_dsymutil='~$DSYMUTIL $lib || :'
9876 else
9877 _lt_dsymutil=
9878 fi
9879 ;;
9880 esac
9881
9882 # func_munge_path_list VARIABLE PATH
9883 # -----------------------------------
9884 # VARIABLE is name of variable containing _space_ separated list of
9885 # directories to be munged by the contents of PATH, which is string
9886 # having a format:
9887 # "DIR[:DIR]:"
9888 # string "DIR[ DIR]" will be prepended to VARIABLE
9889 # ":DIR[:DIR]"
9890 # string "DIR[ DIR]" will be appended to VARIABLE
9891 # "DIRP[:DIRP]::[DIRA:]DIRA"
9892 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9893 # "DIRA[ DIRA]" will be appended to VARIABLE
9894 # "DIR[:DIR]"
9895 # VARIABLE will be replaced by "DIR[ DIR]"
9896 func_munge_path_list ()
9897 {
9898 case x$2 in
9899 x)
9900 ;;
9901 *:)
9902 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9903 ;;
9904 x:*)
9905 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9906 ;;
9907 *::*)
9908 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9909 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9910 ;;
9911 *)
9912 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9913 ;;
9914 esac
9915 }
9916
9917 ac_header= ac_cache=
9918 for ac_item in $ac_header_c_list
9919 do
9920 if test $ac_cache; then
9921 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9922 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9923 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9924 fi
9925 ac_header= ac_cache=
9926 elif test $ac_header; then
9927 ac_cache=$ac_item
9928 else
9929 ac_header=$ac_item
9930 fi
9931 done
9932
9933
9934
9935
9936
9937
9938
9939
9940 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9941 then :
9942
9943 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9944
9945 fi
9946 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9947 "
9948 if test "x$ac_cv_header_dlfcn_h" = xyes
9949 then :
9950 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9951
9952 fi
9953
9954
9955
9956
9957
9958 # Set options
9959 # Check whether --enable-static was given.
9960 if test ${enable_static+y}
9961 then :
9962 enableval=$enable_static; p=${PACKAGE-default}
9963 case $enableval in
9964 yes) enable_static=yes ;;
9965 no) enable_static=no ;;
9966 *)
9967 enable_static=no
9968 # Look at the argument we got. We use all the common list separators.
9969 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9970 for pkg in $enableval; do
9971 IFS=$lt_save_ifs
9972 if test "X$pkg" = "X$p"; then
9973 enable_static=yes
9974 fi
9975 done
9976 IFS=$lt_save_ifs
9977 ;;
9978 esac
9979 else case e in #(
9980 e) enable_static=no ;;
9981 esac
9982 fi
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993 enable_dlopen=no
9994
9995
9996 enable_win32_dll=no
9997
9998
9999 # Check whether --enable-shared was given.
10000 if test ${enable_shared+y}
10001 then :
10002 enableval=$enable_shared; p=${PACKAGE-default}
10003 case $enableval in
10004 yes) enable_shared=yes ;;
10005 no) enable_shared=no ;;
10006 *)
10007 enable_shared=no
10008 # Look at the argument we got. We use all the common list separators.
10009 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10010 for pkg in $enableval; do
10011 IFS=$lt_save_ifs
10012 if test "X$pkg" = "X$p"; then
10013 enable_shared=yes
10014 fi
10015 done
10016 IFS=$lt_save_ifs
10017 ;;
10018 esac
10019 else case e in #(
10020 e) enable_shared=yes ;;
10021 esac
10022 fi
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033 # Check whether --enable-pic was given.
10034 if test ${enable_pic+y}
10035 then :
10036 enableval=$enable_pic; lt_p=${PACKAGE-default}
10037 case $enableval in
10038 yes|no) pic_mode=$enableval ;;
10039 *)
10040 pic_mode=default
10041 # Look at the argument we got. We use all the common list separators.
10042 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10043 for lt_pkg in $enableval; do
10044 IFS=$lt_save_ifs
10045 if test "X$lt_pkg" = "X$lt_p"; then
10046 pic_mode=yes
10047 fi
10048 done
10049 IFS=$lt_save_ifs
10050 ;;
10051 esac
10052 else case e in #(
10053 e) # Check whether --with-pic was given.
10054 if test ${with_pic+y}
10055 then :
10056 withval=$with_pic; lt_p=${PACKAGE-default}
10057 case $withval in
10058 yes|no) pic_mode=$withval ;;
10059 *)
10060 pic_mode=default
10061 # Look at the argument we got. We use all the common list separators.
10062 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10063 for lt_pkg in $withval; do
10064 IFS=$lt_save_ifs
10065 if test "X$lt_pkg" = "X$lt_p"; then
10066 pic_mode=yes
10067 fi
10068 done
10069 IFS=$lt_save_ifs
10070 ;;
10071 esac
10072 else case e in #(
10073 e) pic_mode=default ;;
10074 esac
10075 fi
10076
10077 ;;
10078 esac
10079 fi
10080
10081
10082
10083
10084
10085
10086
10087
10088 # Check whether --enable-fast-install was given.
10089 if test ${enable_fast_install+y}
10090 then :
10091 enableval=$enable_fast_install; p=${PACKAGE-default}
10092 case $enableval in
10093 yes) enable_fast_install=yes ;;
10094 no) enable_fast_install=no ;;
10095 *)
10096 enable_fast_install=no
10097 # Look at the argument we got. We use all the common list separators.
10098 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10099 for pkg in $enableval; do
10100 IFS=$lt_save_ifs
10101 if test "X$pkg" = "X$p"; then
10102 enable_fast_install=yes
10103 fi
10104 done
10105 IFS=$lt_save_ifs
10106 ;;
10107 esac
10108 else case e in #(
10109 e) enable_fast_install=yes ;;
10110 esac
10111 fi
10112
10113
10114
10115
10116
10117
10118
10119
10120 shared_archive_member_spec=
10121 case $host,$enable_shared in
10122 power*-*-aix[5-9]*,yes)
10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10124 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10125 # Check whether --enable-aix-soname was given.
10126 if test ${enable_aix_soname+y}
10127 then :
10128 enableval=$enable_aix_soname; case $enableval in
10129 aix|svr4|both)
10130 ;;
10131 *)
10132 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10133 ;;
10134 esac
10135 lt_cv_with_aix_soname=$enable_aix_soname
10136 else case e in #(
10137 e) # Check whether --with-aix-soname was given.
10138 if test ${with_aix_soname+y}
10139 then :
10140 withval=$with_aix_soname; case $withval in
10141 aix|svr4|both)
10142 ;;
10143 *)
10144 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10145 ;;
10146 esac
10147 lt_cv_with_aix_soname=$with_aix_soname
10148 else case e in #(
10149 e) if test ${lt_cv_with_aix_soname+y}
10150 then :
10151 printf %s "(cached) " >&6
10152 else case e in #(
10153 e) lt_cv_with_aix_soname=aix ;;
10154 esac
10155 fi
10156 ;;
10157 esac
10158 fi
10159
10160 enable_aix_soname=$lt_cv_with_aix_soname ;;
10161 esac
10162 fi
10163
10164 with_aix_soname=$enable_aix_soname
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10166 printf "%s\n" "$with_aix_soname" >&6; }
10167 if test aix != "$with_aix_soname"; then
10168 # For the AIX way of multilib, we name the shared archive member
10169 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10170 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10171 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10172 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10173 if test 64 = "${OBJECT_MODE-32}"; then
10174 shared_archive_member_spec=shr_64
10175 else
10176 shared_archive_member_spec=shr
10177 fi
10178 fi
10179 ;;
10180 *)
10181 with_aix_soname=aix
10182 ;;
10183 esac
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194 # This can be used to rebuild libtool when needed
10195 LIBTOOL_DEPS=$ltmain
10196
10197 # Always use our own libtool.
10198 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229 test -z "$LN_S" && LN_S="ln -s"
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244 if test -n "${ZSH_VERSION+set}"; then
10245 setopt NO_GLOB_SUBST
10246 fi
10247
10248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10249 printf %s "checking for objdir... " >&6; }
10250 if test ${lt_cv_objdir+y}
10251 then :
10252 printf %s "(cached) " >&6
10253 else case e in #(
10254 e) rm -f .libs 2>/dev/null
10255 mkdir .libs 2>/dev/null
10256 if test -d .libs; then
10257 lt_cv_objdir=.libs
10258 else
10259 # MS-DOS does not allow filenames that begin with a dot.
10260 lt_cv_objdir=_libs
10261 fi
10262 rmdir .libs 2>/dev/null ;;
10263 esac
10264 fi
10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10266 printf "%s\n" "$lt_cv_objdir" >&6; }
10267 objdir=$lt_cv_objdir
10268
10269
10270
10271
10272
10273 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10274
10275
10276
10277
10278 case $host_os in
10279 aix3*)
10280 # AIX sometimes has problems with the GCC collect2 program. For some
10281 # reason, if we set the COLLECT_NAMES environment variable, the problems
10282 # vanish in a puff of smoke.
10283 if test set != "${COLLECT_NAMES+set}"; then
10284 COLLECT_NAMES=
10285 export COLLECT_NAMES
10286 fi
10287 ;;
10288 esac
10289
10290 # Global variables:
10291 ofile=libtool
10292 can_build_shared=yes
10293
10294 # All known linkers require a '.a' archive for static linking (except MSVC and
10295 # ICC, which need '.lib').
10296 libext=a
10297
10298 with_gnu_ld=$lt_cv_prog_gnu_ld
10299
10300 old_CC=$CC
10301 old_CFLAGS=$CFLAGS
10302
10303 # Set sane defaults for various variables
10304 test -z "$CC" && CC=cc
10305 test -z "$LTCC" && LTCC=$CC
10306 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10307 test -z "$LD" && LD=ld
10308 test -z "$ac_objext" && ac_objext=o
10309
10310 func_cc_basename $compiler
10311 cc_basename=$func_cc_basename_result
10312
10313
10314 # Only perform the check for file, if the check method requires it
10315 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10316 case $deplibs_check_method in
10317 file_magic*)
10318 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10320 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10321 if test ${lt_cv_path_MAGIC_CMD+y}
10322 then :
10323 printf %s "(cached) " >&6
10324 else case e in #(
10325 e) case $MAGIC_CMD in
10326 [\\/*] | ?:[\\/]*)
10327 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10328 ;;
10329 *)
10330 lt_save_MAGIC_CMD=$MAGIC_CMD
10331 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10333 for ac_dir in $ac_dummy; do
10334 IFS=$lt_save_ifs
10335 test -z "$ac_dir" && ac_dir=.
10336 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10337 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10338 if test -n "$file_magic_test_file"; then
10339 case $deplibs_check_method in
10340 "file_magic "*)
10341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10342 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10344 $EGREP "$file_magic_regex" > /dev/null; then
10345 :
10346 else
10347 cat <<_LT_EOF 1>&2
10348
10349 *** Warning: the command libtool uses to detect shared libraries,
10350 *** $file_magic_cmd, produces output that libtool cannot recognize.
10351 *** The result is that libtool may fail to recognize shared libraries
10352 *** as such. This will affect the creation of libtool libraries that
10353 *** depend on shared libraries, but programs linked with such libtool
10354 *** libraries will work regardless of this problem. Nevertheless, you
10355 *** may want to report the problem to your system manager and/or to
10356 *** [email protected]
10357
10358 _LT_EOF
10359 fi ;;
10360 esac
10361 fi
10362 break
10363 fi
10364 done
10365 IFS=$lt_save_ifs
10366 MAGIC_CMD=$lt_save_MAGIC_CMD
10367 ;;
10368 esac ;;
10369 esac
10370 fi
10371
10372 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10373 if test -n "$MAGIC_CMD"; then
10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10375 printf "%s\n" "$MAGIC_CMD" >&6; }
10376 else
10377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 printf "%s\n" "no" >&6; }
10379 fi
10380
10381
10382
10383
10384
10385 if test -z "$lt_cv_path_MAGIC_CMD"; then
10386 if test -n "$ac_tool_prefix"; then
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10388 printf %s "checking for file... " >&6; }
10389 if test ${lt_cv_path_MAGIC_CMD+y}
10390 then :
10391 printf %s "(cached) " >&6
10392 else case e in #(
10393 e) case $MAGIC_CMD in
10394 [\\/*] | ?:[\\/]*)
10395 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10396 ;;
10397 *)
10398 lt_save_MAGIC_CMD=$MAGIC_CMD
10399 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10400 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10401 for ac_dir in $ac_dummy; do
10402 IFS=$lt_save_ifs
10403 test -z "$ac_dir" && ac_dir=.
10404 if test -f "$ac_dir/file"; then
10405 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10406 if test -n "$file_magic_test_file"; then
10407 case $deplibs_check_method in
10408 "file_magic "*)
10409 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10410 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10411 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10412 $EGREP "$file_magic_regex" > /dev/null; then
10413 :
10414 else
10415 cat <<_LT_EOF 1>&2
10416
10417 *** Warning: the command libtool uses to detect shared libraries,
10418 *** $file_magic_cmd, produces output that libtool cannot recognize.
10419 *** The result is that libtool may fail to recognize shared libraries
10420 *** as such. This will affect the creation of libtool libraries that
10421 *** depend on shared libraries, but programs linked with such libtool
10422 *** libraries will work regardless of this problem. Nevertheless, you
10423 *** may want to report the problem to your system manager and/or to
10424 *** [email protected]
10425
10426 _LT_EOF
10427 fi ;;
10428 esac
10429 fi
10430 break
10431 fi
10432 done
10433 IFS=$lt_save_ifs
10434 MAGIC_CMD=$lt_save_MAGIC_CMD
10435 ;;
10436 esac ;;
10437 esac
10438 fi
10439
10440 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10441 if test -n "$MAGIC_CMD"; then
10442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10443 printf "%s\n" "$MAGIC_CMD" >&6; }
10444 else
10445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446 printf "%s\n" "no" >&6; }
10447 fi
10448
10449
10450 else
10451 MAGIC_CMD=:
10452 fi
10453 fi
10454
10455 fi
10456 ;;
10457 esac
10458
10459 # Use C for the default configuration in the libtool script
10460
10461 lt_save_CC=$CC
10462 ac_ext=c
10463 ac_cpp='$CPP $CPPFLAGS'
10464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10467
10468
10469 # Source file extension for C test sources.
10470 ac_ext=c
10471
10472 # Object file extension for compiled C test sources.
10473 objext=o
10474 objext=$objext
10475
10476 # Code to be used in simple compile tests
10477 lt_simple_compile_test_code="int some_variable = 0;"
10478
10479 # Code to be used in simple link tests
10480 lt_simple_link_test_code='int main(void){return(0);}'
10481
10482
10483
10484
10485
10486
10487
10488 # If no C compiler was specified, use CC.
10489 LTCC=${LTCC-"$CC"}
10490
10491 # If no C compiler flags were specified, use CFLAGS.
10492 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10493
10494 # Allow CC to be a program name with arguments.
10495 compiler=$CC
10496
10497 # Save the default compiler, since it gets overwritten when the other
10498 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10499 compiler_DEFAULT=$CC
10500
10501 # save warnings/boilerplate of simple test code
10502 ac_outfile=conftest.$ac_objext
10503 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10504 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10505 _lt_compiler_boilerplate=`cat conftest.err`
10506 $RM conftest*
10507
10508 ac_outfile=conftest.$ac_objext
10509 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10510 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10511 _lt_linker_boilerplate=`cat conftest.err`
10512 $RM -r conftest*
10513
10514
10515 ## CAVEAT EMPTOR:
10516 ## There is no encapsulation within the following macros, do not change
10517 ## the running order or otherwise move them around unless you know exactly
10518 ## what you are doing...
10519 if test -n "$compiler"; then
10520
10521 lt_prog_compiler_no_builtin_flag=
10522
10523 if test yes = "$GCC"; then
10524 case $cc_basename in
10525 nvcc*)
10526 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10527 *)
10528 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10529 esac
10530
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10532 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10533 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10534 then :
10535 printf %s "(cached) " >&6
10536 else case e in #(
10537 e) lt_cv_prog_compiler_rtti_exceptions=no
10538 ac_outfile=conftest.$ac_objext
10539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10540 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10541 # Insert the option either (1) after the last *FLAGS variable, or
10542 # (2) before a word containing "conftest.", or (3) at the end.
10543 # Note that $ac_compile itself does not contain backslashes and begins
10544 # with a dollar sign (not a hyphen), so the echo should work correctly.
10545 # The option is referenced via a variable to avoid confusing sed.
10546 lt_compile=`echo "$ac_compile" | $SED \
10547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10549 -e 's:$: $lt_compiler_flag:'`
10550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10551 (eval "$lt_compile" 2>conftest.err)
10552 ac_status=$?
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 if (exit $ac_status) && test -s "$ac_outfile"; then
10556 # The compiler can only warn and ignore the option if not recognized
10557 # So say no if there are warnings other than the usual output.
10558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10561 lt_cv_prog_compiler_rtti_exceptions=yes
10562 fi
10563 fi
10564 $RM conftest*
10565 ;;
10566 esac
10567 fi
10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10569 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10570
10571 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10572 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10573 else
10574 :
10575 fi
10576
10577 fi
10578
10579
10580
10581
10582
10583
10584 lt_prog_compiler_wl=
10585 lt_prog_compiler_pic=
10586 lt_prog_compiler_static=
10587
10588
10589 if test yes = "$GCC"; then
10590 lt_prog_compiler_wl='-Wl,'
10591 lt_prog_compiler_static='-static'
10592
10593 case $host_os in
10594 aix*)
10595 # All AIX code is PIC.
10596 if test ia64 = "$host_cpu"; then
10597 # AIX 5 now supports IA64 processor
10598 lt_prog_compiler_static='-Bstatic'
10599 fi
10600 lt_prog_compiler_pic='-fPIC'
10601 ;;
10602
10603 amigaos*)
10604 case $host_cpu in
10605 powerpc)
10606 # see comment about AmigaOS4 .so support
10607 lt_prog_compiler_pic='-fPIC'
10608 ;;
10609 m68k)
10610 # FIXME: we need at least 68020 code to build shared libraries, but
10611 # adding the '-m68020' flag to GCC prevents building anything better,
10612 # like '-m68040'.
10613 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10614 ;;
10615 esac
10616 ;;
10617
10618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10619 # PIC is the default for these OSes.
10620 ;;
10621
10622 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10623 # This hack is so that the source file can tell whether it is being
10624 # built for inclusion in a dll (and should export symbols for example).
10625 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10626 # (--disable-auto-import) libraries
10627 lt_prog_compiler_pic='-DDLL_EXPORT'
10628 case $host_os in
10629 os2*)
10630 lt_prog_compiler_static='$wl-static'
10631 ;;
10632 esac
10633 ;;
10634
10635 darwin* | rhapsody*)
10636 # PIC is the default on this platform
10637 # Common symbols not allowed in MH_DYLIB files
10638 lt_prog_compiler_pic='-fno-common'
10639 ;;
10640
10641 haiku*)
10642 # PIC is the default for Haiku.
10643 # The "-static" flag exists, but is broken.
10644 lt_prog_compiler_static=
10645 ;;
10646
10647 hpux*)
10648 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10649 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10650 # sets the default TLS model and affects inlining.
10651 case $host_cpu in
10652 hppa*64*)
10653 # +Z the default
10654 ;;
10655 *)
10656 lt_prog_compiler_pic='-fPIC'
10657 ;;
10658 esac
10659 ;;
10660
10661 interix[3-9]*)
10662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10663 # Instead, we relocate shared libraries at runtime.
10664 ;;
10665
10666 msdosdjgpp*)
10667 # Just because we use GCC doesn't mean we suddenly get shared libraries
10668 # on systems that don't support them.
10669 lt_prog_compiler_can_build_shared=no
10670 enable_shared=no
10671 ;;
10672
10673 *nto* | *qnx*)
10674 # QNX uses GNU C++, but need to define -shared option too, otherwise
10675 # it will coredump.
10676 lt_prog_compiler_pic='-fPIC -shared'
10677 ;;
10678
10679 sysv4*MP*)
10680 if test -d /usr/nec; then
10681 lt_prog_compiler_pic=-Kconform_pic
10682 fi
10683 ;;
10684
10685 *)
10686 lt_prog_compiler_pic='-fPIC'
10687 ;;
10688 esac
10689
10690 case $cc_basename in
10691 nvcc*) # Cuda Compiler Driver 2.2
10692 lt_prog_compiler_wl='-Xlinker '
10693 if test -n "$lt_prog_compiler_pic"; then
10694 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10695 fi
10696 ;;
10697 esac
10698 else
10699 # PORTME Check for flag to pass linker flags through the system compiler.
10700 case $host_os in
10701 aix*)
10702 lt_prog_compiler_wl='-Wl,'
10703 if test ia64 = "$host_cpu"; then
10704 # AIX 5 now supports IA64 processor
10705 lt_prog_compiler_static='-Bstatic'
10706 else
10707 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10708 fi
10709 ;;
10710
10711 darwin* | rhapsody*)
10712 # PIC is the default on this platform
10713 # Common symbols not allowed in MH_DYLIB files
10714 lt_prog_compiler_pic='-fno-common'
10715 case $cc_basename in
10716 nagfor*)
10717 # NAG Fortran compiler
10718 lt_prog_compiler_wl='-Wl,-Wl,,'
10719 lt_prog_compiler_pic='-PIC'
10720 lt_prog_compiler_static='-Bstatic'
10721 ;;
10722 esac
10723 ;;
10724
10725 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10726 # This hack is so that the source file can tell whether it is being
10727 # built for inclusion in a dll (and should export symbols for example).
10728 lt_prog_compiler_pic='-DDLL_EXPORT'
10729 case $host_os in
10730 os2*)
10731 lt_prog_compiler_static='$wl-static'
10732 ;;
10733 esac
10734 ;;
10735
10736 hpux9* | hpux10* | hpux11*)
10737 lt_prog_compiler_wl='-Wl,'
10738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10739 # not for PA HP-UX.
10740 case $host_cpu in
10741 hppa*64*|ia64*)
10742 # +Z the default
10743 ;;
10744 *)
10745 lt_prog_compiler_pic='+Z'
10746 ;;
10747 esac
10748 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10749 lt_prog_compiler_static='$wl-a ${wl}archive'
10750 ;;
10751
10752 irix5* | irix6* | nonstopux*)
10753 lt_prog_compiler_wl='-Wl,'
10754 # PIC (with -KPIC) is the default.
10755 lt_prog_compiler_static='-non_shared'
10756 ;;
10757
10758 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10759 case $cc_basename in
10760 # old Intel for x86_64, which still supported -KPIC.
10761 ecc*)
10762 lt_prog_compiler_wl='-Wl,'
10763 lt_prog_compiler_pic='-KPIC'
10764 lt_prog_compiler_static='-static'
10765 ;;
10766 *flang* | ftn | f18* | f95*)
10767 # Flang compiler.
10768 lt_prog_compiler_wl='-Wl,'
10769 lt_prog_compiler_pic='-fPIC'
10770 lt_prog_compiler_static='-static'
10771 ;;
10772 # icc used to be incompatible with GCC.
10773 # ICC 10 doesn't accept -KPIC any more.
10774 icc* | ifort*)
10775 lt_prog_compiler_wl='-Wl,'
10776 lt_prog_compiler_pic='-fPIC'
10777 lt_prog_compiler_static='-static'
10778 ;;
10779 # Lahey Fortran 8.1.
10780 lf95*)
10781 lt_prog_compiler_wl='-Wl,'
10782 lt_prog_compiler_pic='--shared'
10783 lt_prog_compiler_static='--static'
10784 ;;
10785 nagfor*)
10786 # NAG Fortran compiler
10787 lt_prog_compiler_wl='-Wl,-Wl,,'
10788 lt_prog_compiler_pic='-PIC'
10789 lt_prog_compiler_static='-Bstatic'
10790 ;;
10791 tcc*)
10792 # Fabrice Bellard et al's Tiny C Compiler
10793 lt_prog_compiler_wl='-Wl,'
10794 lt_prog_compiler_pic='-fPIC'
10795 lt_prog_compiler_static='-static'
10796 ;;
10797 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10798 # Portland Group compilers (*not* the Pentium gcc compiler,
10799 # which looks to be a dead project)
10800 lt_prog_compiler_wl='-Wl,'
10801 lt_prog_compiler_pic='-fpic'
10802 lt_prog_compiler_static='-Bstatic'
10803 ;;
10804 ccc*)
10805 lt_prog_compiler_wl='-Wl,'
10806 # All Alpha code is PIC.
10807 lt_prog_compiler_static='-non_shared'
10808 ;;
10809 xl* | bgxl* | bgf* | mpixl*)
10810 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10811 lt_prog_compiler_wl='-Wl,'
10812 lt_prog_compiler_pic='-qpic'
10813 lt_prog_compiler_static='-qstaticlink'
10814 ;;
10815 *)
10816 case `$CC -V 2>&1 | $SED 5q` in
10817 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10818 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10819 lt_prog_compiler_pic='-KPIC'
10820 lt_prog_compiler_static='-Bstatic'
10821 lt_prog_compiler_wl=''
10822 ;;
10823 *Sun\ F* | *Sun*Fortran*)
10824 lt_prog_compiler_pic='-KPIC'
10825 lt_prog_compiler_static='-Bstatic'
10826 lt_prog_compiler_wl='-Qoption ld '
10827 ;;
10828 *Sun\ C*)
10829 # Sun C 5.9
10830 lt_prog_compiler_pic='-KPIC'
10831 lt_prog_compiler_static='-Bstatic'
10832 lt_prog_compiler_wl='-Wl,'
10833 ;;
10834 *Intel*\ [CF]*Compiler*)
10835 lt_prog_compiler_wl='-Wl,'
10836 lt_prog_compiler_pic='-fPIC'
10837 lt_prog_compiler_static='-static'
10838 ;;
10839 *Portland\ Group*)
10840 lt_prog_compiler_wl='-Wl,'
10841 lt_prog_compiler_pic='-fpic'
10842 lt_prog_compiler_static='-Bstatic'
10843 ;;
10844 esac
10845 ;;
10846 esac
10847 ;;
10848
10849 newsos6)
10850 lt_prog_compiler_pic='-KPIC'
10851 lt_prog_compiler_static='-Bstatic'
10852 ;;
10853
10854 *-mlibc)
10855 lt_prog_compiler_wl='-Wl,'
10856 lt_prog_compiler_pic='-fPIC'
10857 lt_prog_compiler_static='-static'
10858 ;;
10859
10860 *nto* | *qnx*)
10861 # QNX uses GNU C++, but need to define -shared option too, otherwise
10862 # it will coredump.
10863 lt_prog_compiler_pic='-fPIC -shared'
10864 ;;
10865
10866 osf3* | osf4* | osf5*)
10867 lt_prog_compiler_wl='-Wl,'
10868 # All OSF/1 code is PIC.
10869 lt_prog_compiler_static='-non_shared'
10870 ;;
10871
10872 rdos*)
10873 lt_prog_compiler_static='-non_shared'
10874 ;;
10875
10876 serenity*)
10877 ;;
10878
10879 solaris*)
10880 lt_prog_compiler_pic='-KPIC'
10881 lt_prog_compiler_static='-Bstatic'
10882 case $cc_basename in
10883 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10884 lt_prog_compiler_wl='-Qoption ld ';;
10885 *)
10886 lt_prog_compiler_wl='-Wl,';;
10887 esac
10888 ;;
10889
10890 sunos4*)
10891 lt_prog_compiler_wl='-Qoption ld '
10892 lt_prog_compiler_pic='-PIC'
10893 lt_prog_compiler_static='-Bstatic'
10894 ;;
10895
10896 sysv4 | sysv4.2uw2* | sysv4.3*)
10897 lt_prog_compiler_wl='-Wl,'
10898 lt_prog_compiler_pic='-KPIC'
10899 lt_prog_compiler_static='-Bstatic'
10900 ;;
10901
10902 sysv4*MP*)
10903 if test -d /usr/nec; then
10904 lt_prog_compiler_pic='-Kconform_pic'
10905 lt_prog_compiler_static='-Bstatic'
10906 fi
10907 ;;
10908
10909 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10910 lt_prog_compiler_wl='-Wl,'
10911 lt_prog_compiler_pic='-KPIC'
10912 lt_prog_compiler_static='-Bstatic'
10913 ;;
10914
10915 unicos*)
10916 lt_prog_compiler_wl='-Wl,'
10917 lt_prog_compiler_can_build_shared=no
10918 ;;
10919
10920 uts4*)
10921 lt_prog_compiler_pic='-pic'
10922 lt_prog_compiler_static='-Bstatic'
10923 ;;
10924
10925 *)
10926 lt_prog_compiler_can_build_shared=no
10927 ;;
10928 esac
10929 fi
10930
10931 case $host_os in
10932 # For platforms that do not support PIC, -DPIC is meaningless:
10933 *djgpp*)
10934 lt_prog_compiler_pic=
10935 ;;
10936 *)
10937 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10938 ;;
10939 esac
10940
10941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10942 printf %s "checking for $compiler option to produce PIC... " >&6; }
10943 if test ${lt_cv_prog_compiler_pic+y}
10944 then :
10945 printf %s "(cached) " >&6
10946 else case e in #(
10947 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10948 esac
10949 fi
10950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10951 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10952 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10953
10954 #
10955 # Check to make sure the PIC flag actually works.
10956 #
10957 if test -n "$lt_prog_compiler_pic"; then
10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10959 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10960 if test ${lt_cv_prog_compiler_pic_works+y}
10961 then :
10962 printf %s "(cached) " >&6
10963 else case e in #(
10964 e) lt_cv_prog_compiler_pic_works=no
10965 ac_outfile=conftest.$ac_objext
10966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10967 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10968 # Insert the option either (1) after the last *FLAGS variable, or
10969 # (2) before a word containing "conftest.", or (3) at the end.
10970 # Note that $ac_compile itself does not contain backslashes and begins
10971 # with a dollar sign (not a hyphen), so the echo should work correctly.
10972 # The option is referenced via a variable to avoid confusing sed.
10973 lt_compile=`echo "$ac_compile" | $SED \
10974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10976 -e 's:$: $lt_compiler_flag:'`
10977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10978 (eval "$lt_compile" 2>conftest.err)
10979 ac_status=$?
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 if (exit $ac_status) && test -s "$ac_outfile"; then
10983 # The compiler can only warn and ignore the option if not recognized
10984 # So say no if there are warnings other than the usual output.
10985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10988 lt_cv_prog_compiler_pic_works=yes
10989 fi
10990 fi
10991 $RM conftest*
10992 ;;
10993 esac
10994 fi
10995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10996 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10997
10998 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10999 case $lt_prog_compiler_pic in
11000 "" | " "*) ;;
11001 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11002 esac
11003 else
11004 lt_prog_compiler_pic=
11005 lt_prog_compiler_can_build_shared=no
11006 fi
11007
11008 fi
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020 #
11021 # Check to make sure the static flag actually works.
11022 #
11023 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11025 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11026 if test ${lt_cv_prog_compiler_static_works+y}
11027 then :
11028 printf %s "(cached) " >&6
11029 else case e in #(
11030 e) lt_cv_prog_compiler_static_works=no
11031 save_LDFLAGS=$LDFLAGS
11032 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11033 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11035 # The linker can only warn and ignore the option if not recognized
11036 # So say no if there are warnings
11037 if test -s conftest.err; then
11038 # Append any errors to the config.log.
11039 cat conftest.err 1>&5
11040 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11042 if diff conftest.exp conftest.er2 >/dev/null; then
11043 lt_cv_prog_compiler_static_works=yes
11044 fi
11045 else
11046 lt_cv_prog_compiler_static_works=yes
11047 fi
11048 fi
11049 $RM -r conftest*
11050 LDFLAGS=$save_LDFLAGS
11051 ;;
11052 esac
11053 fi
11054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11055 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11056
11057 if test yes = "$lt_cv_prog_compiler_static_works"; then
11058 :
11059 else
11060 lt_prog_compiler_static=
11061 fi
11062
11063
11064
11065
11066
11067
11068
11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11070 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11071 if test ${lt_cv_prog_compiler_c_o+y}
11072 then :
11073 printf %s "(cached) " >&6
11074 else case e in #(
11075 e) lt_cv_prog_compiler_c_o=no
11076 $RM -r conftest 2>/dev/null
11077 mkdir conftest
11078 cd conftest
11079 mkdir out
11080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11081
11082 lt_compiler_flag="-o out/conftest2.$ac_objext"
11083 # Insert the option either (1) after the last *FLAGS variable, or
11084 # (2) before a word containing "conftest.", or (3) at the end.
11085 # Note that $ac_compile itself does not contain backslashes and begins
11086 # with a dollar sign (not a hyphen), so the echo should work correctly.
11087 lt_compile=`echo "$ac_compile" | $SED \
11088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11090 -e 's:$: $lt_compiler_flag:'`
11091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11092 (eval "$lt_compile" 2>out/conftest.err)
11093 ac_status=$?
11094 cat out/conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11097 then
11098 # The compiler can only warn and ignore the option if not recognized
11099 # So say no if there are warnings
11100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11103 lt_cv_prog_compiler_c_o=yes
11104 fi
11105 fi
11106 chmod u+w . 2>&5
11107 $RM conftest*
11108 # SGI C++ compiler will create directory out/ii_files/ for
11109 # template instantiation
11110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11111 $RM out/* && rmdir out
11112 cd ..
11113 $RM -r conftest
11114 $RM conftest*
11115 ;;
11116 esac
11117 fi
11118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11119 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11120
11121
11122
11123
11124
11125
11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11127 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11128 if test ${lt_cv_prog_compiler_c_o+y}
11129 then :
11130 printf %s "(cached) " >&6
11131 else case e in #(
11132 e) lt_cv_prog_compiler_c_o=no
11133 $RM -r conftest 2>/dev/null
11134 mkdir conftest
11135 cd conftest
11136 mkdir out
11137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11138
11139 lt_compiler_flag="-o out/conftest2.$ac_objext"
11140 # Insert the option either (1) after the last *FLAGS variable, or
11141 # (2) before a word containing "conftest.", or (3) at the end.
11142 # Note that $ac_compile itself does not contain backslashes and begins
11143 # with a dollar sign (not a hyphen), so the echo should work correctly.
11144 lt_compile=`echo "$ac_compile" | $SED \
11145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11147 -e 's:$: $lt_compiler_flag:'`
11148 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11149 (eval "$lt_compile" 2>out/conftest.err)
11150 ac_status=$?
11151 cat out/conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11154 then
11155 # The compiler can only warn and ignore the option if not recognized
11156 # So say no if there are warnings
11157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11158 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11159 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11160 lt_cv_prog_compiler_c_o=yes
11161 fi
11162 fi
11163 chmod u+w . 2>&5
11164 $RM conftest*
11165 # SGI C++ compiler will create directory out/ii_files/ for
11166 # template instantiation
11167 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11168 $RM out/* && rmdir out
11169 cd ..
11170 $RM -r conftest
11171 $RM conftest*
11172 ;;
11173 esac
11174 fi
11175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11176 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11177
11178
11179
11180
11181 hard_links=nottested
11182 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11183 # do not overwrite the value of need_locks provided by the user
11184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11185 printf %s "checking if we can lock with hard links... " >&6; }
11186 hard_links=yes
11187 $RM conftest*
11188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11189 touch conftest.a
11190 ln conftest.a conftest.b 2>&5 || hard_links=no
11191 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11193 printf "%s\n" "$hard_links" >&6; }
11194 if test no = "$hard_links"; then
11195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11196 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11197 need_locks=warn
11198 fi
11199 else
11200 need_locks=no
11201 fi
11202
11203
11204
11205
11206
11207
11208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11209 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11210
11211 runpath_var=
11212 allow_undefined_flag=
11213 always_export_symbols=no
11214 archive_cmds=
11215 archive_expsym_cmds=
11216 compiler_needs_object=no
11217 enable_shared_with_static_runtimes=no
11218 export_dynamic_flag_spec=
11219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11220 hardcode_automatic=no
11221 hardcode_direct=no
11222 hardcode_direct_absolute=no
11223 hardcode_libdir_flag_spec=
11224 hardcode_libdir_separator=
11225 hardcode_minus_L=no
11226 hardcode_shlibpath_var=unsupported
11227 inherit_rpath=no
11228 link_all_deplibs=unknown
11229 module_cmds=
11230 module_expsym_cmds=
11231 old_archive_from_new_cmds=
11232 old_archive_from_expsyms_cmds=
11233 thread_safe_flag_spec=
11234 whole_archive_flag_spec=
11235 # include_expsyms should be a list of space-separated symbols to be *always*
11236 # included in the symbol list
11237 include_expsyms=
11238 # exclude_expsyms can be an extended regexp of symbols to exclude
11239 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11240 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11241 # as well as any symbol that contains 'd'.
11242 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11243 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11244 # platforms (ab)use it in PIC code, but their linkers get confused if
11245 # the symbol is explicitly referenced. Since portable code cannot
11246 # rely on this symbol name, it's probably fine to never include it in
11247 # preloaded symbol tables.
11248 # Exclude shared library initialization/finalization symbols.
11249 extract_expsyms_cmds=
11250
11251 case $host_os in
11252 cygwin* | mingw* | windows* | pw32* | cegcc*)
11253 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11254 # When not using gcc, we currently assume that we are using
11255 # Microsoft Visual C++ or Intel C++ Compiler.
11256 if test yes != "$GCC"; then
11257 with_gnu_ld=no
11258 fi
11259 ;;
11260 interix*)
11261 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11262 with_gnu_ld=yes
11263 ;;
11264 esac
11265
11266 ld_shlibs=yes
11267
11268 # On some targets, GNU ld is compatible enough with the native linker
11269 # that we're better off using the native interface for both.
11270 lt_use_gnu_ld_interface=no
11271 if test yes = "$with_gnu_ld"; then
11272 case $host_os in
11273 aix*)
11274 # The AIX port of GNU ld has always aspired to compatibility
11275 # with the native linker. However, as the warning in the GNU ld
11276 # block says, versions before 2.19.5* couldn't really create working
11277 # shared libraries, regardless of the interface used.
11278 case `$LD -v 2>&1` in
11279 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11280 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11281 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11282 *)
11283 lt_use_gnu_ld_interface=yes
11284 ;;
11285 esac
11286 ;;
11287 *)
11288 lt_use_gnu_ld_interface=yes
11289 ;;
11290 esac
11291 fi
11292
11293 if test yes = "$lt_use_gnu_ld_interface"; then
11294 # If archive_cmds runs LD, not CC, wlarc should be empty
11295 wlarc='$wl'
11296
11297 # Set some defaults for GNU ld with shared library support. These
11298 # are reset later if shared libraries are not supported. Putting them
11299 # here allows them to be overridden if necessary.
11300 runpath_var=LD_RUN_PATH
11301 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11302 export_dynamic_flag_spec='$wl--export-dynamic'
11303 # ancient GNU ld didn't support --whole-archive et. al.
11304 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11305 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11306 else
11307 whole_archive_flag_spec=
11308 fi
11309 supports_anon_versioning=no
11310 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11311 *GNU\ gold*) supports_anon_versioning=yes ;;
11312 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11313 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11314 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11315 *\ 2.11.*) ;; # other 2.11 versions
11316 *) supports_anon_versioning=yes ;;
11317 esac
11318
11319 # See if GNU ld supports shared libraries.
11320 case $host_os in
11321 aix[3-9]*)
11322 # On AIX/PPC, the GNU linker is very broken
11323 if test ia64 != "$host_cpu"; then
11324 ld_shlibs=no
11325 cat <<_LT_EOF 1>&2
11326
11327 *** Warning: the GNU linker, at least up to release 2.19, is reported
11328 *** to be unable to reliably create shared libraries on AIX.
11329 *** Therefore, libtool is disabling shared libraries support. If you
11330 *** really care for shared libraries, you may want to install binutils
11331 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11332 *** You will then need to restart the configuration process.
11333
11334 _LT_EOF
11335 fi
11336 ;;
11337
11338 amigaos*)
11339 case $host_cpu in
11340 powerpc)
11341 # see comment about AmigaOS4 .so support
11342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11343 archive_expsym_cmds=''
11344 ;;
11345 m68k)
11346 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)'
11347 hardcode_libdir_flag_spec='-L$libdir'
11348 hardcode_minus_L=yes
11349 ;;
11350 esac
11351 ;;
11352
11353 beos*)
11354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11355 allow_undefined_flag=unsupported
11356 # Joseph Beckenbach <[email protected]> says some releases of gcc
11357 # support --undefined. This deserves some investigation. FIXME
11358 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11359 else
11360 ld_shlibs=no
11361 fi
11362 ;;
11363
11364 cygwin* | mingw* | windows* | pw32* | cegcc*)
11365 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11366 # as there is no search path for DLLs.
11367 hardcode_libdir_flag_spec='-L$libdir'
11368 export_dynamic_flag_spec='$wl--export-all-symbols'
11369 allow_undefined_flag=unsupported
11370 always_export_symbols=no
11371 enable_shared_with_static_runtimes=yes
11372 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'
11373 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11374 file_list_spec='@'
11375
11376 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11378 # If the export-symbols file already is a .def file, use it as
11379 # is; otherwise, prepend EXPORTS...
11380 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11381 cp $export_symbols $output_objdir/$soname.def;
11382 else
11383 echo EXPORTS > $output_objdir/$soname.def;
11384 cat $export_symbols >> $output_objdir/$soname.def;
11385 fi~
11386 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11387 else
11388 ld_shlibs=no
11389 fi
11390 ;;
11391
11392 haiku*)
11393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11394 link_all_deplibs=no
11395 ;;
11396
11397 os2*)
11398 hardcode_libdir_flag_spec='-L$libdir'
11399 hardcode_minus_L=yes
11400 allow_undefined_flag=unsupported
11401 shrext_cmds=.dll
11402 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11403 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11404 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11405 $ECHO EXPORTS >> $output_objdir/$libname.def~
11406 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11407 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11408 emximp -o $lib $output_objdir/$libname.def'
11409 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11410 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11411 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11412 $ECHO EXPORTS >> $output_objdir/$libname.def~
11413 prefix_cmds="$SED"~
11414 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11415 prefix_cmds="$prefix_cmds -e 1d";
11416 fi~
11417 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11418 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11419 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11420 emximp -o $lib $output_objdir/$libname.def'
11421 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11422 enable_shared_with_static_runtimes=yes
11423 file_list_spec='@'
11424 ;;
11425
11426 interix[3-9]*)
11427 hardcode_direct=no
11428 hardcode_shlibpath_var=no
11429 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11430 export_dynamic_flag_spec='$wl-E'
11431 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11432 # Instead, shared libraries are loaded at an image base (0x10000000 by
11433 # default) and relocated if they conflict, which is a slow very memory
11434 # consuming and fragmenting process. To avoid this, we pick a random,
11435 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11436 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11438 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'
11439 ;;
11440
11441 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11442 tmp_diet=no
11443 if test linux-dietlibc = "$host_os"; then
11444 case $cc_basename in
11445 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11446 esac
11447 fi
11448 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11449 && test no = "$tmp_diet"
11450 then
11451 tmp_addflag=' $pic_flag'
11452 tmp_sharedflag='-shared'
11453 case $cc_basename,$host_cpu in
11454 pgcc*) # Portland Group C compiler
11455 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'
11456 tmp_addflag=' $pic_flag'
11457 ;;
11458 pgf77* | pgf90* | pgf95* | pgfortran*)
11459 # Portland Group f77 and f90 compilers
11460 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'
11461 tmp_addflag=' $pic_flag -Mnomain' ;;
11462 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11463 tmp_addflag=' -i_dynamic' ;;
11464 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11465 tmp_addflag=' -i_dynamic -nofor_main' ;;
11466 ifc* | ifort*) # Intel Fortran compiler
11467 tmp_addflag=' -nofor_main' ;;
11468 lf95*) # Lahey Fortran 8.1
11469 whole_archive_flag_spec=
11470 tmp_sharedflag='--shared' ;;
11471 nagfor*) # NAGFOR 5.3
11472 tmp_sharedflag='-Wl,-shared' ;;
11473 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11474 tmp_sharedflag='-qmkshrobj'
11475 tmp_addflag= ;;
11476 nvcc*) # Cuda Compiler Driver 2.2
11477 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'
11478 compiler_needs_object=yes
11479 ;;
11480 esac
11481 case `$CC -V 2>&1 | $SED 5q` in
11482 *Sun\ C*) # Sun C 5.9
11483 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'
11484 compiler_needs_object=yes
11485 tmp_sharedflag='-G' ;;
11486 *Sun\ F*) # Sun Fortran 8.3
11487 tmp_sharedflag='-G' ;;
11488 esac
11489 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11490
11491 if test yes = "$supports_anon_versioning"; then
11492 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11493 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11494 echo "local: *; };" >> $output_objdir/$libname.ver~
11495 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11496 fi
11497
11498 case $cc_basename in
11499 tcc*)
11500 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11501 export_dynamic_flag_spec='-rdynamic'
11502 ;;
11503 xlf* | bgf* | bgxlf* | mpixlf*)
11504 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11505 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11506 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11507 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11508 if test yes = "$supports_anon_versioning"; then
11509 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11510 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11511 echo "local: *; };" >> $output_objdir/$libname.ver~
11512 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11513 fi
11514 ;;
11515 esac
11516 else
11517 ld_shlibs=no
11518 fi
11519 ;;
11520
11521 *-mlibc)
11522 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11523 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11524 ;;
11525
11526 netbsd* | netbsdelf*-gnu)
11527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11528 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11529 wlarc=
11530 else
11531 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11532 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11533 fi
11534 ;;
11535
11536 solaris*)
11537 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11538 ld_shlibs=no
11539 cat <<_LT_EOF 1>&2
11540
11541 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11542 *** create shared libraries on Solaris systems. Therefore, libtool
11543 *** is disabling shared libraries support. We urge you to upgrade GNU
11544 *** binutils to release 2.9.1 or newer. Another option is to modify
11545 *** your PATH or compiler configuration so that the native linker is
11546 *** used, and then restart.
11547
11548 _LT_EOF
11549 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11550 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11551 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11552 else
11553 ld_shlibs=no
11554 fi
11555 ;;
11556
11557 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11558 case `$LD -v 2>&1` in
11559 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11560 ld_shlibs=no
11561 cat <<_LT_EOF 1>&2
11562
11563 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11564 *** reliably create shared libraries on SCO systems. Therefore, libtool
11565 *** is disabling shared libraries support. We urge you to upgrade GNU
11566 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11567 *** your PATH or compiler configuration so that the native linker is
11568 *** used, and then restart.
11569
11570 _LT_EOF
11571 ;;
11572 *)
11573 # For security reasons, it is highly recommended that you always
11574 # use absolute paths for naming shared libraries, and exclude the
11575 # DT_RUNPATH tag from executables and libraries. But doing so
11576 # requires that you compile everything twice, which is a pain.
11577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11578 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11580 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11581 else
11582 ld_shlibs=no
11583 fi
11584 ;;
11585 esac
11586 ;;
11587
11588 sunos4*)
11589 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11590 wlarc=
11591 hardcode_direct=yes
11592 hardcode_shlibpath_var=no
11593 ;;
11594
11595 *)
11596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11597 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11598 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11599 else
11600 ld_shlibs=no
11601 fi
11602 ;;
11603 esac
11604
11605 if test no = "$ld_shlibs"; then
11606 runpath_var=
11607 hardcode_libdir_flag_spec=
11608 export_dynamic_flag_spec=
11609 whole_archive_flag_spec=
11610 fi
11611 else
11612 # PORTME fill in a description of your system's linker (not GNU ld)
11613 case $host_os in
11614 aix3*)
11615 allow_undefined_flag=unsupported
11616 always_export_symbols=yes
11617 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'
11618 # Note: this linker hardcodes the directories in LIBPATH if there
11619 # are no directories specified by -L.
11620 hardcode_minus_L=yes
11621 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11622 # Neither direct hardcoding nor static linking is supported with a
11623 # broken collect2.
11624 hardcode_direct=unsupported
11625 fi
11626 ;;
11627
11628 aix[4-9]*)
11629 if test ia64 = "$host_cpu"; then
11630 # On IA64, the linker does run time linking by default, so we don't
11631 # have to do anything special.
11632 aix_use_runtimelinking=no
11633 exp_sym_flag='-Bexport'
11634 no_entry_flag=
11635 else
11636 # If we're using GNU nm, then we don't want the "-C" option.
11637 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11638 # Without the "-l" option, or with the "-B" option, AIX nm treats
11639 # weak defined symbols like other global defined symbols, whereas
11640 # GNU nm marks them as "W".
11641 # While the 'weak' keyword is ignored in the Export File, we need
11642 # it in the Import File for the 'aix-soname' feature, so we have
11643 # to replace the "-B" option with "-P" for AIX nm.
11644 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11645 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'
11646 else
11647 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'
11648 fi
11649 aix_use_runtimelinking=no
11650
11651 # Test if we are trying to use run time linking or normal
11652 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11653 # have runtime linking enabled, and use it for executables.
11654 # For shared libraries, we enable/disable runtime linking
11655 # depending on the kind of the shared library created -
11656 # when "with_aix_soname,aix_use_runtimelinking" is:
11657 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11658 # "aix,yes" lib.so shared, rtl:yes, for executables
11659 # lib.a static archive
11660 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11661 # lib.a(lib.so.V) shared, rtl:no, for executables
11662 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11663 # lib.a(lib.so.V) shared, rtl:no
11664 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11665 # lib.a static archive
11666 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11667 for ld_flag in $LDFLAGS; do
11668 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11669 aix_use_runtimelinking=yes
11670 break
11671 fi
11672 done
11673 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11674 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11675 # so we don't have lib.a shared libs to link our executables.
11676 # We have to force runtime linking in this case.
11677 aix_use_runtimelinking=yes
11678 LDFLAGS="$LDFLAGS -Wl,-brtl"
11679 fi
11680 ;;
11681 esac
11682
11683 exp_sym_flag='-bexport'
11684 no_entry_flag='-bnoentry'
11685 fi
11686
11687 # When large executables or shared objects are built, AIX ld can
11688 # have problems creating the table of contents. If linking a library
11689 # or program results in "error TOC overflow" add -mminimal-toc to
11690 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11691 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11692
11693 archive_cmds=''
11694 hardcode_direct=yes
11695 hardcode_direct_absolute=yes
11696 hardcode_libdir_separator=':'
11697 link_all_deplibs=yes
11698 file_list_spec='$wl-f,'
11699 case $with_aix_soname,$aix_use_runtimelinking in
11700 aix,*) ;; # traditional, no import file
11701 svr4,* | *,yes) # use import file
11702 # The Import File defines what to hardcode.
11703 hardcode_direct=no
11704 hardcode_direct_absolute=no
11705 ;;
11706 esac
11707
11708 if test yes = "$GCC"; then
11709 case $host_os in aix4.[012]|aix4.[012].*)
11710 # We only want to do this on AIX 4.2 and lower, the check
11711 # below for broken collect2 doesn't work under 4.3+
11712 collect2name=`$CC -print-prog-name=collect2`
11713 if test -f "$collect2name" &&
11714 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11715 then
11716 # We have reworked collect2
11717 :
11718 else
11719 # We have old collect2
11720 hardcode_direct=unsupported
11721 # It fails to find uninstalled libraries when the uninstalled
11722 # path is not listed in the libpath. Setting hardcode_minus_L
11723 # to unsupported forces relinking
11724 hardcode_minus_L=yes
11725 hardcode_libdir_flag_spec='-L$libdir'
11726 hardcode_libdir_separator=
11727 fi
11728 ;;
11729 esac
11730 shared_flag='-shared'
11731 if test yes = "$aix_use_runtimelinking"; then
11732 shared_flag="$shared_flag "'$wl-G'
11733 fi
11734 # Need to ensure runtime linking is disabled for the traditional
11735 # shared library, or the linker may eventually find shared libraries
11736 # /with/ Import File - we do not want to mix them.
11737 shared_flag_aix='-shared'
11738 shared_flag_svr4='-shared $wl-G'
11739 else
11740 # not using gcc
11741 if test ia64 = "$host_cpu"; then
11742 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11743 # chokes on -Wl,-G. The following line is correct:
11744 shared_flag='-G'
11745 else
11746 if test yes = "$aix_use_runtimelinking"; then
11747 shared_flag='$wl-G'
11748 else
11749 shared_flag='$wl-bM:SRE'
11750 fi
11751 shared_flag_aix='$wl-bM:SRE'
11752 shared_flag_svr4='$wl-G'
11753 fi
11754 fi
11755
11756 export_dynamic_flag_spec='$wl-bexpall'
11757 # It seems that -bexpall does not export symbols beginning with
11758 # underscore (_), so it is better to generate a list of symbols to export.
11759 always_export_symbols=yes
11760 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11761 # Warning - without using the other runtime loading flags (-brtl),
11762 # -berok will link without error, but may produce a broken library.
11763 allow_undefined_flag='-berok'
11764 # Determine the default libpath from the value encoded in an
11765 # empty executable.
11766 if test set = "${lt_cv_aix_libpath+set}"; then
11767 aix_libpath=$lt_cv_aix_libpath
11768 else
11769 if test ${lt_cv_aix_libpath_+y}
11770 then :
11771 printf %s "(cached) " >&6
11772 else case e in #(
11773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775
11776 int
11777 main (void)
11778 {
11779
11780 ;
11781 return 0;
11782 }
11783 _ACEOF
11784 if ac_fn_c_try_link "$LINENO"
11785 then :
11786
11787 lt_aix_libpath_sed='
11788 /Import File Strings/,/^$/ {
11789 /^0/ {
11790 s/^0 *\([^ ]*\) *$/\1/
11791 p
11792 }
11793 }'
11794 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11795 # Check for a 64-bit object if we didn't find anything.
11796 if test -z "$lt_cv_aix_libpath_"; then
11797 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11798 fi
11799 fi
11800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11801 conftest$ac_exeext conftest.$ac_ext
11802 if test -z "$lt_cv_aix_libpath_"; then
11803 lt_cv_aix_libpath_=/usr/lib:/lib
11804 fi
11805 ;;
11806 esac
11807 fi
11808
11809 aix_libpath=$lt_cv_aix_libpath_
11810 fi
11811
11812 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11813 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
11814 else
11815 if test ia64 = "$host_cpu"; then
11816 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11817 allow_undefined_flag="-z nodefs"
11818 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"
11819 else
11820 # Determine the default libpath from the value encoded in an
11821 # empty executable.
11822 if test set = "${lt_cv_aix_libpath+set}"; then
11823 aix_libpath=$lt_cv_aix_libpath
11824 else
11825 if test ${lt_cv_aix_libpath_+y}
11826 then :
11827 printf %s "(cached) " >&6
11828 else case e in #(
11829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831
11832 int
11833 main (void)
11834 {
11835
11836 ;
11837 return 0;
11838 }
11839 _ACEOF
11840 if ac_fn_c_try_link "$LINENO"
11841 then :
11842
11843 lt_aix_libpath_sed='
11844 /Import File Strings/,/^$/ {
11845 /^0/ {
11846 s/^0 *\([^ ]*\) *$/\1/
11847 p
11848 }
11849 }'
11850 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11851 # Check for a 64-bit object if we didn't find anything.
11852 if test -z "$lt_cv_aix_libpath_"; then
11853 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11854 fi
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11857 conftest$ac_exeext conftest.$ac_ext
11858 if test -z "$lt_cv_aix_libpath_"; then
11859 lt_cv_aix_libpath_=/usr/lib:/lib
11860 fi
11861 ;;
11862 esac
11863 fi
11864
11865 aix_libpath=$lt_cv_aix_libpath_
11866 fi
11867
11868 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11869 # Warning - without using the other run time loading flags,
11870 # -berok will link without error, but may produce a broken library.
11871 no_undefined_flag=' $wl-bernotok'
11872 allow_undefined_flag=' $wl-berok'
11873 if test yes = "$with_gnu_ld"; then
11874 # We only use this code for GNU lds that support --whole-archive.
11875 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11876 else
11877 # Exported symbols can be pulled into shared objects from archives
11878 whole_archive_flag_spec='$convenience'
11879 fi
11880 archive_cmds_need_lc=yes
11881 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11882 # -brtl affects multiple linker settings, -berok does not and is overridden later
11883 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11884 if test svr4 != "$with_aix_soname"; then
11885 # This is similar to how AIX traditionally builds its shared libraries.
11886 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'
11887 fi
11888 if test aix != "$with_aix_soname"; then
11889 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'
11890 else
11891 # used by -dlpreopen to get the symbols
11892 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11893 fi
11894 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11895 fi
11896 fi
11897 ;;
11898
11899 amigaos*)
11900 case $host_cpu in
11901 powerpc)
11902 # see comment about AmigaOS4 .so support
11903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11904 archive_expsym_cmds=''
11905 ;;
11906 m68k)
11907 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)'
11908 hardcode_libdir_flag_spec='-L$libdir'
11909 hardcode_minus_L=yes
11910 ;;
11911 esac
11912 ;;
11913
11914 bsdi[45]*)
11915 export_dynamic_flag_spec=-rdynamic
11916 ;;
11917
11918 cygwin* | mingw* | windows* | pw32* | cegcc*)
11919 # When not using gcc, we currently assume that we are using
11920 # Microsoft Visual C++ or Intel C++ Compiler.
11921 # hardcode_libdir_flag_spec is actually meaningless, as there is
11922 # no search path for DLLs.
11923 case $cc_basename in
11924 cl* | icl*)
11925 # Native MSVC or ICC
11926 hardcode_libdir_flag_spec=' '
11927 allow_undefined_flag=unsupported
11928 always_export_symbols=yes
11929 file_list_spec='@'
11930 # Tell ltmain to make .lib files, not .a files.
11931 libext=lib
11932 # Tell ltmain to make .dll files, not .so files.
11933 shrext_cmds=.dll
11934 # FIXME: Setting linknames here is a bad hack.
11935 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11936 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11937 cp "$export_symbols" "$output_objdir/$soname.def";
11938 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11939 else
11940 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11941 fi~
11942 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11943 linknames='
11944 # The linker will not automatically build a static lib if we build a DLL.
11945 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11946 enable_shared_with_static_runtimes=yes
11947 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11948 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11949 # Don't use ranlib
11950 old_postinstall_cmds='chmod 644 $oldlib'
11951 postlink_cmds='lt_outputfile="@OUTPUT@"~
11952 lt_tool_outputfile="@TOOL_OUTPUT@"~
11953 case $lt_outputfile in
11954 *.exe|*.EXE) ;;
11955 *)
11956 lt_outputfile=$lt_outputfile.exe
11957 lt_tool_outputfile=$lt_tool_outputfile.exe
11958 ;;
11959 esac~
11960 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11961 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11962 $RM "$lt_outputfile.manifest";
11963 fi'
11964 ;;
11965 *)
11966 # Assume MSVC and ICC wrapper
11967 hardcode_libdir_flag_spec=' '
11968 allow_undefined_flag=unsupported
11969 # Tell ltmain to make .lib files, not .a files.
11970 libext=lib
11971 # Tell ltmain to make .dll files, not .so files.
11972 shrext_cmds=.dll
11973 # FIXME: Setting linknames here is a bad hack.
11974 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11975 # The linker will automatically build a .lib file if we build a DLL.
11976 old_archive_from_new_cmds='true'
11977 # FIXME: Should let the user specify the lib program.
11978 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11979 enable_shared_with_static_runtimes=yes
11980 ;;
11981 esac
11982 ;;
11983
11984 darwin* | rhapsody*)
11985
11986
11987 archive_cmds_need_lc=no
11988 hardcode_direct=no
11989 hardcode_automatic=yes
11990 hardcode_shlibpath_var=unsupported
11991 if test yes = "$lt_cv_ld_force_load"; then
11992 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\"`'
11993
11994 else
11995 whole_archive_flag_spec=''
11996 fi
11997 link_all_deplibs=yes
11998 allow_undefined_flag=$_lt_dar_allow_undefined
11999 case $cc_basename in
12000 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12001 *) _lt_dar_can_shared=$GCC ;;
12002 esac
12003 if test yes = "$_lt_dar_can_shared"; then
12004 output_verbose_link_cmd=func_echo_all
12005 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12006 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12007 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"
12008 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"
12009
12010 else
12011 ld_shlibs=no
12012 fi
12013
12014 ;;
12015
12016 dgux*)
12017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12018 hardcode_libdir_flag_spec='-L$libdir'
12019 hardcode_shlibpath_var=no
12020 ;;
12021
12022 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12023 # support. Future versions do this automatically, but an explicit c++rt0.o
12024 # does not break anything, and helps significantly (at the cost of a little
12025 # extra space).
12026 freebsd2.2*)
12027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12028 hardcode_libdir_flag_spec='-R$libdir'
12029 hardcode_direct=yes
12030 hardcode_shlibpath_var=no
12031 ;;
12032
12033 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12034 freebsd2.*)
12035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12036 hardcode_direct=yes
12037 hardcode_minus_L=yes
12038 hardcode_shlibpath_var=no
12039 ;;
12040
12041 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12042 freebsd* | dragonfly* | midnightbsd*)
12043 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12044 hardcode_libdir_flag_spec='-R$libdir'
12045 hardcode_direct=yes
12046 hardcode_shlibpath_var=no
12047 ;;
12048
12049 hpux9*)
12050 if test yes = "$GCC"; then
12051 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'
12052 else
12053 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'
12054 fi
12055 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12056 hardcode_libdir_separator=:
12057 hardcode_direct=yes
12058
12059 # hardcode_minus_L: Not really in the search PATH,
12060 # but as the default location of the library.
12061 hardcode_minus_L=yes
12062 export_dynamic_flag_spec='$wl-E'
12063 ;;
12064
12065 hpux10*)
12066 if test yes,no = "$GCC,$with_gnu_ld"; then
12067 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12068 else
12069 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12070 fi
12071 if test no = "$with_gnu_ld"; then
12072 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12073 hardcode_libdir_separator=:
12074 hardcode_direct=yes
12075 hardcode_direct_absolute=yes
12076 export_dynamic_flag_spec='$wl-E'
12077 # hardcode_minus_L: Not really in the search PATH,
12078 # but as the default location of the library.
12079 hardcode_minus_L=yes
12080 fi
12081 ;;
12082
12083 hpux11*)
12084 if test yes,no = "$GCC,$with_gnu_ld"; then
12085 case $host_cpu in
12086 hppa*64*)
12087 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12088 ;;
12089 ia64*)
12090 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12091 ;;
12092 *)
12093 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12094 ;;
12095 esac
12096 else
12097 case $host_cpu in
12098 hppa*64*)
12099 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12100 ;;
12101 ia64*)
12102 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12103 ;;
12104 *)
12105
12106 # Older versions of the 11.00 compiler do not understand -b yet
12107 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12109 printf %s "checking if $CC understands -b... " >&6; }
12110 if test ${lt_cv_prog_compiler__b+y}
12111 then :
12112 printf %s "(cached) " >&6
12113 else case e in #(
12114 e) lt_cv_prog_compiler__b=no
12115 save_LDFLAGS=$LDFLAGS
12116 LDFLAGS="$LDFLAGS -b"
12117 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12119 # The linker can only warn and ignore the option if not recognized
12120 # So say no if there are warnings
12121 if test -s conftest.err; then
12122 # Append any errors to the config.log.
12123 cat conftest.err 1>&5
12124 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12126 if diff conftest.exp conftest.er2 >/dev/null; then
12127 lt_cv_prog_compiler__b=yes
12128 fi
12129 else
12130 lt_cv_prog_compiler__b=yes
12131 fi
12132 fi
12133 $RM -r conftest*
12134 LDFLAGS=$save_LDFLAGS
12135 ;;
12136 esac
12137 fi
12138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12139 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12140
12141 if test yes = "$lt_cv_prog_compiler__b"; then
12142 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12143 else
12144 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12145 fi
12146
12147 ;;
12148 esac
12149 fi
12150 if test no = "$with_gnu_ld"; then
12151 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12152 hardcode_libdir_separator=:
12153
12154 case $host_cpu in
12155 hppa*64*|ia64*)
12156 hardcode_direct=no
12157 hardcode_shlibpath_var=no
12158 ;;
12159 *)
12160 hardcode_direct=yes
12161 hardcode_direct_absolute=yes
12162 export_dynamic_flag_spec='$wl-E'
12163
12164 # hardcode_minus_L: Not really in the search PATH,
12165 # but as the default location of the library.
12166 hardcode_minus_L=yes
12167 ;;
12168 esac
12169 fi
12170 ;;
12171
12172 irix5* | irix6* | nonstopux*)
12173 if test yes = "$GCC"; then
12174 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'
12175 # Try to use the -exported_symbol ld option, if it does not
12176 # work, assume that -exports_file does not work either and
12177 # implicitly export all symbols.
12178 # This should be the same for all languages, so no per-tag cache variable.
12179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12180 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12181 if test ${lt_cv_irix_exported_symbol+y}
12182 then :
12183 printf %s "(cached) " >&6
12184 else case e in #(
12185 e) save_LDFLAGS=$LDFLAGS
12186 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12189 int foo (void) { return 0; }
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"
12192 then :
12193 lt_cv_irix_exported_symbol=yes
12194 else case e in #(
12195 e) lt_cv_irix_exported_symbol=no ;;
12196 esac
12197 fi
12198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12199 conftest$ac_exeext conftest.$ac_ext
12200 LDFLAGS=$save_LDFLAGS ;;
12201 esac
12202 fi
12203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12204 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12205 if test yes = "$lt_cv_irix_exported_symbol"; then
12206 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'
12207 fi
12208 else
12209 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'
12210 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'
12211 fi
12212 archive_cmds_need_lc='no'
12213 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12214 hardcode_libdir_separator=:
12215 inherit_rpath=yes
12216 link_all_deplibs=yes
12217 ;;
12218
12219 linux*)
12220 case $cc_basename in
12221 tcc*)
12222 # Fabrice Bellard et al's Tiny C Compiler
12223 ld_shlibs=yes
12224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12225 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12226 ;;
12227 esac
12228 ;;
12229
12230 *-mlibc)
12231 ;;
12232
12233 netbsd* | netbsdelf*-gnu)
12234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12236 else
12237 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12238 fi
12239 hardcode_libdir_flag_spec='-R$libdir'
12240 hardcode_direct=yes
12241 hardcode_shlibpath_var=no
12242 ;;
12243
12244 newsos6)
12245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12246 hardcode_direct=yes
12247 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12248 hardcode_libdir_separator=:
12249 hardcode_shlibpath_var=no
12250 ;;
12251
12252 *nto* | *qnx*)
12253 ;;
12254
12255 openbsd*)
12256 if test -f /usr/libexec/ld.so; then
12257 hardcode_direct=yes
12258 hardcode_shlibpath_var=no
12259 hardcode_direct_absolute=yes
12260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12262 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12263 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12264 export_dynamic_flag_spec='$wl-E'
12265 else
12266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12267 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12268 fi
12269 else
12270 ld_shlibs=no
12271 fi
12272 ;;
12273
12274 os2*)
12275 hardcode_libdir_flag_spec='-L$libdir'
12276 hardcode_minus_L=yes
12277 allow_undefined_flag=unsupported
12278 shrext_cmds=.dll
12279 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12280 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12281 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12282 $ECHO EXPORTS >> $output_objdir/$libname.def~
12283 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12284 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12285 emximp -o $lib $output_objdir/$libname.def'
12286 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12287 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12288 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12289 $ECHO EXPORTS >> $output_objdir/$libname.def~
12290 prefix_cmds="$SED"~
12291 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12292 prefix_cmds="$prefix_cmds -e 1d";
12293 fi~
12294 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12295 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12296 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12297 emximp -o $lib $output_objdir/$libname.def'
12298 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12299 enable_shared_with_static_runtimes=yes
12300 file_list_spec='@'
12301 ;;
12302
12303 osf3*)
12304 if test yes = "$GCC"; then
12305 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12306 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'
12307 else
12308 allow_undefined_flag=' -expect_unresolved \*'
12309 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'
12310 fi
12311 archive_cmds_need_lc='no'
12312 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12313 hardcode_libdir_separator=:
12314 ;;
12315
12316 osf4* | osf5*) # as osf3* with the addition of -msym flag
12317 if test yes = "$GCC"; then
12318 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12319 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'
12320 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12321 else
12322 allow_undefined_flag=' -expect_unresolved \*'
12323 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'
12324 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~
12325 $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'
12326
12327 # Both c and cxx compiler support -rpath directly
12328 hardcode_libdir_flag_spec='-rpath $libdir'
12329 fi
12330 archive_cmds_need_lc='no'
12331 hardcode_libdir_separator=:
12332 ;;
12333
12334 serenity*)
12335 ;;
12336
12337 solaris*)
12338 no_undefined_flag=' -z defs'
12339 if test yes = "$GCC"; then
12340 wlarc='$wl'
12341 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12343 $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'
12344 else
12345 case `$CC -V 2>&1` in
12346 *"Compilers 5.0"*)
12347 wlarc=''
12348 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12350 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12351 ;;
12352 *)
12353 wlarc='$wl'
12354 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12355 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12356 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12357 ;;
12358 esac
12359 fi
12360 hardcode_libdir_flag_spec='-R$libdir'
12361 hardcode_shlibpath_var=no
12362 case $host_os in
12363 solaris2.[0-5] | solaris2.[0-5].*) ;;
12364 *)
12365 # The compiler driver will combine and reorder linker options,
12366 # but understands '-z linker_flag'. GCC discards it without '$wl',
12367 # but is careful enough not to reorder.
12368 # Supported since Solaris 2.6 (maybe 2.5.1?)
12369 if test yes = "$GCC"; then
12370 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12371 else
12372 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12373 fi
12374 ;;
12375 esac
12376 link_all_deplibs=yes
12377 ;;
12378
12379 sunos4*)
12380 if test sequent = "$host_vendor"; then
12381 # Use $CC to link under sequent, because it throws in some extra .o
12382 # files that make .init and .fini sections work.
12383 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12384 else
12385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12386 fi
12387 hardcode_libdir_flag_spec='-L$libdir'
12388 hardcode_direct=yes
12389 hardcode_minus_L=yes
12390 hardcode_shlibpath_var=no
12391 ;;
12392
12393 sysv4)
12394 case $host_vendor in
12395 sni)
12396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12397 hardcode_direct=yes # is this really true???
12398 ;;
12399 siemens)
12400 ## LD is ld it makes a PLAMLIB
12401 ## CC just makes a GrossModule.
12402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12403 reload_cmds='$CC -r -o $output$reload_objs'
12404 hardcode_direct=no
12405 ;;
12406 motorola)
12407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12409 ;;
12410 esac
12411 runpath_var='LD_RUN_PATH'
12412 hardcode_shlibpath_var=no
12413 ;;
12414
12415 sysv4.3*)
12416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12417 hardcode_shlibpath_var=no
12418 export_dynamic_flag_spec='-Bexport'
12419 ;;
12420
12421 sysv4*MP*)
12422 if test -d /usr/nec; then
12423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12424 hardcode_shlibpath_var=no
12425 runpath_var=LD_RUN_PATH
12426 hardcode_runpath_var=yes
12427 ld_shlibs=yes
12428 fi
12429 ;;
12430
12431 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12432 no_undefined_flag='$wl-z,text'
12433 archive_cmds_need_lc=no
12434 hardcode_shlibpath_var=no
12435 runpath_var='LD_RUN_PATH'
12436
12437 if test yes = "$GCC"; then
12438 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12439 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12440 else
12441 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12442 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12443 fi
12444 ;;
12445
12446 sysv5* | sco3.2v5* | sco5v6*)
12447 # Note: We CANNOT use -z defs as we might desire, because we do not
12448 # link with -lc, and that would cause any symbols used from libc to
12449 # always be unresolved, which means just about no library would
12450 # ever link correctly. If we're not using GNU ld we use -z text
12451 # though, which does catch some bad symbols but isn't as heavy-handed
12452 # as -z defs.
12453 no_undefined_flag='$wl-z,text'
12454 allow_undefined_flag='$wl-z,nodefs'
12455 archive_cmds_need_lc=no
12456 hardcode_shlibpath_var=no
12457 hardcode_libdir_flag_spec='$wl-R,$libdir'
12458 hardcode_libdir_separator=':'
12459 link_all_deplibs=yes
12460 export_dynamic_flag_spec='$wl-Bexport'
12461 runpath_var='LD_RUN_PATH'
12462
12463 if test yes = "$GCC"; then
12464 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12465 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12466 else
12467 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12468 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12469 fi
12470 ;;
12471
12472 uts4*)
12473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12474 hardcode_libdir_flag_spec='-L$libdir'
12475 hardcode_shlibpath_var=no
12476 ;;
12477
12478 *)
12479 ld_shlibs=no
12480 ;;
12481 esac
12482
12483 if test sni = "$host_vendor"; then
12484 case $host in
12485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12486 export_dynamic_flag_spec='$wl-Blargedynsym'
12487 ;;
12488 esac
12489 fi
12490 fi
12491
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12493 printf "%s\n" "$ld_shlibs" >&6; }
12494 test no = "$ld_shlibs" && can_build_shared=no
12495
12496 with_gnu_ld=$with_gnu_ld
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512 #
12513 # Do we need to explicitly link libc?
12514 #
12515 case "x$archive_cmds_need_lc" in
12516 x|xyes)
12517 # Assume -lc should be added
12518 archive_cmds_need_lc=yes
12519
12520 if test yes,yes = "$GCC,$enable_shared"; then
12521 case $archive_cmds in
12522 *'~'*)
12523 # FIXME: we may have to deal with multi-command sequences.
12524 ;;
12525 '$CC '*)
12526 # Test whether the compiler implicitly links with -lc since on some
12527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12528 # to ld, don't add -lc before -lgcc.
12529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12530 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12531 if test ${lt_cv_archive_cmds_need_lc+y}
12532 then :
12533 printf %s "(cached) " >&6
12534 else case e in #(
12535 e) $RM conftest*
12536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12537
12538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12539 (eval $ac_compile) 2>&5
12540 ac_status=$?
12541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12542 test $ac_status = 0; } 2>conftest.err; then
12543 soname=conftest
12544 lib=conftest
12545 libobjs=conftest.$ac_objext
12546 deplibs=
12547 wl=$lt_prog_compiler_wl
12548 pic_flag=$lt_prog_compiler_pic
12549 compiler_flags=-v
12550 linker_flags=-v
12551 verstring=
12552 output_objdir=.
12553 libname=conftest
12554 lt_save_allow_undefined_flag=$allow_undefined_flag
12555 allow_undefined_flag=
12556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12557 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12558 ac_status=$?
12559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12560 test $ac_status = 0; }
12561 then
12562 lt_cv_archive_cmds_need_lc=no
12563 else
12564 lt_cv_archive_cmds_need_lc=yes
12565 fi
12566 allow_undefined_flag=$lt_save_allow_undefined_flag
12567 else
12568 cat conftest.err 1>&5
12569 fi
12570 $RM conftest*
12571 ;;
12572 esac
12573 fi
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12575 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12576 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12577 ;;
12578 esac
12579 fi
12580 ;;
12581 esac
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12735 printf %s "checking dynamic linker characteristics... " >&6; }
12736
12737 if test yes = "$GCC"; then
12738 case $host_os in
12739 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12740 *) lt_awk_arg='/^libraries:/' ;;
12741 esac
12742 case $host_os in
12743 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12744 *) lt_sed_strip_eq='s|=/|/|g' ;;
12745 esac
12746 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12747 case $lt_search_path_spec in
12748 *\;*)
12749 # if the path contains ";" then we assume it to be the separator
12750 # otherwise default to the standard path separator (i.e. ":") - it is
12751 # assumed that no part of a normal pathname contains ";" but that should
12752 # okay in the real world where ";" in dirpaths is itself problematic.
12753 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12754 ;;
12755 *)
12756 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12757 ;;
12758 esac
12759 # Ok, now we have the path, separated by spaces, we can step through it
12760 # and add multilib dir if necessary...
12761 lt_tmp_lt_search_path_spec=
12762 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12763 # ...but if some path component already ends with the multilib dir we assume
12764 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12765 case "$lt_multi_os_dir; $lt_search_path_spec " in
12766 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12767 lt_multi_os_dir=
12768 ;;
12769 esac
12770 for lt_sys_path in $lt_search_path_spec; do
12771 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12772 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12773 elif test -n "$lt_multi_os_dir"; then
12774 test -d "$lt_sys_path" && \
12775 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12776 fi
12777 done
12778 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12779 BEGIN {RS = " "; FS = "/|\n";} {
12780 lt_foo = "";
12781 lt_count = 0;
12782 for (lt_i = NF; lt_i > 0; lt_i--) {
12783 if ($lt_i != "" && $lt_i != ".") {
12784 if ($lt_i == "..") {
12785 lt_count++;
12786 } else {
12787 if (lt_count == 0) {
12788 lt_foo = "/" $lt_i lt_foo;
12789 } else {
12790 lt_count--;
12791 }
12792 }
12793 }
12794 }
12795 if (lt_foo != "") { lt_freq[lt_foo]++; }
12796 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12797 }'`
12798 # AWK program above erroneously prepends '/' to C:/dos/paths
12799 # for these hosts.
12800 case $host_os in
12801 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12802 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12803 esac
12804 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12805 else
12806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12807 fi
12808 library_names_spec=
12809 libname_spec='lib$name'
12810 soname_spec=
12811 shrext_cmds=.so
12812 postinstall_cmds=
12813 postuninstall_cmds=
12814 finish_cmds=
12815 finish_eval=
12816 shlibpath_var=
12817 shlibpath_overrides_runpath=unknown
12818 version_type=none
12819 dynamic_linker="$host_os ld.so"
12820 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12821 need_lib_prefix=unknown
12822 hardcode_into_libs=no
12823
12824 # when you set need_version to no, make sure it does not cause -set_version
12825 # flags to be left without arguments
12826 need_version=unknown
12827
12828
12829
12830 case $host_os in
12831 aix3*)
12832 version_type=linux # correct to gnu/linux during the next big refactor
12833 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12834 shlibpath_var=LIBPATH
12835
12836 # AIX 3 has no versioning support, so we append a major version to the name.
12837 soname_spec='$libname$release$shared_ext$major'
12838 ;;
12839
12840 aix[4-9]*)
12841 version_type=linux # correct to gnu/linux during the next big refactor
12842 need_lib_prefix=no
12843 need_version=no
12844 hardcode_into_libs=yes
12845 if test ia64 = "$host_cpu"; then
12846 # AIX 5 supports IA64
12847 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12848 shlibpath_var=LD_LIBRARY_PATH
12849 else
12850 # With GCC up to 2.95.x, collect2 would create an import file
12851 # for dependence libraries. The import file would start with
12852 # the line '#! .'. This would cause the generated library to
12853 # depend on '.', always an invalid library. This was fixed in
12854 # development snapshots of GCC prior to 3.0.
12855 case $host_os in
12856 aix4 | aix4.[01] | aix4.[01].*)
12857 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12858 echo ' yes '
12859 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12860 :
12861 else
12862 can_build_shared=no
12863 fi
12864 ;;
12865 esac
12866 # Using Import Files as archive members, it is possible to support
12867 # filename-based versioning of shared library archives on AIX. While
12868 # this would work for both with and without runtime linking, it will
12869 # prevent static linking of such archives. So we do filename-based
12870 # shared library versioning with .so extension only, which is used
12871 # when both runtime linking and shared linking is enabled.
12872 # Unfortunately, runtime linking may impact performance, so we do
12873 # not want this to be the default eventually. Also, we use the
12874 # versioned .so libs for executables only if there is the -brtl
12875 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12876 # To allow for filename-based versioning support, we need to create
12877 # libNAME.so.V as an archive file, containing:
12878 # *) an Import File, referring to the versioned filename of the
12879 # archive as well as the shared archive member, telling the
12880 # bitwidth (32 or 64) of that shared object, and providing the
12881 # list of exported symbols of that shared object, eventually
12882 # decorated with the 'weak' keyword
12883 # *) the shared object with the F_LOADONLY flag set, to really avoid
12884 # it being seen by the linker.
12885 # At run time we better use the real file rather than another symlink,
12886 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12887
12888 case $with_aix_soname,$aix_use_runtimelinking in
12889 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12890 # soname into executable. Probably we can add versioning support to
12891 # collect2, so additional links can be useful in future.
12892 aix,yes) # traditional libtool
12893 dynamic_linker='AIX unversionable lib.so'
12894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12895 # instead of lib<name>.a to let people know that these are not
12896 # typical AIX shared libraries.
12897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12898 ;;
12899 aix,no) # traditional AIX only
12900 dynamic_linker='AIX lib.a(lib.so.V)'
12901 # We preserve .a as extension for shared libraries through AIX4.2
12902 # and later when we are not doing run time linking.
12903 library_names_spec='$libname$release.a $libname.a'
12904 soname_spec='$libname$release$shared_ext$major'
12905 ;;
12906 svr4,*) # full svr4 only
12907 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12908 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12909 # We do not specify a path in Import Files, so LIBPATH fires.
12910 shlibpath_overrides_runpath=yes
12911 ;;
12912 *,yes) # both, prefer svr4
12913 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12914 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12915 # unpreferred sharedlib libNAME.a needs extra handling
12916 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"'
12917 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"'
12918 # We do not specify a path in Import Files, so LIBPATH fires.
12919 shlibpath_overrides_runpath=yes
12920 ;;
12921 *,no) # both, prefer aix
12922 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12923 library_names_spec='$libname$release.a $libname.a'
12924 soname_spec='$libname$release$shared_ext$major'
12925 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12926 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)'
12927 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"'
12928 ;;
12929 esac
12930 shlibpath_var=LIBPATH
12931 fi
12932 ;;
12933
12934 amigaos*)
12935 case $host_cpu in
12936 powerpc)
12937 # Since July 2007 AmigaOS4 officially supports .so libraries.
12938 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12940 ;;
12941 m68k)
12942 library_names_spec='$libname.ixlibrary $libname.a'
12943 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12944 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'
12945 ;;
12946 esac
12947 ;;
12948
12949 beos*)
12950 library_names_spec='$libname$shared_ext'
12951 dynamic_linker="$host_os ld.so"
12952 shlibpath_var=LIBRARY_PATH
12953 ;;
12954
12955 bsdi[45]*)
12956 version_type=linux # correct to gnu/linux during the next big refactor
12957 need_version=no
12958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12959 soname_spec='$libname$release$shared_ext$major'
12960 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12961 shlibpath_var=LD_LIBRARY_PATH
12962 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12963 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12964 # the default ld.so.conf also contains /usr/contrib/lib and
12965 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12966 # libtool to hard-code these into programs
12967 ;;
12968
12969 cygwin* | mingw* | windows* | pw32* | cegcc*)
12970 version_type=windows
12971 shrext_cmds=.dll
12972 need_version=no
12973 need_lib_prefix=no
12974
12975 case $GCC,$cc_basename in
12976 yes,*)
12977 # gcc
12978 library_names_spec='$libname.dll.a'
12979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12980 # If user builds GCC with multilib enabled,
12981 # it should just install on $(libdir)
12982 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12983 if test xyes = x"$multilib"; then
12984 postinstall_cmds='base_file=`basename \$file`~
12985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12986 dldir=$destdir/`dirname \$dlpath`~
12987 $install_prog $dir/$dlname $destdir/$dlname~
12988 chmod a+x $destdir/$dlname~
12989 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12990 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12991 fi'
12992 else
12993 postinstall_cmds='base_file=`basename \$file`~
12994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12995 dldir=$destdir/`dirname \$dlpath`~
12996 test -d \$dldir || mkdir -p \$dldir~
12997 $install_prog $dir/$dlname \$dldir/$dlname~
12998 chmod a+x \$dldir/$dlname~
12999 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13000 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13001 fi'
13002 fi
13003 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13004 dlpath=$dir/\$dldll~
13005 $RM \$dlpath'
13006 shlibpath_overrides_runpath=yes
13007
13008 case $host_os in
13009 cygwin*)
13010 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13011 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13012
13013 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13014 ;;
13015 mingw* | windows* | cegcc*)
13016 # MinGW DLLs use traditional 'lib' prefix
13017 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13018 ;;
13019 pw32*)
13020 # pw32 DLLs use 'pw' prefix rather than 'lib'
13021 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13022 ;;
13023 esac
13024 dynamic_linker='Win32 ld.exe'
13025 ;;
13026
13027 *,cl* | *,icl*)
13028 # Native MSVC or ICC
13029 libname_spec='$name'
13030 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13031 library_names_spec='$libname.dll.lib'
13032
13033 case $build_os in
13034 mingw* | windows*)
13035 sys_lib_search_path_spec=
13036 lt_save_ifs=$IFS
13037 IFS=';'
13038 for lt_path in $LIB
13039 do
13040 IFS=$lt_save_ifs
13041 # Let DOS variable expansion print the short 8.3 style file name.
13042 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13043 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13044 done
13045 IFS=$lt_save_ifs
13046 # Convert to MSYS style.
13047 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13048 ;;
13049 cygwin*)
13050 # Convert to unix form, then to dos form, then back to unix form
13051 # but this time dos style (no spaces!) so that the unix form looks
13052 # like /cygdrive/c/PROGRA~1:/cygdr...
13053 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13054 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13055 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13056 ;;
13057 *)
13058 sys_lib_search_path_spec=$LIB
13059 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13060 # It is most probably a Windows format PATH.
13061 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13062 else
13063 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13064 fi
13065 # FIXME: find the short name or the path components, as spaces are
13066 # common. (e.g. "Program Files" -> "PROGRA~1")
13067 ;;
13068 esac
13069
13070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13071 postinstall_cmds='base_file=`basename \$file`~
13072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13073 dldir=$destdir/`dirname \$dlpath`~
13074 test -d \$dldir || mkdir -p \$dldir~
13075 $install_prog $dir/$dlname \$dldir/$dlname'
13076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13077 dlpath=$dir/\$dldll~
13078 $RM \$dlpath'
13079 shlibpath_overrides_runpath=yes
13080 dynamic_linker='Win32 link.exe'
13081 ;;
13082
13083 *)
13084 # Assume MSVC and ICC wrapper
13085 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13086 dynamic_linker='Win32 ld.exe'
13087 ;;
13088 esac
13089 # FIXME: first we should search . and the directory the executable is in
13090 shlibpath_var=PATH
13091 ;;
13092
13093 darwin* | rhapsody*)
13094 dynamic_linker="$host_os dyld"
13095 version_type=darwin
13096 need_lib_prefix=no
13097 need_version=no
13098 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13099 soname_spec='$libname$release$major$shared_ext'
13100 shlibpath_overrides_runpath=yes
13101 shlibpath_var=DYLD_LIBRARY_PATH
13102 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13103
13104 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13105 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13106 ;;
13107
13108 dgux*)
13109 version_type=linux # correct to gnu/linux during the next big refactor
13110 need_lib_prefix=no
13111 need_version=no
13112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13113 soname_spec='$libname$release$shared_ext$major'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 ;;
13116
13117 freebsd* | dragonfly* | midnightbsd*)
13118 # DragonFly does not have aout. When/if they implement a new
13119 # versioning mechanism, adjust this.
13120 if test -x /usr/bin/objformat; then
13121 objformat=`/usr/bin/objformat`
13122 else
13123 case $host_os in
13124 freebsd[23].*) objformat=aout ;;
13125 *) objformat=elf ;;
13126 esac
13127 fi
13128 version_type=freebsd-$objformat
13129 case $version_type in
13130 freebsd-elf*)
13131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13132 soname_spec='$libname$release$shared_ext$major'
13133 need_version=no
13134 need_lib_prefix=no
13135 ;;
13136 freebsd-*)
13137 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13138 need_version=yes
13139 ;;
13140 esac
13141 case $host_cpu in
13142 powerpc64)
13143 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13144 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147 int test_pointer_size[sizeof (void *) - 5];
13148
13149 _ACEOF
13150 if ac_fn_c_try_compile "$LINENO"
13151 then :
13152 shlibpath_var=LD_LIBRARY_PATH
13153 else case e in #(
13154 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13155 esac
13156 fi
13157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13158 ;;
13159 *)
13160 shlibpath_var=LD_LIBRARY_PATH
13161 ;;
13162 esac
13163 case $host_os in
13164 freebsd2.*)
13165 shlibpath_overrides_runpath=yes
13166 ;;
13167 freebsd3.[01]* | freebsdelf3.[01]*)
13168 shlibpath_overrides_runpath=yes
13169 hardcode_into_libs=yes
13170 ;;
13171 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13172 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13173 shlibpath_overrides_runpath=no
13174 hardcode_into_libs=yes
13175 ;;
13176 *) # from 4.6 on, and DragonFly
13177 shlibpath_overrides_runpath=yes
13178 hardcode_into_libs=yes
13179 ;;
13180 esac
13181 ;;
13182
13183 haiku*)
13184 version_type=linux # correct to gnu/linux during the next big refactor
13185 need_lib_prefix=no
13186 need_version=no
13187 dynamic_linker="$host_os runtime_loader"
13188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13189 soname_spec='$libname$release$shared_ext$major'
13190 shlibpath_var=LIBRARY_PATH
13191 shlibpath_overrides_runpath=no
13192 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13193 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13194 hardcode_into_libs=no
13195 ;;
13196
13197 hpux9* | hpux10* | hpux11*)
13198 # Give a soname corresponding to the major version so that dld.sl refuses to
13199 # link against other versions.
13200 version_type=sunos
13201 need_lib_prefix=no
13202 need_version=no
13203 case $host_cpu in
13204 ia64*)
13205 shrext_cmds='.so'
13206 hardcode_into_libs=yes
13207 dynamic_linker="$host_os dld.so"
13208 shlibpath_var=LD_LIBRARY_PATH
13209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13211 soname_spec='$libname$release$shared_ext$major'
13212 if test 32 = "$HPUX_IA64_MODE"; then
13213 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13214 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13215 else
13216 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13217 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13218 fi
13219 ;;
13220 hppa*64*)
13221 shrext_cmds='.sl'
13222 hardcode_into_libs=yes
13223 dynamic_linker="$host_os dld.sl"
13224 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13227 soname_spec='$libname$release$shared_ext$major'
13228 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13230 ;;
13231 *)
13232 shrext_cmds='.sl'
13233 dynamic_linker="$host_os dld.sl"
13234 shlibpath_var=SHLIB_PATH
13235 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13237 soname_spec='$libname$release$shared_ext$major'
13238 ;;
13239 esac
13240 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13241 postinstall_cmds='chmod 555 $lib'
13242 # or fails outright, so override atomically:
13243 install_override_mode=555
13244 ;;
13245
13246 interix[3-9]*)
13247 version_type=linux # correct to gnu/linux during the next big refactor
13248 need_lib_prefix=no
13249 need_version=no
13250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13251 soname_spec='$libname$release$shared_ext$major'
13252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13253 shlibpath_var=LD_LIBRARY_PATH
13254 shlibpath_overrides_runpath=no
13255 hardcode_into_libs=yes
13256 ;;
13257
13258 irix5* | irix6* | nonstopux*)
13259 case $host_os in
13260 nonstopux*) version_type=nonstopux ;;
13261 *)
13262 if test yes = "$lt_cv_prog_gnu_ld"; then
13263 version_type=linux # correct to gnu/linux during the next big refactor
13264 else
13265 version_type=irix
13266 fi ;;
13267 esac
13268 need_lib_prefix=no
13269 need_version=no
13270 soname_spec='$libname$release$shared_ext$major'
13271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13272 case $host_os in
13273 irix5* | nonstopux*)
13274 libsuff= shlibsuff=
13275 ;;
13276 *)
13277 case $LD in # libtool.m4 will add one of these switches to LD
13278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13279 libsuff= shlibsuff= libmagic=32-bit;;
13280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13281 libsuff=32 shlibsuff=N32 libmagic=N32;;
13282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13283 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13284 *) libsuff= shlibsuff= libmagic=never-match;;
13285 esac
13286 ;;
13287 esac
13288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13289 shlibpath_overrides_runpath=no
13290 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13291 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13292 hardcode_into_libs=yes
13293 ;;
13294
13295 # No shared lib support for Linux oldld, aout, or coff.
13296 linux*oldld* | linux*aout* | linux*coff*)
13297 dynamic_linker=no
13298 ;;
13299
13300 linux*android*)
13301 version_type=none # Android doesn't support versioned libraries.
13302 need_lib_prefix=no
13303 need_version=no
13304 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13305 soname_spec='$libname$release$shared_ext'
13306 finish_cmds=
13307 shlibpath_var=LD_LIBRARY_PATH
13308 shlibpath_overrides_runpath=yes
13309
13310 # This implies no fast_install, which is unacceptable.
13311 # Some rework will be needed to allow for fast_install
13312 # before this can be enabled.
13313 hardcode_into_libs=yes
13314
13315 dynamic_linker='Android linker'
13316 # -rpath works at least for libraries that are not overridden by
13317 # libraries installed in system locations.
13318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13319 ;;
13320
13321 # This must be glibc/ELF.
13322 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13323 version_type=linux # correct to gnu/linux during the next big refactor
13324 need_lib_prefix=no
13325 need_version=no
13326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13327 soname_spec='$libname$release$shared_ext$major'
13328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13329 shlibpath_var=LD_LIBRARY_PATH
13330 shlibpath_overrides_runpath=no
13331
13332 # Some binutils ld are patched to set DT_RUNPATH
13333 if test ${lt_cv_shlibpath_overrides_runpath+y}
13334 then :
13335 printf %s "(cached) " >&6
13336 else case e in #(
13337 e) lt_cv_shlibpath_overrides_runpath=no
13338 save_LDFLAGS=$LDFLAGS
13339 save_libdir=$libdir
13340 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13341 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13344
13345 int
13346 main (void)
13347 {
13348
13349 ;
13350 return 0;
13351 }
13352 _ACEOF
13353 if ac_fn_c_try_link "$LINENO"
13354 then :
13355 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13356 then :
13357 lt_cv_shlibpath_overrides_runpath=yes
13358 fi
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13361 conftest$ac_exeext conftest.$ac_ext
13362 LDFLAGS=$save_LDFLAGS
13363 libdir=$save_libdir
13364 ;;
13365 esac
13366 fi
13367
13368 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13369
13370 # This implies no fast_install, which is unacceptable.
13371 # Some rework will be needed to allow for fast_install
13372 # before this can be enabled.
13373 hardcode_into_libs=yes
13374
13375 # Ideally, we could use ldconfig to report *all* directories which are
13376 # searched for libraries, however this is still not possible. Aside from not
13377 # being certain /sbin/ldconfig is available, command
13378 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13379 # even though it is searched at run-time. Try to do the best guess by
13380 # appending ld.so.conf contents (and includes) to the search path.
13381 if test -f /etc/ld.so.conf; then
13382 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' ' '`
13383 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13384 fi
13385
13386 # We used to test for /lib/ld.so.1 and disable shared libraries on
13387 # powerpc, because MkLinux only supported shared libraries with the
13388 # GNU dynamic linker. Since this was broken with cross compilers,
13389 # most powerpc-linux boxes support dynamic linking these days and
13390 # people can always --disable-shared, the test was removed, and we
13391 # assume the GNU/Linux dynamic linker is in use.
13392 dynamic_linker='GNU/Linux ld.so'
13393 ;;
13394
13395 netbsdelf*-gnu)
13396 version_type=linux
13397 need_lib_prefix=no
13398 need_version=no
13399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13400 soname_spec='$libname$release$shared_ext$major'
13401 shlibpath_var=LD_LIBRARY_PATH
13402 shlibpath_overrides_runpath=no
13403 hardcode_into_libs=yes
13404 dynamic_linker='NetBSD ld.elf_so'
13405 ;;
13406
13407 netbsd*)
13408 version_type=sunos
13409 need_lib_prefix=no
13410 need_version=no
13411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13412 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13414 dynamic_linker='NetBSD (a.out) ld.so'
13415 else
13416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13417 soname_spec='$libname$release$shared_ext$major'
13418 dynamic_linker='NetBSD ld.elf_so'
13419 fi
13420 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=yes
13422 hardcode_into_libs=yes
13423 ;;
13424
13425 *-mlibc)
13426 version_type=linux # correct to gnu/linux during the next big refactor
13427 need_lib_prefix=no
13428 need_version=no
13429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13430 soname_spec='$libname$release$shared_ext$major'
13431 dynamic_linker='mlibc ld.so'
13432 shlibpath_var=LD_LIBRARY_PATH
13433 shlibpath_overrides_runpath=no
13434 hardcode_into_libs=yes
13435 ;;
13436
13437 newsos6)
13438 version_type=linux # correct to gnu/linux during the next big refactor
13439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13440 shlibpath_var=LD_LIBRARY_PATH
13441 shlibpath_overrides_runpath=yes
13442 ;;
13443
13444 *nto* | *qnx*)
13445 version_type=qnx
13446 need_lib_prefix=no
13447 need_version=no
13448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13449 soname_spec='$libname$release$shared_ext$major'
13450 shlibpath_var=LD_LIBRARY_PATH
13451 shlibpath_overrides_runpath=no
13452 hardcode_into_libs=yes
13453 dynamic_linker='ldqnx.so'
13454 ;;
13455
13456 openbsd*)
13457 version_type=sunos
13458 sys_lib_dlsearch_path_spec=/usr/lib
13459 need_lib_prefix=no
13460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13461 need_version=no
13462 else
13463 need_version=yes
13464 fi
13465 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=yes
13469 ;;
13470
13471 os2*)
13472 libname_spec='$name'
13473 version_type=windows
13474 shrext_cmds=.dll
13475 need_version=no
13476 need_lib_prefix=no
13477 # OS/2 can only load a DLL with a base name of 8 characters or less.
13478 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13479 v=$($ECHO $release$versuffix | tr -d .-);
13480 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13481 $ECHO $n$v`$shared_ext'
13482 library_names_spec='${libname}_dll.$libext'
13483 dynamic_linker='OS/2 ld.exe'
13484 shlibpath_var=BEGINLIBPATH
13485 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13487 postinstall_cmds='base_file=`basename \$file`~
13488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13489 dldir=$destdir/`dirname \$dlpath`~
13490 test -d \$dldir || mkdir -p \$dldir~
13491 $install_prog $dir/$dlname \$dldir/$dlname~
13492 chmod a+x \$dldir/$dlname~
13493 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13494 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13495 fi'
13496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13497 dlpath=$dir/\$dldll~
13498 $RM \$dlpath'
13499 ;;
13500
13501 osf3* | osf4* | osf5*)
13502 version_type=osf
13503 need_lib_prefix=no
13504 need_version=no
13505 soname_spec='$libname$release$shared_ext$major'
13506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13507 shlibpath_var=LD_LIBRARY_PATH
13508 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13510 ;;
13511
13512 rdos*)
13513 dynamic_linker=no
13514 ;;
13515
13516 serenity*)
13517 version_type=linux # correct to gnu/linux during the next big refactor
13518 need_lib_prefix=no
13519 need_version=no
13520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13521 soname_spec='$libname$release$shared_ext$major'
13522 shlibpath_var=LD_LIBRARY_PATH
13523 shlibpath_overrides_runpath=no
13524 dynamic_linker='SerenityOS LibELF'
13525 ;;
13526
13527 solaris*)
13528 version_type=linux # correct to gnu/linux during the next big refactor
13529 need_lib_prefix=no
13530 need_version=no
13531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13532 soname_spec='$libname$release$shared_ext$major'
13533 shlibpath_var=LD_LIBRARY_PATH
13534 shlibpath_overrides_runpath=yes
13535 hardcode_into_libs=yes
13536 # ldd complains unless libraries are executable
13537 postinstall_cmds='chmod +x $lib'
13538 ;;
13539
13540 sunos4*)
13541 version_type=sunos
13542 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13544 shlibpath_var=LD_LIBRARY_PATH
13545 shlibpath_overrides_runpath=yes
13546 if test yes = "$with_gnu_ld"; then
13547 need_lib_prefix=no
13548 fi
13549 need_version=yes
13550 ;;
13551
13552 sysv4 | sysv4.3*)
13553 version_type=linux # correct to gnu/linux during the next big refactor
13554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13555 soname_spec='$libname$release$shared_ext$major'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 case $host_vendor in
13558 sni)
13559 shlibpath_overrides_runpath=no
13560 need_lib_prefix=no
13561 runpath_var=LD_RUN_PATH
13562 ;;
13563 siemens)
13564 need_lib_prefix=no
13565 ;;
13566 motorola)
13567 need_lib_prefix=no
13568 need_version=no
13569 shlibpath_overrides_runpath=no
13570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13571 ;;
13572 esac
13573 ;;
13574
13575 sysv4*MP*)
13576 if test -d /usr/nec; then
13577 version_type=linux # correct to gnu/linux during the next big refactor
13578 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13579 soname_spec='$libname$shared_ext.$major'
13580 shlibpath_var=LD_LIBRARY_PATH
13581 fi
13582 ;;
13583
13584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13585 version_type=sco
13586 need_lib_prefix=no
13587 need_version=no
13588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13589 soname_spec='$libname$release$shared_ext$major'
13590 shlibpath_var=LD_LIBRARY_PATH
13591 shlibpath_overrides_runpath=yes
13592 hardcode_into_libs=yes
13593 if test yes = "$with_gnu_ld"; then
13594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13595 else
13596 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13597 case $host_os in
13598 sco3.2v5*)
13599 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13600 ;;
13601 esac
13602 fi
13603 sys_lib_dlsearch_path_spec='/usr/lib'
13604 ;;
13605
13606 tpf*)
13607 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13608 version_type=linux # correct to gnu/linux during the next big refactor
13609 need_lib_prefix=no
13610 need_version=no
13611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13612 shlibpath_var=LD_LIBRARY_PATH
13613 shlibpath_overrides_runpath=no
13614 hardcode_into_libs=yes
13615 ;;
13616
13617 uts4*)
13618 version_type=linux # correct to gnu/linux during the next big refactor
13619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13620 soname_spec='$libname$release$shared_ext$major'
13621 shlibpath_var=LD_LIBRARY_PATH
13622 ;;
13623
13624 emscripten*)
13625 version_type=none
13626 need_lib_prefix=no
13627 need_version=no
13628 library_names_spec='$libname$release$shared_ext'
13629 soname_spec='$libname$release$shared_ext'
13630 finish_cmds=
13631 dynamic_linker="Emscripten linker"
13632 lt_prog_compiler_wl=
13633 lt_prog_compiler_pic=
13634 lt_prog_compiler_static=
13635
13636
13637 if test yes = "$GCC"; then
13638 lt_prog_compiler_wl='-Wl,'
13639 lt_prog_compiler_static='-static'
13640
13641 case $host_os in
13642 aix*)
13643 # All AIX code is PIC.
13644 if test ia64 = "$host_cpu"; then
13645 # AIX 5 now supports IA64 processor
13646 lt_prog_compiler_static='-Bstatic'
13647 fi
13648 lt_prog_compiler_pic='-fPIC'
13649 ;;
13650
13651 amigaos*)
13652 case $host_cpu in
13653 powerpc)
13654 # see comment about AmigaOS4 .so support
13655 lt_prog_compiler_pic='-fPIC'
13656 ;;
13657 m68k)
13658 # FIXME: we need at least 68020 code to build shared libraries, but
13659 # adding the '-m68020' flag to GCC prevents building anything better,
13660 # like '-m68040'.
13661 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13662 ;;
13663 esac
13664 ;;
13665
13666 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13667 # PIC is the default for these OSes.
13668 ;;
13669
13670 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13671 # This hack is so that the source file can tell whether it is being
13672 # built for inclusion in a dll (and should export symbols for example).
13673 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13674 # (--disable-auto-import) libraries
13675 lt_prog_compiler_pic='-DDLL_EXPORT'
13676 case $host_os in
13677 os2*)
13678 lt_prog_compiler_static='$wl-static'
13679 ;;
13680 esac
13681 ;;
13682
13683 darwin* | rhapsody*)
13684 # PIC is the default on this platform
13685 # Common symbols not allowed in MH_DYLIB files
13686 lt_prog_compiler_pic='-fno-common'
13687 ;;
13688
13689 haiku*)
13690 # PIC is the default for Haiku.
13691 # The "-static" flag exists, but is broken.
13692 lt_prog_compiler_static=
13693 ;;
13694
13695 hpux*)
13696 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13697 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13698 # sets the default TLS model and affects inlining.
13699 case $host_cpu in
13700 hppa*64*)
13701 # +Z the default
13702 ;;
13703 *)
13704 lt_prog_compiler_pic='-fPIC'
13705 ;;
13706 esac
13707 ;;
13708
13709 interix[3-9]*)
13710 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13711 # Instead, we relocate shared libraries at runtime.
13712 ;;
13713
13714 msdosdjgpp*)
13715 # Just because we use GCC doesn't mean we suddenly get shared libraries
13716 # on systems that don't support them.
13717 lt_prog_compiler_can_build_shared=no
13718 enable_shared=no
13719 ;;
13720
13721 *nto* | *qnx*)
13722 # QNX uses GNU C++, but need to define -shared option too, otherwise
13723 # it will coredump.
13724 lt_prog_compiler_pic='-fPIC -shared'
13725 ;;
13726
13727 sysv4*MP*)
13728 if test -d /usr/nec; then
13729 lt_prog_compiler_pic=-Kconform_pic
13730 fi
13731 ;;
13732
13733 *)
13734 lt_prog_compiler_pic='-fPIC'
13735 ;;
13736 esac
13737
13738 case $cc_basename in
13739 nvcc*) # Cuda Compiler Driver 2.2
13740 lt_prog_compiler_wl='-Xlinker '
13741 if test -n "$lt_prog_compiler_pic"; then
13742 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13743 fi
13744 ;;
13745 esac
13746 else
13747 # PORTME Check for flag to pass linker flags through the system compiler.
13748 case $host_os in
13749 aix*)
13750 lt_prog_compiler_wl='-Wl,'
13751 if test ia64 = "$host_cpu"; then
13752 # AIX 5 now supports IA64 processor
13753 lt_prog_compiler_static='-Bstatic'
13754 else
13755 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13756 fi
13757 ;;
13758
13759 darwin* | rhapsody*)
13760 # PIC is the default on this platform
13761 # Common symbols not allowed in MH_DYLIB files
13762 lt_prog_compiler_pic='-fno-common'
13763 case $cc_basename in
13764 nagfor*)
13765 # NAG Fortran compiler
13766 lt_prog_compiler_wl='-Wl,-Wl,,'
13767 lt_prog_compiler_pic='-PIC'
13768 lt_prog_compiler_static='-Bstatic'
13769 ;;
13770 esac
13771 ;;
13772
13773 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13774 # This hack is so that the source file can tell whether it is being
13775 # built for inclusion in a dll (and should export symbols for example).
13776 lt_prog_compiler_pic='-DDLL_EXPORT'
13777 case $host_os in
13778 os2*)
13779 lt_prog_compiler_static='$wl-static'
13780 ;;
13781 esac
13782 ;;
13783
13784 hpux9* | hpux10* | hpux11*)
13785 lt_prog_compiler_wl='-Wl,'
13786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13787 # not for PA HP-UX.
13788 case $host_cpu in
13789 hppa*64*|ia64*)
13790 # +Z the default
13791 ;;
13792 *)
13793 lt_prog_compiler_pic='+Z'
13794 ;;
13795 esac
13796 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13797 lt_prog_compiler_static='$wl-a ${wl}archive'
13798 ;;
13799
13800 irix5* | irix6* | nonstopux*)
13801 lt_prog_compiler_wl='-Wl,'
13802 # PIC (with -KPIC) is the default.
13803 lt_prog_compiler_static='-non_shared'
13804 ;;
13805
13806 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13807 case $cc_basename in
13808 # old Intel for x86_64, which still supported -KPIC.
13809 ecc*)
13810 lt_prog_compiler_wl='-Wl,'
13811 lt_prog_compiler_pic='-KPIC'
13812 lt_prog_compiler_static='-static'
13813 ;;
13814 *flang* | ftn | f18* | f95*)
13815 # Flang compiler.
13816 lt_prog_compiler_wl='-Wl,'
13817 lt_prog_compiler_pic='-fPIC'
13818 lt_prog_compiler_static='-static'
13819 ;;
13820 # icc used to be incompatible with GCC.
13821 # ICC 10 doesn't accept -KPIC any more.
13822 icc* | ifort*)
13823 lt_prog_compiler_wl='-Wl,'
13824 lt_prog_compiler_pic='-fPIC'
13825 lt_prog_compiler_static='-static'
13826 ;;
13827 # Lahey Fortran 8.1.
13828 lf95*)
13829 lt_prog_compiler_wl='-Wl,'
13830 lt_prog_compiler_pic='--shared'
13831 lt_prog_compiler_static='--static'
13832 ;;
13833 nagfor*)
13834 # NAG Fortran compiler
13835 lt_prog_compiler_wl='-Wl,-Wl,,'
13836 lt_prog_compiler_pic='-PIC'
13837 lt_prog_compiler_static='-Bstatic'
13838 ;;
13839 tcc*)
13840 # Fabrice Bellard et al's Tiny C Compiler
13841 lt_prog_compiler_wl='-Wl,'
13842 lt_prog_compiler_pic='-fPIC'
13843 lt_prog_compiler_static='-static'
13844 ;;
13845 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13846 # Portland Group compilers (*not* the Pentium gcc compiler,
13847 # which looks to be a dead project)
13848 lt_prog_compiler_wl='-Wl,'
13849 lt_prog_compiler_pic='-fpic'
13850 lt_prog_compiler_static='-Bstatic'
13851 ;;
13852 ccc*)
13853 lt_prog_compiler_wl='-Wl,'
13854 # All Alpha code is PIC.
13855 lt_prog_compiler_static='-non_shared'
13856 ;;
13857 xl* | bgxl* | bgf* | mpixl*)
13858 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13859 lt_prog_compiler_wl='-Wl,'
13860 lt_prog_compiler_pic='-qpic'
13861 lt_prog_compiler_static='-qstaticlink'
13862 ;;
13863 *)
13864 case `$CC -V 2>&1 | $SED 5q` in
13865 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13866 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13867 lt_prog_compiler_pic='-KPIC'
13868 lt_prog_compiler_static='-Bstatic'
13869 lt_prog_compiler_wl=''
13870 ;;
13871 *Sun\ F* | *Sun*Fortran*)
13872 lt_prog_compiler_pic='-KPIC'
13873 lt_prog_compiler_static='-Bstatic'
13874 lt_prog_compiler_wl='-Qoption ld '
13875 ;;
13876 *Sun\ C*)
13877 # Sun C 5.9
13878 lt_prog_compiler_pic='-KPIC'
13879 lt_prog_compiler_static='-Bstatic'
13880 lt_prog_compiler_wl='-Wl,'
13881 ;;
13882 *Intel*\ [CF]*Compiler*)
13883 lt_prog_compiler_wl='-Wl,'
13884 lt_prog_compiler_pic='-fPIC'
13885 lt_prog_compiler_static='-static'
13886 ;;
13887 *Portland\ Group*)
13888 lt_prog_compiler_wl='-Wl,'
13889 lt_prog_compiler_pic='-fpic'
13890 lt_prog_compiler_static='-Bstatic'
13891 ;;
13892 esac
13893 ;;
13894 esac
13895 ;;
13896
13897 newsos6)
13898 lt_prog_compiler_pic='-KPIC'
13899 lt_prog_compiler_static='-Bstatic'
13900 ;;
13901
13902 *-mlibc)
13903 lt_prog_compiler_wl='-Wl,'
13904 lt_prog_compiler_pic='-fPIC'
13905 lt_prog_compiler_static='-static'
13906 ;;
13907
13908 *nto* | *qnx*)
13909 # QNX uses GNU C++, but need to define -shared option too, otherwise
13910 # it will coredump.
13911 lt_prog_compiler_pic='-fPIC -shared'
13912 ;;
13913
13914 osf3* | osf4* | osf5*)
13915 lt_prog_compiler_wl='-Wl,'
13916 # All OSF/1 code is PIC.
13917 lt_prog_compiler_static='-non_shared'
13918 ;;
13919
13920 rdos*)
13921 lt_prog_compiler_static='-non_shared'
13922 ;;
13923
13924 serenity*)
13925 ;;
13926
13927 solaris*)
13928 lt_prog_compiler_pic='-KPIC'
13929 lt_prog_compiler_static='-Bstatic'
13930 case $cc_basename in
13931 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13932 lt_prog_compiler_wl='-Qoption ld ';;
13933 *)
13934 lt_prog_compiler_wl='-Wl,';;
13935 esac
13936 ;;
13937
13938 sunos4*)
13939 lt_prog_compiler_wl='-Qoption ld '
13940 lt_prog_compiler_pic='-PIC'
13941 lt_prog_compiler_static='-Bstatic'
13942 ;;
13943
13944 sysv4 | sysv4.2uw2* | sysv4.3*)
13945 lt_prog_compiler_wl='-Wl,'
13946 lt_prog_compiler_pic='-KPIC'
13947 lt_prog_compiler_static='-Bstatic'
13948 ;;
13949
13950 sysv4*MP*)
13951 if test -d /usr/nec; then
13952 lt_prog_compiler_pic='-Kconform_pic'
13953 lt_prog_compiler_static='-Bstatic'
13954 fi
13955 ;;
13956
13957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13958 lt_prog_compiler_wl='-Wl,'
13959 lt_prog_compiler_pic='-KPIC'
13960 lt_prog_compiler_static='-Bstatic'
13961 ;;
13962
13963 unicos*)
13964 lt_prog_compiler_wl='-Wl,'
13965 lt_prog_compiler_can_build_shared=no
13966 ;;
13967
13968 uts4*)
13969 lt_prog_compiler_pic='-pic'
13970 lt_prog_compiler_static='-Bstatic'
13971 ;;
13972
13973 *)
13974 lt_prog_compiler_can_build_shared=no
13975 ;;
13976 esac
13977 fi
13978
13979 case $host_os in
13980 # For platforms that do not support PIC, -DPIC is meaningless:
13981 *djgpp*)
13982 lt_prog_compiler_pic=
13983 ;;
13984 *)
13985 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13986 ;;
13987 esac
13988
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13990 printf %s "checking for $compiler option to produce PIC... " >&6; }
13991 if test ${lt_cv_prog_compiler_pic+y}
13992 then :
13993 printf %s "(cached) " >&6
13994 else case e in #(
13995 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13996 esac
13997 fi
13998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13999 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14000 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14001
14002 #
14003 # Check to make sure the PIC flag actually works.
14004 #
14005 if test -n "$lt_prog_compiler_pic"; then
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14007 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14008 if test ${lt_cv_prog_compiler_pic_works+y}
14009 then :
14010 printf %s "(cached) " >&6
14011 else case e in #(
14012 e) lt_cv_prog_compiler_pic_works=no
14013 ac_outfile=conftest.$ac_objext
14014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14015 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14016 # Insert the option either (1) after the last *FLAGS variable, or
14017 # (2) before a word containing "conftest.", or (3) at the end.
14018 # Note that $ac_compile itself does not contain backslashes and begins
14019 # with a dollar sign (not a hyphen), so the echo should work correctly.
14020 # The option is referenced via a variable to avoid confusing sed.
14021 lt_compile=`echo "$ac_compile" | $SED \
14022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14024 -e 's:$: $lt_compiler_flag:'`
14025 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14026 (eval "$lt_compile" 2>conftest.err)
14027 ac_status=$?
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 if (exit $ac_status) && test -s "$ac_outfile"; then
14031 # The compiler can only warn and ignore the option if not recognized
14032 # So say no if there are warnings other than the usual output.
14033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14036 lt_cv_prog_compiler_pic_works=yes
14037 fi
14038 fi
14039 $RM conftest*
14040 ;;
14041 esac
14042 fi
14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14044 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14045
14046 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14047 case $lt_prog_compiler_pic in
14048 "" | " "*) ;;
14049 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14050 esac
14051 else
14052 lt_prog_compiler_pic=
14053 lt_prog_compiler_can_build_shared=no
14054 fi
14055
14056 fi
14057
14058
14059
14060
14061
14062 #
14063 # Check to make sure the static flag actually works.
14064 #
14065 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14067 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14068 if test ${lt_cv_prog_compiler_static_works+y}
14069 then :
14070 printf %s "(cached) " >&6
14071 else case e in #(
14072 e) lt_cv_prog_compiler_static_works=no
14073 save_LDFLAGS=$LDFLAGS
14074 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14075 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14076 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14077 # The linker can only warn and ignore the option if not recognized
14078 # So say no if there are warnings
14079 if test -s conftest.err; then
14080 # Append any errors to the config.log.
14081 cat conftest.err 1>&5
14082 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14084 if diff conftest.exp conftest.er2 >/dev/null; then
14085 lt_cv_prog_compiler_static_works=yes
14086 fi
14087 else
14088 lt_cv_prog_compiler_static_works=yes
14089 fi
14090 fi
14091 $RM -r conftest*
14092 LDFLAGS=$save_LDFLAGS
14093 ;;
14094 esac
14095 fi
14096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14097 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14098
14099 if test yes = "$lt_cv_prog_compiler_static_works"; then
14100 :
14101 else
14102 lt_prog_compiler_static=
14103 fi
14104
14105
14106
14107 ='-fPIC'
14108 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14109 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
14110 archive_cmds_need_lc=no
14111 no_undefined_flag=
14112 ;;
14113
14114 *)
14115 dynamic_linker=no
14116 ;;
14117 esac
14118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14119 printf "%s\n" "$dynamic_linker" >&6; }
14120 test no = "$dynamic_linker" && can_build_shared=no
14121
14122 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14123 if test yes = "$GCC"; then
14124 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14125 fi
14126
14127 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14128 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14129 fi
14130
14131 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14132 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14133 fi
14134
14135 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14136 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14137
14138 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14139 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14140
14141 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14142 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14241 printf %s "checking how to hardcode library paths into programs... " >&6; }
14242 hardcode_action=
14243 if test -n "$hardcode_libdir_flag_spec" ||
14244 test -n "$runpath_var" ||
14245 test yes = "$hardcode_automatic"; then
14246
14247 # We can hardcode non-existent directories.
14248 if test no != "$hardcode_direct" &&
14249 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14250 # have to relink, otherwise we might link with an installed library
14251 # when we should be linking with a yet-to-be-installed one
14252 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14253 test no != "$hardcode_minus_L"; then
14254 # Linking always hardcodes the temporary library directory.
14255 hardcode_action=relink
14256 else
14257 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14258 hardcode_action=immediate
14259 fi
14260 else
14261 # We cannot hardcode anything, or else we can only hardcode existing
14262 # directories.
14263 hardcode_action=unsupported
14264 fi
14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14266 printf "%s\n" "$hardcode_action" >&6; }
14267
14268 if test relink = "$hardcode_action" ||
14269 test yes = "$inherit_rpath"; then
14270 # Fast installation is not supported
14271 enable_fast_install=no
14272 elif test yes = "$shlibpath_overrides_runpath" ||
14273 test no = "$enable_shared"; then
14274 # Fast installation is not necessary
14275 enable_fast_install=needless
14276 fi
14277
14278
14279
14280
14281
14282
14283 if test yes != "$enable_dlopen"; then
14284 enable_dlopen=unknown
14285 enable_dlopen_self=unknown
14286 enable_dlopen_self_static=unknown
14287 else
14288 lt_cv_dlopen=no
14289 lt_cv_dlopen_libs=
14290
14291 case $host_os in
14292 beos*)
14293 lt_cv_dlopen=load_add_on
14294 lt_cv_dlopen_libs=
14295 lt_cv_dlopen_self=yes
14296 ;;
14297
14298 mingw* | windows* | pw32* | cegcc*)
14299 lt_cv_dlopen=LoadLibrary
14300 lt_cv_dlopen_libs=
14301 ;;
14302
14303 cygwin*)
14304 lt_cv_dlopen=dlopen
14305 lt_cv_dlopen_libs=
14306 ;;
14307
14308 darwin*)
14309 # if libdl is installed we need to link against it
14310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14311 printf %s "checking for dlopen in -ldl... " >&6; }
14312 if test ${ac_cv_lib_dl_dlopen+y}
14313 then :
14314 printf %s "(cached) " >&6
14315 else case e in #(
14316 e) ac_check_lib_save_LIBS=$LIBS
14317 LIBS="-ldl $LIBS"
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14320
14321 /* Override any GCC internal prototype to avoid an error.
14322 Use char because int might match the return type of a GCC
14323 builtin and then its argument prototype would still apply.
14324 The 'extern "C"' is for builds by C++ compilers;
14325 although this is not generally supported in C code supporting it here
14326 has little cost and some practical benefit (sr 110532). */
14327 #ifdef __cplusplus
14328 extern "C"
14329 #endif
14330 char dlopen (void);
14331 int
14332 main (void)
14333 {
14334 return dlopen ();
14335 ;
14336 return 0;
14337 }
14338 _ACEOF
14339 if ac_fn_c_try_link "$LINENO"
14340 then :
14341 ac_cv_lib_dl_dlopen=yes
14342 else case e in #(
14343 e) ac_cv_lib_dl_dlopen=no ;;
14344 esac
14345 fi
14346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14347 conftest$ac_exeext conftest.$ac_ext
14348 LIBS=$ac_check_lib_save_LIBS ;;
14349 esac
14350 fi
14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14352 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14353 if test "x$ac_cv_lib_dl_dlopen" = xyes
14354 then :
14355 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14356 else case e in #(
14357 e)
14358 lt_cv_dlopen=dyld
14359 lt_cv_dlopen_libs=
14360 lt_cv_dlopen_self=yes
14361 ;;
14362 esac
14363 fi
14364
14365 ;;
14366
14367 tpf*)
14368 # Don't try to run any link tests for TPF. We know it's impossible
14369 # because TPF is a cross-compiler, and we know how we open DSOs.
14370 lt_cv_dlopen=dlopen
14371 lt_cv_dlopen_libs=
14372 lt_cv_dlopen_self=no
14373 ;;
14374
14375 *)
14376 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14377 if test "x$ac_cv_func_shl_load" = xyes
14378 then :
14379 lt_cv_dlopen=shl_load
14380 else case e in #(
14381 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14382 printf %s "checking for shl_load in -ldld... " >&6; }
14383 if test ${ac_cv_lib_dld_shl_load+y}
14384 then :
14385 printf %s "(cached) " >&6
14386 else case e in #(
14387 e) ac_check_lib_save_LIBS=$LIBS
14388 LIBS="-ldld $LIBS"
14389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390 /* end confdefs.h. */
14391
14392 /* Override any GCC internal prototype to avoid an error.
14393 Use char because int might match the return type of a GCC
14394 builtin and then its argument prototype would still apply.
14395 The 'extern "C"' is for builds by C++ compilers;
14396 although this is not generally supported in C code supporting it here
14397 has little cost and some practical benefit (sr 110532). */
14398 #ifdef __cplusplus
14399 extern "C"
14400 #endif
14401 char shl_load (void);
14402 int
14403 main (void)
14404 {
14405 return shl_load ();
14406 ;
14407 return 0;
14408 }
14409 _ACEOF
14410 if ac_fn_c_try_link "$LINENO"
14411 then :
14412 ac_cv_lib_dld_shl_load=yes
14413 else case e in #(
14414 e) ac_cv_lib_dld_shl_load=no ;;
14415 esac
14416 fi
14417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14418 conftest$ac_exeext conftest.$ac_ext
14419 LIBS=$ac_check_lib_save_LIBS ;;
14420 esac
14421 fi
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14423 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14424 if test "x$ac_cv_lib_dld_shl_load" = xyes
14425 then :
14426 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14427 else case e in #(
14428 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14429 if test "x$ac_cv_func_dlopen" = xyes
14430 then :
14431 lt_cv_dlopen=dlopen
14432 else case e in #(
14433 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14434 printf %s "checking for dlopen in -ldl... " >&6; }
14435 if test ${ac_cv_lib_dl_dlopen+y}
14436 then :
14437 printf %s "(cached) " >&6
14438 else case e in #(
14439 e) ac_check_lib_save_LIBS=$LIBS
14440 LIBS="-ldl $LIBS"
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14443
14444 /* Override any GCC internal prototype to avoid an error.
14445 Use char because int might match the return type of a GCC
14446 builtin and then its argument prototype would still apply.
14447 The 'extern "C"' is for builds by C++ compilers;
14448 although this is not generally supported in C code supporting it here
14449 has little cost and some practical benefit (sr 110532). */
14450 #ifdef __cplusplus
14451 extern "C"
14452 #endif
14453 char dlopen (void);
14454 int
14455 main (void)
14456 {
14457 return dlopen ();
14458 ;
14459 return 0;
14460 }
14461 _ACEOF
14462 if ac_fn_c_try_link "$LINENO"
14463 then :
14464 ac_cv_lib_dl_dlopen=yes
14465 else case e in #(
14466 e) ac_cv_lib_dl_dlopen=no ;;
14467 esac
14468 fi
14469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14470 conftest$ac_exeext conftest.$ac_ext
14471 LIBS=$ac_check_lib_save_LIBS ;;
14472 esac
14473 fi
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14475 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14476 if test "x$ac_cv_lib_dl_dlopen" = xyes
14477 then :
14478 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14479 else case e in #(
14480 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14481 printf %s "checking for dlopen in -lsvld... " >&6; }
14482 if test ${ac_cv_lib_svld_dlopen+y}
14483 then :
14484 printf %s "(cached) " >&6
14485 else case e in #(
14486 e) ac_check_lib_save_LIBS=$LIBS
14487 LIBS="-lsvld $LIBS"
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14490
14491 /* Override any GCC internal prototype to avoid an error.
14492 Use char because int might match the return type of a GCC
14493 builtin and then its argument prototype would still apply.
14494 The 'extern "C"' is for builds by C++ compilers;
14495 although this is not generally supported in C code supporting it here
14496 has little cost and some practical benefit (sr 110532). */
14497 #ifdef __cplusplus
14498 extern "C"
14499 #endif
14500 char dlopen (void);
14501 int
14502 main (void)
14503 {
14504 return dlopen ();
14505 ;
14506 return 0;
14507 }
14508 _ACEOF
14509 if ac_fn_c_try_link "$LINENO"
14510 then :
14511 ac_cv_lib_svld_dlopen=yes
14512 else case e in #(
14513 e) ac_cv_lib_svld_dlopen=no ;;
14514 esac
14515 fi
14516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14517 conftest$ac_exeext conftest.$ac_ext
14518 LIBS=$ac_check_lib_save_LIBS ;;
14519 esac
14520 fi
14521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14522 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14523 if test "x$ac_cv_lib_svld_dlopen" = xyes
14524 then :
14525 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14526 else case e in #(
14527 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14528 printf %s "checking for dld_link in -ldld... " >&6; }
14529 if test ${ac_cv_lib_dld_dld_link+y}
14530 then :
14531 printf %s "(cached) " >&6
14532 else case e in #(
14533 e) ac_check_lib_save_LIBS=$LIBS
14534 LIBS="-ldld $LIBS"
14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14537
14538 /* Override any GCC internal prototype to avoid an error.
14539 Use char because int might match the return type of a GCC
14540 builtin and then its argument prototype would still apply.
14541 The 'extern "C"' is for builds by C++ compilers;
14542 although this is not generally supported in C code supporting it here
14543 has little cost and some practical benefit (sr 110532). */
14544 #ifdef __cplusplus
14545 extern "C"
14546 #endif
14547 char dld_link (void);
14548 int
14549 main (void)
14550 {
14551 return dld_link ();
14552 ;
14553 return 0;
14554 }
14555 _ACEOF
14556 if ac_fn_c_try_link "$LINENO"
14557 then :
14558 ac_cv_lib_dld_dld_link=yes
14559 else case e in #(
14560 e) ac_cv_lib_dld_dld_link=no ;;
14561 esac
14562 fi
14563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14564 conftest$ac_exeext conftest.$ac_ext
14565 LIBS=$ac_check_lib_save_LIBS ;;
14566 esac
14567 fi
14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14569 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14570 if test "x$ac_cv_lib_dld_dld_link" = xyes
14571 then :
14572 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14573 fi
14574
14575 ;;
14576 esac
14577 fi
14578
14579 ;;
14580 esac
14581 fi
14582
14583 ;;
14584 esac
14585 fi
14586
14587 ;;
14588 esac
14589 fi
14590
14591 ;;
14592 esac
14593 fi
14594
14595 ;;
14596 esac
14597
14598 if test no = "$lt_cv_dlopen"; then
14599 enable_dlopen=no
14600 else
14601 enable_dlopen=yes
14602 fi
14603
14604 case $lt_cv_dlopen in
14605 dlopen)
14606 save_CPPFLAGS=$CPPFLAGS
14607 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14608
14609 save_LDFLAGS=$LDFLAGS
14610 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14611
14612 save_LIBS=$LIBS
14613 LIBS="$lt_cv_dlopen_libs $LIBS"
14614
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14616 printf %s "checking whether a program can dlopen itself... " >&6; }
14617 if test ${lt_cv_dlopen_self+y}
14618 then :
14619 printf %s "(cached) " >&6
14620 else case e in #(
14621 e) if test yes = "$cross_compiling"; then :
14622 lt_cv_dlopen_self=cross
14623 else
14624 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14625 lt_status=$lt_dlunknown
14626 cat > conftest.$ac_ext <<_LT_EOF
14627 #line $LINENO "configure"
14628 #include "confdefs.h"
14629
14630 #if HAVE_DLFCN_H
14631 #include <dlfcn.h>
14632 #endif
14633
14634 #include <stdio.h>
14635
14636 #ifdef RTLD_GLOBAL
14637 # define LT_DLGLOBAL RTLD_GLOBAL
14638 #else
14639 # ifdef DL_GLOBAL
14640 # define LT_DLGLOBAL DL_GLOBAL
14641 # else
14642 # define LT_DLGLOBAL 0
14643 # endif
14644 #endif
14645
14646 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14647 find out it does not work in some platform. */
14648 #ifndef LT_DLLAZY_OR_NOW
14649 # ifdef RTLD_LAZY
14650 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14651 # else
14652 # ifdef DL_LAZY
14653 # define LT_DLLAZY_OR_NOW DL_LAZY
14654 # else
14655 # ifdef RTLD_NOW
14656 # define LT_DLLAZY_OR_NOW RTLD_NOW
14657 # else
14658 # ifdef DL_NOW
14659 # define LT_DLLAZY_OR_NOW DL_NOW
14660 # else
14661 # define LT_DLLAZY_OR_NOW 0
14662 # endif
14663 # endif
14664 # endif
14665 # endif
14666 #endif
14667
14668 /* When -fvisibility=hidden is used, assume the code has been annotated
14669 correspondingly for the symbols needed. */
14670 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14671 int fnord (void) __attribute__((visibility("default")));
14672 #endif
14673
14674 int fnord (void) { return 42; }
14675 int main (void)
14676 {
14677 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14678 int status = $lt_dlunknown;
14679
14680 if (self)
14681 {
14682 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14683 else
14684 {
14685 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14686 else puts (dlerror ());
14687 }
14688 /* dlclose (self); */
14689 }
14690 else
14691 puts (dlerror ());
14692
14693 return status;
14694 }
14695 _LT_EOF
14696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14697 (eval $ac_link) 2>&5
14698 ac_status=$?
14699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14700 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14701 (./conftest; exit; ) >&5 2>/dev/null
14702 lt_status=$?
14703 case x$lt_status in
14704 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14705 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14706 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14707 esac
14708 else :
14709 # compilation failed
14710 lt_cv_dlopen_self=no
14711 fi
14712 fi
14713 rm -fr conftest*
14714
14715 ;;
14716 esac
14717 fi
14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14719 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14720
14721 if test yes = "$lt_cv_dlopen_self"; then
14722 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14724 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14725 if test ${lt_cv_dlopen_self_static+y}
14726 then :
14727 printf %s "(cached) " >&6
14728 else case e in #(
14729 e) if test yes = "$cross_compiling"; then :
14730 lt_cv_dlopen_self_static=cross
14731 else
14732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14733 lt_status=$lt_dlunknown
14734 cat > conftest.$ac_ext <<_LT_EOF
14735 #line $LINENO "configure"
14736 #include "confdefs.h"
14737
14738 #if HAVE_DLFCN_H
14739 #include <dlfcn.h>
14740 #endif
14741
14742 #include <stdio.h>
14743
14744 #ifdef RTLD_GLOBAL
14745 # define LT_DLGLOBAL RTLD_GLOBAL
14746 #else
14747 # ifdef DL_GLOBAL
14748 # define LT_DLGLOBAL DL_GLOBAL
14749 # else
14750 # define LT_DLGLOBAL 0
14751 # endif
14752 #endif
14753
14754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14755 find out it does not work in some platform. */
14756 #ifndef LT_DLLAZY_OR_NOW
14757 # ifdef RTLD_LAZY
14758 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14759 # else
14760 # ifdef DL_LAZY
14761 # define LT_DLLAZY_OR_NOW DL_LAZY
14762 # else
14763 # ifdef RTLD_NOW
14764 # define LT_DLLAZY_OR_NOW RTLD_NOW
14765 # else
14766 # ifdef DL_NOW
14767 # define LT_DLLAZY_OR_NOW DL_NOW
14768 # else
14769 # define LT_DLLAZY_OR_NOW 0
14770 # endif
14771 # endif
14772 # endif
14773 # endif
14774 #endif
14775
14776 /* When -fvisibility=hidden is used, assume the code has been annotated
14777 correspondingly for the symbols needed. */
14778 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14779 int fnord (void) __attribute__((visibility("default")));
14780 #endif
14781
14782 int fnord (void) { return 42; }
14783 int main (void)
14784 {
14785 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14786 int status = $lt_dlunknown;
14787
14788 if (self)
14789 {
14790 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14791 else
14792 {
14793 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14794 else puts (dlerror ());
14795 }
14796 /* dlclose (self); */
14797 }
14798 else
14799 puts (dlerror ());
14800
14801 return status;
14802 }
14803 _LT_EOF
14804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14805 (eval $ac_link) 2>&5
14806 ac_status=$?
14807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14808 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14809 (./conftest; exit; ) >&5 2>/dev/null
14810 lt_status=$?
14811 case x$lt_status in
14812 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14813 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14814 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14815 esac
14816 else :
14817 # compilation failed
14818 lt_cv_dlopen_self_static=no
14819 fi
14820 fi
14821 rm -fr conftest*
14822
14823 ;;
14824 esac
14825 fi
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14827 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14828 fi
14829
14830 CPPFLAGS=$save_CPPFLAGS
14831 LDFLAGS=$save_LDFLAGS
14832 LIBS=$save_LIBS
14833 ;;
14834 esac
14835
14836 case $lt_cv_dlopen_self in
14837 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14838 *) enable_dlopen_self=unknown ;;
14839 esac
14840
14841 case $lt_cv_dlopen_self_static in
14842 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14843 *) enable_dlopen_self_static=unknown ;;
14844 esac
14845 fi
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863 striplib=
14864 old_striplib=
14865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14866 printf %s "checking whether stripping libraries is possible... " >&6; }
14867 if test -z "$STRIP"; then
14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869 printf "%s\n" "no" >&6; }
14870 else
14871 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14872 old_striplib="$STRIP --strip-debug"
14873 striplib="$STRIP --strip-unneeded"
14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14875 printf "%s\n" "yes" >&6; }
14876 else
14877 case $host_os in
14878 darwin*)
14879 # FIXME - insert some real tests, host_os isn't really good enough
14880 striplib="$STRIP -x"
14881 old_striplib="$STRIP -S"
14882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14883 printf "%s\n" "yes" >&6; }
14884 ;;
14885 freebsd*)
14886 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14887 old_striplib="$STRIP --strip-debug"
14888 striplib="$STRIP --strip-unneeded"
14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14890 printf "%s\n" "yes" >&6; }
14891 else
14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14893 printf "%s\n" "no" >&6; }
14894 fi
14895 ;;
14896 *)
14897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14898 printf "%s\n" "no" >&6; }
14899 ;;
14900 esac
14901 fi
14902 fi
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915 # Report what library types will actually be built
14916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14917 printf %s "checking if libtool supports shared libraries... " >&6; }
14918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14919 printf "%s\n" "$can_build_shared" >&6; }
14920
14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14922 printf %s "checking whether to build shared libraries... " >&6; }
14923 test no = "$can_build_shared" && enable_shared=no
14924
14925 # On AIX, shared libraries and static libraries use the same namespace, and
14926 # are all built from PIC.
14927 case $host_os in
14928 aix3*)
14929 test yes = "$enable_shared" && enable_static=no
14930 if test -n "$RANLIB"; then
14931 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14932 postinstall_cmds='$RANLIB $lib'
14933 fi
14934 ;;
14935
14936 aix[4-9]*)
14937 if test ia64 != "$host_cpu"; then
14938 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14939 yes,aix,yes) ;; # shared object as lib.so file only
14940 yes,svr4,*) ;; # shared object as lib.so archive member only
14941 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14942 esac
14943 fi
14944 ;;
14945 esac
14946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14947 printf "%s\n" "$enable_shared" >&6; }
14948
14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14950 printf %s "checking whether to build static libraries... " >&6; }
14951 # Make sure either enable_shared or enable_static is yes.
14952 test yes = "$enable_shared" || enable_static=yes
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14954 printf "%s\n" "$enable_static" >&6; }
14955
14956
14957
14958
14959 fi
14960 ac_ext=c
14961 ac_cpp='$CPP $CPPFLAGS'
14962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14965
14966 CC=$lt_save_CC
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982 ac_config_commands="$ac_config_commands libtool"
14983
14984
14985
14986
14987 # Only expand once:
14988
14989
14990
14991 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
14992 if test "x$ac_cv_header_fcntl_h" = xyes
14993 then :
14994 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
14995
14996 fi
14997 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
14998 if test "x$ac_cv_header_errno_h" = xyes
14999 then :
15000 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
15001
15002 fi
15003 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15004 if test "x$ac_cv_header_sys_mman_h" = xyes
15005 then :
15006 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
15007
15008 fi
15009 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
15010 if test "x$ac_cv_header_sys_stat_h" = xyes
15011 then :
15012 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
15013
15014 fi
15015 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
15016 if test "x$ac_cv_header_sys_wait_h" = xyes
15017 then :
15018 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15019
15020 fi
15021 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
15022 if test "x$ac_cv_header_memory_h" = xyes
15023 then :
15024 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
15025
15026 fi
15027 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15028 if test "x$ac_cv_header_stdlib_h" = xyes
15029 then :
15030 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15031
15032 fi
15033 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15034 if test "x$ac_cv_header_stdio_h" = xyes
15035 then :
15036 printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
15037
15038 fi
15039 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
15040 if test "x$ac_cv_header_string_h" = xyes
15041 then :
15042 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
15043
15044 fi
15045 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15046 if test "x$ac_cv_header_sys_types_h" = xyes
15047 then :
15048 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
15049
15050 fi
15051 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15052 if test "x$ac_cv_header_sys_time_h" = xyes
15053 then :
15054 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
15055
15056 fi
15057 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15058 if test "x$ac_cv_header_unistd_h" = xyes
15059 then :
15060 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
15061
15062 fi
15063 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
15064 if test "x$ac_cv_header_time_h" = xyes
15065 then :
15066 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
15067
15068 fi
15069 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
15070 if test "x$ac_cv_header_stdarg_h" = xyes
15071 then :
15072 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
15073
15074 fi
15075 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15076 if test "x$ac_cv_header_sys_types_h" = xyes
15077 then :
15078 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
15079
15080 fi
15081 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
15082 if test "x$ac_cv_header_sys_uio_h" = xyes
15083 then :
15084 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
15085
15086 fi
15087 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15088 if test "x$ac_cv_header_sched_h" = xyes
15089 then :
15090 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
15091
15092 fi
15093 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
15094 if test "x$ac_cv_header_ctype_h" = xyes
15095 then :
15096 printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
15097
15098 fi
15099
15100
15101
15102 ac_func=
15103 for ac_item in $ac_func_c_list
15104 do
15105 if test $ac_func; then
15106 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
15107 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
15108 echo "#define $ac_item 1" >> confdefs.h
15109 fi
15110 ac_func=
15111 else
15112 ac_func=$ac_item
15113 fi
15114 done
15115
15116
15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15118 printf %s "checking for working mmap... " >&6; }
15119 if test ${ac_cv_func_mmap_fixed_mapped+y}
15120 then :
15121 printf %s "(cached) " >&6
15122 else case e in #(
15123 e) if test "$cross_compiling" = yes
15124 then :
15125 case "$host_os" in # ((
15126 # Guess yes on platforms where we know the result.
15127 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
15128 # If we don't know, assume the worst.
15129 *) ac_cv_func_mmap_fixed_mapped=no ;;
15130 esac
15131 else case e in #(
15132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15134 $ac_includes_default
15135 /* malloc might have been renamed as rpl_malloc. */
15136 #undef malloc
15137
15138 /* Thanks to Mike Haertel and Jim Avera for this test.
15139 Here is a matrix of mmap possibilities:
15140 mmap private not fixed
15141 mmap private fixed at somewhere currently unmapped
15142 mmap private fixed at somewhere already mapped
15143 mmap shared not fixed
15144 mmap shared fixed at somewhere currently unmapped
15145 mmap shared fixed at somewhere already mapped
15146 For private mappings, we should verify that changes cannot be read()
15147 back from the file, nor mmap's back from the file at a different
15148 address. (There have been systems where private was not correctly
15149 implemented like the infamous i386 svr4.0, and systems where the
15150 VM page cache was not coherent with the file system buffer cache
15151 like early versions of FreeBSD and possibly contemporary NetBSD.)
15152 For shared mappings, we should conversely verify that changes get
15153 propagated back to all the places they're supposed to be. */
15154
15155 #include <fcntl.h>
15156 #include <sys/mman.h>
15157
15158 #ifndef getpagesize
15159 /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
15160 been removed from POSIX and is limited to page sizes that fit in 'int'. */
15161 # ifdef _SC_PAGESIZE
15162 # define getpagesize() sysconf (_SC_PAGESIZE)
15163 # elif defined _SC_PAGE_SIZE
15164 # define getpagesize() sysconf (_SC_PAGE_SIZE)
15165 # elif HAVE_GETPAGESIZE
15166 int getpagesize ();
15167 # else
15168 # ifdef HAVE_SYS_PARAM_H
15169 # include <sys/param.h>
15170 # ifdef EXEC_PAGESIZE
15171 # define getpagesize() EXEC_PAGESIZE
15172 # else /* no EXEC_PAGESIZE */
15173 # ifdef NBPG
15174 # define getpagesize() NBPG * CLSIZE
15175 # ifndef CLSIZE
15176 # define CLSIZE 1
15177 # endif /* no CLSIZE */
15178 # else /* no NBPG */
15179 # ifdef NBPC
15180 # define getpagesize() NBPC
15181 # else /* no NBPC */
15182 # ifdef PAGESIZE
15183 # define getpagesize() PAGESIZE
15184 # endif /* PAGESIZE */
15185 # endif /* no NBPC */
15186 # endif /* no NBPG */
15187 # endif /* no EXEC_PAGESIZE */
15188 # else /* no HAVE_SYS_PARAM_H */
15189 # define getpagesize() 8192 /* punt totally */
15190 # endif /* no HAVE_SYS_PARAM_H */
15191 # endif
15192 #endif
15193
15194 int
15195 main (void)
15196 {
15197 char *data, *data2, *data3;
15198 const char *cdata2;
15199 long i, pagesize;
15200 int fd, fd2;
15201
15202 pagesize = getpagesize ();
15203
15204 /* First, make a file with some known garbage in it. */
15205 data = (char *) malloc (pagesize);
15206 if (!data)
15207 return 1;
15208 for (i = 0; i < pagesize; ++i)
15209 *(data + i) = rand ();
15210 umask (0);
15211 fd = creat ("conftest.mmap", 0600);
15212 if (fd < 0)
15213 return 2;
15214 if (write (fd, data, pagesize) != pagesize)
15215 return 3;
15216 close (fd);
15217
15218 /* Next, check that the tail of a page is zero-filled. File must have
15219 non-zero length, otherwise we risk SIGBUS for entire page. */
15220 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15221 if (fd2 < 0)
15222 return 4;
15223 cdata2 = "";
15224 if (write (fd2, cdata2, 1) != 1)
15225 return 5;
15226 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15227 if (data2 == MAP_FAILED)
15228 return 6;
15229 for (i = 0; i < pagesize; ++i)
15230 if (*(data2 + i))
15231 return 7;
15232 close (fd2);
15233 /* 'return 8;' not currently used. */
15234
15235 /* Next, try to mmap the file at a fixed address which already has
15236 something else allocated at it. If we can, also make sure that
15237 we see the same garbage. */
15238 fd = open ("conftest.mmap", O_RDWR);
15239 if (fd < 0)
15240 return 9;
15241 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15242 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15243 return 10;
15244 for (i = 0; i < pagesize; ++i)
15245 if (*(data + i) != *(data2 + i))
15246 return 11;
15247
15248 /* Finally, make sure that changes to the mapped area do not
15249 percolate back to the file as seen by read(). (This is a bug on
15250 some variants of i386 svr4.0.) */
15251 for (i = 0; i < pagesize; ++i)
15252 *(data2 + i) = *(data2 + i) + 1;
15253 data3 = (char *) malloc (pagesize);
15254 if (!data3)
15255 return 12;
15256 if (read (fd, data3, pagesize) != pagesize)
15257 return 13;
15258 for (i = 0; i < pagesize; ++i)
15259 if (*(data + i) != *(data3 + i))
15260 return 14;
15261 close (fd);
15262 free (data);
15263 free (data3);
15264 return 0;
15265 }
15266 _ACEOF
15267 if ac_fn_c_try_run "$LINENO"
15268 then :
15269 ac_cv_func_mmap_fixed_mapped=yes
15270 else case e in #(
15271 e) ac_cv_func_mmap_fixed_mapped=no ;;
15272 esac
15273 fi
15274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15275 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15276 esac
15277 fi
15278 ;;
15279 esac
15280 fi
15281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15282 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
15283 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15284
15285 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
15286
15287 fi
15288 rm -f conftest.mmap conftest.txt
15289
15290 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15291 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
15292 then :
15293 printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
15294
15295 fi
15296 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
15297 if test "x$ac_cv_func_realpath" = xyes
15298 then :
15299 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
15300
15301 fi
15302
15303
15304 GETTEXT_PACKAGE="$PACKAGE"
15305
15306 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
15307
15308
15309
15310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15311 printf %s "checking whether NLS is requested... " >&6; }
15312 # Check whether --enable-nls was given.
15313 if test ${enable_nls+y}
15314 then :
15315 enableval=$enable_nls; USE_NLS=$enableval
15316 else case e in #(
15317 e) USE_NLS=yes ;;
15318 esac
15319 fi
15320
15321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15322 printf "%s\n" "$USE_NLS" >&6; }
15323
15324
15325
15326
15327 GETTEXT_MACRO_VERSION=0.19
15328
15329
15330
15331
15332 # Prepare PATH_SEPARATOR.
15333 # The user is always right.
15334 if test "${PATH_SEPARATOR+set}" != set; then
15335 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15336 # contains only /bin. Note that ksh looks also at the FPATH variable,
15337 # so we have to set that as well for the test.
15338 PATH_SEPARATOR=:
15339 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15340 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15341 || PATH_SEPARATOR=';'
15342 }
15343 fi
15344
15345 # Find out how to test for executable files. Don't use a zero-byte file,
15346 # as systems may use methods other than mode bits to determine executability.
15347 cat >conf$$.file <<_ASEOF
15348 #! /bin/sh
15349 exit 0
15350 _ASEOF
15351 chmod +x conf$$.file
15352 if test -x conf$$.file >/dev/null 2>&1; then
15353 ac_executable_p="test -x"
15354 else
15355 ac_executable_p="test -f"
15356 fi
15357 rm -f conf$$.file
15358
15359 # Extract the first word of "msgfmt", so it can be a program name with args.
15360 set dummy msgfmt; ac_word=$2
15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15362 printf %s "checking for $ac_word... " >&6; }
15363 if test ${ac_cv_path_MSGFMT+y}
15364 then :
15365 printf %s "(cached) " >&6
15366 else case e in #(
15367 e) case "$MSGFMT" in
15368 [\\/]* | ?:[\\/]*)
15369 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15370 ;;
15371 *)
15372 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15373 for ac_dir in $PATH; do
15374 IFS="$ac_save_IFS"
15375 test -z "$ac_dir" && ac_dir=.
15376 for ac_exec_ext in '' $ac_executable_extensions; do
15377 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15378 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15379 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15380 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15381 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15382 break 2
15383 fi
15384 fi
15385 done
15386 done
15387 IFS="$ac_save_IFS"
15388 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15389 ;;
15390 esac ;;
15391 esac
15392 fi
15393 MSGFMT="$ac_cv_path_MSGFMT"
15394 if test "$MSGFMT" != ":"; then
15395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15396 printf "%s\n" "$MSGFMT" >&6; }
15397 else
15398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15399 printf "%s\n" "no" >&6; }
15400 fi
15401
15402 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15403 set dummy gmsgfmt; ac_word=$2
15404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15405 printf %s "checking for $ac_word... " >&6; }
15406 if test ${ac_cv_path_GMSGFMT+y}
15407 then :
15408 printf %s "(cached) " >&6
15409 else case e in #(
15410 e) case $GMSGFMT in
15411 [\\/]* | ?:[\\/]*)
15412 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15413 ;;
15414 *)
15415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15416 for as_dir in $PATH
15417 do
15418 IFS=$as_save_IFS
15419 case $as_dir in #(((
15420 '') as_dir=./ ;;
15421 */) ;;
15422 *) as_dir=$as_dir/ ;;
15423 esac
15424 for ac_exec_ext in '' $ac_executable_extensions; do
15425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15426 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
15427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15428 break 2
15429 fi
15430 done
15431 done
15432 IFS=$as_save_IFS
15433
15434 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15435 ;;
15436 esac ;;
15437 esac
15438 fi
15439 GMSGFMT=$ac_cv_path_GMSGFMT
15440 if test -n "$GMSGFMT"; then
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15442 printf "%s\n" "$GMSGFMT" >&6; }
15443 else
15444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15445 printf "%s\n" "no" >&6; }
15446 fi
15447
15448
15449
15450 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15451 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15452 *) MSGFMT_015=$MSGFMT ;;
15453 esac
15454
15455 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15456 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15457 *) GMSGFMT_015=$GMSGFMT ;;
15458 esac
15459
15460
15461
15462 # Prepare PATH_SEPARATOR.
15463 # The user is always right.
15464 if test "${PATH_SEPARATOR+set}" != set; then
15465 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15466 # contains only /bin. Note that ksh looks also at the FPATH variable,
15467 # so we have to set that as well for the test.
15468 PATH_SEPARATOR=:
15469 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15470 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15471 || PATH_SEPARATOR=';'
15472 }
15473 fi
15474
15475 # Find out how to test for executable files. Don't use a zero-byte file,
15476 # as systems may use methods other than mode bits to determine executability.
15477 cat >conf$$.file <<_ASEOF
15478 #! /bin/sh
15479 exit 0
15480 _ASEOF
15481 chmod +x conf$$.file
15482 if test -x conf$$.file >/dev/null 2>&1; then
15483 ac_executable_p="test -x"
15484 else
15485 ac_executable_p="test -f"
15486 fi
15487 rm -f conf$$.file
15488
15489 # Extract the first word of "xgettext", so it can be a program name with args.
15490 set dummy xgettext; ac_word=$2
15491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15492 printf %s "checking for $ac_word... " >&6; }
15493 if test ${ac_cv_path_XGETTEXT+y}
15494 then :
15495 printf %s "(cached) " >&6
15496 else case e in #(
15497 e) case "$XGETTEXT" in
15498 [\\/]* | ?:[\\/]*)
15499 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15500 ;;
15501 *)
15502 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15503 for ac_dir in $PATH; do
15504 IFS="$ac_save_IFS"
15505 test -z "$ac_dir" && ac_dir=.
15506 for ac_exec_ext in '' $ac_executable_extensions; do
15507 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15508 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15509 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15510 (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
15511 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15512 break 2
15513 fi
15514 fi
15515 done
15516 done
15517 IFS="$ac_save_IFS"
15518 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15519 ;;
15520 esac ;;
15521 esac
15522 fi
15523 XGETTEXT="$ac_cv_path_XGETTEXT"
15524 if test "$XGETTEXT" != ":"; then
15525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15526 printf "%s\n" "$XGETTEXT" >&6; }
15527 else
15528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15529 printf "%s\n" "no" >&6; }
15530 fi
15531
15532 rm -f messages.po
15533
15534 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15535 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15536 *) XGETTEXT_015=$XGETTEXT ;;
15537 esac
15538
15539
15540
15541 # Prepare PATH_SEPARATOR.
15542 # The user is always right.
15543 if test "${PATH_SEPARATOR+set}" != set; then
15544 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15545 # contains only /bin. Note that ksh looks also at the FPATH variable,
15546 # so we have to set that as well for the test.
15547 PATH_SEPARATOR=:
15548 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15549 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15550 || PATH_SEPARATOR=';'
15551 }
15552 fi
15553
15554 # Find out how to test for executable files. Don't use a zero-byte file,
15555 # as systems may use methods other than mode bits to determine executability.
15556 cat >conf$$.file <<_ASEOF
15557 #! /bin/sh
15558 exit 0
15559 _ASEOF
15560 chmod +x conf$$.file
15561 if test -x conf$$.file >/dev/null 2>&1; then
15562 ac_executable_p="test -x"
15563 else
15564 ac_executable_p="test -f"
15565 fi
15566 rm -f conf$$.file
15567
15568 # Extract the first word of "msgmerge", so it can be a program name with args.
15569 set dummy msgmerge; ac_word=$2
15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15571 printf %s "checking for $ac_word... " >&6; }
15572 if test ${ac_cv_path_MSGMERGE+y}
15573 then :
15574 printf %s "(cached) " >&6
15575 else case e in #(
15576 e) case "$MSGMERGE" in
15577 [\\/]* | ?:[\\/]*)
15578 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15579 ;;
15580 *)
15581 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15582 for ac_dir in $PATH; do
15583 IFS="$ac_save_IFS"
15584 test -z "$ac_dir" && ac_dir=.
15585 for ac_exec_ext in '' $ac_executable_extensions; do
15586 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15587 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15588 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15589 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15590 break 2
15591 fi
15592 fi
15593 done
15594 done
15595 IFS="$ac_save_IFS"
15596 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15597 ;;
15598 esac ;;
15599 esac
15600 fi
15601 MSGMERGE="$ac_cv_path_MSGMERGE"
15602 if test "$MSGMERGE" != ":"; then
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15604 printf "%s\n" "$MSGMERGE" >&6; }
15605 else
15606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15607 printf "%s\n" "no" >&6; }
15608 fi
15609
15610
15611 test -n "$localedir" || localedir='${datadir}/locale'
15612
15613
15614 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15615
15616
15617 ac_config_commands="$ac_config_commands po-directories"
15618
15619
15620
15621 if test "X$prefix" = "XNONE"; then
15622 acl_final_prefix="$ac_default_prefix"
15623 else
15624 acl_final_prefix="$prefix"
15625 fi
15626 if test "X$exec_prefix" = "XNONE"; then
15627 acl_final_exec_prefix='${prefix}'
15628 else
15629 acl_final_exec_prefix="$exec_prefix"
15630 fi
15631 acl_save_prefix="$prefix"
15632 prefix="$acl_final_prefix"
15633 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15634 prefix="$acl_save_prefix"
15635
15636
15637
15638 # Check whether --with-gnu-ld was given.
15639 if test ${with_gnu_ld+y}
15640 then :
15641 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15642 else case e in #(
15643 e) with_gnu_ld=no ;;
15644 esac
15645 fi
15646
15647 # Prepare PATH_SEPARATOR.
15648 # The user is always right.
15649 if test "${PATH_SEPARATOR+set}" != set; then
15650 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15651 # contains only /bin. Note that ksh looks also at the FPATH variable,
15652 # so we have to set that as well for the test.
15653 PATH_SEPARATOR=:
15654 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15655 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15656 || PATH_SEPARATOR=';'
15657 }
15658 fi
15659
15660 ac_prog=ld
15661 if test "$GCC" = yes; then
15662 # Check if gcc -print-prog-name=ld gives a path.
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15664 printf %s "checking for ld used by $CC... " >&6; }
15665 case $host in
15666 *-*-mingw*)
15667 # gcc leaves a trailing carriage return which upsets mingw
15668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15669 *)
15670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15671 esac
15672 case $ac_prog in
15673 # Accept absolute paths.
15674 [\\/]* | ?:[\\/]*)
15675 re_direlt='/[^/][^/]*/\.\./'
15676 # Canonicalize the pathname of ld
15677 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
15678 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
15679 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15680 done
15681 test -z "$LD" && LD="$ac_prog"
15682 ;;
15683 "")
15684 # If it fails, then pretend we aren't using GCC.
15685 ac_prog=ld
15686 ;;
15687 *)
15688 # If it is relative, then search for the first ld in PATH.
15689 with_gnu_ld=unknown
15690 ;;
15691 esac
15692 elif test "$with_gnu_ld" = yes; then
15693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15694 printf %s "checking for GNU ld... " >&6; }
15695 else
15696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15697 printf %s "checking for non-GNU ld... " >&6; }
15698 fi
15699 if test ${acl_cv_path_LD+y}
15700 then :
15701 printf %s "(cached) " >&6
15702 else case e in #(
15703 e) if test -z "$LD"; then
15704 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15705 for ac_dir in $PATH; do
15706 IFS="$acl_save_ifs"
15707 test -z "$ac_dir" && ac_dir=.
15708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15709 acl_cv_path_LD="$ac_dir/$ac_prog"
15710 # Check to see if the program is GNU ld. I'd rather use --version,
15711 # but apparently some variants of GNU ld only accept -v.
15712 # Break only if it was the GNU/non-GNU ld that we prefer.
15713 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15714 *GNU* | *'with BFD'*)
15715 test "$with_gnu_ld" != no && break
15716 ;;
15717 *)
15718 test "$with_gnu_ld" != yes && break
15719 ;;
15720 esac
15721 fi
15722 done
15723 IFS="$acl_save_ifs"
15724 else
15725 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15726 fi ;;
15727 esac
15728 fi
15729
15730 LD="$acl_cv_path_LD"
15731 if test -n "$LD"; then
15732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15733 printf "%s\n" "$LD" >&6; }
15734 else
15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15736 printf "%s\n" "no" >&6; }
15737 fi
15738 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15740 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15741 if test ${acl_cv_prog_gnu_ld+y}
15742 then :
15743 printf %s "(cached) " >&6
15744 else case e in #(
15745 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
15746 case `$LD -v 2>&1 </dev/null` in
15747 *GNU* | *'with BFD'*)
15748 acl_cv_prog_gnu_ld=yes
15749 ;;
15750 *)
15751 acl_cv_prog_gnu_ld=no
15752 ;;
15753 esac ;;
15754 esac
15755 fi
15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15757 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
15758 with_gnu_ld=$acl_cv_prog_gnu_ld
15759
15760
15761
15762
15763
15764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15765 printf %s "checking for shared library run path origin... " >&6; }
15766 if test ${acl_cv_rpath+y}
15767 then :
15768 printf %s "(cached) " >&6
15769 else case e in #(
15770 e)
15771 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15772 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15773 . ./conftest.sh
15774 rm -f ./conftest.sh
15775 acl_cv_rpath=done
15776 ;;
15777 esac
15778 fi
15779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15780 printf "%s\n" "$acl_cv_rpath" >&6; }
15781 wl="$acl_cv_wl"
15782 acl_libext="$acl_cv_libext"
15783 acl_shlibext="$acl_cv_shlibext"
15784 acl_libname_spec="$acl_cv_libname_spec"
15785 acl_library_names_spec="$acl_cv_library_names_spec"
15786 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15787 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15788 acl_hardcode_direct="$acl_cv_hardcode_direct"
15789 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15790 # Check whether --enable-rpath was given.
15791 if test ${enable_rpath+y}
15792 then :
15793 enableval=$enable_rpath; :
15794 else case e in #(
15795 e) enable_rpath=yes ;;
15796 esac
15797 fi
15798
15799
15800 ac_ext=c
15801 ac_cpp='$CPP $CPPFLAGS'
15802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15806 printf %s "checking how to run the C preprocessor... " >&6; }
15807 # On Suns, sometimes $CPP names a directory.
15808 if test -n "$CPP" && test -d "$CPP"; then
15809 CPP=
15810 fi
15811 if test -z "$CPP"; then
15812 if test ${ac_cv_prog_CPP+y}
15813 then :
15814 printf %s "(cached) " >&6
15815 else case e in #(
15816 e) # Double quotes because $CC needs to be expanded
15817 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
15818 do
15819 ac_preproc_ok=false
15820 for ac_c_preproc_warn_flag in '' yes
15821 do
15822 # Use a header file that comes with gcc, so configuring glibc
15823 # with a fresh cross-compiler works.
15824 # On the NeXT, cc -E runs the code through the compiler's parser,
15825 # not just through cpp. "Syntax error" is here to catch this case.
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15828 #include <limits.h>
15829 Syntax error
15830 _ACEOF
15831 if ac_fn_c_try_cpp "$LINENO"
15832 then :
15833
15834 else case e in #(
15835 e) # Broken: fails on valid input.
15836 continue ;;
15837 esac
15838 fi
15839 rm -f conftest.err conftest.i conftest.$ac_ext
15840
15841 # OK, works on sane cases. Now check whether nonexistent headers
15842 # can be detected and how.
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h. */
15845 #include <ac_nonexistent.h>
15846 _ACEOF
15847 if ac_fn_c_try_cpp "$LINENO"
15848 then :
15849 # Broken: success on invalid input.
15850 continue
15851 else case e in #(
15852 e) # Passes both tests.
15853 ac_preproc_ok=:
15854 break ;;
15855 esac
15856 fi
15857 rm -f conftest.err conftest.i conftest.$ac_ext
15858
15859 done
15860 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15861 rm -f conftest.i conftest.err conftest.$ac_ext
15862 if $ac_preproc_ok
15863 then :
15864 break
15865 fi
15866
15867 done
15868 ac_cv_prog_CPP=$CPP
15869 ;;
15870 esac
15871 fi
15872 CPP=$ac_cv_prog_CPP
15873 else
15874 ac_cv_prog_CPP=$CPP
15875 fi
15876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15877 printf "%s\n" "$CPP" >&6; }
15878 ac_preproc_ok=false
15879 for ac_c_preproc_warn_flag in '' yes
15880 do
15881 # Use a header file that comes with gcc, so configuring glibc
15882 # with a fresh cross-compiler works.
15883 # On the NeXT, cc -E runs the code through the compiler's parser,
15884 # not just through cpp. "Syntax error" is here to catch this case.
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15887 #include <limits.h>
15888 Syntax error
15889 _ACEOF
15890 if ac_fn_c_try_cpp "$LINENO"
15891 then :
15892
15893 else case e in #(
15894 e) # Broken: fails on valid input.
15895 continue ;;
15896 esac
15897 fi
15898 rm -f conftest.err conftest.i conftest.$ac_ext
15899
15900 # OK, works on sane cases. Now check whether nonexistent headers
15901 # can be detected and how.
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904 #include <ac_nonexistent.h>
15905 _ACEOF
15906 if ac_fn_c_try_cpp "$LINENO"
15907 then :
15908 # Broken: success on invalid input.
15909 continue
15910 else case e in #(
15911 e) # Passes both tests.
15912 ac_preproc_ok=:
15913 break ;;
15914 esac
15915 fi
15916 rm -f conftest.err conftest.i conftest.$ac_ext
15917
15918 done
15919 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15920 rm -f conftest.i conftest.err conftest.$ac_ext
15921 if $ac_preproc_ok
15922 then :
15923
15924 else case e in #(
15925 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15926 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15927 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
15928 See 'config.log' for more details" "$LINENO" 5; } ;;
15929 esac
15930 fi
15931
15932 ac_ext=c
15933 ac_cpp='$CPP $CPPFLAGS'
15934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15937
15938
15939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
15940 printf %s "checking for egrep -e... " >&6; }
15941 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
15942 then :
15943 printf %s "(cached) " >&6
15944 else case e in #(
15945 e) if test -z "$EGREP_TRADITIONAL"; then
15946 ac_path_EGREP_TRADITIONAL_found=false
15947 # Loop through the user's path and test for each of PROGNAME-LIST
15948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15950 do
15951 IFS=$as_save_IFS
15952 case $as_dir in #(((
15953 '') as_dir=./ ;;
15954 */) ;;
15955 *) as_dir=$as_dir/ ;;
15956 esac
15957 for ac_prog in grep ggrep
15958 do
15959 for ac_exec_ext in '' $ac_executable_extensions; do
15960 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
15961 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
15962 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
15963 # Check for GNU $ac_path_EGREP_TRADITIONAL
15964 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
15965 *GNU*)
15966 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
15967 #(
15968 *)
15969 ac_count=0
15970 printf %s 0123456789 >"conftest.in"
15971 while :
15972 do
15973 cat "conftest.in" "conftest.in" >"conftest.tmp"
15974 mv "conftest.tmp" "conftest.in"
15975 cp "conftest.in" "conftest.nl"
15976 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
15977 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15979 as_fn_arith $ac_count + 1 && ac_count=$as_val
15980 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
15981 # Best one so far, save it but keep looking for a better one
15982 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
15983 ac_path_EGREP_TRADITIONAL_max=$ac_count
15984 fi
15985 # 10*(2^10) chars as input seems more than enough
15986 test $ac_count -gt 10 && break
15987 done
15988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15989 esac
15990
15991 $ac_path_EGREP_TRADITIONAL_found && break 3
15992 done
15993 done
15994 done
15995 IFS=$as_save_IFS
15996 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
15997 :
15998 fi
15999 else
16000 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
16001 fi
16002
16003 if test "$ac_cv_path_EGREP_TRADITIONAL"
16004 then :
16005 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
16006 else case e in #(
16007 e) if test -z "$EGREP_TRADITIONAL"; then
16008 ac_path_EGREP_TRADITIONAL_found=false
16009 # Loop through the user's path and test for each of PROGNAME-LIST
16010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16012 do
16013 IFS=$as_save_IFS
16014 case $as_dir in #(((
16015 '') as_dir=./ ;;
16016 */) ;;
16017 *) as_dir=$as_dir/ ;;
16018 esac
16019 for ac_prog in egrep
16020 do
16021 for ac_exec_ext in '' $ac_executable_extensions; do
16022 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
16023 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
16024 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
16025 # Check for GNU $ac_path_EGREP_TRADITIONAL
16026 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
16027 *GNU*)
16028 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
16029 #(
16030 *)
16031 ac_count=0
16032 printf %s 0123456789 >"conftest.in"
16033 while :
16034 do
16035 cat "conftest.in" "conftest.in" >"conftest.tmp"
16036 mv "conftest.tmp" "conftest.in"
16037 cp "conftest.in" "conftest.nl"
16038 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
16039 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16041 as_fn_arith $ac_count + 1 && ac_count=$as_val
16042 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
16043 # Best one so far, save it but keep looking for a better one
16044 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
16045 ac_path_EGREP_TRADITIONAL_max=$ac_count
16046 fi
16047 # 10*(2^10) chars as input seems more than enough
16048 test $ac_count -gt 10 && break
16049 done
16050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16051 esac
16052
16053 $ac_path_EGREP_TRADITIONAL_found && break 3
16054 done
16055 done
16056 done
16057 IFS=$as_save_IFS
16058 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
16059 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
16060 fi
16061 else
16062 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
16063 fi
16064 ;;
16065 esac
16066 fi ;;
16067 esac
16068 fi
16069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
16070 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
16071 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
16072
16073
16074
16075 acl_libdirstem=lib
16076 acl_libdirstem2=
16077 case "$host_os" in
16078 solaris*)
16079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16080 printf %s "checking for 64-bit host... " >&6; }
16081 if test ${gl_cv_solaris_64bit+y}
16082 then :
16083 printf %s "(cached) " >&6
16084 else case e in #(
16085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086 /* end confdefs.h. */
16087
16088 #ifdef _LP64
16089 sixtyfour bits
16090 #endif
16091
16092 _ACEOF
16093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16094 $EGREP_TRADITIONAL "sixtyfour bits" >/dev/null 2>&1
16095 then :
16096 gl_cv_solaris_64bit=yes
16097 else case e in #(
16098 e) gl_cv_solaris_64bit=no ;;
16099 esac
16100 fi
16101 rm -rf conftest*
16102
16103 ;;
16104 esac
16105 fi
16106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16107 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
16108 if test $gl_cv_solaris_64bit = yes; then
16109 acl_libdirstem=lib/64
16110 case "$host_cpu" in
16111 sparc*) acl_libdirstem2=lib/sparcv9 ;;
16112 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16113 esac
16114 fi
16115 ;;
16116 *)
16117 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16118 if test -n "$searchpath"; then
16119 acl_save_IFS="${IFS= }"; IFS=":"
16120 for searchdir in $searchpath; do
16121 if test -d "$searchdir"; then
16122 case "$searchdir" in
16123 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16124 */../ | */.. )
16125 # Better ignore directories of this form. They are misleading.
16126 ;;
16127 *) searchdir=`cd "$searchdir" && pwd`
16128 case "$searchdir" in
16129 */lib64 ) acl_libdirstem=lib64 ;;
16130 esac ;;
16131 esac
16132 fi
16133 done
16134 IFS="$acl_save_IFS"
16135 fi
16136 ;;
16137 esac
16138 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151 use_additional=yes
16152
16153 acl_save_prefix="$prefix"
16154 prefix="$acl_final_prefix"
16155 acl_save_exec_prefix="$exec_prefix"
16156 exec_prefix="$acl_final_exec_prefix"
16157
16158 eval additional_includedir=\"$includedir\"
16159 eval additional_libdir=\"$libdir\"
16160
16161 exec_prefix="$acl_save_exec_prefix"
16162 prefix="$acl_save_prefix"
16163
16164
16165 # Check whether --with-libiconv-prefix was given.
16166 if test ${with_libiconv_prefix+y}
16167 then :
16168 withval=$with_libiconv_prefix;
16169 if test "X$withval" = "Xno"; then
16170 use_additional=no
16171 else
16172 if test "X$withval" = "X"; then
16173
16174 acl_save_prefix="$prefix"
16175 prefix="$acl_final_prefix"
16176 acl_save_exec_prefix="$exec_prefix"
16177 exec_prefix="$acl_final_exec_prefix"
16178
16179 eval additional_includedir=\"$includedir\"
16180 eval additional_libdir=\"$libdir\"
16181
16182 exec_prefix="$acl_save_exec_prefix"
16183 prefix="$acl_save_prefix"
16184
16185 else
16186 additional_includedir="$withval/include"
16187 additional_libdir="$withval/$acl_libdirstem"
16188 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16189 && ! test -d "$withval/$acl_libdirstem"; then
16190 additional_libdir="$withval/$acl_libdirstem2"
16191 fi
16192 fi
16193 fi
16194
16195 fi
16196
16197 LIBICONV=
16198 LTLIBICONV=
16199 INCICONV=
16200 LIBICONV_PREFIX=
16201 HAVE_LIBICONV=
16202 rpathdirs=
16203 ltrpathdirs=
16204 names_already_handled=
16205 names_next_round='iconv '
16206 while test -n "$names_next_round"; do
16207 names_this_round="$names_next_round"
16208 names_next_round=
16209 for name in $names_this_round; do
16210 already_handled=
16211 for n in $names_already_handled; do
16212 if test "$n" = "$name"; then
16213 already_handled=yes
16214 break
16215 fi
16216 done
16217 if test -z "$already_handled"; then
16218 names_already_handled="$names_already_handled $name"
16219 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16220 eval value=\"\$HAVE_LIB$uppername\"
16221 if test -n "$value"; then
16222 if test "$value" = yes; then
16223 eval value=\"\$LIB$uppername\"
16224 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16225 eval value=\"\$LTLIB$uppername\"
16226 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16227 else
16228 :
16229 fi
16230 else
16231 found_dir=
16232 found_la=
16233 found_so=
16234 found_a=
16235 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16236 if test -n "$acl_shlibext"; then
16237 shrext=".$acl_shlibext" # typically: shrext=.so
16238 else
16239 shrext=
16240 fi
16241 if test $use_additional = yes; then
16242 dir="$additional_libdir"
16243 if test -n "$acl_shlibext"; then
16244 if test -f "$dir/$libname$shrext"; then
16245 found_dir="$dir"
16246 found_so="$dir/$libname$shrext"
16247 else
16248 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16249 ver=`(cd "$dir" && \
16250 for f in "$libname$shrext".*; do echo "$f"; done \
16251 | sed -e "s,^$libname$shrext\\\\.,," \
16252 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16253 | sed 1q ) 2>/dev/null`
16254 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16255 found_dir="$dir"
16256 found_so="$dir/$libname$shrext.$ver"
16257 fi
16258 else
16259 eval library_names=\"$acl_library_names_spec\"
16260 for f in $library_names; do
16261 if test -f "$dir/$f"; then
16262 found_dir="$dir"
16263 found_so="$dir/$f"
16264 break
16265 fi
16266 done
16267 fi
16268 fi
16269 fi
16270 if test "X$found_dir" = "X"; then
16271 if test -f "$dir/$libname.$acl_libext"; then
16272 found_dir="$dir"
16273 found_a="$dir/$libname.$acl_libext"
16274 fi
16275 fi
16276 if test "X$found_dir" != "X"; then
16277 if test -f "$dir/$libname.la"; then
16278 found_la="$dir/$libname.la"
16279 fi
16280 fi
16281 fi
16282 if test "X$found_dir" = "X"; then
16283 for x in $LDFLAGS $LTLIBICONV; do
16284
16285 acl_save_prefix="$prefix"
16286 prefix="$acl_final_prefix"
16287 acl_save_exec_prefix="$exec_prefix"
16288 exec_prefix="$acl_final_exec_prefix"
16289 eval x=\"$x\"
16290 exec_prefix="$acl_save_exec_prefix"
16291 prefix="$acl_save_prefix"
16292
16293 case "$x" in
16294 -L*)
16295 dir=`echo "X$x" | sed -e 's/^X-L//'`
16296 if test -n "$acl_shlibext"; then
16297 if test -f "$dir/$libname$shrext"; then
16298 found_dir="$dir"
16299 found_so="$dir/$libname$shrext"
16300 else
16301 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16302 ver=`(cd "$dir" && \
16303 for f in "$libname$shrext".*; do echo "$f"; done \
16304 | sed -e "s,^$libname$shrext\\\\.,," \
16305 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16306 | sed 1q ) 2>/dev/null`
16307 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16308 found_dir="$dir"
16309 found_so="$dir/$libname$shrext.$ver"
16310 fi
16311 else
16312 eval library_names=\"$acl_library_names_spec\"
16313 for f in $library_names; do
16314 if test -f "$dir/$f"; then
16315 found_dir="$dir"
16316 found_so="$dir/$f"
16317 break
16318 fi
16319 done
16320 fi
16321 fi
16322 fi
16323 if test "X$found_dir" = "X"; then
16324 if test -f "$dir/$libname.$acl_libext"; then
16325 found_dir="$dir"
16326 found_a="$dir/$libname.$acl_libext"
16327 fi
16328 fi
16329 if test "X$found_dir" != "X"; then
16330 if test -f "$dir/$libname.la"; then
16331 found_la="$dir/$libname.la"
16332 fi
16333 fi
16334 ;;
16335 esac
16336 if test "X$found_dir" != "X"; then
16337 break
16338 fi
16339 done
16340 fi
16341 if test "X$found_dir" != "X"; then
16342 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16343 if test "X$found_so" != "X"; then
16344 if test "$enable_rpath" = no \
16345 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16346 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16347 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16348 else
16349 haveit=
16350 for x in $ltrpathdirs; do
16351 if test "X$x" = "X$found_dir"; then
16352 haveit=yes
16353 break
16354 fi
16355 done
16356 if test -z "$haveit"; then
16357 ltrpathdirs="$ltrpathdirs $found_dir"
16358 fi
16359 if test "$acl_hardcode_direct" = yes; then
16360 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16361 else
16362 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16363 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16364 haveit=
16365 for x in $rpathdirs; do
16366 if test "X$x" = "X$found_dir"; then
16367 haveit=yes
16368 break
16369 fi
16370 done
16371 if test -z "$haveit"; then
16372 rpathdirs="$rpathdirs $found_dir"
16373 fi
16374 else
16375 haveit=
16376 for x in $LDFLAGS $LIBICONV; do
16377
16378 acl_save_prefix="$prefix"
16379 prefix="$acl_final_prefix"
16380 acl_save_exec_prefix="$exec_prefix"
16381 exec_prefix="$acl_final_exec_prefix"
16382 eval x=\"$x\"
16383 exec_prefix="$acl_save_exec_prefix"
16384 prefix="$acl_save_prefix"
16385
16386 if test "X$x" = "X-L$found_dir"; then
16387 haveit=yes
16388 break
16389 fi
16390 done
16391 if test -z "$haveit"; then
16392 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16393 fi
16394 if test "$acl_hardcode_minus_L" != no; then
16395 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16396 else
16397 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16398 fi
16399 fi
16400 fi
16401 fi
16402 else
16403 if test "X$found_a" != "X"; then
16404 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16405 else
16406 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16407 fi
16408 fi
16409 additional_includedir=
16410 case "$found_dir" in
16411 */$acl_libdirstem | */$acl_libdirstem/)
16412 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16413 if test "$name" = 'iconv'; then
16414 LIBICONV_PREFIX="$basedir"
16415 fi
16416 additional_includedir="$basedir/include"
16417 ;;
16418 */$acl_libdirstem2 | */$acl_libdirstem2/)
16419 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16420 if test "$name" = 'iconv'; then
16421 LIBICONV_PREFIX="$basedir"
16422 fi
16423 additional_includedir="$basedir/include"
16424 ;;
16425 esac
16426 if test "X$additional_includedir" != "X"; then
16427 if test "X$additional_includedir" != "X/usr/include"; then
16428 haveit=
16429 if test "X$additional_includedir" = "X/usr/local/include"; then
16430 if test -n "$GCC"; then
16431 case $host_os in
16432 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16433 esac
16434 fi
16435 fi
16436 if test -z "$haveit"; then
16437 for x in $CPPFLAGS $INCICONV; do
16438
16439 acl_save_prefix="$prefix"
16440 prefix="$acl_final_prefix"
16441 acl_save_exec_prefix="$exec_prefix"
16442 exec_prefix="$acl_final_exec_prefix"
16443 eval x=\"$x\"
16444 exec_prefix="$acl_save_exec_prefix"
16445 prefix="$acl_save_prefix"
16446
16447 if test "X$x" = "X-I$additional_includedir"; then
16448 haveit=yes
16449 break
16450 fi
16451 done
16452 if test -z "$haveit"; then
16453 if test -d "$additional_includedir"; then
16454 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16455 fi
16456 fi
16457 fi
16458 fi
16459 fi
16460 if test -n "$found_la"; then
16461 save_libdir="$libdir"
16462 case "$found_la" in
16463 */* | *\\*) . "$found_la" ;;
16464 *) . "./$found_la" ;;
16465 esac
16466 libdir="$save_libdir"
16467 for dep in $dependency_libs; do
16468 case "$dep" in
16469 -L*)
16470 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16471 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16472 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16473 haveit=
16474 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16475 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16476 if test -n "$GCC"; then
16477 case $host_os in
16478 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16479 esac
16480 fi
16481 fi
16482 if test -z "$haveit"; then
16483 haveit=
16484 for x in $LDFLAGS $LIBICONV; do
16485
16486 acl_save_prefix="$prefix"
16487 prefix="$acl_final_prefix"
16488 acl_save_exec_prefix="$exec_prefix"
16489 exec_prefix="$acl_final_exec_prefix"
16490 eval x=\"$x\"
16491 exec_prefix="$acl_save_exec_prefix"
16492 prefix="$acl_save_prefix"
16493
16494 if test "X$x" = "X-L$additional_libdir"; then
16495 haveit=yes
16496 break
16497 fi
16498 done
16499 if test -z "$haveit"; then
16500 if test -d "$additional_libdir"; then
16501 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16502 fi
16503 fi
16504 haveit=
16505 for x in $LDFLAGS $LTLIBICONV; do
16506
16507 acl_save_prefix="$prefix"
16508 prefix="$acl_final_prefix"
16509 acl_save_exec_prefix="$exec_prefix"
16510 exec_prefix="$acl_final_exec_prefix"
16511 eval x=\"$x\"
16512 exec_prefix="$acl_save_exec_prefix"
16513 prefix="$acl_save_prefix"
16514
16515 if test "X$x" = "X-L$additional_libdir"; then
16516 haveit=yes
16517 break
16518 fi
16519 done
16520 if test -z "$haveit"; then
16521 if test -d "$additional_libdir"; then
16522 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16523 fi
16524 fi
16525 fi
16526 fi
16527 ;;
16528 -R*)
16529 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16530 if test "$enable_rpath" != no; then
16531 haveit=
16532 for x in $rpathdirs; do
16533 if test "X$x" = "X$dir"; then
16534 haveit=yes
16535 break
16536 fi
16537 done
16538 if test -z "$haveit"; then
16539 rpathdirs="$rpathdirs $dir"
16540 fi
16541 haveit=
16542 for x in $ltrpathdirs; do
16543 if test "X$x" = "X$dir"; then
16544 haveit=yes
16545 break
16546 fi
16547 done
16548 if test -z "$haveit"; then
16549 ltrpathdirs="$ltrpathdirs $dir"
16550 fi
16551 fi
16552 ;;
16553 -l*)
16554 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16555 ;;
16556 *.la)
16557 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16558 ;;
16559 *)
16560 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16561 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16562 ;;
16563 esac
16564 done
16565 fi
16566 else
16567 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16569 fi
16570 fi
16571 fi
16572 done
16573 done
16574 if test "X$rpathdirs" != "X"; then
16575 if test -n "$acl_hardcode_libdir_separator"; then
16576 alldirs=
16577 for found_dir in $rpathdirs; do
16578 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16579 done
16580 acl_save_libdir="$libdir"
16581 libdir="$alldirs"
16582 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16583 libdir="$acl_save_libdir"
16584 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16585 else
16586 for found_dir in $rpathdirs; do
16587 acl_save_libdir="$libdir"
16588 libdir="$found_dir"
16589 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16590 libdir="$acl_save_libdir"
16591 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16592 done
16593 fi
16594 fi
16595 if test "X$ltrpathdirs" != "X"; then
16596 for found_dir in $ltrpathdirs; do
16597 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16598 done
16599 fi
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16632 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
16633 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
16634 then :
16635 printf %s "(cached) " >&6
16636 else case e in #(
16637 e) gt_save_LIBS="$LIBS"
16638 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16641 #include <CoreFoundation/CFPreferences.h>
16642 int
16643 main (void)
16644 {
16645 CFPreferencesCopyAppValue(NULL, NULL)
16646 ;
16647 return 0;
16648 }
16649 _ACEOF
16650 if ac_fn_c_try_link "$LINENO"
16651 then :
16652 gt_cv_func_CFPreferencesCopyAppValue=yes
16653 else case e in #(
16654 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
16655 esac
16656 fi
16657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16658 conftest$ac_exeext conftest.$ac_ext
16659 LIBS="$gt_save_LIBS" ;;
16660 esac
16661 fi
16662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16663 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16664 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16665
16666 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16667
16668 fi
16669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16670 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
16671 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
16672 then :
16673 printf %s "(cached) " >&6
16674 else case e in #(
16675 e) gt_save_LIBS="$LIBS"
16676 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678 /* end confdefs.h. */
16679 #include <CoreFoundation/CFLocale.h>
16680 int
16681 main (void)
16682 {
16683 CFLocaleCopyCurrent();
16684 ;
16685 return 0;
16686 }
16687 _ACEOF
16688 if ac_fn_c_try_link "$LINENO"
16689 then :
16690 gt_cv_func_CFLocaleCopyCurrent=yes
16691 else case e in #(
16692 e) gt_cv_func_CFLocaleCopyCurrent=no ;;
16693 esac
16694 fi
16695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16696 conftest$ac_exeext conftest.$ac_ext
16697 LIBS="$gt_save_LIBS" ;;
16698 esac
16699 fi
16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16701 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16702 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16703
16704 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16705
16706 fi
16707 INTL_MACOSX_LIBS=
16708 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16709 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16710 fi
16711
16712
16713
16714
16715
16716
16717 LIBINTL=
16718 LTLIBINTL=
16719 POSUB=
16720
16721 case " $gt_needs " in
16722 *" need-formatstring-macros "*) gt_api_version=3 ;;
16723 *" need-ngettext "*) gt_api_version=2 ;;
16724 *) gt_api_version=1 ;;
16725 esac
16726 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
16727 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
16728
16729 if test "$USE_NLS" = "yes"; then
16730 gt_use_preinstalled_gnugettext=no
16731
16732
16733 if test $gt_api_version -ge 3; then
16734 gt_revision_test_code='
16735 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16736 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
16737 #endif
16738 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
16739 '
16740 else
16741 gt_revision_test_code=
16742 fi
16743 if test $gt_api_version -ge 2; then
16744 gt_expression_test_code=' + * ngettext ("", "", 0)'
16745 else
16746 gt_expression_test_code=
16747 fi
16748
16749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16750 printf %s "checking for GNU gettext in libc... " >&6; }
16751 if eval test \${$gt_func_gnugettext_libc+y}
16752 then :
16753 printf %s "(cached) " >&6
16754 else case e in #(
16755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757
16758 #include <libintl.h>
16759 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16760 extern int _nl_msg_cat_cntr;
16761 extern int *_nl_domain_bindings;
16762 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
16763 #else
16764 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16765 #endif
16766 $gt_revision_test_code
16767
16768 int
16769 main (void)
16770 {
16771
16772 bindtextdomain ("", "");
16773 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16774
16775 ;
16776 return 0;
16777 }
16778 _ACEOF
16779 if ac_fn_c_try_link "$LINENO"
16780 then :
16781 eval "$gt_func_gnugettext_libc=yes"
16782 else case e in #(
16783 e) eval "$gt_func_gnugettext_libc=no" ;;
16784 esac
16785 fi
16786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16787 conftest$ac_exeext conftest.$ac_ext ;;
16788 esac
16789 fi
16790 eval ac_res=\$$gt_func_gnugettext_libc
16791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16792 printf "%s\n" "$ac_res" >&6; }
16793
16794 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
16795
16796
16797
16798
16799
16800 am_save_CPPFLAGS="$CPPFLAGS"
16801
16802 for element in $INCICONV; do
16803 haveit=
16804 for x in $CPPFLAGS; do
16805
16806 acl_save_prefix="$prefix"
16807 prefix="$acl_final_prefix"
16808 acl_save_exec_prefix="$exec_prefix"
16809 exec_prefix="$acl_final_exec_prefix"
16810 eval x=\"$x\"
16811 exec_prefix="$acl_save_exec_prefix"
16812 prefix="$acl_save_prefix"
16813
16814 if test "X$x" = "X$element"; then
16815 haveit=yes
16816 break
16817 fi
16818 done
16819 if test -z "$haveit"; then
16820 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16821 fi
16822 done
16823
16824
16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16826 printf %s "checking for iconv... " >&6; }
16827 if test ${am_cv_func_iconv+y}
16828 then :
16829 printf %s "(cached) " >&6
16830 else case e in #(
16831 e)
16832 am_cv_func_iconv="no, consider installing GNU libiconv"
16833 am_cv_lib_iconv=no
16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835 /* end confdefs.h. */
16836
16837 #include <stdlib.h>
16838 #include <iconv.h>
16839
16840 int
16841 main (void)
16842 {
16843 iconv_t cd = iconv_open("","");
16844 iconv(cd,NULL,NULL,NULL,NULL);
16845 iconv_close(cd);
16846 ;
16847 return 0;
16848 }
16849 _ACEOF
16850 if ac_fn_c_try_link "$LINENO"
16851 then :
16852 am_cv_func_iconv=yes
16853 fi
16854 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16855 conftest$ac_exeext conftest.$ac_ext
16856 if test "$am_cv_func_iconv" != yes; then
16857 am_save_LIBS="$LIBS"
16858 LIBS="$LIBS $LIBICONV"
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16861
16862 #include <stdlib.h>
16863 #include <iconv.h>
16864
16865 int
16866 main (void)
16867 {
16868 iconv_t cd = iconv_open("","");
16869 iconv(cd,NULL,NULL,NULL,NULL);
16870 iconv_close(cd);
16871 ;
16872 return 0;
16873 }
16874 _ACEOF
16875 if ac_fn_c_try_link "$LINENO"
16876 then :
16877 am_cv_lib_iconv=yes
16878 am_cv_func_iconv=yes
16879 fi
16880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16881 conftest$ac_exeext conftest.$ac_ext
16882 LIBS="$am_save_LIBS"
16883 fi
16884 ;;
16885 esac
16886 fi
16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16888 printf "%s\n" "$am_cv_func_iconv" >&6; }
16889 if test "$am_cv_func_iconv" = yes; then
16890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16891 printf %s "checking for working iconv... " >&6; }
16892 if test ${am_cv_func_iconv_works+y}
16893 then :
16894 printf %s "(cached) " >&6
16895 else case e in #(
16896 e)
16897 am_save_LIBS="$LIBS"
16898 if test $am_cv_lib_iconv = yes; then
16899 LIBS="$LIBS $LIBICONV"
16900 fi
16901 am_cv_func_iconv_works=no
16902 for ac_iconv_const in '' 'const'; do
16903 if test "$cross_compiling" = yes
16904 then :
16905 case "$host_os" in
16906 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16907 *) am_cv_func_iconv_works="guessing yes" ;;
16908 esac
16909 else case e in #(
16910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h. */
16912
16913 #include <iconv.h>
16914 #include <string.h>
16915
16916 #ifndef ICONV_CONST
16917 # define ICONV_CONST $ac_iconv_const
16918 #endif
16919
16920 int
16921 main (void)
16922 {
16923 int result = 0;
16924 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16925 returns. */
16926 {
16927 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16928 if (cd_utf8_to_88591 != (iconv_t)(-1))
16929 {
16930 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
16931 char buf[10];
16932 ICONV_CONST char *inptr = input;
16933 size_t inbytesleft = strlen (input);
16934 char *outptr = buf;
16935 size_t outbytesleft = sizeof (buf);
16936 size_t res = iconv (cd_utf8_to_88591,
16937 &inptr, &inbytesleft,
16938 &outptr, &outbytesleft);
16939 if (res == 0)
16940 result |= 1;
16941 iconv_close (cd_utf8_to_88591);
16942 }
16943 }
16944 /* Test against Solaris 10 bug: Failures are not distinguishable from
16945 successful returns. */
16946 {
16947 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16948 if (cd_ascii_to_88591 != (iconv_t)(-1))
16949 {
16950 static ICONV_CONST char input[] = "\263";
16951 char buf[10];
16952 ICONV_CONST char *inptr = input;
16953 size_t inbytesleft = strlen (input);
16954 char *outptr = buf;
16955 size_t outbytesleft = sizeof (buf);
16956 size_t res = iconv (cd_ascii_to_88591,
16957 &inptr, &inbytesleft,
16958 &outptr, &outbytesleft);
16959 if (res == 0)
16960 result |= 2;
16961 iconv_close (cd_ascii_to_88591);
16962 }
16963 }
16964 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
16965 {
16966 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16967 if (cd_88591_to_utf8 != (iconv_t)(-1))
16968 {
16969 static ICONV_CONST char input[] = "\304";
16970 static char buf[2] = { (char)0xDE, (char)0xAD };
16971 ICONV_CONST char *inptr = input;
16972 size_t inbytesleft = 1;
16973 char *outptr = buf;
16974 size_t outbytesleft = 1;
16975 size_t res = iconv (cd_88591_to_utf8,
16976 &inptr, &inbytesleft,
16977 &outptr, &outbytesleft);
16978 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16979 result |= 4;
16980 iconv_close (cd_88591_to_utf8);
16981 }
16982 }
16983 #if 0 /* This bug could be worked around by the caller. */
16984 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16985 {
16986 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16987 if (cd_88591_to_utf8 != (iconv_t)(-1))
16988 {
16989 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16990 char buf[50];
16991 ICONV_CONST char *inptr = input;
16992 size_t inbytesleft = strlen (input);
16993 char *outptr = buf;
16994 size_t outbytesleft = sizeof (buf);
16995 size_t res = iconv (cd_88591_to_utf8,
16996 &inptr, &inbytesleft,
16997 &outptr, &outbytesleft);
16998 if ((int)res > 0)
16999 result |= 8;
17000 iconv_close (cd_88591_to_utf8);
17001 }
17002 }
17003 #endif
17004 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17005 provided. */
17006 if (/* Try standardized names. */
17007 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17008 /* Try IRIX, OSF/1 names. */
17009 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17010 /* Try AIX names. */
17011 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17012 /* Try HP-UX names. */
17013 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17014 result |= 16;
17015 return result;
17016
17017 ;
17018 return 0;
17019 }
17020 _ACEOF
17021 if ac_fn_c_try_run "$LINENO"
17022 then :
17023 am_cv_func_iconv_works=yes
17024 fi
17025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17026 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17027 esac
17028 fi
17029
17030 test "$am_cv_func_iconv_works" = no || break
17031 done
17032 LIBS="$am_save_LIBS"
17033 ;;
17034 esac
17035 fi
17036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17037 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
17038 case "$am_cv_func_iconv_works" in
17039 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17040 *) am_func_iconv=yes ;;
17041 esac
17042 else
17043 am_func_iconv=no am_cv_lib_iconv=no
17044 fi
17045 if test "$am_func_iconv" = yes; then
17046
17047 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
17048
17049 fi
17050 if test "$am_cv_lib_iconv" = yes; then
17051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17052 printf %s "checking how to link with libiconv... " >&6; }
17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17054 printf "%s\n" "$LIBICONV" >&6; }
17055 else
17056 CPPFLAGS="$am_save_CPPFLAGS"
17057 LIBICONV=
17058 LTLIBICONV=
17059 fi
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071 use_additional=yes
17072
17073 acl_save_prefix="$prefix"
17074 prefix="$acl_final_prefix"
17075 acl_save_exec_prefix="$exec_prefix"
17076 exec_prefix="$acl_final_exec_prefix"
17077
17078 eval additional_includedir=\"$includedir\"
17079 eval additional_libdir=\"$libdir\"
17080
17081 exec_prefix="$acl_save_exec_prefix"
17082 prefix="$acl_save_prefix"
17083
17084
17085 # Check whether --with-libintl-prefix was given.
17086 if test ${with_libintl_prefix+y}
17087 then :
17088 withval=$with_libintl_prefix;
17089 if test "X$withval" = "Xno"; then
17090 use_additional=no
17091 else
17092 if test "X$withval" = "X"; then
17093
17094 acl_save_prefix="$prefix"
17095 prefix="$acl_final_prefix"
17096 acl_save_exec_prefix="$exec_prefix"
17097 exec_prefix="$acl_final_exec_prefix"
17098
17099 eval additional_includedir=\"$includedir\"
17100 eval additional_libdir=\"$libdir\"
17101
17102 exec_prefix="$acl_save_exec_prefix"
17103 prefix="$acl_save_prefix"
17104
17105 else
17106 additional_includedir="$withval/include"
17107 additional_libdir="$withval/$acl_libdirstem"
17108 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17109 && ! test -d "$withval/$acl_libdirstem"; then
17110 additional_libdir="$withval/$acl_libdirstem2"
17111 fi
17112 fi
17113 fi
17114
17115 fi
17116
17117 LIBINTL=
17118 LTLIBINTL=
17119 INCINTL=
17120 LIBINTL_PREFIX=
17121 HAVE_LIBINTL=
17122 rpathdirs=
17123 ltrpathdirs=
17124 names_already_handled=
17125 names_next_round='intl '
17126 while test -n "$names_next_round"; do
17127 names_this_round="$names_next_round"
17128 names_next_round=
17129 for name in $names_this_round; do
17130 already_handled=
17131 for n in $names_already_handled; do
17132 if test "$n" = "$name"; then
17133 already_handled=yes
17134 break
17135 fi
17136 done
17137 if test -z "$already_handled"; then
17138 names_already_handled="$names_already_handled $name"
17139 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17140 eval value=\"\$HAVE_LIB$uppername\"
17141 if test -n "$value"; then
17142 if test "$value" = yes; then
17143 eval value=\"\$LIB$uppername\"
17144 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17145 eval value=\"\$LTLIB$uppername\"
17146 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17147 else
17148 :
17149 fi
17150 else
17151 found_dir=
17152 found_la=
17153 found_so=
17154 found_a=
17155 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17156 if test -n "$acl_shlibext"; then
17157 shrext=".$acl_shlibext" # typically: shrext=.so
17158 else
17159 shrext=
17160 fi
17161 if test $use_additional = yes; then
17162 dir="$additional_libdir"
17163 if test -n "$acl_shlibext"; then
17164 if test -f "$dir/$libname$shrext"; then
17165 found_dir="$dir"
17166 found_so="$dir/$libname$shrext"
17167 else
17168 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17169 ver=`(cd "$dir" && \
17170 for f in "$libname$shrext".*; do echo "$f"; done \
17171 | sed -e "s,^$libname$shrext\\\\.,," \
17172 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17173 | sed 1q ) 2>/dev/null`
17174 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17175 found_dir="$dir"
17176 found_so="$dir/$libname$shrext.$ver"
17177 fi
17178 else
17179 eval library_names=\"$acl_library_names_spec\"
17180 for f in $library_names; do
17181 if test -f "$dir/$f"; then
17182 found_dir="$dir"
17183 found_so="$dir/$f"
17184 break
17185 fi
17186 done
17187 fi
17188 fi
17189 fi
17190 if test "X$found_dir" = "X"; then
17191 if test -f "$dir/$libname.$acl_libext"; then
17192 found_dir="$dir"
17193 found_a="$dir/$libname.$acl_libext"
17194 fi
17195 fi
17196 if test "X$found_dir" != "X"; then
17197 if test -f "$dir/$libname.la"; then
17198 found_la="$dir/$libname.la"
17199 fi
17200 fi
17201 fi
17202 if test "X$found_dir" = "X"; then
17203 for x in $LDFLAGS $LTLIBINTL; do
17204
17205 acl_save_prefix="$prefix"
17206 prefix="$acl_final_prefix"
17207 acl_save_exec_prefix="$exec_prefix"
17208 exec_prefix="$acl_final_exec_prefix"
17209 eval x=\"$x\"
17210 exec_prefix="$acl_save_exec_prefix"
17211 prefix="$acl_save_prefix"
17212
17213 case "$x" in
17214 -L*)
17215 dir=`echo "X$x" | sed -e 's/^X-L//'`
17216 if test -n "$acl_shlibext"; then
17217 if test -f "$dir/$libname$shrext"; then
17218 found_dir="$dir"
17219 found_so="$dir/$libname$shrext"
17220 else
17221 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17222 ver=`(cd "$dir" && \
17223 for f in "$libname$shrext".*; do echo "$f"; done \
17224 | sed -e "s,^$libname$shrext\\\\.,," \
17225 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17226 | sed 1q ) 2>/dev/null`
17227 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17228 found_dir="$dir"
17229 found_so="$dir/$libname$shrext.$ver"
17230 fi
17231 else
17232 eval library_names=\"$acl_library_names_spec\"
17233 for f in $library_names; do
17234 if test -f "$dir/$f"; then
17235 found_dir="$dir"
17236 found_so="$dir/$f"
17237 break
17238 fi
17239 done
17240 fi
17241 fi
17242 fi
17243 if test "X$found_dir" = "X"; then
17244 if test -f "$dir/$libname.$acl_libext"; then
17245 found_dir="$dir"
17246 found_a="$dir/$libname.$acl_libext"
17247 fi
17248 fi
17249 if test "X$found_dir" != "X"; then
17250 if test -f "$dir/$libname.la"; then
17251 found_la="$dir/$libname.la"
17252 fi
17253 fi
17254 ;;
17255 esac
17256 if test "X$found_dir" != "X"; then
17257 break
17258 fi
17259 done
17260 fi
17261 if test "X$found_dir" != "X"; then
17262 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17263 if test "X$found_so" != "X"; then
17264 if test "$enable_rpath" = no \
17265 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17266 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17267 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17268 else
17269 haveit=
17270 for x in $ltrpathdirs; do
17271 if test "X$x" = "X$found_dir"; then
17272 haveit=yes
17273 break
17274 fi
17275 done
17276 if test -z "$haveit"; then
17277 ltrpathdirs="$ltrpathdirs $found_dir"
17278 fi
17279 if test "$acl_hardcode_direct" = yes; then
17280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17281 else
17282 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17283 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17284 haveit=
17285 for x in $rpathdirs; do
17286 if test "X$x" = "X$found_dir"; then
17287 haveit=yes
17288 break
17289 fi
17290 done
17291 if test -z "$haveit"; then
17292 rpathdirs="$rpathdirs $found_dir"
17293 fi
17294 else
17295 haveit=
17296 for x in $LDFLAGS $LIBINTL; do
17297
17298 acl_save_prefix="$prefix"
17299 prefix="$acl_final_prefix"
17300 acl_save_exec_prefix="$exec_prefix"
17301 exec_prefix="$acl_final_exec_prefix"
17302 eval x=\"$x\"
17303 exec_prefix="$acl_save_exec_prefix"
17304 prefix="$acl_save_prefix"
17305
17306 if test "X$x" = "X-L$found_dir"; then
17307 haveit=yes
17308 break
17309 fi
17310 done
17311 if test -z "$haveit"; then
17312 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17313 fi
17314 if test "$acl_hardcode_minus_L" != no; then
17315 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17316 else
17317 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17318 fi
17319 fi
17320 fi
17321 fi
17322 else
17323 if test "X$found_a" != "X"; then
17324 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17325 else
17326 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17327 fi
17328 fi
17329 additional_includedir=
17330 case "$found_dir" in
17331 */$acl_libdirstem | */$acl_libdirstem/)
17332 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17333 if test "$name" = 'intl'; then
17334 LIBINTL_PREFIX="$basedir"
17335 fi
17336 additional_includedir="$basedir/include"
17337 ;;
17338 */$acl_libdirstem2 | */$acl_libdirstem2/)
17339 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17340 if test "$name" = 'intl'; then
17341 LIBINTL_PREFIX="$basedir"
17342 fi
17343 additional_includedir="$basedir/include"
17344 ;;
17345 esac
17346 if test "X$additional_includedir" != "X"; then
17347 if test "X$additional_includedir" != "X/usr/include"; then
17348 haveit=
17349 if test "X$additional_includedir" = "X/usr/local/include"; then
17350 if test -n "$GCC"; then
17351 case $host_os in
17352 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17353 esac
17354 fi
17355 fi
17356 if test -z "$haveit"; then
17357 for x in $CPPFLAGS $INCINTL; do
17358
17359 acl_save_prefix="$prefix"
17360 prefix="$acl_final_prefix"
17361 acl_save_exec_prefix="$exec_prefix"
17362 exec_prefix="$acl_final_exec_prefix"
17363 eval x=\"$x\"
17364 exec_prefix="$acl_save_exec_prefix"
17365 prefix="$acl_save_prefix"
17366
17367 if test "X$x" = "X-I$additional_includedir"; then
17368 haveit=yes
17369 break
17370 fi
17371 done
17372 if test -z "$haveit"; then
17373 if test -d "$additional_includedir"; then
17374 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17375 fi
17376 fi
17377 fi
17378 fi
17379 fi
17380 if test -n "$found_la"; then
17381 save_libdir="$libdir"
17382 case "$found_la" in
17383 */* | *\\*) . "$found_la" ;;
17384 *) . "./$found_la" ;;
17385 esac
17386 libdir="$save_libdir"
17387 for dep in $dependency_libs; do
17388 case "$dep" in
17389 -L*)
17390 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17391 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17392 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17393 haveit=
17394 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17395 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17396 if test -n "$GCC"; then
17397 case $host_os in
17398 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17399 esac
17400 fi
17401 fi
17402 if test -z "$haveit"; then
17403 haveit=
17404 for x in $LDFLAGS $LIBINTL; do
17405
17406 acl_save_prefix="$prefix"
17407 prefix="$acl_final_prefix"
17408 acl_save_exec_prefix="$exec_prefix"
17409 exec_prefix="$acl_final_exec_prefix"
17410 eval x=\"$x\"
17411 exec_prefix="$acl_save_exec_prefix"
17412 prefix="$acl_save_prefix"
17413
17414 if test "X$x" = "X-L$additional_libdir"; then
17415 haveit=yes
17416 break
17417 fi
17418 done
17419 if test -z "$haveit"; then
17420 if test -d "$additional_libdir"; then
17421 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17422 fi
17423 fi
17424 haveit=
17425 for x in $LDFLAGS $LTLIBINTL; do
17426
17427 acl_save_prefix="$prefix"
17428 prefix="$acl_final_prefix"
17429 acl_save_exec_prefix="$exec_prefix"
17430 exec_prefix="$acl_final_exec_prefix"
17431 eval x=\"$x\"
17432 exec_prefix="$acl_save_exec_prefix"
17433 prefix="$acl_save_prefix"
17434
17435 if test "X$x" = "X-L$additional_libdir"; then
17436 haveit=yes
17437 break
17438 fi
17439 done
17440 if test -z "$haveit"; then
17441 if test -d "$additional_libdir"; then
17442 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17443 fi
17444 fi
17445 fi
17446 fi
17447 ;;
17448 -R*)
17449 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17450 if test "$enable_rpath" != no; then
17451 haveit=
17452 for x in $rpathdirs; do
17453 if test "X$x" = "X$dir"; then
17454 haveit=yes
17455 break
17456 fi
17457 done
17458 if test -z "$haveit"; then
17459 rpathdirs="$rpathdirs $dir"
17460 fi
17461 haveit=
17462 for x in $ltrpathdirs; do
17463 if test "X$x" = "X$dir"; then
17464 haveit=yes
17465 break
17466 fi
17467 done
17468 if test -z "$haveit"; then
17469 ltrpathdirs="$ltrpathdirs $dir"
17470 fi
17471 fi
17472 ;;
17473 -l*)
17474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17475 ;;
17476 *.la)
17477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17478 ;;
17479 *)
17480 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17481 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17482 ;;
17483 esac
17484 done
17485 fi
17486 else
17487 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17488 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17489 fi
17490 fi
17491 fi
17492 done
17493 done
17494 if test "X$rpathdirs" != "X"; then
17495 if test -n "$acl_hardcode_libdir_separator"; then
17496 alldirs=
17497 for found_dir in $rpathdirs; do
17498 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17499 done
17500 acl_save_libdir="$libdir"
17501 libdir="$alldirs"
17502 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17503 libdir="$acl_save_libdir"
17504 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17505 else
17506 for found_dir in $rpathdirs; do
17507 acl_save_libdir="$libdir"
17508 libdir="$found_dir"
17509 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17510 libdir="$acl_save_libdir"
17511 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17512 done
17513 fi
17514 fi
17515 if test "X$ltrpathdirs" != "X"; then
17516 for found_dir in $ltrpathdirs; do
17517 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17518 done
17519 fi
17520
17521
17522
17523
17524
17525
17526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17527 printf %s "checking for GNU gettext in libintl... " >&6; }
17528 if eval test \${$gt_func_gnugettext_libintl+y}
17529 then :
17530 printf %s "(cached) " >&6
17531 else case e in #(
17532 e) gt_save_CPPFLAGS="$CPPFLAGS"
17533 CPPFLAGS="$CPPFLAGS $INCINTL"
17534 gt_save_LIBS="$LIBS"
17535 LIBS="$LIBS $LIBINTL"
17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537 /* end confdefs.h. */
17538
17539 #include <libintl.h>
17540 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17541 extern int _nl_msg_cat_cntr;
17542 extern
17543 #ifdef __cplusplus
17544 "C"
17545 #endif
17546 const char *_nl_expand_alias (const char *);
17547 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17548 #else
17549 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17550 #endif
17551 $gt_revision_test_code
17552
17553 int
17554 main (void)
17555 {
17556
17557 bindtextdomain ("", "");
17558 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17559
17560 ;
17561 return 0;
17562 }
17563 _ACEOF
17564 if ac_fn_c_try_link "$LINENO"
17565 then :
17566 eval "$gt_func_gnugettext_libintl=yes"
17567 else case e in #(
17568 e) eval "$gt_func_gnugettext_libintl=no" ;;
17569 esac
17570 fi
17571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17572 conftest$ac_exeext conftest.$ac_ext
17573 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17574 LIBS="$LIBS $LIBICONV"
17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17577
17578 #include <libintl.h>
17579 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17580 extern int _nl_msg_cat_cntr;
17581 extern
17582 #ifdef __cplusplus
17583 "C"
17584 #endif
17585 const char *_nl_expand_alias (const char *);
17586 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17587 #else
17588 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17589 #endif
17590 $gt_revision_test_code
17591
17592 int
17593 main (void)
17594 {
17595
17596 bindtextdomain ("", "");
17597 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17598
17599 ;
17600 return 0;
17601 }
17602 _ACEOF
17603 if ac_fn_c_try_link "$LINENO"
17604 then :
17605 LIBINTL="$LIBINTL $LIBICONV"
17606 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17607 eval "$gt_func_gnugettext_libintl=yes"
17608
17609 fi
17610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17611 conftest$ac_exeext conftest.$ac_ext
17612 fi
17613 CPPFLAGS="$gt_save_CPPFLAGS"
17614 LIBS="$gt_save_LIBS" ;;
17615 esac
17616 fi
17617 eval ac_res=\$$gt_func_gnugettext_libintl
17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17619 printf "%s\n" "$ac_res" >&6; }
17620 fi
17621
17622 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17623 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17624 && test "$PACKAGE" != gettext-runtime \
17625 && test "$PACKAGE" != gettext-tools; }; then
17626 gt_use_preinstalled_gnugettext=yes
17627 else
17628 LIBINTL=
17629 LTLIBINTL=
17630 INCINTL=
17631 fi
17632
17633
17634
17635 if test -n "$INTL_MACOSX_LIBS"; then
17636 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17637 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17638 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17639 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17640 fi
17641 fi
17642
17643 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17644 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17645
17646 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
17647
17648 else
17649 USE_NLS=no
17650 fi
17651 fi
17652
17653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17654 printf %s "checking whether to use NLS... " >&6; }
17655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17656 printf "%s\n" "$USE_NLS" >&6; }
17657 if test "$USE_NLS" = "yes"; then
17658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17659 printf %s "checking where the gettext function comes from... " >&6; }
17660 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17661 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17662 gt_source="external libintl"
17663 else
17664 gt_source="libc"
17665 fi
17666 else
17667 gt_source="included intl directory"
17668 fi
17669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17670 printf "%s\n" "$gt_source" >&6; }
17671 fi
17672
17673 if test "$USE_NLS" = "yes"; then
17674
17675 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17676 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17678 printf %s "checking how to link with libintl... " >&6; }
17679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17680 printf "%s\n" "$LIBINTL" >&6; }
17681
17682 for element in $INCINTL; do
17683 haveit=
17684 for x in $CPPFLAGS; do
17685
17686 acl_save_prefix="$prefix"
17687 prefix="$acl_final_prefix"
17688 acl_save_exec_prefix="$exec_prefix"
17689 exec_prefix="$acl_final_exec_prefix"
17690 eval x=\"$x\"
17691 exec_prefix="$acl_save_exec_prefix"
17692 prefix="$acl_save_prefix"
17693
17694 if test "X$x" = "X$element"; then
17695 haveit=yes
17696 break
17697 fi
17698 done
17699 if test -z "$haveit"; then
17700 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17701 fi
17702 done
17703
17704 fi
17705
17706
17707 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
17708
17709
17710 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
17711
17712 fi
17713
17714 POSUB=po
17715 fi
17716
17717
17718
17719 INTLLIBS="$LIBINTL"
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730 # minimum supported version of pkg-config
17731 xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17742 if test -n "$ac_tool_prefix"; then
17743 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17744 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17746 printf %s "checking for $ac_word... " >&6; }
17747 if test ${ac_cv_path_PKG_CONFIG+y}
17748 then :
17749 printf %s "(cached) " >&6
17750 else case e in #(
17751 e) case $PKG_CONFIG in
17752 [\\/]* | ?:[\\/]*)
17753 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17754 ;;
17755 *)
17756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17757 for as_dir in $PATH
17758 do
17759 IFS=$as_save_IFS
17760 case $as_dir in #(((
17761 '') as_dir=./ ;;
17762 */) ;;
17763 *) as_dir=$as_dir/ ;;
17764 esac
17765 for ac_exec_ext in '' $ac_executable_extensions; do
17766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17767 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17769 break 2
17770 fi
17771 done
17772 done
17773 IFS=$as_save_IFS
17774
17775 ;;
17776 esac ;;
17777 esac
17778 fi
17779 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17780 if test -n "$PKG_CONFIG"; then
17781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17782 printf "%s\n" "$PKG_CONFIG" >&6; }
17783 else
17784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17785 printf "%s\n" "no" >&6; }
17786 fi
17787
17788
17789 fi
17790 if test -z "$ac_cv_path_PKG_CONFIG"; then
17791 ac_pt_PKG_CONFIG=$PKG_CONFIG
17792 # Extract the first word of "pkg-config", so it can be a program name with args.
17793 set dummy pkg-config; ac_word=$2
17794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17795 printf %s "checking for $ac_word... " >&6; }
17796 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
17797 then :
17798 printf %s "(cached) " >&6
17799 else case e in #(
17800 e) case $ac_pt_PKG_CONFIG in
17801 [\\/]* | ?:[\\/]*)
17802 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17803 ;;
17804 *)
17805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17806 for as_dir in $PATH
17807 do
17808 IFS=$as_save_IFS
17809 case $as_dir in #(((
17810 '') as_dir=./ ;;
17811 */) ;;
17812 *) as_dir=$as_dir/ ;;
17813 esac
17814 for ac_exec_ext in '' $ac_executable_extensions; do
17815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17816 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17818 break 2
17819 fi
17820 done
17821 done
17822 IFS=$as_save_IFS
17823
17824 ;;
17825 esac ;;
17826 esac
17827 fi
17828 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17829 if test -n "$ac_pt_PKG_CONFIG"; then
17830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17831 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
17832 else
17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17834 printf "%s\n" "no" >&6; }
17835 fi
17836
17837 if test "x$ac_pt_PKG_CONFIG" = x; then
17838 PKG_CONFIG=""
17839 else
17840 case $cross_compiling:$ac_tool_warned in
17841 yes:)
17842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17844 ac_tool_warned=yes ;;
17845 esac
17846 PKG_CONFIG=$ac_pt_PKG_CONFIG
17847 fi
17848 else
17849 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17850 fi
17851
17852 fi
17853 if test -n "$PKG_CONFIG"; then
17854 _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17856 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17857 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17859 printf "%s\n" "yes" >&6; }
17860 else
17861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862 printf "%s\n" "no" >&6; }
17863 PKG_CONFIG=""
17864 fi
17865 fi
17866 if test -z "$PKG_CONFIG"; then
17867 as_fn_error $? "pkg-config not found" "$LINENO" 5
17868 fi
17869
17870 if test x"$PKG_CONFIG" = x""; then
17871 echo
17872 echo "*** Your version of pkg-config is too old. You need atleast"
17873 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
17874 echo "*** from the freedesktop.org software repository at"
17875 echo "***"
17876 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
17877 echo "***"
17878 exit 1;
17879 fi
17880
17881
17882
17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.72.0" >&5
17884 printf %s "checking for glib-2.0 >= 2.72.0... " >&6; }
17885 if $PKG_CONFIG "--atleast-version=2.72.0" "glib-2.0" >/dev/null 2>&1; then
17886 GLIB_VERSION=`$PKG_CONFIG --modversion "glib-2.0"`
17887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLIB_VERSION" >&5
17888 printf "%s\n" "$GLIB_VERSION" >&6; }
17889
17890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
17891 printf %s "checking GLIB_CFLAGS... " >&6; }
17892 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
17893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
17894 printf "%s\n" "$GLIB_CFLAGS" >&6; }
17895
17896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
17897 printf %s "checking GLIB_LIBS... " >&6; }
17898 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
17899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
17900 printf "%s\n" "$GLIB_LIBS" >&6; }
17901
17902 GLIB_REQUIRED_VERSION=2.72.0
17903
17904
17905
17906
17907
17908
17909 if test x"GLIB" = x"GLIB"; then
17910
17911 printf "%s\n" "#define G_LOG_USE_STRUCTURED 1" >>confdefs.h
17912
17913 fi
17914
17915
17916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting GLIB_VERSION_MAX_ALLOWED and GLIB_VERSION_MIN_REQUIRED according to 2.72.0" >&5
17917 printf "%s\n" "$as_me: setting GLIB_VERSION_MAX_ALLOWED and GLIB_VERSION_MIN_REQUIRED according to 2.72.0" >&6;}
17918
17919
17920
17921 printf "%s\n" "#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_72" >>confdefs.h
17922
17923
17924 printf "%s\n" "#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_72" >>confdefs.h
17925
17926
17927
17928
17929
17930 elif $PKG_CONFIG --exists "glib-2.0" >/dev/null 2>&1; then
17931 xdt_cv_version=`$PKG_CONFIG --modversion "glib-2.0"`
17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
17933 printf "%s\n" "found, but $xdt_cv_version" >&6; }
17934
17935
17936 echo "*** The required package glib-2.0 was found on your system,"
17937 echo "*** but the installed version ($xdt_cv_version) is too old."
17938 echo "*** Please upgrade glib-2.0 to atleast version 2.72.0, or adjust"
17939 echo "*** the PKG_CONFIG_PATH environment variable if you installed"
17940 echo "*** the new version of the package in a nonstandard prefix so"
17941 echo "*** pkg-config is able to find it."
17942 exit 1
17943
17944 else
17945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17946 printf "%s\n" "not found" >&6; }
17947
17948
17949 echo "*** The required package glib-2.0 was not found on your system."
17950 echo "*** Please install glib-2.0 (atleast version 2.72.0) or adjust"
17951 echo "*** the PKG_CONFIG_PATH environment variable if you"
17952 echo "*** installed the package in a nonstandard prefix so that"
17953 echo "*** pkg-config is able to find it."
17954 exit 1
17955
17956 fi
17957
17958
17959
17960 # minimum supported version of pkg-config
17961 xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17972 if test -n "$ac_tool_prefix"; then
17973 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17974 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17976 printf %s "checking for $ac_word... " >&6; }
17977 if test ${ac_cv_path_PKG_CONFIG+y}
17978 then :
17979 printf %s "(cached) " >&6
17980 else case e in #(
17981 e) case $PKG_CONFIG in
17982 [\\/]* | ?:[\\/]*)
17983 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17984 ;;
17985 *)
17986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17987 for as_dir in $PATH
17988 do
17989 IFS=$as_save_IFS
17990 case $as_dir in #(((
17991 '') as_dir=./ ;;
17992 */) ;;
17993 *) as_dir=$as_dir/ ;;
17994 esac
17995 for ac_exec_ext in '' $ac_executable_extensions; do
17996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17997 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17999 break 2
18000 fi
18001 done
18002 done
18003 IFS=$as_save_IFS
18004
18005 ;;
18006 esac ;;
18007 esac
18008 fi
18009 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18010 if test -n "$PKG_CONFIG"; then
18011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18012 printf "%s\n" "$PKG_CONFIG" >&6; }
18013 else
18014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18015 printf "%s\n" "no" >&6; }
18016 fi
18017
18018
18019 fi
18020 if test -z "$ac_cv_path_PKG_CONFIG"; then
18021 ac_pt_PKG_CONFIG=$PKG_CONFIG
18022 # Extract the first word of "pkg-config", so it can be a program name with args.
18023 set dummy pkg-config; ac_word=$2
18024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18025 printf %s "checking for $ac_word... " >&6; }
18026 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
18027 then :
18028 printf %s "(cached) " >&6
18029 else case e in #(
18030 e) case $ac_pt_PKG_CONFIG in
18031 [\\/]* | ?:[\\/]*)
18032 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18033 ;;
18034 *)
18035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18036 for as_dir in $PATH
18037 do
18038 IFS=$as_save_IFS
18039 case $as_dir in #(((
18040 '') as_dir=./ ;;
18041 */) ;;
18042 *) as_dir=$as_dir/ ;;
18043 esac
18044 for ac_exec_ext in '' $ac_executable_extensions; do
18045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18046 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18048 break 2
18049 fi
18050 done
18051 done
18052 IFS=$as_save_IFS
18053
18054 ;;
18055 esac ;;
18056 esac
18057 fi
18058 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18059 if test -n "$ac_pt_PKG_CONFIG"; then
18060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18061 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
18062 else
18063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18064 printf "%s\n" "no" >&6; }
18065 fi
18066
18067 if test "x$ac_pt_PKG_CONFIG" = x; then
18068 PKG_CONFIG=""
18069 else
18070 case $cross_compiling:$ac_tool_warned in
18071 yes:)
18072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18073 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18074 ac_tool_warned=yes ;;
18075 esac
18076 PKG_CONFIG=$ac_pt_PKG_CONFIG
18077 fi
18078 else
18079 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18080 fi
18081
18082 fi
18083 if test -n "$PKG_CONFIG"; then
18084 _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
18085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18086 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18087 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18089 printf "%s\n" "yes" >&6; }
18090 else
18091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18092 printf "%s\n" "no" >&6; }
18093 PKG_CONFIG=""
18094 fi
18095 fi
18096 if test -z "$PKG_CONFIG"; then
18097 as_fn_error $? "pkg-config not found" "$LINENO" 5
18098 fi
18099
18100 if test x"$PKG_CONFIG" = x""; then
18101 echo
18102 echo "*** Your version of pkg-config is too old. You need atleast"
18103 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
18104 echo "*** from the freedesktop.org software repository at"
18105 echo "***"
18106 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
18107 echo "***"
18108 exit 1;
18109 fi
18110
18111
18112
18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.72.0" >&5
18114 printf %s "checking for gio-2.0 >= 2.72.0... " >&6; }
18115 if $PKG_CONFIG "--atleast-version=2.72.0" "gio-2.0" >/dev/null 2>&1; then
18116 GIO_VERSION=`$PKG_CONFIG --modversion "gio-2.0"`
18117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIO_VERSION" >&5
18118 printf "%s\n" "$GIO_VERSION" >&6; }
18119
18120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GIO_CFLAGS" >&5
18121 printf %s "checking GIO_CFLAGS... " >&6; }
18122 GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0"`
18123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIO_CFLAGS" >&5
18124 printf "%s\n" "$GIO_CFLAGS" >&6; }
18125
18126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GIO_LIBS" >&5
18127 printf %s "checking GIO_LIBS... " >&6; }
18128 GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0"`
18129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIO_LIBS" >&5
18130 printf "%s\n" "$GIO_LIBS" >&6; }
18131
18132 GIO_REQUIRED_VERSION=2.72.0
18133
18134
18135
18136
18137
18138
18139 if test x"GIO" = x"GLIB"; then
18140
18141 printf "%s\n" "#define G_LOG_USE_STRUCTURED 1" >>confdefs.h
18142
18143 fi
18144
18145
18146
18147
18148 elif $PKG_CONFIG --exists "gio-2.0" >/dev/null 2>&1; then
18149 xdt_cv_version=`$PKG_CONFIG --modversion "gio-2.0"`
18150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
18151 printf "%s\n" "found, but $xdt_cv_version" >&6; }
18152
18153
18154 echo "*** The required package gio-2.0 was found on your system,"
18155 echo "*** but the installed version ($xdt_cv_version) is too old."
18156 echo "*** Please upgrade gio-2.0 to atleast version 2.72.0, or adjust"
18157 echo "*** the PKG_CONFIG_PATH environment variable if you installed"
18158 echo "*** the new version of the package in a nonstandard prefix so"
18159 echo "*** pkg-config is able to find it."
18160 exit 1
18161
18162 else
18163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18164 printf "%s\n" "not found" >&6; }
18165
18166
18167 echo "*** The required package gio-2.0 was not found on your system."
18168 echo "*** Please install gio-2.0 (atleast version 2.72.0) or adjust"
18169 echo "*** the PKG_CONFIG_PATH environment variable if you"
18170 echo "*** installed the package in a nonstandard prefix so that"
18171 echo "*** pkg-config is able to find it."
18172 exit 1
18173
18174 fi
18175
18176
18177
18178 # minimum supported version of pkg-config
18179 xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18190 if test -n "$ac_tool_prefix"; then
18191 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18192 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18194 printf %s "checking for $ac_word... " >&6; }
18195 if test ${ac_cv_path_PKG_CONFIG+y}
18196 then :
18197 printf %s "(cached) " >&6
18198 else case e in #(
18199 e) case $PKG_CONFIG in
18200 [\\/]* | ?:[\\/]*)
18201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18202 ;;
18203 *)
18204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18205 for as_dir in $PATH
18206 do
18207 IFS=$as_save_IFS
18208 case $as_dir in #(((
18209 '') as_dir=./ ;;
18210 */) ;;
18211 *) as_dir=$as_dir/ ;;
18212 esac
18213 for ac_exec_ext in '' $ac_executable_extensions; do
18214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18215 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18217 break 2
18218 fi
18219 done
18220 done
18221 IFS=$as_save_IFS
18222
18223 ;;
18224 esac ;;
18225 esac
18226 fi
18227 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18228 if test -n "$PKG_CONFIG"; then
18229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18230 printf "%s\n" "$PKG_CONFIG" >&6; }
18231 else
18232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18233 printf "%s\n" "no" >&6; }
18234 fi
18235
18236
18237 fi
18238 if test -z "$ac_cv_path_PKG_CONFIG"; then
18239 ac_pt_PKG_CONFIG=$PKG_CONFIG
18240 # Extract the first word of "pkg-config", so it can be a program name with args.
18241 set dummy pkg-config; ac_word=$2
18242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18243 printf %s "checking for $ac_word... " >&6; }
18244 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
18245 then :
18246 printf %s "(cached) " >&6
18247 else case e in #(
18248 e) case $ac_pt_PKG_CONFIG in
18249 [\\/]* | ?:[\\/]*)
18250 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18251 ;;
18252 *)
18253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18254 for as_dir in $PATH
18255 do
18256 IFS=$as_save_IFS
18257 case $as_dir in #(((
18258 '') as_dir=./ ;;
18259 */) ;;
18260 *) as_dir=$as_dir/ ;;
18261 esac
18262 for ac_exec_ext in '' $ac_executable_extensions; do
18263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18264 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18266 break 2
18267 fi
18268 done
18269 done
18270 IFS=$as_save_IFS
18271
18272 ;;
18273 esac ;;
18274 esac
18275 fi
18276 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18277 if test -n "$ac_pt_PKG_CONFIG"; then
18278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18279 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
18280 else
18281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18282 printf "%s\n" "no" >&6; }
18283 fi
18284
18285 if test "x$ac_pt_PKG_CONFIG" = x; then
18286 PKG_CONFIG=""
18287 else
18288 case $cross_compiling:$ac_tool_warned in
18289 yes:)
18290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18291 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18292 ac_tool_warned=yes ;;
18293 esac
18294 PKG_CONFIG=$ac_pt_PKG_CONFIG
18295 fi
18296 else
18297 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18298 fi
18299
18300 fi
18301 if test -n "$PKG_CONFIG"; then
18302 _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
18303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18304 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18305 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18307 printf "%s\n" "yes" >&6; }
18308 else
18309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310 printf "%s\n" "no" >&6; }
18311 PKG_CONFIG=""
18312 fi
18313 fi
18314 if test -z "$PKG_CONFIG"; then
18315 as_fn_error $? "pkg-config not found" "$LINENO" 5
18316 fi
18317
18318 if test x"$PKG_CONFIG" = x""; then
18319 echo
18320 echo "*** Your version of pkg-config is too old. You need atleast"
18321 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
18322 echo "*** from the freedesktop.org software repository at"
18323 echo "***"
18324 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
18325 echo "***"
18326 exit 1;
18327 fi
18328
18329
18330
18331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.72.0" >&5
18332 printf %s "checking for gobject-2.0 >= 2.72.0... " >&6; }
18333 if $PKG_CONFIG "--atleast-version=2.72.0" "gobject-2.0" >/dev/null 2>&1; then
18334 GOBJECT_VERSION=`$PKG_CONFIG --modversion "gobject-2.0"`
18335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GOBJECT_VERSION" >&5
18336 printf "%s\n" "$GOBJECT_VERSION" >&6; }
18337
18338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GOBJECT_CFLAGS" >&5
18339 printf %s "checking GOBJECT_CFLAGS... " >&6; }
18340 GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0"`
18341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GOBJECT_CFLAGS" >&5
18342 printf "%s\n" "$GOBJECT_CFLAGS" >&6; }
18343
18344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GOBJECT_LIBS" >&5
18345 printf %s "checking GOBJECT_LIBS... " >&6; }
18346 GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0"`
18347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GOBJECT_LIBS" >&5
18348 printf "%s\n" "$GOBJECT_LIBS" >&6; }
18349
18350 GOBJECT_REQUIRED_VERSION=2.72.0
18351
18352
18353
18354
18355
18356
18357 if test x"GOBJECT" = x"GLIB"; then
18358
18359 printf "%s\n" "#define G_LOG_USE_STRUCTURED 1" >>confdefs.h
18360
18361 fi
18362
18363
18364
18365
18366 elif $PKG_CONFIG --exists "gobject-2.0" >/dev/null 2>&1; then
18367 xdt_cv_version=`$PKG_CONFIG --modversion "gobject-2.0"`
18368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
18369 printf "%s\n" "found, but $xdt_cv_version" >&6; }
18370
18371
18372 echo "*** The required package gobject-2.0 was found on your system,"
18373 echo "*** but the installed version ($xdt_cv_version) is too old."
18374 echo "*** Please upgrade gobject-2.0 to atleast version 2.72.0, or adjust"
18375 echo "*** the PKG_CONFIG_PATH environment variable if you installed"
18376 echo "*** the new version of the package in a nonstandard prefix so"
18377 echo "*** pkg-config is able to find it."
18378 exit 1
18379
18380 else
18381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18382 printf "%s\n" "not found" >&6; }
18383
18384
18385 echo "*** The required package gobject-2.0 was not found on your system."
18386 echo "*** Please install gobject-2.0 (atleast version 2.72.0) or adjust"
18387 echo "*** the PKG_CONFIG_PATH environment variable if you"
18388 echo "*** installed the package in a nonstandard prefix so that"
18389 echo "*** pkg-config is able to find it."
18390 exit 1
18391
18392 fi
18393
18394
18395
18396 # minimum supported version of pkg-config
18397 xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18408 if test -n "$ac_tool_prefix"; then
18409 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18410 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18412 printf %s "checking for $ac_word... " >&6; }
18413 if test ${ac_cv_path_PKG_CONFIG+y}
18414 then :
18415 printf %s "(cached) " >&6
18416 else case e in #(
18417 e) case $PKG_CONFIG in
18418 [\\/]* | ?:[\\/]*)
18419 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18420 ;;
18421 *)
18422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18423 for as_dir in $PATH
18424 do
18425 IFS=$as_save_IFS
18426 case $as_dir in #(((
18427 '') as_dir=./ ;;
18428 */) ;;
18429 *) as_dir=$as_dir/ ;;
18430 esac
18431 for ac_exec_ext in '' $ac_executable_extensions; do
18432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18433 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18435 break 2
18436 fi
18437 done
18438 done
18439 IFS=$as_save_IFS
18440
18441 ;;
18442 esac ;;
18443 esac
18444 fi
18445 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18446 if test -n "$PKG_CONFIG"; then
18447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18448 printf "%s\n" "$PKG_CONFIG" >&6; }
18449 else
18450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18451 printf "%s\n" "no" >&6; }
18452 fi
18453
18454
18455 fi
18456 if test -z "$ac_cv_path_PKG_CONFIG"; then
18457 ac_pt_PKG_CONFIG=$PKG_CONFIG
18458 # Extract the first word of "pkg-config", so it can be a program name with args.
18459 set dummy pkg-config; ac_word=$2
18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18461 printf %s "checking for $ac_word... " >&6; }
18462 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
18463 then :
18464 printf %s "(cached) " >&6
18465 else case e in #(
18466 e) case $ac_pt_PKG_CONFIG in
18467 [\\/]* | ?:[\\/]*)
18468 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18469 ;;
18470 *)
18471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18472 for as_dir in $PATH
18473 do
18474 IFS=$as_save_IFS
18475 case $as_dir in #(((
18476 '') as_dir=./ ;;
18477 */) ;;
18478 *) as_dir=$as_dir/ ;;
18479 esac
18480 for ac_exec_ext in '' $ac_executable_extensions; do
18481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18482 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18484 break 2
18485 fi
18486 done
18487 done
18488 IFS=$as_save_IFS
18489
18490 ;;
18491 esac ;;
18492 esac
18493 fi
18494 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18495 if test -n "$ac_pt_PKG_CONFIG"; then
18496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18497 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
18498 else
18499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500 printf "%s\n" "no" >&6; }
18501 fi
18502
18503 if test "x$ac_pt_PKG_CONFIG" = x; then
18504 PKG_CONFIG=""
18505 else
18506 case $cross_compiling:$ac_tool_warned in
18507 yes:)
18508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18509 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18510 ac_tool_warned=yes ;;
18511 esac
18512 PKG_CONFIG=$ac_pt_PKG_CONFIG
18513 fi
18514 else
18515 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18516 fi
18517
18518 fi
18519 if test -n "$PKG_CONFIG"; then
18520 _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
18521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18522 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18523 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18525 printf "%s\n" "yes" >&6; }
18526 else
18527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18528 printf "%s\n" "no" >&6; }
18529 PKG_CONFIG=""
18530 fi
18531 fi
18532 if test -z "$PKG_CONFIG"; then
18533 as_fn_error $? "pkg-config not found" "$LINENO" 5
18534 fi
18535
18536 if test x"$PKG_CONFIG" = x""; then
18537 echo
18538 echo "*** Your version of pkg-config is too old. You need atleast"
18539 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
18540 echo "*** from the freedesktop.org software repository at"
18541 echo "***"
18542 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
18543 echo "***"
18544 exit 1;
18545 fi
18546
18547
18548
18549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0 >= 2.72.0" >&5
18550 printf %s "checking for gthread-2.0 >= 2.72.0... " >&6; }
18551 if $PKG_CONFIG "--atleast-version=2.72.0" "gthread-2.0" >/dev/null 2>&1; then
18552 GTHREAD_VERSION=`$PKG_CONFIG --modversion "gthread-2.0"`
18553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTHREAD_VERSION" >&5
18554 printf "%s\n" "$GTHREAD_VERSION" >&6; }
18555
18556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GTHREAD_CFLAGS" >&5
18557 printf %s "checking GTHREAD_CFLAGS... " >&6; }
18558 GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0"`
18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTHREAD_CFLAGS" >&5
18560 printf "%s\n" "$GTHREAD_CFLAGS" >&6; }
18561
18562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GTHREAD_LIBS" >&5
18563 printf %s "checking GTHREAD_LIBS... " >&6; }
18564 GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0"`
18565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTHREAD_LIBS" >&5
18566 printf "%s\n" "$GTHREAD_LIBS" >&6; }
18567
18568 GTHREAD_REQUIRED_VERSION=2.72.0
18569
18570
18571
18572
18573
18574
18575 if test x"GTHREAD" = x"GLIB"; then
18576
18577 printf "%s\n" "#define G_LOG_USE_STRUCTURED 1" >>confdefs.h
18578
18579 fi
18580
18581
18582
18583
18584 elif $PKG_CONFIG --exists "gthread-2.0" >/dev/null 2>&1; then
18585 xdt_cv_version=`$PKG_CONFIG --modversion "gthread-2.0"`
18586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
18587 printf "%s\n" "found, but $xdt_cv_version" >&6; }
18588
18589
18590 echo "*** The required package gthread-2.0 was found on your system,"
18591 echo "*** but the installed version ($xdt_cv_version) is too old."
18592 echo "*** Please upgrade gthread-2.0 to atleast version 2.72.0, or adjust"
18593 echo "*** the PKG_CONFIG_PATH environment variable if you installed"
18594 echo "*** the new version of the package in a nonstandard prefix so"
18595 echo "*** pkg-config is able to find it."
18596 exit 1
18597
18598 else
18599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18600 printf "%s\n" "not found" >&6; }
18601
18602
18603 echo "*** The required package gthread-2.0 was not found on your system."
18604 echo "*** Please install gthread-2.0 (atleast version 2.72.0) or adjust"
18605 echo "*** the PKG_CONFIG_PATH environment variable if you"
18606 echo "*** installed the package in a nonstandard prefix so that"
18607 echo "*** pkg-config is able to find it."
18608 exit 1
18609
18610 fi
18611
18612
18613
18614 # minimum supported version of pkg-config
18615 xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18626 if test -n "$ac_tool_prefix"; then
18627 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18628 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18630 printf %s "checking for $ac_word... " >&6; }
18631 if test ${ac_cv_path_PKG_CONFIG+y}
18632 then :
18633 printf %s "(cached) " >&6
18634 else case e in #(
18635 e) case $PKG_CONFIG in
18636 [\\/]* | ?:[\\/]*)
18637 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18638 ;;
18639 *)
18640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18641 for as_dir in $PATH
18642 do
18643 IFS=$as_save_IFS
18644 case $as_dir in #(((
18645 '') as_dir=./ ;;
18646 */) ;;
18647 *) as_dir=$as_dir/ ;;
18648 esac
18649 for ac_exec_ext in '' $ac_executable_extensions; do
18650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18651 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18653 break 2
18654 fi
18655 done
18656 done
18657 IFS=$as_save_IFS
18658
18659 ;;
18660 esac ;;
18661 esac
18662 fi
18663 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18664 if test -n "$PKG_CONFIG"; then
18665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18666 printf "%s\n" "$PKG_CONFIG" >&6; }
18667 else
18668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18669 printf "%s\n" "no" >&6; }
18670 fi
18671
18672
18673 fi
18674 if test -z "$ac_cv_path_PKG_CONFIG"; then
18675 ac_pt_PKG_CONFIG=$PKG_CONFIG
18676 # Extract the first word of "pkg-config", so it can be a program name with args.
18677 set dummy pkg-config; ac_word=$2
18678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18679 printf %s "checking for $ac_word... " >&6; }
18680 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
18681 then :
18682 printf %s "(cached) " >&6
18683 else case e in #(
18684 e) case $ac_pt_PKG_CONFIG in
18685 [\\/]* | ?:[\\/]*)
18686 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18687 ;;
18688 *)
18689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18690 for as_dir in $PATH
18691 do
18692 IFS=$as_save_IFS
18693 case $as_dir in #(((
18694 '') as_dir=./ ;;
18695 */) ;;
18696 *) as_dir=$as_dir/ ;;
18697 esac
18698 for ac_exec_ext in '' $ac_executable_extensions; do
18699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18700 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18702 break 2
18703 fi
18704 done
18705 done
18706 IFS=$as_save_IFS
18707
18708 ;;
18709 esac ;;
18710 esac
18711 fi
18712 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18713 if test -n "$ac_pt_PKG_CONFIG"; then
18714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18715 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
18716 else
18717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718 printf "%s\n" "no" >&6; }
18719 fi
18720
18721 if test "x$ac_pt_PKG_CONFIG" = x; then
18722 PKG_CONFIG=""
18723 else
18724 case $cross_compiling:$ac_tool_warned in
18725 yes:)
18726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18727 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18728 ac_tool_warned=yes ;;
18729 esac
18730 PKG_CONFIG=$ac_pt_PKG_CONFIG
18731 fi
18732 else
18733 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18734 fi
18735
18736 fi
18737 if test -n "$PKG_CONFIG"; then
18738 _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18740 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18741 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18743 printf "%s\n" "yes" >&6; }
18744 else
18745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18746 printf "%s\n" "no" >&6; }
18747 PKG_CONFIG=""
18748 fi
18749 fi
18750 if test -z "$PKG_CONFIG"; then
18751 as_fn_error $? "pkg-config not found" "$LINENO" 5
18752 fi
18753
18754 if test x"$PKG_CONFIG" = x""; then
18755 echo
18756 echo "*** Your version of pkg-config is too old. You need atleast"
18757 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
18758 echo "*** from the freedesktop.org software repository at"
18759 echo "***"
18760 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
18761 echo "***"
18762 exit 1;
18763 fi
18764
18765
18766
18767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-3.0 >= 3.24.0" >&5
18768 printf %s "checking for gtk+-3.0 >= 3.24.0... " >&6; }
18769 if $PKG_CONFIG "--atleast-version=3.24.0" "gtk+-3.0" >/dev/null 2>&1; then
18770 GTK3_VERSION=`$PKG_CONFIG --modversion "gtk+-3.0"`
18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTK3_VERSION" >&5
18772 printf "%s\n" "$GTK3_VERSION" >&6; }
18773
18774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GTK3_CFLAGS" >&5
18775 printf %s "checking GTK3_CFLAGS... " >&6; }
18776 GTK3_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0"`
18777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTK3_CFLAGS" >&5
18778 printf "%s\n" "$GTK3_CFLAGS" >&6; }
18779
18780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GTK3_LIBS" >&5
18781 printf %s "checking GTK3_LIBS... " >&6; }
18782 GTK3_LIBS=`$PKG_CONFIG --libs "gtk+-3.0"`
18783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTK3_LIBS" >&5
18784 printf "%s\n" "$GTK3_LIBS" >&6; }
18785
18786 GTK3_REQUIRED_VERSION=3.24.0
18787
18788
18789
18790
18791
18792
18793 if test x"GTK3" = x"GLIB"; then
18794
18795 printf "%s\n" "#define G_LOG_USE_STRUCTURED 1" >>confdefs.h
18796
18797 fi
18798
18799
18800
18801
18802 elif $PKG_CONFIG --exists "gtk+-3.0" >/dev/null 2>&1; then
18803 xdt_cv_version=`$PKG_CONFIG --modversion "gtk+-3.0"`
18804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
18805 printf "%s\n" "found, but $xdt_cv_version" >&6; }
18806
18807
18808 echo "*** The required package gtk+-3.0 was found on your system,"
18809 echo "*** but the installed version ($xdt_cv_version) is too old."
18810 echo "*** Please upgrade gtk+-3.0 to atleast version 3.24.0, or adjust"
18811 echo "*** the PKG_CONFIG_PATH environment variable if you installed"
18812 echo "*** the new version of the package in a nonstandard prefix so"
18813 echo "*** pkg-config is able to find it."
18814 exit 1
18815
18816 else
18817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18818 printf "%s\n" "not found" >&6; }
18819
18820
18821 echo "*** The required package gtk+-3.0 was not found on your system."
18822 echo "*** Please install gtk+-3.0 (atleast version 3.24.0) or adjust"
18823 echo "*** the PKG_CONFIG_PATH environment variable if you"
18824 echo "*** installed the package in a nonstandard prefix so that"
18825 echo "*** pkg-config is able to find it."
18826 exit 1
18827
18828 fi
18829
18830
18831
18832 # minimum supported version of pkg-config
18833 xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18844 if test -n "$ac_tool_prefix"; then
18845 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18846 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18848 printf %s "checking for $ac_word... " >&6; }
18849 if test ${ac_cv_path_PKG_CONFIG+y}
18850 then :
18851 printf %s "(cached) " >&6
18852 else case e in #(
18853 e) case $PKG_CONFIG in
18854 [\\/]* | ?:[\\/]*)
18855 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18856 ;;
18857 *)
18858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18859 for as_dir in $PATH
18860 do
18861 IFS=$as_save_IFS
18862 case $as_dir in #(((
18863 '') as_dir=./ ;;
18864 */) ;;
18865 *) as_dir=$as_dir/ ;;
18866 esac
18867 for ac_exec_ext in '' $ac_executable_extensions; do
18868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18869 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18871 break 2
18872 fi
18873 done
18874 done
18875 IFS=$as_save_IFS
18876
18877 ;;
18878 esac ;;
18879 esac
18880 fi
18881 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18882 if test -n "$PKG_CONFIG"; then
18883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18884 printf "%s\n" "$PKG_CONFIG" >&6; }
18885 else
18886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18887 printf "%s\n" "no" >&6; }
18888 fi
18889
18890
18891 fi
18892 if test -z "$ac_cv_path_PKG_CONFIG"; then
18893 ac_pt_PKG_CONFIG=$PKG_CONFIG
18894 # Extract the first word of "pkg-config", so it can be a program name with args.
18895 set dummy pkg-config; ac_word=$2
18896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18897 printf %s "checking for $ac_word... " >&6; }
18898 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
18899 then :
18900 printf %s "(cached) " >&6
18901 else case e in #(
18902 e) case $ac_pt_PKG_CONFIG in
18903 [\\/]* | ?:[\\/]*)
18904 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18905 ;;
18906 *)
18907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18908 for as_dir in $PATH
18909 do
18910 IFS=$as_save_IFS
18911 case $as_dir in #(((
18912 '') as_dir=./ ;;
18913 */) ;;
18914 *) as_dir=$as_dir/ ;;
18915 esac
18916 for ac_exec_ext in '' $ac_executable_extensions; do
18917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18918 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18920 break 2
18921 fi
18922 done
18923 done
18924 IFS=$as_save_IFS
18925
18926 ;;
18927 esac ;;
18928 esac
18929 fi
18930 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18931 if test -n "$ac_pt_PKG_CONFIG"; then
18932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18933 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
18934 else
18935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18936 printf "%s\n" "no" >&6; }
18937 fi
18938
18939 if test "x$ac_pt_PKG_CONFIG" = x; then
18940 PKG_CONFIG=""
18941 else
18942 case $cross_compiling:$ac_tool_warned in
18943 yes:)
18944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18946 ac_tool_warned=yes ;;
18947 esac
18948 PKG_CONFIG=$ac_pt_PKG_CONFIG
18949 fi
18950 else
18951 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18952 fi
18953
18954 fi
18955 if test -n "$PKG_CONFIG"; then
18956 _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18958 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18959 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18961 printf "%s\n" "yes" >&6; }
18962 else
18963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18964 printf "%s\n" "no" >&6; }
18965 PKG_CONFIG=""
18966 fi
18967 fi
18968 if test -z "$PKG_CONFIG"; then
18969 as_fn_error $? "pkg-config not found" "$LINENO" 5
18970 fi
18971
18972 if test x"$PKG_CONFIG" = x""; then
18973 echo
18974 echo "*** Your version of pkg-config is too old. You need atleast"
18975 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
18976 echo "*** from the freedesktop.org software repository at"
18977 echo "***"
18978 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
18979 echo "***"
18980 exit 1;
18981 fi
18982
18983
18984
18985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxfce4util-1.0 >= 4.15.6" >&5
18986 printf %s "checking for libxfce4util-1.0 >= 4.15.6... " >&6; }
18987 if $PKG_CONFIG "--atleast-version=4.15.6" "libxfce4util-1.0" >/dev/null 2>&1; then
18988 LIBXFCE4UTIL_VERSION=`$PKG_CONFIG --modversion "libxfce4util-1.0"`
18989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UTIL_VERSION" >&5
18990 printf "%s\n" "$LIBXFCE4UTIL_VERSION" >&6; }
18991
18992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBXFCE4UTIL_CFLAGS" >&5
18993 printf %s "checking LIBXFCE4UTIL_CFLAGS... " >&6; }
18994 LIBXFCE4UTIL_CFLAGS=`$PKG_CONFIG --cflags "libxfce4util-1.0"`
18995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UTIL_CFLAGS" >&5
18996 printf "%s\n" "$LIBXFCE4UTIL_CFLAGS" >&6; }
18997
18998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBXFCE4UTIL_LIBS" >&5
18999 printf %s "checking LIBXFCE4UTIL_LIBS... " >&6; }
19000 LIBXFCE4UTIL_LIBS=`$PKG_CONFIG --libs "libxfce4util-1.0"`
19001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UTIL_LIBS" >&5
19002 printf "%s\n" "$LIBXFCE4UTIL_LIBS" >&6; }
19003
19004 LIBXFCE4UTIL_REQUIRED_VERSION=4.15.6
19005
19006
19007
19008
19009
19010
19011 if test x"LIBXFCE4UTIL" = x"GLIB"; then
19012
19013 printf "%s\n" "#define G_LOG_USE_STRUCTURED 1" >>confdefs.h
19014
19015 fi
19016
19017
19018
19019
19020 elif $PKG_CONFIG --exists "libxfce4util-1.0" >/dev/null 2>&1; then
19021 xdt_cv_version=`$PKG_CONFIG --modversion "libxfce4util-1.0"`
19022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
19023 printf "%s\n" "found, but $xdt_cv_version" >&6; }
19024
19025
19026 echo "*** The required package libxfce4util-1.0 was found on your system,"
19027 echo "*** but the installed version ($xdt_cv_version) is too old."
19028 echo "*** Please upgrade libxfce4util-1.0 to atleast version 4.15.6, or adjust"
19029 echo "*** the PKG_CONFIG_PATH environment variable if you installed"
19030 echo "*** the new version of the package in a nonstandard prefix so"
19031 echo "*** pkg-config is able to find it."
19032 exit 1
19033
19034 else
19035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19036 printf "%s\n" "not found" >&6; }
19037
19038
19039 echo "*** The required package libxfce4util-1.0 was not found on your system."
19040 echo "*** Please install libxfce4util-1.0 (atleast version 4.15.6) or adjust"
19041 echo "*** the PKG_CONFIG_PATH environment variable if you"
19042 echo "*** installed the package in a nonstandard prefix so that"
19043 echo "*** pkg-config is able to find it."
19044 exit 1
19045
19046 fi
19047
19048
19049
19050 # minimum supported version of pkg-config
19051 xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19062 if test -n "$ac_tool_prefix"; then
19063 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19064 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19066 printf %s "checking for $ac_word... " >&6; }
19067 if test ${ac_cv_path_PKG_CONFIG+y}
19068 then :
19069 printf %s "(cached) " >&6
19070 else case e in #(
19071 e) case $PKG_CONFIG in
19072 [\\/]* | ?:[\\/]*)
19073 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19074 ;;
19075 *)
19076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19077 for as_dir in $PATH
19078 do
19079 IFS=$as_save_IFS
19080 case $as_dir in #(((
19081 '') as_dir=./ ;;
19082 */) ;;
19083 *) as_dir=$as_dir/ ;;
19084 esac
19085 for ac_exec_ext in '' $ac_executable_extensions; do
19086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19087 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19089 break 2
19090 fi
19091 done
19092 done
19093 IFS=$as_save_IFS
19094
19095 ;;
19096 esac ;;
19097 esac
19098 fi
19099 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19100 if test -n "$PKG_CONFIG"; then
19101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19102 printf "%s\n" "$PKG_CONFIG" >&6; }
19103 else
19104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19105 printf "%s\n" "no" >&6; }
19106 fi
19107
19108
19109 fi
19110 if test -z "$ac_cv_path_PKG_CONFIG"; then
19111 ac_pt_PKG_CONFIG=$PKG_CONFIG
19112 # Extract the first word of "pkg-config", so it can be a program name with args.
19113 set dummy pkg-config; ac_word=$2
19114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19115 printf %s "checking for $ac_word... " >&6; }
19116 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
19117 then :
19118 printf %s "(cached) " >&6
19119 else case e in #(
19120 e) case $ac_pt_PKG_CONFIG in
19121 [\\/]* | ?:[\\/]*)
19122 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19123 ;;
19124 *)
19125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126 for as_dir in $PATH
19127 do
19128 IFS=$as_save_IFS
19129 case $as_dir in #(((
19130 '') as_dir=./ ;;
19131 */) ;;
19132 *) as_dir=$as_dir/ ;;
19133 esac
19134 for ac_exec_ext in '' $ac_executable_extensions; do
19135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19136 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19138 break 2
19139 fi
19140 done
19141 done
19142 IFS=$as_save_IFS
19143
19144 ;;
19145 esac ;;
19146 esac
19147 fi
19148 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19149 if test -n "$ac_pt_PKG_CONFIG"; then
19150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19151 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
19152 else
19153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19154 printf "%s\n" "no" >&6; }
19155 fi
19156
19157 if test "x$ac_pt_PKG_CONFIG" = x; then
19158 PKG_CONFIG=""
19159 else
19160 case $cross_compiling:$ac_tool_warned in
19161 yes:)
19162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19163 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19164 ac_tool_warned=yes ;;
19165 esac
19166 PKG_CONFIG=$ac_pt_PKG_CONFIG
19167 fi
19168 else
19169 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19170 fi
19171
19172 fi
19173 if test -n "$PKG_CONFIG"; then
19174 _pkg_min_version=$xdt_cv_PKG_CONFIG_MIN_VERSION
19175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19176 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19177 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19179 printf "%s\n" "yes" >&6; }
19180 else
19181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19182 printf "%s\n" "no" >&6; }
19183 PKG_CONFIG=""
19184 fi
19185 fi
19186 if test -z "$PKG_CONFIG"; then
19187 as_fn_error $? "pkg-config not found" "$LINENO" 5
19188 fi
19189
19190 if test x"$PKG_CONFIG" = x""; then
19191 echo
19192 echo "*** Your version of pkg-config is too old. You need atleast"
19193 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
19194 echo "*** from the freedesktop.org software repository at"
19195 echo "***"
19196 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
19197 echo "***"
19198 exit 1;
19199 fi
19200
19201
19202
19203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxfce4ui-2 >= 4.15.7" >&5
19204 printf %s "checking for libxfce4ui-2 >= 4.15.7... " >&6; }
19205 if $PKG_CONFIG "--atleast-version=4.15.7" "libxfce4ui-2" >/dev/null 2>&1; then
19206 LIBXFCE4UI2_VERSION=`$PKG_CONFIG --modversion "libxfce4ui-2"`
19207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UI2_VERSION" >&5
19208 printf "%s\n" "$LIBXFCE4UI2_VERSION" >&6; }
19209
19210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBXFCE4UI2_CFLAGS" >&5
19211 printf %s "checking LIBXFCE4UI2_CFLAGS... " >&6; }
19212 LIBXFCE4UI2_CFLAGS=`$PKG_CONFIG --cflags "libxfce4ui-2"`
19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UI2_CFLAGS" >&5
19214 printf "%s\n" "$LIBXFCE4UI2_CFLAGS" >&6; }
19215
19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBXFCE4UI2_LIBS" >&5
19217 printf %s "checking LIBXFCE4UI2_LIBS... " >&6; }
19218 LIBXFCE4UI2_LIBS=`$PKG_CONFIG --libs "libxfce4ui-2"`
19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBXFCE4UI2_LIBS" >&5
19220 printf "%s\n" "$LIBXFCE4UI2_LIBS" >&6; }
19221
19222 LIBXFCE4UI2_REQUIRED_VERSION=4.15.7
19223
19224
19225
19226
19227
19228
19229 if test x"LIBXFCE4UI2" = x"GLIB"; then
19230
19231 printf "%s\n" "#define G_LOG_USE_STRUCTURED 1" >>confdefs.h
19232
19233 fi
19234
19235
19236
19237
19238 elif $PKG_CONFIG --exists "libxfce4ui-2" >/dev/null 2>&1; then
19239 xdt_cv_version=`$PKG_CONFIG --modversion "libxfce4ui-2"`
19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found, but $xdt_cv_version" >&5
19241 printf "%s\n" "found, but $xdt_cv_version" >&6; }
19242
19243
19244 echo "*** The required package libxfce4ui-2 was found on your system,"
19245 echo "*** but the installed version ($xdt_cv_version) is too old."
19246 echo "*** Please upgrade libxfce4ui-2 to atleast version 4.15.7, or adjust"
19247 echo "*** the PKG_CONFIG_PATH environment variable if you installed"
19248 echo "*** the new version of the package in a nonstandard prefix so"
19249 echo "*** pkg-config is able to find it."
19250 exit 1
19251
19252 else
19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19254 printf "%s\n" "not found" >&6; }
19255
19256
19257 echo "*** The required package libxfce4ui-2 was not found on your system."
19258 echo "*** Please install libxfce4ui-2 (atleast version 4.15.7) or adjust"
19259 echo "*** the PKG_CONFIG_PATH environment variable if you"
19260 echo "*** installed the package in a nonstandard prefix so that"
19261 echo "*** pkg-config is able to find it."
19262 exit 1
19263
19264 fi
19265
19266
19267
19268
19269
19270 gtk_doc_requires="gtk-doc >= 1.20"
19271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
19272 printf %s "checking for gtk-doc... " >&6; }
19273 if test -n "$PKG_CONFIG" && \
19274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
19275 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
19276 ac_status=$?
19277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19278 test $ac_status = 0; }; then
19279 have_gtk_doc=yes
19280 else
19281 have_gtk_doc=no
19282 fi
19283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
19284 printf "%s\n" "$have_gtk_doc" >&6; }
19285
19286 if test "$have_gtk_doc" = "no"; then
19287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
19288 You will not be able to create source packages with 'make dist'
19289 because $gtk_doc_requires is not found." >&5
19290 printf "%s\n" "$as_me: WARNING:
19291 You will not be able to create source packages with 'make dist'
19292 because $gtk_doc_requires is not found." >&2;}
19293 fi
19294
19295 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19296 set dummy gtkdoc-check; ac_word=$2
19297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19298 printf %s "checking for $ac_word... " >&6; }
19299 if test ${ac_cv_prog_GTKDOC_CHECK+y}
19300 then :
19301 printf %s "(cached) " >&6
19302 else case e in #(
19303 e) if test -n "$GTKDOC_CHECK"; then
19304 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
19305 else
19306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19307 for as_dir in $PATH
19308 do
19309 IFS=$as_save_IFS
19310 case $as_dir in #(((
19311 '') as_dir=./ ;;
19312 */) ;;
19313 *) as_dir=$as_dir/ ;;
19314 esac
19315 for ac_exec_ext in '' $ac_executable_extensions; do
19316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19317 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
19318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19319 break 2
19320 fi
19321 done
19322 done
19323 IFS=$as_save_IFS
19324
19325 fi ;;
19326 esac
19327 fi
19328 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
19329 if test -n "$GTKDOC_CHECK"; then
19330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
19331 printf "%s\n" "$GTKDOC_CHECK" >&6; }
19332 else
19333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19334 printf "%s\n" "no" >&6; }
19335 fi
19336
19337
19338 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19339 set dummy gtkdoc-check; ac_word=$2
19340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19341 printf %s "checking for $ac_word... " >&6; }
19342 if test ${ac_cv_path_GTKDOC_CHECK_PATH+y}
19343 then :
19344 printf %s "(cached) " >&6
19345 else case e in #(
19346 e) case $GTKDOC_CHECK_PATH in
19347 [\\/]* | ?:[\\/]*)
19348 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
19349 ;;
19350 *)
19351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19352 for as_dir in $PATH
19353 do
19354 IFS=$as_save_IFS
19355 case $as_dir in #(((
19356 '') as_dir=./ ;;
19357 */) ;;
19358 *) as_dir=$as_dir/ ;;
19359 esac
19360 for ac_exec_ext in '' $ac_executable_extensions; do
19361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19362 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir$ac_word$ac_exec_ext"
19363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19364 break 2
19365 fi
19366 done
19367 done
19368 IFS=$as_save_IFS
19369
19370 ;;
19371 esac ;;
19372 esac
19373 fi
19374 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
19375 if test -n "$GTKDOC_CHECK_PATH"; then
19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
19377 printf "%s\n" "$GTKDOC_CHECK_PATH" >&6; }
19378 else
19379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19380 printf "%s\n" "no" >&6; }
19381 fi
19382
19383
19384 for ac_prog in gtkdoc-rebase
19385 do
19386 # Extract the first word of "$ac_prog", so it can be a program name with args.
19387 set dummy $ac_prog; ac_word=$2
19388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19389 printf %s "checking for $ac_word... " >&6; }
19390 if test ${ac_cv_path_GTKDOC_REBASE+y}
19391 then :
19392 printf %s "(cached) " >&6
19393 else case e in #(
19394 e) case $GTKDOC_REBASE in
19395 [\\/]* | ?:[\\/]*)
19396 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
19397 ;;
19398 *)
19399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19400 for as_dir in $PATH
19401 do
19402 IFS=$as_save_IFS
19403 case $as_dir in #(((
19404 '') as_dir=./ ;;
19405 */) ;;
19406 *) as_dir=$as_dir/ ;;
19407 esac
19408 for ac_exec_ext in '' $ac_executable_extensions; do
19409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19410 ac_cv_path_GTKDOC_REBASE="$as_dir$ac_word$ac_exec_ext"
19411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19412 break 2
19413 fi
19414 done
19415 done
19416 IFS=$as_save_IFS
19417
19418 ;;
19419 esac ;;
19420 esac
19421 fi
19422 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
19423 if test -n "$GTKDOC_REBASE"; then
19424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
19425 printf "%s\n" "$GTKDOC_REBASE" >&6; }
19426 else
19427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19428 printf "%s\n" "no" >&6; }
19429 fi
19430
19431
19432 test -n "$GTKDOC_REBASE" && break
19433 done
19434 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
19435
19436 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
19437 set dummy gtkdoc-mkpdf; ac_word=$2
19438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19439 printf %s "checking for $ac_word... " >&6; }
19440 if test ${ac_cv_path_GTKDOC_MKPDF+y}
19441 then :
19442 printf %s "(cached) " >&6
19443 else case e in #(
19444 e) case $GTKDOC_MKPDF in
19445 [\\/]* | ?:[\\/]*)
19446 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
19447 ;;
19448 *)
19449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19450 for as_dir in $PATH
19451 do
19452 IFS=$as_save_IFS
19453 case $as_dir in #(((
19454 '') as_dir=./ ;;
19455 */) ;;
19456 *) as_dir=$as_dir/ ;;
19457 esac
19458 for ac_exec_ext in '' $ac_executable_extensions; do
19459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19460 ac_cv_path_GTKDOC_MKPDF="$as_dir$ac_word$ac_exec_ext"
19461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19462 break 2
19463 fi
19464 done
19465 done
19466 IFS=$as_save_IFS
19467
19468 ;;
19469 esac ;;
19470 esac
19471 fi
19472 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
19473 if test -n "$GTKDOC_MKPDF"; then
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
19475 printf "%s\n" "$GTKDOC_MKPDF" >&6; }
19476 else
19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19478 printf "%s\n" "no" >&6; }
19479 fi
19480
19481
19482
19483
19484 # Check whether --with-html-dir was given.
19485 if test ${with_html_dir+y}
19486 then :
19487 withval=$with_html_dir;
19488 else case e in #(
19489 e) with_html_dir='${datadir}/gtk-doc/html' ;;
19490 esac
19491 fi
19492
19493 HTML_DIR="$with_html_dir"
19494
19495
19496 # Check whether --enable-gtk-doc was given.
19497 if test ${enable_gtk_doc+y}
19498 then :
19499 enableval=$enable_gtk_doc;
19500 else case e in #(
19501 e) enable_gtk_doc=no ;;
19502 esac
19503 fi
19504
19505
19506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
19507 printf %s "checking whether to build gtk-doc documentation... " >&6; }
19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
19509 printf "%s\n" "$enable_gtk_doc" >&6; }
19510
19511 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
19512 as_fn_error $? "
19513 You must have $gtk_doc_requires installed to build documentation for
19514 $PACKAGE_NAME. Please install gtk-doc or disable building the
19515 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
19516 fi
19517
19518 if test "x$PACKAGE_NAME" != "xglib"; then
19519
19520 pkg_failed=no
19521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" >&5
19522 printf %s "checking for glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0... " >&6; }
19523
19524 if test -n "$GTKDOC_DEPS_CFLAGS"; then
19525 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
19526 elif test -n "$PKG_CONFIG"; then
19527 if test -n "$PKG_CONFIG" && \
19528 { { 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
19529 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
19530 ac_status=$?
19531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19532 test $ac_status = 0; }; then
19533 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
19534 test "x$?" != "x0" && pkg_failed=yes
19535 else
19536 pkg_failed=yes
19537 fi
19538 else
19539 pkg_failed=untried
19540 fi
19541 if test -n "$GTKDOC_DEPS_LIBS"; then
19542 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
19543 elif test -n "$PKG_CONFIG"; then
19544 if test -n "$PKG_CONFIG" && \
19545 { { 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
19546 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
19547 ac_status=$?
19548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19549 test $ac_status = 0; }; then
19550 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
19551 test "x$?" != "x0" && pkg_failed=yes
19552 else
19553 pkg_failed=yes
19554 fi
19555 else
19556 pkg_failed=untried
19557 fi
19558
19559
19560
19561 if test $pkg_failed = yes; then
19562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19563 printf "%s\n" "no" >&6; }
19564
19565 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19566 _pkg_short_errors_supported=yes
19567 else
19568 _pkg_short_errors_supported=no
19569 fi
19570 if test $_pkg_short_errors_supported = yes; then
19571 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`
19572 else
19573 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
19574 fi
19575 # Put the nasty error message in config.log where it belongs
19576 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
19577
19578 :
19579 elif test $pkg_failed = untried; then
19580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19581 printf "%s\n" "no" >&6; }
19582 :
19583 else
19584 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
19585 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
19586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19587 printf "%s\n" "yes" >&6; }
19588
19589 fi
19590 fi
19591
19592 # Check whether --enable-gtk-doc-html was given.
19593 if test ${enable_gtk_doc_html+y}
19594 then :
19595 enableval=$enable_gtk_doc_html;
19596 else case e in #(
19597 e) enable_gtk_doc_html=yes ;;
19598 esac
19599 fi
19600
19601 # Check whether --enable-gtk-doc-pdf was given.
19602 if test ${enable_gtk_doc_pdf+y}
19603 then :
19604 enableval=$enable_gtk_doc_pdf;
19605 else case e in #(
19606 e) enable_gtk_doc_pdf=no ;;
19607 esac
19608 fi
19609
19610
19611 if test -z "$GTKDOC_MKPDF"; then
19612 enable_gtk_doc_pdf=no
19613 fi
19614
19615 if test -z "$AM_DEFAULT_VERBOSITY"; then
19616 AM_DEFAULT_VERBOSITY=1
19617 fi
19618
19619
19620 if test x$have_gtk_doc = xyes; then
19621 HAVE_GTK_DOC_TRUE=
19622 HAVE_GTK_DOC_FALSE='#'
19623 else
19624 HAVE_GTK_DOC_TRUE='#'
19625 HAVE_GTK_DOC_FALSE=
19626 fi
19627
19628 if test x$enable_gtk_doc = xyes; then
19629 ENABLE_GTK_DOC_TRUE=
19630 ENABLE_GTK_DOC_FALSE='#'
19631 else
19632 ENABLE_GTK_DOC_TRUE='#'
19633 ENABLE_GTK_DOC_FALSE=
19634 fi
19635
19636 if test x$enable_gtk_doc_html = xyes; then
19637 GTK_DOC_BUILD_HTML_TRUE=
19638 GTK_DOC_BUILD_HTML_FALSE='#'
19639 else
19640 GTK_DOC_BUILD_HTML_TRUE='#'
19641 GTK_DOC_BUILD_HTML_FALSE=
19642 fi
19643
19644 if test x$enable_gtk_doc_pdf = xyes; then
19645 GTK_DOC_BUILD_PDF_TRUE=
19646 GTK_DOC_BUILD_PDF_FALSE='#'
19647 else
19648 GTK_DOC_BUILD_PDF_TRUE='#'
19649 GTK_DOC_BUILD_PDF_FALSE=
19650 fi
19651
19652 if test -n "$LIBTOOL"; then
19653 GTK_DOC_USE_LIBTOOL_TRUE=
19654 GTK_DOC_USE_LIBTOOL_FALSE='#'
19655 else
19656 GTK_DOC_USE_LIBTOOL_TRUE='#'
19657 GTK_DOC_USE_LIBTOOL_FALSE=
19658 fi
19659
19660 if test -n "$GTKDOC_REBASE"; then
19661 GTK_DOC_USE_REBASE_TRUE=
19662 GTK_DOC_USE_REBASE_FALSE='#'
19663 else
19664 GTK_DOC_USE_REBASE_TRUE='#'
19665 GTK_DOC_USE_REBASE_FALSE=
19666 fi
19667
19668
19669
19670
19671
19672
19673 # Check whether --enable-introspection was given.
19674 if test ${enable_introspection+y}
19675 then :
19676 enableval=$enable_introspection;
19677 else case e in #(
19678 e) enable_introspection=auto ;;
19679 esac
19680 fi
19681
19682
19683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
19684 printf %s "checking for gobject-introspection... " >&6; }
19685
19686 case $enable_introspection in #(
19687 no) :
19688 found_introspection="no (disabled, use --enable-introspection to enable)"
19689 ;; #(
19690 yes) :
19691 if test -n "$PKG_CONFIG" && \
19692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
19693 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
19694 ac_status=$?
19695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19696 test $ac_status = 0; }; then
19697 :
19698 else
19699 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
19700 fi
19701 if test -n "$PKG_CONFIG" && \
19702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.72.0\""; } >&5
19703 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.72.0") 2>&5
19704 ac_status=$?
19705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19706 test $ac_status = 0; }; then
19707 found_introspection=yes
19708 else
19709 as_fn_error $? "You need to have gobject-introspection >= 1.72.0 installed to build garcon" "$LINENO" 5
19710 fi
19711 ;; #(
19712 auto) :
19713 if test -n "$PKG_CONFIG" && \
19714 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.72.0\""; } >&5
19715 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.72.0") 2>&5
19716 ac_status=$?
19717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19718 test $ac_status = 0; }; then
19719 found_introspection=yes
19720 else
19721 found_introspection=no
19722 fi
19723 enable_introspection=$found_introspection
19724 ;; #(
19725 *) :
19726 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
19727 ;;
19728 esac
19729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
19730 printf "%s\n" "$found_introspection" >&6; }
19731
19732 INTROSPECTION_SCANNER=
19733 INTROSPECTION_COMPILER=
19734 INTROSPECTION_GENERATE=
19735 INTROSPECTION_GIRDIR=
19736 INTROSPECTION_TYPELIBDIR=
19737 if test "x$found_introspection" = "xyes"; then
19738 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
19739 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
19740 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
19741 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
19742 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
19743 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
19744 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
19745 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
19746 fi
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756 if test "x$found_introspection" = "xyes"; then
19757 HAVE_INTROSPECTION_TRUE=
19758 HAVE_INTROSPECTION_FALSE='#'
19759 else
19760 HAVE_INTROSPECTION_TRUE='#'
19761 HAVE_INTROSPECTION_FALSE=
19762 fi
19763
19764
19765
19766
19767
19768 # Check whether --enable-debug was given.
19769 if test ${enable_debug+y}
19770 then :
19771 enableval=$enable_debug; enable_debug=$enableval
19772 else case e in #(
19773 e) enable_debug=minimum ;;
19774 esac
19775 fi
19776
19777
19778 xdt_cv_additional_COMMON_FLAGS="-Wall -Wextra \
19779 -Wno-missing-field-initializers \
19780 -Wno-unused-parameter \
19781 -Wmissing-declarations \
19782 -Wmissing-noreturn -Wpointer-arith \
19783 -Wcast-align -Wformat -Wformat-security -Wformat-y2k \
19784 -Winit-self -Wmissing-include-dirs -Wundef \
19785 -Wredundant-decls -Wshadow"
19786
19787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with debugging support" >&5
19788 printf %s "checking whether to build with debugging support... " >&6; }
19789 if test x"$enable_debug" = x"werror" -o x"$enable_debug" = x"full" -o x"$enable_debug" = x"yes"; then
19790
19791 printf "%s\n" "#define DEBUG 1" >>confdefs.h
19792
19793
19794 CPPFLAGS="$CPPFLAGS"
19795
19796 if test x`uname` = x"Linux"; then
19797 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -fstack-protector"
19798 fi
19799
19800 if test x"$enable_debug" = x"werror" -o x"$enable_debug" = x"full"; then
19801
19802 printf "%s\n" "#define DEBUG_TRACE 1" >>confdefs.h
19803
19804 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -O0 -g"
19805 CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG"
19806 if test x"$enable_debug" = x"werror"; then
19807 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -Werror -Wno-error=deprecated-declarations"
19808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: werror" >&5
19809 printf "%s\n" "werror" >&6; }
19810 else
19811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: full" >&5
19812 printf "%s\n" "full" >&6; }
19813 fi
19814 else
19815 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -g"
19816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19817 printf "%s\n" "yes" >&6; }
19818 fi
19819 else
19820 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS"
19821 CPPFLAGS="$CPPFLAGS -DNDEBUG"
19822
19823 if test x"$enable_debug" = x"no"; then
19824 CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT"
19825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19826 printf "%s\n" "no" >&6; }
19827 else
19828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: minimum" >&5
19829 printf "%s\n" "minimum" >&6; }
19830 fi
19831 fi
19832
19833 xdt_cv_additional_CFLAGS="$xdt_cv_additional_COMMON_FLAGS \
19834 -Wnested-externs \
19835 -Wold-style-definition"
19836 xdt_cv_additional_CXXFLAGS="$xdt_cv_additional_COMMON_FLAGS"
19837
19838
19839 for flag in $xdt_cv_additional_CFLAGS; do
19840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag" >&5
19841 printf %s "checking if $CC supports $flag... " >&6; }
19842 saved_CFLAGS="$CFLAGS"
19843 CFLAGS="$CFLAGS $flag"
19844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19845 /* end confdefs.h. */
19846
19847 _ACEOF
19848 if ac_fn_c_try_compile "$LINENO"
19849 then :
19850 flag_supported=yes
19851 else case e in #(
19852 e) flag_supported=no ;;
19853 esac
19854 fi
19855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19856 CFLAGS="$saved_CFLAGS"
19857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag_supported" >&5
19858 printf "%s\n" "$flag_supported" >&6; }
19859
19860 if test "x$flag_supported" = "xyes"; then
19861 supported_CFLAGS="$supported_CFLAGS $flag"
19862 fi
19863 done
19864
19865
19866 for flag in $xdt_cv_additional_CXXFLAGS; do
19867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag" >&5
19868 printf %s "checking if $CC supports $flag... " >&6; }
19869 saved_CFLAGS="$CFLAGS"
19870 CFLAGS="$CFLAGS $flag"
19871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h. */
19873
19874 _ACEOF
19875 if ac_fn_c_try_compile "$LINENO"
19876 then :
19877 flag_supported=yes
19878 else case e in #(
19879 e) flag_supported=no ;;
19880 esac
19881 fi
19882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19883 CFLAGS="$saved_CFLAGS"
19884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag_supported" >&5
19885 printf "%s\n" "$flag_supported" >&6; }
19886
19887 if test "x$flag_supported" = "xyes"; then
19888 supported_CXXFLAGS="$supported_CXXFLAGS $flag"
19889 fi
19890 done
19891
19892
19893 CFLAGS="$CFLAGS $supported_CFLAGS"
19894 CXXFLAGS="$CXXFLAGS $supported_CXXFLAGS"
19895 if test x"$enable_debug" = x"werror"; then
19896 CXXFLAGS="$CXXFLAGS -Wno-error=implicit-function-declaration"
19897 fi
19898
19899
19900
19901 # Check whether --enable-linker-opts was given.
19902 if test ${enable_linker_opts+y}
19903 then :
19904 enableval=$enable_linker_opts; enable_linker_opts=$enableval
19905 else case e in #(
19906 e) enable_linker_opts=yes ;;
19907 esac
19908 fi
19909
19910
19911 if test "x$enable_linker_opts" != "xno"; then
19912 if test x`uname` != x"OpenBSD"; then
19913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $LD accepts --as-needed" >&5
19914 printf %s "checking whether $LD accepts --as-needed... " >&6; }
19915 case `$LD --as-needed -v 2>&1 </dev/null` in
19916 *GNU* | *'with BFD'*)
19917 LDFLAGS="$LDFLAGS -Wl,--as-needed"
19918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19919 printf "%s\n" "yes" >&6; }
19920 ;;
19921 *)
19922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19923 printf "%s\n" "no" >&6; }
19924 ;;
19925 esac
19926 fi
19927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $LD accepts -O1" >&5
19928 printf %s "checking whether $LD accepts -O1... " >&6; }
19929 case `$LD -O1 -v 2>&1 </dev/null` in
19930 *GNU* | *'with BFD'*)
19931 LDFLAGS="$LDFLAGS -Wl,-O1"
19932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19933 printf "%s\n" "yes" >&6; }
19934 ;;
19935 *)
19936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19937 printf "%s\n" "no" >&6; }
19938 ;;
19939 esac
19940 fi
19941
19942
19943 ac_config_files="$ac_config_files Makefile data/Makefile data/xfce/Makefile docs/Makefile docs/reference/Makefile garcon/Makefile garcon/garcon-1.pc garcon/garcon-config.h garcon-gtk/Makefile garcon-gtk/garcon-gtk3-1.pc icons/Makefile icons/32x32/Makefile icons/64x64/Makefile po/Makefile.in tests/Makefile"
19944
19945 cat >confcache <<\_ACEOF
19946 # This file is a shell script that caches the results of configure
19947 # tests run on this system so they can be shared between configure
19948 # scripts and configure runs, see configure's option --config-cache.
19949 # It is not useful on other systems. If it contains results you don't
19950 # want to keep, you may remove or edit it.
19951 #
19952 # config.status only pays attention to the cache file if you give it
19953 # the --recheck option to rerun configure.
19954 #
19955 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
19956 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
19957 # following values.
19958
19959 _ACEOF
19960
19961 # The following way of writing the cache mishandles newlines in values,
19962 # but we know of no workaround that is simple, portable, and efficient.
19963 # So, we kill variables containing newlines.
19964 # Ultrix sh set writes to stderr and can't be redirected directly,
19965 # and sets the high bit in the cache file unless we assign to the vars.
19966 (
19967 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19968 eval ac_val=\$$ac_var
19969 case $ac_val in #(
19970 *${as_nl}*)
19971 case $ac_var in #(
19972 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19973 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19974 esac
19975 case $ac_var in #(
19976 _ | IFS | as_nl) ;; #(
19977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19978 *) { eval $ac_var=; unset $ac_var;} ;;
19979 esac ;;
19980 esac
19981 done
19982
19983 (set) 2>&1 |
19984 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19985 *${as_nl}ac_space=\ *)
19986 # 'set' does not quote correctly, so add quotes: double-quote
19987 # substitution turns \\\\ into \\, and sed turns \\ into \.
19988 sed -n \
19989 "s/'/'\\\\''/g;
19990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19991 ;; #(
19992 *)
19993 # 'set' quotes correctly as required by POSIX, so do not add quotes.
19994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19995 ;;
19996 esac |
19997 sort
19998 ) |
19999 sed '
20000 /^ac_cv_env_/b end
20001 t clear
20002 :clear
20003 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20004 t end
20005 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20006 :end' >>confcache
20007 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20008 if test -w "$cache_file"; then
20009 if test "x$cache_file" != "x/dev/null"; then
20010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20011 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20012 if test ! -f "$cache_file" || test -h "$cache_file"; then
20013 cat confcache >"$cache_file"
20014 else
20015 case $cache_file in #(
20016 */* | ?:*)
20017 mv -f confcache "$cache_file"$$ &&
20018 mv -f "$cache_file"$$ "$cache_file" ;; #(
20019 *)
20020 mv -f confcache "$cache_file" ;;
20021 esac
20022 fi
20023 fi
20024 else
20025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20026 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20027 fi
20028 fi
20029 rm -f confcache
20030
20031 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20032 # Let make expand exec_prefix.
20033 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20034
20035 DEFS=-DHAVE_CONFIG_H
20036
20037 ac_libobjs=
20038 ac_ltlibobjs=
20039 U=
20040 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20041 # 1. Remove the extension, and $U if already installed.
20042 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20043 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20044 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20045 # will be set to the directory where LIBOBJS objects are built.
20046 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20047 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20048 done
20049 LIBOBJS=$ac_libobjs
20050
20051 LTLIBOBJS=$ac_ltlibobjs
20052
20053
20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20055 printf %s "checking that generated files are newer than configure... " >&6; }
20056 if test -n "$am_sleep_pid"; then
20057 # Hide warnings about reused PIDs.
20058 wait $am_sleep_pid 2>/dev/null
20059 fi
20060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20061 printf "%s\n" "done" >&6; }
20062 case $enable_silent_rules in # (((
20063 yes) AM_DEFAULT_VERBOSITY=0;;
20064 no) AM_DEFAULT_VERBOSITY=1;;
20065 esac
20066 if test $am_cv_make_support_nested_variables = yes; then
20067 AM_V='$(V)'
20068 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20069 else
20070 AM_V=$AM_DEFAULT_VERBOSITY
20071 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20072 fi
20073
20074 if test -n "$EXEEXT"; then
20075 am__EXEEXT_TRUE=
20076 am__EXEEXT_FALSE='#'
20077 else
20078 am__EXEEXT_TRUE='#'
20079 am__EXEEXT_FALSE=
20080 fi
20081
20082 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20083 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20085 fi
20086 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20087 as_fn_error $? "conditional \"AMDEP\" was never defined.
20088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20089 fi
20090 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20091 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20093 fi
20094 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20095 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
20096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20097 fi
20098 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20099 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20101 fi
20102 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
20103 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
20104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20105 fi
20106 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
20107 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
20108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20109 fi
20110 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
20111 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
20112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20113 fi
20114 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
20115 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
20116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20117 fi
20118 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
20119 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
20120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20121 fi
20122 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
20123 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
20124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20125 fi
20126 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
20127 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
20128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20129 fi
20130
20131 : "${CONFIG_STATUS=./config.status}"
20132 ac_write_fail=0
20133 ac_clean_files_save=$ac_clean_files
20134 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20136 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20137 as_write_fail=0
20138 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20139 #! $SHELL
20140 # Generated by $as_me.
20141 # Run this file to recreate the current configuration.
20142 # Compiler output produced by configure, useful for debugging
20143 # configure, is in config.log if it exists.
20144
20145 debug=false
20146 ac_cs_recheck=false
20147 ac_cs_silent=false
20148
20149 SHELL=\${CONFIG_SHELL-$SHELL}
20150 export SHELL
20151 _ASEOF
20152 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20153 ## -------------------- ##
20154 ## M4sh Initialization. ##
20155 ## -------------------- ##
20156
20157 # Be more Bourne compatible
20158 DUALCASE=1; export DUALCASE # for MKS sh
20159 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20160 then :
20161 emulate sh
20162 NULLCMD=:
20163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20164 # is contrary to our usage. Disable this feature.
20165 alias -g '${1+"$@"}'='"$@"'
20166 setopt NO_GLOB_SUBST
20167 else case e in #(
20168 e) case `(set -o) 2>/dev/null` in #(
20169 *posix*) :
20170 set -o posix ;; #(
20171 *) :
20172 ;;
20173 esac ;;
20174 esac
20175 fi
20176
20177
20178
20179 # Reset variables that may have inherited troublesome values from
20180 # the environment.
20181
20182 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20183 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20184 # side effect of setting IFS to empty, thus disabling word splitting.)
20185 # Quoting is to prevent editors from complaining about space-tab.
20186 as_nl='
20187 '
20188 export as_nl
20189 IFS=" "" $as_nl"
20190
20191 PS1='$ '
20192 PS2='> '
20193 PS4='+ '
20194
20195 # Ensure predictable behavior from utilities with locale-dependent output.
20196 LC_ALL=C
20197 export LC_ALL
20198 LANGUAGE=C
20199 export LANGUAGE
20200
20201 # We cannot yet rely on "unset" to work, but we need these variables
20202 # to be unset--not just set to an empty or harmless value--now, to
20203 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20204 # also avoids known problems related to "unset" and subshell syntax
20205 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20206 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20207 do eval test \${$as_var+y} \
20208 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20209 done
20210
20211 # Ensure that fds 0, 1, and 2 are open.
20212 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20213 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20214 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20215
20216 # The user is always right.
20217 if ${PATH_SEPARATOR+false} :; then
20218 PATH_SEPARATOR=:
20219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20221 PATH_SEPARATOR=';'
20222 }
20223 fi
20224
20225
20226 # Find who we are. Look in the path if we contain no directory separator.
20227 as_myself=
20228 case $0 in #((
20229 *[\\/]* ) as_myself=$0 ;;
20230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20231 for as_dir in $PATH
20232 do
20233 IFS=$as_save_IFS
20234 case $as_dir in #(((
20235 '') as_dir=./ ;;
20236 */) ;;
20237 *) as_dir=$as_dir/ ;;
20238 esac
20239 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20240 done
20241 IFS=$as_save_IFS
20242
20243 ;;
20244 esac
20245 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20246 # in which case we are not to be found in the path.
20247 if test "x$as_myself" = x; then
20248 as_myself=$0
20249 fi
20250 if test ! -f "$as_myself"; then
20251 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20252 exit 1
20253 fi
20254
20255
20256
20257 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20258 # ----------------------------------------
20259 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20260 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20261 # script with STATUS, using 1 if that was 0.
20262 as_fn_error ()
20263 {
20264 as_status=$1; test $as_status -eq 0 && as_status=1
20265 if test "$4"; then
20266 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20268 fi
20269 printf "%s\n" "$as_me: error: $2" >&2
20270 as_fn_exit $as_status
20271 } # as_fn_error
20272
20273
20274 # as_fn_set_status STATUS
20275 # -----------------------
20276 # Set $? to STATUS, without forking.
20277 as_fn_set_status ()
20278 {
20279 return $1
20280 } # as_fn_set_status
20281
20282 # as_fn_exit STATUS
20283 # -----------------
20284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20285 as_fn_exit ()
20286 {
20287 set +e
20288 as_fn_set_status $1
20289 exit $1
20290 } # as_fn_exit
20291
20292 # as_fn_unset VAR
20293 # ---------------
20294 # Portably unset VAR.
20295 as_fn_unset ()
20296 {
20297 { eval $1=; unset $1;}
20298 }
20299 as_unset=as_fn_unset
20300
20301 # as_fn_append VAR VALUE
20302 # ----------------------
20303 # Append the text in VALUE to the end of the definition contained in VAR. Take
20304 # advantage of any shell optimizations that allow amortized linear growth over
20305 # repeated appends, instead of the typical quadratic growth present in naive
20306 # implementations.
20307 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20308 then :
20309 eval 'as_fn_append ()
20310 {
20311 eval $1+=\$2
20312 }'
20313 else case e in #(
20314 e) as_fn_append ()
20315 {
20316 eval $1=\$$1\$2
20317 } ;;
20318 esac
20319 fi # as_fn_append
20320
20321 # as_fn_arith ARG...
20322 # ------------------
20323 # Perform arithmetic evaluation on the ARGs, and store the result in the
20324 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20325 # must be portable across $(()) and expr.
20326 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20327 then :
20328 eval 'as_fn_arith ()
20329 {
20330 as_val=$(( $* ))
20331 }'
20332 else case e in #(
20333 e) as_fn_arith ()
20334 {
20335 as_val=`expr "$@" || test $? -eq 1`
20336 } ;;
20337 esac
20338 fi # as_fn_arith
20339
20340
20341 if expr a : '\(a\)' >/dev/null 2>&1 &&
20342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20343 as_expr=expr
20344 else
20345 as_expr=false
20346 fi
20347
20348 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20349 as_basename=basename
20350 else
20351 as_basename=false
20352 fi
20353
20354 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20355 as_dirname=dirname
20356 else
20357 as_dirname=false
20358 fi
20359
20360 as_me=`$as_basename -- "$0" ||
20361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20362 X"$0" : 'X\(//\)$' \| \
20363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20364 printf "%s\n" X/"$0" |
20365 sed '/^.*\/\([^/][^/]*\)\/*$/{
20366 s//\1/
20367 q
20368 }
20369 /^X\/\(\/\/\)$/{
20370 s//\1/
20371 q
20372 }
20373 /^X\/\(\/\).*/{
20374 s//\1/
20375 q
20376 }
20377 s/.*/./; q'`
20378
20379 # Avoid depending upon Character Ranges.
20380 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20383 as_cr_digits='0123456789'
20384 as_cr_alnum=$as_cr_Letters$as_cr_digits
20385
20386
20387 # Determine whether it's possible to make 'echo' print without a newline.
20388 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20389 # for compatibility with existing Makefiles.
20390 ECHO_C= ECHO_N= ECHO_T=
20391 case `echo -n x` in #(((((
20392 -n*)
20393 case `echo 'xy\c'` in
20394 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20395 xy) ECHO_C='\c';;
20396 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20397 ECHO_T=' ';;
20398 esac;;
20399 *)
20400 ECHO_N='-n';;
20401 esac
20402
20403 # For backward compatibility with old third-party macros, we provide
20404 # the shell variables $as_echo and $as_echo_n. New code should use
20405 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20406 as_echo='printf %s\n'
20407 as_echo_n='printf %s'
20408
20409 rm -f conf$$ conf$$.exe conf$$.file
20410 if test -d conf$$.dir; then
20411 rm -f conf$$.dir/conf$$.file
20412 else
20413 rm -f conf$$.dir
20414 mkdir conf$$.dir 2>/dev/null
20415 fi
20416 if (echo >conf$$.file) 2>/dev/null; then
20417 if ln -s conf$$.file conf$$ 2>/dev/null; then
20418 as_ln_s='ln -s'
20419 # ... but there are two gotchas:
20420 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20421 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20422 # In both cases, we have to default to 'cp -pR'.
20423 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20424 as_ln_s='cp -pR'
20425 elif ln conf$$.file conf$$ 2>/dev/null; then
20426 as_ln_s=ln
20427 else
20428 as_ln_s='cp -pR'
20429 fi
20430 else
20431 as_ln_s='cp -pR'
20432 fi
20433 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20434 rmdir conf$$.dir 2>/dev/null
20435
20436
20437 # as_fn_mkdir_p
20438 # -------------
20439 # Create "$as_dir" as a directory, including parents if necessary.
20440 as_fn_mkdir_p ()
20441 {
20442
20443 case $as_dir in #(
20444 -*) as_dir=./$as_dir;;
20445 esac
20446 test -d "$as_dir" || eval $as_mkdir_p || {
20447 as_dirs=
20448 while :; do
20449 case $as_dir in #(
20450 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20451 *) as_qdir=$as_dir;;
20452 esac
20453 as_dirs="'$as_qdir' $as_dirs"
20454 as_dir=`$as_dirname -- "$as_dir" ||
20455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20456 X"$as_dir" : 'X\(//\)[^/]' \| \
20457 X"$as_dir" : 'X\(//\)$' \| \
20458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20459 printf "%s\n" X"$as_dir" |
20460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20461 s//\1/
20462 q
20463 }
20464 /^X\(\/\/\)[^/].*/{
20465 s//\1/
20466 q
20467 }
20468 /^X\(\/\/\)$/{
20469 s//\1/
20470 q
20471 }
20472 /^X\(\/\).*/{
20473 s//\1/
20474 q
20475 }
20476 s/.*/./; q'`
20477 test -d "$as_dir" && break
20478 done
20479 test -z "$as_dirs" || eval "mkdir $as_dirs"
20480 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20481
20482
20483 } # as_fn_mkdir_p
20484 if mkdir -p . 2>/dev/null; then
20485 as_mkdir_p='mkdir -p "$as_dir"'
20486 else
20487 test -d ./-p && rmdir ./-p
20488 as_mkdir_p=false
20489 fi
20490
20491
20492 # as_fn_executable_p FILE
20493 # -----------------------
20494 # Test if FILE is an executable regular file.
20495 as_fn_executable_p ()
20496 {
20497 test -f "$1" && test -x "$1"
20498 } # as_fn_executable_p
20499 as_test_x='test -x'
20500 as_executable_p=as_fn_executable_p
20501
20502 # Sed expression to map a string onto a valid CPP name.
20503 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20504 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20505
20506 # Sed expression to map a string onto a valid variable name.
20507 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20508 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20509
20510
20511 exec 6>&1
20512 ## ----------------------------------- ##
20513 ## Main body of $CONFIG_STATUS script. ##
20514 ## ----------------------------------- ##
20515 _ASEOF
20516 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20517
20518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20519 # Save the log message, to keep $0 and so on meaningful, and to
20520 # report actual input values of CONFIG_FILES etc. instead of their
20521 # values after options handling.
20522 ac_log="
20523 This file was extended by garcon $as_me 4.20.0, which was
20524 generated by GNU Autoconf 2.72. Invocation command line was
20525
20526 CONFIG_FILES = $CONFIG_FILES
20527 CONFIG_HEADERS = $CONFIG_HEADERS
20528 CONFIG_LINKS = $CONFIG_LINKS
20529 CONFIG_COMMANDS = $CONFIG_COMMANDS
20530 $ $0 $@
20531
20532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20533 "
20534
20535 _ACEOF
20536
20537 case $ac_config_files in *"
20538 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20539 esac
20540
20541 case $ac_config_headers in *"
20542 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20543 esac
20544
20545
20546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20547 # Files that config.status was made for.
20548 config_files="$ac_config_files"
20549 config_headers="$ac_config_headers"
20550 config_commands="$ac_config_commands"
20551
20552 _ACEOF
20553
20554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20555 ac_cs_usage="\
20556 '$as_me' instantiates files and other configuration actions
20557 from templates according to the current configuration. Unless the files
20558 and actions are specified as TAGs, all are instantiated by default.
20559
20560 Usage: $0 [OPTION]... [TAG]...
20561
20562 -h, --help print this help, then exit
20563 -V, --version print version number and configuration settings, then exit
20564 --config print configuration, then exit
20565 -q, --quiet, --silent
20566 do not print progress messages
20567 -d, --debug don't remove temporary files
20568 --recheck update $as_me by reconfiguring in the same conditions
20569 --file=FILE[:TEMPLATE]
20570 instantiate the configuration file FILE
20571 --header=FILE[:TEMPLATE]
20572 instantiate the configuration header FILE
20573
20574 Configuration files:
20575 $config_files
20576
20577 Configuration headers:
20578 $config_headers
20579
20580 Configuration commands:
20581 $config_commands
20582
20583 Report bugs to <https://gitlab.xfce.org/xfce/garcon>."
20584
20585 _ACEOF
20586 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20587 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20589 ac_cs_config='$ac_cs_config_escaped'
20590 ac_cs_version="\\
20591 garcon config.status 4.20.0
20592 configured by $0, generated by GNU Autoconf 2.72,
20593 with options \\"\$ac_cs_config\\"
20594
20595 Copyright (C) 2023 Free Software Foundation, Inc.
20596 This config.status script is free software; the Free Software Foundation
20597 gives unlimited permission to copy, distribute and modify it."
20598
20599 ac_pwd='$ac_pwd'
20600 srcdir='$srcdir'
20601 INSTALL='$INSTALL'
20602 MKDIR_P='$MKDIR_P'
20603 AWK='$AWK'
20604 test -n "\$AWK" || AWK=awk
20605 _ACEOF
20606
20607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20608 # The default lists apply if the user does not specify any file.
20609 ac_need_defaults=:
20610 while test $# != 0
20611 do
20612 case $1 in
20613 --*=?*)
20614 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20615 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20616 ac_shift=:
20617 ;;
20618 --*=)
20619 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20620 ac_optarg=
20621 ac_shift=:
20622 ;;
20623 *)
20624 ac_option=$1
20625 ac_optarg=$2
20626 ac_shift=shift
20627 ;;
20628 esac
20629
20630 case $ac_option in
20631 # Handling of the options.
20632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20633 ac_cs_recheck=: ;;
20634 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20635 printf "%s\n" "$ac_cs_version"; exit ;;
20636 --config | --confi | --conf | --con | --co | --c )
20637 printf "%s\n" "$ac_cs_config"; exit ;;
20638 --debug | --debu | --deb | --de | --d | -d )
20639 debug=: ;;
20640 --file | --fil | --fi | --f )
20641 $ac_shift
20642 case $ac_optarg in
20643 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20644 '') as_fn_error $? "missing file argument" ;;
20645 esac
20646 as_fn_append CONFIG_FILES " '$ac_optarg'"
20647 ac_need_defaults=false;;
20648 --header | --heade | --head | --hea )
20649 $ac_shift
20650 case $ac_optarg in
20651 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20652 esac
20653 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20654 ac_need_defaults=false;;
20655 --he | --h)
20656 # Conflict between --help and --header
20657 as_fn_error $? "ambiguous option: '$1'
20658 Try '$0 --help' for more information.";;
20659 --help | --hel | -h )
20660 printf "%s\n" "$ac_cs_usage"; exit ;;
20661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20662 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20663 ac_cs_silent=: ;;
20664
20665 # This is an error.
20666 -*) as_fn_error $? "unrecognized option: '$1'
20667 Try '$0 --help' for more information." ;;
20668
20669 *) as_fn_append ac_config_targets " $1"
20670 ac_need_defaults=false ;;
20671
20672 esac
20673 shift
20674 done
20675
20676 ac_configure_extra_args=
20677
20678 if $ac_cs_silent; then
20679 exec 6>/dev/null
20680 ac_configure_extra_args="$ac_configure_extra_args --silent"
20681 fi
20682
20683 _ACEOF
20684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20685 if \$ac_cs_recheck; then
20686 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20687 shift
20688 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20689 CONFIG_SHELL='$SHELL'
20690 export CONFIG_SHELL
20691 exec "\$@"
20692 fi
20693
20694 _ACEOF
20695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20696 exec 5>>config.log
20697 {
20698 echo
20699 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20700 ## Running $as_me. ##
20701 _ASBOX
20702 printf "%s\n" "$ac_log"
20703 } >&5
20704
20705 _ACEOF
20706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20707 #
20708 # INIT-COMMANDS
20709 #
20710 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20711
20712
20713 # The HP-UX ksh and POSIX shell print the target directory to stdout
20714 # if CDPATH is set.
20715 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20716
20717 sed_quote_subst='$sed_quote_subst'
20718 double_quote_subst='$double_quote_subst'
20719 delay_variable_subst='$delay_variable_subst'
20720 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20721 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20722 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20723 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20724 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20725 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20726 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20727 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20728 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20729 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20730 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20731 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20732 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20733 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20734 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20735 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20736 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20737 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20738 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20739 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20740 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20741 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20742 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20743 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20744 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20745 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20746 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20747 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20748 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20749 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20750 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20751 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20752 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20753 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20754 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20755 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20756 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20757 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20758 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20759 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20760 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20761 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20762 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20763 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20764 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20765 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20766 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20767 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20768 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20769 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20770 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20771 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20772 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20773 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20774 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20775 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20776 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20777 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20778 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20779 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20780 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"`'
20781 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20782 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20783 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20784 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20785 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20786 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20787 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20788 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20789 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20790 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20791 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20792 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20793 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20794 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20795 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20796 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20797 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20798 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20799 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20800 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20801 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20802 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20803 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20804 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20805 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20806 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20807 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20808 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20809 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20810 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20811 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20812 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20813 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20814 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20815 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20816 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20817 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20818 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20819 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20820 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20821 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20822 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20823 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20824 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20825 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20826 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20827 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20828 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20829 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20830 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20831 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20832 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20833 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20834 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20835 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20836 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20837 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20838 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20839 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20840 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20841 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20842 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20843 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20844 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20845 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20846 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20847 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20848 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20849 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20850 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20851 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20852 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20853 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20854 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20855 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20856 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20857
20858 LTCC='$LTCC'
20859 LTCFLAGS='$LTCFLAGS'
20860 compiler='$compiler_DEFAULT'
20861
20862 # A function that is used when there is no print builtin or printf.
20863 func_fallback_echo ()
20864 {
20865 eval 'cat <<_LTECHO_EOF
20866 \$1
20867 _LTECHO_EOF'
20868 }
20869
20870 # Quote evaled strings.
20871 for var in SHELL \
20872 ECHO \
20873 PATH_SEPARATOR \
20874 SED \
20875 GREP \
20876 EGREP \
20877 FGREP \
20878 LD \
20879 NM \
20880 LN_S \
20881 lt_SP2NL \
20882 lt_NL2SP \
20883 reload_flag \
20884 FILECMD \
20885 OBJDUMP \
20886 deplibs_check_method \
20887 file_magic_cmd \
20888 file_magic_glob \
20889 want_nocaseglob \
20890 DLLTOOL \
20891 sharedlib_from_linklib_cmd \
20892 AR \
20893 archiver_list_spec \
20894 STRIP \
20895 RANLIB \
20896 CC \
20897 CFLAGS \
20898 compiler \
20899 lt_cv_sys_global_symbol_pipe \
20900 lt_cv_sys_global_symbol_to_cdecl \
20901 lt_cv_sys_global_symbol_to_import \
20902 lt_cv_sys_global_symbol_to_c_name_address \
20903 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20904 lt_cv_nm_interface \
20905 nm_file_list_spec \
20906 lt_cv_truncate_bin \
20907 lt_prog_compiler_no_builtin_flag \
20908 lt_prog_compiler_pic \
20909 lt_prog_compiler_wl \
20910 lt_prog_compiler_static \
20911 lt_cv_prog_compiler_c_o \
20912 need_locks \
20913 MANIFEST_TOOL \
20914 DSYMUTIL \
20915 NMEDIT \
20916 LIPO \
20917 OTOOL \
20918 OTOOL64 \
20919 shrext_cmds \
20920 export_dynamic_flag_spec \
20921 whole_archive_flag_spec \
20922 compiler_needs_object \
20923 with_gnu_ld \
20924 allow_undefined_flag \
20925 no_undefined_flag \
20926 hardcode_libdir_flag_spec \
20927 hardcode_libdir_separator \
20928 exclude_expsyms \
20929 include_expsyms \
20930 file_list_spec \
20931 variables_saved_for_relink \
20932 libname_spec \
20933 library_names_spec \
20934 soname_spec \
20935 install_override_mode \
20936 finish_eval \
20937 old_striplib \
20938 striplib; do
20939 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20940 *[\\\\\\\`\\"\\\$]*)
20941 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20942 ;;
20943 *)
20944 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20945 ;;
20946 esac
20947 done
20948
20949 # Double-quote double-evaled strings.
20950 for var in reload_cmds \
20951 old_postinstall_cmds \
20952 old_postuninstall_cmds \
20953 old_archive_cmds \
20954 extract_expsyms_cmds \
20955 old_archive_from_new_cmds \
20956 old_archive_from_expsyms_cmds \
20957 archive_cmds \
20958 archive_expsym_cmds \
20959 module_cmds \
20960 module_expsym_cmds \
20961 export_symbols_cmds \
20962 prelink_cmds \
20963 postlink_cmds \
20964 postinstall_cmds \
20965 postuninstall_cmds \
20966 finish_cmds \
20967 sys_lib_search_path_spec \
20968 configure_time_dlsearch_path \
20969 configure_time_lt_sys_library_path; do
20970 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20971 *[\\\\\\\`\\"\\\$]*)
20972 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20973 ;;
20974 *)
20975 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20976 ;;
20977 esac
20978 done
20979
20980 ac_aux_dir='$ac_aux_dir'
20981
20982 # See if we are running on zsh, and set the options that allow our
20983 # commands through without removal of \ escapes INIT.
20984 if test -n "\${ZSH_VERSION+set}"; then
20985 setopt NO_GLOB_SUBST
20986 fi
20987
20988
20989 PACKAGE='$PACKAGE'
20990 VERSION='$VERSION'
20991 RM='$RM'
20992 ofile='$ofile'
20993
20994
20995
20996 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20997 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20998 # from automake < 1.5.
20999 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21000 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21001 LINGUAS="${LINGUAS-%UNSET%}"
21002
21003
21004 _ACEOF
21005
21006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21007
21008 # Handling of arguments.
21009 for ac_config_target in $ac_config_targets
21010 do
21011 case $ac_config_target in
21012 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21013 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21014 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21015 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21016 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21017 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
21018 "data/xfce/Makefile") CONFIG_FILES="$CONFIG_FILES data/xfce/Makefile" ;;
21019 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21020 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
21021 "garcon/Makefile") CONFIG_FILES="$CONFIG_FILES garcon/Makefile" ;;
21022 "garcon/garcon-1.pc") CONFIG_FILES="$CONFIG_FILES garcon/garcon-1.pc" ;;
21023 "garcon/garcon-config.h") CONFIG_FILES="$CONFIG_FILES garcon/garcon-config.h" ;;
21024 "garcon-gtk/Makefile") CONFIG_FILES="$CONFIG_FILES garcon-gtk/Makefile" ;;
21025 "garcon-gtk/garcon-gtk3-1.pc") CONFIG_FILES="$CONFIG_FILES garcon-gtk/garcon-gtk3-1.pc" ;;
21026 "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
21027 "icons/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/32x32/Makefile" ;;
21028 "icons/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/64x64/Makefile" ;;
21029 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21030 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21031
21032 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21033 esac
21034 done
21035
21036
21037 # If the user did not use the arguments to specify the items to instantiate,
21038 # then the envvar interface is used. Set only those that are not.
21039 # We use the long form for the default assignment because of an extremely
21040 # bizarre bug on SunOS 4.1.3.
21041 if $ac_need_defaults; then
21042 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21043 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21044 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21045 fi
21046
21047 # Have a temporary directory for convenience. Make it in the build tree
21048 # simply because there is no reason against having it here, and in addition,
21049 # creating and moving files from /tmp can sometimes cause problems.
21050 # Hook for its removal unless debugging.
21051 # Note that there is a small window in which the directory will not be cleaned:
21052 # after its creation but before its name has been assigned to '$tmp'.
21053 $debug ||
21054 {
21055 tmp= ac_tmp=
21056 trap 'exit_status=$?
21057 : "${ac_tmp:=$tmp}"
21058 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21059 ' 0
21060 trap 'as_fn_exit 1' 1 2 13 15
21061 }
21062 # Create a (secure) tmp directory for tmp files.
21063
21064 {
21065 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21066 test -d "$tmp"
21067 } ||
21068 {
21069 tmp=./conf$$-$RANDOM
21070 (umask 077 && mkdir "$tmp")
21071 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21072 ac_tmp=$tmp
21073
21074 # Set up the scripts for CONFIG_FILES section.
21075 # No need to generate them if there are no CONFIG_FILES.
21076 # This happens for instance with './config.status config.h'.
21077 if test -n "$CONFIG_FILES"; then
21078
21079
21080 ac_cr=`echo X | tr X '\015'`
21081 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21082 # But we know of no other shell where ac_cr would be empty at this
21083 # point, so we can use a bashism as a fallback.
21084 if test "x$ac_cr" = x; then
21085 eval ac_cr=\$\'\\r\'
21086 fi
21087 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21088 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21089 ac_cs_awk_cr='\\r'
21090 else
21091 ac_cs_awk_cr=$ac_cr
21092 fi
21093
21094 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21095 _ACEOF
21096
21097
21098 {
21099 echo "cat >conf$$subs.awk <<_ACEOF" &&
21100 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21101 echo "_ACEOF"
21102 } >conf$$subs.sh ||
21103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21104 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21105 ac_delim='%!_!# '
21106 for ac_last_try in false false false false false :; do
21107 . ./conf$$subs.sh ||
21108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21109
21110 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21111 if test $ac_delim_n = $ac_delim_num; then
21112 break
21113 elif $ac_last_try; then
21114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21115 else
21116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21117 fi
21118 done
21119 rm -f conf$$subs.sh
21120
21121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21122 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21123 _ACEOF
21124 sed -n '
21125 h
21126 s/^/S["/; s/!.*/"]=/
21127 p
21128 g
21129 s/^[^!]*!//
21130 :repl
21131 t repl
21132 s/'"$ac_delim"'$//
21133 t delim
21134 :nl
21135 h
21136 s/\(.\{148\}\)..*/\1/
21137 t more1
21138 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21139 p
21140 n
21141 b repl
21142 :more1
21143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21144 p
21145 g
21146 s/.\{148\}//
21147 t nl
21148 :delim
21149 h
21150 s/\(.\{148\}\)..*/\1/
21151 t more2
21152 s/["\\]/\\&/g; s/^/"/; s/$/"/
21153 p
21154 b
21155 :more2
21156 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21157 p
21158 g
21159 s/.\{148\}//
21160 t delim
21161 ' <conf$$subs.awk | sed '
21162 /^[^""]/{
21163 N
21164 s/\n//
21165 }
21166 ' >>$CONFIG_STATUS || ac_write_fail=1
21167 rm -f conf$$subs.awk
21168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21169 _ACAWK
21170 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21171 for (key in S) S_is_set[key] = 1
21172 FS = ""
21173
21174 }
21175 {
21176 line = $ 0
21177 nfields = split(line, field, "@")
21178 substed = 0
21179 len = length(field[1])
21180 for (i = 2; i < nfields; i++) {
21181 key = field[i]
21182 keylen = length(key)
21183 if (S_is_set[key]) {
21184 value = S[key]
21185 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21186 len += length(value) + length(field[++i])
21187 substed = 1
21188 } else
21189 len += 1 + keylen
21190 }
21191
21192 print line
21193 }
21194
21195 _ACAWK
21196 _ACEOF
21197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21198 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21199 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21200 else
21201 cat
21202 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21203 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21204 _ACEOF
21205
21206 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21207 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21208 # trailing colons and then remove the whole line if VPATH becomes empty
21209 # (actually we leave an empty line to preserve line numbers).
21210 if test "x$srcdir" = x.; then
21211 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21212 h
21213 s///
21214 s/^/:/
21215 s/[ ]*$/:/
21216 s/:\$(srcdir):/:/g
21217 s/:\${srcdir}:/:/g
21218 s/:@srcdir@:/:/g
21219 s/^:*//
21220 s/:*$//
21221 x
21222 s/\(=[ ]*\).*/\1/
21223 G
21224 s/\n//
21225 s/^[^=]*=[ ]*$//
21226 }'
21227 fi
21228
21229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21230 fi # test -n "$CONFIG_FILES"
21231
21232 # Set up the scripts for CONFIG_HEADERS section.
21233 # No need to generate them if there are no CONFIG_HEADERS.
21234 # This happens for instance with './config.status Makefile'.
21235 if test -n "$CONFIG_HEADERS"; then
21236 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21237 BEGIN {
21238 _ACEOF
21239
21240 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21241 # here-document in config.status, that substitutes the proper values into
21242 # config.h.in to produce config.h.
21243
21244 # Create a delimiter string that does not exist in confdefs.h, to ease
21245 # handling of long lines.
21246 ac_delim='%!_!# '
21247 for ac_last_try in false false :; do
21248 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21249 if test -z "$ac_tt"; then
21250 break
21251 elif $ac_last_try; then
21252 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21253 else
21254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21255 fi
21256 done
21257
21258 # For the awk script, D is an array of macro values keyed by name,
21259 # likewise P contains macro parameters if any. Preserve backslash
21260 # newline sequences.
21261
21262 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21263 sed -n '
21264 s/.\{148\}/&'"$ac_delim"'/g
21265 t rset
21266 :rset
21267 s/^[ ]*#[ ]*define[ ][ ]*/ /
21268 t def
21269 d
21270 :def
21271 s/\\$//
21272 t bsnl
21273 s/["\\]/\\&/g
21274 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21275 D["\1"]=" \3"/p
21276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21277 d
21278 :bsnl
21279 s/["\\]/\\&/g
21280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21281 D["\1"]=" \3\\\\\\n"\\/p
21282 t cont
21283 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21284 t cont
21285 d
21286 :cont
21287 n
21288 s/.\{148\}/&'"$ac_delim"'/g
21289 t clear
21290 :clear
21291 s/\\$//
21292 t bsnlc
21293 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21294 d
21295 :bsnlc
21296 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21297 b cont
21298 ' <confdefs.h | sed '
21299 s/'"$ac_delim"'/"\\\
21300 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21301
21302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21303 for (key in D) D_is_set[key] = 1
21304 FS = ""
21305 }
21306 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21307 line = \$ 0
21308 split(line, arg, " ")
21309 if (arg[1] == "#") {
21310 defundef = arg[2]
21311 mac1 = arg[3]
21312 } else {
21313 defundef = substr(arg[1], 2)
21314 mac1 = arg[2]
21315 }
21316 split(mac1, mac2, "(") #)
21317 macro = mac2[1]
21318 prefix = substr(line, 1, index(line, defundef) - 1)
21319 if (D_is_set[macro]) {
21320 # Preserve the white space surrounding the "#".
21321 print prefix "define", macro P[macro] D[macro]
21322 next
21323 } else {
21324 # Replace #undef with comments. This is necessary, for example,
21325 # in the case of _POSIX_SOURCE, which is predefined and required
21326 # on some systems where configure will not decide to define it.
21327 if (defundef == "undef") {
21328 print "/*", prefix defundef, macro, "*/"
21329 next
21330 }
21331 }
21332 }
21333 { print }
21334 _ACAWK
21335 _ACEOF
21336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21337 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21338 fi # test -n "$CONFIG_HEADERS"
21339
21340
21341 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21342 shift
21343 for ac_tag
21344 do
21345 case $ac_tag in
21346 :[FHLC]) ac_mode=$ac_tag; continue;;
21347 esac
21348 case $ac_mode$ac_tag in
21349 :[FHL]*:*);;
21350 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21351 :[FH]-) ac_tag=-:-;;
21352 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21353 esac
21354 ac_save_IFS=$IFS
21355 IFS=:
21356 set x $ac_tag
21357 IFS=$ac_save_IFS
21358 shift
21359 ac_file=$1
21360 shift
21361
21362 case $ac_mode in
21363 :L) ac_source=$1;;
21364 :[FH])
21365 ac_file_inputs=
21366 for ac_f
21367 do
21368 case $ac_f in
21369 -) ac_f="$ac_tmp/stdin";;
21370 *) # Look for the file first in the build tree, then in the source tree
21371 # (if the path is not absolute). The absolute path cannot be DOS-style,
21372 # because $ac_f cannot contain ':'.
21373 test -f "$ac_f" ||
21374 case $ac_f in
21375 [\\/$]*) false;;
21376 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21377 esac ||
21378 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21379 esac
21380 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21381 as_fn_append ac_file_inputs " '$ac_f'"
21382 done
21383
21384 # Let's still pretend it is 'configure' which instantiates (i.e., don't
21385 # use $as_me), people would be surprised to read:
21386 # /* config.h. Generated by config.status. */
21387 configure_input='Generated from '`
21388 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21389 `' by configure.'
21390 if test x"$ac_file" != x-; then
21391 configure_input="$ac_file. $configure_input"
21392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21393 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21394 fi
21395 # Neutralize special characters interpreted by sed in replacement strings.
21396 case $configure_input in #(
21397 *\&* | *\|* | *\\* )
21398 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21399 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21400 *) ac_sed_conf_input=$configure_input;;
21401 esac
21402
21403 case $ac_tag in
21404 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21406 esac
21407 ;;
21408 esac
21409
21410 ac_dir=`$as_dirname -- "$ac_file" ||
21411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21412 X"$ac_file" : 'X\(//\)[^/]' \| \
21413 X"$ac_file" : 'X\(//\)$' \| \
21414 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21415 printf "%s\n" X"$ac_file" |
21416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21417 s//\1/
21418 q
21419 }
21420 /^X\(\/\/\)[^/].*/{
21421 s//\1/
21422 q
21423 }
21424 /^X\(\/\/\)$/{
21425 s//\1/
21426 q
21427 }
21428 /^X\(\/\).*/{
21429 s//\1/
21430 q
21431 }
21432 s/.*/./; q'`
21433 as_dir="$ac_dir"; as_fn_mkdir_p
21434 ac_builddir=.
21435
21436 case "$ac_dir" in
21437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21438 *)
21439 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21440 # A ".." for each directory in $ac_dir_suffix.
21441 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21442 case $ac_top_builddir_sub in
21443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21445 esac ;;
21446 esac
21447 ac_abs_top_builddir=$ac_pwd
21448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21449 # for backward compatibility:
21450 ac_top_builddir=$ac_top_build_prefix
21451
21452 case $srcdir in
21453 .) # We are building in place.
21454 ac_srcdir=.
21455 ac_top_srcdir=$ac_top_builddir_sub
21456 ac_abs_top_srcdir=$ac_pwd ;;
21457 [\\/]* | ?:[\\/]* ) # Absolute name.
21458 ac_srcdir=$srcdir$ac_dir_suffix;
21459 ac_top_srcdir=$srcdir
21460 ac_abs_top_srcdir=$srcdir ;;
21461 *) # Relative name.
21462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21463 ac_top_srcdir=$ac_top_build_prefix$srcdir
21464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21465 esac
21466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21467
21468
21469 case $ac_mode in
21470 :F)
21471 #
21472 # CONFIG_FILE
21473 #
21474
21475 case $INSTALL in
21476 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21477 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21478 esac
21479 ac_MKDIR_P=$MKDIR_P
21480 case $MKDIR_P in
21481 [\\/$]* | ?:[\\/]* ) ;;
21482 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21483 esac
21484 _ACEOF
21485
21486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21487 # If the template does not know about datarootdir, expand it.
21488 # FIXME: This hack should be removed a few years after 2.60.
21489 ac_datarootdir_hack=; ac_datarootdir_seen=
21490 ac_sed_dataroot='
21491 /datarootdir/ {
21492 p
21493 q
21494 }
21495 /@datadir@/p
21496 /@docdir@/p
21497 /@infodir@/p
21498 /@localedir@/p
21499 /@mandir@/p'
21500 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21501 *datarootdir*) ac_datarootdir_seen=yes;;
21502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21504 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21505 _ACEOF
21506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21507 ac_datarootdir_hack='
21508 s&@datadir@&$datadir&g
21509 s&@docdir@&$docdir&g
21510 s&@infodir@&$infodir&g
21511 s&@localedir@&$localedir&g
21512 s&@mandir@&$mandir&g
21513 s&\\\${datarootdir}&$datarootdir&g' ;;
21514 esac
21515 _ACEOF
21516
21517 # Neutralize VPATH when '$srcdir' = '.'.
21518 # Shell code in configure.ac might set extrasub.
21519 # FIXME: do we really want to maintain this feature?
21520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21521 ac_sed_extra="$ac_vpsub
21522 $extrasub
21523 _ACEOF
21524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21525 :t
21526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21527 s|@configure_input@|$ac_sed_conf_input|;t t
21528 s&@top_builddir@&$ac_top_builddir_sub&;t t
21529 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21530 s&@srcdir@&$ac_srcdir&;t t
21531 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21532 s&@top_srcdir@&$ac_top_srcdir&;t t
21533 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21534 s&@builddir@&$ac_builddir&;t t
21535 s&@abs_builddir@&$ac_abs_builddir&;t t
21536 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21537 s&@INSTALL@&$ac_INSTALL&;t t
21538 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21539 $ac_datarootdir_hack
21540 "
21541 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21542 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21543
21544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21545 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21546 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21547 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21549 which seems to be undefined. Please make sure it is defined" >&5
21550 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21551 which seems to be undefined. Please make sure it is defined" >&2;}
21552
21553 rm -f "$ac_tmp/stdin"
21554 case $ac_file in
21555 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21556 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21557 esac \
21558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21559 ;;
21560 :H)
21561 #
21562 # CONFIG_HEADER
21563 #
21564 if test x"$ac_file" != x-; then
21565 {
21566 printf "%s\n" "/* $configure_input */" >&1 \
21567 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21568 } >"$ac_tmp/config.h" \
21569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21570 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21572 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21573 else
21574 rm -f "$ac_file"
21575 mv "$ac_tmp/config.h" "$ac_file" \
21576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21577 fi
21578 else
21579 printf "%s\n" "/* $configure_input */" >&1 \
21580 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21581 || as_fn_error $? "could not create -" "$LINENO" 5
21582 fi
21583 # Compute "$ac_file"'s index in $config_headers.
21584 _am_arg="$ac_file"
21585 _am_stamp_count=1
21586 for _am_header in $config_headers :; do
21587 case $_am_header in
21588 $_am_arg | $_am_arg:* )
21589 break ;;
21590 * )
21591 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21592 esac
21593 done
21594 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21595 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21596 X"$_am_arg" : 'X\(//\)[^/]' \| \
21597 X"$_am_arg" : 'X\(//\)$' \| \
21598 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21599 printf "%s\n" X"$_am_arg" |
21600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21601 s//\1/
21602 q
21603 }
21604 /^X\(\/\/\)[^/].*/{
21605 s//\1/
21606 q
21607 }
21608 /^X\(\/\/\)$/{
21609 s//\1/
21610 q
21611 }
21612 /^X\(\/\).*/{
21613 s//\1/
21614 q
21615 }
21616 s/.*/./; q'`/stamp-h$_am_stamp_count
21617 ;;
21618
21619 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21620 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21621 ;;
21622 esac
21623
21624
21625 case $ac_file$ac_mode in
21626 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21627 # Older Autoconf quotes --file arguments for eval, but not when files
21628 # are listed without --file. Let's play safe and only enable the eval
21629 # if we detect the quoting.
21630 # TODO: see whether this extra hack can be removed once we start
21631 # requiring Autoconf 2.70 or later.
21632 case $CONFIG_FILES in #(
21633 *\'*) :
21634 eval set x "$CONFIG_FILES" ;; #(
21635 *) :
21636 set x $CONFIG_FILES ;; #(
21637 *) :
21638 ;;
21639 esac
21640 shift
21641 # Used to flag and report bootstrapping failures.
21642 am_rc=0
21643 for am_mf
21644 do
21645 # Strip MF so we end up with the name of the file.
21646 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21647 # Check whether this is an Automake generated Makefile which includes
21648 # dependency-tracking related rules and includes.
21649 # Grep'ing the whole file directly is not great: AIX grep has a line
21650 # limit of 2048, but all sed's we know have understand at least 4000.
21651 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21652 || continue
21653 am_dirpart=`$as_dirname -- "$am_mf" ||
21654 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21655 X"$am_mf" : 'X\(//\)[^/]' \| \
21656 X"$am_mf" : 'X\(//\)$' \| \
21657 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21658 printf "%s\n" X"$am_mf" |
21659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21660 s//\1/
21661 q
21662 }
21663 /^X\(\/\/\)[^/].*/{
21664 s//\1/
21665 q
21666 }
21667 /^X\(\/\/\)$/{
21668 s//\1/
21669 q
21670 }
21671 /^X\(\/\).*/{
21672 s//\1/
21673 q
21674 }
21675 s/.*/./; q'`
21676 am_filepart=`$as_basename -- "$am_mf" ||
21677 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21678 X"$am_mf" : 'X\(//\)$' \| \
21679 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21680 printf "%s\n" X/"$am_mf" |
21681 sed '/^.*\/\([^/][^/]*\)\/*$/{
21682 s//\1/
21683 q
21684 }
21685 /^X\/\(\/\/\)$/{
21686 s//\1/
21687 q
21688 }
21689 /^X\/\(\/\).*/{
21690 s//\1/
21691 q
21692 }
21693 s/.*/./; q'`
21694 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21695 && sed -e '/# am--include-marker/d' "$am_filepart" \
21696 | $MAKE -f - am--depfiles" >&5
21697 (cd "$am_dirpart" \
21698 && sed -e '/# am--include-marker/d' "$am_filepart" \
21699 | $MAKE -f - am--depfiles) >&5 2>&5
21700 ac_status=$?
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } || am_rc=$?
21703 done
21704 if test $am_rc -ne 0; then
21705 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21706 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21707 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21708 for automatic dependency tracking. If GNU make was not used, consider
21709 re-running the configure script with MAKE=\"gmake\" (or whatever is
21710 necessary). You can also try re-running configure with the
21711 '--disable-dependency-tracking' option to at least be able to build
21712 the package (albeit without support for automatic dependency tracking).
21713 See 'config.log' for more details" "$LINENO" 5; }
21714 fi
21715 { am_dirpart=; unset am_dirpart;}
21716 { am_filepart=; unset am_filepart;}
21717 { am_mf=; unset am_mf;}
21718 { am_rc=; unset am_rc;}
21719 rm -f conftest-deps.mk
21720 }
21721 ;;
21722 "libtool":C)
21723
21724 # See if we are running on zsh, and set the options that allow our
21725 # commands through without removal of \ escapes.
21726 if test -n "${ZSH_VERSION+set}"; then
21727 setopt NO_GLOB_SUBST
21728 fi
21729
21730 cfgfile=${ofile}T
21731 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21732 $RM "$cfgfile"
21733
21734 cat <<_LT_EOF >> "$cfgfile"
21735 #! $SHELL
21736 # Generated automatically by $as_me ($PACKAGE) $VERSION
21737 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21738
21739 # Provide generalized library-building support services.
21740 # Written by Gordon Matzigkeit, 1996
21741
21742 # Copyright (C) 2024 Free Software Foundation, Inc.
21743 # This is free software; see the source for copying conditions. There is NO
21744 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21745
21746 # GNU Libtool is free software; you can redistribute it and/or modify
21747 # it under the terms of the GNU General Public License as published by
21748 # the Free Software Foundation; either version 2 of the License, or
21749 # (at your option) any later version.
21750 #
21751 # As a special exception to the GNU General Public License, if you
21752 # distribute this file as part of a program or library that is built
21753 # using GNU Libtool, you may include this file under the same
21754 # distribution terms that you use for the rest of that program.
21755 #
21756 # GNU Libtool is distributed in the hope that it will be useful, but
21757 # WITHOUT ANY WARRANTY; without even the implied warranty of
21758 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21759 # GNU General Public License for more details.
21760 #
21761 # You should have received a copy of the GNU General Public License
21762 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21763
21764
21765 # The names of the tagged configurations supported by this script.
21766 available_tags=''
21767
21768 # Configured defaults for sys_lib_dlsearch_path munging.
21769 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21770
21771 # ### BEGIN LIBTOOL CONFIG
21772
21773 # Which release of libtool.m4 was used?
21774 macro_version=$macro_version
21775 macro_revision=$macro_revision
21776
21777 # Whether or not to build static libraries.
21778 build_old_libs=$enable_static
21779
21780 # Whether or not to build shared libraries.
21781 build_libtool_libs=$enable_shared
21782
21783 # What type of objects to build.
21784 pic_mode=$pic_mode
21785
21786 # Whether or not to optimize for fast installation.
21787 fast_install=$enable_fast_install
21788
21789 # Shared archive member basename,for filename based shared library versioning on AIX.
21790 shared_archive_member_spec=$shared_archive_member_spec
21791
21792 # Shell to use when invoking shell scripts.
21793 SHELL=$lt_SHELL
21794
21795 # An echo program that protects backslashes.
21796 ECHO=$lt_ECHO
21797
21798 # The PATH separator for the build system.
21799 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21800
21801 # The host system.
21802 host_alias=$host_alias
21803 host=$host
21804 host_os=$host_os
21805
21806 # The build system.
21807 build_alias=$build_alias
21808 build=$build
21809 build_os=$build_os
21810
21811 # A sed program that does not truncate output.
21812 SED=$lt_SED
21813
21814 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21815 Xsed="\$SED -e 1s/^X//"
21816
21817 # A grep program that handles long lines.
21818 GREP=$lt_GREP
21819
21820 # An ERE matcher.
21821 EGREP=$lt_EGREP
21822
21823 # A literal string matcher.
21824 FGREP=$lt_FGREP
21825
21826 # A BSD- or MS-compatible name lister.
21827 NM=$lt_NM
21828
21829 # Whether we need soft or hard links.
21830 LN_S=$lt_LN_S
21831
21832 # What is the maximum length of a command?
21833 max_cmd_len=$max_cmd_len
21834
21835 # Object file suffix (normally "o").
21836 objext=$ac_objext
21837
21838 # Executable file suffix (normally "").
21839 exeext=$exeext
21840
21841 # whether the shell understands "unset".
21842 lt_unset=$lt_unset
21843
21844 # turn spaces into newlines.
21845 SP2NL=$lt_lt_SP2NL
21846
21847 # turn newlines into spaces.
21848 NL2SP=$lt_lt_NL2SP
21849
21850 # convert \$build file names to \$host format.
21851 to_host_file_cmd=$lt_cv_to_host_file_cmd
21852
21853 # convert \$build files to toolchain format.
21854 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21855
21856 # A file(cmd) program that detects file types.
21857 FILECMD=$lt_FILECMD
21858
21859 # An object symbol dumper.
21860 OBJDUMP=$lt_OBJDUMP
21861
21862 # Method to check whether dependent libraries are shared objects.
21863 deplibs_check_method=$lt_deplibs_check_method
21864
21865 # Command to use when deplibs_check_method = "file_magic".
21866 file_magic_cmd=$lt_file_magic_cmd
21867
21868 # How to find potential files when deplibs_check_method = "file_magic".
21869 file_magic_glob=$lt_file_magic_glob
21870
21871 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21872 want_nocaseglob=$lt_want_nocaseglob
21873
21874 # DLL creation program.
21875 DLLTOOL=$lt_DLLTOOL
21876
21877 # Command to associate shared and link libraries.
21878 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21879
21880 # The archiver.
21881 AR=$lt_AR
21882
21883 # Flags to create an archive (by configure).
21884 lt_ar_flags=$lt_ar_flags
21885
21886 # Flags to create an archive.
21887 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21888
21889 # How to feed a file listing to the archiver.
21890 archiver_list_spec=$lt_archiver_list_spec
21891
21892 # A symbol stripping program.
21893 STRIP=$lt_STRIP
21894
21895 # Commands used to install an old-style archive.
21896 RANLIB=$lt_RANLIB
21897 old_postinstall_cmds=$lt_old_postinstall_cmds
21898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21899
21900 # Whether to use a lock for old archive extraction.
21901 lock_old_archive_extraction=$lock_old_archive_extraction
21902
21903 # A C compiler.
21904 LTCC=$lt_CC
21905
21906 # LTCC compiler flags.
21907 LTCFLAGS=$lt_CFLAGS
21908
21909 # Take the output of nm and produce a listing of raw symbols and C names.
21910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21911
21912 # Transform the output of nm in a proper C declaration.
21913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21914
21915 # Transform the output of nm into a list of symbols to manually relocate.
21916 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21917
21918 # Transform the output of nm in a C name address pair.
21919 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21920
21921 # Transform the output of nm in a C name address pair when lib prefix is needed.
21922 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21923
21924 # The name lister interface.
21925 nm_interface=$lt_lt_cv_nm_interface
21926
21927 # Specify filename containing input files for \$NM.
21928 nm_file_list_spec=$lt_nm_file_list_spec
21929
21930 # The root where to search for dependent libraries,and where our libraries should be installed.
21931 lt_sysroot=$lt_sysroot
21932
21933 # Command to truncate a binary pipe.
21934 lt_truncate_bin=$lt_lt_cv_truncate_bin
21935
21936 # The name of the directory that contains temporary libtool files.
21937 objdir=$objdir
21938
21939 # Used to examine libraries when file_magic_cmd begins with "file".
21940 MAGIC_CMD=$MAGIC_CMD
21941
21942 # Must we lock files when doing compilation?
21943 need_locks=$lt_need_locks
21944
21945 # Manifest tool.
21946 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21947
21948 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21949 DSYMUTIL=$lt_DSYMUTIL
21950
21951 # Tool to change global to local symbols on Mac OS X.
21952 NMEDIT=$lt_NMEDIT
21953
21954 # Tool to manipulate fat objects and archives on Mac OS X.
21955 LIPO=$lt_LIPO
21956
21957 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21958 OTOOL=$lt_OTOOL
21959
21960 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21961 OTOOL64=$lt_OTOOL64
21962
21963 # Old archive suffix (normally "a").
21964 libext=$libext
21965
21966 # Shared library suffix (normally ".so").
21967 shrext_cmds=$lt_shrext_cmds
21968
21969 # The commands to extract the exported symbol list from a shared archive.
21970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21971
21972 # Variables whose values should be saved in libtool wrapper scripts and
21973 # restored at link time.
21974 variables_saved_for_relink=$lt_variables_saved_for_relink
21975
21976 # Do we need the "lib" prefix for modules?
21977 need_lib_prefix=$need_lib_prefix
21978
21979 # Do we need a version for libraries?
21980 need_version=$need_version
21981
21982 # Library versioning type.
21983 version_type=$version_type
21984
21985 # Shared library runtime path variable.
21986 runpath_var=$runpath_var
21987
21988 # Shared library path variable.
21989 shlibpath_var=$shlibpath_var
21990
21991 # Is shlibpath searched before the hard-coded library search path?
21992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21993
21994 # Format of library name prefix.
21995 libname_spec=$lt_libname_spec
21996
21997 # List of archive names. First name is the real one, the rest are links.
21998 # The last name is the one that the linker finds with -lNAME
21999 library_names_spec=$lt_library_names_spec
22000
22001 # The coded name of the library, if different from the real name.
22002 soname_spec=$lt_soname_spec
22003
22004 # Permission mode override for installation of shared libraries.
22005 install_override_mode=$lt_install_override_mode
22006
22007 # Command to use after installation of a shared archive.
22008 postinstall_cmds=$lt_postinstall_cmds
22009
22010 # Command to use after uninstallation of a shared archive.
22011 postuninstall_cmds=$lt_postuninstall_cmds
22012
22013 # Commands used to finish a libtool library installation in a directory.
22014 finish_cmds=$lt_finish_cmds
22015
22016 # As "finish_cmds", except a single script fragment to be evaled but
22017 # not shown.
22018 finish_eval=$lt_finish_eval
22019
22020 # Whether we should hardcode library paths into libraries.
22021 hardcode_into_libs=$hardcode_into_libs
22022
22023 # Compile-time system search path for libraries.
22024 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22025
22026 # Detected run-time system search path for libraries.
22027 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22028
22029 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22030 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22031
22032 # Whether dlopen is supported.
22033 dlopen_support=$enable_dlopen
22034
22035 # Whether dlopen of programs is supported.
22036 dlopen_self=$enable_dlopen_self
22037
22038 # Whether dlopen of statically linked programs is supported.
22039 dlopen_self_static=$enable_dlopen_self_static
22040
22041 # Commands to strip libraries.
22042 old_striplib=$lt_old_striplib
22043 striplib=$lt_striplib
22044
22045
22046 # The linker used to build libraries.
22047 LD=$lt_LD
22048
22049 # How to create reloadable object files.
22050 reload_flag=$lt_reload_flag
22051 reload_cmds=$lt_reload_cmds
22052
22053 # Commands used to build an old-style archive.
22054 old_archive_cmds=$lt_old_archive_cmds
22055
22056 # A language specific compiler.
22057 CC=$lt_compiler
22058
22059 # Is the compiler the GNU compiler?
22060 with_gcc=$GCC
22061
22062 # Compiler flag to turn off builtin functions.
22063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22064
22065 # Additional compiler flags for building library objects.
22066 pic_flag=$lt_lt_prog_compiler_pic
22067
22068 # How to pass a linker flag through the compiler.
22069 wl=$lt_lt_prog_compiler_wl
22070
22071 # Compiler flag to prevent dynamic linking.
22072 link_static_flag=$lt_lt_prog_compiler_static
22073
22074 # Does compiler simultaneously support -c and -o options?
22075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22076
22077 # Whether or not to add -lc for building shared libraries.
22078 build_libtool_need_lc=$archive_cmds_need_lc
22079
22080 # Whether or not to disallow shared libs when runtime libs are static.
22081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22082
22083 # Compiler flag to allow reflexive dlopens.
22084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22085
22086 # Compiler flag to generate shared objects directly from archives.
22087 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22088
22089 # Whether the compiler copes with passing no objects directly.
22090 compiler_needs_object=$lt_compiler_needs_object
22091
22092 # Create an old-style archive from a shared archive.
22093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22094
22095 # Create a temporary old-style archive to link instead of a shared archive.
22096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22097
22098 # Commands used to build a shared archive.
22099 archive_cmds=$lt_archive_cmds
22100 archive_expsym_cmds=$lt_archive_expsym_cmds
22101
22102 # Commands used to build a loadable module if different from building
22103 # a shared archive.
22104 module_cmds=$lt_module_cmds
22105 module_expsym_cmds=$lt_module_expsym_cmds
22106
22107 # Whether we are building with GNU ld or not.
22108 with_gnu_ld=$lt_with_gnu_ld
22109
22110 # Flag that allows shared libraries with undefined symbols to be built.
22111 allow_undefined_flag=$lt_allow_undefined_flag
22112
22113 # Flag that enforces no undefined symbols.
22114 no_undefined_flag=$lt_no_undefined_flag
22115
22116 # Flag to hardcode \$libdir into a binary during linking.
22117 # This must work even if \$libdir does not exist
22118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22119
22120 # Whether we need a single "-rpath" flag with a separated argument.
22121 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22122
22123 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22124 # DIR into the resulting binary.
22125 hardcode_direct=$hardcode_direct
22126
22127 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22128 # DIR into the resulting binary and the resulting library dependency is
22129 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22130 # library is relocated.
22131 hardcode_direct_absolute=$hardcode_direct_absolute
22132
22133 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22134 # into the resulting binary.
22135 hardcode_minus_L=$hardcode_minus_L
22136
22137 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22138 # into the resulting binary.
22139 hardcode_shlibpath_var=$hardcode_shlibpath_var
22140
22141 # Set to "yes" if building a shared library automatically hardcodes DIR
22142 # into the library and all subsequent libraries and executables linked
22143 # against it.
22144 hardcode_automatic=$hardcode_automatic
22145
22146 # Set to yes if linker adds runtime paths of dependent libraries
22147 # to runtime path list.
22148 inherit_rpath=$inherit_rpath
22149
22150 # Whether libtool must link a program against all its dependency libraries.
22151 link_all_deplibs=$link_all_deplibs
22152
22153 # Set to "yes" if exported symbols are required.
22154 always_export_symbols=$always_export_symbols
22155
22156 # The commands to list exported symbols.
22157 export_symbols_cmds=$lt_export_symbols_cmds
22158
22159 # Symbols that should not be listed in the preloaded symbols.
22160 exclude_expsyms=$lt_exclude_expsyms
22161
22162 # Symbols that must always be exported.
22163 include_expsyms=$lt_include_expsyms
22164
22165 # Commands necessary for linking programs (against libraries) with templates.
22166 prelink_cmds=$lt_prelink_cmds
22167
22168 # Commands necessary for finishing linking programs.
22169 postlink_cmds=$lt_postlink_cmds
22170
22171 # Specify filename containing input files.
22172 file_list_spec=$lt_file_list_spec
22173
22174 # How to hardcode a shared library path into an executable.
22175 hardcode_action=$hardcode_action
22176
22177 # ### END LIBTOOL CONFIG
22178
22179 _LT_EOF
22180
22181 cat <<'_LT_EOF' >> "$cfgfile"
22182
22183 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22184
22185 # func_munge_path_list VARIABLE PATH
22186 # -----------------------------------
22187 # VARIABLE is name of variable containing _space_ separated list of
22188 # directories to be munged by the contents of PATH, which is string
22189 # having a format:
22190 # "DIR[:DIR]:"
22191 # string "DIR[ DIR]" will be prepended to VARIABLE
22192 # ":DIR[:DIR]"
22193 # string "DIR[ DIR]" will be appended to VARIABLE
22194 # "DIRP[:DIRP]::[DIRA:]DIRA"
22195 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22196 # "DIRA[ DIRA]" will be appended to VARIABLE
22197 # "DIR[:DIR]"
22198 # VARIABLE will be replaced by "DIR[ DIR]"
22199 func_munge_path_list ()
22200 {
22201 case x$2 in
22202 x)
22203 ;;
22204 *:)
22205 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22206 ;;
22207 x:*)
22208 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22209 ;;
22210 *::*)
22211 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22212 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22213 ;;
22214 *)
22215 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22216 ;;
22217 esac
22218 }
22219
22220
22221 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22222 func_cc_basename ()
22223 {
22224 for cc_temp in $*""; do
22225 case $cc_temp in
22226 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22227 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22228 \-*) ;;
22229 *) break;;
22230 esac
22231 done
22232 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22233 }
22234
22235
22236 # ### END FUNCTIONS SHARED WITH CONFIGURE
22237
22238 _LT_EOF
22239
22240 case $host_os in
22241 aix3*)
22242 cat <<\_LT_EOF >> "$cfgfile"
22243 # AIX sometimes has problems with the GCC collect2 program. For some
22244 # reason, if we set the COLLECT_NAMES environment variable, the problems
22245 # vanish in a puff of smoke.
22246 if test set != "${COLLECT_NAMES+set}"; then
22247 COLLECT_NAMES=
22248 export COLLECT_NAMES
22249 fi
22250 _LT_EOF
22251 ;;
22252 esac
22253
22254
22255
22256 ltmain=$ac_aux_dir/ltmain.sh
22257
22258
22259 # We use sed instead of cat because bash on DJGPP gets confused if
22260 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22261 # text mode, it properly converts lines to CR/LF. This bash problem
22262 # is reportedly fixed, but why not run on old versions too?
22263 $SED '$q' "$ltmain" >> "$cfgfile" \
22264 || (rm -f "$cfgfile"; exit 1)
22265
22266 mv -f "$cfgfile" "$ofile" ||
22267 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22268 chmod +x "$ofile"
22269
22270 ;;
22271 "po-directories":C)
22272 for ac_file in $CONFIG_FILES; do
22273 # Support "outfile[:infile[:infile...]]"
22274 case "$ac_file" in
22275 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22276 esac
22277 # PO directories have a Makefile.in generated from Makefile.in.in.
22278 case "$ac_file" in */Makefile.in)
22279 # Adjust a relative srcdir.
22280 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22281 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22282 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22283 # In autoconf-2.13 it is called $ac_given_srcdir.
22284 # In autoconf-2.50 it is called $srcdir.
22285 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22286 case "$ac_given_srcdir" in
22287 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22288 /*) top_srcdir="$ac_given_srcdir" ;;
22289 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22290 esac
22291 # Treat a directory as a PO directory if and only if it has a
22292 # POTFILES.in file. This allows packages to have multiple PO
22293 # directories under different names or in different locations.
22294 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22295 rm -f "$ac_dir/POTFILES"
22296 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22297 gt_tab=`printf '\t'`
22298 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22299 POMAKEFILEDEPS="POTFILES.in"
22300 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22301 # on $ac_dir but don't depend on user-specified configuration
22302 # parameters.
22303 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22304 # The LINGUAS file contains the set of available languages.
22305 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22306 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22307 fi
22308 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22309 # Hide the ALL_LINGUAS assignment from automake < 1.5.
22310 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22311 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22312 else
22313 # The set of available languages was given in configure.in.
22314 # Hide the ALL_LINGUAS assignment from automake < 1.5.
22315 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22316 fi
22317 # Compute POFILES
22318 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22319 # Compute UPDATEPOFILES
22320 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22321 # Compute DUMMYPOFILES
22322 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22323 # Compute GMOFILES
22324 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22325 case "$ac_given_srcdir" in
22326 .) srcdirpre= ;;
22327 *) srcdirpre='$(srcdir)/' ;;
22328 esac
22329 POFILES=
22330 UPDATEPOFILES=
22331 DUMMYPOFILES=
22332 GMOFILES=
22333 for lang in $ALL_LINGUAS; do
22334 POFILES="$POFILES $srcdirpre$lang.po"
22335 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22336 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22337 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22338 done
22339 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22340 # environment variable.
22341 INST_LINGUAS=
22342 if test -n "$ALL_LINGUAS"; then
22343 for presentlang in $ALL_LINGUAS; do
22344 useit=no
22345 if test "%UNSET%" != "$LINGUAS"; then
22346 desiredlanguages="$LINGUAS"
22347 else
22348 desiredlanguages="$ALL_LINGUAS"
22349 fi
22350 for desiredlang in $desiredlanguages; do
22351 # Use the presentlang catalog if desiredlang is
22352 # a. equal to presentlang, or
22353 # b. a variant of presentlang (because in this case,
22354 # presentlang can be used as a fallback for messages
22355 # which are not translated in the desiredlang catalog).
22356 case "$desiredlang" in
22357 "$presentlang"*) useit=yes;;
22358 esac
22359 done
22360 if test $useit = yes; then
22361 INST_LINGUAS="$INST_LINGUAS $presentlang"
22362 fi
22363 done
22364 fi
22365 CATALOGS=
22366 if test -n "$INST_LINGUAS"; then
22367 for lang in $INST_LINGUAS; do
22368 CATALOGS="$CATALOGS $lang.gmo"
22369 done
22370 fi
22371 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22372 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"
22373 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22374 if test -f "$f"; then
22375 case "$f" in
22376 *.orig | *.bak | *~) ;;
22377 *) cat "$f" >> "$ac_dir/Makefile" ;;
22378 esac
22379 fi
22380 done
22381 fi
22382 ;;
22383 esac
22384 done ;;
22385
22386 esac
22387 done # for ac_tag
22388
22389
22390 as_fn_exit 0
22391 _ACEOF
22392 ac_clean_files=$ac_clean_files_save
22393
22394 test $ac_write_fail = 0 ||
22395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22396
22397
22398 # configure is writing to config.log, and then calls config.status.
22399 # config.status does its own redirection, appending to config.log.
22400 # Unfortunately, on DOS this fails, as config.log is still kept open
22401 # by configure, so config.status won't be able to write to it; its
22402 # output is simply discarded. So we exec the FD to /dev/null,
22403 # effectively closing config.log, so it can be properly (re)opened and
22404 # appended to by config.status. When coming back to configure, we
22405 # need to make the FD available again.
22406 if test "$no_create" != yes; then
22407 ac_cs_success=:
22408 ac_config_status_args=
22409 test "$silent" = yes &&
22410 ac_config_status_args="$ac_config_status_args --quiet"
22411 exec 5>/dev/null
22412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22413 exec 5>>config.log
22414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22415 # would make configure fail if this is the last instruction.
22416 $ac_cs_success || as_fn_exit 1
22417 fi
22418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22420 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22421 fi
22422
22423
22424 echo
22425 echo "Build Configuration:"
22426 echo
22427 echo "* Debug Support: $enable_debug"
22428 echo "* GObject Introspection support: $enable_introspection"
22429 echo
22430