Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for notification-daemon 3.20.0.
4 #
5 # Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=notification-daemon>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and https://bugzilla.gnome.org/enter_bug.cgi?product=notification-daemon
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='notification-daemon'
592 PACKAGE_TARNAME='notification-daemon'
593 PACKAGE_VERSION='3.20.0'
594 PACKAGE_STRING='notification-daemon 3.20.0'
595 PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=notification-daemon'
596 PACKAGE_URL=''
597
598 ac_unique_file="config.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 gt_needs=
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 NOTIFICATION_DAEMON_LIBS
641 NOTIFICATION_DAEMON_CFLAGS
642 PKG_CONFIG_LIBDIR
643 PKG_CONFIG_PATH
644 PKG_CONFIG
645 GETTEXT_PACKAGE
646 POSUB
647 LTLIBINTL
648 LIBINTL
649 INTLLIBS
650 LTLIBICONV
651 LIBICONV
652 INTL_MACOSX_LIBS
653 XGETTEXT_EXTRA_OPTIONS
654 MSGMERGE
655 XGETTEXT_015
656 XGETTEXT
657 GMSGFMT_015
658 MSGFMT_015
659 GMSGFMT
660 MSGFMT
661 GETTEXT_MACRO_VERSION
662 USE_NLS
663 CPP
664 LT_SYS_LIBRARY_PATH
665 OTOOL64
666 OTOOL
667 LIPO
668 NMEDIT
669 DSYMUTIL
670 MANIFEST_TOOL
671 RANLIB
672 ac_ct_AR
673 AR
674 DLLTOOL
675 OBJDUMP
676 LN_S
677 NM
678 ac_ct_DUMPBIN
679 DUMPBIN
680 LD
681 FGREP
682 EGREP
683 GREP
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 LIBTOOL
693 MAINT
694 MAINTAINER_MODE_FALSE
695 MAINTAINER_MODE_TRUE
696 AM_BACKSLASH
697 AM_DEFAULT_VERBOSITY
698 AM_DEFAULT_V
699 AM_V
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__quote
708 am__include
709 DEPDIR
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 WARN_SCANNERFLAGS
734 WARN_LDFLAGS
735 WARN_CFLAGS
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 SED
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 runstatedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_debug
787 enable_compile_warnings
788 enable_Werror
789 enable_dependency_tracking
790 enable_silent_rules
791 enable_maintainer_mode
792 enable_shared
793 enable_static
794 with_pic
795 enable_fast_install
796 with_aix_soname
797 with_gnu_ld
798 with_sysroot
799 enable_libtool_lock
800 enable_nls
801 enable_rpath
802 with_libiconv_prefix
803 with_libintl_prefix
804 '
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 LIBS
812 CPPFLAGS
813 LT_SYS_LIBRARY_PATH
814 CPP
815 PKG_CONFIG
816 PKG_CONFIG_PATH
817 PKG_CONFIG_LIBDIR
818 NOTIFICATION_DAEMON_CFLAGS
819 NOTIFICATION_DAEMON_LIBS'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 runstatedir='${localstatedir}/run'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
881
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
887
888 # Accept the important Cygnus configure options, so we can diagnose typos.
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -runstatedir | --runstatedir | --runstatedi | --runstated \
1112 | --runstate | --runstat | --runsta | --runst | --runs \
1113 | --run | --ru | --r)
1114 ac_prev=runstatedir ;;
1115 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117 | --run=* | --ru=* | --r=*)
1118 runstatedir=$ac_optarg ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir runstatedir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures notification-daemon 3.20.0 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root
1420 [DATAROOTDIR/doc/notification-daemon]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of notification-daemon 3.20.0:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-debug=[yes/info/profile/no]
1451 compile with debugging
1452 --enable-compile-warnings=[no/yes/error]
1453 Enable compiler warnings and errors
1454 --disable-Werror Unconditionally make all compiler warnings non-fatal
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-silent-rules less verbose build output (undo: "make V=1")
1460 --disable-silent-rules verbose build output (undo: "make V=0")
1461 --disable-maintainer-mode
1462 disable make rules and dependencies not useful (and
1463 sometimes confusing) to the casual installer
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-static[=PKGS] build static libraries [default=yes]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --disable-libtool-lock avoid locking (might break parallel builds)
1469 --disable-nls do not use Native Language Support
1470 --disable-rpath do not hardcode runtime library paths
1471
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --with-aix-soname=aix|svr4|both
1478 shared library versioning (aka "SONAME") variant to
1479 provide on AIX, [default=aix].
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1482 compiler's sysroot if not specified).
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1485 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1486 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1487 --without-libintl-prefix don't search for libintl in includedir and libdir
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 LT_SYS_LIBRARY_PATH
1498 User-defined run-time library search path.
1499 CPP C preprocessor
1500 PKG_CONFIG path to pkg-config utility
1501 PKG_CONFIG_PATH
1502 directories to add to pkg-config's search path
1503 PKG_CONFIG_LIBDIR
1504 path overriding pkg-config's built-in search path
1505 NOTIFICATION_DAEMON_CFLAGS
1506 C compiler flags for NOTIFICATION_DAEMON, overriding pkg-config
1507 NOTIFICATION_DAEMON_LIBS
1508 linker flags for NOTIFICATION_DAEMON, overriding pkg-config
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=notification-daemon>.
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 notification-daemon configure 3.20.0
1577 generated by GNU Autoconf 2.69
1578
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_link LINENO
1629 # -----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_link ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext conftest$ac_exeext
1635 if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
1655 test -x conftest$ac_exeext
1656 }; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663 fi
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_link
1673
1674 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists and can be compiled using the include files in
1677 # INCLUDES, setting the cache variable VAR accordingly.
1678 ac_fn_c_check_header_compile ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684 $as_echo_n "(cached) " >&6
1685 else
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 $4
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 eval "$3=yes"
1693 else
1694 eval "$3=no"
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 fi
1698 eval ac_res=\$$3
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702
1703 } # ac_fn_c_check_header_compile
1704
1705 # ac_fn_c_try_cpp LINENO
1706 # ----------------------
1707 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_cpp ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_cpp conftest.$ac_ext"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1724 fi
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } > conftest.i && {
1727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 }; then :
1730 ac_retval=0
1731 else
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=1
1736 fi
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_cpp
1741
1742 # ac_fn_c_try_run LINENO
1743 # ----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745 # that executables *can* be run.
1746 ac_fn_c_try_run ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_link"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760 { { case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_try") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; }; }; then :
1770 ac_retval=0
1771 else
1772 $as_echo "$as_me: program exited with status $ac_status" >&5
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=$ac_status
1777 fi
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1781
1782 } # ac_fn_c_try_run
1783
1784 # ac_fn_c_check_func LINENO FUNC VAR
1785 # ----------------------------------
1786 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1787 ac_fn_c_check_func ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1794 else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1799 #define $2 innocuous_$2
1800
1801 /* System header to define __stub macros and hopefully few prototypes,
1802 which can conflict with char $2 (); below.
1803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1804 <limits.h> exists even on freestanding compilers. */
1805
1806 #ifdef __STDC__
1807 # include <limits.h>
1808 #else
1809 # include <assert.h>
1810 #endif
1811
1812 #undef $2
1813
1814 /* Override any GCC internal prototype to avoid an error.
1815 Use char because int might match the return type of a GCC
1816 builtin and then its argument prototype would still apply. */
1817 #ifdef __cplusplus
1818 extern "C"
1819 #endif
1820 char $2 ();
1821 /* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */
1824 #if defined __stub_$2 || defined __stub___$2
1825 choke me
1826 #endif
1827
1828 int
1829 main ()
1830 {
1831 return $2 ();
1832 ;
1833 return 0;
1834 }
1835 _ACEOF
1836 if ac_fn_c_try_link "$LINENO"; then :
1837 eval "$3=yes"
1838 else
1839 eval "$3=no"
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext \
1842 conftest$ac_exeext conftest.$ac_ext
1843 fi
1844 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849 } # ac_fn_c_check_func
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1853
1854 It was created by notification-daemon $as_me 3.20.0, which was
1855 generated by GNU Autoconf 2.69. Invocation command line was
1856
1857 $ $0 $@
1858
1859 _ACEOF
1860 exec 5>>config.log
1861 {
1862 cat <<_ASUNAME
1863 ## --------- ##
1864 ## Platform. ##
1865 ## --------- ##
1866
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1875
1876 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1877 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1880 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1881 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1882 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1883
1884 _ASUNAME
1885
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 $as_echo "PATH: $as_dir"
1892 done
1893 IFS=$as_save_IFS
1894
1895 } >&5
1896
1897 cat >&5 <<_ACEOF
1898
1899
1900 ## ----------- ##
1901 ## Core tests. ##
1902 ## ----------- ##
1903
1904 _ACEOF
1905
1906
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_configure_args=
1913 ac_configure_args0=
1914 ac_configure_args1=
1915 ac_must_keep_next=false
1916 for ac_pass in 1 2
1917 do
1918 for ac_arg
1919 do
1920 case $ac_arg in
1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1924 continue ;;
1925 *\'*)
1926 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 esac
1928 case $ac_pass in
1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1930 2)
1931 as_fn_append ac_configure_args1 " '$ac_arg'"
1932 if test $ac_must_keep_next = true; then
1933 ac_must_keep_next=false # Got value, back to normal.
1934 else
1935 case $ac_arg in
1936 *=* | --config-cache | -C | -disable-* | --disable-* \
1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939 | -with-* | --with-* | -without-* | --without-* | --x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942 esac
1943 ;;
1944 -* ) ac_must_keep_next=true ;;
1945 esac
1946 fi
1947 as_fn_append ac_configure_args " '$ac_arg'"
1948 ;;
1949 esac
1950 done
1951 done
1952 { ac_configure_args0=; unset ac_configure_args0;}
1953 { ac_configure_args1=; unset ac_configure_args1;}
1954
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log. We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961 # Save into config.log some information that might help in debugging.
1962 {
1963 echo
1964
1965 $as_echo "## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##"
1968 echo
1969 # The following way of writing the cache mishandles newlines in values,
1970 (
1971 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1972 eval ac_val=\$$ac_var
1973 case $ac_val in #(
1974 *${as_nl}*)
1975 case $ac_var in #(
1976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1978 esac
1979 case $ac_var in #(
1980 _ | IFS | as_nl) ;; #(
1981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1982 *) { eval $ac_var=; unset $ac_var;} ;;
1983 esac ;;
1984 esac
1985 done
1986 (set) 2>&1 |
1987 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988 *${as_nl}ac_space=\ *)
1989 sed -n \
1990 "s/'\''/'\''\\\\'\'''\''/g;
1991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992 ;; #(
1993 *)
1994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995 ;;
1996 esac |
1997 sort
1998 )
1999 echo
2000
2001 $as_echo "## ----------------- ##
2002 ## Output variables. ##
2003 ## ----------------- ##"
2004 echo
2005 for ac_var in $ac_subst_vars
2006 do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in
2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 esac
2011 $as_echo "$ac_var='\''$ac_val'\''"
2012 done | sort
2013 echo
2014
2015 if test -n "$ac_subst_files"; then
2016 $as_echo "## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##"
2019 echo
2020 for ac_var in $ac_subst_files
2021 do
2022 eval ac_val=\$$ac_var
2023 case $ac_val in
2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 esac
2026 $as_echo "$ac_var='\''$ac_val'\''"
2027 done | sort
2028 echo
2029 fi
2030
2031 if test -s confdefs.h; then
2032 $as_echo "## ----------- ##
2033 ## confdefs.h. ##
2034 ## ----------- ##"
2035 echo
2036 cat confdefs.h
2037 echo
2038 fi
2039 test "$ac_signal" != 0 &&
2040 $as_echo "$as_me: caught signal $ac_signal"
2041 $as_echo "$as_me: exit $exit_status"
2042 } >&5
2043 rm -f core *.core core.conftest.* &&
2044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045 exit $exit_status
2046 ' 0
2047 for ac_signal in 1 2 13 15; do
2048 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2049 done
2050 ac_signal=0
2051
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2054
2055 $as_echo "/* confdefs.h */" > confdefs.h
2056
2057 # Predefined preprocessor variables.
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_NAME "$PACKAGE_NAME"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065 _ACEOF
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 _ACEOF
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_STRING "$PACKAGE_STRING"
2073 _ACEOF
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2077 _ACEOF
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_URL "$PACKAGE_URL"
2081 _ACEOF
2082
2083
2084 # Let the site file select an alternate cache file if it wants to.
2085 # Prefer an explicitly selected file to automatically selected ones.
2086 ac_site_file1=NONE
2087 ac_site_file2=NONE
2088 if test -n "$CONFIG_SITE"; then
2089 # We do not want a PATH search for config.site.
2090 case $CONFIG_SITE in #((
2091 -*) ac_site_file1=./$CONFIG_SITE;;
2092 */*) ac_site_file1=$CONFIG_SITE;;
2093 *) ac_site_file1=./$CONFIG_SITE;;
2094 esac
2095 elif test "x$prefix" != xNONE; then
2096 ac_site_file1=$prefix/share/config.site
2097 ac_site_file2=$prefix/etc/config.site
2098 else
2099 ac_site_file1=$ac_default_prefix/share/config.site
2100 ac_site_file2=$ac_default_prefix/etc/config.site
2101 fi
2102 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2103 do
2104 test "x$ac_site_file" = xNONE && continue
2105 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108 sed 's/^/| /' "$ac_site_file" >&5
2109 . "$ac_site_file" \
2110 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2112 as_fn_error $? "failed to load site script $ac_site_file
2113 See \`config.log' for more details" "$LINENO" 5; }
2114 fi
2115 done
2116
2117 if test -r "$cache_file"; then
2118 # Some versions of bash will fail to source /dev/null (special files
2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 $as_echo "$as_me: loading cache $cache_file" >&6;}
2123 case $cache_file in
2124 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125 *) . "./$cache_file";;
2126 esac
2127 fi
2128 else
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 $as_echo "$as_me: creating cache $cache_file" >&6;}
2131 >$cache_file
2132 fi
2133
2134 gt_needs="$gt_needs "
2135 # Check that the precious variables saved in the cache have kept the same
2136 # value.
2137 ac_cache_corrupted=false
2138 for ac_var in $ac_precious_vars; do
2139 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2140 eval ac_new_set=\$ac_env_${ac_var}_set
2141 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2142 eval ac_new_val=\$ac_env_${ac_var}_value
2143 case $ac_old_set,$ac_new_set in
2144 set,)
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2146 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2147 ac_cache_corrupted=: ;;
2148 ,set)
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2150 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2151 ac_cache_corrupted=: ;;
2152 ,);;
2153 *)
2154 if test "x$ac_old_val" != "x$ac_new_val"; then
2155 # differences in whitespace do not lead to failure.
2156 ac_old_val_w=`echo x $ac_old_val`
2157 ac_new_val_w=`echo x $ac_new_val`
2158 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2160 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2161 ac_cache_corrupted=:
2162 else
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2164 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2165 eval $ac_var=\$ac_old_val
2166 fi
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2168 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2170 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2171 fi;;
2172 esac
2173 # Pass precious variables to config.status.
2174 if test "$ac_new_set" = set; then
2175 case $ac_new_val in
2176 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 *) ac_arg=$ac_var=$ac_new_val ;;
2178 esac
2179 case " $ac_configure_args " in
2180 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2181 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2182 esac
2183 fi
2184 done
2185 if $ac_cache_corrupted; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2189 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2190 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2191 fi
2192 ## -------------------- ##
2193 ## Main body of script. ##
2194 ## -------------------- ##
2195
2196 ac_ext=c
2197 ac_cpp='$CPP $CPPFLAGS'
2198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201
2202
2203 ac_config_headers="$ac_config_headers config.h"
2204
2205
2206
2207 ac_aux_dir=
2208 for ac_dir in build-aux "$srcdir"/build-aux; do
2209 if test -f "$ac_dir/install-sh"; then
2210 ac_aux_dir=$ac_dir
2211 ac_install_sh="$ac_aux_dir/install-sh -c"
2212 break
2213 elif test -f "$ac_dir/install.sh"; then
2214 ac_aux_dir=$ac_dir
2215 ac_install_sh="$ac_aux_dir/install.sh -c"
2216 break
2217 elif test -f "$ac_dir/shtool"; then
2218 ac_aux_dir=$ac_dir
2219 ac_install_sh="$ac_aux_dir/shtool install -c"
2220 break
2221 fi
2222 done
2223 if test -z "$ac_aux_dir"; then
2224 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2225 fi
2226
2227 # These three variables are undocumented and unsupported,
2228 # and are intended to be withdrawn in a future Autoconf release.
2229 # They can cause serious problems if a builder's source tree is in a directory
2230 # whose full name contains unusual characters.
2231 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2232 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2233 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2234
2235
2236
2237
2238
2239
2240
2241
2242 # $is_release = (.git directory does not exist)
2243 if test -d .git; then :
2244 ax_is_release=no
2245 else
2246 ax_is_release=yes
2247 fi
2248
2249
2250
2251
2252
2253
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
2255 $as_echo_n "checking whether to enable debugging... " >&6; }
2256
2257 ax_enable_debug_default=yes
2258 ax_enable_debug_is_release=$ax_is_release
2259
2260 # If this is a release, override the default.
2261 if test "$ax_enable_debug_is_release" = "yes"; then :
2262 ax_enable_debug_default="no"
2263 fi
2264
2265
2266
2267
2268 # Check whether --enable-debug was given.
2269 if test "${enable_debug+set}" = set; then :
2270 enableval=$enable_debug;
2271 else
2272 enable_debug=$ax_enable_debug_default
2273 fi
2274
2275
2276 # empty mean debug yes
2277 if test "x$enable_debug" = "x"; then :
2278 enable_debug="yes"
2279 fi
2280
2281 # case of debug
2282 case $enable_debug in #(
2283 yes) :
2284
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2286 $as_echo "yes" >&6; }
2287 CFLAGS="${CFLAGS} -g -O0"
2288 CXXFLAGS="${CXXFLAGS} -g -O0"
2289 FFLAGS="${FFLAGS} -g -O0"
2290 FCFLAGS="${FCFLAGS} -g -O0"
2291 OBJCFLAGS="${OBJCFLAGS} -g -O0"
2292 ;; #(
2293 info) :
2294
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: info" >&5
2296 $as_echo "info" >&6; }
2297 CFLAGS="${CFLAGS} -g"
2298 CXXFLAGS="${CXXFLAGS} -g"
2299 FFLAGS="${FFLAGS} -g"
2300 FCFLAGS="${FCFLAGS} -g"
2301 OBJCFLAGS="${OBJCFLAGS} -g"
2302 ;; #(
2303 profile) :
2304
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: profile" >&5
2306 $as_echo "profile" >&6; }
2307 CFLAGS="${CFLAGS} -g -pg"
2308 CXXFLAGS="${CXXFLAGS} -g -pg"
2309 FFLAGS="${FFLAGS} -g -pg"
2310 FCFLAGS="${FCFLAGS} -g -pg"
2311 OBJCFLAGS="${OBJCFLAGS} -g -pg"
2312 LDFLAGS="${LDFLAGS} -pg"
2313 ;; #(
2314 *) :
2315
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2317 $as_echo "no" >&6; }
2318 if test "x${CFLAGS+set}" != "xset"; then :
2319 CFLAGS=""
2320 fi
2321 if test "x${CXXFLAGS+set}" != "xset"; then :
2322 CXXFLAGS=""
2323 fi
2324 if test "x${FFLAGS+set}" != "xset"; then :
2325 FFLAGS=""
2326 fi
2327 if test "x${FCFLAGS+set}" != "xset"; then :
2328 FCFLAGS=""
2329 fi
2330 if test "x${OBJCFLAGS+set}" != "xset"; then :
2331 OBJCFLAGS=""
2332 fi
2333 ;;
2334 esac
2335
2336 if test "x$enable_debug" = "xyes"; then :
2337
2338 else
2339
2340 $as_echo "#define NDEBUG /**/" >>confdefs.h
2341
2342 fi
2343 ax_enable_debug=$enable_debug
2344
2345
2346
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2348 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2349 if ${ac_cv_path_SED+:} false; then :
2350 $as_echo_n "(cached) " >&6
2351 else
2352 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2353 for ac_i in 1 2 3 4 5 6 7; do
2354 ac_script="$ac_script$as_nl$ac_script"
2355 done
2356 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2357 { ac_script=; unset ac_script;}
2358 if test -z "$SED"; then
2359 ac_path_SED_found=false
2360 # Loop through the user's path and test for each of PROGNAME-LIST
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2363 do
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 for ac_prog in sed gsed; do
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2369 as_fn_executable_p "$ac_path_SED" || continue
2370 # Check for GNU ac_path_SED and select it if it is found.
2371 # Check for GNU $ac_path_SED
2372 case `"$ac_path_SED" --version 2>&1` in
2373 *GNU*)
2374 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2375 *)
2376 ac_count=0
2377 $as_echo_n 0123456789 >"conftest.in"
2378 while :
2379 do
2380 cat "conftest.in" "conftest.in" >"conftest.tmp"
2381 mv "conftest.tmp" "conftest.in"
2382 cp "conftest.in" "conftest.nl"
2383 $as_echo '' >> "conftest.nl"
2384 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2386 as_fn_arith $ac_count + 1 && ac_count=$as_val
2387 if test $ac_count -gt ${ac_path_SED_max-0}; then
2388 # Best one so far, save it but keep looking for a better one
2389 ac_cv_path_SED="$ac_path_SED"
2390 ac_path_SED_max=$ac_count
2391 fi
2392 # 10*(2^10) chars as input seems more than enough
2393 test $ac_count -gt 10 && break
2394 done
2395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2396 esac
2397
2398 $ac_path_SED_found && break 3
2399 done
2400 done
2401 done
2402 IFS=$as_save_IFS
2403 if test -z "$ac_cv_path_SED"; then
2404 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2405 fi
2406 else
2407 ac_cv_path_SED=$SED
2408 fi
2409
2410 fi
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2412 $as_echo "$ac_cv_path_SED" >&6; }
2413 SED="$ac_cv_path_SED"
2414 rm -f conftest.sed
2415
2416 # Expand $ac_aux_dir to an absolute path.
2417 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2418
2419 ac_ext=c
2420 ac_cpp='$CPP $CPPFLAGS'
2421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424 if test -n "$ac_tool_prefix"; then
2425 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2426 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if ${ac_cv_prog_CC+:} false; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$CC" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2445 fi
2446 done
2447 done
2448 IFS=$as_save_IFS
2449
2450 fi
2451 fi
2452 CC=$ac_cv_prog_CC
2453 if test -n "$CC"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2455 $as_echo "$CC" >&6; }
2456 else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2459 fi
2460
2461
2462 fi
2463 if test -z "$ac_cv_prog_CC"; then
2464 ac_ct_CC=$CC
2465 # Extract the first word of "gcc", so it can be a program name with args.
2466 set dummy gcc; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 if test -n "$ac_ct_CC"; then
2473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2482 ac_cv_prog_ac_ct_CC="gcc"
2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2485 fi
2486 done
2487 done
2488 IFS=$as_save_IFS
2489
2490 fi
2491 fi
2492 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2493 if test -n "$ac_ct_CC"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2495 $as_echo "$ac_ct_CC" >&6; }
2496 else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2499 fi
2500
2501 if test "x$ac_ct_CC" = x; then
2502 CC=""
2503 else
2504 case $cross_compiling:$ac_tool_warned in
2505 yes:)
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508 ac_tool_warned=yes ;;
2509 esac
2510 CC=$ac_ct_CC
2511 fi
2512 else
2513 CC="$ac_cv_prog_CC"
2514 fi
2515
2516 if test -z "$CC"; then
2517 if test -n "$ac_tool_prefix"; then
2518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2519 set dummy ${ac_tool_prefix}cc; ac_word=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if ${ac_cv_prog_CC+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2535 ac_cv_prog_CC="${ac_tool_prefix}cc"
2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 CC=$ac_cv_prog_CC
2546 if test -n "$CC"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2548 $as_echo "$CC" >&6; }
2549 else
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 $as_echo "no" >&6; }
2552 fi
2553
2554
2555 fi
2556 fi
2557 if test -z "$CC"; then
2558 # Extract the first word of "cc", so it can be a program name with args.
2559 set dummy cc; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_CC+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 ac_prog_rejected=no
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2571 do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2577 ac_prog_rejected=yes
2578 continue
2579 fi
2580 ac_cv_prog_CC="cc"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 if test $ac_prog_rejected = yes; then
2589 # We found a bogon in the path, so make sure we never use it.
2590 set dummy $ac_cv_prog_CC
2591 shift
2592 if test $# != 0; then
2593 # We chose a different compiler from the bogus one.
2594 # However, it has the same basename, so the bogon will be chosen
2595 # first if we set CC to just the basename; use the full file name.
2596 shift
2597 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2598 fi
2599 fi
2600 fi
2601 fi
2602 CC=$ac_cv_prog_CC
2603 if test -n "$CC"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2605 $as_echo "$CC" >&6; }
2606 else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2609 fi
2610
2611
2612 fi
2613 if test -z "$CC"; then
2614 if test -n "$ac_tool_prefix"; then
2615 for ac_prog in cl.exe
2616 do
2617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if ${ac_cv_prog_CC+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 CC=$ac_cv_prog_CC
2645 if test -n "$CC"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2647 $as_echo "$CC" >&6; }
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653
2654 test -n "$CC" && break
2655 done
2656 fi
2657 if test -z "$CC"; then
2658 ac_ct_CC=$CC
2659 for ac_prog in cl.exe
2660 do
2661 # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy $ac_prog; ac_word=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$ac_ct_CC"; then
2669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_ac_ct_CC="$ac_prog"
2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682 done
2683 done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2689 if test -n "$ac_ct_CC"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2691 $as_echo "$ac_ct_CC" >&6; }
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2695 fi
2696
2697
2698 test -n "$ac_ct_CC" && break
2699 done
2700
2701 if test "x$ac_ct_CC" = x; then
2702 CC=""
2703 else
2704 case $cross_compiling:$ac_tool_warned in
2705 yes:)
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2708 ac_tool_warned=yes ;;
2709 esac
2710 CC=$ac_ct_CC
2711 fi
2712 fi
2713
2714 fi
2715
2716
2717 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719 as_fn_error $? "no acceptable C compiler found in \$PATH
2720 See \`config.log' for more details" "$LINENO" 5; }
2721
2722 # Provide some information about the compiler.
2723 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2724 set X $ac_compile
2725 ac_compiler=$2
2726 for ac_option in --version -v -V -qversion; do
2727 { { ac_try="$ac_compiler $ac_option >&5"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2733 $as_echo "$ac_try_echo"; } >&5
2734 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2735 ac_status=$?
2736 if test -s conftest.err; then
2737 sed '10a\
2738 ... rest of stderr output deleted ...
2739 10q' conftest.err >conftest.er1
2740 cat conftest.er1 >&5
2741 fi
2742 rm -f conftest.er1 conftest.err
2743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2744 test $ac_status = 0; }
2745 done
2746
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2749
2750 int
2751 main ()
2752 {
2753
2754 ;
2755 return 0;
2756 }
2757 _ACEOF
2758 ac_clean_files_save=$ac_clean_files
2759 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2760 # Try to create an executable without -o first, disregard a.out.
2761 # It will help us diagnose broken compilers, and finding out an intuition
2762 # of exeext.
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2764 $as_echo_n "checking whether the C compiler works... " >&6; }
2765 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2766
2767 # The possible output files:
2768 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2769
2770 ac_rmfiles=
2771 for ac_file in $ac_files
2772 do
2773 case $ac_file in
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776 esac
2777 done
2778 rm -f $ac_rmfiles
2779
2780 if { { ac_try="$ac_link_default"
2781 case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784 esac
2785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2786 $as_echo "$ac_try_echo"; } >&5
2787 (eval "$ac_link_default") 2>&5
2788 ac_status=$?
2789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2790 test $ac_status = 0; }; then :
2791 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2792 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2793 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2794 # so that the user can short-circuit this test for compilers unknown to
2795 # Autoconf.
2796 for ac_file in $ac_files ''
2797 do
2798 test -f "$ac_file" || continue
2799 case $ac_file in
2800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2801 ;;
2802 [ab].out )
2803 # We found the default executable, but exeext='' is most
2804 # certainly right.
2805 break;;
2806 *.* )
2807 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2808 then :; else
2809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 fi
2811 # We set ac_cv_exeext here because the later test for it is not
2812 # safe: cross compilers may not add the suffix if given an `-o'
2813 # argument, so we may need to know it at that point already.
2814 # Even if this section looks crufty: it has the advantage of
2815 # actually working.
2816 break;;
2817 * )
2818 break;;
2819 esac
2820 done
2821 test "$ac_cv_exeext" = no && ac_cv_exeext=
2822
2823 else
2824 ac_file=''
2825 fi
2826 if test -z "$ac_file"; then :
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2829 $as_echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2834 as_fn_error 77 "C compiler cannot create executables
2835 See \`config.log' for more details" "$LINENO" 5; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838 $as_echo "yes" >&6; }
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2841 $as_echo_n "checking for C compiler default output file name... " >&6; }
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2843 $as_echo "$ac_file" >&6; }
2844 ac_exeext=$ac_cv_exeext
2845
2846 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2847 ac_clean_files=$ac_clean_files_save
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2849 $as_echo_n "checking for suffix of executables... " >&6; }
2850 if { { ac_try="$ac_link"
2851 case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854 esac
2855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856 $as_echo "$ac_try_echo"; } >&5
2857 (eval "$ac_link") 2>&5
2858 ac_status=$?
2859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860 test $ac_status = 0; }; then :
2861 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2862 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2863 # work properly (i.e., refer to `conftest.exe'), while it won't with
2864 # `rm'.
2865 for ac_file in conftest.exe conftest conftest.*; do
2866 test -f "$ac_file" || continue
2867 case $ac_file in
2868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2869 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2870 break;;
2871 * ) break;;
2872 esac
2873 done
2874 else
2875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2877 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2878 See \`config.log' for more details" "$LINENO" 5; }
2879 fi
2880 rm -f conftest conftest$ac_cv_exeext
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2882 $as_echo "$ac_cv_exeext" >&6; }
2883
2884 rm -f conftest.$ac_ext
2885 EXEEXT=$ac_cv_exeext
2886 ac_exeext=$EXEEXT
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888 /* end confdefs.h. */
2889 #include <stdio.h>
2890 int
2891 main ()
2892 {
2893 FILE *f = fopen ("conftest.out", "w");
2894 return ferror (f) || fclose (f) != 0;
2895
2896 ;
2897 return 0;
2898 }
2899 _ACEOF
2900 ac_clean_files="$ac_clean_files conftest.out"
2901 # Check that the compiler produces executables we can run. If not, either
2902 # the compiler is broken, or we cross compile.
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2904 $as_echo_n "checking whether we are cross compiling... " >&6; }
2905 if test "$cross_compiling" != yes; then
2906 { { ac_try="$ac_link"
2907 case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910 esac
2911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2912 $as_echo "$ac_try_echo"; } >&5
2913 (eval "$ac_link") 2>&5
2914 ac_status=$?
2915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2916 test $ac_status = 0; }
2917 if { ac_try='./conftest$ac_cv_exeext'
2918 { { case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2921 esac
2922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2923 $as_echo "$ac_try_echo"; } >&5
2924 (eval "$ac_try") 2>&5
2925 ac_status=$?
2926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2927 test $ac_status = 0; }; }; then
2928 cross_compiling=no
2929 else
2930 if test "$cross_compiling" = maybe; then
2931 cross_compiling=yes
2932 else
2933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2935 as_fn_error $? "cannot run C compiled programs.
2936 If you meant to cross compile, use \`--host'.
2937 See \`config.log' for more details" "$LINENO" 5; }
2938 fi
2939 fi
2940 fi
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2942 $as_echo "$cross_compiling" >&6; }
2943
2944 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2945 ac_clean_files=$ac_clean_files_save
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2947 $as_echo_n "checking for suffix of object files... " >&6; }
2948 if ${ac_cv_objext+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2953
2954 int
2955 main ()
2956 {
2957
2958 ;
2959 return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.o conftest.obj
2963 if { { ac_try="$ac_compile"
2964 case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_compile") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 for ac_file in conftest.o conftest.obj conftest.*; do
2975 test -f "$ac_file" || continue;
2976 case $ac_file in
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2979 break;;
2980 esac
2981 done
2982 else
2983 $as_echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 as_fn_error $? "cannot compute suffix of object files: cannot compile
2989 See \`config.log' for more details" "$LINENO" 5; }
2990 fi
2991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2992 fi
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2994 $as_echo "$ac_cv_objext" >&6; }
2995 OBJEXT=$ac_cv_objext
2996 ac_objext=$OBJEXT
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2999 if ${ac_cv_c_compiler_gnu+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3004
3005 int
3006 main ()
3007 {
3008 #ifndef __GNUC__
3009 choke me
3010 #endif
3011
3012 ;
3013 return 0;
3014 }
3015 _ACEOF
3016 if ac_fn_c_try_compile "$LINENO"; then :
3017 ac_compiler_gnu=yes
3018 else
3019 ac_compiler_gnu=no
3020 fi
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3023
3024 fi
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3027 if test $ac_compiler_gnu = yes; then
3028 GCC=yes
3029 else
3030 GCC=
3031 fi
3032 ac_test_CFLAGS=${CFLAGS+set}
3033 ac_save_CFLAGS=$CFLAGS
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3036 if ${ac_cv_prog_cc_g+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 ac_save_c_werror_flag=$ac_c_werror_flag
3040 ac_c_werror_flag=yes
3041 ac_cv_prog_cc_g=no
3042 CFLAGS="-g"
3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044 /* end confdefs.h. */
3045
3046 int
3047 main ()
3048 {
3049
3050 ;
3051 return 0;
3052 }
3053 _ACEOF
3054 if ac_fn_c_try_compile "$LINENO"; then :
3055 ac_cv_prog_cc_g=yes
3056 else
3057 CFLAGS=""
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3060
3061 int
3062 main ()
3063 {
3064
3065 ;
3066 return 0;
3067 }
3068 _ACEOF
3069 if ac_fn_c_try_compile "$LINENO"; then :
3070
3071 else
3072 ac_c_werror_flag=$ac_save_c_werror_flag
3073 CFLAGS="-g"
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h. */
3076
3077 int
3078 main ()
3079 {
3080
3081 ;
3082 return 0;
3083 }
3084 _ACEOF
3085 if ac_fn_c_try_compile "$LINENO"; then :
3086 ac_cv_prog_cc_g=yes
3087 fi
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 fi
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 fi
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3094 fi
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3096 $as_echo "$ac_cv_prog_cc_g" >&6; }
3097 if test "$ac_test_CFLAGS" = set; then
3098 CFLAGS=$ac_save_CFLAGS
3099 elif test $ac_cv_prog_cc_g = yes; then
3100 if test "$GCC" = yes; then
3101 CFLAGS="-g -O2"
3102 else
3103 CFLAGS="-g"
3104 fi
3105 else
3106 if test "$GCC" = yes; then
3107 CFLAGS="-O2"
3108 else
3109 CFLAGS=
3110 fi
3111 fi
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3113 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3114 if ${ac_cv_prog_cc_c89+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 ac_cv_prog_cc_c89=no
3118 ac_save_CC=$CC
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3121 #include <stdarg.h>
3122 #include <stdio.h>
3123 struct stat;
3124 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3125 struct buf { int x; };
3126 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3127 static char *e (p, i)
3128 char **p;
3129 int i;
3130 {
3131 return p[i];
3132 }
3133 static char *f (char * (*g) (char **, int), char **p, ...)
3134 {
3135 char *s;
3136 va_list v;
3137 va_start (v,p);
3138 s = g (p, va_arg (v,int));
3139 va_end (v);
3140 return s;
3141 }
3142
3143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3144 function prototypes and stuff, but not '\xHH' hex character constants.
3145 These don't provoke an error unfortunately, instead are silently treated
3146 as 'x'. The following induces an error, until -std is added to get
3147 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3148 array size at least. It's necessary to write '\x00'==0 to get something
3149 that's true only with -std. */
3150 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3151
3152 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3153 inside strings and character constants. */
3154 #define FOO(x) 'x'
3155 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3156
3157 int test (int i, double x);
3158 struct s1 {int (*f) (int a);};
3159 struct s2 {int (*f) (double a);};
3160 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3161 int argc;
3162 char **argv;
3163 int
3164 main ()
3165 {
3166 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3167 ;
3168 return 0;
3169 }
3170 _ACEOF
3171 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3172 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3173 do
3174 CC="$ac_save_CC $ac_arg"
3175 if ac_fn_c_try_compile "$LINENO"; then :
3176 ac_cv_prog_cc_c89=$ac_arg
3177 fi
3178 rm -f core conftest.err conftest.$ac_objext
3179 test "x$ac_cv_prog_cc_c89" != "xno" && break
3180 done
3181 rm -f conftest.$ac_ext
3182 CC=$ac_save_CC
3183
3184 fi
3185 # AC_CACHE_VAL
3186 case "x$ac_cv_prog_cc_c89" in
3187 x)
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3189 $as_echo "none needed" >&6; } ;;
3190 xno)
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3192 $as_echo "unsupported" >&6; } ;;
3193 *)
3194 CC="$CC $ac_cv_prog_cc_c89"
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3196 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3197 esac
3198 if test "x$ac_cv_prog_cc_c89" != xno; then :
3199
3200 fi
3201
3202 ac_ext=c
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3214 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3215 if ${am_cv_prog_cc_c_o+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3220
3221 int
3222 main ()
3223 {
3224
3225 ;
3226 return 0;
3227 }
3228 _ACEOF
3229 # Make sure it works both with $CC and with simple cc.
3230 # Following AC_PROG_CC_C_O, we do the test twice because some
3231 # compilers refuse to overwrite an existing .o file with -o,
3232 # though they will create one.
3233 am_cv_prog_cc_c_o=yes
3234 for am_i in 1 2; do
3235 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3236 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } \
3240 && test -f conftest2.$ac_objext; then
3241 : OK
3242 else
3243 am_cv_prog_cc_c_o=no
3244 break
3245 fi
3246 done
3247 rm -f core conftest*
3248 unset am_i
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3251 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3252 if test "$am_cv_prog_cc_c_o" != yes; then
3253 # Losing compiler, so override with the script.
3254 # FIXME: It is wrong to rewrite CC.
3255 # But if we don't then we get into trouble of one sort or another.
3256 # A longer-term fix would be to have automake use am__CC in this case,
3257 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3258 CC="$am_aux_dir/compile $CC"
3259 fi
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265
3266
3267
3268
3269 # C support is enabled by default.
3270
3271
3272 # Only enable C++ support if AC_PROG_CXX is called. The redefinition of
3273 # AC_PROG_CXX is so that a fatal error is emitted if this macro is called
3274 # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be
3275 # checked.
3276
3277
3278
3279
3280 # Default value for IS-RELEASE is $ax_is_release
3281 ax_compiler_flags_is_release=$ax_is_release
3282
3283 # Check whether --enable-compile-warnings was given.
3284 if test "${enable_compile_warnings+set}" = set; then :
3285 enableval=$enable_compile_warnings;
3286 else
3287 if test "$ax_compiler_flags_is_release" = "yes"; then :
3288 enable_compile_warnings="yes"
3289 else
3290 enable_compile_warnings="error"
3291 fi
3292 fi
3293
3294 # Check whether --enable-Werror was given.
3295 if test "${enable_Werror+set}" = set; then :
3296 enableval=$enable_Werror;
3297 else
3298 enable_Werror=maybe
3299 fi
3300
3301
3302 # Return the user's chosen warning level
3303 if test "$enable_Werror" = "no" -a \
3304 "$enable_compile_warnings" = "error"; then :
3305
3306 enable_compile_warnings="yes"
3307
3308 fi
3309
3310 ax_enable_compile_warnings=$enable_compile_warnings
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321 # Variable names
3322
3323
3324 ac_ext=c
3325 ac_cpp='$CPP $CPPFLAGS'
3326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329
3330
3331 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
3332 # flags, otherwise they are always appended to the warn_cflags variable, and
3333 # Clang warns on them for every compilation unit.
3334 # If this is passed to GCC, it will explode, so the flag must be enabled
3335 # conditionally.
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
3337 $as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
3338 if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341
3342 ax_check_save_flags=$CFLAGS
3343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3346
3347 int
3348 main ()
3349 {
3350
3351 ;
3352 return 0;
3353 }
3354 _ACEOF
3355 if ac_fn_c_try_compile "$LINENO"; then :
3356 ax_cv_check_cflags___Werror_unknown_warning_option=yes
3357 else
3358 ax_cv_check_cflags___Werror_unknown_warning_option=no
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 CFLAGS=$ax_check_save_flags
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
3364 $as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
3365 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
3366
3367 ax_compiler_flags_test="-Werror=unknown-warning-option"
3368
3369 else
3370
3371 ax_compiler_flags_test=""
3372
3373 fi
3374
3375
3376 # Base flags
3377
3378
3379
3380
3381 for flag in -fno-strict-aliasing ; do
3382 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
3384 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
3385 if eval \${$as_CACHEVAR+:} false; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388
3389 ax_check_save_flags=$CFLAGS
3390 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3393
3394 int
3395 main ()
3396 {
3397
3398 ;
3399 return 0;
3400 }
3401 _ACEOF
3402 if ac_fn_c_try_compile "$LINENO"; then :
3403 eval "$as_CACHEVAR=yes"
3404 else
3405 eval "$as_CACHEVAR=no"
3406 fi
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 CFLAGS=$ax_check_save_flags
3409 fi
3410 eval ac_res=\$$as_CACHEVAR
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3412 $as_echo "$ac_res" >&6; }
3413 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
3414
3415 if ${WARN_CFLAGS+:} false; then :
3416
3417 case " $WARN_CFLAGS " in #(
3418 *" $flag "*) :
3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
3420 (: WARN_CFLAGS already contains $flag) 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; } ;; #(
3424 *) :
3425
3426 as_fn_append WARN_CFLAGS " $flag"
3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
3428 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }
3432 ;;
3433 esac
3434
3435 else
3436
3437 WARN_CFLAGS=$flag
3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
3439 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }
3443
3444 fi
3445
3446 else
3447 :
3448 fi
3449
3450 done
3451
3452
3453 if test "$ax_enable_compile_warnings" != "no"; then :
3454
3455 # "yes" flags
3456
3457
3458
3459
3460 for flag in -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wformat=2 -Wold-style-definition -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wimplicit-function-declaration -Wreturn-type -Wswitch-enum -Wswitch-default ; do
3461 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
3463 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
3464 if eval \${$as_CACHEVAR+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467
3468 ax_check_save_flags=$CFLAGS
3469 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3472
3473 int
3474 main ()
3475 {
3476
3477 ;
3478 return 0;
3479 }
3480 _ACEOF
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482 eval "$as_CACHEVAR=yes"
3483 else
3484 eval "$as_CACHEVAR=no"
3485 fi
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 CFLAGS=$ax_check_save_flags
3488 fi
3489 eval ac_res=\$$as_CACHEVAR
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3491 $as_echo "$ac_res" >&6; }
3492 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
3493
3494 if ${WARN_CFLAGS+:} false; then :
3495
3496 case " $WARN_CFLAGS " in #(
3497 *" $flag "*) :
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
3499 (: WARN_CFLAGS already contains $flag) 2>&5
3500 ac_status=$?
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; } ;; #(
3503 *) :
3504
3505 as_fn_append WARN_CFLAGS " $flag"
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
3507 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }
3511 ;;
3512 esac
3513
3514 else
3515
3516 WARN_CFLAGS=$flag
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
3518 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
3519 ac_status=$?
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }
3522
3523 fi
3524
3525 else
3526 :
3527 fi
3528
3529 done
3530
3531
3532 fi
3533 if test "$ax_enable_compile_warnings" = "error"; then :
3534
3535 # "error" flags; -Werror has to be appended unconditionally because
3536 # it's not possible to test for
3537 #
3538 # suggest-attribute=format is disabled because it gives too many false
3539 # positives
3540
3541 if ${WARN_CFLAGS+:} false; then :
3542
3543 case " $WARN_CFLAGS " in #(
3544 *" -Werror "*) :
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5
3546 (: WARN_CFLAGS already contains -Werror) 2>&5
3547 ac_status=$?
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; } ;; #(
3550 *) :
3551
3552 as_fn_append WARN_CFLAGS " -Werror"
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
3554 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
3555 ac_status=$?
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }
3558 ;;
3559 esac
3560
3561 else
3562
3563 WARN_CFLAGS=-Werror
3564 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
3565 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
3566 ac_status=$?
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }
3569
3570 fi
3571
3572
3573
3574
3575
3576
3577 for flag in -Wno-suggest-attribute=format ; do
3578 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
3580 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
3581 if eval \${$as_CACHEVAR+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584
3585 ax_check_save_flags=$CFLAGS
3586 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 if ac_fn_c_try_compile "$LINENO"; then :
3599 eval "$as_CACHEVAR=yes"
3600 else
3601 eval "$as_CACHEVAR=no"
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 CFLAGS=$ax_check_save_flags
3605 fi
3606 eval ac_res=\$$as_CACHEVAR
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3608 $as_echo "$ac_res" >&6; }
3609 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
3610
3611 if ${WARN_CFLAGS+:} false; then :
3612
3613 case " $WARN_CFLAGS " in #(
3614 *" $flag "*) :
3615 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
3616 (: WARN_CFLAGS already contains $flag) 2>&5
3617 ac_status=$?
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; } ;; #(
3620 *) :
3621
3622 as_fn_append WARN_CFLAGS " $flag"
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
3624 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
3625 ac_status=$?
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }
3628 ;;
3629 esac
3630
3631 else
3632
3633 WARN_CFLAGS=$flag
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
3635 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
3636 ac_status=$?
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }
3639
3640 fi
3641
3642 else
3643 :
3644 fi
3645
3646 done
3647
3648
3649 fi
3650
3651 # In the flags below, when disabling specific flags, always add *both*
3652 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
3653 # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall,
3654 # which effectively turns that flag back on again as an error.
3655 for flag in $WARN_CFLAGS; do
3656 case $flag in #(
3657 -Wno-*=*) :
3658 ;; #(
3659 -Wno-*) :
3660
3661
3662
3663
3664
3665 for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
3666 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
3668 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
3669 if eval \${$as_CACHEVAR+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672
3673 ax_check_save_flags=$CFLAGS
3674 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3677
3678 int
3679 main ()
3680 {
3681
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 if ac_fn_c_try_compile "$LINENO"; then :
3687 eval "$as_CACHEVAR=yes"
3688 else
3689 eval "$as_CACHEVAR=no"
3690 fi
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 CFLAGS=$ax_check_save_flags
3693 fi
3694 eval ac_res=\$$as_CACHEVAR
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3696 $as_echo "$ac_res" >&6; }
3697 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
3698
3699 if ${WARN_CFLAGS+:} false; then :
3700
3701 case " $WARN_CFLAGS " in #(
3702 *" $flag "*) :
3703 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
3704 (: WARN_CFLAGS already contains $flag) 2>&5
3705 ac_status=$?
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; } ;; #(
3708 *) :
3709
3710 as_fn_append WARN_CFLAGS " $flag"
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
3712 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
3713 ac_status=$?
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3716 ;;
3717 esac
3718
3719 else
3720
3721 WARN_CFLAGS=$flag
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
3723 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
3724 ac_status=$?
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }
3727
3728 fi
3729
3730 else
3731 :
3732 fi
3733
3734 done
3735
3736 ;; #(
3737 *) :
3738 ;;
3739 esac
3740 done
3741
3742 ac_ext=c
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747
3748
3749 # Substitute the variables
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761 # Variable names
3762
3763
3764 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
3765 # flags, otherwise they are always appended to the warn_ldflags variable,
3766 # and Clang warns on them for every compilation unit.
3767 # If this is passed to GCC, it will explode, so the flag must be enabled
3768 # conditionally.
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
3770 $as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
3771 if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774
3775 ax_check_save_flags=$CFLAGS
3776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ax_cv_check_cflags___Werror_unknown_warning_option=yes
3790 else
3791 ax_cv_check_cflags___Werror_unknown_warning_option=no
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 CFLAGS=$ax_check_save_flags
3795 fi
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
3797 $as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
3798 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
3799
3800 ax_compiler_flags_test="-Werror=unknown-warning-option"
3801
3802 else
3803
3804 ax_compiler_flags_test=""
3805
3806 fi
3807
3808
3809 # Base flags
3810
3811
3812
3813
3814 for flag in -Wl,--no-as-needed ; do
3815 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
3817 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
3818 if eval \${$as_CACHEVAR+:} false; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821
3822 ax_check_save_flags=$LDFLAGS
3823 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826
3827 int
3828 main ()
3829 {
3830
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 if ac_fn_c_try_link "$LINENO"; then :
3836 eval "$as_CACHEVAR=yes"
3837 else
3838 eval "$as_CACHEVAR=no"
3839 fi
3840 rm -f core conftest.err conftest.$ac_objext \
3841 conftest$ac_exeext conftest.$ac_ext
3842 LDFLAGS=$ax_check_save_flags
3843 fi
3844 eval ac_res=\$$as_CACHEVAR
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3846 $as_echo "$ac_res" >&6; }
3847 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
3848
3849 if ${WARN_LDFLAGS+:} false; then :
3850
3851 case " $WARN_LDFLAGS " in #(
3852 *" $flag "*) :
3853 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
3854 (: WARN_LDFLAGS already contains $flag) 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; } ;; #(
3858 *) :
3859
3860 as_fn_append WARN_LDFLAGS " $flag"
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
3862 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
3863 ac_status=$?
3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865 test $ac_status = 0; }
3866 ;;
3867 esac
3868
3869 else
3870
3871 WARN_LDFLAGS=$flag
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
3873 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
3874 ac_status=$?
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }
3877
3878 fi
3879
3880 else
3881 :
3882 fi
3883
3884 done
3885
3886
3887 if test "$ax_enable_compile_warnings" != "no"; then :
3888
3889 # "yes" flags
3890
3891
3892
3893
3894 for flag in ; do
3895 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
3897 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
3898 if eval \${$as_CACHEVAR+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901
3902 ax_check_save_flags=$LDFLAGS
3903 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906
3907 int
3908 main ()
3909 {
3910
3911 ;
3912 return 0;
3913 }
3914 _ACEOF
3915 if ac_fn_c_try_link "$LINENO"; then :
3916 eval "$as_CACHEVAR=yes"
3917 else
3918 eval "$as_CACHEVAR=no"
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext \
3921 conftest$ac_exeext conftest.$ac_ext
3922 LDFLAGS=$ax_check_save_flags
3923 fi
3924 eval ac_res=\$$as_CACHEVAR
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3926 $as_echo "$ac_res" >&6; }
3927 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
3928
3929 if ${WARN_LDFLAGS+:} false; then :
3930
3931 case " $WARN_LDFLAGS " in #(
3932 *" $flag "*) :
3933 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
3934 (: WARN_LDFLAGS already contains $flag) 2>&5
3935 ac_status=$?
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; } ;; #(
3938 *) :
3939
3940 as_fn_append WARN_LDFLAGS " $flag"
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
3942 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
3943 ac_status=$?
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }
3946 ;;
3947 esac
3948
3949 else
3950
3951 WARN_LDFLAGS=$flag
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
3953 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
3954 ac_status=$?
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3957
3958 fi
3959
3960 else
3961 :
3962 fi
3963
3964 done
3965
3966
3967 fi
3968 if test "$ax_enable_compile_warnings" = "error"; then :
3969
3970 # "error" flags; -Werror has to be appended unconditionally because
3971 # it's not possible to test for
3972 #
3973 # suggest-attribute=format is disabled because it gives too many false
3974 # positives
3975
3976
3977
3978
3979 for flag in -Wl,--fatal-warnings ; do
3980 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
3982 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
3983 if eval \${$as_CACHEVAR+:} false; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986
3987 ax_check_save_flags=$LDFLAGS
3988 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991
3992 int
3993 main ()
3994 {
3995
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 if ac_fn_c_try_link "$LINENO"; then :
4001 eval "$as_CACHEVAR=yes"
4002 else
4003 eval "$as_CACHEVAR=no"
4004 fi
4005 rm -f core conftest.err conftest.$ac_objext \
4006 conftest$ac_exeext conftest.$ac_ext
4007 LDFLAGS=$ax_check_save_flags
4008 fi
4009 eval ac_res=\$$as_CACHEVAR
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4011 $as_echo "$ac_res" >&6; }
4012 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
4013
4014 if ${WARN_LDFLAGS+:} false; then :
4015
4016 case " $WARN_LDFLAGS " in #(
4017 *" $flag "*) :
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
4019 (: WARN_LDFLAGS already contains $flag) 2>&5
4020 ac_status=$?
4021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; } ;; #(
4023 *) :
4024
4025 as_fn_append WARN_LDFLAGS " $flag"
4026 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
4027 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
4028 ac_status=$?
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }
4031 ;;
4032 esac
4033
4034 else
4035
4036 WARN_LDFLAGS=$flag
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
4038 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
4039 ac_status=$?
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }
4042
4043 fi
4044
4045 else
4046 :
4047 fi
4048
4049 done
4050
4051
4052 fi
4053
4054 # Substitute the variables
4055
4056
4057
4058
4059
4060
4061 # Variable names
4062
4063
4064 # Base flags
4065
4066 if ${WARN_SCANNERFLAGS+:} false; then :
4067
4068 case " $WARN_SCANNERFLAGS " in #(
4069 *" "*) :
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5
4071 (: WARN_SCANNERFLAGS already contains ) 2>&5
4072 ac_status=$?
4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; } ;; #(
4075 *) :
4076
4077 as_fn_append WARN_SCANNERFLAGS " "
4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
4079 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
4080 ac_status=$?
4081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4082 test $ac_status = 0; }
4083 ;;
4084 esac
4085
4086 else
4087
4088 WARN_SCANNERFLAGS=
4089 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
4090 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
4091 ac_status=$?
4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }
4094
4095 fi
4096
4097
4098 if test "$ax_enable_compile_warnings" != "no"; then :
4099
4100 # "yes" flags
4101
4102 if ${WARN_SCANNERFLAGS+:} false; then :
4103
4104 case " $WARN_SCANNERFLAGS " in #(
4105 *" --warn-all "*) :
4106 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-all "; } >&5
4107 (: WARN_SCANNERFLAGS already contains --warn-all ) 2>&5
4108 ac_status=$?
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; } ;; #(
4111 *) :
4112
4113 as_fn_append WARN_SCANNERFLAGS " --warn-all "
4114 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
4115 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
4116 ac_status=$?
4117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; }
4119 ;;
4120 esac
4121
4122 else
4123
4124 WARN_SCANNERFLAGS= --warn-all
4125 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
4126 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
4127 ac_status=$?
4128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129 test $ac_status = 0; }
4130
4131 fi
4132
4133
4134 fi
4135 if test "$ax_enable_compile_warnings" = "error"; then :
4136
4137 # "error" flags
4138
4139 if ${WARN_SCANNERFLAGS+:} false; then :
4140
4141 case " $WARN_SCANNERFLAGS " in #(
4142 *" --warn-error "*) :
4143 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-error "; } >&5
4144 (: WARN_SCANNERFLAGS already contains --warn-error ) 2>&5
4145 ac_status=$?
4146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; } ;; #(
4148 *) :
4149
4150 as_fn_append WARN_SCANNERFLAGS " --warn-error "
4151 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
4152 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
4153 ac_status=$?
4154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4155 test $ac_status = 0; }
4156 ;;
4157 esac
4158
4159 else
4160
4161 WARN_SCANNERFLAGS= --warn-error
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
4163 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
4164 ac_status=$?
4165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166 test $ac_status = 0; }
4167
4168 fi
4169
4170
4171 fi
4172
4173 # Substitute the variables
4174
4175
4176
4177
4178
4179 am__api_version='1.15'
4180
4181 # Find a good install program. We prefer a C program (faster),
4182 # so one script is as good as another. But avoid the broken or
4183 # incompatible versions:
4184 # SysV /etc/install, /usr/sbin/install
4185 # SunOS /usr/etc/install
4186 # IRIX /sbin/install
4187 # AIX /bin/install
4188 # AmigaOS /C/install, which installs bootblocks on floppy discs
4189 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4190 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4191 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4192 # OS/2's system install, which has a completely different semantic
4193 # ./install, which can be erroneously created by make from ./install.sh.
4194 # Reject install programs that cannot install multiple files.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4196 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4197 if test -z "$INSTALL"; then
4198 if ${ac_cv_path_install+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 # Account for people who put trailing slashes in PATH elements.
4207 case $as_dir/ in #((
4208 ./ | .// | /[cC]/* | \
4209 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4210 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4211 /usr/ucb/* ) ;;
4212 *)
4213 # OSF1 and SCO ODT 3.0 have their own names for install.
4214 # Don't use installbsd from OSF since it installs stuff as root
4215 # by default.
4216 for ac_prog in ginstall scoinst install; do
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4219 if test $ac_prog = install &&
4220 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4221 # AIX install. It has an incompatible calling convention.
4222 :
4223 elif test $ac_prog = install &&
4224 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4225 # program-specific install script used by HP pwplus--don't use.
4226 :
4227 else
4228 rm -rf conftest.one conftest.two conftest.dir
4229 echo one > conftest.one
4230 echo two > conftest.two
4231 mkdir conftest.dir
4232 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4233 test -s conftest.one && test -s conftest.two &&
4234 test -s conftest.dir/conftest.one &&
4235 test -s conftest.dir/conftest.two
4236 then
4237 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4238 break 3
4239 fi
4240 fi
4241 fi
4242 done
4243 done
4244 ;;
4245 esac
4246
4247 done
4248 IFS=$as_save_IFS
4249
4250 rm -rf conftest.one conftest.two conftest.dir
4251
4252 fi
4253 if test "${ac_cv_path_install+set}" = set; then
4254 INSTALL=$ac_cv_path_install
4255 else
4256 # As a last resort, use the slow shell script. Don't cache a
4257 # value for INSTALL within a source directory, because that will
4258 # break other packages using the cache if that directory is
4259 # removed, or if the value is a relative name.
4260 INSTALL=$ac_install_sh
4261 fi
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4264 $as_echo "$INSTALL" >&6; }
4265
4266 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4267 # It thinks the first close brace ends the variable substitution.
4268 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4269
4270 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4271
4272 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4275 $as_echo_n "checking whether build environment is sane... " >&6; }
4276 # Reject unsafe characters in $srcdir or the absolute working directory
4277 # name. Accept space and tab only in the latter.
4278 am_lf='
4279 '
4280 case `pwd` in
4281 *[\\\"\#\$\&\'\`$am_lf]*)
4282 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4283 esac
4284 case $srcdir in
4285 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4286 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4287 esac
4288
4289 # Do 'set' in a subshell so we don't clobber the current shell's
4290 # arguments. Must try -L first in case configure is actually a
4291 # symlink; some systems play weird games with the mod time of symlinks
4292 # (eg FreeBSD returns the mod time of the symlink's containing
4293 # directory).
4294 if (
4295 am_has_slept=no
4296 for am_try in 1 2; do
4297 echo "timestamp, slept: $am_has_slept" > conftest.file
4298 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4299 if test "$*" = "X"; then
4300 # -L didn't work.
4301 set X `ls -t "$srcdir/configure" conftest.file`
4302 fi
4303 if test "$*" != "X $srcdir/configure conftest.file" \
4304 && test "$*" != "X conftest.file $srcdir/configure"; then
4305
4306 # If neither matched, then we have a broken ls. This can happen
4307 # if, for instance, CONFIG_SHELL is bash and it inherits a
4308 # broken ls alias from the environment. This has actually
4309 # happened. Such a system could not be considered "sane".
4310 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4311 alias in your environment" "$LINENO" 5
4312 fi
4313 if test "$2" = conftest.file || test $am_try -eq 2; then
4314 break
4315 fi
4316 # Just in case.
4317 sleep 1
4318 am_has_slept=yes
4319 done
4320 test "$2" = conftest.file
4321 )
4322 then
4323 # Ok.
4324 :
4325 else
4326 as_fn_error $? "newly created file is older than distributed files!
4327 Check your system clock" "$LINENO" 5
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4330 $as_echo "yes" >&6; }
4331 # If we didn't sleep, we still need to ensure time stamps of config.status and
4332 # generated files are strictly newer.
4333 am_sleep_pid=
4334 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4335 ( sleep 1 ) &
4336 am_sleep_pid=$!
4337 fi
4338
4339 rm -f conftest.file
4340
4341 test "$program_prefix" != NONE &&
4342 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4343 # Use a double $ so make ignores it.
4344 test "$program_suffix" != NONE &&
4345 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4346 # Double any \ or $.
4347 # By default was `s,x,x', remove it if useless.
4348 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4349 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4350
4351 if test x"${MISSING+set}" != xset; then
4352 case $am_aux_dir in
4353 *\ * | *\ *)
4354 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4355 *)
4356 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4357 esac
4358 fi
4359 # Use eval to expand $SHELL
4360 if eval "$MISSING --is-lightweight"; then
4361 am_missing_run="$MISSING "
4362 else
4363 am_missing_run=
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4365 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4366 fi
4367
4368 if test x"${install_sh+set}" != xset; then
4369 case $am_aux_dir in
4370 *\ * | *\ *)
4371 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4372 *)
4373 install_sh="\${SHELL} $am_aux_dir/install-sh"
4374 esac
4375 fi
4376
4377 # Installed binaries are usually stripped using 'strip' when the user
4378 # run "make install-strip". However 'strip' might not be the right
4379 # tool to use in cross-compilation environments, therefore Automake
4380 # will honor the 'STRIP' environment variable to overrule this program.
4381 if test "$cross_compiling" != no; then
4382 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4384 set dummy ${ac_tool_prefix}strip; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if ${ac_cv_prog_STRIP+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if test -n "$STRIP"; then
4391 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4403 fi
4404 done
4405 done
4406 IFS=$as_save_IFS
4407
4408 fi
4409 fi
4410 STRIP=$ac_cv_prog_STRIP
4411 if test -n "$STRIP"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4413 $as_echo "$STRIP" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417 fi
4418
4419
4420 fi
4421 if test -z "$ac_cv_prog_STRIP"; then
4422 ac_ct_STRIP=$STRIP
4423 # Extract the first word of "strip", so it can be a program name with args.
4424 set dummy strip; ac_word=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 if test -n "$ac_ct_STRIP"; then
4431 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_ac_ct_STRIP="strip"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4451 if test -n "$ac_ct_STRIP"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4453 $as_echo "$ac_ct_STRIP" >&6; }
4454 else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458
4459 if test "x$ac_ct_STRIP" = x; then
4460 STRIP=":"
4461 else
4462 case $cross_compiling:$ac_tool_warned in
4463 yes:)
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4466 ac_tool_warned=yes ;;
4467 esac
4468 STRIP=$ac_ct_STRIP
4469 fi
4470 else
4471 STRIP="$ac_cv_prog_STRIP"
4472 fi
4473
4474 fi
4475 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4478 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4479 if test -z "$MKDIR_P"; then
4480 if ${ac_cv_path_mkdir+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4485 do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_prog in mkdir gmkdir; do
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4491 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4492 'mkdir (GNU coreutils) '* | \
4493 'mkdir (coreutils) '* | \
4494 'mkdir (fileutils) '4.1*)
4495 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4496 break 3;;
4497 esac
4498 done
4499 done
4500 done
4501 IFS=$as_save_IFS
4502
4503 fi
4504
4505 test -d ./--version && rmdir ./--version
4506 if test "${ac_cv_path_mkdir+set}" = set; then
4507 MKDIR_P="$ac_cv_path_mkdir -p"
4508 else
4509 # As a last resort, use the slow shell script. Don't cache a
4510 # value for MKDIR_P within a source directory, because that will
4511 # break other packages using the cache if that directory is
4512 # removed, or if the value is a relative name.
4513 MKDIR_P="$ac_install_sh -d"
4514 fi
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4517 $as_echo "$MKDIR_P" >&6; }
4518
4519 for ac_prog in gawk mawk nawk awk
4520 do
4521 # Extract the first word of "$ac_prog", so it can be a program name with args.
4522 set dummy $ac_prog; ac_word=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if ${ac_cv_prog_AWK+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 if test -n "$AWK"; then
4529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4533 do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4538 ac_cv_prog_AWK="$ac_prog"
4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4541 fi
4542 done
4543 done
4544 IFS=$as_save_IFS
4545
4546 fi
4547 fi
4548 AWK=$ac_cv_prog_AWK
4549 if test -n "$AWK"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4551 $as_echo "$AWK" >&6; }
4552 else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4555 fi
4556
4557
4558 test -n "$AWK" && break
4559 done
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4562 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4563 set x ${MAKE-make}
4564 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4565 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 cat >conftest.make <<\_ACEOF
4569 SHELL = /bin/sh
4570 all:
4571 @echo '@@@%%%=$(MAKE)=@@@%%%'
4572 _ACEOF
4573 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4574 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4575 *@@@%%%=?*=@@@%%%*)
4576 eval ac_cv_prog_make_${ac_make}_set=yes;;
4577 *)
4578 eval ac_cv_prog_make_${ac_make}_set=no;;
4579 esac
4580 rm -f conftest.make
4581 fi
4582 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4584 $as_echo "yes" >&6; }
4585 SET_MAKE=
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 SET_MAKE="MAKE=${MAKE-make}"
4590 fi
4591
4592 rm -rf .tst 2>/dev/null
4593 mkdir .tst 2>/dev/null
4594 if test -d .tst; then
4595 am__leading_dot=.
4596 else
4597 am__leading_dot=_
4598 fi
4599 rmdir .tst 2>/dev/null
4600
4601 DEPDIR="${am__leading_dot}deps"
4602
4603 ac_config_commands="$ac_config_commands depfiles"
4604
4605
4606 am_make=${MAKE-make}
4607 cat > confinc << 'END'
4608 am__doit:
4609 @echo this is the am__doit target
4610 .PHONY: am__doit
4611 END
4612 # If we don't find an include directive, just comment out the code.
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4614 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4615 am__include="#"
4616 am__quote=
4617 _am_result=none
4618 # First try GNU make style include.
4619 echo "include confinc" > confmf
4620 # Ignore all kinds of additional output from 'make'.
4621 case `$am_make -s -f confmf 2> /dev/null` in #(
4622 *the\ am__doit\ target*)
4623 am__include=include
4624 am__quote=
4625 _am_result=GNU
4626 ;;
4627 esac
4628 # Now try BSD make style include.
4629 if test "$am__include" = "#"; then
4630 echo '.include "confinc"' > confmf
4631 case `$am_make -s -f confmf 2> /dev/null` in #(
4632 *the\ am__doit\ target*)
4633 am__include=.include
4634 am__quote="\""
4635 _am_result=BSD
4636 ;;
4637 esac
4638 fi
4639
4640
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4642 $as_echo "$_am_result" >&6; }
4643 rm -f confinc confmf
4644
4645 # Check whether --enable-dependency-tracking was given.
4646 if test "${enable_dependency_tracking+set}" = set; then :
4647 enableval=$enable_dependency_tracking;
4648 fi
4649
4650 if test "x$enable_dependency_tracking" != xno; then
4651 am_depcomp="$ac_aux_dir/depcomp"
4652 AMDEPBACKSLASH='\'
4653 am__nodep='_no'
4654 fi
4655 if test "x$enable_dependency_tracking" != xno; then
4656 AMDEP_TRUE=
4657 AMDEP_FALSE='#'
4658 else
4659 AMDEP_TRUE='#'
4660 AMDEP_FALSE=
4661 fi
4662
4663
4664 # Check whether --enable-silent-rules was given.
4665 if test "${enable_silent_rules+set}" = set; then :
4666 enableval=$enable_silent_rules;
4667 fi
4668
4669 case $enable_silent_rules in # (((
4670 yes) AM_DEFAULT_VERBOSITY=0;;
4671 no) AM_DEFAULT_VERBOSITY=1;;
4672 *) AM_DEFAULT_VERBOSITY=1;;
4673 esac
4674 am_make=${MAKE-make}
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4676 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4677 if ${am_cv_make_support_nested_variables+:} false; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if $as_echo 'TRUE=$(BAR$(V))
4681 BAR0=false
4682 BAR1=true
4683 V=1
4684 am__doit:
4685 @$(TRUE)
4686 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4687 am_cv_make_support_nested_variables=yes
4688 else
4689 am_cv_make_support_nested_variables=no
4690 fi
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4693 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4694 if test $am_cv_make_support_nested_variables = yes; then
4695 AM_V='$(V)'
4696 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4697 else
4698 AM_V=$AM_DEFAULT_VERBOSITY
4699 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4700 fi
4701 AM_BACKSLASH='\'
4702
4703 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4704 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4705 # is not polluted with repeated "-I."
4706 am__isrc=' -I$(srcdir)'
4707 # test to see if srcdir already configured
4708 if test -f $srcdir/config.status; then
4709 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4710 fi
4711 fi
4712
4713 # test whether we have cygpath
4714 if test -z "$CYGPATH_W"; then
4715 if (cygpath --version) >/dev/null 2>/dev/null; then
4716 CYGPATH_W='cygpath -w'
4717 else
4718 CYGPATH_W=echo
4719 fi
4720 fi
4721
4722
4723 # Define the identity of the package.
4724 PACKAGE='notification-daemon'
4725 VERSION='3.20.0'
4726
4727
4728 cat >>confdefs.h <<_ACEOF
4729 #define PACKAGE "$PACKAGE"
4730 _ACEOF
4731
4732
4733 cat >>confdefs.h <<_ACEOF
4734 #define VERSION "$VERSION"
4735 _ACEOF
4736
4737 # Some tools Automake needs.
4738
4739 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4740
4741
4742 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4743
4744
4745 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4746
4747
4748 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4749
4750
4751 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4752
4753 # For better backward compatibility. To be removed once Automake 1.9.x
4754 # dies out for good. For more background, see:
4755 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4756 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4757 mkdir_p='$(MKDIR_P)'
4758
4759 # We need awk for the "check" target (and possibly the TAP driver). The
4760 # system "awk" is bad on some platforms.
4761 # Always define AMTAR for backward compatibility. Yes, it's still used
4762 # in the wild :-( We should find a proper way to deprecate it ...
4763 AMTAR='$${TAR-tar}'
4764
4765
4766 # We'll loop over all known methods to create a tar archive until one works.
4767 _am_tools='gnutar plaintar pax cpio none'
4768
4769 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4770 # There is notably a 21 bits limit for the UID and the GID. In fact,
4771 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4772 # and bug#13588).
4773 am_max_uid=2097151 # 2^21 - 1
4774 am_max_gid=$am_max_uid
4775 # The $UID and $GID variables are not portable, so we need to resort
4776 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4777 # below are definitely unexpected, so allow the users to see them
4778 # (that is, avoid stderr redirection).
4779 am_uid=`id -u || echo unknown`
4780 am_gid=`id -g || echo unknown`
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4782 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4783 if test $am_uid -le $am_max_uid; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4785 $as_echo "yes" >&6; }
4786 else
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4789 _am_tools=none
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4792 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4793 if test $am_gid -le $am_max_gid; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4795 $as_echo "yes" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4799 _am_tools=none
4800 fi
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4803 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
4804
4805 # Go ahead even if we have the value already cached. We do so because we
4806 # need to set the values for the 'am__tar' and 'am__untar' variables.
4807 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4808
4809 for _am_tool in $_am_tools; do
4810 case $_am_tool in
4811 gnutar)
4812 for _am_tar in tar gnutar gtar; do
4813 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4814 ($_am_tar --version) >&5 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } && break
4818 done
4819 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4820 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4821 am__untar="$_am_tar -xf -"
4822 ;;
4823 plaintar)
4824 # Must skip GNU tar: if it does not support --format= it doesn't create
4825 # ustar tarball either.
4826 (tar --version) >/dev/null 2>&1 && continue
4827 am__tar='tar chf - "$$tardir"'
4828 am__tar_='tar chf - "$tardir"'
4829 am__untar='tar xf -'
4830 ;;
4831 pax)
4832 am__tar='pax -L -x ustar -w "$$tardir"'
4833 am__tar_='pax -L -x ustar -w "$tardir"'
4834 am__untar='pax -r'
4835 ;;
4836 cpio)
4837 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4838 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4839 am__untar='cpio -i -H ustar -d'
4840 ;;
4841 none)
4842 am__tar=false
4843 am__tar_=false
4844 am__untar=false
4845 ;;
4846 esac
4847
4848 # If the value was cached, stop now. We just wanted to have am__tar
4849 # and am__untar set.
4850 test -n "${am_cv_prog_tar_ustar}" && break
4851
4852 # tar/untar a dummy directory, and stop if the command works.
4853 rm -rf conftest.dir
4854 mkdir conftest.dir
4855 echo GrepMe > conftest.dir/file
4856 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4857 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }
4861 rm -rf conftest.dir
4862 if test -s conftest.tar; then
4863 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4864 ($am__untar <conftest.tar) >&5 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }
4868 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4869 (cat conftest.dir/file) >&5 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }
4873 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4874 fi
4875 done
4876 rm -rf conftest.dir
4877
4878 if ${am_cv_prog_tar_ustar+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 am_cv_prog_tar_ustar=$_am_tool
4882 fi
4883
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4885 $as_echo "$am_cv_prog_tar_ustar" >&6; }
4886
4887
4888
4889
4890
4891 depcc="$CC" am_compiler_list=
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4894 $as_echo_n "checking dependency style of $depcc... " >&6; }
4895 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4899 # We make a subdir and do the tests there. Otherwise we can end up
4900 # making bogus files that we don't know about and never remove. For
4901 # instance it was reported that on HP-UX the gcc test will end up
4902 # making a dummy file named 'D' -- because '-MD' means "put the output
4903 # in D".
4904 rm -rf conftest.dir
4905 mkdir conftest.dir
4906 # Copy depcomp to subdir because otherwise we won't find it if we're
4907 # using a relative directory.
4908 cp "$am_depcomp" conftest.dir
4909 cd conftest.dir
4910 # We will build objects and dependencies in a subdirectory because
4911 # it helps to detect inapplicable dependency modes. For instance
4912 # both Tru64's cc and ICC support -MD to output dependencies as a
4913 # side effect of compilation, but ICC will put the dependencies in
4914 # the current directory while Tru64 will put them in the object
4915 # directory.
4916 mkdir sub
4917
4918 am_cv_CC_dependencies_compiler_type=none
4919 if test "$am_compiler_list" = ""; then
4920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4921 fi
4922 am__universal=false
4923 case " $depcc " in #(
4924 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4925 esac
4926
4927 for depmode in $am_compiler_list; do
4928 # Setup a source with many dependencies, because some compilers
4929 # like to wrap large dependency lists on column 80 (with \), and
4930 # we should not choose a depcomp mode which is confused by this.
4931 #
4932 # We need to recreate these files for each test, as the compiler may
4933 # overwrite some of them when testing with obscure command lines.
4934 # This happens at least with the AIX C compiler.
4935 : > sub/conftest.c
4936 for i in 1 2 3 4 5 6; do
4937 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4938 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4939 # Solaris 10 /bin/sh.
4940 echo '/* dummy */' > sub/conftst$i.h
4941 done
4942 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4943
4944 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4945 # mode. It turns out that the SunPro C++ compiler does not properly
4946 # handle '-M -o', and we need to detect this. Also, some Intel
4947 # versions had trouble with output in subdirs.
4948 am__obj=sub/conftest.${OBJEXT-o}
4949 am__minus_obj="-o $am__obj"
4950 case $depmode in
4951 gcc)
4952 # This depmode causes a compiler race in universal mode.
4953 test "$am__universal" = false || continue
4954 ;;
4955 nosideeffect)
4956 # After this tag, mechanisms are not by side-effect, so they'll
4957 # only be used when explicitly requested.
4958 if test "x$enable_dependency_tracking" = xyes; then
4959 continue
4960 else
4961 break
4962 fi
4963 ;;
4964 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4965 # This compiler won't grok '-c -o', but also, the minuso test has
4966 # not run yet. These depmodes are late enough in the game, and
4967 # so weak that their functioning should not be impacted.
4968 am__obj=conftest.${OBJEXT-o}
4969 am__minus_obj=
4970 ;;
4971 none) break ;;
4972 esac
4973 if depmode=$depmode \
4974 source=sub/conftest.c object=$am__obj \
4975 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4976 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4977 >/dev/null 2>conftest.err &&
4978 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4979 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4980 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4981 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4982 # icc doesn't choke on unknown options, it will just issue warnings
4983 # or remarks (even with -Werror). So we grep stderr for any message
4984 # that says an option was ignored or not supported.
4985 # When given -MP, icc 7.0 and 7.1 complain thusly:
4986 # icc: Command line warning: ignoring option '-M'; no argument required
4987 # The diagnosis changed in icc 8.0:
4988 # icc: Command line remark: option '-MP' not supported
4989 if (grep 'ignoring option' conftest.err ||
4990 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4991 am_cv_CC_dependencies_compiler_type=$depmode
4992 break
4993 fi
4994 fi
4995 done
4996
4997 cd ..
4998 rm -rf conftest.dir
4999 else
5000 am_cv_CC_dependencies_compiler_type=none
5001 fi
5002
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5005 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5006 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5007
5008 if
5009 test "x$enable_dependency_tracking" != xno \
5010 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5011 am__fastdepCC_TRUE=
5012 am__fastdepCC_FALSE='#'
5013 else
5014 am__fastdepCC_TRUE='#'
5015 am__fastdepCC_FALSE=
5016 fi
5017
5018
5019
5020 # POSIX will say in a future version that running "rm -f" with no argument
5021 # is OK; and we want to be able to make that assumption in our Makefile
5022 # recipes. So use an aggressive probe to check that the usage we want is
5023 # actually supported "in the wild" to an acceptable degree.
5024 # See automake bug#10828.
5025 # To make any issue more visible, cause the running configure to be aborted
5026 # by default if the 'rm' program in use doesn't match our expectations; the
5027 # user can still override this though.
5028 if rm -f && rm -fr && rm -rf; then : OK; else
5029 cat >&2 <<'END'
5030 Oops!
5031
5032 Your 'rm' program seems unable to run without file operands specified
5033 on the command line, even when the '-f' option is present. This is contrary
5034 to the behaviour of most rm programs out there, and not conforming with
5035 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5036
5037 Please tell [email protected] about your system, including the value
5038 of your $PATH and any error possibly output before this message. This
5039 can help us improve future automake versions.
5040
5041 END
5042 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5043 echo 'Configuration will proceed anyway, since you have set the' >&2
5044 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5045 echo >&2
5046 else
5047 cat >&2 <<'END'
5048 Aborting the configuration process, to ensure you take notice of the issue.
5049
5050 You can download and install GNU coreutils to get an 'rm' implementation
5051 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5052
5053 If you want to complete the configuration process using your problematic
5054 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5055 to "yes", and re-run configure.
5056
5057 END
5058 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5059 fi
5060 fi
5061
5062
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5064 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5065 # Check whether --enable-maintainer-mode was given.
5066 if test "${enable_maintainer_mode+set}" = set; then :
5067 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5068 else
5069 USE_MAINTAINER_MODE=yes
5070 fi
5071
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5073 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5074 if test $USE_MAINTAINER_MODE = yes; then
5075 MAINTAINER_MODE_TRUE=
5076 MAINTAINER_MODE_FALSE='#'
5077 else
5078 MAINTAINER_MODE_TRUE='#'
5079 MAINTAINER_MODE_FALSE=
5080 fi
5081
5082 MAINT=$MAINTAINER_MODE_TRUE
5083
5084
5085 # Check whether --enable-silent-rules was given.
5086 if test "${enable_silent_rules+set}" = set; then :
5087 enableval=$enable_silent_rules;
5088 fi
5089
5090 case $enable_silent_rules in # (((
5091 yes) AM_DEFAULT_VERBOSITY=0;;
5092 no) AM_DEFAULT_VERBOSITY=1;;
5093 *) AM_DEFAULT_VERBOSITY=0;;
5094 esac
5095 am_make=${MAKE-make}
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5097 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5098 if ${am_cv_make_support_nested_variables+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if $as_echo 'TRUE=$(BAR$(V))
5102 BAR0=false
5103 BAR1=true
5104 V=1
5105 am__doit:
5106 @$(TRUE)
5107 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5108 am_cv_make_support_nested_variables=yes
5109 else
5110 am_cv_make_support_nested_variables=no
5111 fi
5112 fi
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5114 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5115 if test $am_cv_make_support_nested_variables = yes; then
5116 AM_V='$(V)'
5117 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5118 else
5119 AM_V=$AM_DEFAULT_VERBOSITY
5120 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5121 fi
5122 AM_BACKSLASH='\'
5123
5124
5125
5126 ac_ext=c
5127 ac_cpp='$CPP $CPPFLAGS'
5128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_prog_CC+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$CC"; then
5140 ac_cv_prog_CC="$CC" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157 fi
5158 fi
5159 CC=$ac_cv_prog_CC
5160 if test -n "$CC"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5162 $as_echo "$CC" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167
5168
5169 fi
5170 if test -z "$ac_cv_prog_CC"; then
5171 ac_ct_CC=$CC
5172 # Extract the first word of "gcc", so it can be a program name with args.
5173 set dummy gcc; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$ac_ct_CC"; then
5180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_ac_ct_CC="gcc"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197 fi
5198 fi
5199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5200 if test -n "$ac_ct_CC"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5202 $as_echo "$ac_ct_CC" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208 if test "x$ac_ct_CC" = x; then
5209 CC=""
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212 yes:)
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned=yes ;;
5216 esac
5217 CC=$ac_ct_CC
5218 fi
5219 else
5220 CC="$ac_cv_prog_CC"
5221 fi
5222
5223 if test -z "$CC"; then
5224 if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5226 set dummy ${ac_tool_prefix}cc; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if ${ac_cv_prog_CC+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -n "$CC"; then
5233 ac_cv_prog_CC="$CC" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_CC="${ac_tool_prefix}cc"
5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246 done
5247 done
5248 IFS=$as_save_IFS
5249
5250 fi
5251 fi
5252 CC=$ac_cv_prog_CC
5253 if test -n "$CC"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5255 $as_echo "$CC" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261
5262 fi
5263 fi
5264 if test -z "$CC"; then
5265 # Extract the first word of "cc", so it can be a program name with args.
5266 set dummy cc; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if ${ac_cv_prog_CC+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$CC"; then
5273 ac_cv_prog_CC="$CC" # Let the user override the test.
5274 else
5275 ac_prog_rejected=no
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5284 ac_prog_rejected=yes
5285 continue
5286 fi
5287 ac_cv_prog_CC="cc"
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5294
5295 if test $ac_prog_rejected = yes; then
5296 # We found a bogon in the path, so make sure we never use it.
5297 set dummy $ac_cv_prog_CC
5298 shift
5299 if test $# != 0; then
5300 # We chose a different compiler from the bogus one.
5301 # However, it has the same basename, so the bogon will be chosen
5302 # first if we set CC to just the basename; use the full file name.
5303 shift
5304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5305 fi
5306 fi
5307 fi
5308 fi
5309 CC=$ac_cv_prog_CC
5310 if test -n "$CC"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5312 $as_echo "$CC" >&6; }
5313 else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5316 fi
5317
5318
5319 fi
5320 if test -z "$CC"; then
5321 if test -n "$ac_tool_prefix"; then
5322 for ac_prog in cl.exe
5323 do
5324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_CC+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -n "$CC"; then
5332 ac_cv_prog_CC="$CC" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5348
5349 fi
5350 fi
5351 CC=$ac_cv_prog_CC
5352 if test -n "$CC"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5354 $as_echo "$CC" >&6; }
5355 else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5358 fi
5359
5360
5361 test -n "$CC" && break
5362 done
5363 fi
5364 if test -z "$CC"; then
5365 ac_ct_CC=$CC
5366 for ac_prog in cl.exe
5367 do
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 if test -n "$ac_ct_CC"; then
5376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_ac_ct_CC="$ac_prog"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5388 fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5392
5393 fi
5394 fi
5395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5396 if test -n "$ac_ct_CC"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5398 $as_echo "$ac_ct_CC" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5404
5405 test -n "$ac_ct_CC" && break
5406 done
5407
5408 if test "x$ac_ct_CC" = x; then
5409 CC=""
5410 else
5411 case $cross_compiling:$ac_tool_warned in
5412 yes:)
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5416 esac
5417 CC=$ac_ct_CC
5418 fi
5419 fi
5420
5421 fi
5422
5423
5424 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5426 as_fn_error $? "no acceptable C compiler found in \$PATH
5427 See \`config.log' for more details" "$LINENO" 5; }
5428
5429 # Provide some information about the compiler.
5430 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5431 set X $ac_compile
5432 ac_compiler=$2
5433 for ac_option in --version -v -V -qversion; do
5434 { { ac_try="$ac_compiler $ac_option >&5"
5435 case "(($ac_try" in
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5438 esac
5439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5440 $as_echo "$ac_try_echo"; } >&5
5441 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5442 ac_status=$?
5443 if test -s conftest.err; then
5444 sed '10a\
5445 ... rest of stderr output deleted ...
5446 10q' conftest.err >conftest.er1
5447 cat conftest.er1 >&5
5448 fi
5449 rm -f conftest.er1 conftest.err
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }
5452 done
5453
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5455 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5456 if ${ac_cv_c_compiler_gnu+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461
5462 int
5463 main ()
5464 {
5465 #ifndef __GNUC__
5466 choke me
5467 #endif
5468
5469 ;
5470 return 0;
5471 }
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"; then :
5474 ac_compiler_gnu=yes
5475 else
5476 ac_compiler_gnu=no
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5480
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5483 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5484 if test $ac_compiler_gnu = yes; then
5485 GCC=yes
5486 else
5487 GCC=
5488 fi
5489 ac_test_CFLAGS=${CFLAGS+set}
5490 ac_save_CFLAGS=$CFLAGS
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5492 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5493 if ${ac_cv_prog_cc_g+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 ac_save_c_werror_flag=$ac_c_werror_flag
5497 ac_c_werror_flag=yes
5498 ac_cv_prog_cc_g=no
5499 CFLAGS="-g"
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502
5503 int
5504 main ()
5505 {
5506
5507 ;
5508 return 0;
5509 }
5510 _ACEOF
5511 if ac_fn_c_try_compile "$LINENO"; then :
5512 ac_cv_prog_cc_g=yes
5513 else
5514 CFLAGS=""
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517
5518 int
5519 main ()
5520 {
5521
5522 ;
5523 return 0;
5524 }
5525 _ACEOF
5526 if ac_fn_c_try_compile "$LINENO"; then :
5527
5528 else
5529 ac_c_werror_flag=$ac_save_c_werror_flag
5530 CFLAGS="-g"
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533
5534 int
5535 main ()
5536 {
5537
5538 ;
5539 return 0;
5540 }
5541 _ACEOF
5542 if ac_fn_c_try_compile "$LINENO"; then :
5543 ac_cv_prog_cc_g=yes
5544 fi
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 fi
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 ac_c_werror_flag=$ac_save_c_werror_flag
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5553 $as_echo "$ac_cv_prog_cc_g" >&6; }
5554 if test "$ac_test_CFLAGS" = set; then
5555 CFLAGS=$ac_save_CFLAGS
5556 elif test $ac_cv_prog_cc_g = yes; then
5557 if test "$GCC" = yes; then
5558 CFLAGS="-g -O2"
5559 else
5560 CFLAGS="-g"
5561 fi
5562 else
5563 if test "$GCC" = yes; then
5564 CFLAGS="-O2"
5565 else
5566 CFLAGS=
5567 fi
5568 fi
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5570 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5571 if ${ac_cv_prog_cc_c89+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 ac_cv_prog_cc_c89=no
5575 ac_save_CC=$CC
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578 #include <stdarg.h>
5579 #include <stdio.h>
5580 struct stat;
5581 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5582 struct buf { int x; };
5583 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5584 static char *e (p, i)
5585 char **p;
5586 int i;
5587 {
5588 return p[i];
5589 }
5590 static char *f (char * (*g) (char **, int), char **p, ...)
5591 {
5592 char *s;
5593 va_list v;
5594 va_start (v,p);
5595 s = g (p, va_arg (v,int));
5596 va_end (v);
5597 return s;
5598 }
5599
5600 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5601 function prototypes and stuff, but not '\xHH' hex character constants.
5602 These don't provoke an error unfortunately, instead are silently treated
5603 as 'x'. The following induces an error, until -std is added to get
5604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5605 array size at least. It's necessary to write '\x00'==0 to get something
5606 that's true only with -std. */
5607 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5608
5609 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5610 inside strings and character constants. */
5611 #define FOO(x) 'x'
5612 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5613
5614 int test (int i, double x);
5615 struct s1 {int (*f) (int a);};
5616 struct s2 {int (*f) (double a);};
5617 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5618 int argc;
5619 char **argv;
5620 int
5621 main ()
5622 {
5623 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5624 ;
5625 return 0;
5626 }
5627 _ACEOF
5628 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5630 do
5631 CC="$ac_save_CC $ac_arg"
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633 ac_cv_prog_cc_c89=$ac_arg
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext
5636 test "x$ac_cv_prog_cc_c89" != "xno" && break
5637 done
5638 rm -f conftest.$ac_ext
5639 CC=$ac_save_CC
5640
5641 fi
5642 # AC_CACHE_VAL
5643 case "x$ac_cv_prog_cc_c89" in
5644 x)
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5646 $as_echo "none needed" >&6; } ;;
5647 xno)
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5649 $as_echo "unsupported" >&6; } ;;
5650 *)
5651 CC="$CC $ac_cv_prog_cc_c89"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5653 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5654 esac
5655 if test "x$ac_cv_prog_cc_c89" != xno; then :
5656
5657 fi
5658
5659 ac_ext=c
5660 ac_cpp='$CPP $CPPFLAGS'
5661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5664
5665 ac_ext=c
5666 ac_cpp='$CPP $CPPFLAGS'
5667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5671 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5672 if ${am_cv_prog_cc_c_o+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677
5678 int
5679 main ()
5680 {
5681
5682 ;
5683 return 0;
5684 }
5685 _ACEOF
5686 # Make sure it works both with $CC and with simple cc.
5687 # Following AC_PROG_CC_C_O, we do the test twice because some
5688 # compilers refuse to overwrite an existing .o file with -o,
5689 # though they will create one.
5690 am_cv_prog_cc_c_o=yes
5691 for am_i in 1 2; do
5692 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5693 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } \
5697 && test -f conftest2.$ac_objext; then
5698 : OK
5699 else
5700 am_cv_prog_cc_c_o=no
5701 break
5702 fi
5703 done
5704 rm -f core conftest*
5705 unset am_i
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5708 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5709 if test "$am_cv_prog_cc_c_o" != yes; then
5710 # Losing compiler, so override with the script.
5711 # FIXME: It is wrong to rewrite CC.
5712 # But if we don't then we get into trouble of one sort or another.
5713 # A longer-term fix would be to have automake use am__CC in this case,
5714 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5715 CC="$am_aux_dir/compile $CC"
5716 fi
5717 ac_ext=c
5718 ac_cpp='$CPP $CPPFLAGS'
5719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722
5723
5724
5725
5726
5727 case `pwd` in
5728 *\ * | *\ *)
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5730 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5731 esac
5732
5733
5734
5735 macro_version='2.4.6'
5736 macro_revision='2.4.6'
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750 ltmain=$ac_aux_dir/ltmain.sh
5751
5752 # Make sure we can run config.sub.
5753 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5754 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5755
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5757 $as_echo_n "checking build system type... " >&6; }
5758 if ${ac_cv_build+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 ac_build_alias=$build_alias
5762 test "x$ac_build_alias" = x &&
5763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5764 test "x$ac_build_alias" = x &&
5765 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5766 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5767 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5768
5769 fi
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5771 $as_echo "$ac_cv_build" >&6; }
5772 case $ac_cv_build in
5773 *-*-*) ;;
5774 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5775 esac
5776 build=$ac_cv_build
5777 ac_save_IFS=$IFS; IFS='-'
5778 set x $ac_cv_build
5779 shift
5780 build_cpu=$1
5781 build_vendor=$2
5782 shift; shift
5783 # Remember, the first character of IFS is used to create $*,
5784 # except with old shells:
5785 build_os=$*
5786 IFS=$ac_save_IFS
5787 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5788
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5791 $as_echo_n "checking host system type... " >&6; }
5792 if ${ac_cv_host+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if test "x$host_alias" = x; then
5796 ac_cv_host=$ac_cv_build
5797 else
5798 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5799 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5800 fi
5801
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5804 $as_echo "$ac_cv_host" >&6; }
5805 case $ac_cv_host in
5806 *-*-*) ;;
5807 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5808 esac
5809 host=$ac_cv_host
5810 ac_save_IFS=$IFS; IFS='-'
5811 set x $ac_cv_host
5812 shift
5813 host_cpu=$1
5814 host_vendor=$2
5815 shift; shift
5816 # Remember, the first character of IFS is used to create $*,
5817 # except with old shells:
5818 host_os=$*
5819 IFS=$ac_save_IFS
5820 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5821
5822
5823 # Backslashify metacharacters that are still active within
5824 # double-quoted strings.
5825 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5826
5827 # Same as above, but do not quote variable references.
5828 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5829
5830 # Sed substitution to delay expansion of an escaped shell variable in a
5831 # double_quote_subst'ed string.
5832 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5833
5834 # Sed substitution to delay expansion of an escaped single quote.
5835 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5836
5837 # Sed substitution to avoid accidental globbing in evaled expressions
5838 no_glob_subst='s/\*/\\\*/g'
5839
5840 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5841 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5842 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5843
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5845 $as_echo_n "checking how to print strings... " >&6; }
5846 # Test print first, because it will be a builtin if present.
5847 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5848 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5849 ECHO='print -r --'
5850 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5851 ECHO='printf %s\n'
5852 else
5853 # Use this function as a fallback that always works.
5854 func_fallback_echo ()
5855 {
5856 eval 'cat <<_LTECHO_EOF
5857 $1
5858 _LTECHO_EOF'
5859 }
5860 ECHO='func_fallback_echo'
5861 fi
5862
5863 # func_echo_all arg...
5864 # Invoke $ECHO with all args, space-separated.
5865 func_echo_all ()
5866 {
5867 $ECHO ""
5868 }
5869
5870 case $ECHO in
5871 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5872 $as_echo "printf" >&6; } ;;
5873 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5874 $as_echo "print -r" >&6; } ;;
5875 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5876 $as_echo "cat" >&6; } ;;
5877 esac
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5893 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5894 if ${ac_cv_path_SED+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5898 for ac_i in 1 2 3 4 5 6 7; do
5899 ac_script="$ac_script$as_nl$ac_script"
5900 done
5901 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5902 { ac_script=; unset ac_script;}
5903 if test -z "$SED"; then
5904 ac_path_SED_found=false
5905 # Loop through the user's path and test for each of PROGNAME-LIST
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_prog in sed gsed; do
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5914 as_fn_executable_p "$ac_path_SED" || continue
5915 # Check for GNU ac_path_SED and select it if it is found.
5916 # Check for GNU $ac_path_SED
5917 case `"$ac_path_SED" --version 2>&1` in
5918 *GNU*)
5919 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5920 *)
5921 ac_count=0
5922 $as_echo_n 0123456789 >"conftest.in"
5923 while :
5924 do
5925 cat "conftest.in" "conftest.in" >"conftest.tmp"
5926 mv "conftest.tmp" "conftest.in"
5927 cp "conftest.in" "conftest.nl"
5928 $as_echo '' >> "conftest.nl"
5929 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5931 as_fn_arith $ac_count + 1 && ac_count=$as_val
5932 if test $ac_count -gt ${ac_path_SED_max-0}; then
5933 # Best one so far, save it but keep looking for a better one
5934 ac_cv_path_SED="$ac_path_SED"
5935 ac_path_SED_max=$ac_count
5936 fi
5937 # 10*(2^10) chars as input seems more than enough
5938 test $ac_count -gt 10 && break
5939 done
5940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5941 esac
5942
5943 $ac_path_SED_found && break 3
5944 done
5945 done
5946 done
5947 IFS=$as_save_IFS
5948 if test -z "$ac_cv_path_SED"; then
5949 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5950 fi
5951 else
5952 ac_cv_path_SED=$SED
5953 fi
5954
5955 fi
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5957 $as_echo "$ac_cv_path_SED" >&6; }
5958 SED="$ac_cv_path_SED"
5959 rm -f conftest.sed
5960
5961 test -z "$SED" && SED=sed
5962 Xsed="$SED -e 1s/^X//"
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5975 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5976 if ${ac_cv_path_GREP+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 if test -z "$GREP"; then
5980 ac_path_GREP_found=false
5981 # Loop through the user's path and test for each of PROGNAME-LIST
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5984 do
5985 IFS=$as_save_IFS
5986 test -z "$as_dir" && as_dir=.
5987 for ac_prog in grep ggrep; do
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5990 as_fn_executable_p "$ac_path_GREP" || continue
5991 # Check for GNU ac_path_GREP and select it if it is found.
5992 # Check for GNU $ac_path_GREP
5993 case `"$ac_path_GREP" --version 2>&1` in
5994 *GNU*)
5995 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5996 *)
5997 ac_count=0
5998 $as_echo_n 0123456789 >"conftest.in"
5999 while :
6000 do
6001 cat "conftest.in" "conftest.in" >"conftest.tmp"
6002 mv "conftest.tmp" "conftest.in"
6003 cp "conftest.in" "conftest.nl"
6004 $as_echo 'GREP' >> "conftest.nl"
6005 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6007 as_fn_arith $ac_count + 1 && ac_count=$as_val
6008 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6009 # Best one so far, save it but keep looking for a better one
6010 ac_cv_path_GREP="$ac_path_GREP"
6011 ac_path_GREP_max=$ac_count
6012 fi
6013 # 10*(2^10) chars as input seems more than enough
6014 test $ac_count -gt 10 && break
6015 done
6016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6017 esac
6018
6019 $ac_path_GREP_found && break 3
6020 done
6021 done
6022 done
6023 IFS=$as_save_IFS
6024 if test -z "$ac_cv_path_GREP"; then
6025 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6026 fi
6027 else
6028 ac_cv_path_GREP=$GREP
6029 fi
6030
6031 fi
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6033 $as_echo "$ac_cv_path_GREP" >&6; }
6034 GREP="$ac_cv_path_GREP"
6035
6036
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6038 $as_echo_n "checking for egrep... " >&6; }
6039 if ${ac_cv_path_EGREP+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6043 then ac_cv_path_EGREP="$GREP -E"
6044 else
6045 if test -z "$EGREP"; then
6046 ac_path_EGREP_found=false
6047 # Loop through the user's path and test for each of PROGNAME-LIST
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6050 do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_prog in egrep; do
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6056 as_fn_executable_p "$ac_path_EGREP" || continue
6057 # Check for GNU ac_path_EGREP and select it if it is found.
6058 # Check for GNU $ac_path_EGREP
6059 case `"$ac_path_EGREP" --version 2>&1` in
6060 *GNU*)
6061 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6062 *)
6063 ac_count=0
6064 $as_echo_n 0123456789 >"conftest.in"
6065 while :
6066 do
6067 cat "conftest.in" "conftest.in" >"conftest.tmp"
6068 mv "conftest.tmp" "conftest.in"
6069 cp "conftest.in" "conftest.nl"
6070 $as_echo 'EGREP' >> "conftest.nl"
6071 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6073 as_fn_arith $ac_count + 1 && ac_count=$as_val
6074 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6075 # Best one so far, save it but keep looking for a better one
6076 ac_cv_path_EGREP="$ac_path_EGREP"
6077 ac_path_EGREP_max=$ac_count
6078 fi
6079 # 10*(2^10) chars as input seems more than enough
6080 test $ac_count -gt 10 && break
6081 done
6082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6083 esac
6084
6085 $ac_path_EGREP_found && break 3
6086 done
6087 done
6088 done
6089 IFS=$as_save_IFS
6090 if test -z "$ac_cv_path_EGREP"; then
6091 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6092 fi
6093 else
6094 ac_cv_path_EGREP=$EGREP
6095 fi
6096
6097 fi
6098 fi
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6100 $as_echo "$ac_cv_path_EGREP" >&6; }
6101 EGREP="$ac_cv_path_EGREP"
6102
6103
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6105 $as_echo_n "checking for fgrep... " >&6; }
6106 if ${ac_cv_path_FGREP+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6110 then ac_cv_path_FGREP="$GREP -F"
6111 else
6112 if test -z "$FGREP"; then
6113 ac_path_FGREP_found=false
6114 # Loop through the user's path and test for each of PROGNAME-LIST
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6117 do
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_prog in fgrep; do
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6123 as_fn_executable_p "$ac_path_FGREP" || continue
6124 # Check for GNU ac_path_FGREP and select it if it is found.
6125 # Check for GNU $ac_path_FGREP
6126 case `"$ac_path_FGREP" --version 2>&1` in
6127 *GNU*)
6128 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6129 *)
6130 ac_count=0
6131 $as_echo_n 0123456789 >"conftest.in"
6132 while :
6133 do
6134 cat "conftest.in" "conftest.in" >"conftest.tmp"
6135 mv "conftest.tmp" "conftest.in"
6136 cp "conftest.in" "conftest.nl"
6137 $as_echo 'FGREP' >> "conftest.nl"
6138 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6140 as_fn_arith $ac_count + 1 && ac_count=$as_val
6141 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6142 # Best one so far, save it but keep looking for a better one
6143 ac_cv_path_FGREP="$ac_path_FGREP"
6144 ac_path_FGREP_max=$ac_count
6145 fi
6146 # 10*(2^10) chars as input seems more than enough
6147 test $ac_count -gt 10 && break
6148 done
6149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6150 esac
6151
6152 $ac_path_FGREP_found && break 3
6153 done
6154 done
6155 done
6156 IFS=$as_save_IFS
6157 if test -z "$ac_cv_path_FGREP"; then
6158 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6159 fi
6160 else
6161 ac_cv_path_FGREP=$FGREP
6162 fi
6163
6164 fi
6165 fi
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6167 $as_echo "$ac_cv_path_FGREP" >&6; }
6168 FGREP="$ac_cv_path_FGREP"
6169
6170
6171 test -z "$GREP" && GREP=grep
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191 # Check whether --with-gnu-ld was given.
6192 if test "${with_gnu_ld+set}" = set; then :
6193 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6194 else
6195 with_gnu_ld=no
6196 fi
6197
6198 ac_prog=ld
6199 if test yes = "$GCC"; then
6200 # Check if gcc -print-prog-name=ld gives a path.
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6202 $as_echo_n "checking for ld used by $CC... " >&6; }
6203 case $host in
6204 *-*-mingw*)
6205 # gcc leaves a trailing carriage return, which upsets mingw
6206 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6207 *)
6208 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6209 esac
6210 case $ac_prog in
6211 # Accept absolute paths.
6212 [\\/]* | ?:[\\/]*)
6213 re_direlt='/[^/][^/]*/\.\./'
6214 # Canonicalize the pathname of ld
6215 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6216 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6217 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6218 done
6219 test -z "$LD" && LD=$ac_prog
6220 ;;
6221 "")
6222 # If it fails, then pretend we aren't using GCC.
6223 ac_prog=ld
6224 ;;
6225 *)
6226 # If it is relative, then search for the first ld in PATH.
6227 with_gnu_ld=unknown
6228 ;;
6229 esac
6230 elif test yes = "$with_gnu_ld"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6232 $as_echo_n "checking for GNU ld... " >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6235 $as_echo_n "checking for non-GNU ld... " >&6; }
6236 fi
6237 if ${lt_cv_path_LD+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 if test -z "$LD"; then
6241 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6242 for ac_dir in $PATH; do
6243 IFS=$lt_save_ifs
6244 test -z "$ac_dir" && ac_dir=.
6245 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6246 lt_cv_path_LD=$ac_dir/$ac_prog
6247 # Check to see if the program is GNU ld. I'd rather use --version,
6248 # but apparently some variants of GNU ld only accept -v.
6249 # Break only if it was the GNU/non-GNU ld that we prefer.
6250 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6251 *GNU* | *'with BFD'*)
6252 test no != "$with_gnu_ld" && break
6253 ;;
6254 *)
6255 test yes != "$with_gnu_ld" && break
6256 ;;
6257 esac
6258 fi
6259 done
6260 IFS=$lt_save_ifs
6261 else
6262 lt_cv_path_LD=$LD # Let the user override the test with a path.
6263 fi
6264 fi
6265
6266 LD=$lt_cv_path_LD
6267 if test -n "$LD"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6269 $as_echo "$LD" >&6; }
6270 else
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6273 fi
6274 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6276 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6277 if ${lt_cv_prog_gnu_ld+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6281 case `$LD -v 2>&1 </dev/null` in
6282 *GNU* | *'with BFD'*)
6283 lt_cv_prog_gnu_ld=yes
6284 ;;
6285 *)
6286 lt_cv_prog_gnu_ld=no
6287 ;;
6288 esac
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6291 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6292 with_gnu_ld=$lt_cv_prog_gnu_ld
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6303 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6304 if ${lt_cv_path_NM+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$NM"; then
6308 # Let the user override the test.
6309 lt_cv_path_NM=$NM
6310 else
6311 lt_nm_to_check=${ac_tool_prefix}nm
6312 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6313 lt_nm_to_check="$lt_nm_to_check nm"
6314 fi
6315 for lt_tmp_nm in $lt_nm_to_check; do
6316 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6317 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6318 IFS=$lt_save_ifs
6319 test -z "$ac_dir" && ac_dir=.
6320 tmp_nm=$ac_dir/$lt_tmp_nm
6321 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6322 # Check to see if the nm accepts a BSD-compat flag.
6323 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6324 # nm: unknown option "B" ignored
6325 # Tru64's nm complains that /dev/null is an invalid object file
6326 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6327 case $build_os in
6328 mingw*) lt_bad_file=conftest.nm/nofile ;;
6329 *) lt_bad_file=/dev/null ;;
6330 esac
6331 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6332 *$lt_bad_file* | *'Invalid file or object type'*)
6333 lt_cv_path_NM="$tmp_nm -B"
6334 break 2
6335 ;;
6336 *)
6337 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6338 */dev/null*)
6339 lt_cv_path_NM="$tmp_nm -p"
6340 break 2
6341 ;;
6342 *)
6343 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6344 continue # so that we can try to find one that supports BSD flags
6345 ;;
6346 esac
6347 ;;
6348 esac
6349 fi
6350 done
6351 IFS=$lt_save_ifs
6352 done
6353 : ${lt_cv_path_NM=no}
6354 fi
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6357 $as_echo "$lt_cv_path_NM" >&6; }
6358 if test no != "$lt_cv_path_NM"; then
6359 NM=$lt_cv_path_NM
6360 else
6361 # Didn't find any BSD compatible name lister, look for dumpbin.
6362 if test -n "$DUMPBIN"; then :
6363 # Let the user override the test.
6364 else
6365 if test -n "$ac_tool_prefix"; then
6366 for ac_prog in dumpbin "link -dump"
6367 do
6368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_DUMPBIN+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 if test -n "$DUMPBIN"; then
6376 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6388 fi
6389 done
6390 done
6391 IFS=$as_save_IFS
6392
6393 fi
6394 fi
6395 DUMPBIN=$ac_cv_prog_DUMPBIN
6396 if test -n "$DUMPBIN"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6398 $as_echo "$DUMPBIN" >&6; }
6399 else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6402 fi
6403
6404
6405 test -n "$DUMPBIN" && break
6406 done
6407 fi
6408 if test -z "$DUMPBIN"; then
6409 ac_ct_DUMPBIN=$DUMPBIN
6410 for ac_prog in dumpbin "link -dump"
6411 do
6412 # Extract the first word of "$ac_prog", so it can be a program name with args.
6413 set dummy $ac_prog; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 if test -n "$ac_ct_DUMPBIN"; then
6420 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437 fi
6438 fi
6439 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6440 if test -n "$ac_ct_DUMPBIN"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6442 $as_echo "$ac_ct_DUMPBIN" >&6; }
6443 else
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6446 fi
6447
6448
6449 test -n "$ac_ct_DUMPBIN" && break
6450 done
6451
6452 if test "x$ac_ct_DUMPBIN" = x; then
6453 DUMPBIN=":"
6454 else
6455 case $cross_compiling:$ac_tool_warned in
6456 yes:)
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6460 esac
6461 DUMPBIN=$ac_ct_DUMPBIN
6462 fi
6463 fi
6464
6465 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6466 *COFF*)
6467 DUMPBIN="$DUMPBIN -symbols -headers"
6468 ;;
6469 *)
6470 DUMPBIN=:
6471 ;;
6472 esac
6473 fi
6474
6475 if test : != "$DUMPBIN"; then
6476 NM=$DUMPBIN
6477 fi
6478 fi
6479 test -z "$NM" && NM=nm
6480
6481
6482
6483
6484
6485
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6487 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6488 if ${lt_cv_nm_interface+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 lt_cv_nm_interface="BSD nm"
6492 echo "int some_variable = 0;" > conftest.$ac_ext
6493 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6494 (eval "$ac_compile" 2>conftest.err)
6495 cat conftest.err >&5
6496 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6497 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6498 cat conftest.err >&5
6499 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6500 cat conftest.out >&5
6501 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6502 lt_cv_nm_interface="MS dumpbin"
6503 fi
6504 rm -f conftest*
6505 fi
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6507 $as_echo "$lt_cv_nm_interface" >&6; }
6508
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6510 $as_echo_n "checking whether ln -s works... " >&6; }
6511 LN_S=$as_ln_s
6512 if test "$LN_S" = "ln -s"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6514 $as_echo "yes" >&6; }
6515 else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6517 $as_echo "no, using $LN_S" >&6; }
6518 fi
6519
6520 # find the maximum length of command line arguments
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6522 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6523 if ${lt_cv_sys_max_cmd_len+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 i=0
6527 teststring=ABCD
6528
6529 case $build_os in
6530 msdosdjgpp*)
6531 # On DJGPP, this test can blow up pretty badly due to problems in libc
6532 # (any single argument exceeding 2000 bytes causes a buffer overrun
6533 # during glob expansion). Even if it were fixed, the result of this
6534 # check would be larger than it should be.
6535 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6536 ;;
6537
6538 gnu*)
6539 # Under GNU Hurd, this test is not required because there is
6540 # no limit to the length of command line arguments.
6541 # Libtool will interpret -1 as no limit whatsoever
6542 lt_cv_sys_max_cmd_len=-1;
6543 ;;
6544
6545 cygwin* | mingw* | cegcc*)
6546 # On Win9x/ME, this test blows up -- it succeeds, but takes
6547 # about 5 minutes as the teststring grows exponentially.
6548 # Worse, since 9x/ME are not pre-emptively multitasking,
6549 # you end up with a "frozen" computer, even though with patience
6550 # the test eventually succeeds (with a max line length of 256k).
6551 # Instead, let's just punt: use the minimum linelength reported by
6552 # all of the supported platforms: 8192 (on NT/2K/XP).
6553 lt_cv_sys_max_cmd_len=8192;
6554 ;;
6555
6556 mint*)
6557 # On MiNT this can take a long time and run out of memory.
6558 lt_cv_sys_max_cmd_len=8192;
6559 ;;
6560
6561 amigaos*)
6562 # On AmigaOS with pdksh, this test takes hours, literally.
6563 # So we just punt and use a minimum line length of 8192.
6564 lt_cv_sys_max_cmd_len=8192;
6565 ;;
6566
6567 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6568 # This has been around since 386BSD, at least. Likely further.
6569 if test -x /sbin/sysctl; then
6570 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6571 elif test -x /usr/sbin/sysctl; then
6572 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6573 else
6574 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6575 fi
6576 # And add a safety zone
6577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6579 ;;
6580
6581 interix*)
6582 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6583 lt_cv_sys_max_cmd_len=196608
6584 ;;
6585
6586 os2*)
6587 # The test takes a long time on OS/2.
6588 lt_cv_sys_max_cmd_len=8192
6589 ;;
6590
6591 osf*)
6592 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6593 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6594 # nice to cause kernel panics so lets avoid the loop below.
6595 # First set a reasonable default.
6596 lt_cv_sys_max_cmd_len=16384
6597 #
6598 if test -x /sbin/sysconfig; then
6599 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6600 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6601 esac
6602 fi
6603 ;;
6604 sco3.2v5*)
6605 lt_cv_sys_max_cmd_len=102400
6606 ;;
6607 sysv5* | sco5v6* | sysv4.2uw2*)
6608 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6609 if test -n "$kargmax"; then
6610 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6611 else
6612 lt_cv_sys_max_cmd_len=32768
6613 fi
6614 ;;
6615 *)
6616 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6617 if test -n "$lt_cv_sys_max_cmd_len" && \
6618 test undefined != "$lt_cv_sys_max_cmd_len"; then
6619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6621 else
6622 # Make teststring a little bigger before we do anything with it.
6623 # a 1K string should be a reasonable start.
6624 for i in 1 2 3 4 5 6 7 8; do
6625 teststring=$teststring$teststring
6626 done
6627 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6628 # If test is not a shell built-in, we'll probably end up computing a
6629 # maximum length that is only half of the actual maximum length, but
6630 # we can't tell.
6631 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6632 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6633 test 17 != "$i" # 1/2 MB should be enough
6634 do
6635 i=`expr $i + 1`
6636 teststring=$teststring$teststring
6637 done
6638 # Only check the string length outside the loop.
6639 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6640 teststring=
6641 # Add a significant safety factor because C++ compilers can tack on
6642 # massive amounts of additional arguments before passing them to the
6643 # linker. It appears as though 1/2 is a usable value.
6644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6645 fi
6646 ;;
6647 esac
6648
6649 fi
6650
6651 if test -n "$lt_cv_sys_max_cmd_len"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6653 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6654 else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6656 $as_echo "none" >&6; }
6657 fi
6658 max_cmd_len=$lt_cv_sys_max_cmd_len
6659
6660
6661
6662
6663
6664
6665 : ${CP="cp -f"}
6666 : ${MV="mv -f"}
6667 : ${RM="rm -f"}
6668
6669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6670 lt_unset=unset
6671 else
6672 lt_unset=false
6673 fi
6674
6675
6676
6677
6678
6679 # test EBCDIC or ASCII
6680 case `echo X|tr X '\101'` in
6681 A) # ASCII based system
6682 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6683 lt_SP2NL='tr \040 \012'
6684 lt_NL2SP='tr \015\012 \040\040'
6685 ;;
6686 *) # EBCDIC based system
6687 lt_SP2NL='tr \100 \n'
6688 lt_NL2SP='tr \r\n \100\100'
6689 ;;
6690 esac
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6701 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6702 if ${lt_cv_to_host_file_cmd+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 case $host in
6706 *-*-mingw* )
6707 case $build in
6708 *-*-mingw* ) # actually msys
6709 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6710 ;;
6711 *-*-cygwin* )
6712 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6713 ;;
6714 * ) # otherwise, assume *nix
6715 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6716 ;;
6717 esac
6718 ;;
6719 *-*-cygwin* )
6720 case $build in
6721 *-*-mingw* ) # actually msys
6722 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6723 ;;
6724 *-*-cygwin* )
6725 lt_cv_to_host_file_cmd=func_convert_file_noop
6726 ;;
6727 * ) # otherwise, assume *nix
6728 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6729 ;;
6730 esac
6731 ;;
6732 * ) # unhandled hosts (and "normal" native builds)
6733 lt_cv_to_host_file_cmd=func_convert_file_noop
6734 ;;
6735 esac
6736
6737 fi
6738
6739 to_host_file_cmd=$lt_cv_to_host_file_cmd
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6741 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6742
6743
6744
6745
6746
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6748 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6749 if ${lt_cv_to_tool_file_cmd+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 #assume ordinary cross tools, or native build.
6753 lt_cv_to_tool_file_cmd=func_convert_file_noop
6754 case $host in
6755 *-*-mingw* )
6756 case $build in
6757 *-*-mingw* ) # actually msys
6758 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6759 ;;
6760 esac
6761 ;;
6762 esac
6763
6764 fi
6765
6766 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6768 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6769
6770
6771
6772
6773
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6775 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6776 if ${lt_cv_ld_reload_flag+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 lt_cv_ld_reload_flag='-r'
6780 fi
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6782 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6783 reload_flag=$lt_cv_ld_reload_flag
6784 case $reload_flag in
6785 "" | " "*) ;;
6786 *) reload_flag=" $reload_flag" ;;
6787 esac
6788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6789 case $host_os in
6790 cygwin* | mingw* | pw32* | cegcc*)
6791 if test yes != "$GCC"; then
6792 reload_cmds=false
6793 fi
6794 ;;
6795 darwin*)
6796 if test yes = "$GCC"; then
6797 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6798 else
6799 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6800 fi
6801 ;;
6802 esac
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812 if test -n "$ac_tool_prefix"; then
6813 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6814 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_prog_OBJDUMP+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 if test -n "$OBJDUMP"; then
6821 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 OBJDUMP=$ac_cv_prog_OBJDUMP
6841 if test -n "$OBJDUMP"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6843 $as_echo "$OBJDUMP" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849
6850 fi
6851 if test -z "$ac_cv_prog_OBJDUMP"; then
6852 ac_ct_OBJDUMP=$OBJDUMP
6853 # Extract the first word of "objdump", so it can be a program name with args.
6854 set dummy objdump; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 if test -n "$ac_ct_OBJDUMP"; then
6861 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878 fi
6879 fi
6880 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6881 if test -n "$ac_ct_OBJDUMP"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6883 $as_echo "$ac_ct_OBJDUMP" >&6; }
6884 else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6887 fi
6888
6889 if test "x$ac_ct_OBJDUMP" = x; then
6890 OBJDUMP="false"
6891 else
6892 case $cross_compiling:$ac_tool_warned in
6893 yes:)
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896 ac_tool_warned=yes ;;
6897 esac
6898 OBJDUMP=$ac_ct_OBJDUMP
6899 fi
6900 else
6901 OBJDUMP="$ac_cv_prog_OBJDUMP"
6902 fi
6903
6904 test -z "$OBJDUMP" && OBJDUMP=objdump
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6915 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6916 if ${lt_cv_deplibs_check_method+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 lt_cv_file_magic_cmd='$MAGIC_CMD'
6920 lt_cv_file_magic_test_file=
6921 lt_cv_deplibs_check_method='unknown'
6922 # Need to set the preceding variable on all platforms that support
6923 # interlibrary dependencies.
6924 # 'none' -- dependencies not supported.
6925 # 'unknown' -- same as none, but documents that we really don't know.
6926 # 'pass_all' -- all dependencies passed with no checks.
6927 # 'test_compile' -- check by making test program.
6928 # 'file_magic [[regex]]' -- check by looking for files in library path
6929 # that responds to the $file_magic_cmd with a given extended regex.
6930 # If you have 'file' or equivalent on your system and you're not sure
6931 # whether 'pass_all' will *always* work, you probably want this one.
6932
6933 case $host_os in
6934 aix[4-9]*)
6935 lt_cv_deplibs_check_method=pass_all
6936 ;;
6937
6938 beos*)
6939 lt_cv_deplibs_check_method=pass_all
6940 ;;
6941
6942 bsdi[45]*)
6943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6944 lt_cv_file_magic_cmd='/usr/bin/file -L'
6945 lt_cv_file_magic_test_file=/shlib/libc.so
6946 ;;
6947
6948 cygwin*)
6949 # func_win32_libid is a shell function defined in ltmain.sh
6950 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6951 lt_cv_file_magic_cmd='func_win32_libid'
6952 ;;
6953
6954 mingw* | pw32*)
6955 # Base MSYS/MinGW do not provide the 'file' command needed by
6956 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6957 # unless we find 'file', for example because we are cross-compiling.
6958 if ( file / ) >/dev/null 2>&1; then
6959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6960 lt_cv_file_magic_cmd='func_win32_libid'
6961 else
6962 # Keep this pattern in sync with the one in func_win32_libid.
6963 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6964 lt_cv_file_magic_cmd='$OBJDUMP -f'
6965 fi
6966 ;;
6967
6968 cegcc*)
6969 # use the weaker test based on 'objdump'. See mingw*.
6970 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6971 lt_cv_file_magic_cmd='$OBJDUMP -f'
6972 ;;
6973
6974 darwin* | rhapsody*)
6975 lt_cv_deplibs_check_method=pass_all
6976 ;;
6977
6978 freebsd* | dragonfly*)
6979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6980 case $host_cpu in
6981 i*86 )
6982 # Not sure whether the presence of OpenBSD here was a mistake.
6983 # Let's accept both of them until this is cleared up.
6984 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6985 lt_cv_file_magic_cmd=/usr/bin/file
6986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6987 ;;
6988 esac
6989 else
6990 lt_cv_deplibs_check_method=pass_all
6991 fi
6992 ;;
6993
6994 haiku*)
6995 lt_cv_deplibs_check_method=pass_all
6996 ;;
6997
6998 hpux10.20* | hpux11*)
6999 lt_cv_file_magic_cmd=/usr/bin/file
7000 case $host_cpu in
7001 ia64*)
7002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7003 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7004 ;;
7005 hppa*64*)
7006 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]'
7007 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7008 ;;
7009 *)
7010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7011 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7012 ;;
7013 esac
7014 ;;
7015
7016 interix[3-9]*)
7017 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7019 ;;
7020
7021 irix5* | irix6* | nonstopux*)
7022 case $LD in
7023 *-32|*"-32 ") libmagic=32-bit;;
7024 *-n32|*"-n32 ") libmagic=N32;;
7025 *-64|*"-64 ") libmagic=64-bit;;
7026 *) libmagic=never-match;;
7027 esac
7028 lt_cv_deplibs_check_method=pass_all
7029 ;;
7030
7031 # This must be glibc/ELF.
7032 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7033 lt_cv_deplibs_check_method=pass_all
7034 ;;
7035
7036 netbsd* | netbsdelf*-gnu)
7037 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7039 else
7040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7041 fi
7042 ;;
7043
7044 newos6*)
7045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7046 lt_cv_file_magic_cmd=/usr/bin/file
7047 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7048 ;;
7049
7050 *nto* | *qnx*)
7051 lt_cv_deplibs_check_method=pass_all
7052 ;;
7053
7054 openbsd* | bitrig*)
7055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7057 else
7058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7059 fi
7060 ;;
7061
7062 osf3* | osf4* | osf5*)
7063 lt_cv_deplibs_check_method=pass_all
7064 ;;
7065
7066 rdos*)
7067 lt_cv_deplibs_check_method=pass_all
7068 ;;
7069
7070 solaris*)
7071 lt_cv_deplibs_check_method=pass_all
7072 ;;
7073
7074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7075 lt_cv_deplibs_check_method=pass_all
7076 ;;
7077
7078 sysv4 | sysv4.3*)
7079 case $host_vendor in
7080 motorola)
7081 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]'
7082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7083 ;;
7084 ncr)
7085 lt_cv_deplibs_check_method=pass_all
7086 ;;
7087 sequent)
7088 lt_cv_file_magic_cmd='/bin/file'
7089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7090 ;;
7091 sni)
7092 lt_cv_file_magic_cmd='/bin/file'
7093 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7094 lt_cv_file_magic_test_file=/lib/libc.so
7095 ;;
7096 siemens)
7097 lt_cv_deplibs_check_method=pass_all
7098 ;;
7099 pc)
7100 lt_cv_deplibs_check_method=pass_all
7101 ;;
7102 esac
7103 ;;
7104
7105 tpf*)
7106 lt_cv_deplibs_check_method=pass_all
7107 ;;
7108 os2*)
7109 lt_cv_deplibs_check_method=pass_all
7110 ;;
7111 esac
7112
7113 fi
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7115 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7116
7117 file_magic_glob=
7118 want_nocaseglob=no
7119 if test "$build" = "$host"; then
7120 case $host_os in
7121 mingw* | pw32*)
7122 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7123 want_nocaseglob=yes
7124 else
7125 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7126 fi
7127 ;;
7128 esac
7129 fi
7130
7131 file_magic_cmd=$lt_cv_file_magic_cmd
7132 deplibs_check_method=$lt_cv_deplibs_check_method
7133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_DLLTOOL+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if test -n "$DLLTOOL"; then
7165 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7177 fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 DLLTOOL=$ac_cv_prog_DLLTOOL
7185 if test -n "$DLLTOOL"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7187 $as_echo "$DLLTOOL" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193
7194 fi
7195 if test -z "$ac_cv_prog_DLLTOOL"; then
7196 ac_ct_DLLTOOL=$DLLTOOL
7197 # Extract the first word of "dlltool", so it can be a program name with args.
7198 set dummy dlltool; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 if test -n "$ac_ct_DLLTOOL"; then
7205 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218 done
7219 done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7225 if test -n "$ac_ct_DLLTOOL"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7227 $as_echo "$ac_ct_DLLTOOL" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233 if test "x$ac_ct_DLLTOOL" = x; then
7234 DLLTOOL="false"
7235 else
7236 case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7241 esac
7242 DLLTOOL=$ac_ct_DLLTOOL
7243 fi
7244 else
7245 DLLTOOL="$ac_cv_prog_DLLTOOL"
7246 fi
7247
7248 test -z "$DLLTOOL" && DLLTOOL=dlltool
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7260 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7261 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 lt_cv_sharedlib_from_linklib_cmd='unknown'
7265
7266 case $host_os in
7267 cygwin* | mingw* | pw32* | cegcc*)
7268 # two different shell functions defined in ltmain.sh;
7269 # decide which one to use based on capabilities of $DLLTOOL
7270 case `$DLLTOOL --help 2>&1` in
7271 *--identify-strict*)
7272 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7273 ;;
7274 *)
7275 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7276 ;;
7277 esac
7278 ;;
7279 *)
7280 # fallback: assume linklib IS sharedlib
7281 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7282 ;;
7283 esac
7284
7285 fi
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7287 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7288 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7289 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7290
7291
7292
7293
7294
7295
7296
7297 if test -n "$ac_tool_prefix"; then
7298 for ac_prog in ar
7299 do
7300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_AR+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$AR"; then
7308 ac_cv_prog_AR="$AR" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 AR=$ac_cv_prog_AR
7328 if test -n "$AR"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7330 $as_echo "$AR" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336
7337 test -n "$AR" && break
7338 done
7339 fi
7340 if test -z "$AR"; then
7341 ac_ct_AR=$AR
7342 for ac_prog in ar
7343 do
7344 # Extract the first word of "$ac_prog", so it can be a program name with args.
7345 set dummy $ac_prog; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 if test -n "$ac_ct_AR"; then
7352 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_ac_ct_AR="$ac_prog"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7372 if test -n "$ac_ct_AR"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7374 $as_echo "$ac_ct_AR" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380
7381 test -n "$ac_ct_AR" && break
7382 done
7383
7384 if test "x$ac_ct_AR" = x; then
7385 AR="false"
7386 else
7387 case $cross_compiling:$ac_tool_warned in
7388 yes:)
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7391 ac_tool_warned=yes ;;
7392 esac
7393 AR=$ac_ct_AR
7394 fi
7395 fi
7396
7397 : ${AR=ar}
7398 : ${AR_FLAGS=cru}
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7411 $as_echo_n "checking for archiver @FILE support... " >&6; }
7412 if ${lt_cv_ar_at_file+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 lt_cv_ar_at_file=no
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418
7419 int
7420 main ()
7421 {
7422
7423 ;
7424 return 0;
7425 }
7426 _ACEOF
7427 if ac_fn_c_try_compile "$LINENO"; then :
7428 echo conftest.$ac_objext > conftest.lst
7429 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7431 (eval $lt_ar_try) 2>&5
7432 ac_status=$?
7433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7434 test $ac_status = 0; }
7435 if test 0 -eq "$ac_status"; then
7436 # Ensure the archiver fails upon bogus file names.
7437 rm -f conftest.$ac_objext libconftest.a
7438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7439 (eval $lt_ar_try) 2>&5
7440 ac_status=$?
7441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7442 test $ac_status = 0; }
7443 if test 0 -ne "$ac_status"; then
7444 lt_cv_ar_at_file=@
7445 fi
7446 fi
7447 rm -f conftest.* libconftest.a
7448
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7454 $as_echo "$lt_cv_ar_at_file" >&6; }
7455
7456 if test no = "$lt_cv_ar_at_file"; then
7457 archiver_list_spec=
7458 else
7459 archiver_list_spec=$lt_cv_ar_at_file
7460 fi
7461
7462
7463
7464
7465
7466
7467
7468 if test -n "$ac_tool_prefix"; then
7469 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7470 set dummy ${ac_tool_prefix}strip; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_STRIP+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 if test -n "$STRIP"; then
7477 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7489 fi
7490 done
7491 done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 STRIP=$ac_cv_prog_STRIP
7497 if test -n "$STRIP"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7499 $as_echo "$STRIP" >&6; }
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504
7505
7506 fi
7507 if test -z "$ac_cv_prog_STRIP"; then
7508 ac_ct_STRIP=$STRIP
7509 # Extract the first word of "strip", so it can be a program name with args.
7510 set dummy strip; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 if test -n "$ac_ct_STRIP"; then
7517 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_ac_ct_STRIP="strip"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7529 fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7537 if test -n "$ac_ct_STRIP"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7539 $as_echo "$ac_ct_STRIP" >&6; }
7540 else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545 if test "x$ac_ct_STRIP" = x; then
7546 STRIP=":"
7547 else
7548 case $cross_compiling:$ac_tool_warned in
7549 yes:)
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7552 ac_tool_warned=yes ;;
7553 esac
7554 STRIP=$ac_ct_STRIP
7555 fi
7556 else
7557 STRIP="$ac_cv_prog_STRIP"
7558 fi
7559
7560 test -z "$STRIP" && STRIP=:
7561
7562
7563
7564
7565
7566
7567 if test -n "$ac_tool_prefix"; then
7568 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_RANLIB+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 if test -n "$RANLIB"; then
7576 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581 IFS=$as_save_IFS
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 break 2
7588 fi
7589 done
7590 done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 RANLIB=$ac_cv_prog_RANLIB
7596 if test -n "$RANLIB"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7598 $as_echo "$RANLIB" >&6; }
7599 else
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604
7605 fi
7606 if test -z "$ac_cv_prog_RANLIB"; then
7607 ac_ct_RANLIB=$RANLIB
7608 # Extract the first word of "ranlib", so it can be a program name with args.
7609 set dummy ranlib; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 if test -n "$ac_ct_RANLIB"; then
7616 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_ac_ct_RANLIB="ranlib"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7628 fi
7629 done
7630 done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7636 if test -n "$ac_ct_RANLIB"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7638 $as_echo "$ac_ct_RANLIB" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644 if test "x$ac_ct_RANLIB" = x; then
7645 RANLIB=":"
7646 else
7647 case $cross_compiling:$ac_tool_warned in
7648 yes:)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7652 esac
7653 RANLIB=$ac_ct_RANLIB
7654 fi
7655 else
7656 RANLIB="$ac_cv_prog_RANLIB"
7657 fi
7658
7659 test -z "$RANLIB" && RANLIB=:
7660
7661
7662
7663
7664
7665
7666 # Determine commands to create old-style static archives.
7667 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7668 old_postinstall_cmds='chmod 644 $oldlib'
7669 old_postuninstall_cmds=
7670
7671 if test -n "$RANLIB"; then
7672 case $host_os in
7673 bitrig* | openbsd*)
7674 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7675 ;;
7676 *)
7677 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7678 ;;
7679 esac
7680 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7681 fi
7682
7683 case $host_os in
7684 darwin*)
7685 lock_old_archive_extraction=yes ;;
7686 *)
7687 lock_old_archive_extraction=no ;;
7688 esac
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728 # If no C compiler was specified, use CC.
7729 LTCC=${LTCC-"$CC"}
7730
7731 # If no C compiler flags were specified, use CFLAGS.
7732 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7733
7734 # Allow CC to be a program name with arguments.
7735 compiler=$CC
7736
7737
7738 # Check for command to grab the raw symbol name followed by C symbol from nm.
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7740 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7741 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744
7745 # These are sane defaults that work on at least a few old systems.
7746 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7747
7748 # Character class describing NM global symbol codes.
7749 symcode='[BCDEGRST]'
7750
7751 # Regexp to match symbols that can be accessed directly from C.
7752 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7753
7754 # Define system-specific variables.
7755 case $host_os in
7756 aix*)
7757 symcode='[BCDT]'
7758 ;;
7759 cygwin* | mingw* | pw32* | cegcc*)
7760 symcode='[ABCDGISTW]'
7761 ;;
7762 hpux*)
7763 if test ia64 = "$host_cpu"; then
7764 symcode='[ABCDEGRST]'
7765 fi
7766 ;;
7767 irix* | nonstopux*)
7768 symcode='[BCDEGRST]'
7769 ;;
7770 osf*)
7771 symcode='[BCDEGQRST]'
7772 ;;
7773 solaris*)
7774 symcode='[BDRT]'
7775 ;;
7776 sco3.2v5*)
7777 symcode='[DT]'
7778 ;;
7779 sysv4.2uw2*)
7780 symcode='[DT]'
7781 ;;
7782 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7783 symcode='[ABDT]'
7784 ;;
7785 sysv4)
7786 symcode='[DFNSTU]'
7787 ;;
7788 esac
7789
7790 # If we're using GNU nm, then use its standard symbol codes.
7791 case `$NM -V 2>&1` in
7792 *GNU* | *'with BFD'*)
7793 symcode='[ABCDGIRSTW]' ;;
7794 esac
7795
7796 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7797 # Gets list of data symbols to import.
7798 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7799 # Adjust the below global symbol transforms to fixup imported variables.
7800 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7801 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7802 lt_c_name_lib_hook="\
7803 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7804 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7805 else
7806 # Disable hooks by default.
7807 lt_cv_sys_global_symbol_to_import=
7808 lt_cdecl_hook=
7809 lt_c_name_hook=
7810 lt_c_name_lib_hook=
7811 fi
7812
7813 # Transform an extracted symbol line into a proper C declaration.
7814 # Some systems (esp. on ia64) link data and code symbols differently,
7815 # so use this general approach.
7816 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7817 $lt_cdecl_hook\
7818 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7819 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7820
7821 # Transform an extracted symbol line into symbol name and symbol address
7822 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7823 $lt_c_name_hook\
7824 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7825 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7826
7827 # Transform an extracted symbol line into symbol name with lib prefix and
7828 # symbol address.
7829 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7830 $lt_c_name_lib_hook\
7831 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7832 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7833 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7834
7835 # Handle CRLF in mingw tool chain
7836 opt_cr=
7837 case $build_os in
7838 mingw*)
7839 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7840 ;;
7841 esac
7842
7843 # Try without a prefix underscore, then with it.
7844 for ac_symprfx in "" "_"; do
7845
7846 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7847 symxfrm="\\1 $ac_symprfx\\2 \\2"
7848
7849 # Write the raw and C identifiers.
7850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7851 # Fake it for dumpbin and say T for any non-static function,
7852 # D for any global variable and I for any imported variable.
7853 # Also find C++ and __fastcall symbols from MSVC++,
7854 # which start with @ or ?.
7855 lt_cv_sys_global_symbol_pipe="$AWK '"\
7856 " {last_section=section; section=\$ 3};"\
7857 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7858 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7859 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7860 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7861 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7862 " \$ 0!~/External *\|/{next};"\
7863 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7864 " {if(hide[section]) next};"\
7865 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7866 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7867 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7868 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7869 " ' prfx=^$ac_symprfx"
7870 else
7871 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7872 fi
7873 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7874
7875 # Check to see that the pipe works correctly.
7876 pipe_works=no
7877
7878 rm -f conftest*
7879 cat > conftest.$ac_ext <<_LT_EOF
7880 #ifdef __cplusplus
7881 extern "C" {
7882 #endif
7883 char nm_test_var;
7884 void nm_test_func(void);
7885 void nm_test_func(void){}
7886 #ifdef __cplusplus
7887 }
7888 #endif
7889 int main(){nm_test_var='a';nm_test_func();return(0);}
7890 _LT_EOF
7891
7892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7893 (eval $ac_compile) 2>&5
7894 ac_status=$?
7895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7896 test $ac_status = 0; }; then
7897 # Now try to grab the symbols.
7898 nlist=conftest.nm
7899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7900 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7901 ac_status=$?
7902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903 test $ac_status = 0; } && test -s "$nlist"; then
7904 # Try sorting and uniquifying the output.
7905 if sort "$nlist" | uniq > "$nlist"T; then
7906 mv -f "$nlist"T "$nlist"
7907 else
7908 rm -f "$nlist"T
7909 fi
7910
7911 # Make sure that we snagged all the symbols we need.
7912 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7913 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7914 cat <<_LT_EOF > conftest.$ac_ext
7915 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7916 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7917 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7918 relocations are performed -- see ld's documentation on pseudo-relocs. */
7919 # define LT_DLSYM_CONST
7920 #elif defined __osf__
7921 /* This system does not cope well with relocations in const data. */
7922 # define LT_DLSYM_CONST
7923 #else
7924 # define LT_DLSYM_CONST const
7925 #endif
7926
7927 #ifdef __cplusplus
7928 extern "C" {
7929 #endif
7930
7931 _LT_EOF
7932 # Now generate the symbol file.
7933 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7934
7935 cat <<_LT_EOF >> conftest.$ac_ext
7936
7937 /* The mapping between symbol names and symbols. */
7938 LT_DLSYM_CONST struct {
7939 const char *name;
7940 void *address;
7941 }
7942 lt__PROGRAM__LTX_preloaded_symbols[] =
7943 {
7944 { "@PROGRAM@", (void *) 0 },
7945 _LT_EOF
7946 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7947 cat <<\_LT_EOF >> conftest.$ac_ext
7948 {0, (void *) 0}
7949 };
7950
7951 /* This works around a problem in FreeBSD linker */
7952 #ifdef FREEBSD_WORKAROUND
7953 static const void *lt_preloaded_setup() {
7954 return lt__PROGRAM__LTX_preloaded_symbols;
7955 }
7956 #endif
7957
7958 #ifdef __cplusplus
7959 }
7960 #endif
7961 _LT_EOF
7962 # Now try linking the two files.
7963 mv conftest.$ac_objext conftstm.$ac_objext
7964 lt_globsym_save_LIBS=$LIBS
7965 lt_globsym_save_CFLAGS=$CFLAGS
7966 LIBS=conftstm.$ac_objext
7967 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7969 (eval $ac_link) 2>&5
7970 ac_status=$?
7971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7972 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7973 pipe_works=yes
7974 fi
7975 LIBS=$lt_globsym_save_LIBS
7976 CFLAGS=$lt_globsym_save_CFLAGS
7977 else
7978 echo "cannot find nm_test_func in $nlist" >&5
7979 fi
7980 else
7981 echo "cannot find nm_test_var in $nlist" >&5
7982 fi
7983 else
7984 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7985 fi
7986 else
7987 echo "$progname: failed program was:" >&5
7988 cat conftest.$ac_ext >&5
7989 fi
7990 rm -rf conftest* conftst*
7991
7992 # Do not use the global_symbol_pipe unless it works.
7993 if test yes = "$pipe_works"; then
7994 break
7995 else
7996 lt_cv_sys_global_symbol_pipe=
7997 fi
7998 done
7999
8000 fi
8001
8002 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8003 lt_cv_sys_global_symbol_to_cdecl=
8004 fi
8005 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8007 $as_echo "failed" >&6; }
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8010 $as_echo "ok" >&6; }
8011 fi
8012
8013 # Response file support.
8014 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8015 nm_file_list_spec='@'
8016 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8017 nm_file_list_spec='@'
8018 fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8057 $as_echo_n "checking for sysroot... " >&6; }
8058
8059 # Check whether --with-sysroot was given.
8060 if test "${with_sysroot+set}" = set; then :
8061 withval=$with_sysroot;
8062 else
8063 with_sysroot=no
8064 fi
8065
8066
8067 lt_sysroot=
8068 case $with_sysroot in #(
8069 yes)
8070 if test yes = "$GCC"; then
8071 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8072 fi
8073 ;; #(
8074 /*)
8075 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8076 ;; #(
8077 no|'')
8078 ;; #(
8079 *)
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8081 $as_echo "$with_sysroot" >&6; }
8082 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8083 ;;
8084 esac
8085
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8087 $as_echo "${lt_sysroot:-no}" >&6; }
8088
8089
8090
8091
8092
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8094 $as_echo_n "checking for a working dd... " >&6; }
8095 if ${ac_cv_path_lt_DD+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 printf 0123456789abcdef0123456789abcdef >conftest.i
8099 cat conftest.i conftest.i >conftest2.i
8100 : ${lt_DD:=$DD}
8101 if test -z "$lt_DD"; then
8102 ac_path_lt_DD_found=false
8103 # Loop through the user's path and test for each of PROGNAME-LIST
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8106 do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_prog in dd; do
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8112 as_fn_executable_p "$ac_path_lt_DD" || continue
8113 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8114 cmp -s conftest.i conftest.out \
8115 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8116 fi
8117 $ac_path_lt_DD_found && break 3
8118 done
8119 done
8120 done
8121 IFS=$as_save_IFS
8122 if test -z "$ac_cv_path_lt_DD"; then
8123 :
8124 fi
8125 else
8126 ac_cv_path_lt_DD=$lt_DD
8127 fi
8128
8129 rm -f conftest.i conftest2.i conftest.out
8130 fi
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8132 $as_echo "$ac_cv_path_lt_DD" >&6; }
8133
8134
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8136 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8137 if ${lt_cv_truncate_bin+:} false; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 printf 0123456789abcdef0123456789abcdef >conftest.i
8141 cat conftest.i conftest.i >conftest2.i
8142 lt_cv_truncate_bin=
8143 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8144 cmp -s conftest.i conftest.out \
8145 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8146 fi
8147 rm -f conftest.i conftest2.i conftest.out
8148 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8149 fi
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8151 $as_echo "$lt_cv_truncate_bin" >&6; }
8152
8153
8154
8155
8156
8157
8158
8159 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8160 func_cc_basename ()
8161 {
8162 for cc_temp in $*""; do
8163 case $cc_temp in
8164 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8165 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8166 \-*) ;;
8167 *) break;;
8168 esac
8169 done
8170 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8171 }
8172
8173 # Check whether --enable-libtool-lock was given.
8174 if test "${enable_libtool_lock+set}" = set; then :
8175 enableval=$enable_libtool_lock;
8176 fi
8177
8178 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8179
8180 # Some flags need to be propagated to the compiler or linker for good
8181 # libtool support.
8182 case $host in
8183 ia64-*-hpux*)
8184 # Find out what ABI is being produced by ac_compile, and set mode
8185 # options accordingly.
8186 echo 'int i;' > conftest.$ac_ext
8187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8188 (eval $ac_compile) 2>&5
8189 ac_status=$?
8190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8191 test $ac_status = 0; }; then
8192 case `/usr/bin/file conftest.$ac_objext` in
8193 *ELF-32*)
8194 HPUX_IA64_MODE=32
8195 ;;
8196 *ELF-64*)
8197 HPUX_IA64_MODE=64
8198 ;;
8199 esac
8200 fi
8201 rm -rf conftest*
8202 ;;
8203 *-*-irix6*)
8204 # Find out what ABI is being produced by ac_compile, and set linker
8205 # options accordingly.
8206 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8208 (eval $ac_compile) 2>&5
8209 ac_status=$?
8210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211 test $ac_status = 0; }; then
8212 if test yes = "$lt_cv_prog_gnu_ld"; then
8213 case `/usr/bin/file conftest.$ac_objext` in
8214 *32-bit*)
8215 LD="${LD-ld} -melf32bsmip"
8216 ;;
8217 *N32*)
8218 LD="${LD-ld} -melf32bmipn32"
8219 ;;
8220 *64-bit*)
8221 LD="${LD-ld} -melf64bmip"
8222 ;;
8223 esac
8224 else
8225 case `/usr/bin/file conftest.$ac_objext` in
8226 *32-bit*)
8227 LD="${LD-ld} -32"
8228 ;;
8229 *N32*)
8230 LD="${LD-ld} -n32"
8231 ;;
8232 *64-bit*)
8233 LD="${LD-ld} -64"
8234 ;;
8235 esac
8236 fi
8237 fi
8238 rm -rf conftest*
8239 ;;
8240
8241 mips64*-*linux*)
8242 # Find out what ABI is being produced by ac_compile, and set linker
8243 # options accordingly.
8244 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8246 (eval $ac_compile) 2>&5
8247 ac_status=$?
8248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8249 test $ac_status = 0; }; then
8250 emul=elf
8251 case `/usr/bin/file conftest.$ac_objext` in
8252 *32-bit*)
8253 emul="${emul}32"
8254 ;;
8255 *64-bit*)
8256 emul="${emul}64"
8257 ;;
8258 esac
8259 case `/usr/bin/file conftest.$ac_objext` in
8260 *MSB*)
8261 emul="${emul}btsmip"
8262 ;;
8263 *LSB*)
8264 emul="${emul}ltsmip"
8265 ;;
8266 esac
8267 case `/usr/bin/file conftest.$ac_objext` in
8268 *N32*)
8269 emul="${emul}n32"
8270 ;;
8271 esac
8272 LD="${LD-ld} -m $emul"
8273 fi
8274 rm -rf conftest*
8275 ;;
8276
8277 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8278 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8279 # Find out what ABI is being produced by ac_compile, and set linker
8280 # options accordingly. Note that the listed cases only cover the
8281 # situations where additional linker options are needed (such as when
8282 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8283 # vice versa); the common cases where no linker options are needed do
8284 # not appear in the list.
8285 echo 'int i;' > conftest.$ac_ext
8286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8287 (eval $ac_compile) 2>&5
8288 ac_status=$?
8289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8290 test $ac_status = 0; }; then
8291 case `/usr/bin/file conftest.o` in
8292 *32-bit*)
8293 case $host in
8294 x86_64-*kfreebsd*-gnu)
8295 LD="${LD-ld} -m elf_i386_fbsd"
8296 ;;
8297 x86_64-*linux*)
8298 case `/usr/bin/file conftest.o` in
8299 *x86-64*)
8300 LD="${LD-ld} -m elf32_x86_64"
8301 ;;
8302 *)
8303 LD="${LD-ld} -m elf_i386"
8304 ;;
8305 esac
8306 ;;
8307 powerpc64le-*linux*)
8308 LD="${LD-ld} -m elf32lppclinux"
8309 ;;
8310 powerpc64-*linux*)
8311 LD="${LD-ld} -m elf32ppclinux"
8312 ;;
8313 s390x-*linux*)
8314 LD="${LD-ld} -m elf_s390"
8315 ;;
8316 sparc64-*linux*)
8317 LD="${LD-ld} -m elf32_sparc"
8318 ;;
8319 esac
8320 ;;
8321 *64-bit*)
8322 case $host in
8323 x86_64-*kfreebsd*-gnu)
8324 LD="${LD-ld} -m elf_x86_64_fbsd"
8325 ;;
8326 x86_64-*linux*)
8327 LD="${LD-ld} -m elf_x86_64"
8328 ;;
8329 powerpcle-*linux*)
8330 LD="${LD-ld} -m elf64lppc"
8331 ;;
8332 powerpc-*linux*)
8333 LD="${LD-ld} -m elf64ppc"
8334 ;;
8335 s390*-*linux*|s390*-*tpf*)
8336 LD="${LD-ld} -m elf64_s390"
8337 ;;
8338 sparc*-*linux*)
8339 LD="${LD-ld} -m elf64_sparc"
8340 ;;
8341 esac
8342 ;;
8343 esac
8344 fi
8345 rm -rf conftest*
8346 ;;
8347
8348 *-*-sco3.2v5*)
8349 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8350 SAVE_CFLAGS=$CFLAGS
8351 CFLAGS="$CFLAGS -belf"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8353 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8354 if ${lt_cv_cc_needs_belf+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 ac_ext=c
8358 ac_cpp='$CPP $CPPFLAGS'
8359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365
8366 int
8367 main ()
8368 {
8369
8370 ;
8371 return 0;
8372 }
8373 _ACEOF
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 lt_cv_cc_needs_belf=yes
8376 else
8377 lt_cv_cc_needs_belf=no
8378 fi
8379 rm -f core conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext conftest.$ac_ext
8381 ac_ext=c
8382 ac_cpp='$CPP $CPPFLAGS'
8383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8386
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8389 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8390 if test yes != "$lt_cv_cc_needs_belf"; then
8391 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8392 CFLAGS=$SAVE_CFLAGS
8393 fi
8394 ;;
8395 *-*solaris*)
8396 # Find out what ABI is being produced by ac_compile, and set linker
8397 # options accordingly.
8398 echo 'int i;' > conftest.$ac_ext
8399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8400 (eval $ac_compile) 2>&5
8401 ac_status=$?
8402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8403 test $ac_status = 0; }; then
8404 case `/usr/bin/file conftest.o` in
8405 *64-bit*)
8406 case $lt_cv_prog_gnu_ld in
8407 yes*)
8408 case $host in
8409 i?86-*-solaris*|x86_64-*-solaris*)
8410 LD="${LD-ld} -m elf_x86_64"
8411 ;;
8412 sparc*-*-solaris*)
8413 LD="${LD-ld} -m elf64_sparc"
8414 ;;
8415 esac
8416 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8417 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8418 LD=${LD-ld}_sol2
8419 fi
8420 ;;
8421 *)
8422 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8423 LD="${LD-ld} -64"
8424 fi
8425 ;;
8426 esac
8427 ;;
8428 esac
8429 fi
8430 rm -rf conftest*
8431 ;;
8432 esac
8433
8434 need_locks=$enable_libtool_lock
8435
8436 if test -n "$ac_tool_prefix"; then
8437 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8438 set dummy ${ac_tool_prefix}mt; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 if test -n "$MANIFEST_TOOL"; then
8445 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8449 do
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 break 2
8457 fi
8458 done
8459 done
8460 IFS=$as_save_IFS
8461
8462 fi
8463 fi
8464 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8465 if test -n "$MANIFEST_TOOL"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8467 $as_echo "$MANIFEST_TOOL" >&6; }
8468 else
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 fi
8472
8473
8474 fi
8475 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8476 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8477 # Extract the first word of "mt", so it can be a program name with args.
8478 set dummy mt; ac_word=$2
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480 $as_echo_n "checking for $ac_word... " >&6; }
8481 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 if test -n "$ac_ct_MANIFEST_TOOL"; then
8485 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8486 else
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in $PATH
8489 do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 break 2
8497 fi
8498 done
8499 done
8500 IFS=$as_save_IFS
8501
8502 fi
8503 fi
8504 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8505 if test -n "$ac_ct_MANIFEST_TOOL"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8507 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8508 else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8511 fi
8512
8513 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8514 MANIFEST_TOOL=":"
8515 else
8516 case $cross_compiling:$ac_tool_warned in
8517 yes:)
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8520 ac_tool_warned=yes ;;
8521 esac
8522 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8523 fi
8524 else
8525 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8526 fi
8527
8528 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8530 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8531 if ${lt_cv_path_mainfest_tool+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533 else
8534 lt_cv_path_mainfest_tool=no
8535 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8536 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8537 cat conftest.err >&5
8538 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8539 lt_cv_path_mainfest_tool=yes
8540 fi
8541 rm -f conftest*
8542 fi
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8544 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8545 if test yes != "$lt_cv_path_mainfest_tool"; then
8546 MANIFEST_TOOL=:
8547 fi
8548
8549
8550
8551
8552
8553
8554 case $host_os in
8555 rhapsody* | darwin*)
8556 if test -n "$ac_tool_prefix"; then
8557 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8558 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 if test -n "$DSYMUTIL"; then
8565 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578 done
8579 done
8580 IFS=$as_save_IFS
8581
8582 fi
8583 fi
8584 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8585 if test -n "$DSYMUTIL"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8587 $as_echo "$DSYMUTIL" >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8591 fi
8592
8593
8594 fi
8595 if test -z "$ac_cv_prog_DSYMUTIL"; then
8596 ac_ct_DSYMUTIL=$DSYMUTIL
8597 # Extract the first word of "dsymutil", so it can be a program name with args.
8598 set dummy dsymutil; ac_word=$2
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 if test -n "$ac_ct_DSYMUTIL"; then
8605 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8606 else
8607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608 for as_dir in $PATH
8609 do
8610 IFS=$as_save_IFS
8611 test -z "$as_dir" && as_dir=.
8612 for ac_exec_ext in '' $ac_executable_extensions; do
8613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8614 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8616 break 2
8617 fi
8618 done
8619 done
8620 IFS=$as_save_IFS
8621
8622 fi
8623 fi
8624 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8625 if test -n "$ac_ct_DSYMUTIL"; then
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8627 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8628 else
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630 $as_echo "no" >&6; }
8631 fi
8632
8633 if test "x$ac_ct_DSYMUTIL" = x; then
8634 DSYMUTIL=":"
8635 else
8636 case $cross_compiling:$ac_tool_warned in
8637 yes:)
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8640 ac_tool_warned=yes ;;
8641 esac
8642 DSYMUTIL=$ac_ct_DSYMUTIL
8643 fi
8644 else
8645 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8646 fi
8647
8648 if test -n "$ac_tool_prefix"; then
8649 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8650 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_prog_NMEDIT+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 if test -n "$NMEDIT"; then
8657 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8658 else
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8661 do
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8669 fi
8670 done
8671 done
8672 IFS=$as_save_IFS
8673
8674 fi
8675 fi
8676 NMEDIT=$ac_cv_prog_NMEDIT
8677 if test -n "$NMEDIT"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8679 $as_echo "$NMEDIT" >&6; }
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8683 fi
8684
8685
8686 fi
8687 if test -z "$ac_cv_prog_NMEDIT"; then
8688 ac_ct_NMEDIT=$NMEDIT
8689 # Extract the first word of "nmedit", so it can be a program name with args.
8690 set dummy nmedit; ac_word=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 if test -n "$ac_ct_NMEDIT"; then
8697 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8698 else
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 for as_dir in $PATH
8701 do
8702 IFS=$as_save_IFS
8703 test -z "$as_dir" && as_dir=.
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8706 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8708 break 2
8709 fi
8710 done
8711 done
8712 IFS=$as_save_IFS
8713
8714 fi
8715 fi
8716 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8717 if test -n "$ac_ct_NMEDIT"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8719 $as_echo "$ac_ct_NMEDIT" >&6; }
8720 else
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8723 fi
8724
8725 if test "x$ac_ct_NMEDIT" = x; then
8726 NMEDIT=":"
8727 else
8728 case $cross_compiling:$ac_tool_warned in
8729 yes:)
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8732 ac_tool_warned=yes ;;
8733 esac
8734 NMEDIT=$ac_ct_NMEDIT
8735 fi
8736 else
8737 NMEDIT="$ac_cv_prog_NMEDIT"
8738 fi
8739
8740 if test -n "$ac_tool_prefix"; then
8741 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8742 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_prog_LIPO+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 if test -n "$LIPO"; then
8749 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8750 else
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in $PATH
8753 do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8758 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8761 fi
8762 done
8763 done
8764 IFS=$as_save_IFS
8765
8766 fi
8767 fi
8768 LIPO=$ac_cv_prog_LIPO
8769 if test -n "$LIPO"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8771 $as_echo "$LIPO" >&6; }
8772 else
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8775 fi
8776
8777
8778 fi
8779 if test -z "$ac_cv_prog_LIPO"; then
8780 ac_ct_LIPO=$LIPO
8781 # Extract the first word of "lipo", so it can be a program name with args.
8782 set dummy lipo; ac_word=$2
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784 $as_echo_n "checking for $ac_word... " >&6; }
8785 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 if test -n "$ac_ct_LIPO"; then
8789 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8790 else
8791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 for as_dir in $PATH
8793 do
8794 IFS=$as_save_IFS
8795 test -z "$as_dir" && as_dir=.
8796 for ac_exec_ext in '' $ac_executable_extensions; do
8797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8798 ac_cv_prog_ac_ct_LIPO="lipo"
8799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8800 break 2
8801 fi
8802 done
8803 done
8804 IFS=$as_save_IFS
8805
8806 fi
8807 fi
8808 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8809 if test -n "$ac_ct_LIPO"; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8811 $as_echo "$ac_ct_LIPO" >&6; }
8812 else
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 $as_echo "no" >&6; }
8815 fi
8816
8817 if test "x$ac_ct_LIPO" = x; then
8818 LIPO=":"
8819 else
8820 case $cross_compiling:$ac_tool_warned in
8821 yes:)
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8824 ac_tool_warned=yes ;;
8825 esac
8826 LIPO=$ac_ct_LIPO
8827 fi
8828 else
8829 LIPO="$ac_cv_prog_LIPO"
8830 fi
8831
8832 if test -n "$ac_tool_prefix"; then
8833 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8834 set dummy ${ac_tool_prefix}otool; ac_word=$2
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 $as_echo_n "checking for $ac_word... " >&6; }
8837 if ${ac_cv_prog_OTOOL+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 if test -n "$OTOOL"; then
8841 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8842 else
8843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844 for as_dir in $PATH
8845 do
8846 IFS=$as_save_IFS
8847 test -z "$as_dir" && as_dir=.
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8850 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 break 2
8853 fi
8854 done
8855 done
8856 IFS=$as_save_IFS
8857
8858 fi
8859 fi
8860 OTOOL=$ac_cv_prog_OTOOL
8861 if test -n "$OTOOL"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8863 $as_echo "$OTOOL" >&6; }
8864 else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8867 fi
8868
8869
8870 fi
8871 if test -z "$ac_cv_prog_OTOOL"; then
8872 ac_ct_OTOOL=$OTOOL
8873 # Extract the first word of "otool", so it can be a program name with args.
8874 set dummy otool; ac_word=$2
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876 $as_echo_n "checking for $ac_word... " >&6; }
8877 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 if test -n "$ac_ct_OTOOL"; then
8881 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8882 else
8883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884 for as_dir in $PATH
8885 do
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8890 ac_cv_prog_ac_ct_OTOOL="otool"
8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 break 2
8893 fi
8894 done
8895 done
8896 IFS=$as_save_IFS
8897
8898 fi
8899 fi
8900 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8901 if test -n "$ac_ct_OTOOL"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8903 $as_echo "$ac_ct_OTOOL" >&6; }
8904 else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8907 fi
8908
8909 if test "x$ac_ct_OTOOL" = x; then
8910 OTOOL=":"
8911 else
8912 case $cross_compiling:$ac_tool_warned in
8913 yes:)
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8916 ac_tool_warned=yes ;;
8917 esac
8918 OTOOL=$ac_ct_OTOOL
8919 fi
8920 else
8921 OTOOL="$ac_cv_prog_OTOOL"
8922 fi
8923
8924 if test -n "$ac_tool_prefix"; then
8925 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8926 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928 $as_echo_n "checking for $ac_word... " >&6; }
8929 if ${ac_cv_prog_OTOOL64+:} false; then :
8930 $as_echo_n "(cached) " >&6
8931 else
8932 if test -n "$OTOOL64"; then
8933 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8934 else
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 for as_dir in $PATH
8937 do
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8942 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 break 2
8945 fi
8946 done
8947 done
8948 IFS=$as_save_IFS
8949
8950 fi
8951 fi
8952 OTOOL64=$ac_cv_prog_OTOOL64
8953 if test -n "$OTOOL64"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8955 $as_echo "$OTOOL64" >&6; }
8956 else
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958 $as_echo "no" >&6; }
8959 fi
8960
8961
8962 fi
8963 if test -z "$ac_cv_prog_OTOOL64"; then
8964 ac_ct_OTOOL64=$OTOOL64
8965 # Extract the first word of "otool64", so it can be a program name with args.
8966 set dummy otool64; ac_word=$2
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968 $as_echo_n "checking for $ac_word... " >&6; }
8969 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 if test -n "$ac_ct_OTOOL64"; then
8973 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8974 else
8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 for as_dir in $PATH
8977 do
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
8981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8982 ac_cv_prog_ac_ct_OTOOL64="otool64"
8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 break 2
8985 fi
8986 done
8987 done
8988 IFS=$as_save_IFS
8989
8990 fi
8991 fi
8992 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8993 if test -n "$ac_ct_OTOOL64"; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8995 $as_echo "$ac_ct_OTOOL64" >&6; }
8996 else
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998 $as_echo "no" >&6; }
8999 fi
9000
9001 if test "x$ac_ct_OTOOL64" = x; then
9002 OTOOL64=":"
9003 else
9004 case $cross_compiling:$ac_tool_warned in
9005 yes:)
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9008 ac_tool_warned=yes ;;
9009 esac
9010 OTOOL64=$ac_ct_OTOOL64
9011 fi
9012 else
9013 OTOOL64="$ac_cv_prog_OTOOL64"
9014 fi
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9043 $as_echo_n "checking for -single_module linker flag... " >&6; }
9044 if ${lt_cv_apple_cc_single_mod+:} false; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 lt_cv_apple_cc_single_mod=no
9048 if test -z "$LT_MULTI_MODULE"; then
9049 # By default we will add the -single_module flag. You can override
9050 # by either setting the environment variable LT_MULTI_MODULE
9051 # non-empty at configure time, or by adding -multi_module to the
9052 # link flags.
9053 rm -rf libconftest.dylib*
9054 echo "int foo(void){return 1;}" > conftest.c
9055 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9056 -dynamiclib -Wl,-single_module conftest.c" >&5
9057 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9058 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9059 _lt_result=$?
9060 # If there is a non-empty error log, and "single_module"
9061 # appears in it, assume the flag caused a linker warning
9062 if test -s conftest.err && $GREP single_module conftest.err; then
9063 cat conftest.err >&5
9064 # Otherwise, if the output was created with a 0 exit code from
9065 # the compiler, it worked.
9066 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9067 lt_cv_apple_cc_single_mod=yes
9068 else
9069 cat conftest.err >&5
9070 fi
9071 rm -rf libconftest.dylib*
9072 rm -f conftest.*
9073 fi
9074 fi
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9076 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9077
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9079 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9080 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 lt_cv_ld_exported_symbols_list=no
9084 save_LDFLAGS=$LDFLAGS
9085 echo "_main" > conftest.sym
9086 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089
9090 int
9091 main ()
9092 {
9093
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"; then :
9099 lt_cv_ld_exported_symbols_list=yes
9100 else
9101 lt_cv_ld_exported_symbols_list=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 LDFLAGS=$save_LDFLAGS
9106
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9109 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9110
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9112 $as_echo_n "checking for -force_load linker flag... " >&6; }
9113 if ${lt_cv_ld_force_load+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 lt_cv_ld_force_load=no
9117 cat > conftest.c << _LT_EOF
9118 int forced_loaded() { return 2;}
9119 _LT_EOF
9120 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9121 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9122 echo "$AR cru libconftest.a conftest.o" >&5
9123 $AR cru libconftest.a conftest.o 2>&5
9124 echo "$RANLIB libconftest.a" >&5
9125 $RANLIB libconftest.a 2>&5
9126 cat > conftest.c << _LT_EOF
9127 int main() { return 0;}
9128 _LT_EOF
9129 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9130 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9131 _lt_result=$?
9132 if test -s conftest.err && $GREP force_load conftest.err; then
9133 cat conftest.err >&5
9134 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9135 lt_cv_ld_force_load=yes
9136 else
9137 cat conftest.err >&5
9138 fi
9139 rm -f conftest.err libconftest.a conftest conftest.c
9140 rm -rf conftest.dSYM
9141
9142 fi
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9144 $as_echo "$lt_cv_ld_force_load" >&6; }
9145 case $host_os in
9146 rhapsody* | darwin1.[012])
9147 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9148 darwin1.*)
9149 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9150 darwin*) # darwin 5.x on
9151 # if running on 10.5 or later, the deployment target defaults
9152 # to the OS version, if on x86, and 10.4, the deployment
9153 # target defaults to 10.4. Don't you love it?
9154 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9155 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9156 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9157 10.[012][,.]*)
9158 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9159 10.*)
9160 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9161 esac
9162 ;;
9163 esac
9164 if test yes = "$lt_cv_apple_cc_single_mod"; then
9165 _lt_dar_single_mod='$single_module'
9166 fi
9167 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9168 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9169 else
9170 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9171 fi
9172 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9173 _lt_dsymutil='~$DSYMUTIL $lib || :'
9174 else
9175 _lt_dsymutil=
9176 fi
9177 ;;
9178 esac
9179
9180 # func_munge_path_list VARIABLE PATH
9181 # -----------------------------------
9182 # VARIABLE is name of variable containing _space_ separated list of
9183 # directories to be munged by the contents of PATH, which is string
9184 # having a format:
9185 # "DIR[:DIR]:"
9186 # string "DIR[ DIR]" will be prepended to VARIABLE
9187 # ":DIR[:DIR]"
9188 # string "DIR[ DIR]" will be appended to VARIABLE
9189 # "DIRP[:DIRP]::[DIRA:]DIRA"
9190 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9191 # "DIRA[ DIRA]" will be appended to VARIABLE
9192 # "DIR[:DIR]"
9193 # VARIABLE will be replaced by "DIR[ DIR]"
9194 func_munge_path_list ()
9195 {
9196 case x$2 in
9197 x)
9198 ;;
9199 *:)
9200 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9201 ;;
9202 x:*)
9203 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9204 ;;
9205 *::*)
9206 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9207 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9208 ;;
9209 *)
9210 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9211 ;;
9212 esac
9213 }
9214
9215 ac_ext=c
9216 ac_cpp='$CPP $CPPFLAGS'
9217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9221 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9222 # On Suns, sometimes $CPP names a directory.
9223 if test -n "$CPP" && test -d "$CPP"; then
9224 CPP=
9225 fi
9226 if test -z "$CPP"; then
9227 if ${ac_cv_prog_CPP+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 # Double quotes because CPP needs to be expanded
9231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9232 do
9233 ac_preproc_ok=false
9234 for ac_c_preproc_warn_flag in '' yes
9235 do
9236 # Use a header file that comes with gcc, so configuring glibc
9237 # with a fresh cross-compiler works.
9238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9239 # <limits.h> exists even on freestanding compilers.
9240 # On the NeXT, cc -E runs the code through the compiler's parser,
9241 # not just through cpp. "Syntax error" is here to catch this case.
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244 #ifdef __STDC__
9245 # include <limits.h>
9246 #else
9247 # include <assert.h>
9248 #endif
9249 Syntax error
9250 _ACEOF
9251 if ac_fn_c_try_cpp "$LINENO"; then :
9252
9253 else
9254 # Broken: fails on valid input.
9255 continue
9256 fi
9257 rm -f conftest.err conftest.i conftest.$ac_ext
9258
9259 # OK, works on sane cases. Now check whether nonexistent headers
9260 # can be detected and how.
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9263 #include <ac_nonexistent.h>
9264 _ACEOF
9265 if ac_fn_c_try_cpp "$LINENO"; then :
9266 # Broken: success on invalid input.
9267 continue
9268 else
9269 # Passes both tests.
9270 ac_preproc_ok=:
9271 break
9272 fi
9273 rm -f conftest.err conftest.i conftest.$ac_ext
9274
9275 done
9276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9277 rm -f conftest.i conftest.err conftest.$ac_ext
9278 if $ac_preproc_ok; then :
9279 break
9280 fi
9281
9282 done
9283 ac_cv_prog_CPP=$CPP
9284
9285 fi
9286 CPP=$ac_cv_prog_CPP
9287 else
9288 ac_cv_prog_CPP=$CPP
9289 fi
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9291 $as_echo "$CPP" >&6; }
9292 ac_preproc_ok=false
9293 for ac_c_preproc_warn_flag in '' yes
9294 do
9295 # Use a header file that comes with gcc, so configuring glibc
9296 # with a fresh cross-compiler works.
9297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9298 # <limits.h> exists even on freestanding compilers.
9299 # On the NeXT, cc -E runs the code through the compiler's parser,
9300 # not just through cpp. "Syntax error" is here to catch this case.
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 #ifdef __STDC__
9304 # include <limits.h>
9305 #else
9306 # include <assert.h>
9307 #endif
9308 Syntax error
9309 _ACEOF
9310 if ac_fn_c_try_cpp "$LINENO"; then :
9311
9312 else
9313 # Broken: fails on valid input.
9314 continue
9315 fi
9316 rm -f conftest.err conftest.i conftest.$ac_ext
9317
9318 # OK, works on sane cases. Now check whether nonexistent headers
9319 # can be detected and how.
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 #include <ac_nonexistent.h>
9323 _ACEOF
9324 if ac_fn_c_try_cpp "$LINENO"; then :
9325 # Broken: success on invalid input.
9326 continue
9327 else
9328 # Passes both tests.
9329 ac_preproc_ok=:
9330 break
9331 fi
9332 rm -f conftest.err conftest.i conftest.$ac_ext
9333
9334 done
9335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9336 rm -f conftest.i conftest.err conftest.$ac_ext
9337 if $ac_preproc_ok; then :
9338
9339 else
9340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9342 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9343 See \`config.log' for more details" "$LINENO" 5; }
9344 fi
9345
9346 ac_ext=c
9347 ac_cpp='$CPP $CPPFLAGS'
9348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9351
9352
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9354 $as_echo_n "checking for ANSI C header files... " >&6; }
9355 if ${ac_cv_header_stdc+:} false; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 #include <stdlib.h>
9361 #include <stdarg.h>
9362 #include <string.h>
9363 #include <float.h>
9364
9365 int
9366 main ()
9367 {
9368
9369 ;
9370 return 0;
9371 }
9372 _ACEOF
9373 if ac_fn_c_try_compile "$LINENO"; then :
9374 ac_cv_header_stdc=yes
9375 else
9376 ac_cv_header_stdc=no
9377 fi
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379
9380 if test $ac_cv_header_stdc = yes; then
9381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 #include <string.h>
9385
9386 _ACEOF
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388 $EGREP "memchr" >/dev/null 2>&1; then :
9389
9390 else
9391 ac_cv_header_stdc=no
9392 fi
9393 rm -f conftest*
9394
9395 fi
9396
9397 if test $ac_cv_header_stdc = yes; then
9398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 #include <stdlib.h>
9402
9403 _ACEOF
9404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9405 $EGREP "free" >/dev/null 2>&1; then :
9406
9407 else
9408 ac_cv_header_stdc=no
9409 fi
9410 rm -f conftest*
9411
9412 fi
9413
9414 if test $ac_cv_header_stdc = yes; then
9415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9416 if test "$cross_compiling" = yes; then :
9417 :
9418 else
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 #include <ctype.h>
9422 #include <stdlib.h>
9423 #if ((' ' & 0x0FF) == 0x020)
9424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9426 #else
9427 # define ISLOWER(c) \
9428 (('a' <= (c) && (c) <= 'i') \
9429 || ('j' <= (c) && (c) <= 'r') \
9430 || ('s' <= (c) && (c) <= 'z'))
9431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9432 #endif
9433
9434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9435 int
9436 main ()
9437 {
9438 int i;
9439 for (i = 0; i < 256; i++)
9440 if (XOR (islower (i), ISLOWER (i))
9441 || toupper (i) != TOUPPER (i))
9442 return 2;
9443 return 0;
9444 }
9445 _ACEOF
9446 if ac_fn_c_try_run "$LINENO"; then :
9447
9448 else
9449 ac_cv_header_stdc=no
9450 fi
9451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9452 conftest.$ac_objext conftest.beam conftest.$ac_ext
9453 fi
9454
9455 fi
9456 fi
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9458 $as_echo "$ac_cv_header_stdc" >&6; }
9459 if test $ac_cv_header_stdc = yes; then
9460
9461 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9462
9463 fi
9464
9465 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9466 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9467 inttypes.h stdint.h unistd.h
9468 do :
9469 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9470 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9471 "
9472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9473 cat >>confdefs.h <<_ACEOF
9474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9475 _ACEOF
9476
9477 fi
9478
9479 done
9480
9481
9482 for ac_header in dlfcn.h
9483 do :
9484 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9485 "
9486 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9487 cat >>confdefs.h <<_ACEOF
9488 #define HAVE_DLFCN_H 1
9489 _ACEOF
9490
9491 fi
9492
9493 done
9494
9495
9496
9497
9498
9499 # Set options
9500
9501
9502
9503 enable_dlopen=no
9504
9505
9506 enable_win32_dll=no
9507
9508
9509 # Check whether --enable-shared was given.
9510 if test "${enable_shared+set}" = set; then :
9511 enableval=$enable_shared; p=${PACKAGE-default}
9512 case $enableval in
9513 yes) enable_shared=yes ;;
9514 no) enable_shared=no ;;
9515 *)
9516 enable_shared=no
9517 # Look at the argument we got. We use all the common list separators.
9518 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9519 for pkg in $enableval; do
9520 IFS=$lt_save_ifs
9521 if test "X$pkg" = "X$p"; then
9522 enable_shared=yes
9523 fi
9524 done
9525 IFS=$lt_save_ifs
9526 ;;
9527 esac
9528 else
9529 enable_shared=yes
9530 fi
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540 # Check whether --enable-static was given.
9541 if test "${enable_static+set}" = set; then :
9542 enableval=$enable_static; p=${PACKAGE-default}
9543 case $enableval in
9544 yes) enable_static=yes ;;
9545 no) enable_static=no ;;
9546 *)
9547 enable_static=no
9548 # Look at the argument we got. We use all the common list separators.
9549 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9550 for pkg in $enableval; do
9551 IFS=$lt_save_ifs
9552 if test "X$pkg" = "X$p"; then
9553 enable_static=yes
9554 fi
9555 done
9556 IFS=$lt_save_ifs
9557 ;;
9558 esac
9559 else
9560 enable_static=yes
9561 fi
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572 # Check whether --with-pic was given.
9573 if test "${with_pic+set}" = set; then :
9574 withval=$with_pic; lt_p=${PACKAGE-default}
9575 case $withval in
9576 yes|no) pic_mode=$withval ;;
9577 *)
9578 pic_mode=default
9579 # Look at the argument we got. We use all the common list separators.
9580 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9581 for lt_pkg in $withval; do
9582 IFS=$lt_save_ifs
9583 if test "X$lt_pkg" = "X$lt_p"; then
9584 pic_mode=yes
9585 fi
9586 done
9587 IFS=$lt_save_ifs
9588 ;;
9589 esac
9590 else
9591 pic_mode=default
9592 fi
9593
9594
9595
9596
9597
9598
9599
9600
9601 # Check whether --enable-fast-install was given.
9602 if test "${enable_fast_install+set}" = set; then :
9603 enableval=$enable_fast_install; p=${PACKAGE-default}
9604 case $enableval in
9605 yes) enable_fast_install=yes ;;
9606 no) enable_fast_install=no ;;
9607 *)
9608 enable_fast_install=no
9609 # Look at the argument we got. We use all the common list separators.
9610 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9611 for pkg in $enableval; do
9612 IFS=$lt_save_ifs
9613 if test "X$pkg" = "X$p"; then
9614 enable_fast_install=yes
9615 fi
9616 done
9617 IFS=$lt_save_ifs
9618 ;;
9619 esac
9620 else
9621 enable_fast_install=yes
9622 fi
9623
9624
9625
9626
9627
9628
9629
9630
9631 shared_archive_member_spec=
9632 case $host,$enable_shared in
9633 power*-*-aix[5-9]*,yes)
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9635 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9636
9637 # Check whether --with-aix-soname was given.
9638 if test "${with_aix_soname+set}" = set; then :
9639 withval=$with_aix_soname; case $withval in
9640 aix|svr4|both)
9641 ;;
9642 *)
9643 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9644 ;;
9645 esac
9646 lt_cv_with_aix_soname=$with_aix_soname
9647 else
9648 if ${lt_cv_with_aix_soname+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 lt_cv_with_aix_soname=aix
9652 fi
9653
9654 with_aix_soname=$lt_cv_with_aix_soname
9655 fi
9656
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9658 $as_echo "$with_aix_soname" >&6; }
9659 if test aix != "$with_aix_soname"; then
9660 # For the AIX way of multilib, we name the shared archive member
9661 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9662 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9663 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9664 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9665 if test 64 = "${OBJECT_MODE-32}"; then
9666 shared_archive_member_spec=shr_64
9667 else
9668 shared_archive_member_spec=shr
9669 fi
9670 fi
9671 ;;
9672 *)
9673 with_aix_soname=aix
9674 ;;
9675 esac
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686 # This can be used to rebuild libtool when needed
9687 LIBTOOL_DEPS=$ltmain
9688
9689 # Always use our own libtool.
9690 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721 test -z "$LN_S" && LN_S="ln -s"
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736 if test -n "${ZSH_VERSION+set}"; then
9737 setopt NO_GLOB_SUBST
9738 fi
9739
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9741 $as_echo_n "checking for objdir... " >&6; }
9742 if ${lt_cv_objdir+:} false; then :
9743 $as_echo_n "(cached) " >&6
9744 else
9745 rm -f .libs 2>/dev/null
9746 mkdir .libs 2>/dev/null
9747 if test -d .libs; then
9748 lt_cv_objdir=.libs
9749 else
9750 # MS-DOS does not allow filenames that begin with a dot.
9751 lt_cv_objdir=_libs
9752 fi
9753 rmdir .libs 2>/dev/null
9754 fi
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9756 $as_echo "$lt_cv_objdir" >&6; }
9757 objdir=$lt_cv_objdir
9758
9759
9760
9761
9762
9763 cat >>confdefs.h <<_ACEOF
9764 #define LT_OBJDIR "$lt_cv_objdir/"
9765 _ACEOF
9766
9767
9768
9769
9770 case $host_os in
9771 aix3*)
9772 # AIX sometimes has problems with the GCC collect2 program. For some
9773 # reason, if we set the COLLECT_NAMES environment variable, the problems
9774 # vanish in a puff of smoke.
9775 if test set != "${COLLECT_NAMES+set}"; then
9776 COLLECT_NAMES=
9777 export COLLECT_NAMES
9778 fi
9779 ;;
9780 esac
9781
9782 # Global variables:
9783 ofile=libtool
9784 can_build_shared=yes
9785
9786 # All known linkers require a '.a' archive for static linking (except MSVC,
9787 # which needs '.lib').
9788 libext=a
9789
9790 with_gnu_ld=$lt_cv_prog_gnu_ld
9791
9792 old_CC=$CC
9793 old_CFLAGS=$CFLAGS
9794
9795 # Set sane defaults for various variables
9796 test -z "$CC" && CC=cc
9797 test -z "$LTCC" && LTCC=$CC
9798 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9799 test -z "$LD" && LD=ld
9800 test -z "$ac_objext" && ac_objext=o
9801
9802 func_cc_basename $compiler
9803 cc_basename=$func_cc_basename_result
9804
9805
9806 # Only perform the check for file, if the check method requires it
9807 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9808 case $deplibs_check_method in
9809 file_magic*)
9810 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9812 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9813 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 case $MAGIC_CMD in
9817 [\\/*] | ?:[\\/]*)
9818 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9819 ;;
9820 *)
9821 lt_save_MAGIC_CMD=$MAGIC_CMD
9822 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9824 for ac_dir in $ac_dummy; do
9825 IFS=$lt_save_ifs
9826 test -z "$ac_dir" && ac_dir=.
9827 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9828 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9829 if test -n "$file_magic_test_file"; then
9830 case $deplibs_check_method in
9831 "file_magic "*)
9832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9833 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9835 $EGREP "$file_magic_regex" > /dev/null; then
9836 :
9837 else
9838 cat <<_LT_EOF 1>&2
9839
9840 *** Warning: the command libtool uses to detect shared libraries,
9841 *** $file_magic_cmd, produces output that libtool cannot recognize.
9842 *** The result is that libtool may fail to recognize shared libraries
9843 *** as such. This will affect the creation of libtool libraries that
9844 *** depend on shared libraries, but programs linked with such libtool
9845 *** libraries will work regardless of this problem. Nevertheless, you
9846 *** may want to report the problem to your system manager and/or to
9847 *** [email protected]
9848
9849 _LT_EOF
9850 fi ;;
9851 esac
9852 fi
9853 break
9854 fi
9855 done
9856 IFS=$lt_save_ifs
9857 MAGIC_CMD=$lt_save_MAGIC_CMD
9858 ;;
9859 esac
9860 fi
9861
9862 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9863 if test -n "$MAGIC_CMD"; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9865 $as_echo "$MAGIC_CMD" >&6; }
9866 else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9869 fi
9870
9871
9872
9873
9874
9875 if test -z "$lt_cv_path_MAGIC_CMD"; then
9876 if test -n "$ac_tool_prefix"; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9878 $as_echo_n "checking for file... " >&6; }
9879 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 case $MAGIC_CMD in
9883 [\\/*] | ?:[\\/]*)
9884 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9885 ;;
9886 *)
9887 lt_save_MAGIC_CMD=$MAGIC_CMD
9888 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9890 for ac_dir in $ac_dummy; do
9891 IFS=$lt_save_ifs
9892 test -z "$ac_dir" && ac_dir=.
9893 if test -f "$ac_dir/file"; then
9894 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9895 if test -n "$file_magic_test_file"; then
9896 case $deplibs_check_method in
9897 "file_magic "*)
9898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9899 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9901 $EGREP "$file_magic_regex" > /dev/null; then
9902 :
9903 else
9904 cat <<_LT_EOF 1>&2
9905
9906 *** Warning: the command libtool uses to detect shared libraries,
9907 *** $file_magic_cmd, produces output that libtool cannot recognize.
9908 *** The result is that libtool may fail to recognize shared libraries
9909 *** as such. This will affect the creation of libtool libraries that
9910 *** depend on shared libraries, but programs linked with such libtool
9911 *** libraries will work regardless of this problem. Nevertheless, you
9912 *** may want to report the problem to your system manager and/or to
9913 *** [email protected]
9914
9915 _LT_EOF
9916 fi ;;
9917 esac
9918 fi
9919 break
9920 fi
9921 done
9922 IFS=$lt_save_ifs
9923 MAGIC_CMD=$lt_save_MAGIC_CMD
9924 ;;
9925 esac
9926 fi
9927
9928 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9929 if test -n "$MAGIC_CMD"; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9931 $as_echo "$MAGIC_CMD" >&6; }
9932 else
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; }
9935 fi
9936
9937
9938 else
9939 MAGIC_CMD=:
9940 fi
9941 fi
9942
9943 fi
9944 ;;
9945 esac
9946
9947 # Use C for the default configuration in the libtool script
9948
9949 lt_save_CC=$CC
9950 ac_ext=c
9951 ac_cpp='$CPP $CPPFLAGS'
9952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9955
9956
9957 # Source file extension for C test sources.
9958 ac_ext=c
9959
9960 # Object file extension for compiled C test sources.
9961 objext=o
9962 objext=$objext
9963
9964 # Code to be used in simple compile tests
9965 lt_simple_compile_test_code="int some_variable = 0;"
9966
9967 # Code to be used in simple link tests
9968 lt_simple_link_test_code='int main(){return(0);}'
9969
9970
9971
9972
9973
9974
9975
9976 # If no C compiler was specified, use CC.
9977 LTCC=${LTCC-"$CC"}
9978
9979 # If no C compiler flags were specified, use CFLAGS.
9980 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9981
9982 # Allow CC to be a program name with arguments.
9983 compiler=$CC
9984
9985 # Save the default compiler, since it gets overwritten when the other
9986 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9987 compiler_DEFAULT=$CC
9988
9989 # save warnings/boilerplate of simple test code
9990 ac_outfile=conftest.$ac_objext
9991 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9992 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9993 _lt_compiler_boilerplate=`cat conftest.err`
9994 $RM conftest*
9995
9996 ac_outfile=conftest.$ac_objext
9997 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9998 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9999 _lt_linker_boilerplate=`cat conftest.err`
10000 $RM -r conftest*
10001
10002
10003 ## CAVEAT EMPTOR:
10004 ## There is no encapsulation within the following macros, do not change
10005 ## the running order or otherwise move them around unless you know exactly
10006 ## what you are doing...
10007 if test -n "$compiler"; then
10008
10009 lt_prog_compiler_no_builtin_flag=
10010
10011 if test yes = "$GCC"; then
10012 case $cc_basename in
10013 nvcc*)
10014 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10015 *)
10016 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10017 esac
10018
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10020 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10021 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 lt_cv_prog_compiler_rtti_exceptions=no
10025 ac_outfile=conftest.$ac_objext
10026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10027 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10028 # Insert the option either (1) after the last *FLAGS variable, or
10029 # (2) before a word containing "conftest.", or (3) at the end.
10030 # Note that $ac_compile itself does not contain backslashes and begins
10031 # with a dollar sign (not a hyphen), so the echo should work correctly.
10032 # The option is referenced via a variable to avoid confusing sed.
10033 lt_compile=`echo "$ac_compile" | $SED \
10034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10036 -e 's:$: $lt_compiler_flag:'`
10037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10038 (eval "$lt_compile" 2>conftest.err)
10039 ac_status=$?
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 if (exit $ac_status) && test -s "$ac_outfile"; then
10043 # The compiler can only warn and ignore the option if not recognized
10044 # So say no if there are warnings other than the usual output.
10045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10048 lt_cv_prog_compiler_rtti_exceptions=yes
10049 fi
10050 fi
10051 $RM conftest*
10052
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10055 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10056
10057 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10058 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10059 else
10060 :
10061 fi
10062
10063 fi
10064
10065
10066
10067
10068
10069
10070 lt_prog_compiler_wl=
10071 lt_prog_compiler_pic=
10072 lt_prog_compiler_static=
10073
10074
10075 if test yes = "$GCC"; then
10076 lt_prog_compiler_wl='-Wl,'
10077 lt_prog_compiler_static='-static'
10078
10079 case $host_os in
10080 aix*)
10081 # All AIX code is PIC.
10082 if test ia64 = "$host_cpu"; then
10083 # AIX 5 now supports IA64 processor
10084 lt_prog_compiler_static='-Bstatic'
10085 fi
10086 lt_prog_compiler_pic='-fPIC'
10087 ;;
10088
10089 amigaos*)
10090 case $host_cpu in
10091 powerpc)
10092 # see comment about AmigaOS4 .so support
10093 lt_prog_compiler_pic='-fPIC'
10094 ;;
10095 m68k)
10096 # FIXME: we need at least 68020 code to build shared libraries, but
10097 # adding the '-m68020' flag to GCC prevents building anything better,
10098 # like '-m68040'.
10099 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10100 ;;
10101 esac
10102 ;;
10103
10104 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10105 # PIC is the default for these OSes.
10106 ;;
10107
10108 mingw* | cygwin* | pw32* | os2* | cegcc*)
10109 # This hack is so that the source file can tell whether it is being
10110 # built for inclusion in a dll (and should export symbols for example).
10111 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10112 # (--disable-auto-import) libraries
10113 lt_prog_compiler_pic='-DDLL_EXPORT'
10114 case $host_os in
10115 os2*)
10116 lt_prog_compiler_static='$wl-static'
10117 ;;
10118 esac
10119 ;;
10120
10121 darwin* | rhapsody*)
10122 # PIC is the default on this platform
10123 # Common symbols not allowed in MH_DYLIB files
10124 lt_prog_compiler_pic='-fno-common'
10125 ;;
10126
10127 haiku*)
10128 # PIC is the default for Haiku.
10129 # The "-static" flag exists, but is broken.
10130 lt_prog_compiler_static=
10131 ;;
10132
10133 hpux*)
10134 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10135 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10136 # sets the default TLS model and affects inlining.
10137 case $host_cpu in
10138 hppa*64*)
10139 # +Z the default
10140 ;;
10141 *)
10142 lt_prog_compiler_pic='-fPIC'
10143 ;;
10144 esac
10145 ;;
10146
10147 interix[3-9]*)
10148 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10149 # Instead, we relocate shared libraries at runtime.
10150 ;;
10151
10152 msdosdjgpp*)
10153 # Just because we use GCC doesn't mean we suddenly get shared libraries
10154 # on systems that don't support them.
10155 lt_prog_compiler_can_build_shared=no
10156 enable_shared=no
10157 ;;
10158
10159 *nto* | *qnx*)
10160 # QNX uses GNU C++, but need to define -shared option too, otherwise
10161 # it will coredump.
10162 lt_prog_compiler_pic='-fPIC -shared'
10163 ;;
10164
10165 sysv4*MP*)
10166 if test -d /usr/nec; then
10167 lt_prog_compiler_pic=-Kconform_pic
10168 fi
10169 ;;
10170
10171 *)
10172 lt_prog_compiler_pic='-fPIC'
10173 ;;
10174 esac
10175
10176 case $cc_basename in
10177 nvcc*) # Cuda Compiler Driver 2.2
10178 lt_prog_compiler_wl='-Xlinker '
10179 if test -n "$lt_prog_compiler_pic"; then
10180 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10181 fi
10182 ;;
10183 esac
10184 else
10185 # PORTME Check for flag to pass linker flags through the system compiler.
10186 case $host_os in
10187 aix*)
10188 lt_prog_compiler_wl='-Wl,'
10189 if test ia64 = "$host_cpu"; then
10190 # AIX 5 now supports IA64 processor
10191 lt_prog_compiler_static='-Bstatic'
10192 else
10193 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10194 fi
10195 ;;
10196
10197 darwin* | rhapsody*)
10198 # PIC is the default on this platform
10199 # Common symbols not allowed in MH_DYLIB files
10200 lt_prog_compiler_pic='-fno-common'
10201 case $cc_basename in
10202 nagfor*)
10203 # NAG Fortran compiler
10204 lt_prog_compiler_wl='-Wl,-Wl,,'
10205 lt_prog_compiler_pic='-PIC'
10206 lt_prog_compiler_static='-Bstatic'
10207 ;;
10208 esac
10209 ;;
10210
10211 mingw* | cygwin* | pw32* | os2* | cegcc*)
10212 # This hack is so that the source file can tell whether it is being
10213 # built for inclusion in a dll (and should export symbols for example).
10214 lt_prog_compiler_pic='-DDLL_EXPORT'
10215 case $host_os in
10216 os2*)
10217 lt_prog_compiler_static='$wl-static'
10218 ;;
10219 esac
10220 ;;
10221
10222 hpux9* | hpux10* | hpux11*)
10223 lt_prog_compiler_wl='-Wl,'
10224 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10225 # not for PA HP-UX.
10226 case $host_cpu in
10227 hppa*64*|ia64*)
10228 # +Z the default
10229 ;;
10230 *)
10231 lt_prog_compiler_pic='+Z'
10232 ;;
10233 esac
10234 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10235 lt_prog_compiler_static='$wl-a ${wl}archive'
10236 ;;
10237
10238 irix5* | irix6* | nonstopux*)
10239 lt_prog_compiler_wl='-Wl,'
10240 # PIC (with -KPIC) is the default.
10241 lt_prog_compiler_static='-non_shared'
10242 ;;
10243
10244 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10245 case $cc_basename in
10246 # old Intel for x86_64, which still supported -KPIC.
10247 ecc*)
10248 lt_prog_compiler_wl='-Wl,'
10249 lt_prog_compiler_pic='-KPIC'
10250 lt_prog_compiler_static='-static'
10251 ;;
10252 # icc used to be incompatible with GCC.
10253 # ICC 10 doesn't accept -KPIC any more.
10254 icc* | ifort*)
10255 lt_prog_compiler_wl='-Wl,'
10256 lt_prog_compiler_pic='-fPIC'
10257 lt_prog_compiler_static='-static'
10258 ;;
10259 # Lahey Fortran 8.1.
10260 lf95*)
10261 lt_prog_compiler_wl='-Wl,'
10262 lt_prog_compiler_pic='--shared'
10263 lt_prog_compiler_static='--static'
10264 ;;
10265 nagfor*)
10266 # NAG Fortran compiler
10267 lt_prog_compiler_wl='-Wl,-Wl,,'
10268 lt_prog_compiler_pic='-PIC'
10269 lt_prog_compiler_static='-Bstatic'
10270 ;;
10271 tcc*)
10272 # Fabrice Bellard et al's Tiny C Compiler
10273 lt_prog_compiler_wl='-Wl,'
10274 lt_prog_compiler_pic='-fPIC'
10275 lt_prog_compiler_static='-static'
10276 ;;
10277 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10278 # Portland Group compilers (*not* the Pentium gcc compiler,
10279 # which looks to be a dead project)
10280 lt_prog_compiler_wl='-Wl,'
10281 lt_prog_compiler_pic='-fpic'
10282 lt_prog_compiler_static='-Bstatic'
10283 ;;
10284 ccc*)
10285 lt_prog_compiler_wl='-Wl,'
10286 # All Alpha code is PIC.
10287 lt_prog_compiler_static='-non_shared'
10288 ;;
10289 xl* | bgxl* | bgf* | mpixl*)
10290 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10291 lt_prog_compiler_wl='-Wl,'
10292 lt_prog_compiler_pic='-qpic'
10293 lt_prog_compiler_static='-qstaticlink'
10294 ;;
10295 *)
10296 case `$CC -V 2>&1 | sed 5q` in
10297 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10298 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10299 lt_prog_compiler_pic='-KPIC'
10300 lt_prog_compiler_static='-Bstatic'
10301 lt_prog_compiler_wl=''
10302 ;;
10303 *Sun\ F* | *Sun*Fortran*)
10304 lt_prog_compiler_pic='-KPIC'
10305 lt_prog_compiler_static='-Bstatic'
10306 lt_prog_compiler_wl='-Qoption ld '
10307 ;;
10308 *Sun\ C*)
10309 # Sun C 5.9
10310 lt_prog_compiler_pic='-KPIC'
10311 lt_prog_compiler_static='-Bstatic'
10312 lt_prog_compiler_wl='-Wl,'
10313 ;;
10314 *Intel*\ [CF]*Compiler*)
10315 lt_prog_compiler_wl='-Wl,'
10316 lt_prog_compiler_pic='-fPIC'
10317 lt_prog_compiler_static='-static'
10318 ;;
10319 *Portland\ Group*)
10320 lt_prog_compiler_wl='-Wl,'
10321 lt_prog_compiler_pic='-fpic'
10322 lt_prog_compiler_static='-Bstatic'
10323 ;;
10324 esac
10325 ;;
10326 esac
10327 ;;
10328
10329 newsos6)
10330 lt_prog_compiler_pic='-KPIC'
10331 lt_prog_compiler_static='-Bstatic'
10332 ;;
10333
10334 *nto* | *qnx*)
10335 # QNX uses GNU C++, but need to define -shared option too, otherwise
10336 # it will coredump.
10337 lt_prog_compiler_pic='-fPIC -shared'
10338 ;;
10339
10340 osf3* | osf4* | osf5*)
10341 lt_prog_compiler_wl='-Wl,'
10342 # All OSF/1 code is PIC.
10343 lt_prog_compiler_static='-non_shared'
10344 ;;
10345
10346 rdos*)
10347 lt_prog_compiler_static='-non_shared'
10348 ;;
10349
10350 solaris*)
10351 lt_prog_compiler_pic='-KPIC'
10352 lt_prog_compiler_static='-Bstatic'
10353 case $cc_basename in
10354 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10355 lt_prog_compiler_wl='-Qoption ld ';;
10356 *)
10357 lt_prog_compiler_wl='-Wl,';;
10358 esac
10359 ;;
10360
10361 sunos4*)
10362 lt_prog_compiler_wl='-Qoption ld '
10363 lt_prog_compiler_pic='-PIC'
10364 lt_prog_compiler_static='-Bstatic'
10365 ;;
10366
10367 sysv4 | sysv4.2uw2* | sysv4.3*)
10368 lt_prog_compiler_wl='-Wl,'
10369 lt_prog_compiler_pic='-KPIC'
10370 lt_prog_compiler_static='-Bstatic'
10371 ;;
10372
10373 sysv4*MP*)
10374 if test -d /usr/nec; then
10375 lt_prog_compiler_pic='-Kconform_pic'
10376 lt_prog_compiler_static='-Bstatic'
10377 fi
10378 ;;
10379
10380 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10381 lt_prog_compiler_wl='-Wl,'
10382 lt_prog_compiler_pic='-KPIC'
10383 lt_prog_compiler_static='-Bstatic'
10384 ;;
10385
10386 unicos*)
10387 lt_prog_compiler_wl='-Wl,'
10388 lt_prog_compiler_can_build_shared=no
10389 ;;
10390
10391 uts4*)
10392 lt_prog_compiler_pic='-pic'
10393 lt_prog_compiler_static='-Bstatic'
10394 ;;
10395
10396 *)
10397 lt_prog_compiler_can_build_shared=no
10398 ;;
10399 esac
10400 fi
10401
10402 case $host_os in
10403 # For platforms that do not support PIC, -DPIC is meaningless:
10404 *djgpp*)
10405 lt_prog_compiler_pic=
10406 ;;
10407 *)
10408 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10409 ;;
10410 esac
10411
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10413 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10414 if ${lt_cv_prog_compiler_pic+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10418 fi
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10420 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10421 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10422
10423 #
10424 # Check to make sure the PIC flag actually works.
10425 #
10426 if test -n "$lt_prog_compiler_pic"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10428 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10429 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 lt_cv_prog_compiler_pic_works=no
10433 ac_outfile=conftest.$ac_objext
10434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10435 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10436 # Insert the option either (1) after the last *FLAGS variable, or
10437 # (2) before a word containing "conftest.", or (3) at the end.
10438 # Note that $ac_compile itself does not contain backslashes and begins
10439 # with a dollar sign (not a hyphen), so the echo should work correctly.
10440 # The option is referenced via a variable to avoid confusing sed.
10441 lt_compile=`echo "$ac_compile" | $SED \
10442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10444 -e 's:$: $lt_compiler_flag:'`
10445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10446 (eval "$lt_compile" 2>conftest.err)
10447 ac_status=$?
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 if (exit $ac_status) && test -s "$ac_outfile"; then
10451 # The compiler can only warn and ignore the option if not recognized
10452 # So say no if there are warnings other than the usual output.
10453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10456 lt_cv_prog_compiler_pic_works=yes
10457 fi
10458 fi
10459 $RM conftest*
10460
10461 fi
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10463 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10464
10465 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10466 case $lt_prog_compiler_pic in
10467 "" | " "*) ;;
10468 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10469 esac
10470 else
10471 lt_prog_compiler_pic=
10472 lt_prog_compiler_can_build_shared=no
10473 fi
10474
10475 fi
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487 #
10488 # Check to make sure the static flag actually works.
10489 #
10490 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10492 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10493 if ${lt_cv_prog_compiler_static_works+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 lt_cv_prog_compiler_static_works=no
10497 save_LDFLAGS=$LDFLAGS
10498 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10499 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10500 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10501 # The linker can only warn and ignore the option if not recognized
10502 # So say no if there are warnings
10503 if test -s conftest.err; then
10504 # Append any errors to the config.log.
10505 cat conftest.err 1>&5
10506 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10508 if diff conftest.exp conftest.er2 >/dev/null; then
10509 lt_cv_prog_compiler_static_works=yes
10510 fi
10511 else
10512 lt_cv_prog_compiler_static_works=yes
10513 fi
10514 fi
10515 $RM -r conftest*
10516 LDFLAGS=$save_LDFLAGS
10517
10518 fi
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10520 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10521
10522 if test yes = "$lt_cv_prog_compiler_static_works"; then
10523 :
10524 else
10525 lt_prog_compiler_static=
10526 fi
10527
10528
10529
10530
10531
10532
10533
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10535 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10536 if ${lt_cv_prog_compiler_c_o+:} false; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 lt_cv_prog_compiler_c_o=no
10540 $RM -r conftest 2>/dev/null
10541 mkdir conftest
10542 cd conftest
10543 mkdir out
10544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10545
10546 lt_compiler_flag="-o out/conftest2.$ac_objext"
10547 # Insert the option either (1) after the last *FLAGS variable, or
10548 # (2) before a word containing "conftest.", or (3) at the end.
10549 # Note that $ac_compile itself does not contain backslashes and begins
10550 # with a dollar sign (not a hyphen), so the echo should work correctly.
10551 lt_compile=`echo "$ac_compile" | $SED \
10552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10554 -e 's:$: $lt_compiler_flag:'`
10555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10556 (eval "$lt_compile" 2>out/conftest.err)
10557 ac_status=$?
10558 cat out/conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10561 then
10562 # The compiler can only warn and ignore the option if not recognized
10563 # So say no if there are warnings
10564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10565 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10566 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10567 lt_cv_prog_compiler_c_o=yes
10568 fi
10569 fi
10570 chmod u+w . 2>&5
10571 $RM conftest*
10572 # SGI C++ compiler will create directory out/ii_files/ for
10573 # template instantiation
10574 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10575 $RM out/* && rmdir out
10576 cd ..
10577 $RM -r conftest
10578 $RM conftest*
10579
10580 fi
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10582 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10583
10584
10585
10586
10587
10588
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10590 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10591 if ${lt_cv_prog_compiler_c_o+:} false; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594 lt_cv_prog_compiler_c_o=no
10595 $RM -r conftest 2>/dev/null
10596 mkdir conftest
10597 cd conftest
10598 mkdir out
10599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10600
10601 lt_compiler_flag="-o out/conftest2.$ac_objext"
10602 # Insert the option either (1) after the last *FLAGS variable, or
10603 # (2) before a word containing "conftest.", or (3) at the end.
10604 # Note that $ac_compile itself does not contain backslashes and begins
10605 # with a dollar sign (not a hyphen), so the echo should work correctly.
10606 lt_compile=`echo "$ac_compile" | $SED \
10607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10609 -e 's:$: $lt_compiler_flag:'`
10610 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10611 (eval "$lt_compile" 2>out/conftest.err)
10612 ac_status=$?
10613 cat out/conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10616 then
10617 # The compiler can only warn and ignore the option if not recognized
10618 # So say no if there are warnings
10619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10622 lt_cv_prog_compiler_c_o=yes
10623 fi
10624 fi
10625 chmod u+w . 2>&5
10626 $RM conftest*
10627 # SGI C++ compiler will create directory out/ii_files/ for
10628 # template instantiation
10629 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10630 $RM out/* && rmdir out
10631 cd ..
10632 $RM -r conftest
10633 $RM conftest*
10634
10635 fi
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10637 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10638
10639
10640
10641
10642 hard_links=nottested
10643 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10644 # do not overwrite the value of need_locks provided by the user
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10646 $as_echo_n "checking if we can lock with hard links... " >&6; }
10647 hard_links=yes
10648 $RM conftest*
10649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10650 touch conftest.a
10651 ln conftest.a conftest.b 2>&5 || hard_links=no
10652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10654 $as_echo "$hard_links" >&6; }
10655 if test no = "$hard_links"; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10657 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10658 need_locks=warn
10659 fi
10660 else
10661 need_locks=no
10662 fi
10663
10664
10665
10666
10667
10668
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10670 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10671
10672 runpath_var=
10673 allow_undefined_flag=
10674 always_export_symbols=no
10675 archive_cmds=
10676 archive_expsym_cmds=
10677 compiler_needs_object=no
10678 enable_shared_with_static_runtimes=no
10679 export_dynamic_flag_spec=
10680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10681 hardcode_automatic=no
10682 hardcode_direct=no
10683 hardcode_direct_absolute=no
10684 hardcode_libdir_flag_spec=
10685 hardcode_libdir_separator=
10686 hardcode_minus_L=no
10687 hardcode_shlibpath_var=unsupported
10688 inherit_rpath=no
10689 link_all_deplibs=unknown
10690 module_cmds=
10691 module_expsym_cmds=
10692 old_archive_from_new_cmds=
10693 old_archive_from_expsyms_cmds=
10694 thread_safe_flag_spec=
10695 whole_archive_flag_spec=
10696 # include_expsyms should be a list of space-separated symbols to be *always*
10697 # included in the symbol list
10698 include_expsyms=
10699 # exclude_expsyms can be an extended regexp of symbols to exclude
10700 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10701 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10702 # as well as any symbol that contains 'd'.
10703 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10704 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10705 # platforms (ab)use it in PIC code, but their linkers get confused if
10706 # the symbol is explicitly referenced. Since portable code cannot
10707 # rely on this symbol name, it's probably fine to never include it in
10708 # preloaded symbol tables.
10709 # Exclude shared library initialization/finalization symbols.
10710 extract_expsyms_cmds=
10711
10712 case $host_os in
10713 cygwin* | mingw* | pw32* | cegcc*)
10714 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10715 # When not using gcc, we currently assume that we are using
10716 # Microsoft Visual C++.
10717 if test yes != "$GCC"; then
10718 with_gnu_ld=no
10719 fi
10720 ;;
10721 interix*)
10722 # we just hope/assume this is gcc and not c89 (= MSVC++)
10723 with_gnu_ld=yes
10724 ;;
10725 openbsd* | bitrig*)
10726 with_gnu_ld=no
10727 ;;
10728 linux* | k*bsd*-gnu | gnu*)
10729 link_all_deplibs=no
10730 ;;
10731 esac
10732
10733 ld_shlibs=yes
10734
10735 # On some targets, GNU ld is compatible enough with the native linker
10736 # that we're better off using the native interface for both.
10737 lt_use_gnu_ld_interface=no
10738 if test yes = "$with_gnu_ld"; then
10739 case $host_os in
10740 aix*)
10741 # The AIX port of GNU ld has always aspired to compatibility
10742 # with the native linker. However, as the warning in the GNU ld
10743 # block says, versions before 2.19.5* couldn't really create working
10744 # shared libraries, regardless of the interface used.
10745 case `$LD -v 2>&1` in
10746 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10747 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10748 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10749 *)
10750 lt_use_gnu_ld_interface=yes
10751 ;;
10752 esac
10753 ;;
10754 *)
10755 lt_use_gnu_ld_interface=yes
10756 ;;
10757 esac
10758 fi
10759
10760 if test yes = "$lt_use_gnu_ld_interface"; then
10761 # If archive_cmds runs LD, not CC, wlarc should be empty
10762 wlarc='$wl'
10763
10764 # Set some defaults for GNU ld with shared library support. These
10765 # are reset later if shared libraries are not supported. Putting them
10766 # here allows them to be overridden if necessary.
10767 runpath_var=LD_RUN_PATH
10768 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10769 export_dynamic_flag_spec='$wl--export-dynamic'
10770 # ancient GNU ld didn't support --whole-archive et. al.
10771 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10772 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10773 else
10774 whole_archive_flag_spec=
10775 fi
10776 supports_anon_versioning=no
10777 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10778 *GNU\ gold*) supports_anon_versioning=yes ;;
10779 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10780 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10781 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10782 *\ 2.11.*) ;; # other 2.11 versions
10783 *) supports_anon_versioning=yes ;;
10784 esac
10785
10786 # See if GNU ld supports shared libraries.
10787 case $host_os in
10788 aix[3-9]*)
10789 # On AIX/PPC, the GNU linker is very broken
10790 if test ia64 != "$host_cpu"; then
10791 ld_shlibs=no
10792 cat <<_LT_EOF 1>&2
10793
10794 *** Warning: the GNU linker, at least up to release 2.19, is reported
10795 *** to be unable to reliably create shared libraries on AIX.
10796 *** Therefore, libtool is disabling shared libraries support. If you
10797 *** really care for shared libraries, you may want to install binutils
10798 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10799 *** You will then need to restart the configuration process.
10800
10801 _LT_EOF
10802 fi
10803 ;;
10804
10805 amigaos*)
10806 case $host_cpu in
10807 powerpc)
10808 # see comment about AmigaOS4 .so support
10809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10810 archive_expsym_cmds=''
10811 ;;
10812 m68k)
10813 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)'
10814 hardcode_libdir_flag_spec='-L$libdir'
10815 hardcode_minus_L=yes
10816 ;;
10817 esac
10818 ;;
10819
10820 beos*)
10821 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10822 allow_undefined_flag=unsupported
10823 # Joseph Beckenbach <[email protected]> says some releases of gcc
10824 # support --undefined. This deserves some investigation. FIXME
10825 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10826 else
10827 ld_shlibs=no
10828 fi
10829 ;;
10830
10831 cygwin* | mingw* | pw32* | cegcc*)
10832 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10833 # as there is no search path for DLLs.
10834 hardcode_libdir_flag_spec='-L$libdir'
10835 export_dynamic_flag_spec='$wl--export-all-symbols'
10836 allow_undefined_flag=unsupported
10837 always_export_symbols=no
10838 enable_shared_with_static_runtimes=yes
10839 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'
10840 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10841
10842 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10844 # If the export-symbols file already is a .def file, use it as
10845 # is; otherwise, prepend EXPORTS...
10846 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10847 cp $export_symbols $output_objdir/$soname.def;
10848 else
10849 echo EXPORTS > $output_objdir/$soname.def;
10850 cat $export_symbols >> $output_objdir/$soname.def;
10851 fi~
10852 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10853 else
10854 ld_shlibs=no
10855 fi
10856 ;;
10857
10858 haiku*)
10859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10860 link_all_deplibs=yes
10861 ;;
10862
10863 os2*)
10864 hardcode_libdir_flag_spec='-L$libdir'
10865 hardcode_minus_L=yes
10866 allow_undefined_flag=unsupported
10867 shrext_cmds=.dll
10868 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10869 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10870 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10871 $ECHO EXPORTS >> $output_objdir/$libname.def~
10872 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10873 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10874 emximp -o $lib $output_objdir/$libname.def'
10875 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10876 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10877 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10878 $ECHO EXPORTS >> $output_objdir/$libname.def~
10879 prefix_cmds="$SED"~
10880 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10881 prefix_cmds="$prefix_cmds -e 1d";
10882 fi~
10883 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10884 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10885 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10886 emximp -o $lib $output_objdir/$libname.def'
10887 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10888 enable_shared_with_static_runtimes=yes
10889 ;;
10890
10891 interix[3-9]*)
10892 hardcode_direct=no
10893 hardcode_shlibpath_var=no
10894 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10895 export_dynamic_flag_spec='$wl-E'
10896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10897 # Instead, shared libraries are loaded at an image base (0x10000000 by
10898 # default) and relocated if they conflict, which is a slow very memory
10899 # consuming and fragmenting process. To avoid this, we pick a random,
10900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10901 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10903 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'
10904 ;;
10905
10906 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10907 tmp_diet=no
10908 if test linux-dietlibc = "$host_os"; then
10909 case $cc_basename in
10910 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10911 esac
10912 fi
10913 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10914 && test no = "$tmp_diet"
10915 then
10916 tmp_addflag=' $pic_flag'
10917 tmp_sharedflag='-shared'
10918 case $cc_basename,$host_cpu in
10919 pgcc*) # Portland Group C compiler
10920 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'
10921 tmp_addflag=' $pic_flag'
10922 ;;
10923 pgf77* | pgf90* | pgf95* | pgfortran*)
10924 # Portland Group f77 and f90 compilers
10925 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'
10926 tmp_addflag=' $pic_flag -Mnomain' ;;
10927 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10928 tmp_addflag=' -i_dynamic' ;;
10929 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10930 tmp_addflag=' -i_dynamic -nofor_main' ;;
10931 ifc* | ifort*) # Intel Fortran compiler
10932 tmp_addflag=' -nofor_main' ;;
10933 lf95*) # Lahey Fortran 8.1
10934 whole_archive_flag_spec=
10935 tmp_sharedflag='--shared' ;;
10936 nagfor*) # NAGFOR 5.3
10937 tmp_sharedflag='-Wl,-shared' ;;
10938 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10939 tmp_sharedflag='-qmkshrobj'
10940 tmp_addflag= ;;
10941 nvcc*) # Cuda Compiler Driver 2.2
10942 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'
10943 compiler_needs_object=yes
10944 ;;
10945 esac
10946 case `$CC -V 2>&1 | sed 5q` in
10947 *Sun\ C*) # Sun C 5.9
10948 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'
10949 compiler_needs_object=yes
10950 tmp_sharedflag='-G' ;;
10951 *Sun\ F*) # Sun Fortran 8.3
10952 tmp_sharedflag='-G' ;;
10953 esac
10954 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10955
10956 if test yes = "$supports_anon_versioning"; then
10957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10959 echo "local: *; };" >> $output_objdir/$libname.ver~
10960 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10961 fi
10962
10963 case $cc_basename in
10964 tcc*)
10965 export_dynamic_flag_spec='-rdynamic'
10966 ;;
10967 xlf* | bgf* | bgxlf* | mpixlf*)
10968 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10969 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10970 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10971 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10972 if test yes = "$supports_anon_versioning"; then
10973 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10975 echo "local: *; };" >> $output_objdir/$libname.ver~
10976 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10977 fi
10978 ;;
10979 esac
10980 else
10981 ld_shlibs=no
10982 fi
10983 ;;
10984
10985 netbsd* | netbsdelf*-gnu)
10986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10987 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10988 wlarc=
10989 else
10990 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10991 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10992 fi
10993 ;;
10994
10995 solaris*)
10996 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10997 ld_shlibs=no
10998 cat <<_LT_EOF 1>&2
10999
11000 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11001 *** create shared libraries on Solaris systems. Therefore, libtool
11002 *** is disabling shared libraries support. We urge you to upgrade GNU
11003 *** binutils to release 2.9.1 or newer. Another option is to modify
11004 *** your PATH or compiler configuration so that the native linker is
11005 *** used, and then restart.
11006
11007 _LT_EOF
11008 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11009 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11010 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11011 else
11012 ld_shlibs=no
11013 fi
11014 ;;
11015
11016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11017 case `$LD -v 2>&1` in
11018 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11019 ld_shlibs=no
11020 cat <<_LT_EOF 1>&2
11021
11022 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11023 *** reliably create shared libraries on SCO systems. Therefore, libtool
11024 *** is disabling shared libraries support. We urge you to upgrade GNU
11025 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11026 *** your PATH or compiler configuration so that the native linker is
11027 *** used, and then restart.
11028
11029 _LT_EOF
11030 ;;
11031 *)
11032 # For security reasons, it is highly recommended that you always
11033 # use absolute paths for naming shared libraries, and exclude the
11034 # DT_RUNPATH tag from executables and libraries. But doing so
11035 # requires that you compile everything twice, which is a pain.
11036 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11037 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11040 else
11041 ld_shlibs=no
11042 fi
11043 ;;
11044 esac
11045 ;;
11046
11047 sunos4*)
11048 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11049 wlarc=
11050 hardcode_direct=yes
11051 hardcode_shlibpath_var=no
11052 ;;
11053
11054 *)
11055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11056 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11057 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11058 else
11059 ld_shlibs=no
11060 fi
11061 ;;
11062 esac
11063
11064 if test no = "$ld_shlibs"; then
11065 runpath_var=
11066 hardcode_libdir_flag_spec=
11067 export_dynamic_flag_spec=
11068 whole_archive_flag_spec=
11069 fi
11070 else
11071 # PORTME fill in a description of your system's linker (not GNU ld)
11072 case $host_os in
11073 aix3*)
11074 allow_undefined_flag=unsupported
11075 always_export_symbols=yes
11076 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'
11077 # Note: this linker hardcodes the directories in LIBPATH if there
11078 # are no directories specified by -L.
11079 hardcode_minus_L=yes
11080 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11081 # Neither direct hardcoding nor static linking is supported with a
11082 # broken collect2.
11083 hardcode_direct=unsupported
11084 fi
11085 ;;
11086
11087 aix[4-9]*)
11088 if test ia64 = "$host_cpu"; then
11089 # On IA64, the linker does run time linking by default, so we don't
11090 # have to do anything special.
11091 aix_use_runtimelinking=no
11092 exp_sym_flag='-Bexport'
11093 no_entry_flag=
11094 else
11095 # If we're using GNU nm, then we don't want the "-C" option.
11096 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11097 # Without the "-l" option, or with the "-B" option, AIX nm treats
11098 # weak defined symbols like other global defined symbols, whereas
11099 # GNU nm marks them as "W".
11100 # While the 'weak' keyword is ignored in the Export File, we need
11101 # it in the Import File for the 'aix-soname' feature, so we have
11102 # to replace the "-B" option with "-P" for AIX nm.
11103 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11104 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'
11105 else
11106 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 == "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'
11107 fi
11108 aix_use_runtimelinking=no
11109
11110 # Test if we are trying to use run time linking or normal
11111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11112 # have runtime linking enabled, and use it for executables.
11113 # For shared libraries, we enable/disable runtime linking
11114 # depending on the kind of the shared library created -
11115 # when "with_aix_soname,aix_use_runtimelinking" is:
11116 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11117 # "aix,yes" lib.so shared, rtl:yes, for executables
11118 # lib.a static archive
11119 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11120 # lib.a(lib.so.V) shared, rtl:no, for executables
11121 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11122 # lib.a(lib.so.V) shared, rtl:no
11123 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11124 # lib.a static archive
11125 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11126 for ld_flag in $LDFLAGS; do
11127 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11128 aix_use_runtimelinking=yes
11129 break
11130 fi
11131 done
11132 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11133 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11134 # so we don't have lib.a shared libs to link our executables.
11135 # We have to force runtime linking in this case.
11136 aix_use_runtimelinking=yes
11137 LDFLAGS="$LDFLAGS -Wl,-brtl"
11138 fi
11139 ;;
11140 esac
11141
11142 exp_sym_flag='-bexport'
11143 no_entry_flag='-bnoentry'
11144 fi
11145
11146 # When large executables or shared objects are built, AIX ld can
11147 # have problems creating the table of contents. If linking a library
11148 # or program results in "error TOC overflow" add -mminimal-toc to
11149 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11150 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11151
11152 archive_cmds=''
11153 hardcode_direct=yes
11154 hardcode_direct_absolute=yes
11155 hardcode_libdir_separator=':'
11156 link_all_deplibs=yes
11157 file_list_spec='$wl-f,'
11158 case $with_aix_soname,$aix_use_runtimelinking in
11159 aix,*) ;; # traditional, no import file
11160 svr4,* | *,yes) # use import file
11161 # The Import File defines what to hardcode.
11162 hardcode_direct=no
11163 hardcode_direct_absolute=no
11164 ;;
11165 esac
11166
11167 if test yes = "$GCC"; then
11168 case $host_os in aix4.[012]|aix4.[012].*)
11169 # We only want to do this on AIX 4.2 and lower, the check
11170 # below for broken collect2 doesn't work under 4.3+
11171 collect2name=`$CC -print-prog-name=collect2`
11172 if test -f "$collect2name" &&
11173 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11174 then
11175 # We have reworked collect2
11176 :
11177 else
11178 # We have old collect2
11179 hardcode_direct=unsupported
11180 # It fails to find uninstalled libraries when the uninstalled
11181 # path is not listed in the libpath. Setting hardcode_minus_L
11182 # to unsupported forces relinking
11183 hardcode_minus_L=yes
11184 hardcode_libdir_flag_spec='-L$libdir'
11185 hardcode_libdir_separator=
11186 fi
11187 ;;
11188 esac
11189 shared_flag='-shared'
11190 if test yes = "$aix_use_runtimelinking"; then
11191 shared_flag="$shared_flag "'$wl-G'
11192 fi
11193 # Need to ensure runtime linking is disabled for the traditional
11194 # shared library, or the linker may eventually find shared libraries
11195 # /with/ Import File - we do not want to mix them.
11196 shared_flag_aix='-shared'
11197 shared_flag_svr4='-shared $wl-G'
11198 else
11199 # not using gcc
11200 if test ia64 = "$host_cpu"; then
11201 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11202 # chokes on -Wl,-G. The following line is correct:
11203 shared_flag='-G'
11204 else
11205 if test yes = "$aix_use_runtimelinking"; then
11206 shared_flag='$wl-G'
11207 else
11208 shared_flag='$wl-bM:SRE'
11209 fi
11210 shared_flag_aix='$wl-bM:SRE'
11211 shared_flag_svr4='$wl-G'
11212 fi
11213 fi
11214
11215 export_dynamic_flag_spec='$wl-bexpall'
11216 # It seems that -bexpall does not export symbols beginning with
11217 # underscore (_), so it is better to generate a list of symbols to export.
11218 always_export_symbols=yes
11219 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11220 # Warning - without using the other runtime loading flags (-brtl),
11221 # -berok will link without error, but may produce a broken library.
11222 allow_undefined_flag='-berok'
11223 # Determine the default libpath from the value encoded in an
11224 # empty executable.
11225 if test set = "${lt_cv_aix_libpath+set}"; then
11226 aix_libpath=$lt_cv_aix_libpath
11227 else
11228 if ${lt_cv_aix_libpath_+:} false; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11233
11234 int
11235 main ()
11236 {
11237
11238 ;
11239 return 0;
11240 }
11241 _ACEOF
11242 if ac_fn_c_try_link "$LINENO"; then :
11243
11244 lt_aix_libpath_sed='
11245 /Import File Strings/,/^$/ {
11246 /^0/ {
11247 s/^0 *\([^ ]*\) *$/\1/
11248 p
11249 }
11250 }'
11251 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11252 # Check for a 64-bit object if we didn't find anything.
11253 if test -z "$lt_cv_aix_libpath_"; then
11254 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11255 fi
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259 if test -z "$lt_cv_aix_libpath_"; then
11260 lt_cv_aix_libpath_=/usr/lib:/lib
11261 fi
11262
11263 fi
11264
11265 aix_libpath=$lt_cv_aix_libpath_
11266 fi
11267
11268 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11269 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
11270 else
11271 if test ia64 = "$host_cpu"; then
11272 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11273 allow_undefined_flag="-z nodefs"
11274 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"
11275 else
11276 # Determine the default libpath from the value encoded in an
11277 # empty executable.
11278 if test set = "${lt_cv_aix_libpath+set}"; then
11279 aix_libpath=$lt_cv_aix_libpath
11280 else
11281 if ${lt_cv_aix_libpath_+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11286
11287 int
11288 main ()
11289 {
11290
11291 ;
11292 return 0;
11293 }
11294 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"; then :
11296
11297 lt_aix_libpath_sed='
11298 /Import File Strings/,/^$/ {
11299 /^0/ {
11300 s/^0 *\([^ ]*\) *$/\1/
11301 p
11302 }
11303 }'
11304 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11305 # Check for a 64-bit object if we didn't find anything.
11306 if test -z "$lt_cv_aix_libpath_"; then
11307 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11308 fi
11309 fi
11310 rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11312 if test -z "$lt_cv_aix_libpath_"; then
11313 lt_cv_aix_libpath_=/usr/lib:/lib
11314 fi
11315
11316 fi
11317
11318 aix_libpath=$lt_cv_aix_libpath_
11319 fi
11320
11321 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11322 # Warning - without using the other run time loading flags,
11323 # -berok will link without error, but may produce a broken library.
11324 no_undefined_flag=' $wl-bernotok'
11325 allow_undefined_flag=' $wl-berok'
11326 if test yes = "$with_gnu_ld"; then
11327 # We only use this code for GNU lds that support --whole-archive.
11328 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11329 else
11330 # Exported symbols can be pulled into shared objects from archives
11331 whole_archive_flag_spec='$convenience'
11332 fi
11333 archive_cmds_need_lc=yes
11334 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11335 # -brtl affects multiple linker settings, -berok does not and is overridden later
11336 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11337 if test svr4 != "$with_aix_soname"; then
11338 # This is similar to how AIX traditionally builds its shared libraries.
11339 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'
11340 fi
11341 if test aix != "$with_aix_soname"; then
11342 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'
11343 else
11344 # used by -dlpreopen to get the symbols
11345 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11346 fi
11347 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11348 fi
11349 fi
11350 ;;
11351
11352 amigaos*)
11353 case $host_cpu in
11354 powerpc)
11355 # see comment about AmigaOS4 .so support
11356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11357 archive_expsym_cmds=''
11358 ;;
11359 m68k)
11360 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)'
11361 hardcode_libdir_flag_spec='-L$libdir'
11362 hardcode_minus_L=yes
11363 ;;
11364 esac
11365 ;;
11366
11367 bsdi[45]*)
11368 export_dynamic_flag_spec=-rdynamic
11369 ;;
11370
11371 cygwin* | mingw* | pw32* | cegcc*)
11372 # When not using gcc, we currently assume that we are using
11373 # Microsoft Visual C++.
11374 # hardcode_libdir_flag_spec is actually meaningless, as there is
11375 # no search path for DLLs.
11376 case $cc_basename in
11377 cl*)
11378 # Native MSVC
11379 hardcode_libdir_flag_spec=' '
11380 allow_undefined_flag=unsupported
11381 always_export_symbols=yes
11382 file_list_spec='@'
11383 # Tell ltmain to make .lib files, not .a files.
11384 libext=lib
11385 # Tell ltmain to make .dll files, not .so files.
11386 shrext_cmds=.dll
11387 # FIXME: Setting linknames here is a bad hack.
11388 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11389 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11390 cp "$export_symbols" "$output_objdir/$soname.def";
11391 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11392 else
11393 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11394 fi~
11395 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11396 linknames='
11397 # The linker will not automatically build a static lib if we build a DLL.
11398 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11399 enable_shared_with_static_runtimes=yes
11400 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11401 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11402 # Don't use ranlib
11403 old_postinstall_cmds='chmod 644 $oldlib'
11404 postlink_cmds='lt_outputfile="@OUTPUT@"~
11405 lt_tool_outputfile="@TOOL_OUTPUT@"~
11406 case $lt_outputfile in
11407 *.exe|*.EXE) ;;
11408 *)
11409 lt_outputfile=$lt_outputfile.exe
11410 lt_tool_outputfile=$lt_tool_outputfile.exe
11411 ;;
11412 esac~
11413 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11414 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11415 $RM "$lt_outputfile.manifest";
11416 fi'
11417 ;;
11418 *)
11419 # Assume MSVC wrapper
11420 hardcode_libdir_flag_spec=' '
11421 allow_undefined_flag=unsupported
11422 # Tell ltmain to make .lib files, not .a files.
11423 libext=lib
11424 # Tell ltmain to make .dll files, not .so files.
11425 shrext_cmds=.dll
11426 # FIXME: Setting linknames here is a bad hack.
11427 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11428 # The linker will automatically build a .lib file if we build a DLL.
11429 old_archive_from_new_cmds='true'
11430 # FIXME: Should let the user specify the lib program.
11431 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11432 enable_shared_with_static_runtimes=yes
11433 ;;
11434 esac
11435 ;;
11436
11437 darwin* | rhapsody*)
11438
11439
11440 archive_cmds_need_lc=no
11441 hardcode_direct=no
11442 hardcode_automatic=yes
11443 hardcode_shlibpath_var=unsupported
11444 if test yes = "$lt_cv_ld_force_load"; then
11445 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\"`'
11446
11447 else
11448 whole_archive_flag_spec=''
11449 fi
11450 link_all_deplibs=yes
11451 allow_undefined_flag=$_lt_dar_allow_undefined
11452 case $cc_basename in
11453 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11454 *) _lt_dar_can_shared=$GCC ;;
11455 esac
11456 if test yes = "$_lt_dar_can_shared"; then
11457 output_verbose_link_cmd=func_echo_all
11458 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11459 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11460 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"
11461 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"
11462
11463 else
11464 ld_shlibs=no
11465 fi
11466
11467 ;;
11468
11469 dgux*)
11470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11471 hardcode_libdir_flag_spec='-L$libdir'
11472 hardcode_shlibpath_var=no
11473 ;;
11474
11475 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11476 # support. Future versions do this automatically, but an explicit c++rt0.o
11477 # does not break anything, and helps significantly (at the cost of a little
11478 # extra space).
11479 freebsd2.2*)
11480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11481 hardcode_libdir_flag_spec='-R$libdir'
11482 hardcode_direct=yes
11483 hardcode_shlibpath_var=no
11484 ;;
11485
11486 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11487 freebsd2.*)
11488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11489 hardcode_direct=yes
11490 hardcode_minus_L=yes
11491 hardcode_shlibpath_var=no
11492 ;;
11493
11494 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11495 freebsd* | dragonfly*)
11496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11497 hardcode_libdir_flag_spec='-R$libdir'
11498 hardcode_direct=yes
11499 hardcode_shlibpath_var=no
11500 ;;
11501
11502 hpux9*)
11503 if test yes = "$GCC"; then
11504 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'
11505 else
11506 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'
11507 fi
11508 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11509 hardcode_libdir_separator=:
11510 hardcode_direct=yes
11511
11512 # hardcode_minus_L: Not really in the search PATH,
11513 # but as the default location of the library.
11514 hardcode_minus_L=yes
11515 export_dynamic_flag_spec='$wl-E'
11516 ;;
11517
11518 hpux10*)
11519 if test yes,no = "$GCC,$with_gnu_ld"; then
11520 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11521 else
11522 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11523 fi
11524 if test no = "$with_gnu_ld"; then
11525 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11526 hardcode_libdir_separator=:
11527 hardcode_direct=yes
11528 hardcode_direct_absolute=yes
11529 export_dynamic_flag_spec='$wl-E'
11530 # hardcode_minus_L: Not really in the search PATH,
11531 # but as the default location of the library.
11532 hardcode_minus_L=yes
11533 fi
11534 ;;
11535
11536 hpux11*)
11537 if test yes,no = "$GCC,$with_gnu_ld"; then
11538 case $host_cpu in
11539 hppa*64*)
11540 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11541 ;;
11542 ia64*)
11543 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11544 ;;
11545 *)
11546 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11547 ;;
11548 esac
11549 else
11550 case $host_cpu in
11551 hppa*64*)
11552 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11553 ;;
11554 ia64*)
11555 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11556 ;;
11557 *)
11558
11559 # Older versions of the 11.00 compiler do not understand -b yet
11560 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11562 $as_echo_n "checking if $CC understands -b... " >&6; }
11563 if ${lt_cv_prog_compiler__b+:} false; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 lt_cv_prog_compiler__b=no
11567 save_LDFLAGS=$LDFLAGS
11568 LDFLAGS="$LDFLAGS -b"
11569 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11571 # The linker can only warn and ignore the option if not recognized
11572 # So say no if there are warnings
11573 if test -s conftest.err; then
11574 # Append any errors to the config.log.
11575 cat conftest.err 1>&5
11576 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11578 if diff conftest.exp conftest.er2 >/dev/null; then
11579 lt_cv_prog_compiler__b=yes
11580 fi
11581 else
11582 lt_cv_prog_compiler__b=yes
11583 fi
11584 fi
11585 $RM -r conftest*
11586 LDFLAGS=$save_LDFLAGS
11587
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11590 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11591
11592 if test yes = "$lt_cv_prog_compiler__b"; then
11593 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11594 else
11595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11596 fi
11597
11598 ;;
11599 esac
11600 fi
11601 if test no = "$with_gnu_ld"; then
11602 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11603 hardcode_libdir_separator=:
11604
11605 case $host_cpu in
11606 hppa*64*|ia64*)
11607 hardcode_direct=no
11608 hardcode_shlibpath_var=no
11609 ;;
11610 *)
11611 hardcode_direct=yes
11612 hardcode_direct_absolute=yes
11613 export_dynamic_flag_spec='$wl-E'
11614
11615 # hardcode_minus_L: Not really in the search PATH,
11616 # but as the default location of the library.
11617 hardcode_minus_L=yes
11618 ;;
11619 esac
11620 fi
11621 ;;
11622
11623 irix5* | irix6* | nonstopux*)
11624 if test yes = "$GCC"; then
11625 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'
11626 # Try to use the -exported_symbol ld option, if it does not
11627 # work, assume that -exports_file does not work either and
11628 # implicitly export all symbols.
11629 # This should be the same for all languages, so no per-tag cache variable.
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11631 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11632 if ${lt_cv_irix_exported_symbol+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 save_LDFLAGS=$LDFLAGS
11636 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639 int foo (void) { return 0; }
11640 _ACEOF
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 lt_cv_irix_exported_symbol=yes
11643 else
11644 lt_cv_irix_exported_symbol=no
11645 fi
11646 rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LDFLAGS=$save_LDFLAGS
11649 fi
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11651 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11652 if test yes = "$lt_cv_irix_exported_symbol"; then
11653 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'
11654 fi
11655 link_all_deplibs=no
11656 else
11657 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'
11658 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'
11659 fi
11660 archive_cmds_need_lc='no'
11661 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11662 hardcode_libdir_separator=:
11663 inherit_rpath=yes
11664 link_all_deplibs=yes
11665 ;;
11666
11667 linux*)
11668 case $cc_basename in
11669 tcc*)
11670 # Fabrice Bellard et al's Tiny C Compiler
11671 ld_shlibs=yes
11672 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11673 ;;
11674 esac
11675 ;;
11676
11677 netbsd* | netbsdelf*-gnu)
11678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11680 else
11681 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11682 fi
11683 hardcode_libdir_flag_spec='-R$libdir'
11684 hardcode_direct=yes
11685 hardcode_shlibpath_var=no
11686 ;;
11687
11688 newsos6)
11689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11690 hardcode_direct=yes
11691 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11692 hardcode_libdir_separator=:
11693 hardcode_shlibpath_var=no
11694 ;;
11695
11696 *nto* | *qnx*)
11697 ;;
11698
11699 openbsd* | bitrig*)
11700 if test -f /usr/libexec/ld.so; then
11701 hardcode_direct=yes
11702 hardcode_shlibpath_var=no
11703 hardcode_direct_absolute=yes
11704 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11705 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11706 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11707 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11708 export_dynamic_flag_spec='$wl-E'
11709 else
11710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11711 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11712 fi
11713 else
11714 ld_shlibs=no
11715 fi
11716 ;;
11717
11718 os2*)
11719 hardcode_libdir_flag_spec='-L$libdir'
11720 hardcode_minus_L=yes
11721 allow_undefined_flag=unsupported
11722 shrext_cmds=.dll
11723 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11724 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11725 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11726 $ECHO EXPORTS >> $output_objdir/$libname.def~
11727 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11728 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11729 emximp -o $lib $output_objdir/$libname.def'
11730 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11731 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11732 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11733 $ECHO EXPORTS >> $output_objdir/$libname.def~
11734 prefix_cmds="$SED"~
11735 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11736 prefix_cmds="$prefix_cmds -e 1d";
11737 fi~
11738 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11739 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11740 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11741 emximp -o $lib $output_objdir/$libname.def'
11742 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11743 enable_shared_with_static_runtimes=yes
11744 ;;
11745
11746 osf3*)
11747 if test yes = "$GCC"; then
11748 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11749 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'
11750 else
11751 allow_undefined_flag=' -expect_unresolved \*'
11752 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'
11753 fi
11754 archive_cmds_need_lc='no'
11755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11756 hardcode_libdir_separator=:
11757 ;;
11758
11759 osf4* | osf5*) # as osf3* with the addition of -msym flag
11760 if test yes = "$GCC"; then
11761 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11762 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'
11763 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11764 else
11765 allow_undefined_flag=' -expect_unresolved \*'
11766 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'
11767 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~
11768 $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'
11769
11770 # Both c and cxx compiler support -rpath directly
11771 hardcode_libdir_flag_spec='-rpath $libdir'
11772 fi
11773 archive_cmds_need_lc='no'
11774 hardcode_libdir_separator=:
11775 ;;
11776
11777 solaris*)
11778 no_undefined_flag=' -z defs'
11779 if test yes = "$GCC"; then
11780 wlarc='$wl'
11781 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11783 $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'
11784 else
11785 case `$CC -V 2>&1` in
11786 *"Compilers 5.0"*)
11787 wlarc=''
11788 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11789 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11790 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11791 ;;
11792 *)
11793 wlarc='$wl'
11794 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11795 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11796 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11797 ;;
11798 esac
11799 fi
11800 hardcode_libdir_flag_spec='-R$libdir'
11801 hardcode_shlibpath_var=no
11802 case $host_os in
11803 solaris2.[0-5] | solaris2.[0-5].*) ;;
11804 *)
11805 # The compiler driver will combine and reorder linker options,
11806 # but understands '-z linker_flag'. GCC discards it without '$wl',
11807 # but is careful enough not to reorder.
11808 # Supported since Solaris 2.6 (maybe 2.5.1?)
11809 if test yes = "$GCC"; then
11810 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11811 else
11812 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11813 fi
11814 ;;
11815 esac
11816 link_all_deplibs=yes
11817 ;;
11818
11819 sunos4*)
11820 if test sequent = "$host_vendor"; then
11821 # Use $CC to link under sequent, because it throws in some extra .o
11822 # files that make .init and .fini sections work.
11823 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11824 else
11825 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11826 fi
11827 hardcode_libdir_flag_spec='-L$libdir'
11828 hardcode_direct=yes
11829 hardcode_minus_L=yes
11830 hardcode_shlibpath_var=no
11831 ;;
11832
11833 sysv4)
11834 case $host_vendor in
11835 sni)
11836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11837 hardcode_direct=yes # is this really true???
11838 ;;
11839 siemens)
11840 ## LD is ld it makes a PLAMLIB
11841 ## CC just makes a GrossModule.
11842 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11843 reload_cmds='$CC -r -o $output$reload_objs'
11844 hardcode_direct=no
11845 ;;
11846 motorola)
11847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11848 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11849 ;;
11850 esac
11851 runpath_var='LD_RUN_PATH'
11852 hardcode_shlibpath_var=no
11853 ;;
11854
11855 sysv4.3*)
11856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11857 hardcode_shlibpath_var=no
11858 export_dynamic_flag_spec='-Bexport'
11859 ;;
11860
11861 sysv4*MP*)
11862 if test -d /usr/nec; then
11863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11864 hardcode_shlibpath_var=no
11865 runpath_var=LD_RUN_PATH
11866 hardcode_runpath_var=yes
11867 ld_shlibs=yes
11868 fi
11869 ;;
11870
11871 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11872 no_undefined_flag='$wl-z,text'
11873 archive_cmds_need_lc=no
11874 hardcode_shlibpath_var=no
11875 runpath_var='LD_RUN_PATH'
11876
11877 if test yes = "$GCC"; then
11878 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11879 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11880 else
11881 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11882 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11883 fi
11884 ;;
11885
11886 sysv5* | sco3.2v5* | sco5v6*)
11887 # Note: We CANNOT use -z defs as we might desire, because we do not
11888 # link with -lc, and that would cause any symbols used from libc to
11889 # always be unresolved, which means just about no library would
11890 # ever link correctly. If we're not using GNU ld we use -z text
11891 # though, which does catch some bad symbols but isn't as heavy-handed
11892 # as -z defs.
11893 no_undefined_flag='$wl-z,text'
11894 allow_undefined_flag='$wl-z,nodefs'
11895 archive_cmds_need_lc=no
11896 hardcode_shlibpath_var=no
11897 hardcode_libdir_flag_spec='$wl-R,$libdir'
11898 hardcode_libdir_separator=':'
11899 link_all_deplibs=yes
11900 export_dynamic_flag_spec='$wl-Bexport'
11901 runpath_var='LD_RUN_PATH'
11902
11903 if test yes = "$GCC"; then
11904 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11905 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11906 else
11907 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11908 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11909 fi
11910 ;;
11911
11912 uts4*)
11913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11914 hardcode_libdir_flag_spec='-L$libdir'
11915 hardcode_shlibpath_var=no
11916 ;;
11917
11918 *)
11919 ld_shlibs=no
11920 ;;
11921 esac
11922
11923 if test sni = "$host_vendor"; then
11924 case $host in
11925 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11926 export_dynamic_flag_spec='$wl-Blargedynsym'
11927 ;;
11928 esac
11929 fi
11930 fi
11931
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11933 $as_echo "$ld_shlibs" >&6; }
11934 test no = "$ld_shlibs" && can_build_shared=no
11935
11936 with_gnu_ld=$with_gnu_ld
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952 #
11953 # Do we need to explicitly link libc?
11954 #
11955 case "x$archive_cmds_need_lc" in
11956 x|xyes)
11957 # Assume -lc should be added
11958 archive_cmds_need_lc=yes
11959
11960 if test yes,yes = "$GCC,$enable_shared"; then
11961 case $archive_cmds in
11962 *'~'*)
11963 # FIXME: we may have to deal with multi-command sequences.
11964 ;;
11965 '$CC '*)
11966 # Test whether the compiler implicitly links with -lc since on some
11967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11968 # to ld, don't add -lc before -lgcc.
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11970 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11971 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 $RM conftest*
11975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11976
11977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11978 (eval $ac_compile) 2>&5
11979 ac_status=$?
11980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11981 test $ac_status = 0; } 2>conftest.err; then
11982 soname=conftest
11983 lib=conftest
11984 libobjs=conftest.$ac_objext
11985 deplibs=
11986 wl=$lt_prog_compiler_wl
11987 pic_flag=$lt_prog_compiler_pic
11988 compiler_flags=-v
11989 linker_flags=-v
11990 verstring=
11991 output_objdir=.
11992 libname=conftest
11993 lt_save_allow_undefined_flag=$allow_undefined_flag
11994 allow_undefined_flag=
11995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11996 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11997 ac_status=$?
11998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11999 test $ac_status = 0; }
12000 then
12001 lt_cv_archive_cmds_need_lc=no
12002 else
12003 lt_cv_archive_cmds_need_lc=yes
12004 fi
12005 allow_undefined_flag=$lt_save_allow_undefined_flag
12006 else
12007 cat conftest.err 1>&5
12008 fi
12009 $RM conftest*
12010
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12013 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12014 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12015 ;;
12016 esac
12017 fi
12018 ;;
12019 esac
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12173 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12174
12175 if test yes = "$GCC"; then
12176 case $host_os in
12177 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12178 *) lt_awk_arg='/^libraries:/' ;;
12179 esac
12180 case $host_os in
12181 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12182 *) lt_sed_strip_eq='s|=/|/|g' ;;
12183 esac
12184 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12185 case $lt_search_path_spec in
12186 *\;*)
12187 # if the path contains ";" then we assume it to be the separator
12188 # otherwise default to the standard path separator (i.e. ":") - it is
12189 # assumed that no part of a normal pathname contains ";" but that should
12190 # okay in the real world where ";" in dirpaths is itself problematic.
12191 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12192 ;;
12193 *)
12194 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12195 ;;
12196 esac
12197 # Ok, now we have the path, separated by spaces, we can step through it
12198 # and add multilib dir if necessary...
12199 lt_tmp_lt_search_path_spec=
12200 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12201 # ...but if some path component already ends with the multilib dir we assume
12202 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12203 case "$lt_multi_os_dir; $lt_search_path_spec " in
12204 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12205 lt_multi_os_dir=
12206 ;;
12207 esac
12208 for lt_sys_path in $lt_search_path_spec; do
12209 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12210 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12211 elif test -n "$lt_multi_os_dir"; then
12212 test -d "$lt_sys_path" && \
12213 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12214 fi
12215 done
12216 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12217 BEGIN {RS = " "; FS = "/|\n";} {
12218 lt_foo = "";
12219 lt_count = 0;
12220 for (lt_i = NF; lt_i > 0; lt_i--) {
12221 if ($lt_i != "" && $lt_i != ".") {
12222 if ($lt_i == "..") {
12223 lt_count++;
12224 } else {
12225 if (lt_count == 0) {
12226 lt_foo = "/" $lt_i lt_foo;
12227 } else {
12228 lt_count--;
12229 }
12230 }
12231 }
12232 }
12233 if (lt_foo != "") { lt_freq[lt_foo]++; }
12234 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12235 }'`
12236 # AWK program above erroneously prepends '/' to C:/dos/paths
12237 # for these hosts.
12238 case $host_os in
12239 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12240 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12241 esac
12242 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12243 else
12244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12245 fi
12246 library_names_spec=
12247 libname_spec='lib$name'
12248 soname_spec=
12249 shrext_cmds=.so
12250 postinstall_cmds=
12251 postuninstall_cmds=
12252 finish_cmds=
12253 finish_eval=
12254 shlibpath_var=
12255 shlibpath_overrides_runpath=unknown
12256 version_type=none
12257 dynamic_linker="$host_os ld.so"
12258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12259 need_lib_prefix=unknown
12260 hardcode_into_libs=no
12261
12262 # when you set need_version to no, make sure it does not cause -set_version
12263 # flags to be left without arguments
12264 need_version=unknown
12265
12266
12267
12268 case $host_os in
12269 aix3*)
12270 version_type=linux # correct to gnu/linux during the next big refactor
12271 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12272 shlibpath_var=LIBPATH
12273
12274 # AIX 3 has no versioning support, so we append a major version to the name.
12275 soname_spec='$libname$release$shared_ext$major'
12276 ;;
12277
12278 aix[4-9]*)
12279 version_type=linux # correct to gnu/linux during the next big refactor
12280 need_lib_prefix=no
12281 need_version=no
12282 hardcode_into_libs=yes
12283 if test ia64 = "$host_cpu"; then
12284 # AIX 5 supports IA64
12285 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12286 shlibpath_var=LD_LIBRARY_PATH
12287 else
12288 # With GCC up to 2.95.x, collect2 would create an import file
12289 # for dependence libraries. The import file would start with
12290 # the line '#! .'. This would cause the generated library to
12291 # depend on '.', always an invalid library. This was fixed in
12292 # development snapshots of GCC prior to 3.0.
12293 case $host_os in
12294 aix4 | aix4.[01] | aix4.[01].*)
12295 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12296 echo ' yes '
12297 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12298 :
12299 else
12300 can_build_shared=no
12301 fi
12302 ;;
12303 esac
12304 # Using Import Files as archive members, it is possible to support
12305 # filename-based versioning of shared library archives on AIX. While
12306 # this would work for both with and without runtime linking, it will
12307 # prevent static linking of such archives. So we do filename-based
12308 # shared library versioning with .so extension only, which is used
12309 # when both runtime linking and shared linking is enabled.
12310 # Unfortunately, runtime linking may impact performance, so we do
12311 # not want this to be the default eventually. Also, we use the
12312 # versioned .so libs for executables only if there is the -brtl
12313 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12314 # To allow for filename-based versioning support, we need to create
12315 # libNAME.so.V as an archive file, containing:
12316 # *) an Import File, referring to the versioned filename of the
12317 # archive as well as the shared archive member, telling the
12318 # bitwidth (32 or 64) of that shared object, and providing the
12319 # list of exported symbols of that shared object, eventually
12320 # decorated with the 'weak' keyword
12321 # *) the shared object with the F_LOADONLY flag set, to really avoid
12322 # it being seen by the linker.
12323 # At run time we better use the real file rather than another symlink,
12324 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12325
12326 case $with_aix_soname,$aix_use_runtimelinking in
12327 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12328 # soname into executable. Probably we can add versioning support to
12329 # collect2, so additional links can be useful in future.
12330 aix,yes) # traditional libtool
12331 dynamic_linker='AIX unversionable lib.so'
12332 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12333 # instead of lib<name>.a to let people know that these are not
12334 # typical AIX shared libraries.
12335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12336 ;;
12337 aix,no) # traditional AIX only
12338 dynamic_linker='AIX lib.a(lib.so.V)'
12339 # We preserve .a as extension for shared libraries through AIX4.2
12340 # and later when we are not doing run time linking.
12341 library_names_spec='$libname$release.a $libname.a'
12342 soname_spec='$libname$release$shared_ext$major'
12343 ;;
12344 svr4,*) # full svr4 only
12345 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12346 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12347 # We do not specify a path in Import Files, so LIBPATH fires.
12348 shlibpath_overrides_runpath=yes
12349 ;;
12350 *,yes) # both, prefer svr4
12351 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12352 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12353 # unpreferred sharedlib libNAME.a needs extra handling
12354 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"'
12355 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"'
12356 # We do not specify a path in Import Files, so LIBPATH fires.
12357 shlibpath_overrides_runpath=yes
12358 ;;
12359 *,no) # both, prefer aix
12360 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12361 library_names_spec='$libname$release.a $libname.a'
12362 soname_spec='$libname$release$shared_ext$major'
12363 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12364 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)'
12365 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"'
12366 ;;
12367 esac
12368 shlibpath_var=LIBPATH
12369 fi
12370 ;;
12371
12372 amigaos*)
12373 case $host_cpu in
12374 powerpc)
12375 # Since July 2007 AmigaOS4 officially supports .so libraries.
12376 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12378 ;;
12379 m68k)
12380 library_names_spec='$libname.ixlibrary $libname.a'
12381 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12382 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'
12383 ;;
12384 esac
12385 ;;
12386
12387 beos*)
12388 library_names_spec='$libname$shared_ext'
12389 dynamic_linker="$host_os ld.so"
12390 shlibpath_var=LIBRARY_PATH
12391 ;;
12392
12393 bsdi[45]*)
12394 version_type=linux # correct to gnu/linux during the next big refactor
12395 need_version=no
12396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12397 soname_spec='$libname$release$shared_ext$major'
12398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12399 shlibpath_var=LD_LIBRARY_PATH
12400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12402 # the default ld.so.conf also contains /usr/contrib/lib and
12403 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12404 # libtool to hard-code these into programs
12405 ;;
12406
12407 cygwin* | mingw* | pw32* | cegcc*)
12408 version_type=windows
12409 shrext_cmds=.dll
12410 need_version=no
12411 need_lib_prefix=no
12412
12413 case $GCC,$cc_basename in
12414 yes,*)
12415 # gcc
12416 library_names_spec='$libname.dll.a'
12417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12418 postinstall_cmds='base_file=`basename \$file`~
12419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12420 dldir=$destdir/`dirname \$dlpath`~
12421 test -d \$dldir || mkdir -p \$dldir~
12422 $install_prog $dir/$dlname \$dldir/$dlname~
12423 chmod a+x \$dldir/$dlname~
12424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12426 fi'
12427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12428 dlpath=$dir/\$dldll~
12429 $RM \$dlpath'
12430 shlibpath_overrides_runpath=yes
12431
12432 case $host_os in
12433 cygwin*)
12434 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12435 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12436
12437 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12438 ;;
12439 mingw* | cegcc*)
12440 # MinGW DLLs use traditional 'lib' prefix
12441 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12442 ;;
12443 pw32*)
12444 # pw32 DLLs use 'pw' prefix rather than 'lib'
12445 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12446 ;;
12447 esac
12448 dynamic_linker='Win32 ld.exe'
12449 ;;
12450
12451 *,cl*)
12452 # Native MSVC
12453 libname_spec='$name'
12454 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12455 library_names_spec='$libname.dll.lib'
12456
12457 case $build_os in
12458 mingw*)
12459 sys_lib_search_path_spec=
12460 lt_save_ifs=$IFS
12461 IFS=';'
12462 for lt_path in $LIB
12463 do
12464 IFS=$lt_save_ifs
12465 # Let DOS variable expansion print the short 8.3 style file name.
12466 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12467 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12468 done
12469 IFS=$lt_save_ifs
12470 # Convert to MSYS style.
12471 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12472 ;;
12473 cygwin*)
12474 # Convert to unix form, then to dos form, then back to unix form
12475 # but this time dos style (no spaces!) so that the unix form looks
12476 # like /cygdrive/c/PROGRA~1:/cygdr...
12477 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12478 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12479 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12480 ;;
12481 *)
12482 sys_lib_search_path_spec=$LIB
12483 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12484 # It is most probably a Windows format PATH.
12485 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12486 else
12487 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12488 fi
12489 # FIXME: find the short name or the path components, as spaces are
12490 # common. (e.g. "Program Files" -> "PROGRA~1")
12491 ;;
12492 esac
12493
12494 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12495 postinstall_cmds='base_file=`basename \$file`~
12496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12497 dldir=$destdir/`dirname \$dlpath`~
12498 test -d \$dldir || mkdir -p \$dldir~
12499 $install_prog $dir/$dlname \$dldir/$dlname'
12500 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12501 dlpath=$dir/\$dldll~
12502 $RM \$dlpath'
12503 shlibpath_overrides_runpath=yes
12504 dynamic_linker='Win32 link.exe'
12505 ;;
12506
12507 *)
12508 # Assume MSVC wrapper
12509 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12510 dynamic_linker='Win32 ld.exe'
12511 ;;
12512 esac
12513 # FIXME: first we should search . and the directory the executable is in
12514 shlibpath_var=PATH
12515 ;;
12516
12517 darwin* | rhapsody*)
12518 dynamic_linker="$host_os dyld"
12519 version_type=darwin
12520 need_lib_prefix=no
12521 need_version=no
12522 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12523 soname_spec='$libname$release$major$shared_ext'
12524 shlibpath_overrides_runpath=yes
12525 shlibpath_var=DYLD_LIBRARY_PATH
12526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12527
12528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12530 ;;
12531
12532 dgux*)
12533 version_type=linux # correct to gnu/linux during the next big refactor
12534 need_lib_prefix=no
12535 need_version=no
12536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12537 soname_spec='$libname$release$shared_ext$major'
12538 shlibpath_var=LD_LIBRARY_PATH
12539 ;;
12540
12541 freebsd* | dragonfly*)
12542 # DragonFly does not have aout. When/if they implement a new
12543 # versioning mechanism, adjust this.
12544 if test -x /usr/bin/objformat; then
12545 objformat=`/usr/bin/objformat`
12546 else
12547 case $host_os in
12548 freebsd[23].*) objformat=aout ;;
12549 *) objformat=elf ;;
12550 esac
12551 fi
12552 version_type=freebsd-$objformat
12553 case $version_type in
12554 freebsd-elf*)
12555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12556 soname_spec='$libname$release$shared_ext$major'
12557 need_version=no
12558 need_lib_prefix=no
12559 ;;
12560 freebsd-*)
12561 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12562 need_version=yes
12563 ;;
12564 esac
12565 shlibpath_var=LD_LIBRARY_PATH
12566 case $host_os in
12567 freebsd2.*)
12568 shlibpath_overrides_runpath=yes
12569 ;;
12570 freebsd3.[01]* | freebsdelf3.[01]*)
12571 shlibpath_overrides_runpath=yes
12572 hardcode_into_libs=yes
12573 ;;
12574 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12575 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12576 shlibpath_overrides_runpath=no
12577 hardcode_into_libs=yes
12578 ;;
12579 *) # from 4.6 on, and DragonFly
12580 shlibpath_overrides_runpath=yes
12581 hardcode_into_libs=yes
12582 ;;
12583 esac
12584 ;;
12585
12586 haiku*)
12587 version_type=linux # correct to gnu/linux during the next big refactor
12588 need_lib_prefix=no
12589 need_version=no
12590 dynamic_linker="$host_os runtime_loader"
12591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12592 soname_spec='$libname$release$shared_ext$major'
12593 shlibpath_var=LIBRARY_PATH
12594 shlibpath_overrides_runpath=no
12595 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12596 hardcode_into_libs=yes
12597 ;;
12598
12599 hpux9* | hpux10* | hpux11*)
12600 # Give a soname corresponding to the major version so that dld.sl refuses to
12601 # link against other versions.
12602 version_type=sunos
12603 need_lib_prefix=no
12604 need_version=no
12605 case $host_cpu in
12606 ia64*)
12607 shrext_cmds='.so'
12608 hardcode_into_libs=yes
12609 dynamic_linker="$host_os dld.so"
12610 shlibpath_var=LD_LIBRARY_PATH
12611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12613 soname_spec='$libname$release$shared_ext$major'
12614 if test 32 = "$HPUX_IA64_MODE"; then
12615 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12616 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12617 else
12618 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12619 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12620 fi
12621 ;;
12622 hppa*64*)
12623 shrext_cmds='.sl'
12624 hardcode_into_libs=yes
12625 dynamic_linker="$host_os dld.sl"
12626 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12629 soname_spec='$libname$release$shared_ext$major'
12630 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12632 ;;
12633 *)
12634 shrext_cmds='.sl'
12635 dynamic_linker="$host_os dld.sl"
12636 shlibpath_var=SHLIB_PATH
12637 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12639 soname_spec='$libname$release$shared_ext$major'
12640 ;;
12641 esac
12642 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12643 postinstall_cmds='chmod 555 $lib'
12644 # or fails outright, so override atomically:
12645 install_override_mode=555
12646 ;;
12647
12648 interix[3-9]*)
12649 version_type=linux # correct to gnu/linux during the next big refactor
12650 need_lib_prefix=no
12651 need_version=no
12652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12653 soname_spec='$libname$release$shared_ext$major'
12654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12655 shlibpath_var=LD_LIBRARY_PATH
12656 shlibpath_overrides_runpath=no
12657 hardcode_into_libs=yes
12658 ;;
12659
12660 irix5* | irix6* | nonstopux*)
12661 case $host_os in
12662 nonstopux*) version_type=nonstopux ;;
12663 *)
12664 if test yes = "$lt_cv_prog_gnu_ld"; then
12665 version_type=linux # correct to gnu/linux during the next big refactor
12666 else
12667 version_type=irix
12668 fi ;;
12669 esac
12670 need_lib_prefix=no
12671 need_version=no
12672 soname_spec='$libname$release$shared_ext$major'
12673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12674 case $host_os in
12675 irix5* | nonstopux*)
12676 libsuff= shlibsuff=
12677 ;;
12678 *)
12679 case $LD in # libtool.m4 will add one of these switches to LD
12680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12681 libsuff= shlibsuff= libmagic=32-bit;;
12682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12683 libsuff=32 shlibsuff=N32 libmagic=N32;;
12684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12685 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12686 *) libsuff= shlibsuff= libmagic=never-match;;
12687 esac
12688 ;;
12689 esac
12690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12691 shlibpath_overrides_runpath=no
12692 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12693 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12694 hardcode_into_libs=yes
12695 ;;
12696
12697 # No shared lib support for Linux oldld, aout, or coff.
12698 linux*oldld* | linux*aout* | linux*coff*)
12699 dynamic_linker=no
12700 ;;
12701
12702 linux*android*)
12703 version_type=none # Android doesn't support versioned libraries.
12704 need_lib_prefix=no
12705 need_version=no
12706 library_names_spec='$libname$release$shared_ext'
12707 soname_spec='$libname$release$shared_ext'
12708 finish_cmds=
12709 shlibpath_var=LD_LIBRARY_PATH
12710 shlibpath_overrides_runpath=yes
12711
12712 # This implies no fast_install, which is unacceptable.
12713 # Some rework will be needed to allow for fast_install
12714 # before this can be enabled.
12715 hardcode_into_libs=yes
12716
12717 dynamic_linker='Android linker'
12718 # Don't embed -rpath directories since the linker doesn't support them.
12719 hardcode_libdir_flag_spec='-L$libdir'
12720 ;;
12721
12722 # This must be glibc/ELF.
12723 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12724 version_type=linux # correct to gnu/linux during the next big refactor
12725 need_lib_prefix=no
12726 need_version=no
12727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12728 soname_spec='$libname$release$shared_ext$major'
12729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12730 shlibpath_var=LD_LIBRARY_PATH
12731 shlibpath_overrides_runpath=no
12732
12733 # Some binutils ld are patched to set DT_RUNPATH
12734 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12735 $as_echo_n "(cached) " >&6
12736 else
12737 lt_cv_shlibpath_overrides_runpath=no
12738 save_LDFLAGS=$LDFLAGS
12739 save_libdir=$libdir
12740 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12741 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12744
12745 int
12746 main ()
12747 {
12748
12749 ;
12750 return 0;
12751 }
12752 _ACEOF
12753 if ac_fn_c_try_link "$LINENO"; then :
12754 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12755 lt_cv_shlibpath_overrides_runpath=yes
12756 fi
12757 fi
12758 rm -f core conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext conftest.$ac_ext
12760 LDFLAGS=$save_LDFLAGS
12761 libdir=$save_libdir
12762
12763 fi
12764
12765 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12766
12767 # This implies no fast_install, which is unacceptable.
12768 # Some rework will be needed to allow for fast_install
12769 # before this can be enabled.
12770 hardcode_into_libs=yes
12771
12772 # Ideally, we could use ldconfig to report *all* directores which are
12773 # searched for libraries, however this is still not possible. Aside from not
12774 # being certain /sbin/ldconfig is available, command
12775 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12776 # even though it is searched at run-time. Try to do the best guess by
12777 # appending ld.so.conf contents (and includes) to the search path.
12778 if test -f /etc/ld.so.conf; then
12779 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' ' '`
12780 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12781 fi
12782
12783 # We used to test for /lib/ld.so.1 and disable shared libraries on
12784 # powerpc, because MkLinux only supported shared libraries with the
12785 # GNU dynamic linker. Since this was broken with cross compilers,
12786 # most powerpc-linux boxes support dynamic linking these days and
12787 # people can always --disable-shared, the test was removed, and we
12788 # assume the GNU/Linux dynamic linker is in use.
12789 dynamic_linker='GNU/Linux ld.so'
12790 ;;
12791
12792 netbsdelf*-gnu)
12793 version_type=linux
12794 need_lib_prefix=no
12795 need_version=no
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 shlibpath_var=LD_LIBRARY_PATH
12799 shlibpath_overrides_runpath=no
12800 hardcode_into_libs=yes
12801 dynamic_linker='NetBSD ld.elf_so'
12802 ;;
12803
12804 netbsd*)
12805 version_type=sunos
12806 need_lib_prefix=no
12807 need_version=no
12808 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12809 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12811 dynamic_linker='NetBSD (a.out) ld.so'
12812 else
12813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12814 soname_spec='$libname$release$shared_ext$major'
12815 dynamic_linker='NetBSD ld.elf_so'
12816 fi
12817 shlibpath_var=LD_LIBRARY_PATH
12818 shlibpath_overrides_runpath=yes
12819 hardcode_into_libs=yes
12820 ;;
12821
12822 newsos6)
12823 version_type=linux # correct to gnu/linux during the next big refactor
12824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12825 shlibpath_var=LD_LIBRARY_PATH
12826 shlibpath_overrides_runpath=yes
12827 ;;
12828
12829 *nto* | *qnx*)
12830 version_type=qnx
12831 need_lib_prefix=no
12832 need_version=no
12833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12834 soname_spec='$libname$release$shared_ext$major'
12835 shlibpath_var=LD_LIBRARY_PATH
12836 shlibpath_overrides_runpath=no
12837 hardcode_into_libs=yes
12838 dynamic_linker='ldqnx.so'
12839 ;;
12840
12841 openbsd* | bitrig*)
12842 version_type=sunos
12843 sys_lib_dlsearch_path_spec=/usr/lib
12844 need_lib_prefix=no
12845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12846 need_version=no
12847 else
12848 need_version=yes
12849 fi
12850 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12852 shlibpath_var=LD_LIBRARY_PATH
12853 shlibpath_overrides_runpath=yes
12854 ;;
12855
12856 os2*)
12857 libname_spec='$name'
12858 version_type=windows
12859 shrext_cmds=.dll
12860 need_version=no
12861 need_lib_prefix=no
12862 # OS/2 can only load a DLL with a base name of 8 characters or less.
12863 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12864 v=$($ECHO $release$versuffix | tr -d .-);
12865 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12866 $ECHO $n$v`$shared_ext'
12867 library_names_spec='${libname}_dll.$libext'
12868 dynamic_linker='OS/2 ld.exe'
12869 shlibpath_var=BEGINLIBPATH
12870 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12872 postinstall_cmds='base_file=`basename \$file`~
12873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12874 dldir=$destdir/`dirname \$dlpath`~
12875 test -d \$dldir || mkdir -p \$dldir~
12876 $install_prog $dir/$dlname \$dldir/$dlname~
12877 chmod a+x \$dldir/$dlname~
12878 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12879 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12880 fi'
12881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12882 dlpath=$dir/\$dldll~
12883 $RM \$dlpath'
12884 ;;
12885
12886 osf3* | osf4* | osf5*)
12887 version_type=osf
12888 need_lib_prefix=no
12889 need_version=no
12890 soname_spec='$libname$release$shared_ext$major'
12891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12892 shlibpath_var=LD_LIBRARY_PATH
12893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12895 ;;
12896
12897 rdos*)
12898 dynamic_linker=no
12899 ;;
12900
12901 solaris*)
12902 version_type=linux # correct to gnu/linux during the next big refactor
12903 need_lib_prefix=no
12904 need_version=no
12905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12906 soname_spec='$libname$release$shared_ext$major'
12907 shlibpath_var=LD_LIBRARY_PATH
12908 shlibpath_overrides_runpath=yes
12909 hardcode_into_libs=yes
12910 # ldd complains unless libraries are executable
12911 postinstall_cmds='chmod +x $lib'
12912 ;;
12913
12914 sunos4*)
12915 version_type=sunos
12916 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12918 shlibpath_var=LD_LIBRARY_PATH
12919 shlibpath_overrides_runpath=yes
12920 if test yes = "$with_gnu_ld"; then
12921 need_lib_prefix=no
12922 fi
12923 need_version=yes
12924 ;;
12925
12926 sysv4 | sysv4.3*)
12927 version_type=linux # correct to gnu/linux during the next big refactor
12928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12929 soname_spec='$libname$release$shared_ext$major'
12930 shlibpath_var=LD_LIBRARY_PATH
12931 case $host_vendor in
12932 sni)
12933 shlibpath_overrides_runpath=no
12934 need_lib_prefix=no
12935 runpath_var=LD_RUN_PATH
12936 ;;
12937 siemens)
12938 need_lib_prefix=no
12939 ;;
12940 motorola)
12941 need_lib_prefix=no
12942 need_version=no
12943 shlibpath_overrides_runpath=no
12944 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12945 ;;
12946 esac
12947 ;;
12948
12949 sysv4*MP*)
12950 if test -d /usr/nec; then
12951 version_type=linux # correct to gnu/linux during the next big refactor
12952 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12953 soname_spec='$libname$shared_ext.$major'
12954 shlibpath_var=LD_LIBRARY_PATH
12955 fi
12956 ;;
12957
12958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12959 version_type=sco
12960 need_lib_prefix=no
12961 need_version=no
12962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12963 soname_spec='$libname$release$shared_ext$major'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 shlibpath_overrides_runpath=yes
12966 hardcode_into_libs=yes
12967 if test yes = "$with_gnu_ld"; then
12968 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12969 else
12970 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12971 case $host_os in
12972 sco3.2v5*)
12973 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12974 ;;
12975 esac
12976 fi
12977 sys_lib_dlsearch_path_spec='/usr/lib'
12978 ;;
12979
12980 tpf*)
12981 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12982 version_type=linux # correct to gnu/linux during the next big refactor
12983 need_lib_prefix=no
12984 need_version=no
12985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12986 shlibpath_var=LD_LIBRARY_PATH
12987 shlibpath_overrides_runpath=no
12988 hardcode_into_libs=yes
12989 ;;
12990
12991 uts4*)
12992 version_type=linux # correct to gnu/linux during the next big refactor
12993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12994 soname_spec='$libname$release$shared_ext$major'
12995 shlibpath_var=LD_LIBRARY_PATH
12996 ;;
12997
12998 *)
12999 dynamic_linker=no
13000 ;;
13001 esac
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13003 $as_echo "$dynamic_linker" >&6; }
13004 test no = "$dynamic_linker" && can_build_shared=no
13005
13006 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13007 if test yes = "$GCC"; then
13008 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13009 fi
13010
13011 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13012 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13013 fi
13014
13015 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13016 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13017 fi
13018
13019 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13020 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13021
13022 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13023 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13024
13025 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13026 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13125 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13126 hardcode_action=
13127 if test -n "$hardcode_libdir_flag_spec" ||
13128 test -n "$runpath_var" ||
13129 test yes = "$hardcode_automatic"; then
13130
13131 # We can hardcode non-existent directories.
13132 if test no != "$hardcode_direct" &&
13133 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13134 # have to relink, otherwise we might link with an installed library
13135 # when we should be linking with a yet-to-be-installed one
13136 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13137 test no != "$hardcode_minus_L"; then
13138 # Linking always hardcodes the temporary library directory.
13139 hardcode_action=relink
13140 else
13141 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13142 hardcode_action=immediate
13143 fi
13144 else
13145 # We cannot hardcode anything, or else we can only hardcode existing
13146 # directories.
13147 hardcode_action=unsupported
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13150 $as_echo "$hardcode_action" >&6; }
13151
13152 if test relink = "$hardcode_action" ||
13153 test yes = "$inherit_rpath"; then
13154 # Fast installation is not supported
13155 enable_fast_install=no
13156 elif test yes = "$shlibpath_overrides_runpath" ||
13157 test no = "$enable_shared"; then
13158 # Fast installation is not necessary
13159 enable_fast_install=needless
13160 fi
13161
13162
13163
13164
13165
13166
13167 if test yes != "$enable_dlopen"; then
13168 enable_dlopen=unknown
13169 enable_dlopen_self=unknown
13170 enable_dlopen_self_static=unknown
13171 else
13172 lt_cv_dlopen=no
13173 lt_cv_dlopen_libs=
13174
13175 case $host_os in
13176 beos*)
13177 lt_cv_dlopen=load_add_on
13178 lt_cv_dlopen_libs=
13179 lt_cv_dlopen_self=yes
13180 ;;
13181
13182 mingw* | pw32* | cegcc*)
13183 lt_cv_dlopen=LoadLibrary
13184 lt_cv_dlopen_libs=
13185 ;;
13186
13187 cygwin*)
13188 lt_cv_dlopen=dlopen
13189 lt_cv_dlopen_libs=
13190 ;;
13191
13192 darwin*)
13193 # if libdl is installed we need to link against it
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13195 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13196 if ${ac_cv_lib_dl_dlopen+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 ac_check_lib_save_LIBS=$LIBS
13200 LIBS="-ldl $LIBS"
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203
13204 /* Override any GCC internal prototype to avoid an error.
13205 Use char because int might match the return type of a GCC
13206 builtin and then its argument prototype would still apply. */
13207 #ifdef __cplusplus
13208 extern "C"
13209 #endif
13210 char dlopen ();
13211 int
13212 main ()
13213 {
13214 return dlopen ();
13215 ;
13216 return 0;
13217 }
13218 _ACEOF
13219 if ac_fn_c_try_link "$LINENO"; then :
13220 ac_cv_lib_dl_dlopen=yes
13221 else
13222 ac_cv_lib_dl_dlopen=no
13223 fi
13224 rm -f core conftest.err conftest.$ac_objext \
13225 conftest$ac_exeext conftest.$ac_ext
13226 LIBS=$ac_check_lib_save_LIBS
13227 fi
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13229 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13230 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13231 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13232 else
13233
13234 lt_cv_dlopen=dyld
13235 lt_cv_dlopen_libs=
13236 lt_cv_dlopen_self=yes
13237
13238 fi
13239
13240 ;;
13241
13242 tpf*)
13243 # Don't try to run any link tests for TPF. We know it's impossible
13244 # because TPF is a cross-compiler, and we know how we open DSOs.
13245 lt_cv_dlopen=dlopen
13246 lt_cv_dlopen_libs=
13247 lt_cv_dlopen_self=no
13248 ;;
13249
13250 *)
13251 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13252 if test "x$ac_cv_func_shl_load" = xyes; then :
13253 lt_cv_dlopen=shl_load
13254 else
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13256 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13257 if ${ac_cv_lib_dld_shl_load+:} false; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 ac_check_lib_save_LIBS=$LIBS
13261 LIBS="-ldld $LIBS"
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264
13265 /* Override any GCC internal prototype to avoid an error.
13266 Use char because int might match the return type of a GCC
13267 builtin and then its argument prototype would still apply. */
13268 #ifdef __cplusplus
13269 extern "C"
13270 #endif
13271 char shl_load ();
13272 int
13273 main ()
13274 {
13275 return shl_load ();
13276 ;
13277 return 0;
13278 }
13279 _ACEOF
13280 if ac_fn_c_try_link "$LINENO"; then :
13281 ac_cv_lib_dld_shl_load=yes
13282 else
13283 ac_cv_lib_dld_shl_load=no
13284 fi
13285 rm -f core conftest.err conftest.$ac_objext \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13288 fi
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13290 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13291 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13292 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13293 else
13294 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13295 if test "x$ac_cv_func_dlopen" = xyes; then :
13296 lt_cv_dlopen=dlopen
13297 else
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13299 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13300 if ${ac_cv_lib_dl_dlopen+:} false; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 ac_check_lib_save_LIBS=$LIBS
13304 LIBS="-ldl $LIBS"
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13311 #ifdef __cplusplus
13312 extern "C"
13313 #endif
13314 char dlopen ();
13315 int
13316 main ()
13317 {
13318 return dlopen ();
13319 ;
13320 return 0;
13321 }
13322 _ACEOF
13323 if ac_fn_c_try_link "$LINENO"; then :
13324 ac_cv_lib_dl_dlopen=yes
13325 else
13326 ac_cv_lib_dl_dlopen=no
13327 fi
13328 rm -f core conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS
13331 fi
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13333 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13334 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13335 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13336 else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13338 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13339 if ${ac_cv_lib_svld_dlopen+:} false; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 ac_check_lib_save_LIBS=$LIBS
13343 LIBS="-lsvld $LIBS"
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13346
13347 /* Override any GCC internal prototype to avoid an error.
13348 Use char because int might match the return type of a GCC
13349 builtin and then its argument prototype would still apply. */
13350 #ifdef __cplusplus
13351 extern "C"
13352 #endif
13353 char dlopen ();
13354 int
13355 main ()
13356 {
13357 return dlopen ();
13358 ;
13359 return 0;
13360 }
13361 _ACEOF
13362 if ac_fn_c_try_link "$LINENO"; then :
13363 ac_cv_lib_svld_dlopen=yes
13364 else
13365 ac_cv_lib_svld_dlopen=no
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext \
13368 conftest$ac_exeext conftest.$ac_ext
13369 LIBS=$ac_check_lib_save_LIBS
13370 fi
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13372 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13373 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13374 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13377 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13378 if ${ac_cv_lib_dld_dld_link+:} false; then :
13379 $as_echo_n "(cached) " >&6
13380 else
13381 ac_check_lib_save_LIBS=$LIBS
13382 LIBS="-ldld $LIBS"
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385
13386 /* Override any GCC internal prototype to avoid an error.
13387 Use char because int might match the return type of a GCC
13388 builtin and then its argument prototype would still apply. */
13389 #ifdef __cplusplus
13390 extern "C"
13391 #endif
13392 char dld_link ();
13393 int
13394 main ()
13395 {
13396 return dld_link ();
13397 ;
13398 return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_link "$LINENO"; then :
13402 ac_cv_lib_dld_dld_link=yes
13403 else
13404 ac_cv_lib_dld_dld_link=no
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext \
13407 conftest$ac_exeext conftest.$ac_ext
13408 LIBS=$ac_check_lib_save_LIBS
13409 fi
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13411 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13412 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13413 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13414 fi
13415
13416
13417 fi
13418
13419
13420 fi
13421
13422
13423 fi
13424
13425
13426 fi
13427
13428
13429 fi
13430
13431 ;;
13432 esac
13433
13434 if test no = "$lt_cv_dlopen"; then
13435 enable_dlopen=no
13436 else
13437 enable_dlopen=yes
13438 fi
13439
13440 case $lt_cv_dlopen in
13441 dlopen)
13442 save_CPPFLAGS=$CPPFLAGS
13443 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13444
13445 save_LDFLAGS=$LDFLAGS
13446 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13447
13448 save_LIBS=$LIBS
13449 LIBS="$lt_cv_dlopen_libs $LIBS"
13450
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13452 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13453 if ${lt_cv_dlopen_self+:} false; then :
13454 $as_echo_n "(cached) " >&6
13455 else
13456 if test yes = "$cross_compiling"; then :
13457 lt_cv_dlopen_self=cross
13458 else
13459 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13460 lt_status=$lt_dlunknown
13461 cat > conftest.$ac_ext <<_LT_EOF
13462 #line $LINENO "configure"
13463 #include "confdefs.h"
13464
13465 #if HAVE_DLFCN_H
13466 #include <dlfcn.h>
13467 #endif
13468
13469 #include <stdio.h>
13470
13471 #ifdef RTLD_GLOBAL
13472 # define LT_DLGLOBAL RTLD_GLOBAL
13473 #else
13474 # ifdef DL_GLOBAL
13475 # define LT_DLGLOBAL DL_GLOBAL
13476 # else
13477 # define LT_DLGLOBAL 0
13478 # endif
13479 #endif
13480
13481 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13482 find out it does not work in some platform. */
13483 #ifndef LT_DLLAZY_OR_NOW
13484 # ifdef RTLD_LAZY
13485 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13486 # else
13487 # ifdef DL_LAZY
13488 # define LT_DLLAZY_OR_NOW DL_LAZY
13489 # else
13490 # ifdef RTLD_NOW
13491 # define LT_DLLAZY_OR_NOW RTLD_NOW
13492 # else
13493 # ifdef DL_NOW
13494 # define LT_DLLAZY_OR_NOW DL_NOW
13495 # else
13496 # define LT_DLLAZY_OR_NOW 0
13497 # endif
13498 # endif
13499 # endif
13500 # endif
13501 #endif
13502
13503 /* When -fvisibility=hidden is used, assume the code has been annotated
13504 correspondingly for the symbols needed. */
13505 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13506 int fnord () __attribute__((visibility("default")));
13507 #endif
13508
13509 int fnord () { return 42; }
13510 int main ()
13511 {
13512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13513 int status = $lt_dlunknown;
13514
13515 if (self)
13516 {
13517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13518 else
13519 {
13520 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13521 else puts (dlerror ());
13522 }
13523 /* dlclose (self); */
13524 }
13525 else
13526 puts (dlerror ());
13527
13528 return status;
13529 }
13530 _LT_EOF
13531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13532 (eval $ac_link) 2>&5
13533 ac_status=$?
13534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13535 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13536 (./conftest; exit; ) >&5 2>/dev/null
13537 lt_status=$?
13538 case x$lt_status in
13539 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13540 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13541 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13542 esac
13543 else :
13544 # compilation failed
13545 lt_cv_dlopen_self=no
13546 fi
13547 fi
13548 rm -fr conftest*
13549
13550
13551 fi
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13553 $as_echo "$lt_cv_dlopen_self" >&6; }
13554
13555 if test yes = "$lt_cv_dlopen_self"; then
13556 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13558 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13559 if ${lt_cv_dlopen_self_static+:} false; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 if test yes = "$cross_compiling"; then :
13563 lt_cv_dlopen_self_static=cross
13564 else
13565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13566 lt_status=$lt_dlunknown
13567 cat > conftest.$ac_ext <<_LT_EOF
13568 #line $LINENO "configure"
13569 #include "confdefs.h"
13570
13571 #if HAVE_DLFCN_H
13572 #include <dlfcn.h>
13573 #endif
13574
13575 #include <stdio.h>
13576
13577 #ifdef RTLD_GLOBAL
13578 # define LT_DLGLOBAL RTLD_GLOBAL
13579 #else
13580 # ifdef DL_GLOBAL
13581 # define LT_DLGLOBAL DL_GLOBAL
13582 # else
13583 # define LT_DLGLOBAL 0
13584 # endif
13585 #endif
13586
13587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13588 find out it does not work in some platform. */
13589 #ifndef LT_DLLAZY_OR_NOW
13590 # ifdef RTLD_LAZY
13591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13592 # else
13593 # ifdef DL_LAZY
13594 # define LT_DLLAZY_OR_NOW DL_LAZY
13595 # else
13596 # ifdef RTLD_NOW
13597 # define LT_DLLAZY_OR_NOW RTLD_NOW
13598 # else
13599 # ifdef DL_NOW
13600 # define LT_DLLAZY_OR_NOW DL_NOW
13601 # else
13602 # define LT_DLLAZY_OR_NOW 0
13603 # endif
13604 # endif
13605 # endif
13606 # endif
13607 #endif
13608
13609 /* When -fvisibility=hidden is used, assume the code has been annotated
13610 correspondingly for the symbols needed. */
13611 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13612 int fnord () __attribute__((visibility("default")));
13613 #endif
13614
13615 int fnord () { return 42; }
13616 int main ()
13617 {
13618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13619 int status = $lt_dlunknown;
13620
13621 if (self)
13622 {
13623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13624 else
13625 {
13626 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13627 else puts (dlerror ());
13628 }
13629 /* dlclose (self); */
13630 }
13631 else
13632 puts (dlerror ());
13633
13634 return status;
13635 }
13636 _LT_EOF
13637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13638 (eval $ac_link) 2>&5
13639 ac_status=$?
13640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13641 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13642 (./conftest; exit; ) >&5 2>/dev/null
13643 lt_status=$?
13644 case x$lt_status in
13645 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13646 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13647 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13648 esac
13649 else :
13650 # compilation failed
13651 lt_cv_dlopen_self_static=no
13652 fi
13653 fi
13654 rm -fr conftest*
13655
13656
13657 fi
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13659 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13660 fi
13661
13662 CPPFLAGS=$save_CPPFLAGS
13663 LDFLAGS=$save_LDFLAGS
13664 LIBS=$save_LIBS
13665 ;;
13666 esac
13667
13668 case $lt_cv_dlopen_self in
13669 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13670 *) enable_dlopen_self=unknown ;;
13671 esac
13672
13673 case $lt_cv_dlopen_self_static in
13674 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13675 *) enable_dlopen_self_static=unknown ;;
13676 esac
13677 fi
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695 striplib=
13696 old_striplib=
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13698 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13699 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13700 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13701 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13703 $as_echo "yes" >&6; }
13704 else
13705 # FIXME - insert some real tests, host_os isn't really good enough
13706 case $host_os in
13707 darwin*)
13708 if test -n "$STRIP"; then
13709 striplib="$STRIP -x"
13710 old_striplib="$STRIP -S"
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13712 $as_echo "yes" >&6; }
13713 else
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715 $as_echo "no" >&6; }
13716 fi
13717 ;;
13718 *)
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13721 ;;
13722 esac
13723 fi
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736 # Report what library types will actually be built
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13738 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13740 $as_echo "$can_build_shared" >&6; }
13741
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13743 $as_echo_n "checking whether to build shared libraries... " >&6; }
13744 test no = "$can_build_shared" && enable_shared=no
13745
13746 # On AIX, shared libraries and static libraries use the same namespace, and
13747 # are all built from PIC.
13748 case $host_os in
13749 aix3*)
13750 test yes = "$enable_shared" && enable_static=no
13751 if test -n "$RANLIB"; then
13752 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13753 postinstall_cmds='$RANLIB $lib'
13754 fi
13755 ;;
13756
13757 aix[4-9]*)
13758 if test ia64 != "$host_cpu"; then
13759 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13760 yes,aix,yes) ;; # shared object as lib.so file only
13761 yes,svr4,*) ;; # shared object as lib.so archive member only
13762 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13763 esac
13764 fi
13765 ;;
13766 esac
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13768 $as_echo "$enable_shared" >&6; }
13769
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13771 $as_echo_n "checking whether to build static libraries... " >&6; }
13772 # Make sure either enable_shared or enable_static is yes.
13773 test yes = "$enable_shared" || enable_static=yes
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13775 $as_echo "$enable_static" >&6; }
13776
13777
13778
13779
13780 fi
13781 ac_ext=c
13782 ac_cpp='$CPP $CPPFLAGS'
13783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13786
13787 CC=$lt_save_CC
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803 ac_config_commands="$ac_config_commands libtool"
13804
13805
13806
13807
13808 # Only expand once:
13809
13810
13811
13812
13813
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13815 $as_echo_n "checking whether NLS is requested... " >&6; }
13816 # Check whether --enable-nls was given.
13817 if test "${enable_nls+set}" = set; then :
13818 enableval=$enable_nls; USE_NLS=$enableval
13819 else
13820 USE_NLS=yes
13821 fi
13822
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13824 $as_echo "$USE_NLS" >&6; }
13825
13826
13827
13828
13829 GETTEXT_MACRO_VERSION=0.19
13830
13831
13832
13833
13834 # Prepare PATH_SEPARATOR.
13835 # The user is always right.
13836 if test "${PATH_SEPARATOR+set}" != set; then
13837 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13838 # contains only /bin. Note that ksh looks also at the FPATH variable,
13839 # so we have to set that as well for the test.
13840 PATH_SEPARATOR=:
13841 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13842 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13843 || PATH_SEPARATOR=';'
13844 }
13845 fi
13846
13847 # Find out how to test for executable files. Don't use a zero-byte file,
13848 # as systems may use methods other than mode bits to determine executability.
13849 cat >conf$$.file <<_ASEOF
13850 #! /bin/sh
13851 exit 0
13852 _ASEOF
13853 chmod +x conf$$.file
13854 if test -x conf$$.file >/dev/null 2>&1; then
13855 ac_executable_p="test -x"
13856 else
13857 ac_executable_p="test -f"
13858 fi
13859 rm -f conf$$.file
13860
13861 # Extract the first word of "msgfmt", so it can be a program name with args.
13862 set dummy msgfmt; ac_word=$2
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13864 $as_echo_n "checking for $ac_word... " >&6; }
13865 if ${ac_cv_path_MSGFMT+:} false; then :
13866 $as_echo_n "(cached) " >&6
13867 else
13868 case "$MSGFMT" in
13869 [\\/]* | ?:[\\/]*)
13870 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13871 ;;
13872 *)
13873 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13874 for ac_dir in $PATH; do
13875 IFS="$ac_save_IFS"
13876 test -z "$ac_dir" && ac_dir=.
13877 for ac_exec_ext in '' $ac_executable_extensions; do
13878 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13879 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13880 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13881 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13882 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13883 break 2
13884 fi
13885 fi
13886 done
13887 done
13888 IFS="$ac_save_IFS"
13889 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13890 ;;
13891 esac
13892 fi
13893 MSGFMT="$ac_cv_path_MSGFMT"
13894 if test "$MSGFMT" != ":"; then
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13896 $as_echo "$MSGFMT" >&6; }
13897 else
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13899 $as_echo "no" >&6; }
13900 fi
13901
13902 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13903 set dummy gmsgfmt; ac_word=$2
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13905 $as_echo_n "checking for $ac_word... " >&6; }
13906 if ${ac_cv_path_GMSGFMT+:} false; then :
13907 $as_echo_n "(cached) " >&6
13908 else
13909 case $GMSGFMT in
13910 [\\/]* | ?:[\\/]*)
13911 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13912 ;;
13913 *)
13914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915 for as_dir in $PATH
13916 do
13917 IFS=$as_save_IFS
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
13920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13921 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13923 break 2
13924 fi
13925 done
13926 done
13927 IFS=$as_save_IFS
13928
13929 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13930 ;;
13931 esac
13932 fi
13933 GMSGFMT=$ac_cv_path_GMSGFMT
13934 if test -n "$GMSGFMT"; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13936 $as_echo "$GMSGFMT" >&6; }
13937 else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13939 $as_echo "no" >&6; }
13940 fi
13941
13942
13943
13944 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13945 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13946 *) MSGFMT_015=$MSGFMT ;;
13947 esac
13948
13949 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13950 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13951 *) GMSGFMT_015=$GMSGFMT ;;
13952 esac
13953
13954
13955
13956 # Prepare PATH_SEPARATOR.
13957 # The user is always right.
13958 if test "${PATH_SEPARATOR+set}" != set; then
13959 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13960 # contains only /bin. Note that ksh looks also at the FPATH variable,
13961 # so we have to set that as well for the test.
13962 PATH_SEPARATOR=:
13963 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13964 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13965 || PATH_SEPARATOR=';'
13966 }
13967 fi
13968
13969 # Find out how to test for executable files. Don't use a zero-byte file,
13970 # as systems may use methods other than mode bits to determine executability.
13971 cat >conf$$.file <<_ASEOF
13972 #! /bin/sh
13973 exit 0
13974 _ASEOF
13975 chmod +x conf$$.file
13976 if test -x conf$$.file >/dev/null 2>&1; then
13977 ac_executable_p="test -x"
13978 else
13979 ac_executable_p="test -f"
13980 fi
13981 rm -f conf$$.file
13982
13983 # Extract the first word of "xgettext", so it can be a program name with args.
13984 set dummy xgettext; ac_word=$2
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13986 $as_echo_n "checking for $ac_word... " >&6; }
13987 if ${ac_cv_path_XGETTEXT+:} false; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 case "$XGETTEXT" in
13991 [\\/]* | ?:[\\/]*)
13992 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13993 ;;
13994 *)
13995 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13996 for ac_dir in $PATH; do
13997 IFS="$ac_save_IFS"
13998 test -z "$ac_dir" && ac_dir=.
13999 for ac_exec_ext in '' $ac_executable_extensions; do
14000 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14001 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14002 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14003 (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
14004 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14005 break 2
14006 fi
14007 fi
14008 done
14009 done
14010 IFS="$ac_save_IFS"
14011 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14012 ;;
14013 esac
14014 fi
14015 XGETTEXT="$ac_cv_path_XGETTEXT"
14016 if test "$XGETTEXT" != ":"; then
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14018 $as_echo "$XGETTEXT" >&6; }
14019 else
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 $as_echo "no" >&6; }
14022 fi
14023
14024 rm -f messages.po
14025
14026 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14027 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14028 *) XGETTEXT_015=$XGETTEXT ;;
14029 esac
14030
14031
14032
14033 # Prepare PATH_SEPARATOR.
14034 # The user is always right.
14035 if test "${PATH_SEPARATOR+set}" != set; then
14036 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14037 # contains only /bin. Note that ksh looks also at the FPATH variable,
14038 # so we have to set that as well for the test.
14039 PATH_SEPARATOR=:
14040 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14041 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14042 || PATH_SEPARATOR=';'
14043 }
14044 fi
14045
14046 # Find out how to test for executable files. Don't use a zero-byte file,
14047 # as systems may use methods other than mode bits to determine executability.
14048 cat >conf$$.file <<_ASEOF
14049 #! /bin/sh
14050 exit 0
14051 _ASEOF
14052 chmod +x conf$$.file
14053 if test -x conf$$.file >/dev/null 2>&1; then
14054 ac_executable_p="test -x"
14055 else
14056 ac_executable_p="test -f"
14057 fi
14058 rm -f conf$$.file
14059
14060 # Extract the first word of "msgmerge", so it can be a program name with args.
14061 set dummy msgmerge; ac_word=$2
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14063 $as_echo_n "checking for $ac_word... " >&6; }
14064 if ${ac_cv_path_MSGMERGE+:} false; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 case "$MSGMERGE" in
14068 [\\/]* | ?:[\\/]*)
14069 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14070 ;;
14071 *)
14072 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14073 for ac_dir in $PATH; do
14074 IFS="$ac_save_IFS"
14075 test -z "$ac_dir" && ac_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
14077 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14078 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14079 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14080 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14081 break 2
14082 fi
14083 fi
14084 done
14085 done
14086 IFS="$ac_save_IFS"
14087 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14088 ;;
14089 esac
14090 fi
14091 MSGMERGE="$ac_cv_path_MSGMERGE"
14092 if test "$MSGMERGE" != ":"; then
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14094 $as_echo "$MSGMERGE" >&6; }
14095 else
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14097 $as_echo "no" >&6; }
14098 fi
14099
14100
14101 test -n "$localedir" || localedir='${datadir}/locale'
14102
14103
14104 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14105
14106
14107 ac_config_commands="$ac_config_commands po-directories"
14108
14109
14110
14111 if test "X$prefix" = "XNONE"; then
14112 acl_final_prefix="$ac_default_prefix"
14113 else
14114 acl_final_prefix="$prefix"
14115 fi
14116 if test "X$exec_prefix" = "XNONE"; then
14117 acl_final_exec_prefix='${prefix}'
14118 else
14119 acl_final_exec_prefix="$exec_prefix"
14120 fi
14121 acl_save_prefix="$prefix"
14122 prefix="$acl_final_prefix"
14123 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14124 prefix="$acl_save_prefix"
14125
14126
14127
14128 # Check whether --with-gnu-ld was given.
14129 if test "${with_gnu_ld+set}" = set; then :
14130 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14131 else
14132 with_gnu_ld=no
14133 fi
14134
14135 # Prepare PATH_SEPARATOR.
14136 # The user is always right.
14137 if test "${PATH_SEPARATOR+set}" != set; then
14138 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14139 # contains only /bin. Note that ksh looks also at the FPATH variable,
14140 # so we have to set that as well for the test.
14141 PATH_SEPARATOR=:
14142 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14143 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14144 || PATH_SEPARATOR=';'
14145 }
14146 fi
14147
14148 ac_prog=ld
14149 if test "$GCC" = yes; then
14150 # Check if gcc -print-prog-name=ld gives a path.
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14152 $as_echo_n "checking for ld used by $CC... " >&6; }
14153 case $host in
14154 *-*-mingw*)
14155 # gcc leaves a trailing carriage return which upsets mingw
14156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14157 *)
14158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14159 esac
14160 case $ac_prog in
14161 # Accept absolute paths.
14162 [\\/]* | ?:[\\/]*)
14163 re_direlt='/[^/][^/]*/\.\./'
14164 # Canonicalize the pathname of ld
14165 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
14166 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
14167 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14168 done
14169 test -z "$LD" && LD="$ac_prog"
14170 ;;
14171 "")
14172 # If it fails, then pretend we aren't using GCC.
14173 ac_prog=ld
14174 ;;
14175 *)
14176 # If it is relative, then search for the first ld in PATH.
14177 with_gnu_ld=unknown
14178 ;;
14179 esac
14180 elif test "$with_gnu_ld" = yes; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14182 $as_echo_n "checking for GNU ld... " >&6; }
14183 else
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14185 $as_echo_n "checking for non-GNU ld... " >&6; }
14186 fi
14187 if ${acl_cv_path_LD+:} false; then :
14188 $as_echo_n "(cached) " >&6
14189 else
14190 if test -z "$LD"; then
14191 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14192 for ac_dir in $PATH; do
14193 IFS="$acl_save_ifs"
14194 test -z "$ac_dir" && ac_dir=.
14195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14196 acl_cv_path_LD="$ac_dir/$ac_prog"
14197 # Check to see if the program is GNU ld. I'd rather use --version,
14198 # but apparently some variants of GNU ld only accept -v.
14199 # Break only if it was the GNU/non-GNU ld that we prefer.
14200 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
14201 *GNU* | *'with BFD'*)
14202 test "$with_gnu_ld" != no && break
14203 ;;
14204 *)
14205 test "$with_gnu_ld" != yes && break
14206 ;;
14207 esac
14208 fi
14209 done
14210 IFS="$acl_save_ifs"
14211 else
14212 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14213 fi
14214 fi
14215
14216 LD="$acl_cv_path_LD"
14217 if test -n "$LD"; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14219 $as_echo "$LD" >&6; }
14220 else
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222 $as_echo "no" >&6; }
14223 fi
14224 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14226 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14227 if ${acl_cv_prog_gnu_ld+:} false; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14231 case `$LD -v 2>&1 </dev/null` in
14232 *GNU* | *'with BFD'*)
14233 acl_cv_prog_gnu_ld=yes
14234 ;;
14235 *)
14236 acl_cv_prog_gnu_ld=no
14237 ;;
14238 esac
14239 fi
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14241 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14242 with_gnu_ld=$acl_cv_prog_gnu_ld
14243
14244
14245
14246
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14248 $as_echo_n "checking for shared library run path origin... " >&6; }
14249 if ${acl_cv_rpath+:} false; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252
14253 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14254 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14255 . ./conftest.sh
14256 rm -f ./conftest.sh
14257 acl_cv_rpath=done
14258
14259 fi
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14261 $as_echo "$acl_cv_rpath" >&6; }
14262 wl="$acl_cv_wl"
14263 acl_libext="$acl_cv_libext"
14264 acl_shlibext="$acl_cv_shlibext"
14265 acl_libname_spec="$acl_cv_libname_spec"
14266 acl_library_names_spec="$acl_cv_library_names_spec"
14267 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14268 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14269 acl_hardcode_direct="$acl_cv_hardcode_direct"
14270 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14271 # Check whether --enable-rpath was given.
14272 if test "${enable_rpath+set}" = set; then :
14273 enableval=$enable_rpath; :
14274 else
14275 enable_rpath=yes
14276 fi
14277
14278
14279
14280
14281 acl_libdirstem=lib
14282 acl_libdirstem2=
14283 case "$host_os" in
14284 solaris*)
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14286 $as_echo_n "checking for 64-bit host... " >&6; }
14287 if ${gl_cv_solaris_64bit+:} false; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291 /* end confdefs.h. */
14292
14293 #ifdef _LP64
14294 sixtyfour bits
14295 #endif
14296
14297 _ACEOF
14298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14299 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14300 gl_cv_solaris_64bit=yes
14301 else
14302 gl_cv_solaris_64bit=no
14303 fi
14304 rm -f conftest*
14305
14306
14307 fi
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14309 $as_echo "$gl_cv_solaris_64bit" >&6; }
14310 if test $gl_cv_solaris_64bit = yes; then
14311 acl_libdirstem=lib/64
14312 case "$host_cpu" in
14313 sparc*) acl_libdirstem2=lib/sparcv9 ;;
14314 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14315 esac
14316 fi
14317 ;;
14318 *)
14319 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14320 if test -n "$searchpath"; then
14321 acl_save_IFS="${IFS= }"; IFS=":"
14322 for searchdir in $searchpath; do
14323 if test -d "$searchdir"; then
14324 case "$searchdir" in
14325 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14326 */../ | */.. )
14327 # Better ignore directories of this form. They are misleading.
14328 ;;
14329 *) searchdir=`cd "$searchdir" && pwd`
14330 case "$searchdir" in
14331 */lib64 ) acl_libdirstem=lib64 ;;
14332 esac ;;
14333 esac
14334 fi
14335 done
14336 IFS="$acl_save_IFS"
14337 fi
14338 ;;
14339 esac
14340 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353 use_additional=yes
14354
14355 acl_save_prefix="$prefix"
14356 prefix="$acl_final_prefix"
14357 acl_save_exec_prefix="$exec_prefix"
14358 exec_prefix="$acl_final_exec_prefix"
14359
14360 eval additional_includedir=\"$includedir\"
14361 eval additional_libdir=\"$libdir\"
14362
14363 exec_prefix="$acl_save_exec_prefix"
14364 prefix="$acl_save_prefix"
14365
14366
14367 # Check whether --with-libiconv-prefix was given.
14368 if test "${with_libiconv_prefix+set}" = set; then :
14369 withval=$with_libiconv_prefix;
14370 if test "X$withval" = "Xno"; then
14371 use_additional=no
14372 else
14373 if test "X$withval" = "X"; then
14374
14375 acl_save_prefix="$prefix"
14376 prefix="$acl_final_prefix"
14377 acl_save_exec_prefix="$exec_prefix"
14378 exec_prefix="$acl_final_exec_prefix"
14379
14380 eval additional_includedir=\"$includedir\"
14381 eval additional_libdir=\"$libdir\"
14382
14383 exec_prefix="$acl_save_exec_prefix"
14384 prefix="$acl_save_prefix"
14385
14386 else
14387 additional_includedir="$withval/include"
14388 additional_libdir="$withval/$acl_libdirstem"
14389 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14390 && ! test -d "$withval/$acl_libdirstem"; then
14391 additional_libdir="$withval/$acl_libdirstem2"
14392 fi
14393 fi
14394 fi
14395
14396 fi
14397
14398 LIBICONV=
14399 LTLIBICONV=
14400 INCICONV=
14401 LIBICONV_PREFIX=
14402 HAVE_LIBICONV=
14403 rpathdirs=
14404 ltrpathdirs=
14405 names_already_handled=
14406 names_next_round='iconv '
14407 while test -n "$names_next_round"; do
14408 names_this_round="$names_next_round"
14409 names_next_round=
14410 for name in $names_this_round; do
14411 already_handled=
14412 for n in $names_already_handled; do
14413 if test "$n" = "$name"; then
14414 already_handled=yes
14415 break
14416 fi
14417 done
14418 if test -z "$already_handled"; then
14419 names_already_handled="$names_already_handled $name"
14420 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14421 eval value=\"\$HAVE_LIB$uppername\"
14422 if test -n "$value"; then
14423 if test "$value" = yes; then
14424 eval value=\"\$LIB$uppername\"
14425 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14426 eval value=\"\$LTLIB$uppername\"
14427 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14428 else
14429 :
14430 fi
14431 else
14432 found_dir=
14433 found_la=
14434 found_so=
14435 found_a=
14436 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14437 if test -n "$acl_shlibext"; then
14438 shrext=".$acl_shlibext" # typically: shrext=.so
14439 else
14440 shrext=
14441 fi
14442 if test $use_additional = yes; then
14443 dir="$additional_libdir"
14444 if test -n "$acl_shlibext"; then
14445 if test -f "$dir/$libname$shrext"; then
14446 found_dir="$dir"
14447 found_so="$dir/$libname$shrext"
14448 else
14449 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14450 ver=`(cd "$dir" && \
14451 for f in "$libname$shrext".*; do echo "$f"; done \
14452 | sed -e "s,^$libname$shrext\\\\.,," \
14453 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14454 | sed 1q ) 2>/dev/null`
14455 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14456 found_dir="$dir"
14457 found_so="$dir/$libname$shrext.$ver"
14458 fi
14459 else
14460 eval library_names=\"$acl_library_names_spec\"
14461 for f in $library_names; do
14462 if test -f "$dir/$f"; then
14463 found_dir="$dir"
14464 found_so="$dir/$f"
14465 break
14466 fi
14467 done
14468 fi
14469 fi
14470 fi
14471 if test "X$found_dir" = "X"; then
14472 if test -f "$dir/$libname.$acl_libext"; then
14473 found_dir="$dir"
14474 found_a="$dir/$libname.$acl_libext"
14475 fi
14476 fi
14477 if test "X$found_dir" != "X"; then
14478 if test -f "$dir/$libname.la"; then
14479 found_la="$dir/$libname.la"
14480 fi
14481 fi
14482 fi
14483 if test "X$found_dir" = "X"; then
14484 for x in $LDFLAGS $LTLIBICONV; do
14485
14486 acl_save_prefix="$prefix"
14487 prefix="$acl_final_prefix"
14488 acl_save_exec_prefix="$exec_prefix"
14489 exec_prefix="$acl_final_exec_prefix"
14490 eval x=\"$x\"
14491 exec_prefix="$acl_save_exec_prefix"
14492 prefix="$acl_save_prefix"
14493
14494 case "$x" in
14495 -L*)
14496 dir=`echo "X$x" | sed -e 's/^X-L//'`
14497 if test -n "$acl_shlibext"; then
14498 if test -f "$dir/$libname$shrext"; then
14499 found_dir="$dir"
14500 found_so="$dir/$libname$shrext"
14501 else
14502 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14503 ver=`(cd "$dir" && \
14504 for f in "$libname$shrext".*; do echo "$f"; done \
14505 | sed -e "s,^$libname$shrext\\\\.,," \
14506 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14507 | sed 1q ) 2>/dev/null`
14508 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14509 found_dir="$dir"
14510 found_so="$dir/$libname$shrext.$ver"
14511 fi
14512 else
14513 eval library_names=\"$acl_library_names_spec\"
14514 for f in $library_names; do
14515 if test -f "$dir/$f"; then
14516 found_dir="$dir"
14517 found_so="$dir/$f"
14518 break
14519 fi
14520 done
14521 fi
14522 fi
14523 fi
14524 if test "X$found_dir" = "X"; then
14525 if test -f "$dir/$libname.$acl_libext"; then
14526 found_dir="$dir"
14527 found_a="$dir/$libname.$acl_libext"
14528 fi
14529 fi
14530 if test "X$found_dir" != "X"; then
14531 if test -f "$dir/$libname.la"; then
14532 found_la="$dir/$libname.la"
14533 fi
14534 fi
14535 ;;
14536 esac
14537 if test "X$found_dir" != "X"; then
14538 break
14539 fi
14540 done
14541 fi
14542 if test "X$found_dir" != "X"; then
14543 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14544 if test "X$found_so" != "X"; then
14545 if test "$enable_rpath" = no \
14546 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14547 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14548 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14549 else
14550 haveit=
14551 for x in $ltrpathdirs; do
14552 if test "X$x" = "X$found_dir"; then
14553 haveit=yes
14554 break
14555 fi
14556 done
14557 if test -z "$haveit"; then
14558 ltrpathdirs="$ltrpathdirs $found_dir"
14559 fi
14560 if test "$acl_hardcode_direct" = yes; then
14561 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14562 else
14563 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14564 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14565 haveit=
14566 for x in $rpathdirs; do
14567 if test "X$x" = "X$found_dir"; then
14568 haveit=yes
14569 break
14570 fi
14571 done
14572 if test -z "$haveit"; then
14573 rpathdirs="$rpathdirs $found_dir"
14574 fi
14575 else
14576 haveit=
14577 for x in $LDFLAGS $LIBICONV; do
14578
14579 acl_save_prefix="$prefix"
14580 prefix="$acl_final_prefix"
14581 acl_save_exec_prefix="$exec_prefix"
14582 exec_prefix="$acl_final_exec_prefix"
14583 eval x=\"$x\"
14584 exec_prefix="$acl_save_exec_prefix"
14585 prefix="$acl_save_prefix"
14586
14587 if test "X$x" = "X-L$found_dir"; then
14588 haveit=yes
14589 break
14590 fi
14591 done
14592 if test -z "$haveit"; then
14593 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14594 fi
14595 if test "$acl_hardcode_minus_L" != no; then
14596 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14597 else
14598 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14599 fi
14600 fi
14601 fi
14602 fi
14603 else
14604 if test "X$found_a" != "X"; then
14605 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14606 else
14607 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14608 fi
14609 fi
14610 additional_includedir=
14611 case "$found_dir" in
14612 */$acl_libdirstem | */$acl_libdirstem/)
14613 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14614 if test "$name" = 'iconv'; then
14615 LIBICONV_PREFIX="$basedir"
14616 fi
14617 additional_includedir="$basedir/include"
14618 ;;
14619 */$acl_libdirstem2 | */$acl_libdirstem2/)
14620 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14621 if test "$name" = 'iconv'; then
14622 LIBICONV_PREFIX="$basedir"
14623 fi
14624 additional_includedir="$basedir/include"
14625 ;;
14626 esac
14627 if test "X$additional_includedir" != "X"; then
14628 if test "X$additional_includedir" != "X/usr/include"; then
14629 haveit=
14630 if test "X$additional_includedir" = "X/usr/local/include"; then
14631 if test -n "$GCC"; then
14632 case $host_os in
14633 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14634 esac
14635 fi
14636 fi
14637 if test -z "$haveit"; then
14638 for x in $CPPFLAGS $INCICONV; do
14639
14640 acl_save_prefix="$prefix"
14641 prefix="$acl_final_prefix"
14642 acl_save_exec_prefix="$exec_prefix"
14643 exec_prefix="$acl_final_exec_prefix"
14644 eval x=\"$x\"
14645 exec_prefix="$acl_save_exec_prefix"
14646 prefix="$acl_save_prefix"
14647
14648 if test "X$x" = "X-I$additional_includedir"; then
14649 haveit=yes
14650 break
14651 fi
14652 done
14653 if test -z "$haveit"; then
14654 if test -d "$additional_includedir"; then
14655 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14656 fi
14657 fi
14658 fi
14659 fi
14660 fi
14661 if test -n "$found_la"; then
14662 save_libdir="$libdir"
14663 case "$found_la" in
14664 */* | *\\*) . "$found_la" ;;
14665 *) . "./$found_la" ;;
14666 esac
14667 libdir="$save_libdir"
14668 for dep in $dependency_libs; do
14669 case "$dep" in
14670 -L*)
14671 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14672 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14673 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14674 haveit=
14675 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14676 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14677 if test -n "$GCC"; then
14678 case $host_os in
14679 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14680 esac
14681 fi
14682 fi
14683 if test -z "$haveit"; then
14684 haveit=
14685 for x in $LDFLAGS $LIBICONV; do
14686
14687 acl_save_prefix="$prefix"
14688 prefix="$acl_final_prefix"
14689 acl_save_exec_prefix="$exec_prefix"
14690 exec_prefix="$acl_final_exec_prefix"
14691 eval x=\"$x\"
14692 exec_prefix="$acl_save_exec_prefix"
14693 prefix="$acl_save_prefix"
14694
14695 if test "X$x" = "X-L$additional_libdir"; then
14696 haveit=yes
14697 break
14698 fi
14699 done
14700 if test -z "$haveit"; then
14701 if test -d "$additional_libdir"; then
14702 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14703 fi
14704 fi
14705 haveit=
14706 for x in $LDFLAGS $LTLIBICONV; do
14707
14708 acl_save_prefix="$prefix"
14709 prefix="$acl_final_prefix"
14710 acl_save_exec_prefix="$exec_prefix"
14711 exec_prefix="$acl_final_exec_prefix"
14712 eval x=\"$x\"
14713 exec_prefix="$acl_save_exec_prefix"
14714 prefix="$acl_save_prefix"
14715
14716 if test "X$x" = "X-L$additional_libdir"; then
14717 haveit=yes
14718 break
14719 fi
14720 done
14721 if test -z "$haveit"; then
14722 if test -d "$additional_libdir"; then
14723 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14724 fi
14725 fi
14726 fi
14727 fi
14728 ;;
14729 -R*)
14730 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14731 if test "$enable_rpath" != no; then
14732 haveit=
14733 for x in $rpathdirs; do
14734 if test "X$x" = "X$dir"; then
14735 haveit=yes
14736 break
14737 fi
14738 done
14739 if test -z "$haveit"; then
14740 rpathdirs="$rpathdirs $dir"
14741 fi
14742 haveit=
14743 for x in $ltrpathdirs; do
14744 if test "X$x" = "X$dir"; then
14745 haveit=yes
14746 break
14747 fi
14748 done
14749 if test -z "$haveit"; then
14750 ltrpathdirs="$ltrpathdirs $dir"
14751 fi
14752 fi
14753 ;;
14754 -l*)
14755 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14756 ;;
14757 *.la)
14758 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14759 ;;
14760 *)
14761 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14763 ;;
14764 esac
14765 done
14766 fi
14767 else
14768 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14769 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14770 fi
14771 fi
14772 fi
14773 done
14774 done
14775 if test "X$rpathdirs" != "X"; then
14776 if test -n "$acl_hardcode_libdir_separator"; then
14777 alldirs=
14778 for found_dir in $rpathdirs; do
14779 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14780 done
14781 acl_save_libdir="$libdir"
14782 libdir="$alldirs"
14783 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14784 libdir="$acl_save_libdir"
14785 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14786 else
14787 for found_dir in $rpathdirs; do
14788 acl_save_libdir="$libdir"
14789 libdir="$found_dir"
14790 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14791 libdir="$acl_save_libdir"
14792 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14793 done
14794 fi
14795 fi
14796 if test "X$ltrpathdirs" != "X"; then
14797 for found_dir in $ltrpathdirs; do
14798 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14799 done
14800 fi
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14833 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14834 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14835 $as_echo_n "(cached) " >&6
14836 else
14837 gt_save_LIBS="$LIBS"
14838 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14841 #include <CoreFoundation/CFPreferences.h>
14842 int
14843 main ()
14844 {
14845 CFPreferencesCopyAppValue(NULL, NULL)
14846 ;
14847 return 0;
14848 }
14849 _ACEOF
14850 if ac_fn_c_try_link "$LINENO"; then :
14851 gt_cv_func_CFPreferencesCopyAppValue=yes
14852 else
14853 gt_cv_func_CFPreferencesCopyAppValue=no
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14857 LIBS="$gt_save_LIBS"
14858 fi
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14860 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14861 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14862
14863 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14864
14865 fi
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14867 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14868 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 gt_save_LIBS="$LIBS"
14872 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14875 #include <CoreFoundation/CFLocale.h>
14876 int
14877 main ()
14878 {
14879 CFLocaleCopyCurrent();
14880 ;
14881 return 0;
14882 }
14883 _ACEOF
14884 if ac_fn_c_try_link "$LINENO"; then :
14885 gt_cv_func_CFLocaleCopyCurrent=yes
14886 else
14887 gt_cv_func_CFLocaleCopyCurrent=no
14888 fi
14889 rm -f core conftest.err conftest.$ac_objext \
14890 conftest$ac_exeext conftest.$ac_ext
14891 LIBS="$gt_save_LIBS"
14892 fi
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14894 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14895 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14896
14897 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14898
14899 fi
14900 INTL_MACOSX_LIBS=
14901 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14902 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14903 fi
14904
14905
14906
14907
14908
14909
14910 LIBINTL=
14911 LTLIBINTL=
14912 POSUB=
14913
14914 case " $gt_needs " in
14915 *" need-formatstring-macros "*) gt_api_version=3 ;;
14916 *" need-ngettext "*) gt_api_version=2 ;;
14917 *) gt_api_version=1 ;;
14918 esac
14919 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14920 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14921
14922 if test "$USE_NLS" = "yes"; then
14923 gt_use_preinstalled_gnugettext=no
14924
14925
14926 if test $gt_api_version -ge 3; then
14927 gt_revision_test_code='
14928 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14929 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14930 #endif
14931 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14932 '
14933 else
14934 gt_revision_test_code=
14935 fi
14936 if test $gt_api_version -ge 2; then
14937 gt_expression_test_code=' + * ngettext ("", "", 0)'
14938 else
14939 gt_expression_test_code=
14940 fi
14941
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14943 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14944 if eval \${$gt_func_gnugettext_libc+:} false; then :
14945 $as_echo_n "(cached) " >&6
14946 else
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h. */
14949
14950 #include <libintl.h>
14951 $gt_revision_test_code
14952 extern int _nl_msg_cat_cntr;
14953 extern int *_nl_domain_bindings;
14954
14955 int
14956 main ()
14957 {
14958
14959 bindtextdomain ("", "");
14960 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14961
14962 ;
14963 return 0;
14964 }
14965 _ACEOF
14966 if ac_fn_c_try_link "$LINENO"; then :
14967 eval "$gt_func_gnugettext_libc=yes"
14968 else
14969 eval "$gt_func_gnugettext_libc=no"
14970 fi
14971 rm -f core conftest.err conftest.$ac_objext \
14972 conftest$ac_exeext conftest.$ac_ext
14973 fi
14974 eval ac_res=\$$gt_func_gnugettext_libc
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14976 $as_echo "$ac_res" >&6; }
14977
14978 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14979
14980
14981
14982
14983
14984 am_save_CPPFLAGS="$CPPFLAGS"
14985
14986 for element in $INCICONV; do
14987 haveit=
14988 for x in $CPPFLAGS; do
14989
14990 acl_save_prefix="$prefix"
14991 prefix="$acl_final_prefix"
14992 acl_save_exec_prefix="$exec_prefix"
14993 exec_prefix="$acl_final_exec_prefix"
14994 eval x=\"$x\"
14995 exec_prefix="$acl_save_exec_prefix"
14996 prefix="$acl_save_prefix"
14997
14998 if test "X$x" = "X$element"; then
14999 haveit=yes
15000 break
15001 fi
15002 done
15003 if test -z "$haveit"; then
15004 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15005 fi
15006 done
15007
15008
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15010 $as_echo_n "checking for iconv... " >&6; }
15011 if ${am_cv_func_iconv+:} false; then :
15012 $as_echo_n "(cached) " >&6
15013 else
15014
15015 am_cv_func_iconv="no, consider installing GNU libiconv"
15016 am_cv_lib_iconv=no
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018 /* end confdefs.h. */
15019
15020 #include <stdlib.h>
15021 #include <iconv.h>
15022
15023 int
15024 main ()
15025 {
15026 iconv_t cd = iconv_open("","");
15027 iconv(cd,NULL,NULL,NULL,NULL);
15028 iconv_close(cd);
15029 ;
15030 return 0;
15031 }
15032 _ACEOF
15033 if ac_fn_c_try_link "$LINENO"; then :
15034 am_cv_func_iconv=yes
15035 fi
15036 rm -f core conftest.err conftest.$ac_objext \
15037 conftest$ac_exeext conftest.$ac_ext
15038 if test "$am_cv_func_iconv" != yes; then
15039 am_save_LIBS="$LIBS"
15040 LIBS="$LIBS $LIBICONV"
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15043
15044 #include <stdlib.h>
15045 #include <iconv.h>
15046
15047 int
15048 main ()
15049 {
15050 iconv_t cd = iconv_open("","");
15051 iconv(cd,NULL,NULL,NULL,NULL);
15052 iconv_close(cd);
15053 ;
15054 return 0;
15055 }
15056 _ACEOF
15057 if ac_fn_c_try_link "$LINENO"; then :
15058 am_cv_lib_iconv=yes
15059 am_cv_func_iconv=yes
15060 fi
15061 rm -f core conftest.err conftest.$ac_objext \
15062 conftest$ac_exeext conftest.$ac_ext
15063 LIBS="$am_save_LIBS"
15064 fi
15065
15066 fi
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15068 $as_echo "$am_cv_func_iconv" >&6; }
15069 if test "$am_cv_func_iconv" = yes; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15071 $as_echo_n "checking for working iconv... " >&6; }
15072 if ${am_cv_func_iconv_works+:} false; then :
15073 $as_echo_n "(cached) " >&6
15074 else
15075
15076 am_save_LIBS="$LIBS"
15077 if test $am_cv_lib_iconv = yes; then
15078 LIBS="$LIBS $LIBICONV"
15079 fi
15080 am_cv_func_iconv_works=no
15081 for ac_iconv_const in '' 'const'; do
15082 if test "$cross_compiling" = yes; then :
15083 case "$host_os" in
15084 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15085 *) am_cv_func_iconv_works="guessing yes" ;;
15086 esac
15087 else
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15090
15091 #include <iconv.h>
15092 #include <string.h>
15093
15094 #ifndef ICONV_CONST
15095 # define ICONV_CONST $ac_iconv_const
15096 #endif
15097
15098 int
15099 main ()
15100 {
15101 int result = 0;
15102 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15103 returns. */
15104 {
15105 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15106 if (cd_utf8_to_88591 != (iconv_t)(-1))
15107 {
15108 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
15109 char buf[10];
15110 ICONV_CONST char *inptr = input;
15111 size_t inbytesleft = strlen (input);
15112 char *outptr = buf;
15113 size_t outbytesleft = sizeof (buf);
15114 size_t res = iconv (cd_utf8_to_88591,
15115 &inptr, &inbytesleft,
15116 &outptr, &outbytesleft);
15117 if (res == 0)
15118 result |= 1;
15119 iconv_close (cd_utf8_to_88591);
15120 }
15121 }
15122 /* Test against Solaris 10 bug: Failures are not distinguishable from
15123 successful returns. */
15124 {
15125 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15126 if (cd_ascii_to_88591 != (iconv_t)(-1))
15127 {
15128 static ICONV_CONST char input[] = "\263";
15129 char buf[10];
15130 ICONV_CONST char *inptr = input;
15131 size_t inbytesleft = strlen (input);
15132 char *outptr = buf;
15133 size_t outbytesleft = sizeof (buf);
15134 size_t res = iconv (cd_ascii_to_88591,
15135 &inptr, &inbytesleft,
15136 &outptr, &outbytesleft);
15137 if (res == 0)
15138 result |= 2;
15139 iconv_close (cd_ascii_to_88591);
15140 }
15141 }
15142 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
15143 {
15144 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15145 if (cd_88591_to_utf8 != (iconv_t)(-1))
15146 {
15147 static ICONV_CONST char input[] = "\304";
15148 static char buf[2] = { (char)0xDE, (char)0xAD };
15149 ICONV_CONST char *inptr = input;
15150 size_t inbytesleft = 1;
15151 char *outptr = buf;
15152 size_t outbytesleft = 1;
15153 size_t res = iconv (cd_88591_to_utf8,
15154 &inptr, &inbytesleft,
15155 &outptr, &outbytesleft);
15156 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15157 result |= 4;
15158 iconv_close (cd_88591_to_utf8);
15159 }
15160 }
15161 #if 0 /* This bug could be worked around by the caller. */
15162 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15163 {
15164 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15165 if (cd_88591_to_utf8 != (iconv_t)(-1))
15166 {
15167 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15168 char buf[50];
15169 ICONV_CONST char *inptr = input;
15170 size_t inbytesleft = strlen (input);
15171 char *outptr = buf;
15172 size_t outbytesleft = sizeof (buf);
15173 size_t res = iconv (cd_88591_to_utf8,
15174 &inptr, &inbytesleft,
15175 &outptr, &outbytesleft);
15176 if ((int)res > 0)
15177 result |= 8;
15178 iconv_close (cd_88591_to_utf8);
15179 }
15180 }
15181 #endif
15182 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15183 provided. */
15184 if (/* Try standardized names. */
15185 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15186 /* Try IRIX, OSF/1 names. */
15187 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15188 /* Try AIX names. */
15189 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15190 /* Try HP-UX names. */
15191 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15192 result |= 16;
15193 return result;
15194
15195 ;
15196 return 0;
15197 }
15198 _ACEOF
15199 if ac_fn_c_try_run "$LINENO"; then :
15200 am_cv_func_iconv_works=yes
15201 fi
15202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15203 conftest.$ac_objext conftest.beam conftest.$ac_ext
15204 fi
15205
15206 test "$am_cv_func_iconv_works" = no || break
15207 done
15208 LIBS="$am_save_LIBS"
15209
15210 fi
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15212 $as_echo "$am_cv_func_iconv_works" >&6; }
15213 case "$am_cv_func_iconv_works" in
15214 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15215 *) am_func_iconv=yes ;;
15216 esac
15217 else
15218 am_func_iconv=no am_cv_lib_iconv=no
15219 fi
15220 if test "$am_func_iconv" = yes; then
15221
15222 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15223
15224 fi
15225 if test "$am_cv_lib_iconv" = yes; then
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15227 $as_echo_n "checking how to link with libiconv... " >&6; }
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15229 $as_echo "$LIBICONV" >&6; }
15230 else
15231 CPPFLAGS="$am_save_CPPFLAGS"
15232 LIBICONV=
15233 LTLIBICONV=
15234 fi
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246 use_additional=yes
15247
15248 acl_save_prefix="$prefix"
15249 prefix="$acl_final_prefix"
15250 acl_save_exec_prefix="$exec_prefix"
15251 exec_prefix="$acl_final_exec_prefix"
15252
15253 eval additional_includedir=\"$includedir\"
15254 eval additional_libdir=\"$libdir\"
15255
15256 exec_prefix="$acl_save_exec_prefix"
15257 prefix="$acl_save_prefix"
15258
15259
15260 # Check whether --with-libintl-prefix was given.
15261 if test "${with_libintl_prefix+set}" = set; then :
15262 withval=$with_libintl_prefix;
15263 if test "X$withval" = "Xno"; then
15264 use_additional=no
15265 else
15266 if test "X$withval" = "X"; then
15267
15268 acl_save_prefix="$prefix"
15269 prefix="$acl_final_prefix"
15270 acl_save_exec_prefix="$exec_prefix"
15271 exec_prefix="$acl_final_exec_prefix"
15272
15273 eval additional_includedir=\"$includedir\"
15274 eval additional_libdir=\"$libdir\"
15275
15276 exec_prefix="$acl_save_exec_prefix"
15277 prefix="$acl_save_prefix"
15278
15279 else
15280 additional_includedir="$withval/include"
15281 additional_libdir="$withval/$acl_libdirstem"
15282 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15283 && ! test -d "$withval/$acl_libdirstem"; then
15284 additional_libdir="$withval/$acl_libdirstem2"
15285 fi
15286 fi
15287 fi
15288
15289 fi
15290
15291 LIBINTL=
15292 LTLIBINTL=
15293 INCINTL=
15294 LIBINTL_PREFIX=
15295 HAVE_LIBINTL=
15296 rpathdirs=
15297 ltrpathdirs=
15298 names_already_handled=
15299 names_next_round='intl '
15300 while test -n "$names_next_round"; do
15301 names_this_round="$names_next_round"
15302 names_next_round=
15303 for name in $names_this_round; do
15304 already_handled=
15305 for n in $names_already_handled; do
15306 if test "$n" = "$name"; then
15307 already_handled=yes
15308 break
15309 fi
15310 done
15311 if test -z "$already_handled"; then
15312 names_already_handled="$names_already_handled $name"
15313 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15314 eval value=\"\$HAVE_LIB$uppername\"
15315 if test -n "$value"; then
15316 if test "$value" = yes; then
15317 eval value=\"\$LIB$uppername\"
15318 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15319 eval value=\"\$LTLIB$uppername\"
15320 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15321 else
15322 :
15323 fi
15324 else
15325 found_dir=
15326 found_la=
15327 found_so=
15328 found_a=
15329 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15330 if test -n "$acl_shlibext"; then
15331 shrext=".$acl_shlibext" # typically: shrext=.so
15332 else
15333 shrext=
15334 fi
15335 if test $use_additional = yes; then
15336 dir="$additional_libdir"
15337 if test -n "$acl_shlibext"; then
15338 if test -f "$dir/$libname$shrext"; then
15339 found_dir="$dir"
15340 found_so="$dir/$libname$shrext"
15341 else
15342 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15343 ver=`(cd "$dir" && \
15344 for f in "$libname$shrext".*; do echo "$f"; done \
15345 | sed -e "s,^$libname$shrext\\\\.,," \
15346 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15347 | sed 1q ) 2>/dev/null`
15348 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15349 found_dir="$dir"
15350 found_so="$dir/$libname$shrext.$ver"
15351 fi
15352 else
15353 eval library_names=\"$acl_library_names_spec\"
15354 for f in $library_names; do
15355 if test -f "$dir/$f"; then
15356 found_dir="$dir"
15357 found_so="$dir/$f"
15358 break
15359 fi
15360 done
15361 fi
15362 fi
15363 fi
15364 if test "X$found_dir" = "X"; then
15365 if test -f "$dir/$libname.$acl_libext"; then
15366 found_dir="$dir"
15367 found_a="$dir/$libname.$acl_libext"
15368 fi
15369 fi
15370 if test "X$found_dir" != "X"; then
15371 if test -f "$dir/$libname.la"; then
15372 found_la="$dir/$libname.la"
15373 fi
15374 fi
15375 fi
15376 if test "X$found_dir" = "X"; then
15377 for x in $LDFLAGS $LTLIBINTL; do
15378
15379 acl_save_prefix="$prefix"
15380 prefix="$acl_final_prefix"
15381 acl_save_exec_prefix="$exec_prefix"
15382 exec_prefix="$acl_final_exec_prefix"
15383 eval x=\"$x\"
15384 exec_prefix="$acl_save_exec_prefix"
15385 prefix="$acl_save_prefix"
15386
15387 case "$x" in
15388 -L*)
15389 dir=`echo "X$x" | sed -e 's/^X-L//'`
15390 if test -n "$acl_shlibext"; then
15391 if test -f "$dir/$libname$shrext"; then
15392 found_dir="$dir"
15393 found_so="$dir/$libname$shrext"
15394 else
15395 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15396 ver=`(cd "$dir" && \
15397 for f in "$libname$shrext".*; do echo "$f"; done \
15398 | sed -e "s,^$libname$shrext\\\\.,," \
15399 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15400 | sed 1q ) 2>/dev/null`
15401 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15402 found_dir="$dir"
15403 found_so="$dir/$libname$shrext.$ver"
15404 fi
15405 else
15406 eval library_names=\"$acl_library_names_spec\"
15407 for f in $library_names; do
15408 if test -f "$dir/$f"; then
15409 found_dir="$dir"
15410 found_so="$dir/$f"
15411 break
15412 fi
15413 done
15414 fi
15415 fi
15416 fi
15417 if test "X$found_dir" = "X"; then
15418 if test -f "$dir/$libname.$acl_libext"; then
15419 found_dir="$dir"
15420 found_a="$dir/$libname.$acl_libext"
15421 fi
15422 fi
15423 if test "X$found_dir" != "X"; then
15424 if test -f "$dir/$libname.la"; then
15425 found_la="$dir/$libname.la"
15426 fi
15427 fi
15428 ;;
15429 esac
15430 if test "X$found_dir" != "X"; then
15431 break
15432 fi
15433 done
15434 fi
15435 if test "X$found_dir" != "X"; then
15436 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15437 if test "X$found_so" != "X"; then
15438 if test "$enable_rpath" = no \
15439 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15440 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15441 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15442 else
15443 haveit=
15444 for x in $ltrpathdirs; do
15445 if test "X$x" = "X$found_dir"; then
15446 haveit=yes
15447 break
15448 fi
15449 done
15450 if test -z "$haveit"; then
15451 ltrpathdirs="$ltrpathdirs $found_dir"
15452 fi
15453 if test "$acl_hardcode_direct" = yes; then
15454 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15455 else
15456 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15457 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15458 haveit=
15459 for x in $rpathdirs; do
15460 if test "X$x" = "X$found_dir"; then
15461 haveit=yes
15462 break
15463 fi
15464 done
15465 if test -z "$haveit"; then
15466 rpathdirs="$rpathdirs $found_dir"
15467 fi
15468 else
15469 haveit=
15470 for x in $LDFLAGS $LIBINTL; do
15471
15472 acl_save_prefix="$prefix"
15473 prefix="$acl_final_prefix"
15474 acl_save_exec_prefix="$exec_prefix"
15475 exec_prefix="$acl_final_exec_prefix"
15476 eval x=\"$x\"
15477 exec_prefix="$acl_save_exec_prefix"
15478 prefix="$acl_save_prefix"
15479
15480 if test "X$x" = "X-L$found_dir"; then
15481 haveit=yes
15482 break
15483 fi
15484 done
15485 if test -z "$haveit"; then
15486 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15487 fi
15488 if test "$acl_hardcode_minus_L" != no; then
15489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15490 else
15491 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15492 fi
15493 fi
15494 fi
15495 fi
15496 else
15497 if test "X$found_a" != "X"; then
15498 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15499 else
15500 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15501 fi
15502 fi
15503 additional_includedir=
15504 case "$found_dir" in
15505 */$acl_libdirstem | */$acl_libdirstem/)
15506 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15507 if test "$name" = 'intl'; then
15508 LIBINTL_PREFIX="$basedir"
15509 fi
15510 additional_includedir="$basedir/include"
15511 ;;
15512 */$acl_libdirstem2 | */$acl_libdirstem2/)
15513 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15514 if test "$name" = 'intl'; then
15515 LIBINTL_PREFIX="$basedir"
15516 fi
15517 additional_includedir="$basedir/include"
15518 ;;
15519 esac
15520 if test "X$additional_includedir" != "X"; then
15521 if test "X$additional_includedir" != "X/usr/include"; then
15522 haveit=
15523 if test "X$additional_includedir" = "X/usr/local/include"; then
15524 if test -n "$GCC"; then
15525 case $host_os in
15526 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15527 esac
15528 fi
15529 fi
15530 if test -z "$haveit"; then
15531 for x in $CPPFLAGS $INCINTL; do
15532
15533 acl_save_prefix="$prefix"
15534 prefix="$acl_final_prefix"
15535 acl_save_exec_prefix="$exec_prefix"
15536 exec_prefix="$acl_final_exec_prefix"
15537 eval x=\"$x\"
15538 exec_prefix="$acl_save_exec_prefix"
15539 prefix="$acl_save_prefix"
15540
15541 if test "X$x" = "X-I$additional_includedir"; then
15542 haveit=yes
15543 break
15544 fi
15545 done
15546 if test -z "$haveit"; then
15547 if test -d "$additional_includedir"; then
15548 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15549 fi
15550 fi
15551 fi
15552 fi
15553 fi
15554 if test -n "$found_la"; then
15555 save_libdir="$libdir"
15556 case "$found_la" in
15557 */* | *\\*) . "$found_la" ;;
15558 *) . "./$found_la" ;;
15559 esac
15560 libdir="$save_libdir"
15561 for dep in $dependency_libs; do
15562 case "$dep" in
15563 -L*)
15564 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15565 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15566 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15567 haveit=
15568 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15569 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15570 if test -n "$GCC"; then
15571 case $host_os in
15572 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15573 esac
15574 fi
15575 fi
15576 if test -z "$haveit"; then
15577 haveit=
15578 for x in $LDFLAGS $LIBINTL; do
15579
15580 acl_save_prefix="$prefix"
15581 prefix="$acl_final_prefix"
15582 acl_save_exec_prefix="$exec_prefix"
15583 exec_prefix="$acl_final_exec_prefix"
15584 eval x=\"$x\"
15585 exec_prefix="$acl_save_exec_prefix"
15586 prefix="$acl_save_prefix"
15587
15588 if test "X$x" = "X-L$additional_libdir"; then
15589 haveit=yes
15590 break
15591 fi
15592 done
15593 if test -z "$haveit"; then
15594 if test -d "$additional_libdir"; then
15595 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15596 fi
15597 fi
15598 haveit=
15599 for x in $LDFLAGS $LTLIBINTL; do
15600
15601 acl_save_prefix="$prefix"
15602 prefix="$acl_final_prefix"
15603 acl_save_exec_prefix="$exec_prefix"
15604 exec_prefix="$acl_final_exec_prefix"
15605 eval x=\"$x\"
15606 exec_prefix="$acl_save_exec_prefix"
15607 prefix="$acl_save_prefix"
15608
15609 if test "X$x" = "X-L$additional_libdir"; then
15610 haveit=yes
15611 break
15612 fi
15613 done
15614 if test -z "$haveit"; then
15615 if test -d "$additional_libdir"; then
15616 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15617 fi
15618 fi
15619 fi
15620 fi
15621 ;;
15622 -R*)
15623 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15624 if test "$enable_rpath" != no; then
15625 haveit=
15626 for x in $rpathdirs; do
15627 if test "X$x" = "X$dir"; then
15628 haveit=yes
15629 break
15630 fi
15631 done
15632 if test -z "$haveit"; then
15633 rpathdirs="$rpathdirs $dir"
15634 fi
15635 haveit=
15636 for x in $ltrpathdirs; do
15637 if test "X$x" = "X$dir"; then
15638 haveit=yes
15639 break
15640 fi
15641 done
15642 if test -z "$haveit"; then
15643 ltrpathdirs="$ltrpathdirs $dir"
15644 fi
15645 fi
15646 ;;
15647 -l*)
15648 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15649 ;;
15650 *.la)
15651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15652 ;;
15653 *)
15654 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15655 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15656 ;;
15657 esac
15658 done
15659 fi
15660 else
15661 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15662 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15663 fi
15664 fi
15665 fi
15666 done
15667 done
15668 if test "X$rpathdirs" != "X"; then
15669 if test -n "$acl_hardcode_libdir_separator"; then
15670 alldirs=
15671 for found_dir in $rpathdirs; do
15672 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15673 done
15674 acl_save_libdir="$libdir"
15675 libdir="$alldirs"
15676 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15677 libdir="$acl_save_libdir"
15678 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15679 else
15680 for found_dir in $rpathdirs; do
15681 acl_save_libdir="$libdir"
15682 libdir="$found_dir"
15683 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15684 libdir="$acl_save_libdir"
15685 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15686 done
15687 fi
15688 fi
15689 if test "X$ltrpathdirs" != "X"; then
15690 for found_dir in $ltrpathdirs; do
15691 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15692 done
15693 fi
15694
15695
15696
15697
15698
15699
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15701 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15702 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15703 $as_echo_n "(cached) " >&6
15704 else
15705 gt_save_CPPFLAGS="$CPPFLAGS"
15706 CPPFLAGS="$CPPFLAGS $INCINTL"
15707 gt_save_LIBS="$LIBS"
15708 LIBS="$LIBS $LIBINTL"
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711
15712 #include <libintl.h>
15713 $gt_revision_test_code
15714 extern int _nl_msg_cat_cntr;
15715 extern
15716 #ifdef __cplusplus
15717 "C"
15718 #endif
15719 const char *_nl_expand_alias (const char *);
15720
15721 int
15722 main ()
15723 {
15724
15725 bindtextdomain ("", "");
15726 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15727
15728 ;
15729 return 0;
15730 }
15731 _ACEOF
15732 if ac_fn_c_try_link "$LINENO"; then :
15733 eval "$gt_func_gnugettext_libintl=yes"
15734 else
15735 eval "$gt_func_gnugettext_libintl=no"
15736 fi
15737 rm -f core conftest.err conftest.$ac_objext \
15738 conftest$ac_exeext conftest.$ac_ext
15739 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15740 LIBS="$LIBS $LIBICONV"
15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15743
15744 #include <libintl.h>
15745 $gt_revision_test_code
15746 extern int _nl_msg_cat_cntr;
15747 extern
15748 #ifdef __cplusplus
15749 "C"
15750 #endif
15751 const char *_nl_expand_alias (const char *);
15752
15753 int
15754 main ()
15755 {
15756
15757 bindtextdomain ("", "");
15758 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15759
15760 ;
15761 return 0;
15762 }
15763 _ACEOF
15764 if ac_fn_c_try_link "$LINENO"; then :
15765 LIBINTL="$LIBINTL $LIBICONV"
15766 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15767 eval "$gt_func_gnugettext_libintl=yes"
15768
15769 fi
15770 rm -f core conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
15772 fi
15773 CPPFLAGS="$gt_save_CPPFLAGS"
15774 LIBS="$gt_save_LIBS"
15775 fi
15776 eval ac_res=\$$gt_func_gnugettext_libintl
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15778 $as_echo "$ac_res" >&6; }
15779 fi
15780
15781 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15782 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15783 && test "$PACKAGE" != gettext-runtime \
15784 && test "$PACKAGE" != gettext-tools; }; then
15785 gt_use_preinstalled_gnugettext=yes
15786 else
15787 LIBINTL=
15788 LTLIBINTL=
15789 INCINTL=
15790 fi
15791
15792
15793
15794 if test -n "$INTL_MACOSX_LIBS"; then
15795 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15796 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15797 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15798 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15799 fi
15800 fi
15801
15802 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15803 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15804
15805 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15806
15807 else
15808 USE_NLS=no
15809 fi
15810 fi
15811
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15813 $as_echo_n "checking whether to use NLS... " >&6; }
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15815 $as_echo "$USE_NLS" >&6; }
15816 if test "$USE_NLS" = "yes"; then
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15818 $as_echo_n "checking where the gettext function comes from... " >&6; }
15819 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15820 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15821 gt_source="external libintl"
15822 else
15823 gt_source="libc"
15824 fi
15825 else
15826 gt_source="included intl directory"
15827 fi
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15829 $as_echo "$gt_source" >&6; }
15830 fi
15831
15832 if test "$USE_NLS" = "yes"; then
15833
15834 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15835 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15837 $as_echo_n "checking how to link with libintl... " >&6; }
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15839 $as_echo "$LIBINTL" >&6; }
15840
15841 for element in $INCINTL; do
15842 haveit=
15843 for x in $CPPFLAGS; do
15844
15845 acl_save_prefix="$prefix"
15846 prefix="$acl_final_prefix"
15847 acl_save_exec_prefix="$exec_prefix"
15848 exec_prefix="$acl_final_exec_prefix"
15849 eval x=\"$x\"
15850 exec_prefix="$acl_save_exec_prefix"
15851 prefix="$acl_save_prefix"
15852
15853 if test "X$x" = "X$element"; then
15854 haveit=yes
15855 break
15856 fi
15857 done
15858 if test -z "$haveit"; then
15859 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15860 fi
15861 done
15862
15863 fi
15864
15865
15866 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15867
15868
15869 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15870
15871 fi
15872
15873 POSUB=po
15874 fi
15875
15876
15877
15878 INTLLIBS="$LIBINTL"
15879
15880
15881
15882
15883
15884
15885
15886
15887 GETTEXT_PACKAGE=notification-daemon
15888
15889
15890 cat >>confdefs.h <<_ACEOF
15891 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15892 _ACEOF
15893
15894
15895
15896 GTK_REQUIRED=3.19.5
15897 GLIB_REQUIRED=2.27.0
15898
15899
15900
15901
15902
15903
15904
15905
15906 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15907 if test -n "$ac_tool_prefix"; then
15908 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15909 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15911 $as_echo_n "checking for $ac_word... " >&6; }
15912 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15913 $as_echo_n "(cached) " >&6
15914 else
15915 case $PKG_CONFIG in
15916 [\\/]* | ?:[\\/]*)
15917 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15918 ;;
15919 *)
15920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15921 for as_dir in $PATH
15922 do
15923 IFS=$as_save_IFS
15924 test -z "$as_dir" && as_dir=.
15925 for ac_exec_ext in '' $ac_executable_extensions; do
15926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15927 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15929 break 2
15930 fi
15931 done
15932 done
15933 IFS=$as_save_IFS
15934
15935 ;;
15936 esac
15937 fi
15938 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15939 if test -n "$PKG_CONFIG"; then
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15941 $as_echo "$PKG_CONFIG" >&6; }
15942 else
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15944 $as_echo "no" >&6; }
15945 fi
15946
15947
15948 fi
15949 if test -z "$ac_cv_path_PKG_CONFIG"; then
15950 ac_pt_PKG_CONFIG=$PKG_CONFIG
15951 # Extract the first word of "pkg-config", so it can be a program name with args.
15952 set dummy pkg-config; ac_word=$2
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15954 $as_echo_n "checking for $ac_word... " >&6; }
15955 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15958 case $ac_pt_PKG_CONFIG in
15959 [\\/]* | ?:[\\/]*)
15960 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15961 ;;
15962 *)
15963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15964 for as_dir in $PATH
15965 do
15966 IFS=$as_save_IFS
15967 test -z "$as_dir" && as_dir=.
15968 for ac_exec_ext in '' $ac_executable_extensions; do
15969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15970 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15972 break 2
15973 fi
15974 done
15975 done
15976 IFS=$as_save_IFS
15977
15978 ;;
15979 esac
15980 fi
15981 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15982 if test -n "$ac_pt_PKG_CONFIG"; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15984 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15985 else
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15987 $as_echo "no" >&6; }
15988 fi
15989
15990 if test "x$ac_pt_PKG_CONFIG" = x; then
15991 PKG_CONFIG=""
15992 else
15993 case $cross_compiling:$ac_tool_warned in
15994 yes:)
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15997 ac_tool_warned=yes ;;
15998 esac
15999 PKG_CONFIG=$ac_pt_PKG_CONFIG
16000 fi
16001 else
16002 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16003 fi
16004
16005 fi
16006 if test -n "$PKG_CONFIG"; then
16007 _pkg_min_version=0.9.0
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16009 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16010 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16012 $as_echo "yes" >&6; }
16013 else
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16016 PKG_CONFIG=""
16017 fi
16018 fi
16019
16020 pkg_failed=no
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NOTIFICATION_DAEMON" >&5
16022 $as_echo_n "checking for NOTIFICATION_DAEMON... " >&6; }
16023
16024 if test -n "$NOTIFICATION_DAEMON_CFLAGS"; then
16025 pkg_cv_NOTIFICATION_DAEMON_CFLAGS="$NOTIFICATION_DAEMON_CFLAGS"
16026 elif test -n "$PKG_CONFIG"; then
16027 if test -n "$PKG_CONFIG" && \
16028 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16029 gtk+-3.0 >= \$GTK_REQUIRED
16030 glib-2.0 >= \$GLIB_REQUIRED
16031 gio-2.0 >= \$GLIB_REQUIRED
16032 x11
16033 \""; } >&5
16034 ($PKG_CONFIG --exists --print-errors "
16035 gtk+-3.0 >= $GTK_REQUIRED
16036 glib-2.0 >= $GLIB_REQUIRED
16037 gio-2.0 >= $GLIB_REQUIRED
16038 x11
16039 ") 2>&5
16040 ac_status=$?
16041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16042 test $ac_status = 0; }; then
16043 pkg_cv_NOTIFICATION_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "
16044 gtk+-3.0 >= $GTK_REQUIRED
16045 glib-2.0 >= $GLIB_REQUIRED
16046 gio-2.0 >= $GLIB_REQUIRED
16047 x11
16048 " 2>/dev/null`
16049 test "x$?" != "x0" && pkg_failed=yes
16050 else
16051 pkg_failed=yes
16052 fi
16053 else
16054 pkg_failed=untried
16055 fi
16056 if test -n "$NOTIFICATION_DAEMON_LIBS"; then
16057 pkg_cv_NOTIFICATION_DAEMON_LIBS="$NOTIFICATION_DAEMON_LIBS"
16058 elif test -n "$PKG_CONFIG"; then
16059 if test -n "$PKG_CONFIG" && \
16060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16061 gtk+-3.0 >= \$GTK_REQUIRED
16062 glib-2.0 >= \$GLIB_REQUIRED
16063 gio-2.0 >= \$GLIB_REQUIRED
16064 x11
16065 \""; } >&5
16066 ($PKG_CONFIG --exists --print-errors "
16067 gtk+-3.0 >= $GTK_REQUIRED
16068 glib-2.0 >= $GLIB_REQUIRED
16069 gio-2.0 >= $GLIB_REQUIRED
16070 x11
16071 ") 2>&5
16072 ac_status=$?
16073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16074 test $ac_status = 0; }; then
16075 pkg_cv_NOTIFICATION_DAEMON_LIBS=`$PKG_CONFIG --libs "
16076 gtk+-3.0 >= $GTK_REQUIRED
16077 glib-2.0 >= $GLIB_REQUIRED
16078 gio-2.0 >= $GLIB_REQUIRED
16079 x11
16080 " 2>/dev/null`
16081 test "x$?" != "x0" && pkg_failed=yes
16082 else
16083 pkg_failed=yes
16084 fi
16085 else
16086 pkg_failed=untried
16087 fi
16088
16089
16090
16091 if test $pkg_failed = yes; then
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093 $as_echo "no" >&6; }
16094
16095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16096 _pkg_short_errors_supported=yes
16097 else
16098 _pkg_short_errors_supported=no
16099 fi
16100 if test $_pkg_short_errors_supported = yes; then
16101 NOTIFICATION_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
16102 gtk+-3.0 >= $GTK_REQUIRED
16103 glib-2.0 >= $GLIB_REQUIRED
16104 gio-2.0 >= $GLIB_REQUIRED
16105 x11
16106 " 2>&1`
16107 else
16108 NOTIFICATION_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
16109 gtk+-3.0 >= $GTK_REQUIRED
16110 glib-2.0 >= $GLIB_REQUIRED
16111 gio-2.0 >= $GLIB_REQUIRED
16112 x11
16113 " 2>&1`
16114 fi
16115 # Put the nasty error message in config.log where it belongs
16116 echo "$NOTIFICATION_DAEMON_PKG_ERRORS" >&5
16117
16118 as_fn_error $? "Package requirements (
16119 gtk+-3.0 >= $GTK_REQUIRED
16120 glib-2.0 >= $GLIB_REQUIRED
16121 gio-2.0 >= $GLIB_REQUIRED
16122 x11
16123 ) were not met:
16124
16125 $NOTIFICATION_DAEMON_PKG_ERRORS
16126
16127 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16128 installed software in a non-standard prefix.
16129
16130 Alternatively, you may set the environment variables NOTIFICATION_DAEMON_CFLAGS
16131 and NOTIFICATION_DAEMON_LIBS to avoid the need to call pkg-config.
16132 See the pkg-config man page for more details." "$LINENO" 5
16133 elif test $pkg_failed = untried; then
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16135 $as_echo "no" >&6; }
16136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16138 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16139 is in your PATH or set the PKG_CONFIG environment variable to the full
16140 path to pkg-config.
16141
16142 Alternatively, you may set the environment variables NOTIFICATION_DAEMON_CFLAGS
16143 and NOTIFICATION_DAEMON_LIBS to avoid the need to call pkg-config.
16144 See the pkg-config man page for more details.
16145
16146 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16147 See \`config.log' for more details" "$LINENO" 5; }
16148 else
16149 NOTIFICATION_DAEMON_CFLAGS=$pkg_cv_NOTIFICATION_DAEMON_CFLAGS
16150 NOTIFICATION_DAEMON_LIBS=$pkg_cv_NOTIFICATION_DAEMON_LIBS
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16152 $as_echo "yes" >&6; }
16153
16154 fi
16155
16156
16157 ac_config_files="$ac_config_files Makefile data/Makefile po/Makefile.in src/Makefile"
16158
16159
16160 cat >confcache <<\_ACEOF
16161 # This file is a shell script that caches the results of configure
16162 # tests run on this system so they can be shared between configure
16163 # scripts and configure runs, see configure's option --config-cache.
16164 # It is not useful on other systems. If it contains results you don't
16165 # want to keep, you may remove or edit it.
16166 #
16167 # config.status only pays attention to the cache file if you give it
16168 # the --recheck option to rerun configure.
16169 #
16170 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16171 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16172 # following values.
16173
16174 _ACEOF
16175
16176 # The following way of writing the cache mishandles newlines in values,
16177 # but we know of no workaround that is simple, portable, and efficient.
16178 # So, we kill variables containing newlines.
16179 # Ultrix sh set writes to stderr and can't be redirected directly,
16180 # and sets the high bit in the cache file unless we assign to the vars.
16181 (
16182 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16183 eval ac_val=\$$ac_var
16184 case $ac_val in #(
16185 *${as_nl}*)
16186 case $ac_var in #(
16187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16188 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16189 esac
16190 case $ac_var in #(
16191 _ | IFS | as_nl) ;; #(
16192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16193 *) { eval $ac_var=; unset $ac_var;} ;;
16194 esac ;;
16195 esac
16196 done
16197
16198 (set) 2>&1 |
16199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16200 *${as_nl}ac_space=\ *)
16201 # `set' does not quote correctly, so add quotes: double-quote
16202 # substitution turns \\\\ into \\, and sed turns \\ into \.
16203 sed -n \
16204 "s/'/'\\\\''/g;
16205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16206 ;; #(
16207 *)
16208 # `set' quotes correctly as required by POSIX, so do not add quotes.
16209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16210 ;;
16211 esac |
16212 sort
16213 ) |
16214 sed '
16215 /^ac_cv_env_/b end
16216 t clear
16217 :clear
16218 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16219 t end
16220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16221 :end' >>confcache
16222 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16223 if test -w "$cache_file"; then
16224 if test "x$cache_file" != "x/dev/null"; then
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16226 $as_echo "$as_me: updating cache $cache_file" >&6;}
16227 if test ! -f "$cache_file" || test -h "$cache_file"; then
16228 cat confcache >"$cache_file"
16229 else
16230 case $cache_file in #(
16231 */* | ?:*)
16232 mv -f confcache "$cache_file"$$ &&
16233 mv -f "$cache_file"$$ "$cache_file" ;; #(
16234 *)
16235 mv -f confcache "$cache_file" ;;
16236 esac
16237 fi
16238 fi
16239 else
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16241 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16242 fi
16243 fi
16244 rm -f confcache
16245
16246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16247 # Let make expand exec_prefix.
16248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16249
16250 DEFS=-DHAVE_CONFIG_H
16251
16252 ac_libobjs=
16253 ac_ltlibobjs=
16254 U=
16255 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16256 # 1. Remove the extension, and $U if already installed.
16257 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16258 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16259 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16260 # will be set to the directory where LIBOBJS objects are built.
16261 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16262 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16263 done
16264 LIBOBJS=$ac_libobjs
16265
16266 LTLIBOBJS=$ac_ltlibobjs
16267
16268
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16270 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16271 if test -n "$am_sleep_pid"; then
16272 # Hide warnings about reused PIDs.
16273 wait $am_sleep_pid 2>/dev/null
16274 fi
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16276 $as_echo "done" >&6; }
16277 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16278 as_fn_error $? "conditional \"AMDEP\" was never defined.
16279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16280 fi
16281 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16282 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16284 fi
16285 if test -n "$EXEEXT"; then
16286 am__EXEEXT_TRUE=
16287 am__EXEEXT_FALSE='#'
16288 else
16289 am__EXEEXT_TRUE='#'
16290 am__EXEEXT_FALSE=
16291 fi
16292
16293 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16294 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16296 fi
16297
16298 : "${CONFIG_STATUS=./config.status}"
16299 ac_write_fail=0
16300 ac_clean_files_save=$ac_clean_files
16301 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16303 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16304 as_write_fail=0
16305 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16306 #! $SHELL
16307 # Generated by $as_me.
16308 # Run this file to recreate the current configuration.
16309 # Compiler output produced by configure, useful for debugging
16310 # configure, is in config.log if it exists.
16311
16312 debug=false
16313 ac_cs_recheck=false
16314 ac_cs_silent=false
16315
16316 SHELL=\${CONFIG_SHELL-$SHELL}
16317 export SHELL
16318 _ASEOF
16319 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16320 ## -------------------- ##
16321 ## M4sh Initialization. ##
16322 ## -------------------- ##
16323
16324 # Be more Bourne compatible
16325 DUALCASE=1; export DUALCASE # for MKS sh
16326 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16327 emulate sh
16328 NULLCMD=:
16329 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16330 # is contrary to our usage. Disable this feature.
16331 alias -g '${1+"$@"}'='"$@"'
16332 setopt NO_GLOB_SUBST
16333 else
16334 case `(set -o) 2>/dev/null` in #(
16335 *posix*) :
16336 set -o posix ;; #(
16337 *) :
16338 ;;
16339 esac
16340 fi
16341
16342
16343 as_nl='
16344 '
16345 export as_nl
16346 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16347 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16348 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16350 # Prefer a ksh shell builtin over an external printf program on Solaris,
16351 # but without wasting forks for bash or zsh.
16352 if test -z "$BASH_VERSION$ZSH_VERSION" \
16353 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16354 as_echo='print -r --'
16355 as_echo_n='print -rn --'
16356 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16357 as_echo='printf %s\n'
16358 as_echo_n='printf %s'
16359 else
16360 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16361 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16362 as_echo_n='/usr/ucb/echo -n'
16363 else
16364 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16365 as_echo_n_body='eval
16366 arg=$1;
16367 case $arg in #(
16368 *"$as_nl"*)
16369 expr "X$arg" : "X\\(.*\\)$as_nl";
16370 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16371 esac;
16372 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16373 '
16374 export as_echo_n_body
16375 as_echo_n='sh -c $as_echo_n_body as_echo'
16376 fi
16377 export as_echo_body
16378 as_echo='sh -c $as_echo_body as_echo'
16379 fi
16380
16381 # The user is always right.
16382 if test "${PATH_SEPARATOR+set}" != set; then
16383 PATH_SEPARATOR=:
16384 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16385 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16386 PATH_SEPARATOR=';'
16387 }
16388 fi
16389
16390
16391 # IFS
16392 # We need space, tab and new line, in precisely that order. Quoting is
16393 # there to prevent editors from complaining about space-tab.
16394 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16395 # splitting by setting IFS to empty value.)
16396 IFS=" "" $as_nl"
16397
16398 # Find who we are. Look in the path if we contain no directory separator.
16399 as_myself=
16400 case $0 in #((
16401 *[\\/]* ) as_myself=$0 ;;
16402 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16403 for as_dir in $PATH
16404 do
16405 IFS=$as_save_IFS
16406 test -z "$as_dir" && as_dir=.
16407 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16408 done
16409 IFS=$as_save_IFS
16410
16411 ;;
16412 esac
16413 # We did not find ourselves, most probably we were run as `sh COMMAND'
16414 # in which case we are not to be found in the path.
16415 if test "x$as_myself" = x; then
16416 as_myself=$0
16417 fi
16418 if test ! -f "$as_myself"; then
16419 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16420 exit 1
16421 fi
16422
16423 # Unset variables that we do not need and which cause bugs (e.g. in
16424 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16425 # suppresses any "Segmentation fault" message there. '((' could
16426 # trigger a bug in pdksh 5.2.14.
16427 for as_var in BASH_ENV ENV MAIL MAILPATH
16428 do eval test x\${$as_var+set} = xset \
16429 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16430 done
16431 PS1='$ '
16432 PS2='> '
16433 PS4='+ '
16434
16435 # NLS nuisances.
16436 LC_ALL=C
16437 export LC_ALL
16438 LANGUAGE=C
16439 export LANGUAGE
16440
16441 # CDPATH.
16442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16443
16444
16445 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16446 # ----------------------------------------
16447 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16448 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16449 # script with STATUS, using 1 if that was 0.
16450 as_fn_error ()
16451 {
16452 as_status=$1; test $as_status -eq 0 && as_status=1
16453 if test "$4"; then
16454 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16455 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16456 fi
16457 $as_echo "$as_me: error: $2" >&2
16458 as_fn_exit $as_status
16459 } # as_fn_error
16460
16461
16462 # as_fn_set_status STATUS
16463 # -----------------------
16464 # Set $? to STATUS, without forking.
16465 as_fn_set_status ()
16466 {
16467 return $1
16468 } # as_fn_set_status
16469
16470 # as_fn_exit STATUS
16471 # -----------------
16472 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16473 as_fn_exit ()
16474 {
16475 set +e
16476 as_fn_set_status $1
16477 exit $1
16478 } # as_fn_exit
16479
16480 # as_fn_unset VAR
16481 # ---------------
16482 # Portably unset VAR.
16483 as_fn_unset ()
16484 {
16485 { eval $1=; unset $1;}
16486 }
16487 as_unset=as_fn_unset
16488 # as_fn_append VAR VALUE
16489 # ----------------------
16490 # Append the text in VALUE to the end of the definition contained in VAR. Take
16491 # advantage of any shell optimizations that allow amortized linear growth over
16492 # repeated appends, instead of the typical quadratic growth present in naive
16493 # implementations.
16494 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16495 eval 'as_fn_append ()
16496 {
16497 eval $1+=\$2
16498 }'
16499 else
16500 as_fn_append ()
16501 {
16502 eval $1=\$$1\$2
16503 }
16504 fi # as_fn_append
16505
16506 # as_fn_arith ARG...
16507 # ------------------
16508 # Perform arithmetic evaluation on the ARGs, and store the result in the
16509 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16510 # must be portable across $(()) and expr.
16511 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16512 eval 'as_fn_arith ()
16513 {
16514 as_val=$(( $* ))
16515 }'
16516 else
16517 as_fn_arith ()
16518 {
16519 as_val=`expr "$@" || test $? -eq 1`
16520 }
16521 fi # as_fn_arith
16522
16523
16524 if expr a : '\(a\)' >/dev/null 2>&1 &&
16525 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16526 as_expr=expr
16527 else
16528 as_expr=false
16529 fi
16530
16531 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16532 as_basename=basename
16533 else
16534 as_basename=false
16535 fi
16536
16537 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16538 as_dirname=dirname
16539 else
16540 as_dirname=false
16541 fi
16542
16543 as_me=`$as_basename -- "$0" ||
16544 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16545 X"$0" : 'X\(//\)$' \| \
16546 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16547 $as_echo X/"$0" |
16548 sed '/^.*\/\([^/][^/]*\)\/*$/{
16549 s//\1/
16550 q
16551 }
16552 /^X\/\(\/\/\)$/{
16553 s//\1/
16554 q
16555 }
16556 /^X\/\(\/\).*/{
16557 s//\1/
16558 q
16559 }
16560 s/.*/./; q'`
16561
16562 # Avoid depending upon Character Ranges.
16563 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16564 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16565 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16566 as_cr_digits='0123456789'
16567 as_cr_alnum=$as_cr_Letters$as_cr_digits
16568
16569 ECHO_C= ECHO_N= ECHO_T=
16570 case `echo -n x` in #(((((
16571 -n*)
16572 case `echo 'xy\c'` in
16573 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16574 xy) ECHO_C='\c';;
16575 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16576 ECHO_T=' ';;
16577 esac;;
16578 *)
16579 ECHO_N='-n';;
16580 esac
16581
16582 rm -f conf$$ conf$$.exe conf$$.file
16583 if test -d conf$$.dir; then
16584 rm -f conf$$.dir/conf$$.file
16585 else
16586 rm -f conf$$.dir
16587 mkdir conf$$.dir 2>/dev/null
16588 fi
16589 if (echo >conf$$.file) 2>/dev/null; then
16590 if ln -s conf$$.file conf$$ 2>/dev/null; then
16591 as_ln_s='ln -s'
16592 # ... but there are two gotchas:
16593 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16594 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16595 # In both cases, we have to default to `cp -pR'.
16596 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16597 as_ln_s='cp -pR'
16598 elif ln conf$$.file conf$$ 2>/dev/null; then
16599 as_ln_s=ln
16600 else
16601 as_ln_s='cp -pR'
16602 fi
16603 else
16604 as_ln_s='cp -pR'
16605 fi
16606 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16607 rmdir conf$$.dir 2>/dev/null
16608
16609
16610 # as_fn_mkdir_p
16611 # -------------
16612 # Create "$as_dir" as a directory, including parents if necessary.
16613 as_fn_mkdir_p ()
16614 {
16615
16616 case $as_dir in #(
16617 -*) as_dir=./$as_dir;;
16618 esac
16619 test -d "$as_dir" || eval $as_mkdir_p || {
16620 as_dirs=
16621 while :; do
16622 case $as_dir in #(
16623 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16624 *) as_qdir=$as_dir;;
16625 esac
16626 as_dirs="'$as_qdir' $as_dirs"
16627 as_dir=`$as_dirname -- "$as_dir" ||
16628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16629 X"$as_dir" : 'X\(//\)[^/]' \| \
16630 X"$as_dir" : 'X\(//\)$' \| \
16631 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16632 $as_echo X"$as_dir" |
16633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16634 s//\1/
16635 q
16636 }
16637 /^X\(\/\/\)[^/].*/{
16638 s//\1/
16639 q
16640 }
16641 /^X\(\/\/\)$/{
16642 s//\1/
16643 q
16644 }
16645 /^X\(\/\).*/{
16646 s//\1/
16647 q
16648 }
16649 s/.*/./; q'`
16650 test -d "$as_dir" && break
16651 done
16652 test -z "$as_dirs" || eval "mkdir $as_dirs"
16653 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16654
16655
16656 } # as_fn_mkdir_p
16657 if mkdir -p . 2>/dev/null; then
16658 as_mkdir_p='mkdir -p "$as_dir"'
16659 else
16660 test -d ./-p && rmdir ./-p
16661 as_mkdir_p=false
16662 fi
16663
16664
16665 # as_fn_executable_p FILE
16666 # -----------------------
16667 # Test if FILE is an executable regular file.
16668 as_fn_executable_p ()
16669 {
16670 test -f "$1" && test -x "$1"
16671 } # as_fn_executable_p
16672 as_test_x='test -x'
16673 as_executable_p=as_fn_executable_p
16674
16675 # Sed expression to map a string onto a valid CPP name.
16676 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16677
16678 # Sed expression to map a string onto a valid variable name.
16679 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16680
16681
16682 exec 6>&1
16683 ## ----------------------------------- ##
16684 ## Main body of $CONFIG_STATUS script. ##
16685 ## ----------------------------------- ##
16686 _ASEOF
16687 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16688
16689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16690 # Save the log message, to keep $0 and so on meaningful, and to
16691 # report actual input values of CONFIG_FILES etc. instead of their
16692 # values after options handling.
16693 ac_log="
16694 This file was extended by notification-daemon $as_me 3.20.0, which was
16695 generated by GNU Autoconf 2.69. Invocation command line was
16696
16697 CONFIG_FILES = $CONFIG_FILES
16698 CONFIG_HEADERS = $CONFIG_HEADERS
16699 CONFIG_LINKS = $CONFIG_LINKS
16700 CONFIG_COMMANDS = $CONFIG_COMMANDS
16701 $ $0 $@
16702
16703 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16704 "
16705
16706 _ACEOF
16707
16708 case $ac_config_files in *"
16709 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16710 esac
16711
16712 case $ac_config_headers in *"
16713 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16714 esac
16715
16716
16717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16718 # Files that config.status was made for.
16719 config_files="$ac_config_files"
16720 config_headers="$ac_config_headers"
16721 config_commands="$ac_config_commands"
16722
16723 _ACEOF
16724
16725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16726 ac_cs_usage="\
16727 \`$as_me' instantiates files and other configuration actions
16728 from templates according to the current configuration. Unless the files
16729 and actions are specified as TAGs, all are instantiated by default.
16730
16731 Usage: $0 [OPTION]... [TAG]...
16732
16733 -h, --help print this help, then exit
16734 -V, --version print version number and configuration settings, then exit
16735 --config print configuration, then exit
16736 -q, --quiet, --silent
16737 do not print progress messages
16738 -d, --debug don't remove temporary files
16739 --recheck update $as_me by reconfiguring in the same conditions
16740 --file=FILE[:TEMPLATE]
16741 instantiate the configuration file FILE
16742 --header=FILE[:TEMPLATE]
16743 instantiate the configuration header FILE
16744
16745 Configuration files:
16746 $config_files
16747
16748 Configuration headers:
16749 $config_headers
16750
16751 Configuration commands:
16752 $config_commands
16753
16754 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=notification-daemon>."
16755
16756 _ACEOF
16757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16758 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16759 ac_cs_version="\\
16760 notification-daemon config.status 3.20.0
16761 configured by $0, generated by GNU Autoconf 2.69,
16762 with options \\"\$ac_cs_config\\"
16763
16764 Copyright (C) 2012 Free Software Foundation, Inc.
16765 This config.status script is free software; the Free Software Foundation
16766 gives unlimited permission to copy, distribute and modify it."
16767
16768 ac_pwd='$ac_pwd'
16769 srcdir='$srcdir'
16770 INSTALL='$INSTALL'
16771 MKDIR_P='$MKDIR_P'
16772 AWK='$AWK'
16773 test -n "\$AWK" || AWK=awk
16774 _ACEOF
16775
16776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16777 # The default lists apply if the user does not specify any file.
16778 ac_need_defaults=:
16779 while test $# != 0
16780 do
16781 case $1 in
16782 --*=?*)
16783 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16784 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16785 ac_shift=:
16786 ;;
16787 --*=)
16788 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16789 ac_optarg=
16790 ac_shift=:
16791 ;;
16792 *)
16793 ac_option=$1
16794 ac_optarg=$2
16795 ac_shift=shift
16796 ;;
16797 esac
16798
16799 case $ac_option in
16800 # Handling of the options.
16801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16802 ac_cs_recheck=: ;;
16803 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16804 $as_echo "$ac_cs_version"; exit ;;
16805 --config | --confi | --conf | --con | --co | --c )
16806 $as_echo "$ac_cs_config"; exit ;;
16807 --debug | --debu | --deb | --de | --d | -d )
16808 debug=: ;;
16809 --file | --fil | --fi | --f )
16810 $ac_shift
16811 case $ac_optarg in
16812 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16813 '') as_fn_error $? "missing file argument" ;;
16814 esac
16815 as_fn_append CONFIG_FILES " '$ac_optarg'"
16816 ac_need_defaults=false;;
16817 --header | --heade | --head | --hea )
16818 $ac_shift
16819 case $ac_optarg in
16820 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16821 esac
16822 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16823 ac_need_defaults=false;;
16824 --he | --h)
16825 # Conflict between --help and --header
16826 as_fn_error $? "ambiguous option: \`$1'
16827 Try \`$0 --help' for more information.";;
16828 --help | --hel | -h )
16829 $as_echo "$ac_cs_usage"; exit ;;
16830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16831 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16832 ac_cs_silent=: ;;
16833
16834 # This is an error.
16835 -*) as_fn_error $? "unrecognized option: \`$1'
16836 Try \`$0 --help' for more information." ;;
16837
16838 *) as_fn_append ac_config_targets " $1"
16839 ac_need_defaults=false ;;
16840
16841 esac
16842 shift
16843 done
16844
16845 ac_configure_extra_args=
16846
16847 if $ac_cs_silent; then
16848 exec 6>/dev/null
16849 ac_configure_extra_args="$ac_configure_extra_args --silent"
16850 fi
16851
16852 _ACEOF
16853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16854 if \$ac_cs_recheck; then
16855 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16856 shift
16857 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16858 CONFIG_SHELL='$SHELL'
16859 export CONFIG_SHELL
16860 exec "\$@"
16861 fi
16862
16863 _ACEOF
16864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16865 exec 5>>config.log
16866 {
16867 echo
16868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16869 ## Running $as_me. ##
16870 _ASBOX
16871 $as_echo "$ac_log"
16872 } >&5
16873
16874 _ACEOF
16875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16876 #
16877 # INIT-COMMANDS
16878 #
16879 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16880
16881
16882 # The HP-UX ksh and POSIX shell print the target directory to stdout
16883 # if CDPATH is set.
16884 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16885
16886 sed_quote_subst='$sed_quote_subst'
16887 double_quote_subst='$double_quote_subst'
16888 delay_variable_subst='$delay_variable_subst'
16889 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16890 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16891 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16892 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16893 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16894 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16895 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16896 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16897 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16898 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16899 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16900 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16901 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16902 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16903 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16904 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16905 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16906 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16907 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16908 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16909 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16910 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16911 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16912 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16913 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16914 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16915 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16916 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16917 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16918 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16919 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16920 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16921 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16922 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16923 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16924 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16925 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16926 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16927 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16928 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16929 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16930 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16931 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16932 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16933 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16934 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16935 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16936 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16937 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16938 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16939 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16940 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16941 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16942 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16943 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16944 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16945 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16946 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16947 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"`'
16948 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16949 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16950 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16951 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16952 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16953 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16954 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16955 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16956 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16957 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16958 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16959 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16960 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16961 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16962 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16963 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16964 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16965 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16966 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16967 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16968 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16969 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16970 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16971 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16972 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16973 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16974 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16975 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16976 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16977 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16978 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16979 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16980 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16981 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16982 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16983 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16984 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16985 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16986 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16987 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16988 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16989 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16990 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16991 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16992 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16993 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16994 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16995 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16996 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16997 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16998 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16999 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17000 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17001 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17002 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17003 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17004 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17005 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17006 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17007 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17008 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17009 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17010 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17011 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17012 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17013 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17014 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17015 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17016 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17017 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17018 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17019 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17020 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17021 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17022 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17023 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17024
17025 LTCC='$LTCC'
17026 LTCFLAGS='$LTCFLAGS'
17027 compiler='$compiler_DEFAULT'
17028
17029 # A function that is used when there is no print builtin or printf.
17030 func_fallback_echo ()
17031 {
17032 eval 'cat <<_LTECHO_EOF
17033 \$1
17034 _LTECHO_EOF'
17035 }
17036
17037 # Quote evaled strings.
17038 for var in SHELL \
17039 ECHO \
17040 PATH_SEPARATOR \
17041 SED \
17042 GREP \
17043 EGREP \
17044 FGREP \
17045 LD \
17046 NM \
17047 LN_S \
17048 lt_SP2NL \
17049 lt_NL2SP \
17050 reload_flag \
17051 OBJDUMP \
17052 deplibs_check_method \
17053 file_magic_cmd \
17054 file_magic_glob \
17055 want_nocaseglob \
17056 DLLTOOL \
17057 sharedlib_from_linklib_cmd \
17058 AR \
17059 AR_FLAGS \
17060 archiver_list_spec \
17061 STRIP \
17062 RANLIB \
17063 CC \
17064 CFLAGS \
17065 compiler \
17066 lt_cv_sys_global_symbol_pipe \
17067 lt_cv_sys_global_symbol_to_cdecl \
17068 lt_cv_sys_global_symbol_to_import \
17069 lt_cv_sys_global_symbol_to_c_name_address \
17070 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17071 lt_cv_nm_interface \
17072 nm_file_list_spec \
17073 lt_cv_truncate_bin \
17074 lt_prog_compiler_no_builtin_flag \
17075 lt_prog_compiler_pic \
17076 lt_prog_compiler_wl \
17077 lt_prog_compiler_static \
17078 lt_cv_prog_compiler_c_o \
17079 need_locks \
17080 MANIFEST_TOOL \
17081 DSYMUTIL \
17082 NMEDIT \
17083 LIPO \
17084 OTOOL \
17085 OTOOL64 \
17086 shrext_cmds \
17087 export_dynamic_flag_spec \
17088 whole_archive_flag_spec \
17089 compiler_needs_object \
17090 with_gnu_ld \
17091 allow_undefined_flag \
17092 no_undefined_flag \
17093 hardcode_libdir_flag_spec \
17094 hardcode_libdir_separator \
17095 exclude_expsyms \
17096 include_expsyms \
17097 file_list_spec \
17098 variables_saved_for_relink \
17099 libname_spec \
17100 library_names_spec \
17101 soname_spec \
17102 install_override_mode \
17103 finish_eval \
17104 old_striplib \
17105 striplib; do
17106 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17107 *[\\\\\\\`\\"\\\$]*)
17108 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17109 ;;
17110 *)
17111 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17112 ;;
17113 esac
17114 done
17115
17116 # Double-quote double-evaled strings.
17117 for var in reload_cmds \
17118 old_postinstall_cmds \
17119 old_postuninstall_cmds \
17120 old_archive_cmds \
17121 extract_expsyms_cmds \
17122 old_archive_from_new_cmds \
17123 old_archive_from_expsyms_cmds \
17124 archive_cmds \
17125 archive_expsym_cmds \
17126 module_cmds \
17127 module_expsym_cmds \
17128 export_symbols_cmds \
17129 prelink_cmds \
17130 postlink_cmds \
17131 postinstall_cmds \
17132 postuninstall_cmds \
17133 finish_cmds \
17134 sys_lib_search_path_spec \
17135 configure_time_dlsearch_path \
17136 configure_time_lt_sys_library_path; do
17137 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17138 *[\\\\\\\`\\"\\\$]*)
17139 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17140 ;;
17141 *)
17142 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17143 ;;
17144 esac
17145 done
17146
17147 ac_aux_dir='$ac_aux_dir'
17148
17149 # See if we are running on zsh, and set the options that allow our
17150 # commands through without removal of \ escapes INIT.
17151 if test -n "\${ZSH_VERSION+set}"; then
17152 setopt NO_GLOB_SUBST
17153 fi
17154
17155
17156 PACKAGE='$PACKAGE'
17157 VERSION='$VERSION'
17158 RM='$RM'
17159 ofile='$ofile'
17160
17161
17162
17163 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17164 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17165 # from automake < 1.5.
17166 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17167 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17168 LINGUAS="${LINGUAS-%UNSET%}"
17169
17170
17171 _ACEOF
17172
17173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17174
17175 # Handling of arguments.
17176 for ac_config_target in $ac_config_targets
17177 do
17178 case $ac_config_target in
17179 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17180 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17181 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17182 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17183 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17184 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
17185 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17186 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17187
17188 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17189 esac
17190 done
17191
17192
17193 # If the user did not use the arguments to specify the items to instantiate,
17194 # then the envvar interface is used. Set only those that are not.
17195 # We use the long form for the default assignment because of an extremely
17196 # bizarre bug on SunOS 4.1.3.
17197 if $ac_need_defaults; then
17198 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17199 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17200 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17201 fi
17202
17203 # Have a temporary directory for convenience. Make it in the build tree
17204 # simply because there is no reason against having it here, and in addition,
17205 # creating and moving files from /tmp can sometimes cause problems.
17206 # Hook for its removal unless debugging.
17207 # Note that there is a small window in which the directory will not be cleaned:
17208 # after its creation but before its name has been assigned to `$tmp'.
17209 $debug ||
17210 {
17211 tmp= ac_tmp=
17212 trap 'exit_status=$?
17213 : "${ac_tmp:=$tmp}"
17214 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17215 ' 0
17216 trap 'as_fn_exit 1' 1 2 13 15
17217 }
17218 # Create a (secure) tmp directory for tmp files.
17219
17220 {
17221 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17222 test -d "$tmp"
17223 } ||
17224 {
17225 tmp=./conf$$-$RANDOM
17226 (umask 077 && mkdir "$tmp")
17227 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17228 ac_tmp=$tmp
17229
17230 # Set up the scripts for CONFIG_FILES section.
17231 # No need to generate them if there are no CONFIG_FILES.
17232 # This happens for instance with `./config.status config.h'.
17233 if test -n "$CONFIG_FILES"; then
17234
17235
17236 ac_cr=`echo X | tr X '\015'`
17237 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17238 # But we know of no other shell where ac_cr would be empty at this
17239 # point, so we can use a bashism as a fallback.
17240 if test "x$ac_cr" = x; then
17241 eval ac_cr=\$\'\\r\'
17242 fi
17243 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17244 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17245 ac_cs_awk_cr='\\r'
17246 else
17247 ac_cs_awk_cr=$ac_cr
17248 fi
17249
17250 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17251 _ACEOF
17252
17253
17254 {
17255 echo "cat >conf$$subs.awk <<_ACEOF" &&
17256 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17257 echo "_ACEOF"
17258 } >conf$$subs.sh ||
17259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17260 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17261 ac_delim='%!_!# '
17262 for ac_last_try in false false false false false :; do
17263 . ./conf$$subs.sh ||
17264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17265
17266 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17267 if test $ac_delim_n = $ac_delim_num; then
17268 break
17269 elif $ac_last_try; then
17270 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17271 else
17272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17273 fi
17274 done
17275 rm -f conf$$subs.sh
17276
17277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17278 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17279 _ACEOF
17280 sed -n '
17281 h
17282 s/^/S["/; s/!.*/"]=/
17283 p
17284 g
17285 s/^[^!]*!//
17286 :repl
17287 t repl
17288 s/'"$ac_delim"'$//
17289 t delim
17290 :nl
17291 h
17292 s/\(.\{148\}\)..*/\1/
17293 t more1
17294 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17295 p
17296 n
17297 b repl
17298 :more1
17299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17300 p
17301 g
17302 s/.\{148\}//
17303 t nl
17304 :delim
17305 h
17306 s/\(.\{148\}\)..*/\1/
17307 t more2
17308 s/["\\]/\\&/g; s/^/"/; s/$/"/
17309 p
17310 b
17311 :more2
17312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17313 p
17314 g
17315 s/.\{148\}//
17316 t delim
17317 ' <conf$$subs.awk | sed '
17318 /^[^""]/{
17319 N
17320 s/\n//
17321 }
17322 ' >>$CONFIG_STATUS || ac_write_fail=1
17323 rm -f conf$$subs.awk
17324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17325 _ACAWK
17326 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17327 for (key in S) S_is_set[key] = 1
17328 FS = ""
17329
17330 }
17331 {
17332 line = $ 0
17333 nfields = split(line, field, "@")
17334 substed = 0
17335 len = length(field[1])
17336 for (i = 2; i < nfields; i++) {
17337 key = field[i]
17338 keylen = length(key)
17339 if (S_is_set[key]) {
17340 value = S[key]
17341 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17342 len += length(value) + length(field[++i])
17343 substed = 1
17344 } else
17345 len += 1 + keylen
17346 }
17347
17348 print line
17349 }
17350
17351 _ACAWK
17352 _ACEOF
17353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17354 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17355 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17356 else
17357 cat
17358 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17359 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17360 _ACEOF
17361
17362 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17363 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17364 # trailing colons and then remove the whole line if VPATH becomes empty
17365 # (actually we leave an empty line to preserve line numbers).
17366 if test "x$srcdir" = x.; then
17367 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17368 h
17369 s///
17370 s/^/:/
17371 s/[ ]*$/:/
17372 s/:\$(srcdir):/:/g
17373 s/:\${srcdir}:/:/g
17374 s/:@srcdir@:/:/g
17375 s/^:*//
17376 s/:*$//
17377 x
17378 s/\(=[ ]*\).*/\1/
17379 G
17380 s/\n//
17381 s/^[^=]*=[ ]*$//
17382 }'
17383 fi
17384
17385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17386 fi # test -n "$CONFIG_FILES"
17387
17388 # Set up the scripts for CONFIG_HEADERS section.
17389 # No need to generate them if there are no CONFIG_HEADERS.
17390 # This happens for instance with `./config.status Makefile'.
17391 if test -n "$CONFIG_HEADERS"; then
17392 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17393 BEGIN {
17394 _ACEOF
17395
17396 # Transform confdefs.h into an awk script `defines.awk', embedded as
17397 # here-document in config.status, that substitutes the proper values into
17398 # config.h.in to produce config.h.
17399
17400 # Create a delimiter string that does not exist in confdefs.h, to ease
17401 # handling of long lines.
17402 ac_delim='%!_!# '
17403 for ac_last_try in false false :; do
17404 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17405 if test -z "$ac_tt"; then
17406 break
17407 elif $ac_last_try; then
17408 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17409 else
17410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17411 fi
17412 done
17413
17414 # For the awk script, D is an array of macro values keyed by name,
17415 # likewise P contains macro parameters if any. Preserve backslash
17416 # newline sequences.
17417
17418 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17419 sed -n '
17420 s/.\{148\}/&'"$ac_delim"'/g
17421 t rset
17422 :rset
17423 s/^[ ]*#[ ]*define[ ][ ]*/ /
17424 t def
17425 d
17426 :def
17427 s/\\$//
17428 t bsnl
17429 s/["\\]/\\&/g
17430 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17431 D["\1"]=" \3"/p
17432 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17433 d
17434 :bsnl
17435 s/["\\]/\\&/g
17436 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17437 D["\1"]=" \3\\\\\\n"\\/p
17438 t cont
17439 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17440 t cont
17441 d
17442 :cont
17443 n
17444 s/.\{148\}/&'"$ac_delim"'/g
17445 t clear
17446 :clear
17447 s/\\$//
17448 t bsnlc
17449 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17450 d
17451 :bsnlc
17452 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17453 b cont
17454 ' <confdefs.h | sed '
17455 s/'"$ac_delim"'/"\\\
17456 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17457
17458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17459 for (key in D) D_is_set[key] = 1
17460 FS = ""
17461 }
17462 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17463 line = \$ 0
17464 split(line, arg, " ")
17465 if (arg[1] == "#") {
17466 defundef = arg[2]
17467 mac1 = arg[3]
17468 } else {
17469 defundef = substr(arg[1], 2)
17470 mac1 = arg[2]
17471 }
17472 split(mac1, mac2, "(") #)
17473 macro = mac2[1]
17474 prefix = substr(line, 1, index(line, defundef) - 1)
17475 if (D_is_set[macro]) {
17476 # Preserve the white space surrounding the "#".
17477 print prefix "define", macro P[macro] D[macro]
17478 next
17479 } else {
17480 # Replace #undef with comments. This is necessary, for example,
17481 # in the case of _POSIX_SOURCE, which is predefined and required
17482 # on some systems where configure will not decide to define it.
17483 if (defundef == "undef") {
17484 print "/*", prefix defundef, macro, "*/"
17485 next
17486 }
17487 }
17488 }
17489 { print }
17490 _ACAWK
17491 _ACEOF
17492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17493 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17494 fi # test -n "$CONFIG_HEADERS"
17495
17496
17497 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17498 shift
17499 for ac_tag
17500 do
17501 case $ac_tag in
17502 :[FHLC]) ac_mode=$ac_tag; continue;;
17503 esac
17504 case $ac_mode$ac_tag in
17505 :[FHL]*:*);;
17506 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17507 :[FH]-) ac_tag=-:-;;
17508 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17509 esac
17510 ac_save_IFS=$IFS
17511 IFS=:
17512 set x $ac_tag
17513 IFS=$ac_save_IFS
17514 shift
17515 ac_file=$1
17516 shift
17517
17518 case $ac_mode in
17519 :L) ac_source=$1;;
17520 :[FH])
17521 ac_file_inputs=
17522 for ac_f
17523 do
17524 case $ac_f in
17525 -) ac_f="$ac_tmp/stdin";;
17526 *) # Look for the file first in the build tree, then in the source tree
17527 # (if the path is not absolute). The absolute path cannot be DOS-style,
17528 # because $ac_f cannot contain `:'.
17529 test -f "$ac_f" ||
17530 case $ac_f in
17531 [\\/$]*) false;;
17532 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17533 esac ||
17534 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17535 esac
17536 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17537 as_fn_append ac_file_inputs " '$ac_f'"
17538 done
17539
17540 # Let's still pretend it is `configure' which instantiates (i.e., don't
17541 # use $as_me), people would be surprised to read:
17542 # /* config.h. Generated by config.status. */
17543 configure_input='Generated from '`
17544 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17545 `' by configure.'
17546 if test x"$ac_file" != x-; then
17547 configure_input="$ac_file. $configure_input"
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17549 $as_echo "$as_me: creating $ac_file" >&6;}
17550 fi
17551 # Neutralize special characters interpreted by sed in replacement strings.
17552 case $configure_input in #(
17553 *\&* | *\|* | *\\* )
17554 ac_sed_conf_input=`$as_echo "$configure_input" |
17555 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17556 *) ac_sed_conf_input=$configure_input;;
17557 esac
17558
17559 case $ac_tag in
17560 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17561 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17562 esac
17563 ;;
17564 esac
17565
17566 ac_dir=`$as_dirname -- "$ac_file" ||
17567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17568 X"$ac_file" : 'X\(//\)[^/]' \| \
17569 X"$ac_file" : 'X\(//\)$' \| \
17570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17571 $as_echo X"$ac_file" |
17572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17573 s//\1/
17574 q
17575 }
17576 /^X\(\/\/\)[^/].*/{
17577 s//\1/
17578 q
17579 }
17580 /^X\(\/\/\)$/{
17581 s//\1/
17582 q
17583 }
17584 /^X\(\/\).*/{
17585 s//\1/
17586 q
17587 }
17588 s/.*/./; q'`
17589 as_dir="$ac_dir"; as_fn_mkdir_p
17590 ac_builddir=.
17591
17592 case "$ac_dir" in
17593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17594 *)
17595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17596 # A ".." for each directory in $ac_dir_suffix.
17597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17598 case $ac_top_builddir_sub in
17599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17601 esac ;;
17602 esac
17603 ac_abs_top_builddir=$ac_pwd
17604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17605 # for backward compatibility:
17606 ac_top_builddir=$ac_top_build_prefix
17607
17608 case $srcdir in
17609 .) # We are building in place.
17610 ac_srcdir=.
17611 ac_top_srcdir=$ac_top_builddir_sub
17612 ac_abs_top_srcdir=$ac_pwd ;;
17613 [\\/]* | ?:[\\/]* ) # Absolute name.
17614 ac_srcdir=$srcdir$ac_dir_suffix;
17615 ac_top_srcdir=$srcdir
17616 ac_abs_top_srcdir=$srcdir ;;
17617 *) # Relative name.
17618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17619 ac_top_srcdir=$ac_top_build_prefix$srcdir
17620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17621 esac
17622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17623
17624
17625 case $ac_mode in
17626 :F)
17627 #
17628 # CONFIG_FILE
17629 #
17630
17631 case $INSTALL in
17632 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17633 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17634 esac
17635 ac_MKDIR_P=$MKDIR_P
17636 case $MKDIR_P in
17637 [\\/$]* | ?:[\\/]* ) ;;
17638 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17639 esac
17640 _ACEOF
17641
17642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17643 # If the template does not know about datarootdir, expand it.
17644 # FIXME: This hack should be removed a few years after 2.60.
17645 ac_datarootdir_hack=; ac_datarootdir_seen=
17646 ac_sed_dataroot='
17647 /datarootdir/ {
17648 p
17649 q
17650 }
17651 /@datadir@/p
17652 /@docdir@/p
17653 /@infodir@/p
17654 /@localedir@/p
17655 /@mandir@/p'
17656 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17657 *datarootdir*) ac_datarootdir_seen=yes;;
17658 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17660 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17661 _ACEOF
17662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17663 ac_datarootdir_hack='
17664 s&@datadir@&$datadir&g
17665 s&@docdir@&$docdir&g
17666 s&@infodir@&$infodir&g
17667 s&@localedir@&$localedir&g
17668 s&@mandir@&$mandir&g
17669 s&\\\${datarootdir}&$datarootdir&g' ;;
17670 esac
17671 _ACEOF
17672
17673 # Neutralize VPATH when `$srcdir' = `.'.
17674 # Shell code in configure.ac might set extrasub.
17675 # FIXME: do we really want to maintain this feature?
17676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17677 ac_sed_extra="$ac_vpsub
17678 $extrasub
17679 _ACEOF
17680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17681 :t
17682 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17683 s|@configure_input@|$ac_sed_conf_input|;t t
17684 s&@top_builddir@&$ac_top_builddir_sub&;t t
17685 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17686 s&@srcdir@&$ac_srcdir&;t t
17687 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17688 s&@top_srcdir@&$ac_top_srcdir&;t t
17689 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17690 s&@builddir@&$ac_builddir&;t t
17691 s&@abs_builddir@&$ac_abs_builddir&;t t
17692 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17693 s&@INSTALL@&$ac_INSTALL&;t t
17694 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17695 $ac_datarootdir_hack
17696 "
17697 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17698 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17699
17700 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17701 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17703 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17705 which seems to be undefined. Please make sure it is defined" >&5
17706 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17707 which seems to be undefined. Please make sure it is defined" >&2;}
17708
17709 rm -f "$ac_tmp/stdin"
17710 case $ac_file in
17711 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17712 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17713 esac \
17714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17715 ;;
17716 :H)
17717 #
17718 # CONFIG_HEADER
17719 #
17720 if test x"$ac_file" != x-; then
17721 {
17722 $as_echo "/* $configure_input */" \
17723 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17724 } >"$ac_tmp/config.h" \
17725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17726 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17728 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17729 else
17730 rm -f "$ac_file"
17731 mv "$ac_tmp/config.h" "$ac_file" \
17732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17733 fi
17734 else
17735 $as_echo "/* $configure_input */" \
17736 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17737 || as_fn_error $? "could not create -" "$LINENO" 5
17738 fi
17739 # Compute "$ac_file"'s index in $config_headers.
17740 _am_arg="$ac_file"
17741 _am_stamp_count=1
17742 for _am_header in $config_headers :; do
17743 case $_am_header in
17744 $_am_arg | $_am_arg:* )
17745 break ;;
17746 * )
17747 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17748 esac
17749 done
17750 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17751 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17752 X"$_am_arg" : 'X\(//\)[^/]' \| \
17753 X"$_am_arg" : 'X\(//\)$' \| \
17754 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17755 $as_echo X"$_am_arg" |
17756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17757 s//\1/
17758 q
17759 }
17760 /^X\(\/\/\)[^/].*/{
17761 s//\1/
17762 q
17763 }
17764 /^X\(\/\/\)$/{
17765 s//\1/
17766 q
17767 }
17768 /^X\(\/\).*/{
17769 s//\1/
17770 q
17771 }
17772 s/.*/./; q'`/stamp-h$_am_stamp_count
17773 ;;
17774
17775 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17776 $as_echo "$as_me: executing $ac_file commands" >&6;}
17777 ;;
17778 esac
17779
17780
17781 case $ac_file$ac_mode in
17782 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17783 # Older Autoconf quotes --file arguments for eval, but not when files
17784 # are listed without --file. Let's play safe and only enable the eval
17785 # if we detect the quoting.
17786 case $CONFIG_FILES in
17787 *\'*) eval set x "$CONFIG_FILES" ;;
17788 *) set x $CONFIG_FILES ;;
17789 esac
17790 shift
17791 for mf
17792 do
17793 # Strip MF so we end up with the name of the file.
17794 mf=`echo "$mf" | sed -e 's/:.*$//'`
17795 # Check whether this is an Automake generated Makefile or not.
17796 # We used to match only the files named 'Makefile.in', but
17797 # some people rename them; so instead we look at the file content.
17798 # Grep'ing the first line is not enough: some people post-process
17799 # each Makefile.in and add a new line on top of each file to say so.
17800 # Grep'ing the whole file is not good either: AIX grep has a line
17801 # limit of 2048, but all sed's we know have understand at least 4000.
17802 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17803 dirpart=`$as_dirname -- "$mf" ||
17804 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17805 X"$mf" : 'X\(//\)[^/]' \| \
17806 X"$mf" : 'X\(//\)$' \| \
17807 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17808 $as_echo X"$mf" |
17809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17810 s//\1/
17811 q
17812 }
17813 /^X\(\/\/\)[^/].*/{
17814 s//\1/
17815 q
17816 }
17817 /^X\(\/\/\)$/{
17818 s//\1/
17819 q
17820 }
17821 /^X\(\/\).*/{
17822 s//\1/
17823 q
17824 }
17825 s/.*/./; q'`
17826 else
17827 continue
17828 fi
17829 # Extract the definition of DEPDIR, am__include, and am__quote
17830 # from the Makefile without running 'make'.
17831 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17832 test -z "$DEPDIR" && continue
17833 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17834 test -z "$am__include" && continue
17835 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17836 # Find all dependency output files, they are included files with
17837 # $(DEPDIR) in their names. We invoke sed twice because it is the
17838 # simplest approach to changing $(DEPDIR) to its actual value in the
17839 # expansion.
17840 for file in `sed -n "
17841 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17842 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17843 # Make sure the directory exists.
17844 test -f "$dirpart/$file" && continue
17845 fdir=`$as_dirname -- "$file" ||
17846 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17847 X"$file" : 'X\(//\)[^/]' \| \
17848 X"$file" : 'X\(//\)$' \| \
17849 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17850 $as_echo X"$file" |
17851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17852 s//\1/
17853 q
17854 }
17855 /^X\(\/\/\)[^/].*/{
17856 s//\1/
17857 q
17858 }
17859 /^X\(\/\/\)$/{
17860 s//\1/
17861 q
17862 }
17863 /^X\(\/\).*/{
17864 s//\1/
17865 q
17866 }
17867 s/.*/./; q'`
17868 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17869 # echo "creating $dirpart/$file"
17870 echo '# dummy' > "$dirpart/$file"
17871 done
17872 done
17873 }
17874 ;;
17875 "libtool":C)
17876
17877 # See if we are running on zsh, and set the options that allow our
17878 # commands through without removal of \ escapes.
17879 if test -n "${ZSH_VERSION+set}"; then
17880 setopt NO_GLOB_SUBST
17881 fi
17882
17883 cfgfile=${ofile}T
17884 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17885 $RM "$cfgfile"
17886
17887 cat <<_LT_EOF >> "$cfgfile"
17888 #! $SHELL
17889 # Generated automatically by $as_me ($PACKAGE) $VERSION
17890 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17891 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17892
17893 # Provide generalized library-building support services.
17894 # Written by Gordon Matzigkeit, 1996
17895
17896 # Copyright (C) 2014 Free Software Foundation, Inc.
17897 # This is free software; see the source for copying conditions. There is NO
17898 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17899
17900 # GNU Libtool is free software; you can redistribute it and/or modify
17901 # it under the terms of the GNU General Public License as published by
17902 # the Free Software Foundation; either version 2 of of the License, or
17903 # (at your option) any later version.
17904 #
17905 # As a special exception to the GNU General Public License, if you
17906 # distribute this file as part of a program or library that is built
17907 # using GNU Libtool, you may include this file under the same
17908 # distribution terms that you use for the rest of that program.
17909 #
17910 # GNU Libtool is distributed in the hope that it will be useful, but
17911 # WITHOUT ANY WARRANTY; without even the implied warranty of
17912 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17913 # GNU General Public License for more details.
17914 #
17915 # You should have received a copy of the GNU General Public License
17916 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17917
17918
17919 # The names of the tagged configurations supported by this script.
17920 available_tags=''
17921
17922 # Configured defaults for sys_lib_dlsearch_path munging.
17923 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17924
17925 # ### BEGIN LIBTOOL CONFIG
17926
17927 # Which release of libtool.m4 was used?
17928 macro_version=$macro_version
17929 macro_revision=$macro_revision
17930
17931 # Whether or not to build shared libraries.
17932 build_libtool_libs=$enable_shared
17933
17934 # Whether or not to build static libraries.
17935 build_old_libs=$enable_static
17936
17937 # What type of objects to build.
17938 pic_mode=$pic_mode
17939
17940 # Whether or not to optimize for fast installation.
17941 fast_install=$enable_fast_install
17942
17943 # Shared archive member basename,for filename based shared library versioning on AIX.
17944 shared_archive_member_spec=$shared_archive_member_spec
17945
17946 # Shell to use when invoking shell scripts.
17947 SHELL=$lt_SHELL
17948
17949 # An echo program that protects backslashes.
17950 ECHO=$lt_ECHO
17951
17952 # The PATH separator for the build system.
17953 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17954
17955 # The host system.
17956 host_alias=$host_alias
17957 host=$host
17958 host_os=$host_os
17959
17960 # The build system.
17961 build_alias=$build_alias
17962 build=$build
17963 build_os=$build_os
17964
17965 # A sed program that does not truncate output.
17966 SED=$lt_SED
17967
17968 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17969 Xsed="\$SED -e 1s/^X//"
17970
17971 # A grep program that handles long lines.
17972 GREP=$lt_GREP
17973
17974 # An ERE matcher.
17975 EGREP=$lt_EGREP
17976
17977 # A literal string matcher.
17978 FGREP=$lt_FGREP
17979
17980 # A BSD- or MS-compatible name lister.
17981 NM=$lt_NM
17982
17983 # Whether we need soft or hard links.
17984 LN_S=$lt_LN_S
17985
17986 # What is the maximum length of a command?
17987 max_cmd_len=$max_cmd_len
17988
17989 # Object file suffix (normally "o").
17990 objext=$ac_objext
17991
17992 # Executable file suffix (normally "").
17993 exeext=$exeext
17994
17995 # whether the shell understands "unset".
17996 lt_unset=$lt_unset
17997
17998 # turn spaces into newlines.
17999 SP2NL=$lt_lt_SP2NL
18000
18001 # turn newlines into spaces.
18002 NL2SP=$lt_lt_NL2SP
18003
18004 # convert \$build file names to \$host format.
18005 to_host_file_cmd=$lt_cv_to_host_file_cmd
18006
18007 # convert \$build files to toolchain format.
18008 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18009
18010 # An object symbol dumper.
18011 OBJDUMP=$lt_OBJDUMP
18012
18013 # Method to check whether dependent libraries are shared objects.
18014 deplibs_check_method=$lt_deplibs_check_method
18015
18016 # Command to use when deplibs_check_method = "file_magic".
18017 file_magic_cmd=$lt_file_magic_cmd
18018
18019 # How to find potential files when deplibs_check_method = "file_magic".
18020 file_magic_glob=$lt_file_magic_glob
18021
18022 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18023 want_nocaseglob=$lt_want_nocaseglob
18024
18025 # DLL creation program.
18026 DLLTOOL=$lt_DLLTOOL
18027
18028 # Command to associate shared and link libraries.
18029 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18030
18031 # The archiver.
18032 AR=$lt_AR
18033
18034 # Flags to create an archive.
18035 AR_FLAGS=$lt_AR_FLAGS
18036
18037 # How to feed a file listing to the archiver.
18038 archiver_list_spec=$lt_archiver_list_spec
18039
18040 # A symbol stripping program.
18041 STRIP=$lt_STRIP
18042
18043 # Commands used to install an old-style archive.
18044 RANLIB=$lt_RANLIB
18045 old_postinstall_cmds=$lt_old_postinstall_cmds
18046 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18047
18048 # Whether to use a lock for old archive extraction.
18049 lock_old_archive_extraction=$lock_old_archive_extraction
18050
18051 # A C compiler.
18052 LTCC=$lt_CC
18053
18054 # LTCC compiler flags.
18055 LTCFLAGS=$lt_CFLAGS
18056
18057 # Take the output of nm and produce a listing of raw symbols and C names.
18058 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18059
18060 # Transform the output of nm in a proper C declaration.
18061 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18062
18063 # Transform the output of nm into a list of symbols to manually relocate.
18064 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18065
18066 # Transform the output of nm in a C name address pair.
18067 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18068
18069 # Transform the output of nm in a C name address pair when lib prefix is needed.
18070 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18071
18072 # The name lister interface.
18073 nm_interface=$lt_lt_cv_nm_interface
18074
18075 # Specify filename containing input files for \$NM.
18076 nm_file_list_spec=$lt_nm_file_list_spec
18077
18078 # The root where to search for dependent libraries,and where our libraries should be installed.
18079 lt_sysroot=$lt_sysroot
18080
18081 # Command to truncate a binary pipe.
18082 lt_truncate_bin=$lt_lt_cv_truncate_bin
18083
18084 # The name of the directory that contains temporary libtool files.
18085 objdir=$objdir
18086
18087 # Used to examine libraries when file_magic_cmd begins with "file".
18088 MAGIC_CMD=$MAGIC_CMD
18089
18090 # Must we lock files when doing compilation?
18091 need_locks=$lt_need_locks
18092
18093 # Manifest tool.
18094 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18095
18096 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18097 DSYMUTIL=$lt_DSYMUTIL
18098
18099 # Tool to change global to local symbols on Mac OS X.
18100 NMEDIT=$lt_NMEDIT
18101
18102 # Tool to manipulate fat objects and archives on Mac OS X.
18103 LIPO=$lt_LIPO
18104
18105 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18106 OTOOL=$lt_OTOOL
18107
18108 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18109 OTOOL64=$lt_OTOOL64
18110
18111 # Old archive suffix (normally "a").
18112 libext=$libext
18113
18114 # Shared library suffix (normally ".so").
18115 shrext_cmds=$lt_shrext_cmds
18116
18117 # The commands to extract the exported symbol list from a shared archive.
18118 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18119
18120 # Variables whose values should be saved in libtool wrapper scripts and
18121 # restored at link time.
18122 variables_saved_for_relink=$lt_variables_saved_for_relink
18123
18124 # Do we need the "lib" prefix for modules?
18125 need_lib_prefix=$need_lib_prefix
18126
18127 # Do we need a version for libraries?
18128 need_version=$need_version
18129
18130 # Library versioning type.
18131 version_type=$version_type
18132
18133 # Shared library runtime path variable.
18134 runpath_var=$runpath_var
18135
18136 # Shared library path variable.
18137 shlibpath_var=$shlibpath_var
18138
18139 # Is shlibpath searched before the hard-coded library search path?
18140 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18141
18142 # Format of library name prefix.
18143 libname_spec=$lt_libname_spec
18144
18145 # List of archive names. First name is the real one, the rest are links.
18146 # The last name is the one that the linker finds with -lNAME
18147 library_names_spec=$lt_library_names_spec
18148
18149 # The coded name of the library, if different from the real name.
18150 soname_spec=$lt_soname_spec
18151
18152 # Permission mode override for installation of shared libraries.
18153 install_override_mode=$lt_install_override_mode
18154
18155 # Command to use after installation of a shared archive.
18156 postinstall_cmds=$lt_postinstall_cmds
18157
18158 # Command to use after uninstallation of a shared archive.
18159 postuninstall_cmds=$lt_postuninstall_cmds
18160
18161 # Commands used to finish a libtool library installation in a directory.
18162 finish_cmds=$lt_finish_cmds
18163
18164 # As "finish_cmds", except a single script fragment to be evaled but
18165 # not shown.
18166 finish_eval=$lt_finish_eval
18167
18168 # Whether we should hardcode library paths into libraries.
18169 hardcode_into_libs=$hardcode_into_libs
18170
18171 # Compile-time system search path for libraries.
18172 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18173
18174 # Detected run-time system search path for libraries.
18175 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18176
18177 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18178 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18179
18180 # Whether dlopen is supported.
18181 dlopen_support=$enable_dlopen
18182
18183 # Whether dlopen of programs is supported.
18184 dlopen_self=$enable_dlopen_self
18185
18186 # Whether dlopen of statically linked programs is supported.
18187 dlopen_self_static=$enable_dlopen_self_static
18188
18189 # Commands to strip libraries.
18190 old_striplib=$lt_old_striplib
18191 striplib=$lt_striplib
18192
18193
18194 # The linker used to build libraries.
18195 LD=$lt_LD
18196
18197 # How to create reloadable object files.
18198 reload_flag=$lt_reload_flag
18199 reload_cmds=$lt_reload_cmds
18200
18201 # Commands used to build an old-style archive.
18202 old_archive_cmds=$lt_old_archive_cmds
18203
18204 # A language specific compiler.
18205 CC=$lt_compiler
18206
18207 # Is the compiler the GNU compiler?
18208 with_gcc=$GCC
18209
18210 # Compiler flag to turn off builtin functions.
18211 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18212
18213 # Additional compiler flags for building library objects.
18214 pic_flag=$lt_lt_prog_compiler_pic
18215
18216 # How to pass a linker flag through the compiler.
18217 wl=$lt_lt_prog_compiler_wl
18218
18219 # Compiler flag to prevent dynamic linking.
18220 link_static_flag=$lt_lt_prog_compiler_static
18221
18222 # Does compiler simultaneously support -c and -o options?
18223 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18224
18225 # Whether or not to add -lc for building shared libraries.
18226 build_libtool_need_lc=$archive_cmds_need_lc
18227
18228 # Whether or not to disallow shared libs when runtime libs are static.
18229 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18230
18231 # Compiler flag to allow reflexive dlopens.
18232 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18233
18234 # Compiler flag to generate shared objects directly from archives.
18235 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18236
18237 # Whether the compiler copes with passing no objects directly.
18238 compiler_needs_object=$lt_compiler_needs_object
18239
18240 # Create an old-style archive from a shared archive.
18241 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18242
18243 # Create a temporary old-style archive to link instead of a shared archive.
18244 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18245
18246 # Commands used to build a shared archive.
18247 archive_cmds=$lt_archive_cmds
18248 archive_expsym_cmds=$lt_archive_expsym_cmds
18249
18250 # Commands used to build a loadable module if different from building
18251 # a shared archive.
18252 module_cmds=$lt_module_cmds
18253 module_expsym_cmds=$lt_module_expsym_cmds
18254
18255 # Whether we are building with GNU ld or not.
18256 with_gnu_ld=$lt_with_gnu_ld
18257
18258 # Flag that allows shared libraries with undefined symbols to be built.
18259 allow_undefined_flag=$lt_allow_undefined_flag
18260
18261 # Flag that enforces no undefined symbols.
18262 no_undefined_flag=$lt_no_undefined_flag
18263
18264 # Flag to hardcode \$libdir into a binary during linking.
18265 # This must work even if \$libdir does not exist
18266 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18267
18268 # Whether we need a single "-rpath" flag with a separated argument.
18269 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18270
18271 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18272 # DIR into the resulting binary.
18273 hardcode_direct=$hardcode_direct
18274
18275 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18276 # DIR into the resulting binary and the resulting library dependency is
18277 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18278 # library is relocated.
18279 hardcode_direct_absolute=$hardcode_direct_absolute
18280
18281 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18282 # into the resulting binary.
18283 hardcode_minus_L=$hardcode_minus_L
18284
18285 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18286 # into the resulting binary.
18287 hardcode_shlibpath_var=$hardcode_shlibpath_var
18288
18289 # Set to "yes" if building a shared library automatically hardcodes DIR
18290 # into the library and all subsequent libraries and executables linked
18291 # against it.
18292 hardcode_automatic=$hardcode_automatic
18293
18294 # Set to yes if linker adds runtime paths of dependent libraries
18295 # to runtime path list.
18296 inherit_rpath=$inherit_rpath
18297
18298 # Whether libtool must link a program against all its dependency libraries.
18299 link_all_deplibs=$link_all_deplibs
18300
18301 # Set to "yes" if exported symbols are required.
18302 always_export_symbols=$always_export_symbols
18303
18304 # The commands to list exported symbols.
18305 export_symbols_cmds=$lt_export_symbols_cmds
18306
18307 # Symbols that should not be listed in the preloaded symbols.
18308 exclude_expsyms=$lt_exclude_expsyms
18309
18310 # Symbols that must always be exported.
18311 include_expsyms=$lt_include_expsyms
18312
18313 # Commands necessary for linking programs (against libraries) with templates.
18314 prelink_cmds=$lt_prelink_cmds
18315
18316 # Commands necessary for finishing linking programs.
18317 postlink_cmds=$lt_postlink_cmds
18318
18319 # Specify filename containing input files.
18320 file_list_spec=$lt_file_list_spec
18321
18322 # How to hardcode a shared library path into an executable.
18323 hardcode_action=$hardcode_action
18324
18325 # ### END LIBTOOL CONFIG
18326
18327 _LT_EOF
18328
18329 cat <<'_LT_EOF' >> "$cfgfile"
18330
18331 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18332
18333 # func_munge_path_list VARIABLE PATH
18334 # -----------------------------------
18335 # VARIABLE is name of variable containing _space_ separated list of
18336 # directories to be munged by the contents of PATH, which is string
18337 # having a format:
18338 # "DIR[:DIR]:"
18339 # string "DIR[ DIR]" will be prepended to VARIABLE
18340 # ":DIR[:DIR]"
18341 # string "DIR[ DIR]" will be appended to VARIABLE
18342 # "DIRP[:DIRP]::[DIRA:]DIRA"
18343 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18344 # "DIRA[ DIRA]" will be appended to VARIABLE
18345 # "DIR[:DIR]"
18346 # VARIABLE will be replaced by "DIR[ DIR]"
18347 func_munge_path_list ()
18348 {
18349 case x$2 in
18350 x)
18351 ;;
18352 *:)
18353 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18354 ;;
18355 x:*)
18356 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18357 ;;
18358 *::*)
18359 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18360 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18361 ;;
18362 *)
18363 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18364 ;;
18365 esac
18366 }
18367
18368
18369 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18370 func_cc_basename ()
18371 {
18372 for cc_temp in $*""; do
18373 case $cc_temp in
18374 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18375 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18376 \-*) ;;
18377 *) break;;
18378 esac
18379 done
18380 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18381 }
18382
18383
18384 # ### END FUNCTIONS SHARED WITH CONFIGURE
18385
18386 _LT_EOF
18387
18388 case $host_os in
18389 aix3*)
18390 cat <<\_LT_EOF >> "$cfgfile"
18391 # AIX sometimes has problems with the GCC collect2 program. For some
18392 # reason, if we set the COLLECT_NAMES environment variable, the problems
18393 # vanish in a puff of smoke.
18394 if test set != "${COLLECT_NAMES+set}"; then
18395 COLLECT_NAMES=
18396 export COLLECT_NAMES
18397 fi
18398 _LT_EOF
18399 ;;
18400 esac
18401
18402
18403 ltmain=$ac_aux_dir/ltmain.sh
18404
18405
18406 # We use sed instead of cat because bash on DJGPP gets confused if
18407 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18408 # text mode, it properly converts lines to CR/LF. This bash problem
18409 # is reportedly fixed, but why not run on old versions too?
18410 sed '$q' "$ltmain" >> "$cfgfile" \
18411 || (rm -f "$cfgfile"; exit 1)
18412
18413 mv -f "$cfgfile" "$ofile" ||
18414 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18415 chmod +x "$ofile"
18416
18417 ;;
18418 "po-directories":C)
18419 for ac_file in $CONFIG_FILES; do
18420 # Support "outfile[:infile[:infile...]]"
18421 case "$ac_file" in
18422 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18423 esac
18424 # PO directories have a Makefile.in generated from Makefile.in.in.
18425 case "$ac_file" in */Makefile.in)
18426 # Adjust a relative srcdir.
18427 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18428 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18429 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18430 # In autoconf-2.13 it is called $ac_given_srcdir.
18431 # In autoconf-2.50 it is called $srcdir.
18432 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18433 case "$ac_given_srcdir" in
18434 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18435 /*) top_srcdir="$ac_given_srcdir" ;;
18436 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18437 esac
18438 # Treat a directory as a PO directory if and only if it has a
18439 # POTFILES.in file. This allows packages to have multiple PO
18440 # directories under different names or in different locations.
18441 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18442 rm -f "$ac_dir/POTFILES"
18443 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18444 gt_tab=`printf '\t'`
18445 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"
18446 POMAKEFILEDEPS="POTFILES.in"
18447 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18448 # on $ac_dir but don't depend on user-specified configuration
18449 # parameters.
18450 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18451 # The LINGUAS file contains the set of available languages.
18452 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18453 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18454 fi
18455 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18456 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18457 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18458 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18459 else
18460 # The set of available languages was given in configure.in.
18461 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18462 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18463 fi
18464 # Compute POFILES
18465 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18466 # Compute UPDATEPOFILES
18467 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18468 # Compute DUMMYPOFILES
18469 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18470 # Compute GMOFILES
18471 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18472 case "$ac_given_srcdir" in
18473 .) srcdirpre= ;;
18474 *) srcdirpre='$(srcdir)/' ;;
18475 esac
18476 POFILES=
18477 UPDATEPOFILES=
18478 DUMMYPOFILES=
18479 GMOFILES=
18480 for lang in $ALL_LINGUAS; do
18481 POFILES="$POFILES $srcdirpre$lang.po"
18482 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18483 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18484 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18485 done
18486 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18487 # environment variable.
18488 INST_LINGUAS=
18489 if test -n "$ALL_LINGUAS"; then
18490 for presentlang in $ALL_LINGUAS; do
18491 useit=no
18492 if test "%UNSET%" != "$LINGUAS"; then
18493 desiredlanguages="$LINGUAS"
18494 else
18495 desiredlanguages="$ALL_LINGUAS"
18496 fi
18497 for desiredlang in $desiredlanguages; do
18498 # Use the presentlang catalog if desiredlang is
18499 # a. equal to presentlang, or
18500 # b. a variant of presentlang (because in this case,
18501 # presentlang can be used as a fallback for messages
18502 # which are not translated in the desiredlang catalog).
18503 case "$desiredlang" in
18504 "$presentlang"*) useit=yes;;
18505 esac
18506 done
18507 if test $useit = yes; then
18508 INST_LINGUAS="$INST_LINGUAS $presentlang"
18509 fi
18510 done
18511 fi
18512 CATALOGS=
18513 if test -n "$INST_LINGUAS"; then
18514 for lang in $INST_LINGUAS; do
18515 CATALOGS="$CATALOGS $lang.gmo"
18516 done
18517 fi
18518 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18519 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"
18520 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18521 if test -f "$f"; then
18522 case "$f" in
18523 *.orig | *.bak | *~) ;;
18524 *) cat "$f" >> "$ac_dir/Makefile" ;;
18525 esac
18526 fi
18527 done
18528 fi
18529 ;;
18530 esac
18531 done ;;
18532
18533 esac
18534 done # for ac_tag
18535
18536
18537 as_fn_exit 0
18538 _ACEOF
18539 ac_clean_files=$ac_clean_files_save
18540
18541 test $ac_write_fail = 0 ||
18542 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18543
18544
18545 # configure is writing to config.log, and then calls config.status.
18546 # config.status does its own redirection, appending to config.log.
18547 # Unfortunately, on DOS this fails, as config.log is still kept open
18548 # by configure, so config.status won't be able to write to it; its
18549 # output is simply discarded. So we exec the FD to /dev/null,
18550 # effectively closing config.log, so it can be properly (re)opened and
18551 # appended to by config.status. When coming back to configure, we
18552 # need to make the FD available again.
18553 if test "$no_create" != yes; then
18554 ac_cs_success=:
18555 ac_config_status_args=
18556 test "$silent" = yes &&
18557 ac_config_status_args="$ac_config_status_args --quiet"
18558 exec 5>/dev/null
18559 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18560 exec 5>>config.log
18561 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18562 # would make configure fail if this is the last instruction.
18563 $ac_cs_success || as_fn_exit 1
18564 fi
18565 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18567 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18568 fi
18569
18570
18571
18572 echo ""
18573 echo " Notification Daemon $VERSION"
18574 echo " `echo Notification Daemon $VERSION | sed "s/./=/g"`"
18575 echo ""
18576 echo " srcdir ......................: ${srcdir}"
18577 echo ""
18578 echo " compiler ....................: ${CC}"
18579 echo " cflags ......................: ${CFLAGS}"
18580 echo ""
18581 echo " prefix ......................: ${prefix}"
18582 echo " exec_prefix .................: ${exec_prefix}"
18583 echo " bindir ......................: ${bindir}"
18584 echo " datadir .....................: ${datadir}"
18585 echo ""