Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for popt 1.19.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system, including
280 $0: any error possibly output before this message. Then
281 $0: install a modern shell, or manually run the script
282 $0: under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='popt'
623 PACKAGE_TARNAME='popt'
624 PACKAGE_VERSION='1.19'
625 PACKAGE_STRING='popt 1.19'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 ac_unique_file="src/popt.h"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 gt_needs=
663 enable_option_checking=no
664 ac_subst_vars='am__EXEEXT_FALSE
665 am__EXEEXT_TRUE
666 LTLIBOBJS
667 LIBOBJS
668 subdirs
669 AM_CFLAGS
670 POSUB
671 LTLIBINTL
672 LIBINTL
673 INTLLIBS
674 LTLIBICONV
675 LIBICONV
676 INTL_MACOSX_LIBS
677 CPP
678 XGETTEXT_EXTRA_OPTIONS
679 MSGMERGE
680 XGETTEXT_015
681 XGETTEXT
682 GMSGFMT_015
683 MSGFMT_015
684 GMSGFMT
685 MSGFMT
686 GETTEXT_MACRO_VERSION
687 USE_NLS
688 HAVE_LD_VERSION_SCRIPT_FALSE
689 HAVE_LD_VERSION_SCRIPT_TRUE
690 LT_SYS_LIBRARY_PATH
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 MANIFEST_TOOL
697 RANLIB
698 DLLTOOL
699 OBJDUMP
700 LN_S
701 NM
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 EGREP
707 GREP
708 SED
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 LIBTOOL
718 ac_ct_AR
719 AR
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 AM_BACKSLASH
737 AM_DEFAULT_VERBOSITY
738 AM_DEFAULT_V
739 AM_V
740 CSCOPE
741 ETAGS
742 CTAGS
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 runstatedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL
805 am__quote'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_silent_rules
810 enable_dependency_tracking
811 enable_shared
812 enable_static
813 with_pic
814 enable_fast_install
815 with_aix_soname
816 with_gnu_ld
817 with_sysroot
818 enable_libtool_lock
819 enable_largefile
820 enable_ld_version_script
821 enable_build_gcov
822 enable_nls
823 enable_rpath
824 with_libiconv_prefix
825 with_libintl_prefix
826 enable_werror
827 '
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 LT_SYS_LIBRARY_PATH
837 CPP'
838 ac_subdirs_all=''
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 runstatedir='${localstatedir}/run'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
899
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: \`$ac_useropt'"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
967
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: \`$ac_useropt'"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -runstatedir | --runstatedir | --runstatedi | --runstated \
1128 | --runstate | --runstat | --runsta | --runst | --runs \
1129 | --run | --ru | --r)
1130 ac_prev=runstatedir ;;
1131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1133 | --run=* | --ru=* | --r=*)
1134 runstatedir=$ac_optarg ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1180
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=`printf "%s\n" "$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--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1196
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: \`$ac_useropt'"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information"
1233 ;;
1234
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1251 ;;
1252
1253 esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error $? "missing argument to $ac_option"
1259 fi
1260
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1267 fi
1268
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir runstatedir
1274 do
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 printf "%s\n" X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1350 fi
1351 else
1352 ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures popt 1.19 to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking ...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/popt]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1441
1442 cat <<\_ACEOF
1443
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of popt 1.19:";;
1458 esac
1459 cat <<\_ACEOF
1460
1461 Optional Features:
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-silent-rules less verbose build output (undo: "make V=1")
1466 --disable-silent-rules verbose build output (undo: "make V=0")
1467 --enable-dependency-tracking
1468 do not reject slow dependency extractors
1469 --disable-dependency-tracking
1470 speeds up one-time build
1471 --enable-shared[=PKGS] build shared libraries [default=yes]
1472 --enable-static[=PKGS] build static libraries [default=yes]
1473 --enable-fast-install[=PKGS]
1474 optimize for fast installation [default=yes]
1475 --disable-libtool-lock avoid locking (might break parallel builds)
1476 --disable-largefile omit support for large files
1477 --enable-ld-version-script
1478 enable/disable use of linker version script.
1479 (default is system dependent)
1480 --enable-build-gcov build POPT instrumented for gcov
1481 --disable-nls do not use Native Language Support
1482 --disable-rpath do not hardcode runtime library paths
1483 --enable-werror Treat warnings as errors (default: warnings are not
1484 errors)
1485
1486 Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-aix-soname=aix|svr4|both
1492 shared library versioning (aka "SONAME") variant to
1493 provide on AIX, [default=aix].
1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1495 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1496 compiler's sysroot if not specified).
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1499 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1500 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1501 --without-libintl-prefix don't search for libintl in includedir and libdir
1502
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 LT_SYS_LIBRARY_PATH
1512 User-defined run-time library search path.
1513 CPP C preprocessor
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 Report bugs to <[email protected]>.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1522
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
1529 ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for configure.gnu first; this name is used for a wrapper for
1565 # Metaconfig's "Configure" on case-insensitive file systems.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1572 else
1573 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 fi || ac_status=$?
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1576 done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581 cat <<\_ACEOF
1582 popt configure 1.19
1583 generated by GNU Autoconf 2.71
1584
1585 Copyright (C) 2021 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589 exit
1590 fi
1591
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1595
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest.beam
1603 if { { ac_try="$ac_compile"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 printf "%s\n" "$ac_try_echo"; } >&5
1610 (eval "$ac_compile") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1616 fi
1617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.$ac_objext
1622 then :
1623 ac_retval=0
1624 else $as_nop
1625 printf "%s\n" "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1
1629 fi
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_compile
1634
1635 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists and can be compiled using the include files in
1638 # INCLUDES, setting the cache variable VAR accordingly.
1639 ac_fn_c_check_header_compile ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 printf %s "checking for $2... " >&6; }
1644 if eval test \${$3+y}
1645 then :
1646 printf %s "(cached) " >&6
1647 else $as_nop
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 $4
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"
1654 then :
1655 eval "$3=yes"
1656 else $as_nop
1657 eval "$3=no"
1658 fi
1659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1660 fi
1661 eval ac_res=\$$3
1662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 printf "%s\n" "$ac_res" >&6; }
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
1666 } # ac_fn_c_check_header_compile
1667
1668 # ac_fn_c_try_link LINENO
1669 # -----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_link ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1675 if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 printf "%s\n" "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest$ac_exeext && {
1694 test "$cross_compiling" = yes ||
1695 test -x conftest$ac_exeext
1696 }
1697 then :
1698 ac_retval=0
1699 else $as_nop
1700 printf "%s\n" "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_link
1714
1715 # ac_fn_c_check_func LINENO FUNC VAR
1716 # ----------------------------------
1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1718 ac_fn_c_check_func ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 printf %s "checking for $2... " >&6; }
1723 if eval test \${$3+y}
1724 then :
1725 printf %s "(cached) " >&6
1726 else $as_nop
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1731 #define $2 innocuous_$2
1732
1733 /* System header to define __stub macros and hopefully few prototypes,
1734 which can conflict with char $2 (); below. */
1735
1736 #include <limits.h>
1737 #undef $2
1738
1739 /* Override any GCC internal prototype to avoid an error.
1740 Use char because int might match the return type of a GCC
1741 builtin and then its argument prototype would still apply. */
1742 #ifdef __cplusplus
1743 extern "C"
1744 #endif
1745 char $2 ();
1746 /* The GNU C library defines this for functions which it implements
1747 to always fail with ENOSYS. Some functions are actually named
1748 something starting with __ and the normal name is an alias. */
1749 #if defined __stub_$2 || defined __stub___$2
1750 choke me
1751 #endif
1752
1753 int
1754 main (void)
1755 {
1756 return $2 ();
1757 ;
1758 return 0;
1759 }
1760 _ACEOF
1761 if ac_fn_c_try_link "$LINENO"
1762 then :
1763 eval "$3=yes"
1764 else $as_nop
1765 eval "$3=no"
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1768 conftest$ac_exeext conftest.$ac_ext
1769 fi
1770 eval ac_res=\$$3
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 printf "%s\n" "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_c_check_func
1776
1777 # ac_fn_c_try_cpp LINENO
1778 # ----------------------
1779 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_cpp ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_cpp conftest.$ac_ext"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 printf "%s\n" "$ac_try_echo"; } >&5
1790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791 ac_status=$?
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1796 fi
1797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } > conftest.i && {
1799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 }
1802 then :
1803 ac_retval=0
1804 else $as_nop
1805 printf "%s\n" "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809 fi
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_cpp
1814
1815 # ac_fn_c_try_run LINENO
1816 # ----------------------
1817 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1818 # executables *can* be run.
1819 ac_fn_c_try_run ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 printf "%s\n" "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 printf "%s\n" "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }
1843 then :
1844 ac_retval=0
1845 else $as_nop
1846 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1847 printf "%s\n" "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=$ac_status
1851 fi
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1855
1856 } # ac_fn_c_try_run
1857 ac_configure_args_raw=
1858 for ac_arg
1859 do
1860 case $ac_arg in
1861 *\'*)
1862 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1863 esac
1864 as_fn_append ac_configure_args_raw " '$ac_arg'"
1865 done
1866
1867 case $ac_configure_args_raw in
1868 *$as_nl*)
1869 ac_safe_unquote= ;;
1870 *)
1871 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1872 ac_unsafe_a="$ac_unsafe_z#~"
1873 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1874 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1875 esac
1876
1877 cat >config.log <<_ACEOF
1878 This file contains any messages produced by compilers while
1879 running configure, to aid debugging if configure makes a mistake.
1880
1881 It was created by popt $as_me 1.19, which was
1882 generated by GNU Autoconf 2.71. Invocation command line was
1883
1884 $ $0$ac_configure_args_raw
1885
1886 _ACEOF
1887 exec 5>>config.log
1888 {
1889 cat <<_ASUNAME
1890 ## --------- ##
1891 ## Platform. ##
1892 ## --------- ##
1893
1894 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
1900 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902
1903 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1904 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1905 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1907 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1908 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1909 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1910
1911 _ASUNAME
1912
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916 IFS=$as_save_IFS
1917 case $as_dir in #(((
1918 '') as_dir=./ ;;
1919 */) ;;
1920 *) as_dir=$as_dir/ ;;
1921 esac
1922 printf "%s\n" "PATH: $as_dir"
1923 done
1924 IFS=$as_save_IFS
1925
1926 } >&5
1927
1928 cat >&5 <<_ACEOF
1929
1930
1931 ## ----------- ##
1932 ## Core tests. ##
1933 ## ----------- ##
1934
1935 _ACEOF
1936
1937
1938 # Keep a trace of the command line.
1939 # Strip out --no-create and --no-recursion so they do not pile up.
1940 # Strip out --silent because we don't want to record it for future runs.
1941 # Also quote any args containing shell meta-characters.
1942 # Make two passes to allow for proper duplicate-argument suppression.
1943 ac_configure_args=
1944 ac_configure_args0=
1945 ac_configure_args1=
1946 ac_must_keep_next=false
1947 for ac_pass in 1 2
1948 do
1949 for ac_arg
1950 do
1951 case $ac_arg in
1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954 | -silent | --silent | --silen | --sile | --sil)
1955 continue ;;
1956 *\'*)
1957 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 esac
1959 case $ac_pass in
1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961 2)
1962 as_fn_append ac_configure_args1 " '$ac_arg'"
1963 if test $ac_must_keep_next = true; then
1964 ac_must_keep_next=false # Got value, back to normal.
1965 else
1966 case $ac_arg in
1967 *=* | --config-cache | -C | -disable-* | --disable-* \
1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970 | -with-* | --with-* | -without-* | --without-* | --x)
1971 case "$ac_configure_args0 " in
1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 esac
1974 ;;
1975 -* ) ac_must_keep_next=true ;;
1976 esac
1977 fi
1978 as_fn_append ac_configure_args " '$ac_arg'"
1979 ;;
1980 esac
1981 done
1982 done
1983 { ac_configure_args0=; unset ac_configure_args0;}
1984 { ac_configure_args1=; unset ac_configure_args1;}
1985
1986 # When interrupted or exit'd, cleanup temporary files, and complete
1987 # config.log. We remove comments because anyway the quotes in there
1988 # would cause problems or look ugly.
1989 # WARNING: Use '\'' to represent an apostrophe within the trap.
1990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991 trap 'exit_status=$?
1992 # Sanitize IFS.
1993 IFS=" "" $as_nl"
1994 # Save into config.log some information that might help in debugging.
1995 {
1996 echo
1997
1998 printf "%s\n" "## ---------------- ##
1999 ## Cache variables. ##
2000 ## ---------------- ##"
2001 echo
2002 # The following way of writing the cache mishandles newlines in values,
2003 (
2004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005 eval ac_val=\$$ac_var
2006 case $ac_val in #(
2007 *${as_nl}*)
2008 case $ac_var in #(
2009 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011 esac
2012 case $ac_var in #(
2013 _ | IFS | as_nl) ;; #(
2014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015 *) { eval $ac_var=; unset $ac_var;} ;;
2016 esac ;;
2017 esac
2018 done
2019 (set) 2>&1 |
2020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021 *${as_nl}ac_space=\ *)
2022 sed -n \
2023 "s/'\''/'\''\\\\'\'''\''/g;
2024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025 ;; #(
2026 *)
2027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028 ;;
2029 esac |
2030 sort
2031 )
2032 echo
2033
2034 printf "%s\n" "## ----------------- ##
2035 ## Output variables. ##
2036 ## ----------------- ##"
2037 echo
2038 for ac_var in $ac_subst_vars
2039 do
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 printf "%s\n" "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2047
2048 if test -n "$ac_subst_files"; then
2049 printf "%s\n" "## ------------------- ##
2050 ## File substitutions. ##
2051 ## ------------------- ##"
2052 echo
2053 for ac_var in $ac_subst_files
2054 do
2055 eval ac_val=\$$ac_var
2056 case $ac_val in
2057 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058 esac
2059 printf "%s\n" "$ac_var='\''$ac_val'\''"
2060 done | sort
2061 echo
2062 fi
2063
2064 if test -s confdefs.h; then
2065 printf "%s\n" "## ----------- ##
2066 ## confdefs.h. ##
2067 ## ----------- ##"
2068 echo
2069 cat confdefs.h
2070 echo
2071 fi
2072 test "$ac_signal" != 0 &&
2073 printf "%s\n" "$as_me: caught signal $ac_signal"
2074 printf "%s\n" "$as_me: exit $exit_status"
2075 } >&5
2076 rm -f core *.core core.conftest.* &&
2077 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2078 exit $exit_status
2079 ' 0
2080 for ac_signal in 1 2 13 15; do
2081 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2082 done
2083 ac_signal=0
2084
2085 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2086 rm -f -r conftest* confdefs.h
2087
2088 printf "%s\n" "/* confdefs.h */" > confdefs.h
2089
2090 # Predefined preprocessor variables.
2091
2092 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2093
2094 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2095
2096 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2097
2098 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2099
2100 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2101
2102 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2103
2104
2105 # Let the site file select an alternate cache file if it wants to.
2106 # Prefer an explicitly selected file to automatically selected ones.
2107 if test -n "$CONFIG_SITE"; then
2108 ac_site_files="$CONFIG_SITE"
2109 elif test "x$prefix" != xNONE; then
2110 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2111 else
2112 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2113 fi
2114
2115 for ac_site_file in $ac_site_files
2116 do
2117 case $ac_site_file in #(
2118 */*) :
2119 ;; #(
2120 *) :
2121 ac_site_file=./$ac_site_file ;;
2122 esac
2123 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2125 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2126 sed 's/^/| /' "$ac_site_file" >&5
2127 . "$ac_site_file" \
2128 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2130 as_fn_error $? "failed to load site script $ac_site_file
2131 See \`config.log' for more details" "$LINENO" 5; }
2132 fi
2133 done
2134
2135 if test -r "$cache_file"; then
2136 # Some versions of bash will fail to source /dev/null (special files
2137 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2138 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2140 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2141 case $cache_file in
2142 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2143 *) . "./$cache_file";;
2144 esac
2145 fi
2146 else
2147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2148 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2149 >$cache_file
2150 fi
2151
2152 # Test code for whether the C compiler supports C89 (global declarations)
2153 ac_c_conftest_c89_globals='
2154 /* Does the compiler advertise C89 conformance?
2155 Do not test the value of __STDC__, because some compilers set it to 0
2156 while being otherwise adequately conformant. */
2157 #if !defined __STDC__
2158 # error "Compiler does not advertise C89 conformance"
2159 #endif
2160
2161 #include <stddef.h>
2162 #include <stdarg.h>
2163 struct stat;
2164 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2165 struct buf { int x; };
2166 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2167 static char *e (p, i)
2168 char **p;
2169 int i;
2170 {
2171 return p[i];
2172 }
2173 static char *f (char * (*g) (char **, int), char **p, ...)
2174 {
2175 char *s;
2176 va_list v;
2177 va_start (v,p);
2178 s = g (p, va_arg (v,int));
2179 va_end (v);
2180 return s;
2181 }
2182
2183 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2184 function prototypes and stuff, but not \xHH hex character constants.
2185 These do not provoke an error unfortunately, instead are silently treated
2186 as an "x". The following induces an error, until -std is added to get
2187 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2188 array size at least. It is necessary to write \x00 == 0 to get something
2189 that is true only with -std. */
2190 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2191
2192 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2193 inside strings and character constants. */
2194 #define FOO(x) '\''x'\''
2195 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2196
2197 int test (int i, double x);
2198 struct s1 {int (*f) (int a);};
2199 struct s2 {int (*f) (double a);};
2200 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2201 int, int);'
2202
2203 # Test code for whether the C compiler supports C89 (body of main).
2204 ac_c_conftest_c89_main='
2205 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2206 '
2207
2208 # Test code for whether the C compiler supports C99 (global declarations)
2209 ac_c_conftest_c99_globals='
2210 // Does the compiler advertise C99 conformance?
2211 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2212 # error "Compiler does not advertise C99 conformance"
2213 #endif
2214
2215 #include <stdbool.h>
2216 extern int puts (const char *);
2217 extern int printf (const char *, ...);
2218 extern int dprintf (int, const char *, ...);
2219 extern void *malloc (size_t);
2220
2221 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2222 // dprintf is used instead of fprintf to avoid needing to declare
2223 // FILE and stderr.
2224 #define debug(...) dprintf (2, __VA_ARGS__)
2225 #define showlist(...) puts (#__VA_ARGS__)
2226 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2227 static void
2228 test_varargs_macros (void)
2229 {
2230 int x = 1234;
2231 int y = 5678;
2232 debug ("Flag");
2233 debug ("X = %d\n", x);
2234 showlist (The first, second, and third items.);
2235 report (x>y, "x is %d but y is %d", x, y);
2236 }
2237
2238 // Check long long types.
2239 #define BIG64 18446744073709551615ull
2240 #define BIG32 4294967295ul
2241 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2242 #if !BIG_OK
2243 #error "your preprocessor is broken"
2244 #endif
2245 #if BIG_OK
2246 #else
2247 #error "your preprocessor is broken"
2248 #endif
2249 static long long int bignum = -9223372036854775807LL;
2250 static unsigned long long int ubignum = BIG64;
2251
2252 struct incomplete_array
2253 {
2254 int datasize;
2255 double data[];
2256 };
2257
2258 struct named_init {
2259 int number;
2260 const wchar_t *name;
2261 double average;
2262 };
2263
2264 typedef const char *ccp;
2265
2266 static inline int
2267 test_restrict (ccp restrict text)
2268 {
2269 // See if C++-style comments work.
2270 // Iterate through items via the restricted pointer.
2271 // Also check for declarations in for loops.
2272 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2273 continue;
2274 return 0;
2275 }
2276
2277 // Check varargs and va_copy.
2278 static bool
2279 test_varargs (const char *format, ...)
2280 {
2281 va_list args;
2282 va_start (args, format);
2283 va_list args_copy;
2284 va_copy (args_copy, args);
2285
2286 const char *str = "";
2287 int number = 0;
2288 float fnumber = 0;
2289
2290 while (*format)
2291 {
2292 switch (*format++)
2293 {
2294 case '\''s'\'': // string
2295 str = va_arg (args_copy, const char *);
2296 break;
2297 case '\''d'\'': // int
2298 number = va_arg (args_copy, int);
2299 break;
2300 case '\''f'\'': // float
2301 fnumber = va_arg (args_copy, double);
2302 break;
2303 default:
2304 break;
2305 }
2306 }
2307 va_end (args_copy);
2308 va_end (args);
2309
2310 return *str && number && fnumber;
2311 }
2312 '
2313
2314 # Test code for whether the C compiler supports C99 (body of main).
2315 ac_c_conftest_c99_main='
2316 // Check bool.
2317 _Bool success = false;
2318 success |= (argc != 0);
2319
2320 // Check restrict.
2321 if (test_restrict ("String literal") == 0)
2322 success = true;
2323 char *restrict newvar = "Another string";
2324
2325 // Check varargs.
2326 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2327 test_varargs_macros ();
2328
2329 // Check flexible array members.
2330 struct incomplete_array *ia =
2331 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2332 ia->datasize = 10;
2333 for (int i = 0; i < ia->datasize; ++i)
2334 ia->data[i] = i * 1.234;
2335
2336 // Check named initializers.
2337 struct named_init ni = {
2338 .number = 34,
2339 .name = L"Test wide string",
2340 .average = 543.34343,
2341 };
2342
2343 ni.number = 58;
2344
2345 int dynamic_array[ni.number];
2346 dynamic_array[0] = argv[0][0];
2347 dynamic_array[ni.number - 1] = 543;
2348
2349 // work around unused variable warnings
2350 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2351 || dynamic_array[ni.number - 1] != 543);
2352 '
2353
2354 # Test code for whether the C compiler supports C11 (global declarations)
2355 ac_c_conftest_c11_globals='
2356 // Does the compiler advertise C11 conformance?
2357 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2358 # error "Compiler does not advertise C11 conformance"
2359 #endif
2360
2361 // Check _Alignas.
2362 char _Alignas (double) aligned_as_double;
2363 char _Alignas (0) no_special_alignment;
2364 extern char aligned_as_int;
2365 char _Alignas (0) _Alignas (int) aligned_as_int;
2366
2367 // Check _Alignof.
2368 enum
2369 {
2370 int_alignment = _Alignof (int),
2371 int_array_alignment = _Alignof (int[100]),
2372 char_alignment = _Alignof (char)
2373 };
2374 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2375
2376 // Check _Noreturn.
2377 int _Noreturn does_not_return (void) { for (;;) continue; }
2378
2379 // Check _Static_assert.
2380 struct test_static_assert
2381 {
2382 int x;
2383 _Static_assert (sizeof (int) <= sizeof (long int),
2384 "_Static_assert does not work in struct");
2385 long int y;
2386 };
2387
2388 // Check UTF-8 literals.
2389 #define u8 syntax error!
2390 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2391
2392 // Check duplicate typedefs.
2393 typedef long *long_ptr;
2394 typedef long int *long_ptr;
2395 typedef long_ptr long_ptr;
2396
2397 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2398 struct anonymous
2399 {
2400 union {
2401 struct { int i; int j; };
2402 struct { int k; long int l; } w;
2403 };
2404 int m;
2405 } v1;
2406 '
2407
2408 # Test code for whether the C compiler supports C11 (body of main).
2409 ac_c_conftest_c11_main='
2410 _Static_assert ((offsetof (struct anonymous, i)
2411 == offsetof (struct anonymous, w.k)),
2412 "Anonymous union alignment botch");
2413 v1.i = 2;
2414 v1.w.k = 5;
2415 ok |= v1.i != 5;
2416 '
2417
2418 # Test code for whether the C compiler supports C11 (complete).
2419 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2420 ${ac_c_conftest_c99_globals}
2421 ${ac_c_conftest_c11_globals}
2422
2423 int
2424 main (int argc, char **argv)
2425 {
2426 int ok = 0;
2427 ${ac_c_conftest_c89_main}
2428 ${ac_c_conftest_c99_main}
2429 ${ac_c_conftest_c11_main}
2430 return ok;
2431 }
2432 "
2433
2434 # Test code for whether the C compiler supports C99 (complete).
2435 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2436 ${ac_c_conftest_c99_globals}
2437
2438 int
2439 main (int argc, char **argv)
2440 {
2441 int ok = 0;
2442 ${ac_c_conftest_c89_main}
2443 ${ac_c_conftest_c99_main}
2444 return ok;
2445 }
2446 "
2447
2448 # Test code for whether the C compiler supports C89 (complete).
2449 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2450
2451 int
2452 main (int argc, char **argv)
2453 {
2454 int ok = 0;
2455 ${ac_c_conftest_c89_main}
2456 return ok;
2457 }
2458 "
2459
2460 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2461 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2462 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2463 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2464 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2465 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2466 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2467 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2468 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2469 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2470 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2471 gt_needs="$gt_needs "
2472
2473 # Auxiliary files required by this configure script.
2474 ac_aux_files="config.rpath config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2475
2476 # Locations in which to look for auxiliary files.
2477 ac_aux_dir_candidates="${srcdir}/build-aux"
2478
2479 # Search for a directory containing all of the required auxiliary files,
2480 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2481 # If we don't find one directory that contains all the files we need,
2482 # we report the set of missing files from the *first* directory in
2483 # $ac_aux_dir_candidates and give up.
2484 ac_missing_aux_files=""
2485 ac_first_candidate=:
2486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 as_found=false
2489 for as_dir in $ac_aux_dir_candidates
2490 do
2491 IFS=$as_save_IFS
2492 case $as_dir in #(((
2493 '') as_dir=./ ;;
2494 */) ;;
2495 *) as_dir=$as_dir/ ;;
2496 esac
2497 as_found=:
2498
2499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2500 ac_aux_dir_found=yes
2501 ac_install_sh=
2502 for ac_aux in $ac_aux_files
2503 do
2504 # As a special case, if "install-sh" is required, that requirement
2505 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2506 # and $ac_install_sh is set appropriately for whichever one is found.
2507 if test x"$ac_aux" = x"install-sh"
2508 then
2509 if test -f "${as_dir}install-sh"; then
2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2511 ac_install_sh="${as_dir}install-sh -c"
2512 elif test -f "${as_dir}install.sh"; then
2513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2514 ac_install_sh="${as_dir}install.sh -c"
2515 elif test -f "${as_dir}shtool"; then
2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2517 ac_install_sh="${as_dir}shtool install -c"
2518 else
2519 ac_aux_dir_found=no
2520 if $ac_first_candidate; then
2521 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2522 else
2523 break
2524 fi
2525 fi
2526 else
2527 if test -f "${as_dir}${ac_aux}"; then
2528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2529 else
2530 ac_aux_dir_found=no
2531 if $ac_first_candidate; then
2532 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2533 else
2534 break
2535 fi
2536 fi
2537 fi
2538 done
2539 if test "$ac_aux_dir_found" = yes; then
2540 ac_aux_dir="$as_dir"
2541 break
2542 fi
2543 ac_first_candidate=false
2544
2545 as_found=false
2546 done
2547 IFS=$as_save_IFS
2548 if $as_found
2549 then :
2550
2551 else $as_nop
2552 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2553 fi
2554
2555
2556 # These three variables are undocumented and unsupported,
2557 # and are intended to be withdrawn in a future Autoconf release.
2558 # They can cause serious problems if a builder's source tree is in a directory
2559 # whose full name contains unusual characters.
2560 if test -f "${ac_aux_dir}config.guess"; then
2561 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2562 fi
2563 if test -f "${ac_aux_dir}config.sub"; then
2564 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2565 fi
2566 if test -f "$ac_aux_dir/configure"; then
2567 ac_configure="$SHELL ${ac_aux_dir}configure"
2568 fi
2569
2570 # Check that the precious variables saved in the cache have kept the same
2571 # value.
2572 ac_cache_corrupted=false
2573 for ac_var in $ac_precious_vars; do
2574 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2575 eval ac_new_set=\$ac_env_${ac_var}_set
2576 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2577 eval ac_new_val=\$ac_env_${ac_var}_value
2578 case $ac_old_set,$ac_new_set in
2579 set,)
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2581 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2582 ac_cache_corrupted=: ;;
2583 ,set)
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2585 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2586 ac_cache_corrupted=: ;;
2587 ,);;
2588 *)
2589 if test "x$ac_old_val" != "x$ac_new_val"; then
2590 # differences in whitespace do not lead to failure.
2591 ac_old_val_w=`echo x $ac_old_val`
2592 ac_new_val_w=`echo x $ac_new_val`
2593 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2595 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2596 ac_cache_corrupted=:
2597 else
2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2599 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2600 eval $ac_var=\$ac_old_val
2601 fi
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2603 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2605 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2606 fi;;
2607 esac
2608 # Pass precious variables to config.status.
2609 if test "$ac_new_set" = set; then
2610 case $ac_new_val in
2611 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2612 *) ac_arg=$ac_var=$ac_new_val ;;
2613 esac
2614 case " $ac_configure_args " in
2615 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2616 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2617 esac
2618 fi
2619 done
2620 if $ac_cache_corrupted; then
2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2624 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2625 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2626 and start over" "$LINENO" 5
2627 fi
2628 ## -------------------- ##
2629 ## Main body of script. ##
2630 ## -------------------- ##
2631
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637
2638
2639
2640 ac_config_headers="$ac_config_headers config.h"
2641
2642
2643
2644
2645 am__api_version='1.16'
2646
2647
2648
2649 # Find a good install program. We prefer a C program (faster),
2650 # so one script is as good as another. But avoid the broken or
2651 # incompatible versions:
2652 # SysV /etc/install, /usr/sbin/install
2653 # SunOS /usr/etc/install
2654 # IRIX /sbin/install
2655 # AIX /bin/install
2656 # AmigaOS /C/install, which installs bootblocks on floppy discs
2657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2660 # OS/2's system install, which has a completely different semantic
2661 # ./install, which can be erroneously created by make from ./install.sh.
2662 # Reject install programs that cannot install multiple files.
2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2664 printf %s "checking for a BSD-compatible install... " >&6; }
2665 if test -z "$INSTALL"; then
2666 if test ${ac_cv_path_install+y}
2667 then :
2668 printf %s "(cached) " >&6
2669 else $as_nop
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673 IFS=$as_save_IFS
2674 case $as_dir in #(((
2675 '') as_dir=./ ;;
2676 */) ;;
2677 *) as_dir=$as_dir/ ;;
2678 esac
2679 # Account for fact that we put trailing slashes in our PATH walk.
2680 case $as_dir in #((
2681 ./ | /[cC]/* | \
2682 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2683 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2684 /usr/ucb/* ) ;;
2685 *)
2686 # OSF1 and SCO ODT 3.0 have their own names for install.
2687 # Don't use installbsd from OSF since it installs stuff as root
2688 # by default.
2689 for ac_prog in ginstall scoinst install; do
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2692 if test $ac_prog = install &&
2693 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2694 # AIX install. It has an incompatible calling convention.
2695 :
2696 elif test $ac_prog = install &&
2697 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2698 # program-specific install script used by HP pwplus--don't use.
2699 :
2700 else
2701 rm -rf conftest.one conftest.two conftest.dir
2702 echo one > conftest.one
2703 echo two > conftest.two
2704 mkdir conftest.dir
2705 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2706 test -s conftest.one && test -s conftest.two &&
2707 test -s conftest.dir/conftest.one &&
2708 test -s conftest.dir/conftest.two
2709 then
2710 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2711 break 3
2712 fi
2713 fi
2714 fi
2715 done
2716 done
2717 ;;
2718 esac
2719
2720 done
2721 IFS=$as_save_IFS
2722
2723 rm -rf conftest.one conftest.two conftest.dir
2724
2725 fi
2726 if test ${ac_cv_path_install+y}; then
2727 INSTALL=$ac_cv_path_install
2728 else
2729 # As a last resort, use the slow shell script. Don't cache a
2730 # value for INSTALL within a source directory, because that will
2731 # break other packages using the cache if that directory is
2732 # removed, or if the value is a relative name.
2733 INSTALL=$ac_install_sh
2734 fi
2735 fi
2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2737 printf "%s\n" "$INSTALL" >&6; }
2738
2739 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2740 # It thinks the first close brace ends the variable substitution.
2741 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2742
2743 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2744
2745 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2746
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2748 printf %s "checking whether build environment is sane... " >&6; }
2749 # Reject unsafe characters in $srcdir or the absolute working directory
2750 # name. Accept space and tab only in the latter.
2751 am_lf='
2752 '
2753 case `pwd` in
2754 *[\\\"\#\$\&\'\`$am_lf]*)
2755 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2756 esac
2757 case $srcdir in
2758 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2759 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2760 esac
2761
2762 # Do 'set' in a subshell so we don't clobber the current shell's
2763 # arguments. Must try -L first in case configure is actually a
2764 # symlink; some systems play weird games with the mod time of symlinks
2765 # (eg FreeBSD returns the mod time of the symlink's containing
2766 # directory).
2767 if (
2768 am_has_slept=no
2769 for am_try in 1 2; do
2770 echo "timestamp, slept: $am_has_slept" > conftest.file
2771 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2772 if test "$*" = "X"; then
2773 # -L didn't work.
2774 set X `ls -t "$srcdir/configure" conftest.file`
2775 fi
2776 if test "$*" != "X $srcdir/configure conftest.file" \
2777 && test "$*" != "X conftest.file $srcdir/configure"; then
2778
2779 # If neither matched, then we have a broken ls. This can happen
2780 # if, for instance, CONFIG_SHELL is bash and it inherits a
2781 # broken ls alias from the environment. This has actually
2782 # happened. Such a system could not be considered "sane".
2783 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2784 alias in your environment" "$LINENO" 5
2785 fi
2786 if test "$2" = conftest.file || test $am_try -eq 2; then
2787 break
2788 fi
2789 # Just in case.
2790 sleep 1
2791 am_has_slept=yes
2792 done
2793 test "$2" = conftest.file
2794 )
2795 then
2796 # Ok.
2797 :
2798 else
2799 as_fn_error $? "newly created file is older than distributed files!
2800 Check your system clock" "$LINENO" 5
2801 fi
2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2803 printf "%s\n" "yes" >&6; }
2804 # If we didn't sleep, we still need to ensure time stamps of config.status and
2805 # generated files are strictly newer.
2806 am_sleep_pid=
2807 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2808 ( sleep 1 ) &
2809 am_sleep_pid=$!
2810 fi
2811
2812 rm -f conftest.file
2813
2814 test "$program_prefix" != NONE &&
2815 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2816 # Use a double $ so make ignores it.
2817 test "$program_suffix" != NONE &&
2818 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2819 # Double any \ or $.
2820 # By default was `s,x,x', remove it if useless.
2821 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2822 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2823
2824
2825 # Expand $ac_aux_dir to an absolute path.
2826 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2827
2828
2829 if test x"${MISSING+set}" != xset; then
2830 MISSING="\${SHELL} '$am_aux_dir/missing'"
2831 fi
2832 # Use eval to expand $SHELL
2833 if eval "$MISSING --is-lightweight"; then
2834 am_missing_run="$MISSING "
2835 else
2836 am_missing_run=
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2838 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2839 fi
2840
2841 if test x"${install_sh+set}" != xset; then
2842 case $am_aux_dir in
2843 *\ * | *\ *)
2844 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2845 *)
2846 install_sh="\${SHELL} $am_aux_dir/install-sh"
2847 esac
2848 fi
2849
2850 # Installed binaries are usually stripped using 'strip' when the user
2851 # run "make install-strip". However 'strip' might not be the right
2852 # tool to use in cross-compilation environments, therefore Automake
2853 # will honor the 'STRIP' environment variable to overrule this program.
2854 if test "$cross_compiling" != no; then
2855 if test -n "$ac_tool_prefix"; then
2856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2857 set dummy ${ac_tool_prefix}strip; ac_word=$2
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 printf %s "checking for $ac_word... " >&6; }
2860 if test ${ac_cv_prog_STRIP+y}
2861 then :
2862 printf %s "(cached) " >&6
2863 else $as_nop
2864 if test -n "$STRIP"; then
2865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870 IFS=$as_save_IFS
2871 case $as_dir in #(((
2872 '') as_dir=./ ;;
2873 */) ;;
2874 *) as_dir=$as_dir/ ;;
2875 esac
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 STRIP=$ac_cv_prog_STRIP
2889 if test -n "$STRIP"; then
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2891 printf "%s\n" "$STRIP" >&6; }
2892 else
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 printf "%s\n" "no" >&6; }
2895 fi
2896
2897
2898 fi
2899 if test -z "$ac_cv_prog_STRIP"; then
2900 ac_ct_STRIP=$STRIP
2901 # Extract the first word of "strip", so it can be a program name with args.
2902 set dummy strip; ac_word=$2
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 printf %s "checking for $ac_word... " >&6; }
2905 if test ${ac_cv_prog_ac_ct_STRIP+y}
2906 then :
2907 printf %s "(cached) " >&6
2908 else $as_nop
2909 if test -n "$ac_ct_STRIP"; then
2910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915 IFS=$as_save_IFS
2916 case $as_dir in #(((
2917 '') as_dir=./ ;;
2918 */) ;;
2919 *) as_dir=$as_dir/ ;;
2920 esac
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_ac_ct_STRIP="strip"
2924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2934 if test -n "$ac_ct_STRIP"; then
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2936 printf "%s\n" "$ac_ct_STRIP" >&6; }
2937 else
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 printf "%s\n" "no" >&6; }
2940 fi
2941
2942 if test "x$ac_ct_STRIP" = x; then
2943 STRIP=":"
2944 else
2945 case $cross_compiling:$ac_tool_warned in
2946 yes:)
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2948 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2949 ac_tool_warned=yes ;;
2950 esac
2951 STRIP=$ac_ct_STRIP
2952 fi
2953 else
2954 STRIP="$ac_cv_prog_STRIP"
2955 fi
2956
2957 fi
2958 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2959
2960
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2962 printf %s "checking for a race-free mkdir -p... " >&6; }
2963 if test -z "$MKDIR_P"; then
2964 if test ${ac_cv_path_mkdir+y}
2965 then :
2966 printf %s "(cached) " >&6
2967 else $as_nop
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2970 do
2971 IFS=$as_save_IFS
2972 case $as_dir in #(((
2973 '') as_dir=./ ;;
2974 */) ;;
2975 *) as_dir=$as_dir/ ;;
2976 esac
2977 for ac_prog in mkdir gmkdir; do
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2980 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2981 'mkdir ('*'coreutils) '* | \
2982 'BusyBox '* | \
2983 'mkdir (fileutils) '4.1*)
2984 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2985 break 3;;
2986 esac
2987 done
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993
2994 test -d ./--version && rmdir ./--version
2995 if test ${ac_cv_path_mkdir+y}; then
2996 MKDIR_P="$ac_cv_path_mkdir -p"
2997 else
2998 # As a last resort, use the slow shell script. Don't cache a
2999 # value for MKDIR_P within a source directory, because that will
3000 # break other packages using the cache if that directory is
3001 # removed, or if the value is a relative name.
3002 MKDIR_P="$ac_install_sh -d"
3003 fi
3004 fi
3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3006 printf "%s\n" "$MKDIR_P" >&6; }
3007
3008 for ac_prog in gawk mawk nawk awk
3009 do
3010 # Extract the first word of "$ac_prog", so it can be a program name with args.
3011 set dummy $ac_prog; ac_word=$2
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 printf %s "checking for $ac_word... " >&6; }
3014 if test ${ac_cv_prog_AWK+y}
3015 then :
3016 printf %s "(cached) " >&6
3017 else $as_nop
3018 if test -n "$AWK"; then
3019 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024 IFS=$as_save_IFS
3025 case $as_dir in #(((
3026 '') as_dir=./ ;;
3027 */) ;;
3028 *) as_dir=$as_dir/ ;;
3029 esac
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3032 ac_cv_prog_AWK="$ac_prog"
3033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3034 break 2
3035 fi
3036 done
3037 done
3038 IFS=$as_save_IFS
3039
3040 fi
3041 fi
3042 AWK=$ac_cv_prog_AWK
3043 if test -n "$AWK"; then
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3045 printf "%s\n" "$AWK" >&6; }
3046 else
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 printf "%s\n" "no" >&6; }
3049 fi
3050
3051
3052 test -n "$AWK" && break
3053 done
3054
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3056 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3057 set x ${MAKE-make}
3058 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3059 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3060 then :
3061 printf %s "(cached) " >&6
3062 else $as_nop
3063 cat >conftest.make <<\_ACEOF
3064 SHELL = /bin/sh
3065 all:
3066 @echo '@@@%%%=$(MAKE)=@@@%%%'
3067 _ACEOF
3068 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3069 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3070 *@@@%%%=?*=@@@%%%*)
3071 eval ac_cv_prog_make_${ac_make}_set=yes;;
3072 *)
3073 eval ac_cv_prog_make_${ac_make}_set=no;;
3074 esac
3075 rm -f conftest.make
3076 fi
3077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3079 printf "%s\n" "yes" >&6; }
3080 SET_MAKE=
3081 else
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 printf "%s\n" "no" >&6; }
3084 SET_MAKE="MAKE=${MAKE-make}"
3085 fi
3086
3087 rm -rf .tst 2>/dev/null
3088 mkdir .tst 2>/dev/null
3089 if test -d .tst; then
3090 am__leading_dot=.
3091 else
3092 am__leading_dot=_
3093 fi
3094 rmdir .tst 2>/dev/null
3095
3096 # Check whether --enable-silent-rules was given.
3097 if test ${enable_silent_rules+y}
3098 then :
3099 enableval=$enable_silent_rules;
3100 fi
3101
3102 case $enable_silent_rules in # (((
3103 yes) AM_DEFAULT_VERBOSITY=0;;
3104 no) AM_DEFAULT_VERBOSITY=1;;
3105 *) AM_DEFAULT_VERBOSITY=1;;
3106 esac
3107 am_make=${MAKE-make}
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3109 printf %s "checking whether $am_make supports nested variables... " >&6; }
3110 if test ${am_cv_make_support_nested_variables+y}
3111 then :
3112 printf %s "(cached) " >&6
3113 else $as_nop
3114 if printf "%s\n" 'TRUE=$(BAR$(V))
3115 BAR0=false
3116 BAR1=true
3117 V=1
3118 am__doit:
3119 @$(TRUE)
3120 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3121 am_cv_make_support_nested_variables=yes
3122 else
3123 am_cv_make_support_nested_variables=no
3124 fi
3125 fi
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3127 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3128 if test $am_cv_make_support_nested_variables = yes; then
3129 AM_V='$(V)'
3130 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3131 else
3132 AM_V=$AM_DEFAULT_VERBOSITY
3133 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3134 fi
3135 AM_BACKSLASH='\'
3136
3137 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3138 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3139 # is not polluted with repeated "-I."
3140 am__isrc=' -I$(srcdir)'
3141 # test to see if srcdir already configured
3142 if test -f $srcdir/config.status; then
3143 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3144 fi
3145 fi
3146
3147 # test whether we have cygpath
3148 if test -z "$CYGPATH_W"; then
3149 if (cygpath --version) >/dev/null 2>/dev/null; then
3150 CYGPATH_W='cygpath -w'
3151 else
3152 CYGPATH_W=echo
3153 fi
3154 fi
3155
3156
3157 # Define the identity of the package.
3158 PACKAGE='popt'
3159 VERSION='1.19'
3160
3161
3162 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3163
3164
3165 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3166
3167 # Some tools Automake needs.
3168
3169 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3170
3171
3172 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3173
3174
3175 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3176
3177
3178 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3179
3180
3181 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3182
3183 # For better backward compatibility. To be removed once Automake 1.9.x
3184 # dies out for good. For more background, see:
3185 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3186 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3187 mkdir_p='$(MKDIR_P)'
3188
3189 # We need awk for the "check" target (and possibly the TAP driver). The
3190 # system "awk" is bad on some platforms.
3191 # Always define AMTAR for backward compatibility. Yes, it's still used
3192 # in the wild :-( We should find a proper way to deprecate it ...
3193 AMTAR='$${TAR-tar}'
3194
3195
3196 # We'll loop over all known methods to create a tar archive until one works.
3197 _am_tools='gnutar pax cpio none'
3198
3199 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3200
3201
3202
3203
3204
3205 # Variables for tags utilities; see am/tags.am
3206 if test -z "$CTAGS"; then
3207 CTAGS=ctags
3208 fi
3209
3210 if test -z "$ETAGS"; then
3211 ETAGS=etags
3212 fi
3213
3214 if test -z "$CSCOPE"; then
3215 CSCOPE=cscope
3216 fi
3217
3218
3219
3220 # POSIX will say in a future version that running "rm -f" with no argument
3221 # is OK; and we want to be able to make that assumption in our Makefile
3222 # recipes. So use an aggressive probe to check that the usage we want is
3223 # actually supported "in the wild" to an acceptable degree.
3224 # See automake bug#10828.
3225 # To make any issue more visible, cause the running configure to be aborted
3226 # by default if the 'rm' program in use doesn't match our expectations; the
3227 # user can still override this though.
3228 if rm -f && rm -fr && rm -rf; then : OK; else
3229 cat >&2 <<'END'
3230 Oops!
3231
3232 Your 'rm' program seems unable to run without file operands specified
3233 on the command line, even when the '-f' option is present. This is contrary
3234 to the behaviour of most rm programs out there, and not conforming with
3235 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3236
3237 Please tell [email protected] about your system, including the value
3238 of your $PATH and any error possibly output before this message. This
3239 can help us improve future automake versions.
3240
3241 END
3242 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3243 echo 'Configuration will proceed anyway, since you have set the' >&2
3244 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3245 echo >&2
3246 else
3247 cat >&2 <<'END'
3248 Aborting the configuration process, to ensure you take notice of the issue.
3249
3250 You can download and install GNU coreutils to get an 'rm' implementation
3251 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3252
3253 If you want to complete the configuration process using your problematic
3254 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3255 to "yes", and re-run configure.
3256
3257 END
3258 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3259 fi
3260 fi
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273 ac_ext=c
3274 ac_cpp='$CPP $CPPFLAGS'
3275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278 if test -n "$ac_tool_prefix"; then
3279 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3280 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 printf %s "checking for $ac_word... " >&6; }
3283 if test ${ac_cv_prog_CC+y}
3284 then :
3285 printf %s "(cached) " >&6
3286 else $as_nop
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC="$CC" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293 IFS=$as_save_IFS
3294 case $as_dir in #(((
3295 '') as_dir=./ ;;
3296 */) ;;
3297 *) as_dir=$as_dir/ ;;
3298 esac
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 CC=$ac_cv_prog_CC
3312 if test -n "$CC"; then
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3314 printf "%s\n" "$CC" >&6; }
3315 else
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 printf "%s\n" "no" >&6; }
3318 fi
3319
3320
3321 fi
3322 if test -z "$ac_cv_prog_CC"; then
3323 ac_ct_CC=$CC
3324 # Extract the first word of "gcc", so it can be a program name with args.
3325 set dummy gcc; ac_word=$2
3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 printf %s "checking for $ac_word... " >&6; }
3328 if test ${ac_cv_prog_ac_ct_CC+y}
3329 then :
3330 printf %s "(cached) " >&6
3331 else $as_nop
3332 if test -n "$ac_ct_CC"; then
3333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338 IFS=$as_save_IFS
3339 case $as_dir in #(((
3340 '') as_dir=./ ;;
3341 */) ;;
3342 *) as_dir=$as_dir/ ;;
3343 esac
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_ac_ct_CC="gcc"
3347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350 done
3351 done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359 printf "%s\n" "$ac_ct_CC" >&6; }
3360 else
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 printf "%s\n" "no" >&6; }
3363 fi
3364
3365 if test "x$ac_ct_CC" = x; then
3366 CC=""
3367 else
3368 case $cross_compiling:$ac_tool_warned in
3369 yes:)
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3372 ac_tool_warned=yes ;;
3373 esac
3374 CC=$ac_ct_CC
3375 fi
3376 else
3377 CC="$ac_cv_prog_CC"
3378 fi
3379
3380 if test -z "$CC"; then
3381 if test -n "$ac_tool_prefix"; then
3382 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3383 set dummy ${ac_tool_prefix}cc; ac_word=$2
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 printf %s "checking for $ac_word... " >&6; }
3386 if test ${ac_cv_prog_CC+y}
3387 then :
3388 printf %s "(cached) " >&6
3389 else $as_nop
3390 if test -n "$CC"; then
3391 ac_cv_prog_CC="$CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396 IFS=$as_save_IFS
3397 case $as_dir in #(((
3398 '') as_dir=./ ;;
3399 */) ;;
3400 *) as_dir=$as_dir/ ;;
3401 esac
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3404 ac_cv_prog_CC="${ac_tool_prefix}cc"
3405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3406 break 2
3407 fi
3408 done
3409 done
3410 IFS=$as_save_IFS
3411
3412 fi
3413 fi
3414 CC=$ac_cv_prog_CC
3415 if test -n "$CC"; then
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417 printf "%s\n" "$CC" >&6; }
3418 else
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 printf "%s\n" "no" >&6; }
3421 fi
3422
3423
3424 fi
3425 fi
3426 if test -z "$CC"; then
3427 # Extract the first word of "cc", so it can be a program name with args.
3428 set dummy cc; ac_word=$2
3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 printf %s "checking for $ac_word... " >&6; }
3431 if test ${ac_cv_prog_CC+y}
3432 then :
3433 printf %s "(cached) " >&6
3434 else $as_nop
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC="$CC" # Let the user override the test.
3437 else
3438 ac_prog_rejected=no
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442 IFS=$as_save_IFS
3443 case $as_dir in #(((
3444 '') as_dir=./ ;;
3445 */) ;;
3446 *) as_dir=$as_dir/ ;;
3447 esac
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3450 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3452 continue
3453 fi
3454 ac_cv_prog_CC="cc"
3455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 if test $ac_prog_rejected = yes; then
3463 # We found a bogon in the path, so make sure we never use it.
3464 set dummy $ac_cv_prog_CC
3465 shift
3466 if test $# != 0; then
3467 # We chose a different compiler from the bogus one.
3468 # However, it has the same basename, so the bogon will be chosen
3469 # first if we set CC to just the basename; use the full file name.
3470 shift
3471 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3472 fi
3473 fi
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 printf "%s\n" "$CC" >&6; }
3480 else
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 printf "%s\n" "no" >&6; }
3483 fi
3484
3485
3486 fi
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog in cl.exe
3490 do
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 printf %s "checking for $ac_word... " >&6; }
3495 if test ${ac_cv_prog_CC+y}
3496 then :
3497 printf %s "(cached) " >&6
3498 else $as_nop
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 case $as_dir in #(((
3507 '') as_dir=./ ;;
3508 */) ;;
3509 *) as_dir=$as_dir/ ;;
3510 esac
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517 done
3518 done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 CC=$ac_cv_prog_CC
3524 if test -n "$CC"; then
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 printf "%s\n" "$CC" >&6; }
3527 else
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 printf "%s\n" "no" >&6; }
3530 fi
3531
3532
3533 test -n "$CC" && break
3534 done
3535 fi
3536 if test -z "$CC"; then
3537 ac_ct_CC=$CC
3538 for ac_prog in cl.exe
3539 do
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 printf %s "checking for $ac_word... " >&6; }
3544 if test ${ac_cv_prog_ac_ct_CC+y}
3545 then :
3546 printf %s "(cached) " >&6
3547 else $as_nop
3548 if test -n "$ac_ct_CC"; then
3549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 case $as_dir in #(((
3556 '') as_dir=./ ;;
3557 */) ;;
3558 *) as_dir=$as_dir/ ;;
3559 esac
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_ac_ct_CC="$ac_prog"
3563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3573 if test -n "$ac_ct_CC"; then
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3575 printf "%s\n" "$ac_ct_CC" >&6; }
3576 else
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 printf "%s\n" "no" >&6; }
3579 fi
3580
3581
3582 test -n "$ac_ct_CC" && break
3583 done
3584
3585 if test "x$ac_ct_CC" = x; then
3586 CC=""
3587 else
3588 case $cross_compiling:$ac_tool_warned in
3589 yes:)
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned=yes ;;
3593 esac
3594 CC=$ac_ct_CC
3595 fi
3596 fi
3597
3598 fi
3599 if test -z "$CC"; then
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}clang; ac_word=$2
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 printf %s "checking for $ac_word... " >&6; }
3605 if test ${ac_cv_prog_CC+y}
3606 then :
3607 printf %s "(cached) " >&6
3608 else $as_nop
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615 IFS=$as_save_IFS
3616 case $as_dir in #(((
3617 '') as_dir=./ ;;
3618 */) ;;
3619 *) as_dir=$as_dir/ ;;
3620 esac
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_CC="${ac_tool_prefix}clang"
3624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627 done
3628 done
3629 IFS=$as_save_IFS
3630
3631 fi
3632 fi
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 printf "%s\n" "$CC" >&6; }
3637 else
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 printf "%s\n" "no" >&6; }
3640 fi
3641
3642
3643 fi
3644 if test -z "$ac_cv_prog_CC"; then
3645 ac_ct_CC=$CC
3646 # Extract the first word of "clang", so it can be a program name with args.
3647 set dummy clang; ac_word=$2
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 printf %s "checking for $ac_word... " >&6; }
3650 if test ${ac_cv_prog_ac_ct_CC+y}
3651 then :
3652 printf %s "(cached) " >&6
3653 else $as_nop
3654 if test -n "$ac_ct_CC"; then
3655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660 IFS=$as_save_IFS
3661 case $as_dir in #(((
3662 '') as_dir=./ ;;
3663 */) ;;
3664 *) as_dir=$as_dir/ ;;
3665 esac
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_ac_ct_CC="clang"
3669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672 done
3673 done
3674 IFS=$as_save_IFS
3675
3676 fi
3677 fi
3678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3679 if test -n "$ac_ct_CC"; then
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3681 printf "%s\n" "$ac_ct_CC" >&6; }
3682 else
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 printf "%s\n" "no" >&6; }
3685 fi
3686
3687 if test "x$ac_ct_CC" = x; then
3688 CC=""
3689 else
3690 case $cross_compiling:$ac_tool_warned in
3691 yes:)
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3693 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3694 ac_tool_warned=yes ;;
3695 esac
3696 CC=$ac_ct_CC
3697 fi
3698 else
3699 CC="$ac_cv_prog_CC"
3700 fi
3701
3702 fi
3703
3704
3705 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error $? "no acceptable C compiler found in \$PATH
3708 See \`config.log' for more details" "$LINENO" 5; }
3709
3710 # Provide some information about the compiler.
3711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3712 set X $ac_compile
3713 ac_compiler=$2
3714 for ac_option in --version -v -V -qversion -version; do
3715 { { ac_try="$ac_compiler $ac_option >&5"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 printf "%s\n" "$ac_try_echo"; } >&5
3722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3723 ac_status=$?
3724 if test -s conftest.err; then
3725 sed '10a\
3726 ... rest of stderr output deleted ...
3727 10q' conftest.err >conftest.er1
3728 cat conftest.er1 >&5
3729 fi
3730 rm -f conftest.er1 conftest.err
3731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }
3733 done
3734
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737
3738 int
3739 main (void)
3740 {
3741
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 ac_clean_files_save=$ac_clean_files
3747 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3748 # Try to create an executable without -o first, disregard a.out.
3749 # It will help us diagnose broken compilers, and finding out an intuition
3750 # of exeext.
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3752 printf %s "checking whether the C compiler works... " >&6; }
3753 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3754
3755 # The possible output files:
3756 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3757
3758 ac_rmfiles=
3759 for ac_file in $ac_files
3760 do
3761 case $ac_file in
3762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3764 esac
3765 done
3766 rm -f $ac_rmfiles
3767
3768 if { { ac_try="$ac_link_default"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774 printf "%s\n" "$ac_try_echo"; } >&5
3775 (eval "$ac_link_default") 2>&5
3776 ac_status=$?
3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3779 then :
3780 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3781 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3782 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3783 # so that the user can short-circuit this test for compilers unknown to
3784 # Autoconf.
3785 for ac_file in $ac_files ''
3786 do
3787 test -f "$ac_file" || continue
3788 case $ac_file in
3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3790 ;;
3791 [ab].out )
3792 # We found the default executable, but exeext='' is most
3793 # certainly right.
3794 break;;
3795 *.* )
3796 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3797 then :; else
3798 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3799 fi
3800 # We set ac_cv_exeext here because the later test for it is not
3801 # safe: cross compilers may not add the suffix if given an `-o'
3802 # argument, so we may need to know it at that point already.
3803 # Even if this section looks crufty: it has the advantage of
3804 # actually working.
3805 break;;
3806 * )
3807 break;;
3808 esac
3809 done
3810 test "$ac_cv_exeext" = no && ac_cv_exeext=
3811
3812 else $as_nop
3813 ac_file=''
3814 fi
3815 if test -z "$ac_file"
3816 then :
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 printf "%s\n" "no" >&6; }
3819 printf "%s\n" "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3824 as_fn_error 77 "C compiler cannot create executables
3825 See \`config.log' for more details" "$LINENO" 5; }
3826 else $as_nop
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3828 printf "%s\n" "yes" >&6; }
3829 fi
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3831 printf %s "checking for C compiler default output file name... " >&6; }
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3833 printf "%s\n" "$ac_file" >&6; }
3834 ac_exeext=$ac_cv_exeext
3835
3836 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3837 ac_clean_files=$ac_clean_files_save
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3839 printf %s "checking for suffix of executables... " >&6; }
3840 if { { ac_try="$ac_link"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 printf "%s\n" "$ac_try_echo"; } >&5
3847 (eval "$ac_link") 2>&5
3848 ac_status=$?
3849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }
3851 then :
3852 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3853 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3854 # work properly (i.e., refer to `conftest.exe'), while it won't with
3855 # `rm'.
3856 for ac_file in conftest.exe conftest conftest.*; do
3857 test -f "$ac_file" || continue
3858 case $ac_file in
3859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3861 break;;
3862 * ) break;;
3863 esac
3864 done
3865 else $as_nop
3866 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3869 See \`config.log' for more details" "$LINENO" 5; }
3870 fi
3871 rm -f conftest conftest$ac_cv_exeext
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3873 printf "%s\n" "$ac_cv_exeext" >&6; }
3874
3875 rm -f conftest.$ac_ext
3876 EXEEXT=$ac_cv_exeext
3877 ac_exeext=$EXEEXT
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880 #include <stdio.h>
3881 int
3882 main (void)
3883 {
3884 FILE *f = fopen ("conftest.out", "w");
3885 return ferror (f) || fclose (f) != 0;
3886
3887 ;
3888 return 0;
3889 }
3890 _ACEOF
3891 ac_clean_files="$ac_clean_files conftest.out"
3892 # Check that the compiler produces executables we can run. If not, either
3893 # the compiler is broken, or we cross compile.
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3895 printf %s "checking whether we are cross compiling... " >&6; }
3896 if test "$cross_compiling" != yes; then
3897 { { ac_try="$ac_link"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 printf "%s\n" "$ac_try_echo"; } >&5
3904 (eval "$ac_link") 2>&5
3905 ac_status=$?
3906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }
3908 if { ac_try='./conftest$ac_cv_exeext'
3909 { { case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 printf "%s\n" "$ac_try_echo"; } >&5
3915 (eval "$ac_try") 2>&5
3916 ac_status=$?
3917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }; }; then
3919 cross_compiling=no
3920 else
3921 if test "$cross_compiling" = maybe; then
3922 cross_compiling=yes
3923 else
3924 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3926 as_fn_error 77 "cannot run C compiled programs.
3927 If you meant to cross compile, use \`--host'.
3928 See \`config.log' for more details" "$LINENO" 5; }
3929 fi
3930 fi
3931 fi
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3933 printf "%s\n" "$cross_compiling" >&6; }
3934
3935 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3936 ac_clean_files=$ac_clean_files_save
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3938 printf %s "checking for suffix of object files... " >&6; }
3939 if test ${ac_cv_objext+y}
3940 then :
3941 printf %s "(cached) " >&6
3942 else $as_nop
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945
3946 int
3947 main (void)
3948 {
3949
3950 ;
3951 return 0;
3952 }
3953 _ACEOF
3954 rm -f conftest.o conftest.obj
3955 if { { ac_try="$ac_compile"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 printf "%s\n" "$ac_try_echo"; } >&5
3962 (eval "$ac_compile") 2>&5
3963 ac_status=$?
3964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965 test $ac_status = 0; }
3966 then :
3967 for ac_file in conftest.o conftest.obj conftest.*; do
3968 test -f "$ac_file" || continue;
3969 case $ac_file in
3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3972 break;;
3973 esac
3974 done
3975 else $as_nop
3976 printf "%s\n" "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error $? "cannot compute suffix of object files: cannot compile
3982 See \`config.log' for more details" "$LINENO" 5; }
3983 fi
3984 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3985 fi
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3987 printf "%s\n" "$ac_cv_objext" >&6; }
3988 OBJEXT=$ac_cv_objext
3989 ac_objext=$OBJEXT
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3991 printf %s "checking whether the compiler supports GNU C... " >&6; }
3992 if test ${ac_cv_c_compiler_gnu+y}
3993 then :
3994 printf %s "(cached) " >&6
3995 else $as_nop
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998
3999 int
4000 main (void)
4001 {
4002 #ifndef __GNUC__
4003 choke me
4004 #endif
4005
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 if ac_fn_c_try_compile "$LINENO"
4011 then :
4012 ac_compiler_gnu=yes
4013 else $as_nop
4014 ac_compiler_gnu=no
4015 fi
4016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4018
4019 fi
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4021 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023
4024 if test $ac_compiler_gnu = yes; then
4025 GCC=yes
4026 else
4027 GCC=
4028 fi
4029 ac_test_CFLAGS=${CFLAGS+y}
4030 ac_save_CFLAGS=$CFLAGS
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4032 printf %s "checking whether $CC accepts -g... " >&6; }
4033 if test ${ac_cv_prog_cc_g+y}
4034 then :
4035 printf %s "(cached) " >&6
4036 else $as_nop
4037 ac_save_c_werror_flag=$ac_c_werror_flag
4038 ac_c_werror_flag=yes
4039 ac_cv_prog_cc_g=no
4040 CFLAGS="-g"
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043
4044 int
4045 main (void)
4046 {
4047
4048 ;
4049 return 0;
4050 }
4051 _ACEOF
4052 if ac_fn_c_try_compile "$LINENO"
4053 then :
4054 ac_cv_prog_cc_g=yes
4055 else $as_nop
4056 CFLAGS=""
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059
4060 int
4061 main (void)
4062 {
4063
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"
4069 then :
4070
4071 else $as_nop
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4073 CFLAGS="-g"
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076
4077 int
4078 main (void)
4079 {
4080
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"
4086 then :
4087 ac_cv_prog_cc_g=yes
4088 fi
4089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4090 fi
4091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4094 ac_c_werror_flag=$ac_save_c_werror_flag
4095 fi
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4097 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4098 if test $ac_test_CFLAGS; then
4099 CFLAGS=$ac_save_CFLAGS
4100 elif test $ac_cv_prog_cc_g = yes; then
4101 if test "$GCC" = yes; then
4102 CFLAGS="-g -O2"
4103 else
4104 CFLAGS="-g"
4105 fi
4106 else
4107 if test "$GCC" = yes; then
4108 CFLAGS="-O2"
4109 else
4110 CFLAGS=
4111 fi
4112 fi
4113 ac_prog_cc_stdc=no
4114 if test x$ac_prog_cc_stdc = xno
4115 then :
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4117 printf %s "checking for $CC option to enable C11 features... " >&6; }
4118 if test ${ac_cv_prog_cc_c11+y}
4119 then :
4120 printf %s "(cached) " >&6
4121 else $as_nop
4122 ac_cv_prog_cc_c11=no
4123 ac_save_CC=$CC
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 $ac_c_conftest_c11_program
4127 _ACEOF
4128 for ac_arg in '' -std=gnu11
4129 do
4130 CC="$ac_save_CC $ac_arg"
4131 if ac_fn_c_try_compile "$LINENO"
4132 then :
4133 ac_cv_prog_cc_c11=$ac_arg
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.beam
4136 test "x$ac_cv_prog_cc_c11" != "xno" && break
4137 done
4138 rm -f conftest.$ac_ext
4139 CC=$ac_save_CC
4140 fi
4141
4142 if test "x$ac_cv_prog_cc_c11" = xno
4143 then :
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145 printf "%s\n" "unsupported" >&6; }
4146 else $as_nop
4147 if test "x$ac_cv_prog_cc_c11" = x
4148 then :
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4150 printf "%s\n" "none needed" >&6; }
4151 else $as_nop
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4153 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4154 CC="$CC $ac_cv_prog_cc_c11"
4155 fi
4156 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4157 ac_prog_cc_stdc=c11
4158 fi
4159 fi
4160 if test x$ac_prog_cc_stdc = xno
4161 then :
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4163 printf %s "checking for $CC option to enable C99 features... " >&6; }
4164 if test ${ac_cv_prog_cc_c99+y}
4165 then :
4166 printf %s "(cached) " >&6
4167 else $as_nop
4168 ac_cv_prog_cc_c99=no
4169 ac_save_CC=$CC
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 $ac_c_conftest_c99_program
4173 _ACEOF
4174 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4175 do
4176 CC="$ac_save_CC $ac_arg"
4177 if ac_fn_c_try_compile "$LINENO"
4178 then :
4179 ac_cv_prog_cc_c99=$ac_arg
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext conftest.beam
4182 test "x$ac_cv_prog_cc_c99" != "xno" && break
4183 done
4184 rm -f conftest.$ac_ext
4185 CC=$ac_save_CC
4186 fi
4187
4188 if test "x$ac_cv_prog_cc_c99" = xno
4189 then :
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4191 printf "%s\n" "unsupported" >&6; }
4192 else $as_nop
4193 if test "x$ac_cv_prog_cc_c99" = x
4194 then :
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4196 printf "%s\n" "none needed" >&6; }
4197 else $as_nop
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4199 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4200 CC="$CC $ac_cv_prog_cc_c99"
4201 fi
4202 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4203 ac_prog_cc_stdc=c99
4204 fi
4205 fi
4206 if test x$ac_prog_cc_stdc = xno
4207 then :
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4209 printf %s "checking for $CC option to enable C89 features... " >&6; }
4210 if test ${ac_cv_prog_cc_c89+y}
4211 then :
4212 printf %s "(cached) " >&6
4213 else $as_nop
4214 ac_cv_prog_cc_c89=no
4215 ac_save_CC=$CC
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218 $ac_c_conftest_c89_program
4219 _ACEOF
4220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4221 do
4222 CC="$ac_save_CC $ac_arg"
4223 if ac_fn_c_try_compile "$LINENO"
4224 then :
4225 ac_cv_prog_cc_c89=$ac_arg
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext conftest.beam
4228 test "x$ac_cv_prog_cc_c89" != "xno" && break
4229 done
4230 rm -f conftest.$ac_ext
4231 CC=$ac_save_CC
4232 fi
4233
4234 if test "x$ac_cv_prog_cc_c89" = xno
4235 then :
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 printf "%s\n" "unsupported" >&6; }
4238 else $as_nop
4239 if test "x$ac_cv_prog_cc_c89" = x
4240 then :
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4242 printf "%s\n" "none needed" >&6; }
4243 else $as_nop
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4245 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4246 CC="$CC $ac_cv_prog_cc_c89"
4247 fi
4248 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4249 ac_prog_cc_stdc=c89
4250 fi
4251 fi
4252
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258
4259
4260 ac_ext=c
4261 ac_cpp='$CPP $CPPFLAGS'
4262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4266 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4267 if test ${am_cv_prog_cc_c_o+y}
4268 then :
4269 printf %s "(cached) " >&6
4270 else $as_nop
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273
4274 int
4275 main (void)
4276 {
4277
4278 ;
4279 return 0;
4280 }
4281 _ACEOF
4282 # Make sure it works both with $CC and with simple cc.
4283 # Following AC_PROG_CC_C_O, we do the test twice because some
4284 # compilers refuse to overwrite an existing .o file with -o,
4285 # though they will create one.
4286 am_cv_prog_cc_c_o=yes
4287 for am_i in 1 2; do
4288 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4289 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } \
4293 && test -f conftest2.$ac_objext; then
4294 : OK
4295 else
4296 am_cv_prog_cc_c_o=no
4297 break
4298 fi
4299 done
4300 rm -f core conftest*
4301 unset am_i
4302 fi
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4304 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4305 if test "$am_cv_prog_cc_c_o" != yes; then
4306 # Losing compiler, so override with the script.
4307 # FIXME: It is wrong to rewrite CC.
4308 # But if we don't then we get into trouble of one sort or another.
4309 # A longer-term fix would be to have automake use am__CC in this case,
4310 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4311 CC="$am_aux_dir/compile $CC"
4312 fi
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319 DEPDIR="${am__leading_dot}deps"
4320
4321 ac_config_commands="$ac_config_commands depfiles"
4322
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4324 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4325 cat > confinc.mk << 'END'
4326 am__doit:
4327 @echo this is the am__doit target >confinc.out
4328 .PHONY: am__doit
4329 END
4330 am__include="#"
4331 am__quote=
4332 # BSD make does it like this.
4333 echo '.include "confinc.mk" # ignored' > confmf.BSD
4334 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4335 echo 'include confinc.mk # ignored' > confmf.GNU
4336 _am_result=no
4337 for s in GNU BSD; do
4338 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4339 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }
4343 case $?:`cat confinc.out 2>/dev/null` in #(
4344 '0:this is the am__doit target') :
4345 case $s in #(
4346 BSD) :
4347 am__include='.include' am__quote='"' ;; #(
4348 *) :
4349 am__include='include' am__quote='' ;;
4350 esac ;; #(
4351 *) :
4352 ;;
4353 esac
4354 if test "$am__include" != "#"; then
4355 _am_result="yes ($s style)"
4356 break
4357 fi
4358 done
4359 rm -f confinc.* confmf.*
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4361 printf "%s\n" "${_am_result}" >&6; }
4362
4363 # Check whether --enable-dependency-tracking was given.
4364 if test ${enable_dependency_tracking+y}
4365 then :
4366 enableval=$enable_dependency_tracking;
4367 fi
4368
4369 if test "x$enable_dependency_tracking" != xno; then
4370 am_depcomp="$ac_aux_dir/depcomp"
4371 AMDEPBACKSLASH='\'
4372 am__nodep='_no'
4373 fi
4374 if test "x$enable_dependency_tracking" != xno; then
4375 AMDEP_TRUE=
4376 AMDEP_FALSE='#'
4377 else
4378 AMDEP_TRUE='#'
4379 AMDEP_FALSE=
4380 fi
4381
4382
4383
4384 depcc="$CC" am_compiler_list=
4385
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4387 printf %s "checking dependency style of $depcc... " >&6; }
4388 if test ${am_cv_CC_dependencies_compiler_type+y}
4389 then :
4390 printf %s "(cached) " >&6
4391 else $as_nop
4392 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4393 # We make a subdir and do the tests there. Otherwise we can end up
4394 # making bogus files that we don't know about and never remove. For
4395 # instance it was reported that on HP-UX the gcc test will end up
4396 # making a dummy file named 'D' -- because '-MD' means "put the output
4397 # in D".
4398 rm -rf conftest.dir
4399 mkdir conftest.dir
4400 # Copy depcomp to subdir because otherwise we won't find it if we're
4401 # using a relative directory.
4402 cp "$am_depcomp" conftest.dir
4403 cd conftest.dir
4404 # We will build objects and dependencies in a subdirectory because
4405 # it helps to detect inapplicable dependency modes. For instance
4406 # both Tru64's cc and ICC support -MD to output dependencies as a
4407 # side effect of compilation, but ICC will put the dependencies in
4408 # the current directory while Tru64 will put them in the object
4409 # directory.
4410 mkdir sub
4411
4412 am_cv_CC_dependencies_compiler_type=none
4413 if test "$am_compiler_list" = ""; then
4414 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4415 fi
4416 am__universal=false
4417 case " $depcc " in #(
4418 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4419 esac
4420
4421 for depmode in $am_compiler_list; do
4422 # Setup a source with many dependencies, because some compilers
4423 # like to wrap large dependency lists on column 80 (with \), and
4424 # we should not choose a depcomp mode which is confused by this.
4425 #
4426 # We need to recreate these files for each test, as the compiler may
4427 # overwrite some of them when testing with obscure command lines.
4428 # This happens at least with the AIX C compiler.
4429 : > sub/conftest.c
4430 for i in 1 2 3 4 5 6; do
4431 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4432 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4433 # Solaris 10 /bin/sh.
4434 echo '/* dummy */' > sub/conftst$i.h
4435 done
4436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4437
4438 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4439 # mode. It turns out that the SunPro C++ compiler does not properly
4440 # handle '-M -o', and we need to detect this. Also, some Intel
4441 # versions had trouble with output in subdirs.
4442 am__obj=sub/conftest.${OBJEXT-o}
4443 am__minus_obj="-o $am__obj"
4444 case $depmode in
4445 gcc)
4446 # This depmode causes a compiler race in universal mode.
4447 test "$am__universal" = false || continue
4448 ;;
4449 nosideeffect)
4450 # After this tag, mechanisms are not by side-effect, so they'll
4451 # only be used when explicitly requested.
4452 if test "x$enable_dependency_tracking" = xyes; then
4453 continue
4454 else
4455 break
4456 fi
4457 ;;
4458 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4459 # This compiler won't grok '-c -o', but also, the minuso test has
4460 # not run yet. These depmodes are late enough in the game, and
4461 # so weak that their functioning should not be impacted.
4462 am__obj=conftest.${OBJEXT-o}
4463 am__minus_obj=
4464 ;;
4465 none) break ;;
4466 esac
4467 if depmode=$depmode \
4468 source=sub/conftest.c object=$am__obj \
4469 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4470 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4471 >/dev/null 2>conftest.err &&
4472 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4474 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4476 # icc doesn't choke on unknown options, it will just issue warnings
4477 # or remarks (even with -Werror). So we grep stderr for any message
4478 # that says an option was ignored or not supported.
4479 # When given -MP, icc 7.0 and 7.1 complain thusly:
4480 # icc: Command line warning: ignoring option '-M'; no argument required
4481 # The diagnosis changed in icc 8.0:
4482 # icc: Command line remark: option '-MP' not supported
4483 if (grep 'ignoring option' conftest.err ||
4484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4485 am_cv_CC_dependencies_compiler_type=$depmode
4486 break
4487 fi
4488 fi
4489 done
4490
4491 cd ..
4492 rm -rf conftest.dir
4493 else
4494 am_cv_CC_dependencies_compiler_type=none
4495 fi
4496
4497 fi
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4499 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4500 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4501
4502 if
4503 test "x$enable_dependency_tracking" != xno \
4504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4505 am__fastdepCC_TRUE=
4506 am__fastdepCC_FALSE='#'
4507 else
4508 am__fastdepCC_TRUE='#'
4509 am__fastdepCC_FALSE=
4510 fi
4511
4512
4513
4514 ac_header= ac_cache=
4515 for ac_item in $ac_header_c_list
4516 do
4517 if test $ac_cache; then
4518 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4519 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4520 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4521 fi
4522 ac_header= ac_cache=
4523 elif test $ac_header; then
4524 ac_cache=$ac_item
4525 else
4526 ac_header=$ac_item
4527 fi
4528 done
4529
4530
4531
4532
4533
4534
4535
4536
4537 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4538 then :
4539
4540 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4541
4542 fi
4543
4544
4545
4546
4547
4548
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4550 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4551 if test ${ac_cv_safe_to_define___extensions__+y}
4552 then :
4553 printf %s "(cached) " >&6
4554 else $as_nop
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557
4558 # define __EXTENSIONS__ 1
4559 $ac_includes_default
4560 int
4561 main (void)
4562 {
4563
4564 ;
4565 return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"
4569 then :
4570 ac_cv_safe_to_define___extensions__=yes
4571 else $as_nop
4572 ac_cv_safe_to_define___extensions__=no
4573 fi
4574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4575 fi
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4577 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4578
4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4580 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4581 if test ${ac_cv_should_define__xopen_source+y}
4582 then :
4583 printf %s "(cached) " >&6
4584 else $as_nop
4585 ac_cv_should_define__xopen_source=no
4586 if test $ac_cv_header_wchar_h = yes
4587 then :
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590
4591 #include <wchar.h>
4592 mbstate_t x;
4593 int
4594 main (void)
4595 {
4596
4597 ;
4598 return 0;
4599 }
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"
4602 then :
4603
4604 else $as_nop
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607
4608 #define _XOPEN_SOURCE 500
4609 #include <wchar.h>
4610 mbstate_t x;
4611 int
4612 main (void)
4613 {
4614
4615 ;
4616 return 0;
4617 }
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"
4620 then :
4621 ac_cv_should_define__xopen_source=yes
4622 fi
4623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4624 fi
4625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4626 fi
4627 fi
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4629 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4630
4631 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4632
4633 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4634
4635 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4636
4637 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4638
4639 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4640
4641 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4642
4643 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4644
4645 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4646
4647 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4648
4649 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4650
4651 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4652
4653 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4654
4655 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4656
4657 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4658
4659 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4660
4661 if test $ac_cv_header_minix_config_h = yes
4662 then :
4663 MINIX=yes
4664 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4665
4666 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4667
4668 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4669
4670 else $as_nop
4671 MINIX=
4672 fi
4673 if test $ac_cv_safe_to_define___extensions__ = yes
4674 then :
4675 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4676
4677 fi
4678 if test $ac_cv_should_define__xopen_source = yes
4679 then :
4680 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4681
4682 fi
4683
4684
4685 if test -n "$ac_tool_prefix"; then
4686 for ac_prog in ar lib "link -lib"
4687 do
4688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 printf %s "checking for $ac_word... " >&6; }
4692 if test ${ac_cv_prog_AR+y}
4693 then :
4694 printf %s "(cached) " >&6
4695 else $as_nop
4696 if test -n "$AR"; then
4697 ac_cv_prog_AR="$AR" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702 IFS=$as_save_IFS
4703 case $as_dir in #(((
4704 '') as_dir=./ ;;
4705 */) ;;
4706 *) as_dir=$as_dir/ ;;
4707 esac
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4710 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 fi
4719 fi
4720 AR=$ac_cv_prog_AR
4721 if test -n "$AR"; then
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4723 printf "%s\n" "$AR" >&6; }
4724 else
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 printf "%s\n" "no" >&6; }
4727 fi
4728
4729
4730 test -n "$AR" && break
4731 done
4732 fi
4733 if test -z "$AR"; then
4734 ac_ct_AR=$AR
4735 for ac_prog in ar lib "link -lib"
4736 do
4737 # Extract the first word of "$ac_prog", so it can be a program name with args.
4738 set dummy $ac_prog; ac_word=$2
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 printf %s "checking for $ac_word... " >&6; }
4741 if test ${ac_cv_prog_ac_ct_AR+y}
4742 then :
4743 printf %s "(cached) " >&6
4744 else $as_nop
4745 if test -n "$ac_ct_AR"; then
4746 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751 IFS=$as_save_IFS
4752 case $as_dir in #(((
4753 '') as_dir=./ ;;
4754 */) ;;
4755 *) as_dir=$as_dir/ ;;
4756 esac
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4759 ac_cv_prog_ac_ct_AR="$ac_prog"
4760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767 fi
4768 fi
4769 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4770 if test -n "$ac_ct_AR"; then
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4772 printf "%s\n" "$ac_ct_AR" >&6; }
4773 else
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 printf "%s\n" "no" >&6; }
4776 fi
4777
4778
4779 test -n "$ac_ct_AR" && break
4780 done
4781
4782 if test "x$ac_ct_AR" = x; then
4783 AR="false"
4784 else
4785 case $cross_compiling:$ac_tool_warned in
4786 yes:)
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4788 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4789 ac_tool_warned=yes ;;
4790 esac
4791 AR=$ac_ct_AR
4792 fi
4793 fi
4794
4795 : ${AR=ar}
4796
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4798 printf %s "checking the archiver ($AR) interface... " >&6; }
4799 if test ${am_cv_ar_interface+y}
4800 then :
4801 printf %s "(cached) " >&6
4802 else $as_nop
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809 am_cv_ar_interface=ar
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812 int some_variable = 0;
4813 _ACEOF
4814 if ac_fn_c_try_compile "$LINENO"
4815 then :
4816 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4818 (eval $am_ar_try) 2>&5
4819 ac_status=$?
4820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821 test $ac_status = 0; }
4822 if test "$ac_status" -eq 0; then
4823 am_cv_ar_interface=ar
4824 else
4825 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4827 (eval $am_ar_try) 2>&5
4828 ac_status=$?
4829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4830 test $ac_status = 0; }
4831 if test "$ac_status" -eq 0; then
4832 am_cv_ar_interface=lib
4833 else
4834 am_cv_ar_interface=unknown
4835 fi
4836 fi
4837 rm -f conftest.lib libconftest.a
4838
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846
4847 fi
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4849 printf "%s\n" "$am_cv_ar_interface" >&6; }
4850
4851 case $am_cv_ar_interface in
4852 ar)
4853 ;;
4854 lib)
4855 # Microsoft lib, so override with the ar-lib wrapper script.
4856 # FIXME: It is wrong to rewrite AR.
4857 # But if we don't then we get into trouble of one sort or another.
4858 # A longer-term fix would be to have automake use am__AR in this case,
4859 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4860 # similar.
4861 AR="$am_aux_dir/ar-lib $AR"
4862 ;;
4863 unknown)
4864 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4865 ;;
4866 esac
4867
4868
4869
4870 case `pwd` in
4871 *\ * | *\ *)
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4873 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4874 esac
4875
4876
4877
4878 macro_version='2.4.6'
4879 macro_revision='2.4.6'
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894 ltmain=$ac_aux_dir/ltmain.sh
4895
4896
4897
4898 # Make sure we can run config.sub.
4899 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4900 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4901
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4903 printf %s "checking build system type... " >&6; }
4904 if test ${ac_cv_build+y}
4905 then :
4906 printf %s "(cached) " >&6
4907 else $as_nop
4908 ac_build_alias=$build_alias
4909 test "x$ac_build_alias" = x &&
4910 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4911 test "x$ac_build_alias" = x &&
4912 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4913 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4914 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4915
4916 fi
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4918 printf "%s\n" "$ac_cv_build" >&6; }
4919 case $ac_cv_build in
4920 *-*-*) ;;
4921 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4922 esac
4923 build=$ac_cv_build
4924 ac_save_IFS=$IFS; IFS='-'
4925 set x $ac_cv_build
4926 shift
4927 build_cpu=$1
4928 build_vendor=$2
4929 shift; shift
4930 # Remember, the first character of IFS is used to create $*,
4931 # except with old shells:
4932 build_os=$*
4933 IFS=$ac_save_IFS
4934 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4935
4936
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4938 printf %s "checking host system type... " >&6; }
4939 if test ${ac_cv_host+y}
4940 then :
4941 printf %s "(cached) " >&6
4942 else $as_nop
4943 if test "x$host_alias" = x; then
4944 ac_cv_host=$ac_cv_build
4945 else
4946 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4947 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4948 fi
4949
4950 fi
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4952 printf "%s\n" "$ac_cv_host" >&6; }
4953 case $ac_cv_host in
4954 *-*-*) ;;
4955 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4956 esac
4957 host=$ac_cv_host
4958 ac_save_IFS=$IFS; IFS='-'
4959 set x $ac_cv_host
4960 shift
4961 host_cpu=$1
4962 host_vendor=$2
4963 shift; shift
4964 # Remember, the first character of IFS is used to create $*,
4965 # except with old shells:
4966 host_os=$*
4967 IFS=$ac_save_IFS
4968 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4969
4970
4971 # Backslashify metacharacters that are still active within
4972 # double-quoted strings.
4973 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4974
4975 # Same as above, but do not quote variable references.
4976 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4977
4978 # Sed substitution to delay expansion of an escaped shell variable in a
4979 # double_quote_subst'ed string.
4980 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4981
4982 # Sed substitution to delay expansion of an escaped single quote.
4983 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4984
4985 # Sed substitution to avoid accidental globbing in evaled expressions
4986 no_glob_subst='s/\*/\\\*/g'
4987
4988 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4989 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4990 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4991
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4993 printf %s "checking how to print strings... " >&6; }
4994 # Test print first, because it will be a builtin if present.
4995 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4996 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4997 ECHO='print -r --'
4998 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4999 ECHO='printf %s\n'
5000 else
5001 # Use this function as a fallback that always works.
5002 func_fallback_echo ()
5003 {
5004 eval 'cat <<_LTECHO_EOF
5005 $1
5006 _LTECHO_EOF'
5007 }
5008 ECHO='func_fallback_echo'
5009 fi
5010
5011 # func_echo_all arg...
5012 # Invoke $ECHO with all args, space-separated.
5013 func_echo_all ()
5014 {
5015 $ECHO ""
5016 }
5017
5018 case $ECHO in
5019 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5020 printf "%s\n" "printf" >&6; } ;;
5021 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5022 printf "%s\n" "print -r" >&6; } ;;
5023 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5024 printf "%s\n" "cat" >&6; } ;;
5025 esac
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5041 printf %s "checking for a sed that does not truncate output... " >&6; }
5042 if test ${ac_cv_path_SED+y}
5043 then :
5044 printf %s "(cached) " >&6
5045 else $as_nop
5046 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5047 for ac_i in 1 2 3 4 5 6 7; do
5048 ac_script="$ac_script$as_nl$ac_script"
5049 done
5050 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5051 { ac_script=; unset ac_script;}
5052 if test -z "$SED"; then
5053 ac_path_SED_found=false
5054 # Loop through the user's path and test for each of PROGNAME-LIST
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058 IFS=$as_save_IFS
5059 case $as_dir in #(((
5060 '') as_dir=./ ;;
5061 */) ;;
5062 *) as_dir=$as_dir/ ;;
5063 esac
5064 for ac_prog in sed gsed
5065 do
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5068 as_fn_executable_p "$ac_path_SED" || continue
5069 # Check for GNU ac_path_SED and select it if it is found.
5070 # Check for GNU $ac_path_SED
5071 case `"$ac_path_SED" --version 2>&1` in
5072 *GNU*)
5073 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5074 *)
5075 ac_count=0
5076 printf %s 0123456789 >"conftest.in"
5077 while :
5078 do
5079 cat "conftest.in" "conftest.in" >"conftest.tmp"
5080 mv "conftest.tmp" "conftest.in"
5081 cp "conftest.in" "conftest.nl"
5082 printf "%s\n" '' >> "conftest.nl"
5083 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5085 as_fn_arith $ac_count + 1 && ac_count=$as_val
5086 if test $ac_count -gt ${ac_path_SED_max-0}; then
5087 # Best one so far, save it but keep looking for a better one
5088 ac_cv_path_SED="$ac_path_SED"
5089 ac_path_SED_max=$ac_count
5090 fi
5091 # 10*(2^10) chars as input seems more than enough
5092 test $ac_count -gt 10 && break
5093 done
5094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5095 esac
5096
5097 $ac_path_SED_found && break 3
5098 done
5099 done
5100 done
5101 IFS=$as_save_IFS
5102 if test -z "$ac_cv_path_SED"; then
5103 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5104 fi
5105 else
5106 ac_cv_path_SED=$SED
5107 fi
5108
5109 fi
5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5111 printf "%s\n" "$ac_cv_path_SED" >&6; }
5112 SED="$ac_cv_path_SED"
5113 rm -f conftest.sed
5114
5115 test -z "$SED" && SED=sed
5116 Xsed="$SED -e 1s/^X//"
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5129 printf %s "checking for grep that handles long lines and -e... " >&6; }
5130 if test ${ac_cv_path_GREP+y}
5131 then :
5132 printf %s "(cached) " >&6
5133 else $as_nop
5134 if test -z "$GREP"; then
5135 ac_path_GREP_found=false
5136 # Loop through the user's path and test for each of PROGNAME-LIST
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5139 do
5140 IFS=$as_save_IFS
5141 case $as_dir in #(((
5142 '') as_dir=./ ;;
5143 */) ;;
5144 *) as_dir=$as_dir/ ;;
5145 esac
5146 for ac_prog in grep ggrep
5147 do
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5150 as_fn_executable_p "$ac_path_GREP" || continue
5151 # Check for GNU ac_path_GREP and select it if it is found.
5152 # Check for GNU $ac_path_GREP
5153 case `"$ac_path_GREP" --version 2>&1` in
5154 *GNU*)
5155 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5156 *)
5157 ac_count=0
5158 printf %s 0123456789 >"conftest.in"
5159 while :
5160 do
5161 cat "conftest.in" "conftest.in" >"conftest.tmp"
5162 mv "conftest.tmp" "conftest.in"
5163 cp "conftest.in" "conftest.nl"
5164 printf "%s\n" 'GREP' >> "conftest.nl"
5165 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5167 as_fn_arith $ac_count + 1 && ac_count=$as_val
5168 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5169 # Best one so far, save it but keep looking for a better one
5170 ac_cv_path_GREP="$ac_path_GREP"
5171 ac_path_GREP_max=$ac_count
5172 fi
5173 # 10*(2^10) chars as input seems more than enough
5174 test $ac_count -gt 10 && break
5175 done
5176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177 esac
5178
5179 $ac_path_GREP_found && break 3
5180 done
5181 done
5182 done
5183 IFS=$as_save_IFS
5184 if test -z "$ac_cv_path_GREP"; then
5185 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5186 fi
5187 else
5188 ac_cv_path_GREP=$GREP
5189 fi
5190
5191 fi
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5193 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5194 GREP="$ac_cv_path_GREP"
5195
5196
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5198 printf %s "checking for egrep... " >&6; }
5199 if test ${ac_cv_path_EGREP+y}
5200 then :
5201 printf %s "(cached) " >&6
5202 else $as_nop
5203 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5204 then ac_cv_path_EGREP="$GREP -E"
5205 else
5206 if test -z "$EGREP"; then
5207 ac_path_EGREP_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5211 do
5212 IFS=$as_save_IFS
5213 case $as_dir in #(((
5214 '') as_dir=./ ;;
5215 */) ;;
5216 *) as_dir=$as_dir/ ;;
5217 esac
5218 for ac_prog in egrep
5219 do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5222 as_fn_executable_p "$ac_path_EGREP" || continue
5223 # Check for GNU ac_path_EGREP and select it if it is found.
5224 # Check for GNU $ac_path_EGREP
5225 case `"$ac_path_EGREP" --version 2>&1` in
5226 *GNU*)
5227 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5228 *)
5229 ac_count=0
5230 printf %s 0123456789 >"conftest.in"
5231 while :
5232 do
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 printf "%s\n" 'EGREP' >> "conftest.nl"
5237 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239 as_fn_arith $ac_count + 1 && ac_count=$as_val
5240 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_EGREP="$ac_path_EGREP"
5243 ac_path_EGREP_max=$ac_count
5244 fi
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5247 done
5248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249 esac
5250
5251 $ac_path_EGREP_found && break 3
5252 done
5253 done
5254 done
5255 IFS=$as_save_IFS
5256 if test -z "$ac_cv_path_EGREP"; then
5257 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5258 fi
5259 else
5260 ac_cv_path_EGREP=$EGREP
5261 fi
5262
5263 fi
5264 fi
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5266 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5267 EGREP="$ac_cv_path_EGREP"
5268
5269
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5271 printf %s "checking for fgrep... " >&6; }
5272 if test ${ac_cv_path_FGREP+y}
5273 then :
5274 printf %s "(cached) " >&6
5275 else $as_nop
5276 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5277 then ac_cv_path_FGREP="$GREP -F"
5278 else
5279 if test -z "$FGREP"; then
5280 ac_path_FGREP_found=false
5281 # Loop through the user's path and test for each of PROGNAME-LIST
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284 do
5285 IFS=$as_save_IFS
5286 case $as_dir in #(((
5287 '') as_dir=./ ;;
5288 */) ;;
5289 *) as_dir=$as_dir/ ;;
5290 esac
5291 for ac_prog in fgrep
5292 do
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5295 as_fn_executable_p "$ac_path_FGREP" || continue
5296 # Check for GNU ac_path_FGREP and select it if it is found.
5297 # Check for GNU $ac_path_FGREP
5298 case `"$ac_path_FGREP" --version 2>&1` in
5299 *GNU*)
5300 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5301 *)
5302 ac_count=0
5303 printf %s 0123456789 >"conftest.in"
5304 while :
5305 do
5306 cat "conftest.in" "conftest.in" >"conftest.tmp"
5307 mv "conftest.tmp" "conftest.in"
5308 cp "conftest.in" "conftest.nl"
5309 printf "%s\n" 'FGREP' >> "conftest.nl"
5310 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5312 as_fn_arith $ac_count + 1 && ac_count=$as_val
5313 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5314 # Best one so far, save it but keep looking for a better one
5315 ac_cv_path_FGREP="$ac_path_FGREP"
5316 ac_path_FGREP_max=$ac_count
5317 fi
5318 # 10*(2^10) chars as input seems more than enough
5319 test $ac_count -gt 10 && break
5320 done
5321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5322 esac
5323
5324 $ac_path_FGREP_found && break 3
5325 done
5326 done
5327 done
5328 IFS=$as_save_IFS
5329 if test -z "$ac_cv_path_FGREP"; then
5330 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5331 fi
5332 else
5333 ac_cv_path_FGREP=$FGREP
5334 fi
5335
5336 fi
5337 fi
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5339 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5340 FGREP="$ac_cv_path_FGREP"
5341
5342
5343 test -z "$GREP" && GREP=grep
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363 # Check whether --with-gnu-ld was given.
5364 if test ${with_gnu_ld+y}
5365 then :
5366 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5367 else $as_nop
5368 with_gnu_ld=no
5369 fi
5370
5371 ac_prog=ld
5372 if test yes = "$GCC"; then
5373 # Check if gcc -print-prog-name=ld gives a path.
5374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5375 printf %s "checking for ld used by $CC... " >&6; }
5376 case $host in
5377 *-*-mingw*)
5378 # gcc leaves a trailing carriage return, which upsets mingw
5379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5380 *)
5381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5382 esac
5383 case $ac_prog in
5384 # Accept absolute paths.
5385 [\\/]* | ?:[\\/]*)
5386 re_direlt='/[^/][^/]*/\.\./'
5387 # Canonicalize the pathname of ld
5388 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5389 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5390 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5391 done
5392 test -z "$LD" && LD=$ac_prog
5393 ;;
5394 "")
5395 # If it fails, then pretend we aren't using GCC.
5396 ac_prog=ld
5397 ;;
5398 *)
5399 # If it is relative, then search for the first ld in PATH.
5400 with_gnu_ld=unknown
5401 ;;
5402 esac
5403 elif test yes = "$with_gnu_ld"; then
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5405 printf %s "checking for GNU ld... " >&6; }
5406 else
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5408 printf %s "checking for non-GNU ld... " >&6; }
5409 fi
5410 if test ${lt_cv_path_LD+y}
5411 then :
5412 printf %s "(cached) " >&6
5413 else $as_nop
5414 if test -z "$LD"; then
5415 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5416 for ac_dir in $PATH; do
5417 IFS=$lt_save_ifs
5418 test -z "$ac_dir" && ac_dir=.
5419 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5420 lt_cv_path_LD=$ac_dir/$ac_prog
5421 # Check to see if the program is GNU ld. I'd rather use --version,
5422 # but apparently some variants of GNU ld only accept -v.
5423 # Break only if it was the GNU/non-GNU ld that we prefer.
5424 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5425 *GNU* | *'with BFD'*)
5426 test no != "$with_gnu_ld" && break
5427 ;;
5428 *)
5429 test yes != "$with_gnu_ld" && break
5430 ;;
5431 esac
5432 fi
5433 done
5434 IFS=$lt_save_ifs
5435 else
5436 lt_cv_path_LD=$LD # Let the user override the test with a path.
5437 fi
5438 fi
5439
5440 LD=$lt_cv_path_LD
5441 if test -n "$LD"; then
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5443 printf "%s\n" "$LD" >&6; }
5444 else
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 printf "%s\n" "no" >&6; }
5447 fi
5448 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5450 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5451 if test ${lt_cv_prog_gnu_ld+y}
5452 then :
5453 printf %s "(cached) " >&6
5454 else $as_nop
5455 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5456 case `$LD -v 2>&1 </dev/null` in
5457 *GNU* | *'with BFD'*)
5458 lt_cv_prog_gnu_ld=yes
5459 ;;
5460 *)
5461 lt_cv_prog_gnu_ld=no
5462 ;;
5463 esac
5464 fi
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5466 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5467 with_gnu_ld=$lt_cv_prog_gnu_ld
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5478 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5479 if test ${lt_cv_path_NM+y}
5480 then :
5481 printf %s "(cached) " >&6
5482 else $as_nop
5483 if test -n "$NM"; then
5484 # Let the user override the test.
5485 lt_cv_path_NM=$NM
5486 else
5487 lt_nm_to_check=${ac_tool_prefix}nm
5488 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5489 lt_nm_to_check="$lt_nm_to_check nm"
5490 fi
5491 for lt_tmp_nm in $lt_nm_to_check; do
5492 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5493 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5494 IFS=$lt_save_ifs
5495 test -z "$ac_dir" && ac_dir=.
5496 tmp_nm=$ac_dir/$lt_tmp_nm
5497 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5498 # Check to see if the nm accepts a BSD-compat flag.
5499 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5500 # nm: unknown option "B" ignored
5501 # Tru64's nm complains that /dev/null is an invalid object file
5502 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5503 case $build_os in
5504 mingw*) lt_bad_file=conftest.nm/nofile ;;
5505 *) lt_bad_file=/dev/null ;;
5506 esac
5507 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5508 *$lt_bad_file* | *'Invalid file or object type'*)
5509 lt_cv_path_NM="$tmp_nm -B"
5510 break 2
5511 ;;
5512 *)
5513 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5514 */dev/null*)
5515 lt_cv_path_NM="$tmp_nm -p"
5516 break 2
5517 ;;
5518 *)
5519 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5520 continue # so that we can try to find one that supports BSD flags
5521 ;;
5522 esac
5523 ;;
5524 esac
5525 fi
5526 done
5527 IFS=$lt_save_ifs
5528 done
5529 : ${lt_cv_path_NM=no}
5530 fi
5531 fi
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5533 printf "%s\n" "$lt_cv_path_NM" >&6; }
5534 if test no != "$lt_cv_path_NM"; then
5535 NM=$lt_cv_path_NM
5536 else
5537 # Didn't find any BSD compatible name lister, look for dumpbin.
5538 if test -n "$DUMPBIN"; then :
5539 # Let the user override the test.
5540 else
5541 if test -n "$ac_tool_prefix"; then
5542 for ac_prog in dumpbin "link -dump"
5543 do
5544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 printf %s "checking for $ac_word... " >&6; }
5548 if test ${ac_cv_prog_DUMPBIN+y}
5549 then :
5550 printf %s "(cached) " >&6
5551 else $as_nop
5552 if test -n "$DUMPBIN"; then
5553 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558 IFS=$as_save_IFS
5559 case $as_dir in #(((
5560 '') as_dir=./ ;;
5561 */) ;;
5562 *) as_dir=$as_dir/ ;;
5563 esac
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5566 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570 done
5571 done
5572 IFS=$as_save_IFS
5573
5574 fi
5575 fi
5576 DUMPBIN=$ac_cv_prog_DUMPBIN
5577 if test -n "$DUMPBIN"; then
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5579 printf "%s\n" "$DUMPBIN" >&6; }
5580 else
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 printf "%s\n" "no" >&6; }
5583 fi
5584
5585
5586 test -n "$DUMPBIN" && break
5587 done
5588 fi
5589 if test -z "$DUMPBIN"; then
5590 ac_ct_DUMPBIN=$DUMPBIN
5591 for ac_prog in dumpbin "link -dump"
5592 do
5593 # Extract the first word of "$ac_prog", so it can be a program name with args.
5594 set dummy $ac_prog; ac_word=$2
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5596 printf %s "checking for $ac_word... " >&6; }
5597 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5598 then :
5599 printf %s "(cached) " >&6
5600 else $as_nop
5601 if test -n "$ac_ct_DUMPBIN"; then
5602 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607 IFS=$as_save_IFS
5608 case $as_dir in #(((
5609 '') as_dir=./ ;;
5610 */) ;;
5611 *) as_dir=$as_dir/ ;;
5612 esac
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5626 if test -n "$ac_ct_DUMPBIN"; then
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5628 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5629 else
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 printf "%s\n" "no" >&6; }
5632 fi
5633
5634
5635 test -n "$ac_ct_DUMPBIN" && break
5636 done
5637
5638 if test "x$ac_ct_DUMPBIN" = x; then
5639 DUMPBIN=":"
5640 else
5641 case $cross_compiling:$ac_tool_warned in
5642 yes:)
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5644 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645 ac_tool_warned=yes ;;
5646 esac
5647 DUMPBIN=$ac_ct_DUMPBIN
5648 fi
5649 fi
5650
5651 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5652 *COFF*)
5653 DUMPBIN="$DUMPBIN -symbols -headers"
5654 ;;
5655 *)
5656 DUMPBIN=:
5657 ;;
5658 esac
5659 fi
5660
5661 if test : != "$DUMPBIN"; then
5662 NM=$DUMPBIN
5663 fi
5664 fi
5665 test -z "$NM" && NM=nm
5666
5667
5668
5669
5670
5671
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5673 printf %s "checking the name lister ($NM) interface... " >&6; }
5674 if test ${lt_cv_nm_interface+y}
5675 then :
5676 printf %s "(cached) " >&6
5677 else $as_nop
5678 lt_cv_nm_interface="BSD nm"
5679 echo "int some_variable = 0;" > conftest.$ac_ext
5680 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5681 (eval "$ac_compile" 2>conftest.err)
5682 cat conftest.err >&5
5683 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5684 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5685 cat conftest.err >&5
5686 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5687 cat conftest.out >&5
5688 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5689 lt_cv_nm_interface="MS dumpbin"
5690 fi
5691 rm -f conftest*
5692 fi
5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5694 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5695
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5697 printf %s "checking whether ln -s works... " >&6; }
5698 LN_S=$as_ln_s
5699 if test "$LN_S" = "ln -s"; then
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701 printf "%s\n" "yes" >&6; }
5702 else
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5704 printf "%s\n" "no, using $LN_S" >&6; }
5705 fi
5706
5707 # find the maximum length of command line arguments
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5709 printf %s "checking the maximum length of command line arguments... " >&6; }
5710 if test ${lt_cv_sys_max_cmd_len+y}
5711 then :
5712 printf %s "(cached) " >&6
5713 else $as_nop
5714 i=0
5715 teststring=ABCD
5716
5717 case $build_os in
5718 msdosdjgpp*)
5719 # On DJGPP, this test can blow up pretty badly due to problems in libc
5720 # (any single argument exceeding 2000 bytes causes a buffer overrun
5721 # during glob expansion). Even if it were fixed, the result of this
5722 # check would be larger than it should be.
5723 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5724 ;;
5725
5726 gnu*)
5727 # Under GNU Hurd, this test is not required because there is
5728 # no limit to the length of command line arguments.
5729 # Libtool will interpret -1 as no limit whatsoever
5730 lt_cv_sys_max_cmd_len=-1;
5731 ;;
5732
5733 cygwin* | mingw* | cegcc*)
5734 # On Win9x/ME, this test blows up -- it succeeds, but takes
5735 # about 5 minutes as the teststring grows exponentially.
5736 # Worse, since 9x/ME are not pre-emptively multitasking,
5737 # you end up with a "frozen" computer, even though with patience
5738 # the test eventually succeeds (with a max line length of 256k).
5739 # Instead, let's just punt: use the minimum linelength reported by
5740 # all of the supported platforms: 8192 (on NT/2K/XP).
5741 lt_cv_sys_max_cmd_len=8192;
5742 ;;
5743
5744 mint*)
5745 # On MiNT this can take a long time and run out of memory.
5746 lt_cv_sys_max_cmd_len=8192;
5747 ;;
5748
5749 amigaos*)
5750 # On AmigaOS with pdksh, this test takes hours, literally.
5751 # So we just punt and use a minimum line length of 8192.
5752 lt_cv_sys_max_cmd_len=8192;
5753 ;;
5754
5755 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5756 # This has been around since 386BSD, at least. Likely further.
5757 if test -x /sbin/sysctl; then
5758 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5759 elif test -x /usr/sbin/sysctl; then
5760 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5761 else
5762 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5763 fi
5764 # And add a safety zone
5765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5767 ;;
5768
5769 interix*)
5770 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5771 lt_cv_sys_max_cmd_len=196608
5772 ;;
5773
5774 os2*)
5775 # The test takes a long time on OS/2.
5776 lt_cv_sys_max_cmd_len=8192
5777 ;;
5778
5779 osf*)
5780 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5781 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5782 # nice to cause kernel panics so lets avoid the loop below.
5783 # First set a reasonable default.
5784 lt_cv_sys_max_cmd_len=16384
5785 #
5786 if test -x /sbin/sysconfig; then
5787 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5788 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5789 esac
5790 fi
5791 ;;
5792 sco3.2v5*)
5793 lt_cv_sys_max_cmd_len=102400
5794 ;;
5795 sysv5* | sco5v6* | sysv4.2uw2*)
5796 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5797 if test -n "$kargmax"; then
5798 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5799 else
5800 lt_cv_sys_max_cmd_len=32768
5801 fi
5802 ;;
5803 *)
5804 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5805 if test -n "$lt_cv_sys_max_cmd_len" && \
5806 test undefined != "$lt_cv_sys_max_cmd_len"; then
5807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5809 else
5810 # Make teststring a little bigger before we do anything with it.
5811 # a 1K string should be a reasonable start.
5812 for i in 1 2 3 4 5 6 7 8; do
5813 teststring=$teststring$teststring
5814 done
5815 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5816 # If test is not a shell built-in, we'll probably end up computing a
5817 # maximum length that is only half of the actual maximum length, but
5818 # we can't tell.
5819 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5820 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5821 test 17 != "$i" # 1/2 MB should be enough
5822 do
5823 i=`expr $i + 1`
5824 teststring=$teststring$teststring
5825 done
5826 # Only check the string length outside the loop.
5827 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5828 teststring=
5829 # Add a significant safety factor because C++ compilers can tack on
5830 # massive amounts of additional arguments before passing them to the
5831 # linker. It appears as though 1/2 is a usable value.
5832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5833 fi
5834 ;;
5835 esac
5836
5837 fi
5838
5839 if test -n "$lt_cv_sys_max_cmd_len"; then
5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5841 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5842 else
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5844 printf "%s\n" "none" >&6; }
5845 fi
5846 max_cmd_len=$lt_cv_sys_max_cmd_len
5847
5848
5849
5850
5851
5852
5853 : ${CP="cp -f"}
5854 : ${MV="mv -f"}
5855 : ${RM="rm -f"}
5856
5857 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5858 lt_unset=unset
5859 else
5860 lt_unset=false
5861 fi
5862
5863
5864
5865
5866
5867 # test EBCDIC or ASCII
5868 case `echo X|tr X '\101'` in
5869 A) # ASCII based system
5870 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5871 lt_SP2NL='tr \040 \012'
5872 lt_NL2SP='tr \015\012 \040\040'
5873 ;;
5874 *) # EBCDIC based system
5875 lt_SP2NL='tr \100 \n'
5876 lt_NL2SP='tr \r\n \100\100'
5877 ;;
5878 esac
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5889 printf %s "checking how to convert $build file names to $host format... " >&6; }
5890 if test ${lt_cv_to_host_file_cmd+y}
5891 then :
5892 printf %s "(cached) " >&6
5893 else $as_nop
5894 case $host in
5895 *-*-mingw* )
5896 case $build in
5897 *-*-mingw* ) # actually msys
5898 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5899 ;;
5900 *-*-cygwin* )
5901 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5902 ;;
5903 * ) # otherwise, assume *nix
5904 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5905 ;;
5906 esac
5907 ;;
5908 *-*-cygwin* )
5909 case $build in
5910 *-*-mingw* ) # actually msys
5911 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5912 ;;
5913 *-*-cygwin* )
5914 lt_cv_to_host_file_cmd=func_convert_file_noop
5915 ;;
5916 * ) # otherwise, assume *nix
5917 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5918 ;;
5919 esac
5920 ;;
5921 * ) # unhandled hosts (and "normal" native builds)
5922 lt_cv_to_host_file_cmd=func_convert_file_noop
5923 ;;
5924 esac
5925
5926 fi
5927
5928 to_host_file_cmd=$lt_cv_to_host_file_cmd
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5930 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5931
5932
5933
5934
5935
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5937 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5938 if test ${lt_cv_to_tool_file_cmd+y}
5939 then :
5940 printf %s "(cached) " >&6
5941 else $as_nop
5942 #assume ordinary cross tools, or native build.
5943 lt_cv_to_tool_file_cmd=func_convert_file_noop
5944 case $host in
5945 *-*-mingw* )
5946 case $build in
5947 *-*-mingw* ) # actually msys
5948 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5949 ;;
5950 esac
5951 ;;
5952 esac
5953
5954 fi
5955
5956 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5958 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5959
5960
5961
5962
5963
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5965 printf %s "checking for $LD option to reload object files... " >&6; }
5966 if test ${lt_cv_ld_reload_flag+y}
5967 then :
5968 printf %s "(cached) " >&6
5969 else $as_nop
5970 lt_cv_ld_reload_flag='-r'
5971 fi
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5973 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5974 reload_flag=$lt_cv_ld_reload_flag
5975 case $reload_flag in
5976 "" | " "*) ;;
5977 *) reload_flag=" $reload_flag" ;;
5978 esac
5979 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5980 case $host_os in
5981 cygwin* | mingw* | pw32* | cegcc*)
5982 if test yes != "$GCC"; then
5983 reload_cmds=false
5984 fi
5985 ;;
5986 darwin*)
5987 if test yes = "$GCC"; then
5988 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5989 else
5990 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5991 fi
5992 ;;
5993 esac
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003 if test -n "$ac_tool_prefix"; then
6004 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6005 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 printf %s "checking for $ac_word... " >&6; }
6008 if test ${ac_cv_prog_OBJDUMP+y}
6009 then :
6010 printf %s "(cached) " >&6
6011 else $as_nop
6012 if test -n "$OBJDUMP"; then
6013 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018 IFS=$as_save_IFS
6019 case $as_dir in #(((
6020 '') as_dir=./ ;;
6021 */) ;;
6022 *) as_dir=$as_dir/ ;;
6023 esac
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 OBJDUMP=$ac_cv_prog_OBJDUMP
6037 if test -n "$OBJDUMP"; then
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6039 printf "%s\n" "$OBJDUMP" >&6; }
6040 else
6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 printf "%s\n" "no" >&6; }
6043 fi
6044
6045
6046 fi
6047 if test -z "$ac_cv_prog_OBJDUMP"; then
6048 ac_ct_OBJDUMP=$OBJDUMP
6049 # Extract the first word of "objdump", so it can be a program name with args.
6050 set dummy objdump; ac_word=$2
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 printf %s "checking for $ac_word... " >&6; }
6053 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6054 then :
6055 printf %s "(cached) " >&6
6056 else $as_nop
6057 if test -n "$ac_ct_OBJDUMP"; then
6058 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063 IFS=$as_save_IFS
6064 case $as_dir in #(((
6065 '') as_dir=./ ;;
6066 */) ;;
6067 *) as_dir=$as_dir/ ;;
6068 esac
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6071 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6073 break 2
6074 fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6082 if test -n "$ac_ct_OBJDUMP"; then
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6084 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6085 else
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 printf "%s\n" "no" >&6; }
6088 fi
6089
6090 if test "x$ac_ct_OBJDUMP" = x; then
6091 OBJDUMP="false"
6092 else
6093 case $cross_compiling:$ac_tool_warned in
6094 yes:)
6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6098 esac
6099 OBJDUMP=$ac_ct_OBJDUMP
6100 fi
6101 else
6102 OBJDUMP="$ac_cv_prog_OBJDUMP"
6103 fi
6104
6105 test -z "$OBJDUMP" && OBJDUMP=objdump
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6116 printf %s "checking how to recognize dependent libraries... " >&6; }
6117 if test ${lt_cv_deplibs_check_method+y}
6118 then :
6119 printf %s "(cached) " >&6
6120 else $as_nop
6121 lt_cv_file_magic_cmd='$MAGIC_CMD'
6122 lt_cv_file_magic_test_file=
6123 lt_cv_deplibs_check_method='unknown'
6124 # Need to set the preceding variable on all platforms that support
6125 # interlibrary dependencies.
6126 # 'none' -- dependencies not supported.
6127 # 'unknown' -- same as none, but documents that we really don't know.
6128 # 'pass_all' -- all dependencies passed with no checks.
6129 # 'test_compile' -- check by making test program.
6130 # 'file_magic [[regex]]' -- check by looking for files in library path
6131 # that responds to the $file_magic_cmd with a given extended regex.
6132 # If you have 'file' or equivalent on your system and you're not sure
6133 # whether 'pass_all' will *always* work, you probably want this one.
6134
6135 case $host_os in
6136 aix[4-9]*)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139
6140 beos*)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143
6144 bsdi[45]*)
6145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6146 lt_cv_file_magic_cmd='/usr/bin/file -L'
6147 lt_cv_file_magic_test_file=/shlib/libc.so
6148 ;;
6149
6150 cygwin*)
6151 # func_win32_libid is a shell function defined in ltmain.sh
6152 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6153 lt_cv_file_magic_cmd='func_win32_libid'
6154 ;;
6155
6156 mingw* | pw32*)
6157 # Base MSYS/MinGW do not provide the 'file' command needed by
6158 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6159 # unless we find 'file', for example because we are cross-compiling.
6160 if ( file / ) >/dev/null 2>&1; then
6161 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6162 lt_cv_file_magic_cmd='func_win32_libid'
6163 else
6164 # Keep this pattern in sync with the one in func_win32_libid.
6165 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6166 lt_cv_file_magic_cmd='$OBJDUMP -f'
6167 fi
6168 ;;
6169
6170 cegcc*)
6171 # use the weaker test based on 'objdump'. See mingw*.
6172 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6173 lt_cv_file_magic_cmd='$OBJDUMP -f'
6174 ;;
6175
6176 darwin* | rhapsody*)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179
6180 freebsd* | dragonfly*)
6181 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6182 case $host_cpu in
6183 i*86 )
6184 # Not sure whether the presence of OpenBSD here was a mistake.
6185 # Let's accept both of them until this is cleared up.
6186 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6187 lt_cv_file_magic_cmd=/usr/bin/file
6188 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6189 ;;
6190 esac
6191 else
6192 lt_cv_deplibs_check_method=pass_all
6193 fi
6194 ;;
6195
6196 haiku*)
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200 hpux10.20* | hpux11*)
6201 lt_cv_file_magic_cmd=/usr/bin/file
6202 case $host_cpu in
6203 ia64*)
6204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6205 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6206 ;;
6207 hppa*64*)
6208 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]'
6209 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6210 ;;
6211 *)
6212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6213 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6214 ;;
6215 esac
6216 ;;
6217
6218 interix[3-9]*)
6219 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6221 ;;
6222
6223 irix5* | irix6* | nonstopux*)
6224 case $LD in
6225 *-32|*"-32 ") libmagic=32-bit;;
6226 *-n32|*"-n32 ") libmagic=N32;;
6227 *-64|*"-64 ") libmagic=64-bit;;
6228 *) libmagic=never-match;;
6229 esac
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232
6233 # This must be glibc/ELF.
6234 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6235 lt_cv_deplibs_check_method=pass_all
6236 ;;
6237
6238 netbsd*)
6239 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6241 else
6242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6243 fi
6244 ;;
6245
6246 newos6*)
6247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6248 lt_cv_file_magic_cmd=/usr/bin/file
6249 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6250 ;;
6251
6252 *nto* | *qnx*)
6253 lt_cv_deplibs_check_method=pass_all
6254 ;;
6255
6256 openbsd* | bitrig*)
6257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6259 else
6260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6261 fi
6262 ;;
6263
6264 osf3* | osf4* | osf5*)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267
6268 rdos*)
6269 lt_cv_deplibs_check_method=pass_all
6270 ;;
6271
6272 solaris*)
6273 lt_cv_deplibs_check_method=pass_all
6274 ;;
6275
6276 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
6279
6280 sysv4 | sysv4.3*)
6281 case $host_vendor in
6282 motorola)
6283 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]'
6284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6285 ;;
6286 ncr)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289 sequent)
6290 lt_cv_file_magic_cmd='/bin/file'
6291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6292 ;;
6293 sni)
6294 lt_cv_file_magic_cmd='/bin/file'
6295 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6296 lt_cv_file_magic_test_file=/lib/libc.so
6297 ;;
6298 siemens)
6299 lt_cv_deplibs_check_method=pass_all
6300 ;;
6301 pc)
6302 lt_cv_deplibs_check_method=pass_all
6303 ;;
6304 esac
6305 ;;
6306
6307 tpf*)
6308 lt_cv_deplibs_check_method=pass_all
6309 ;;
6310 os2*)
6311 lt_cv_deplibs_check_method=pass_all
6312 ;;
6313 esac
6314
6315 fi
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6317 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6318
6319 file_magic_glob=
6320 want_nocaseglob=no
6321 if test "$build" = "$host"; then
6322 case $host_os in
6323 mingw* | pw32*)
6324 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6325 want_nocaseglob=yes
6326 else
6327 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6328 fi
6329 ;;
6330 esac
6331 fi
6332
6333 file_magic_cmd=$lt_cv_file_magic_cmd
6334 deplibs_check_method=$lt_cv_deplibs_check_method
6335 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358 if test -n "$ac_tool_prefix"; then
6359 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 printf %s "checking for $ac_word... " >&6; }
6363 if test ${ac_cv_prog_DLLTOOL+y}
6364 then :
6365 printf %s "(cached) " >&6
6366 else $as_nop
6367 if test -n "$DLLTOOL"; then
6368 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373 IFS=$as_save_IFS
6374 case $as_dir in #(((
6375 '') as_dir=./ ;;
6376 */) ;;
6377 *) as_dir=$as_dir/ ;;
6378 esac
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6381 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6383 break 2
6384 fi
6385 done
6386 done
6387 IFS=$as_save_IFS
6388
6389 fi
6390 fi
6391 DLLTOOL=$ac_cv_prog_DLLTOOL
6392 if test -n "$DLLTOOL"; then
6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6394 printf "%s\n" "$DLLTOOL" >&6; }
6395 else
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 printf "%s\n" "no" >&6; }
6398 fi
6399
6400
6401 fi
6402 if test -z "$ac_cv_prog_DLLTOOL"; then
6403 ac_ct_DLLTOOL=$DLLTOOL
6404 # Extract the first word of "dlltool", so it can be a program name with args.
6405 set dummy dlltool; ac_word=$2
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 printf %s "checking for $ac_word... " >&6; }
6408 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6409 then :
6410 printf %s "(cached) " >&6
6411 else $as_nop
6412 if test -n "$ac_ct_DLLTOOL"; then
6413 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418 IFS=$as_save_IFS
6419 case $as_dir in #(((
6420 '') as_dir=./ ;;
6421 */) ;;
6422 *) as_dir=$as_dir/ ;;
6423 esac
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6426 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6428 break 2
6429 fi
6430 done
6431 done
6432 IFS=$as_save_IFS
6433
6434 fi
6435 fi
6436 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6437 if test -n "$ac_ct_DLLTOOL"; then
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6439 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6440 else
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 printf "%s\n" "no" >&6; }
6443 fi
6444
6445 if test "x$ac_ct_DLLTOOL" = x; then
6446 DLLTOOL="false"
6447 else
6448 case $cross_compiling:$ac_tool_warned in
6449 yes:)
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6451 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6452 ac_tool_warned=yes ;;
6453 esac
6454 DLLTOOL=$ac_ct_DLLTOOL
6455 fi
6456 else
6457 DLLTOOL="$ac_cv_prog_DLLTOOL"
6458 fi
6459
6460 test -z "$DLLTOOL" && DLLTOOL=dlltool
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6472 printf %s "checking how to associate runtime and link libraries... " >&6; }
6473 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6474 then :
6475 printf %s "(cached) " >&6
6476 else $as_nop
6477 lt_cv_sharedlib_from_linklib_cmd='unknown'
6478
6479 case $host_os in
6480 cygwin* | mingw* | pw32* | cegcc*)
6481 # two different shell functions defined in ltmain.sh;
6482 # decide which one to use based on capabilities of $DLLTOOL
6483 case `$DLLTOOL --help 2>&1` in
6484 *--identify-strict*)
6485 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6486 ;;
6487 *)
6488 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6489 ;;
6490 esac
6491 ;;
6492 *)
6493 # fallback: assume linklib IS sharedlib
6494 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6495 ;;
6496 esac
6497
6498 fi
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6500 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6501 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6502 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6503
6504
6505
6506
6507
6508
6509
6510 if test -n "$ac_tool_prefix"; then
6511 for ac_prog in ar
6512 do
6513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 printf %s "checking for $ac_word... " >&6; }
6517 if test ${ac_cv_prog_AR+y}
6518 then :
6519 printf %s "(cached) " >&6
6520 else $as_nop
6521 if test -n "$AR"; then
6522 ac_cv_prog_AR="$AR" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 case $as_dir in #(((
6529 '') as_dir=./ ;;
6530 */) ;;
6531 *) as_dir=$as_dir/ ;;
6532 esac
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 AR=$ac_cv_prog_AR
6546 if test -n "$AR"; then
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6548 printf "%s\n" "$AR" >&6; }
6549 else
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 printf "%s\n" "no" >&6; }
6552 fi
6553
6554
6555 test -n "$AR" && break
6556 done
6557 fi
6558 if test -z "$AR"; then
6559 ac_ct_AR=$AR
6560 for ac_prog in ar
6561 do
6562 # Extract the first word of "$ac_prog", so it can be a program name with args.
6563 set dummy $ac_prog; ac_word=$2
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 printf %s "checking for $ac_word... " >&6; }
6566 if test ${ac_cv_prog_ac_ct_AR+y}
6567 then :
6568 printf %s "(cached) " >&6
6569 else $as_nop
6570 if test -n "$ac_ct_AR"; then
6571 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576 IFS=$as_save_IFS
6577 case $as_dir in #(((
6578 '') as_dir=./ ;;
6579 */) ;;
6580 *) as_dir=$as_dir/ ;;
6581 esac
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6584 ac_cv_prog_ac_ct_AR="$ac_prog"
6585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6586 break 2
6587 fi
6588 done
6589 done
6590 IFS=$as_save_IFS
6591
6592 fi
6593 fi
6594 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6595 if test -n "$ac_ct_AR"; then
6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6597 printf "%s\n" "$ac_ct_AR" >&6; }
6598 else
6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 printf "%s\n" "no" >&6; }
6601 fi
6602
6603
6604 test -n "$ac_ct_AR" && break
6605 done
6606
6607 if test "x$ac_ct_AR" = x; then
6608 AR="false"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616 AR=$ac_ct_AR
6617 fi
6618 fi
6619
6620 : ${AR=ar}
6621 : ${AR_FLAGS=cru}
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6634 printf %s "checking for archiver @FILE support... " >&6; }
6635 if test ${lt_cv_ar_at_file+y}
6636 then :
6637 printf %s "(cached) " >&6
6638 else $as_nop
6639 lt_cv_ar_at_file=no
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642
6643 int
6644 main (void)
6645 {
6646
6647 ;
6648 return 0;
6649 }
6650 _ACEOF
6651 if ac_fn_c_try_compile "$LINENO"
6652 then :
6653 echo conftest.$ac_objext > conftest.lst
6654 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6656 (eval $lt_ar_try) 2>&5
6657 ac_status=$?
6658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659 test $ac_status = 0; }
6660 if test 0 -eq "$ac_status"; then
6661 # Ensure the archiver fails upon bogus file names.
6662 rm -f conftest.$ac_objext libconftest.a
6663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6664 (eval $lt_ar_try) 2>&5
6665 ac_status=$?
6666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667 test $ac_status = 0; }
6668 if test 0 -ne "$ac_status"; then
6669 lt_cv_ar_at_file=@
6670 fi
6671 fi
6672 rm -f conftest.* libconftest.a
6673
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6676
6677 fi
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6679 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6680
6681 if test no = "$lt_cv_ar_at_file"; then
6682 archiver_list_spec=
6683 else
6684 archiver_list_spec=$lt_cv_ar_at_file
6685 fi
6686
6687
6688
6689
6690
6691
6692
6693 if test -n "$ac_tool_prefix"; then
6694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}strip; ac_word=$2
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 printf %s "checking for $ac_word... " >&6; }
6698 if test ${ac_cv_prog_STRIP+y}
6699 then :
6700 printf %s "(cached) " >&6
6701 else $as_nop
6702 if test -n "$STRIP"; then
6703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708 IFS=$as_save_IFS
6709 case $as_dir in #(((
6710 '') as_dir=./ ;;
6711 */) ;;
6712 *) as_dir=$as_dir/ ;;
6713 esac
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 STRIP=$ac_cv_prog_STRIP
6727 if test -n "$STRIP"; then
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6729 printf "%s\n" "$STRIP" >&6; }
6730 else
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 printf "%s\n" "no" >&6; }
6733 fi
6734
6735
6736 fi
6737 if test -z "$ac_cv_prog_STRIP"; then
6738 ac_ct_STRIP=$STRIP
6739 # Extract the first word of "strip", so it can be a program name with args.
6740 set dummy strip; ac_word=$2
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 printf %s "checking for $ac_word... " >&6; }
6743 if test ${ac_cv_prog_ac_ct_STRIP+y}
6744 then :
6745 printf %s "(cached) " >&6
6746 else $as_nop
6747 if test -n "$ac_ct_STRIP"; then
6748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753 IFS=$as_save_IFS
6754 case $as_dir in #(((
6755 '') as_dir=./ ;;
6756 */) ;;
6757 *) as_dir=$as_dir/ ;;
6758 esac
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_ac_ct_STRIP="strip"
6762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6772 if test -n "$ac_ct_STRIP"; then
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6774 printf "%s\n" "$ac_ct_STRIP" >&6; }
6775 else
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 printf "%s\n" "no" >&6; }
6778 fi
6779
6780 if test "x$ac_ct_STRIP" = x; then
6781 STRIP=":"
6782 else
6783 case $cross_compiling:$ac_tool_warned in
6784 yes:)
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6786 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6787 ac_tool_warned=yes ;;
6788 esac
6789 STRIP=$ac_ct_STRIP
6790 fi
6791 else
6792 STRIP="$ac_cv_prog_STRIP"
6793 fi
6794
6795 test -z "$STRIP" && STRIP=:
6796
6797
6798
6799
6800
6801
6802 if test -n "$ac_tool_prefix"; then
6803 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6804 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 printf %s "checking for $ac_word... " >&6; }
6807 if test ${ac_cv_prog_RANLIB+y}
6808 then :
6809 printf %s "(cached) " >&6
6810 else $as_nop
6811 if test -n "$RANLIB"; then
6812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817 IFS=$as_save_IFS
6818 case $as_dir in #(((
6819 '') as_dir=./ ;;
6820 */) ;;
6821 *) as_dir=$as_dir/ ;;
6822 esac
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 RANLIB=$ac_cv_prog_RANLIB
6836 if test -n "$RANLIB"; then
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6838 printf "%s\n" "$RANLIB" >&6; }
6839 else
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 printf "%s\n" "no" >&6; }
6842 fi
6843
6844
6845 fi
6846 if test -z "$ac_cv_prog_RANLIB"; then
6847 ac_ct_RANLIB=$RANLIB
6848 # Extract the first word of "ranlib", so it can be a program name with args.
6849 set dummy ranlib; ac_word=$2
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 printf %s "checking for $ac_word... " >&6; }
6852 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6853 then :
6854 printf %s "(cached) " >&6
6855 else $as_nop
6856 if test -n "$ac_ct_RANLIB"; then
6857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 case $as_dir in #(((
6864 '') as_dir=./ ;;
6865 */) ;;
6866 *) as_dir=$as_dir/ ;;
6867 esac
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_RANLIB="ranlib"
6871 printf "%s\n" "$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_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6881 if test -n "$ac_ct_RANLIB"; then
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6883 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6884 else
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 printf "%s\n" "no" >&6; }
6887 fi
6888
6889 if test "x$ac_ct_RANLIB" = x; then
6890 RANLIB=":"
6891 else
6892 case $cross_compiling:$ac_tool_warned in
6893 yes:)
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896 ac_tool_warned=yes ;;
6897 esac
6898 RANLIB=$ac_ct_RANLIB
6899 fi
6900 else
6901 RANLIB="$ac_cv_prog_RANLIB"
6902 fi
6903
6904 test -z "$RANLIB" && RANLIB=:
6905
6906
6907
6908
6909
6910
6911 # Determine commands to create old-style static archives.
6912 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6913 old_postinstall_cmds='chmod 644 $oldlib'
6914 old_postuninstall_cmds=
6915
6916 if test -n "$RANLIB"; then
6917 case $host_os in
6918 bitrig* | openbsd*)
6919 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6920 ;;
6921 *)
6922 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6923 ;;
6924 esac
6925 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6926 fi
6927
6928 case $host_os in
6929 darwin*)
6930 lock_old_archive_extraction=yes ;;
6931 *)
6932 lock_old_archive_extraction=no ;;
6933 esac
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973 # If no C compiler was specified, use CC.
6974 LTCC=${LTCC-"$CC"}
6975
6976 # If no C compiler flags were specified, use CFLAGS.
6977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6978
6979 # Allow CC to be a program name with arguments.
6980 compiler=$CC
6981
6982
6983 # Check for command to grab the raw symbol name followed by C symbol from nm.
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6985 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6986 if test ${lt_cv_sys_global_symbol_pipe+y}
6987 then :
6988 printf %s "(cached) " >&6
6989 else $as_nop
6990
6991 # These are sane defaults that work on at least a few old systems.
6992 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6993
6994 # Character class describing NM global symbol codes.
6995 symcode='[BCDEGRST]'
6996
6997 # Regexp to match symbols that can be accessed directly from C.
6998 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6999
7000 # Define system-specific variables.
7001 case $host_os in
7002 aix*)
7003 symcode='[BCDT]'
7004 ;;
7005 cygwin* | mingw* | pw32* | cegcc*)
7006 symcode='[ABCDGISTW]'
7007 ;;
7008 hpux*)
7009 if test ia64 = "$host_cpu"; then
7010 symcode='[ABCDEGRST]'
7011 fi
7012 ;;
7013 irix* | nonstopux*)
7014 symcode='[BCDEGRST]'
7015 ;;
7016 osf*)
7017 symcode='[BCDEGQRST]'
7018 ;;
7019 solaris*)
7020 symcode='[BDRT]'
7021 ;;
7022 sco3.2v5*)
7023 symcode='[DT]'
7024 ;;
7025 sysv4.2uw2*)
7026 symcode='[DT]'
7027 ;;
7028 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7029 symcode='[ABDT]'
7030 ;;
7031 sysv4)
7032 symcode='[DFNSTU]'
7033 ;;
7034 esac
7035
7036 # If we're using GNU nm, then use its standard symbol codes.
7037 case `$NM -V 2>&1` in
7038 *GNU* | *'with BFD'*)
7039 symcode='[ABCDGIRSTW]' ;;
7040 esac
7041
7042 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7043 # Gets list of data symbols to import.
7044 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7045 # Adjust the below global symbol transforms to fixup imported variables.
7046 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7047 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7048 lt_c_name_lib_hook="\
7049 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7050 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7051 else
7052 # Disable hooks by default.
7053 lt_cv_sys_global_symbol_to_import=
7054 lt_cdecl_hook=
7055 lt_c_name_hook=
7056 lt_c_name_lib_hook=
7057 fi
7058
7059 # Transform an extracted symbol line into a proper C declaration.
7060 # Some systems (esp. on ia64) link data and code symbols differently,
7061 # so use this general approach.
7062 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7063 $lt_cdecl_hook\
7064 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7065 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7066
7067 # Transform an extracted symbol line into symbol name and symbol address
7068 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7069 $lt_c_name_hook\
7070 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7071 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7072
7073 # Transform an extracted symbol line into symbol name with lib prefix and
7074 # symbol address.
7075 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7076 $lt_c_name_lib_hook\
7077 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7078 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7079 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7080
7081 # Handle CRLF in mingw tool chain
7082 opt_cr=
7083 case $build_os in
7084 mingw*)
7085 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7086 ;;
7087 esac
7088
7089 # Try without a prefix underscore, then with it.
7090 for ac_symprfx in "" "_"; do
7091
7092 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7093 symxfrm="\\1 $ac_symprfx\\2 \\2"
7094
7095 # Write the raw and C identifiers.
7096 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7097 # Fake it for dumpbin and say T for any non-static function,
7098 # D for any global variable and I for any imported variable.
7099 # Also find C++ and __fastcall symbols from MSVC++,
7100 # which start with @ or ?.
7101 lt_cv_sys_global_symbol_pipe="$AWK '"\
7102 " {last_section=section; section=\$ 3};"\
7103 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7104 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7105 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7106 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7107 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7108 " \$ 0!~/External *\|/{next};"\
7109 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7110 " {if(hide[section]) next};"\
7111 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7112 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7113 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7114 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7115 " ' prfx=^$ac_symprfx"
7116 else
7117 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7118 fi
7119 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7120
7121 # Check to see that the pipe works correctly.
7122 pipe_works=no
7123
7124 rm -f conftest*
7125 cat > conftest.$ac_ext <<_LT_EOF
7126 #ifdef __cplusplus
7127 extern "C" {
7128 #endif
7129 char nm_test_var;
7130 void nm_test_func(void);
7131 void nm_test_func(void){}
7132 #ifdef __cplusplus
7133 }
7134 #endif
7135 int main(){nm_test_var='a';nm_test_func();return(0);}
7136 _LT_EOF
7137
7138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7139 (eval $ac_compile) 2>&5
7140 ac_status=$?
7141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7142 test $ac_status = 0; }; then
7143 # Now try to grab the symbols.
7144 nlist=conftest.nm
7145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7146 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7147 ac_status=$?
7148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; } && test -s "$nlist"; then
7150 # Try sorting and uniquifying the output.
7151 if sort "$nlist" | uniq > "$nlist"T; then
7152 mv -f "$nlist"T "$nlist"
7153 else
7154 rm -f "$nlist"T
7155 fi
7156
7157 # Make sure that we snagged all the symbols we need.
7158 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7159 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7160 cat <<_LT_EOF > conftest.$ac_ext
7161 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7162 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7163 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7164 relocations are performed -- see ld's documentation on pseudo-relocs. */
7165 # define LT_DLSYM_CONST
7166 #elif defined __osf__
7167 /* This system does not cope well with relocations in const data. */
7168 # define LT_DLSYM_CONST
7169 #else
7170 # define LT_DLSYM_CONST const
7171 #endif
7172
7173 #ifdef __cplusplus
7174 extern "C" {
7175 #endif
7176
7177 _LT_EOF
7178 # Now generate the symbol file.
7179 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7180
7181 cat <<_LT_EOF >> conftest.$ac_ext
7182
7183 /* The mapping between symbol names and symbols. */
7184 LT_DLSYM_CONST struct {
7185 const char *name;
7186 void *address;
7187 }
7188 lt__PROGRAM__LTX_preloaded_symbols[] =
7189 {
7190 { "@PROGRAM@", (void *) 0 },
7191 _LT_EOF
7192 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7193 cat <<\_LT_EOF >> conftest.$ac_ext
7194 {0, (void *) 0}
7195 };
7196
7197 /* This works around a problem in FreeBSD linker */
7198 #ifdef FREEBSD_WORKAROUND
7199 static const void *lt_preloaded_setup() {
7200 return lt__PROGRAM__LTX_preloaded_symbols;
7201 }
7202 #endif
7203
7204 #ifdef __cplusplus
7205 }
7206 #endif
7207 _LT_EOF
7208 # Now try linking the two files.
7209 mv conftest.$ac_objext conftstm.$ac_objext
7210 lt_globsym_save_LIBS=$LIBS
7211 lt_globsym_save_CFLAGS=$CFLAGS
7212 LIBS=conftstm.$ac_objext
7213 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7215 (eval $ac_link) 2>&5
7216 ac_status=$?
7217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7218 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7219 pipe_works=yes
7220 fi
7221 LIBS=$lt_globsym_save_LIBS
7222 CFLAGS=$lt_globsym_save_CFLAGS
7223 else
7224 echo "cannot find nm_test_func in $nlist" >&5
7225 fi
7226 else
7227 echo "cannot find nm_test_var in $nlist" >&5
7228 fi
7229 else
7230 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7231 fi
7232 else
7233 echo "$progname: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7235 fi
7236 rm -rf conftest* conftst*
7237
7238 # Do not use the global_symbol_pipe unless it works.
7239 if test yes = "$pipe_works"; then
7240 break
7241 else
7242 lt_cv_sys_global_symbol_pipe=
7243 fi
7244 done
7245
7246 fi
7247
7248 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7249 lt_cv_sys_global_symbol_to_cdecl=
7250 fi
7251 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7253 printf "%s\n" "failed" >&6; }
7254 else
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7256 printf "%s\n" "ok" >&6; }
7257 fi
7258
7259 # Response file support.
7260 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7261 nm_file_list_spec='@'
7262 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7263 nm_file_list_spec='@'
7264 fi
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7303 printf %s "checking for sysroot... " >&6; }
7304
7305 # Check whether --with-sysroot was given.
7306 if test ${with_sysroot+y}
7307 then :
7308 withval=$with_sysroot;
7309 else $as_nop
7310 with_sysroot=no
7311 fi
7312
7313
7314 lt_sysroot=
7315 case $with_sysroot in #(
7316 yes)
7317 if test yes = "$GCC"; then
7318 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7319 fi
7320 ;; #(
7321 /*)
7322 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7323 ;; #(
7324 no|'')
7325 ;; #(
7326 *)
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7328 printf "%s\n" "$with_sysroot" >&6; }
7329 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7330 ;;
7331 esac
7332
7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7334 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7335
7336
7337
7338
7339
7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7341 printf %s "checking for a working dd... " >&6; }
7342 if test ${ac_cv_path_lt_DD+y}
7343 then :
7344 printf %s "(cached) " >&6
7345 else $as_nop
7346 printf 0123456789abcdef0123456789abcdef >conftest.i
7347 cat conftest.i conftest.i >conftest2.i
7348 : ${lt_DD:=$DD}
7349 if test -z "$lt_DD"; then
7350 ac_path_lt_DD_found=false
7351 # Loop through the user's path and test for each of PROGNAME-LIST
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355 IFS=$as_save_IFS
7356 case $as_dir in #(((
7357 '') as_dir=./ ;;
7358 */) ;;
7359 *) as_dir=$as_dir/ ;;
7360 esac
7361 for ac_prog in dd
7362 do
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7365 as_fn_executable_p "$ac_path_lt_DD" || continue
7366 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7367 cmp -s conftest.i conftest.out \
7368 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7369 fi
7370 $ac_path_lt_DD_found && break 3
7371 done
7372 done
7373 done
7374 IFS=$as_save_IFS
7375 if test -z "$ac_cv_path_lt_DD"; then
7376 :
7377 fi
7378 else
7379 ac_cv_path_lt_DD=$lt_DD
7380 fi
7381
7382 rm -f conftest.i conftest2.i conftest.out
7383 fi
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7385 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7386
7387
7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7389 printf %s "checking how to truncate binary pipes... " >&6; }
7390 if test ${lt_cv_truncate_bin+y}
7391 then :
7392 printf %s "(cached) " >&6
7393 else $as_nop
7394 printf 0123456789abcdef0123456789abcdef >conftest.i
7395 cat conftest.i conftest.i >conftest2.i
7396 lt_cv_truncate_bin=
7397 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7398 cmp -s conftest.i conftest.out \
7399 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7400 fi
7401 rm -f conftest.i conftest2.i conftest.out
7402 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7403 fi
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7405 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7406
7407
7408
7409
7410
7411
7412
7413 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7414 func_cc_basename ()
7415 {
7416 for cc_temp in $*""; do
7417 case $cc_temp in
7418 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7419 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7420 \-*) ;;
7421 *) break;;
7422 esac
7423 done
7424 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7425 }
7426
7427 # Check whether --enable-libtool-lock was given.
7428 if test ${enable_libtool_lock+y}
7429 then :
7430 enableval=$enable_libtool_lock;
7431 fi
7432
7433 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7434
7435 # Some flags need to be propagated to the compiler or linker for good
7436 # libtool support.
7437 case $host in
7438 ia64-*-hpux*)
7439 # Find out what ABI is being produced by ac_compile, and set mode
7440 # options accordingly.
7441 echo 'int i;' > conftest.$ac_ext
7442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7443 (eval $ac_compile) 2>&5
7444 ac_status=$?
7445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7446 test $ac_status = 0; }; then
7447 case `/usr/bin/file conftest.$ac_objext` in
7448 *ELF-32*)
7449 HPUX_IA64_MODE=32
7450 ;;
7451 *ELF-64*)
7452 HPUX_IA64_MODE=64
7453 ;;
7454 esac
7455 fi
7456 rm -rf conftest*
7457 ;;
7458 *-*-irix6*)
7459 # Find out what ABI is being produced by ac_compile, and set linker
7460 # options accordingly.
7461 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7463 (eval $ac_compile) 2>&5
7464 ac_status=$?
7465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7466 test $ac_status = 0; }; then
7467 if test yes = "$lt_cv_prog_gnu_ld"; then
7468 case `/usr/bin/file conftest.$ac_objext` in
7469 *32-bit*)
7470 LD="${LD-ld} -melf32bsmip"
7471 ;;
7472 *N32*)
7473 LD="${LD-ld} -melf32bmipn32"
7474 ;;
7475 *64-bit*)
7476 LD="${LD-ld} -melf64bmip"
7477 ;;
7478 esac
7479 else
7480 case `/usr/bin/file conftest.$ac_objext` in
7481 *32-bit*)
7482 LD="${LD-ld} -32"
7483 ;;
7484 *N32*)
7485 LD="${LD-ld} -n32"
7486 ;;
7487 *64-bit*)
7488 LD="${LD-ld} -64"
7489 ;;
7490 esac
7491 fi
7492 fi
7493 rm -rf conftest*
7494 ;;
7495
7496 mips64*-*linux*)
7497 # Find out what ABI is being produced by ac_compile, and set linker
7498 # options accordingly.
7499 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7501 (eval $ac_compile) 2>&5
7502 ac_status=$?
7503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504 test $ac_status = 0; }; then
7505 emul=elf
7506 case `/usr/bin/file conftest.$ac_objext` in
7507 *32-bit*)
7508 emul="${emul}32"
7509 ;;
7510 *64-bit*)
7511 emul="${emul}64"
7512 ;;
7513 esac
7514 case `/usr/bin/file conftest.$ac_objext` in
7515 *MSB*)
7516 emul="${emul}btsmip"
7517 ;;
7518 *LSB*)
7519 emul="${emul}ltsmip"
7520 ;;
7521 esac
7522 case `/usr/bin/file conftest.$ac_objext` in
7523 *N32*)
7524 emul="${emul}n32"
7525 ;;
7526 esac
7527 LD="${LD-ld} -m $emul"
7528 fi
7529 rm -rf conftest*
7530 ;;
7531
7532 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7533 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7534 # Find out what ABI is being produced by ac_compile, and set linker
7535 # options accordingly. Note that the listed cases only cover the
7536 # situations where additional linker options are needed (such as when
7537 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7538 # vice versa); the common cases where no linker options are needed do
7539 # not appear in the list.
7540 echo 'int i;' > conftest.$ac_ext
7541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7542 (eval $ac_compile) 2>&5
7543 ac_status=$?
7544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545 test $ac_status = 0; }; then
7546 case `/usr/bin/file conftest.o` in
7547 *32-bit*)
7548 case $host in
7549 x86_64-*kfreebsd*-gnu)
7550 LD="${LD-ld} -m elf_i386_fbsd"
7551 ;;
7552 x86_64-*linux*)
7553 case `/usr/bin/file conftest.o` in
7554 *x86-64*)
7555 LD="${LD-ld} -m elf32_x86_64"
7556 ;;
7557 *)
7558 LD="${LD-ld} -m elf_i386"
7559 ;;
7560 esac
7561 ;;
7562 powerpc64le-*linux*)
7563 LD="${LD-ld} -m elf32lppclinux"
7564 ;;
7565 powerpc64-*linux*)
7566 LD="${LD-ld} -m elf32ppclinux"
7567 ;;
7568 s390x-*linux*)
7569 LD="${LD-ld} -m elf_s390"
7570 ;;
7571 sparc64-*linux*)
7572 LD="${LD-ld} -m elf32_sparc"
7573 ;;
7574 esac
7575 ;;
7576 *64-bit*)
7577 case $host in
7578 x86_64-*kfreebsd*-gnu)
7579 LD="${LD-ld} -m elf_x86_64_fbsd"
7580 ;;
7581 x86_64-*linux*)
7582 LD="${LD-ld} -m elf_x86_64"
7583 ;;
7584 powerpcle-*linux*)
7585 LD="${LD-ld} -m elf64lppc"
7586 ;;
7587 powerpc-*linux*)
7588 LD="${LD-ld} -m elf64ppc"
7589 ;;
7590 s390*-*linux*|s390*-*tpf*)
7591 LD="${LD-ld} -m elf64_s390"
7592 ;;
7593 sparc*-*linux*)
7594 LD="${LD-ld} -m elf64_sparc"
7595 ;;
7596 esac
7597 ;;
7598 esac
7599 fi
7600 rm -rf conftest*
7601 ;;
7602
7603 *-*-sco3.2v5*)
7604 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7605 SAVE_CFLAGS=$CFLAGS
7606 CFLAGS="$CFLAGS -belf"
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7608 printf %s "checking whether the C compiler needs -belf... " >&6; }
7609 if test ${lt_cv_cc_needs_belf+y}
7610 then :
7611 printf %s "(cached) " >&6
7612 else $as_nop
7613 ac_ext=c
7614 ac_cpp='$CPP $CPPFLAGS'
7615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7618
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621
7622 int
7623 main (void)
7624 {
7625
7626 ;
7627 return 0;
7628 }
7629 _ACEOF
7630 if ac_fn_c_try_link "$LINENO"
7631 then :
7632 lt_cv_cc_needs_belf=yes
7633 else $as_nop
7634 lt_cv_cc_needs_belf=no
7635 fi
7636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7637 conftest$ac_exeext conftest.$ac_ext
7638 ac_ext=c
7639 ac_cpp='$CPP $CPPFLAGS'
7640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7643
7644 fi
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7646 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7647 if test yes != "$lt_cv_cc_needs_belf"; then
7648 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7649 CFLAGS=$SAVE_CFLAGS
7650 fi
7651 ;;
7652 *-*solaris*)
7653 # Find out what ABI is being produced by ac_compile, and set linker
7654 # options accordingly.
7655 echo 'int i;' > conftest.$ac_ext
7656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7657 (eval $ac_compile) 2>&5
7658 ac_status=$?
7659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; }; then
7661 case `/usr/bin/file conftest.o` in
7662 *64-bit*)
7663 case $lt_cv_prog_gnu_ld in
7664 yes*)
7665 case $host in
7666 i?86-*-solaris*|x86_64-*-solaris*)
7667 LD="${LD-ld} -m elf_x86_64"
7668 ;;
7669 sparc*-*-solaris*)
7670 LD="${LD-ld} -m elf64_sparc"
7671 ;;
7672 esac
7673 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7674 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7675 LD=${LD-ld}_sol2
7676 fi
7677 ;;
7678 *)
7679 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7680 LD="${LD-ld} -64"
7681 fi
7682 ;;
7683 esac
7684 ;;
7685 esac
7686 fi
7687 rm -rf conftest*
7688 ;;
7689 esac
7690
7691 need_locks=$enable_libtool_lock
7692
7693 if test -n "$ac_tool_prefix"; then
7694 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7695 set dummy ${ac_tool_prefix}mt; ac_word=$2
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 printf %s "checking for $ac_word... " >&6; }
7698 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7699 then :
7700 printf %s "(cached) " >&6
7701 else $as_nop
7702 if test -n "$MANIFEST_TOOL"; then
7703 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708 IFS=$as_save_IFS
7709 case $as_dir in #(((
7710 '') as_dir=./ ;;
7711 */) ;;
7712 *) as_dir=$as_dir/ ;;
7713 esac
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7716 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7718 break 2
7719 fi
7720 done
7721 done
7722 IFS=$as_save_IFS
7723
7724 fi
7725 fi
7726 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7727 if test -n "$MANIFEST_TOOL"; then
7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7729 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7730 else
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 printf "%s\n" "no" >&6; }
7733 fi
7734
7735
7736 fi
7737 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7738 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7739 # Extract the first word of "mt", so it can be a program name with args.
7740 set dummy mt; ac_word=$2
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 printf %s "checking for $ac_word... " >&6; }
7743 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7744 then :
7745 printf %s "(cached) " >&6
7746 else $as_nop
7747 if test -n "$ac_ct_MANIFEST_TOOL"; then
7748 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753 IFS=$as_save_IFS
7754 case $as_dir in #(((
7755 '') as_dir=./ ;;
7756 */) ;;
7757 *) as_dir=$as_dir/ ;;
7758 esac
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7772 if test -n "$ac_ct_MANIFEST_TOOL"; then
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7774 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7775 else
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 printf "%s\n" "no" >&6; }
7778 fi
7779
7780 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7781 MANIFEST_TOOL=":"
7782 else
7783 case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7790 fi
7791 else
7792 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7793 fi
7794
7795 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7797 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7798 if test ${lt_cv_path_mainfest_tool+y}
7799 then :
7800 printf %s "(cached) " >&6
7801 else $as_nop
7802 lt_cv_path_mainfest_tool=no
7803 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7804 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7805 cat conftest.err >&5
7806 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7807 lt_cv_path_mainfest_tool=yes
7808 fi
7809 rm -f conftest*
7810 fi
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7812 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7813 if test yes != "$lt_cv_path_mainfest_tool"; then
7814 MANIFEST_TOOL=:
7815 fi
7816
7817
7818
7819
7820
7821
7822 case $host_os in
7823 rhapsody* | darwin*)
7824 if test -n "$ac_tool_prefix"; then
7825 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7826 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 printf %s "checking for $ac_word... " >&6; }
7829 if test ${ac_cv_prog_DSYMUTIL+y}
7830 then :
7831 printf %s "(cached) " >&6
7832 else $as_nop
7833 if test -n "$DSYMUTIL"; then
7834 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839 IFS=$as_save_IFS
7840 case $as_dir in #(((
7841 '') as_dir=./ ;;
7842 */) ;;
7843 *) as_dir=$as_dir/ ;;
7844 esac
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7847 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7849 break 2
7850 fi
7851 done
7852 done
7853 IFS=$as_save_IFS
7854
7855 fi
7856 fi
7857 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7858 if test -n "$DSYMUTIL"; then
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7860 printf "%s\n" "$DSYMUTIL" >&6; }
7861 else
7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 printf "%s\n" "no" >&6; }
7864 fi
7865
7866
7867 fi
7868 if test -z "$ac_cv_prog_DSYMUTIL"; then
7869 ac_ct_DSYMUTIL=$DSYMUTIL
7870 # Extract the first word of "dsymutil", so it can be a program name with args.
7871 set dummy dsymutil; ac_word=$2
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 printf %s "checking for $ac_word... " >&6; }
7874 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7875 then :
7876 printf %s "(cached) " >&6
7877 else $as_nop
7878 if test -n "$ac_ct_DSYMUTIL"; then
7879 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7883 do
7884 IFS=$as_save_IFS
7885 case $as_dir in #(((
7886 '') as_dir=./ ;;
7887 */) ;;
7888 *) as_dir=$as_dir/ ;;
7889 esac
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896 done
7897 done
7898 IFS=$as_save_IFS
7899
7900 fi
7901 fi
7902 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7903 if test -n "$ac_ct_DSYMUTIL"; then
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7905 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7906 else
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 printf "%s\n" "no" >&6; }
7909 fi
7910
7911 if test "x$ac_ct_DSYMUTIL" = x; then
7912 DSYMUTIL=":"
7913 else
7914 case $cross_compiling:$ac_tool_warned in
7915 yes:)
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918 ac_tool_warned=yes ;;
7919 esac
7920 DSYMUTIL=$ac_ct_DSYMUTIL
7921 fi
7922 else
7923 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7924 fi
7925
7926 if test -n "$ac_tool_prefix"; then
7927 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7928 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 printf %s "checking for $ac_word... " >&6; }
7931 if test ${ac_cv_prog_NMEDIT+y}
7932 then :
7933 printf %s "(cached) " >&6
7934 else $as_nop
7935 if test -n "$NMEDIT"; then
7936 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941 IFS=$as_save_IFS
7942 case $as_dir in #(((
7943 '') as_dir=./ ;;
7944 */) ;;
7945 *) as_dir=$as_dir/ ;;
7946 esac
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7949 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7951 break 2
7952 fi
7953 done
7954 done
7955 IFS=$as_save_IFS
7956
7957 fi
7958 fi
7959 NMEDIT=$ac_cv_prog_NMEDIT
7960 if test -n "$NMEDIT"; then
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7962 printf "%s\n" "$NMEDIT" >&6; }
7963 else
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 printf "%s\n" "no" >&6; }
7966 fi
7967
7968
7969 fi
7970 if test -z "$ac_cv_prog_NMEDIT"; then
7971 ac_ct_NMEDIT=$NMEDIT
7972 # Extract the first word of "nmedit", so it can be a program name with args.
7973 set dummy nmedit; ac_word=$2
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 printf %s "checking for $ac_word... " >&6; }
7976 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7977 then :
7978 printf %s "(cached) " >&6
7979 else $as_nop
7980 if test -n "$ac_ct_NMEDIT"; then
7981 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 case $as_dir in #(((
7988 '') as_dir=./ ;;
7989 */) ;;
7990 *) as_dir=$as_dir/ ;;
7991 esac
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998 done
7999 done
8000 IFS=$as_save_IFS
8001
8002 fi
8003 fi
8004 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8005 if test -n "$ac_ct_NMEDIT"; then
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8007 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8008 else
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 printf "%s\n" "no" >&6; }
8011 fi
8012
8013 if test "x$ac_ct_NMEDIT" = x; then
8014 NMEDIT=":"
8015 else
8016 case $cross_compiling:$ac_tool_warned in
8017 yes:)
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8019 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020 ac_tool_warned=yes ;;
8021 esac
8022 NMEDIT=$ac_ct_NMEDIT
8023 fi
8024 else
8025 NMEDIT="$ac_cv_prog_NMEDIT"
8026 fi
8027
8028 if test -n "$ac_tool_prefix"; then
8029 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8030 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 printf %s "checking for $ac_word... " >&6; }
8033 if test ${ac_cv_prog_LIPO+y}
8034 then :
8035 printf %s "(cached) " >&6
8036 else $as_nop
8037 if test -n "$LIPO"; then
8038 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8039 else
8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 for as_dir in $PATH
8042 do
8043 IFS=$as_save_IFS
8044 case $as_dir in #(((
8045 '') as_dir=./ ;;
8046 */) ;;
8047 *) as_dir=$as_dir/ ;;
8048 esac
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8051 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8053 break 2
8054 fi
8055 done
8056 done
8057 IFS=$as_save_IFS
8058
8059 fi
8060 fi
8061 LIPO=$ac_cv_prog_LIPO
8062 if test -n "$LIPO"; then
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8064 printf "%s\n" "$LIPO" >&6; }
8065 else
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 printf "%s\n" "no" >&6; }
8068 fi
8069
8070
8071 fi
8072 if test -z "$ac_cv_prog_LIPO"; then
8073 ac_ct_LIPO=$LIPO
8074 # Extract the first word of "lipo", so it can be a program name with args.
8075 set dummy lipo; ac_word=$2
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 printf %s "checking for $ac_word... " >&6; }
8078 if test ${ac_cv_prog_ac_ct_LIPO+y}
8079 then :
8080 printf %s "(cached) " >&6
8081 else $as_nop
8082 if test -n "$ac_ct_LIPO"; then
8083 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088 IFS=$as_save_IFS
8089 case $as_dir in #(((
8090 '') as_dir=./ ;;
8091 */) ;;
8092 *) as_dir=$as_dir/ ;;
8093 esac
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8096 ac_cv_prog_ac_ct_LIPO="lipo"
8097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100 done
8101 done
8102 IFS=$as_save_IFS
8103
8104 fi
8105 fi
8106 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8107 if test -n "$ac_ct_LIPO"; then
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8109 printf "%s\n" "$ac_ct_LIPO" >&6; }
8110 else
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 printf "%s\n" "no" >&6; }
8113 fi
8114
8115 if test "x$ac_ct_LIPO" = x; then
8116 LIPO=":"
8117 else
8118 case $cross_compiling:$ac_tool_warned in
8119 yes:)
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8121 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122 ac_tool_warned=yes ;;
8123 esac
8124 LIPO=$ac_ct_LIPO
8125 fi
8126 else
8127 LIPO="$ac_cv_prog_LIPO"
8128 fi
8129
8130 if test -n "$ac_tool_prefix"; then
8131 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8132 set dummy ${ac_tool_prefix}otool; ac_word=$2
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 printf %s "checking for $ac_word... " >&6; }
8135 if test ${ac_cv_prog_OTOOL+y}
8136 then :
8137 printf %s "(cached) " >&6
8138 else $as_nop
8139 if test -n "$OTOOL"; then
8140 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8144 do
8145 IFS=$as_save_IFS
8146 case $as_dir in #(((
8147 '') as_dir=./ ;;
8148 */) ;;
8149 *) as_dir=$as_dir/ ;;
8150 esac
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8153 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8155 break 2
8156 fi
8157 done
8158 done
8159 IFS=$as_save_IFS
8160
8161 fi
8162 fi
8163 OTOOL=$ac_cv_prog_OTOOL
8164 if test -n "$OTOOL"; then
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8166 printf "%s\n" "$OTOOL" >&6; }
8167 else
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 printf "%s\n" "no" >&6; }
8170 fi
8171
8172
8173 fi
8174 if test -z "$ac_cv_prog_OTOOL"; then
8175 ac_ct_OTOOL=$OTOOL
8176 # Extract the first word of "otool", so it can be a program name with args.
8177 set dummy otool; ac_word=$2
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 printf %s "checking for $ac_word... " >&6; }
8180 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8181 then :
8182 printf %s "(cached) " >&6
8183 else $as_nop
8184 if test -n "$ac_ct_OTOOL"; then
8185 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190 IFS=$as_save_IFS
8191 case $as_dir in #(((
8192 '') as_dir=./ ;;
8193 */) ;;
8194 *) as_dir=$as_dir/ ;;
8195 esac
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8198 ac_cv_prog_ac_ct_OTOOL="otool"
8199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8200 break 2
8201 fi
8202 done
8203 done
8204 IFS=$as_save_IFS
8205
8206 fi
8207 fi
8208 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8209 if test -n "$ac_ct_OTOOL"; then
8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8211 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8212 else
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 printf "%s\n" "no" >&6; }
8215 fi
8216
8217 if test "x$ac_ct_OTOOL" = x; then
8218 OTOOL=":"
8219 else
8220 case $cross_compiling:$ac_tool_warned in
8221 yes:)
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8224 ac_tool_warned=yes ;;
8225 esac
8226 OTOOL=$ac_ct_OTOOL
8227 fi
8228 else
8229 OTOOL="$ac_cv_prog_OTOOL"
8230 fi
8231
8232 if test -n "$ac_tool_prefix"; then
8233 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8234 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 printf %s "checking for $ac_word... " >&6; }
8237 if test ${ac_cv_prog_OTOOL64+y}
8238 then :
8239 printf %s "(cached) " >&6
8240 else $as_nop
8241 if test -n "$OTOOL64"; then
8242 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8243 else
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8246 do
8247 IFS=$as_save_IFS
8248 case $as_dir in #(((
8249 '') as_dir=./ ;;
8250 */) ;;
8251 *) as_dir=$as_dir/ ;;
8252 esac
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8255 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8257 break 2
8258 fi
8259 done
8260 done
8261 IFS=$as_save_IFS
8262
8263 fi
8264 fi
8265 OTOOL64=$ac_cv_prog_OTOOL64
8266 if test -n "$OTOOL64"; then
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8268 printf "%s\n" "$OTOOL64" >&6; }
8269 else
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 printf "%s\n" "no" >&6; }
8272 fi
8273
8274
8275 fi
8276 if test -z "$ac_cv_prog_OTOOL64"; then
8277 ac_ct_OTOOL64=$OTOOL64
8278 # Extract the first word of "otool64", so it can be a program name with args.
8279 set dummy otool64; ac_word=$2
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281 printf %s "checking for $ac_word... " >&6; }
8282 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8283 then :
8284 printf %s "(cached) " >&6
8285 else $as_nop
8286 if test -n "$ac_ct_OTOOL64"; then
8287 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8288 else
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8291 do
8292 IFS=$as_save_IFS
8293 case $as_dir in #(((
8294 '') as_dir=./ ;;
8295 */) ;;
8296 *) as_dir=$as_dir/ ;;
8297 esac
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8300 ac_cv_prog_ac_ct_OTOOL64="otool64"
8301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8302 break 2
8303 fi
8304 done
8305 done
8306 IFS=$as_save_IFS
8307
8308 fi
8309 fi
8310 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8311 if test -n "$ac_ct_OTOOL64"; then
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8313 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8314 else
8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 printf "%s\n" "no" >&6; }
8317 fi
8318
8319 if test "x$ac_ct_OTOOL64" = x; then
8320 OTOOL64=":"
8321 else
8322 case $cross_compiling:$ac_tool_warned in
8323 yes:)
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8326 ac_tool_warned=yes ;;
8327 esac
8328 OTOOL64=$ac_ct_OTOOL64
8329 fi
8330 else
8331 OTOOL64="$ac_cv_prog_OTOOL64"
8332 fi
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8361 printf %s "checking for -single_module linker flag... " >&6; }
8362 if test ${lt_cv_apple_cc_single_mod+y}
8363 then :
8364 printf %s "(cached) " >&6
8365 else $as_nop
8366 lt_cv_apple_cc_single_mod=no
8367 if test -z "$LT_MULTI_MODULE"; then
8368 # By default we will add the -single_module flag. You can override
8369 # by either setting the environment variable LT_MULTI_MODULE
8370 # non-empty at configure time, or by adding -multi_module to the
8371 # link flags.
8372 rm -rf libconftest.dylib*
8373 echo "int foo(void){return 1;}" > conftest.c
8374 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8375 -dynamiclib -Wl,-single_module conftest.c" >&5
8376 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8377 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8378 _lt_result=$?
8379 # If there is a non-empty error log, and "single_module"
8380 # appears in it, assume the flag caused a linker warning
8381 if test -s conftest.err && $GREP single_module conftest.err; then
8382 cat conftest.err >&5
8383 # Otherwise, if the output was created with a 0 exit code from
8384 # the compiler, it worked.
8385 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8386 lt_cv_apple_cc_single_mod=yes
8387 else
8388 cat conftest.err >&5
8389 fi
8390 rm -rf libconftest.dylib*
8391 rm -f conftest.*
8392 fi
8393 fi
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8395 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8396
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8398 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8399 if test ${lt_cv_ld_exported_symbols_list+y}
8400 then :
8401 printf %s "(cached) " >&6
8402 else $as_nop
8403 lt_cv_ld_exported_symbols_list=no
8404 save_LDFLAGS=$LDFLAGS
8405 echo "_main" > conftest.sym
8406 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409
8410 int
8411 main (void)
8412 {
8413
8414 ;
8415 return 0;
8416 }
8417 _ACEOF
8418 if ac_fn_c_try_link "$LINENO"
8419 then :
8420 lt_cv_ld_exported_symbols_list=yes
8421 else $as_nop
8422 lt_cv_ld_exported_symbols_list=no
8423 fi
8424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8425 conftest$ac_exeext conftest.$ac_ext
8426 LDFLAGS=$save_LDFLAGS
8427
8428 fi
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8430 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8431
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8433 printf %s "checking for -force_load linker flag... " >&6; }
8434 if test ${lt_cv_ld_force_load+y}
8435 then :
8436 printf %s "(cached) " >&6
8437 else $as_nop
8438 lt_cv_ld_force_load=no
8439 cat > conftest.c << _LT_EOF
8440 int forced_loaded() { return 2;}
8441 _LT_EOF
8442 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8443 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8444 echo "$AR cru libconftest.a conftest.o" >&5
8445 $AR cru libconftest.a conftest.o 2>&5
8446 echo "$RANLIB libconftest.a" >&5
8447 $RANLIB libconftest.a 2>&5
8448 cat > conftest.c << _LT_EOF
8449 int main() { return 0;}
8450 _LT_EOF
8451 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8452 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8453 _lt_result=$?
8454 if test -s conftest.err && $GREP force_load conftest.err; then
8455 cat conftest.err >&5
8456 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8457 lt_cv_ld_force_load=yes
8458 else
8459 cat conftest.err >&5
8460 fi
8461 rm -f conftest.err libconftest.a conftest conftest.c
8462 rm -rf conftest.dSYM
8463
8464 fi
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8466 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8467 case $host_os in
8468 rhapsody* | darwin1.[012])
8469 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8470 darwin1.*)
8471 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8472 darwin*) # darwin 5.x on
8473 # if running on 10.5 or later, the deployment target defaults
8474 # to the OS version, if on x86, and 10.4, the deployment
8475 # target defaults to 10.4. Don't you love it?
8476 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8477 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8478 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8479 10.[012][,.]*)
8480 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8481 10.*)
8482 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8483 esac
8484 ;;
8485 esac
8486 if test yes = "$lt_cv_apple_cc_single_mod"; then
8487 _lt_dar_single_mod='$single_module'
8488 fi
8489 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8490 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8491 else
8492 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8493 fi
8494 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8495 _lt_dsymutil='~$DSYMUTIL $lib || :'
8496 else
8497 _lt_dsymutil=
8498 fi
8499 ;;
8500 esac
8501
8502 # func_munge_path_list VARIABLE PATH
8503 # -----------------------------------
8504 # VARIABLE is name of variable containing _space_ separated list of
8505 # directories to be munged by the contents of PATH, which is string
8506 # having a format:
8507 # "DIR[:DIR]:"
8508 # string "DIR[ DIR]" will be prepended to VARIABLE
8509 # ":DIR[:DIR]"
8510 # string "DIR[ DIR]" will be appended to VARIABLE
8511 # "DIRP[:DIRP]::[DIRA:]DIRA"
8512 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8513 # "DIRA[ DIRA]" will be appended to VARIABLE
8514 # "DIR[:DIR]"
8515 # VARIABLE will be replaced by "DIR[ DIR]"
8516 func_munge_path_list ()
8517 {
8518 case x$2 in
8519 x)
8520 ;;
8521 *:)
8522 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8523 ;;
8524 x:*)
8525 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8526 ;;
8527 *::*)
8528 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8529 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8530 ;;
8531 *)
8532 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8533 ;;
8534 esac
8535 }
8536
8537 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8538 "
8539 if test "x$ac_cv_header_dlfcn_h" = xyes
8540 then :
8541 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8542
8543 fi
8544
8545
8546
8547
8548
8549 # Set options
8550
8551
8552
8553 enable_dlopen=no
8554
8555
8556 enable_win32_dll=no
8557
8558
8559 # Check whether --enable-shared was given.
8560 if test ${enable_shared+y}
8561 then :
8562 enableval=$enable_shared; p=${PACKAGE-default}
8563 case $enableval in
8564 yes) enable_shared=yes ;;
8565 no) enable_shared=no ;;
8566 *)
8567 enable_shared=no
8568 # Look at the argument we got. We use all the common list separators.
8569 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8570 for pkg in $enableval; do
8571 IFS=$lt_save_ifs
8572 if test "X$pkg" = "X$p"; then
8573 enable_shared=yes
8574 fi
8575 done
8576 IFS=$lt_save_ifs
8577 ;;
8578 esac
8579 else $as_nop
8580 enable_shared=yes
8581 fi
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591 # Check whether --enable-static was given.
8592 if test ${enable_static+y}
8593 then :
8594 enableval=$enable_static; p=${PACKAGE-default}
8595 case $enableval in
8596 yes) enable_static=yes ;;
8597 no) enable_static=no ;;
8598 *)
8599 enable_static=no
8600 # Look at the argument we got. We use all the common list separators.
8601 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8602 for pkg in $enableval; do
8603 IFS=$lt_save_ifs
8604 if test "X$pkg" = "X$p"; then
8605 enable_static=yes
8606 fi
8607 done
8608 IFS=$lt_save_ifs
8609 ;;
8610 esac
8611 else $as_nop
8612 enable_static=yes
8613 fi
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624 # Check whether --with-pic was given.
8625 if test ${with_pic+y}
8626 then :
8627 withval=$with_pic; lt_p=${PACKAGE-default}
8628 case $withval in
8629 yes|no) pic_mode=$withval ;;
8630 *)
8631 pic_mode=default
8632 # Look at the argument we got. We use all the common list separators.
8633 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8634 for lt_pkg in $withval; do
8635 IFS=$lt_save_ifs
8636 if test "X$lt_pkg" = "X$lt_p"; then
8637 pic_mode=yes
8638 fi
8639 done
8640 IFS=$lt_save_ifs
8641 ;;
8642 esac
8643 else $as_nop
8644 pic_mode=default
8645 fi
8646
8647
8648
8649
8650
8651
8652
8653
8654 # Check whether --enable-fast-install was given.
8655 if test ${enable_fast_install+y}
8656 then :
8657 enableval=$enable_fast_install; p=${PACKAGE-default}
8658 case $enableval in
8659 yes) enable_fast_install=yes ;;
8660 no) enable_fast_install=no ;;
8661 *)
8662 enable_fast_install=no
8663 # Look at the argument we got. We use all the common list separators.
8664 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8665 for pkg in $enableval; do
8666 IFS=$lt_save_ifs
8667 if test "X$pkg" = "X$p"; then
8668 enable_fast_install=yes
8669 fi
8670 done
8671 IFS=$lt_save_ifs
8672 ;;
8673 esac
8674 else $as_nop
8675 enable_fast_install=yes
8676 fi
8677
8678
8679
8680
8681
8682
8683
8684
8685 shared_archive_member_spec=
8686 case $host,$enable_shared in
8687 power*-*-aix[5-9]*,yes)
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8689 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8690
8691 # Check whether --with-aix-soname was given.
8692 if test ${with_aix_soname+y}
8693 then :
8694 withval=$with_aix_soname; case $withval in
8695 aix|svr4|both)
8696 ;;
8697 *)
8698 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8699 ;;
8700 esac
8701 lt_cv_with_aix_soname=$with_aix_soname
8702 else $as_nop
8703 if test ${lt_cv_with_aix_soname+y}
8704 then :
8705 printf %s "(cached) " >&6
8706 else $as_nop
8707 lt_cv_with_aix_soname=aix
8708 fi
8709
8710 with_aix_soname=$lt_cv_with_aix_soname
8711 fi
8712
8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8714 printf "%s\n" "$with_aix_soname" >&6; }
8715 if test aix != "$with_aix_soname"; then
8716 # For the AIX way of multilib, we name the shared archive member
8717 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8718 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8719 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8720 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8721 if test 64 = "${OBJECT_MODE-32}"; then
8722 shared_archive_member_spec=shr_64
8723 else
8724 shared_archive_member_spec=shr
8725 fi
8726 fi
8727 ;;
8728 *)
8729 with_aix_soname=aix
8730 ;;
8731 esac
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742 # This can be used to rebuild libtool when needed
8743 LIBTOOL_DEPS=$ltmain
8744
8745 # Always use our own libtool.
8746 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777 test -z "$LN_S" && LN_S="ln -s"
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792 if test -n "${ZSH_VERSION+set}"; then
8793 setopt NO_GLOB_SUBST
8794 fi
8795
8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8797 printf %s "checking for objdir... " >&6; }
8798 if test ${lt_cv_objdir+y}
8799 then :
8800 printf %s "(cached) " >&6
8801 else $as_nop
8802 rm -f .libs 2>/dev/null
8803 mkdir .libs 2>/dev/null
8804 if test -d .libs; then
8805 lt_cv_objdir=.libs
8806 else
8807 # MS-DOS does not allow filenames that begin with a dot.
8808 lt_cv_objdir=_libs
8809 fi
8810 rmdir .libs 2>/dev/null
8811 fi
8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8813 printf "%s\n" "$lt_cv_objdir" >&6; }
8814 objdir=$lt_cv_objdir
8815
8816
8817
8818
8819
8820 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8821
8822
8823
8824
8825 case $host_os in
8826 aix3*)
8827 # AIX sometimes has problems with the GCC collect2 program. For some
8828 # reason, if we set the COLLECT_NAMES environment variable, the problems
8829 # vanish in a puff of smoke.
8830 if test set != "${COLLECT_NAMES+set}"; then
8831 COLLECT_NAMES=
8832 export COLLECT_NAMES
8833 fi
8834 ;;
8835 esac
8836
8837 # Global variables:
8838 ofile=libtool
8839 can_build_shared=yes
8840
8841 # All known linkers require a '.a' archive for static linking (except MSVC,
8842 # which needs '.lib').
8843 libext=a
8844
8845 with_gnu_ld=$lt_cv_prog_gnu_ld
8846
8847 old_CC=$CC
8848 old_CFLAGS=$CFLAGS
8849
8850 # Set sane defaults for various variables
8851 test -z "$CC" && CC=cc
8852 test -z "$LTCC" && LTCC=$CC
8853 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8854 test -z "$LD" && LD=ld
8855 test -z "$ac_objext" && ac_objext=o
8856
8857 func_cc_basename $compiler
8858 cc_basename=$func_cc_basename_result
8859
8860
8861 # Only perform the check for file, if the check method requires it
8862 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8863 case $deplibs_check_method in
8864 file_magic*)
8865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8867 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8868 if test ${lt_cv_path_MAGIC_CMD+y}
8869 then :
8870 printf %s "(cached) " >&6
8871 else $as_nop
8872 case $MAGIC_CMD in
8873 [\\/*] | ?:[\\/]*)
8874 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8875 ;;
8876 *)
8877 lt_save_MAGIC_CMD=$MAGIC_CMD
8878 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8879 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8880 for ac_dir in $ac_dummy; do
8881 IFS=$lt_save_ifs
8882 test -z "$ac_dir" && ac_dir=.
8883 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8884 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8885 if test -n "$file_magic_test_file"; then
8886 case $deplibs_check_method in
8887 "file_magic "*)
8888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8889 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8891 $EGREP "$file_magic_regex" > /dev/null; then
8892 :
8893 else
8894 cat <<_LT_EOF 1>&2
8895
8896 *** Warning: the command libtool uses to detect shared libraries,
8897 *** $file_magic_cmd, produces output that libtool cannot recognize.
8898 *** The result is that libtool may fail to recognize shared libraries
8899 *** as such. This will affect the creation of libtool libraries that
8900 *** depend on shared libraries, but programs linked with such libtool
8901 *** libraries will work regardless of this problem. Nevertheless, you
8902 *** may want to report the problem to your system manager and/or to
8903 *** [email protected]
8904
8905 _LT_EOF
8906 fi ;;
8907 esac
8908 fi
8909 break
8910 fi
8911 done
8912 IFS=$lt_save_ifs
8913 MAGIC_CMD=$lt_save_MAGIC_CMD
8914 ;;
8915 esac
8916 fi
8917
8918 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8919 if test -n "$MAGIC_CMD"; then
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8921 printf "%s\n" "$MAGIC_CMD" >&6; }
8922 else
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924 printf "%s\n" "no" >&6; }
8925 fi
8926
8927
8928
8929
8930
8931 if test -z "$lt_cv_path_MAGIC_CMD"; then
8932 if test -n "$ac_tool_prefix"; then
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8934 printf %s "checking for file... " >&6; }
8935 if test ${lt_cv_path_MAGIC_CMD+y}
8936 then :
8937 printf %s "(cached) " >&6
8938 else $as_nop
8939 case $MAGIC_CMD in
8940 [\\/*] | ?:[\\/]*)
8941 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8942 ;;
8943 *)
8944 lt_save_MAGIC_CMD=$MAGIC_CMD
8945 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8946 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8947 for ac_dir in $ac_dummy; do
8948 IFS=$lt_save_ifs
8949 test -z "$ac_dir" && ac_dir=.
8950 if test -f "$ac_dir/file"; then
8951 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8952 if test -n "$file_magic_test_file"; then
8953 case $deplibs_check_method in
8954 "file_magic "*)
8955 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8956 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8958 $EGREP "$file_magic_regex" > /dev/null; then
8959 :
8960 else
8961 cat <<_LT_EOF 1>&2
8962
8963 *** Warning: the command libtool uses to detect shared libraries,
8964 *** $file_magic_cmd, produces output that libtool cannot recognize.
8965 *** The result is that libtool may fail to recognize shared libraries
8966 *** as such. This will affect the creation of libtool libraries that
8967 *** depend on shared libraries, but programs linked with such libtool
8968 *** libraries will work regardless of this problem. Nevertheless, you
8969 *** may want to report the problem to your system manager and/or to
8970 *** [email protected]
8971
8972 _LT_EOF
8973 fi ;;
8974 esac
8975 fi
8976 break
8977 fi
8978 done
8979 IFS=$lt_save_ifs
8980 MAGIC_CMD=$lt_save_MAGIC_CMD
8981 ;;
8982 esac
8983 fi
8984
8985 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8986 if test -n "$MAGIC_CMD"; then
8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8988 printf "%s\n" "$MAGIC_CMD" >&6; }
8989 else
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 printf "%s\n" "no" >&6; }
8992 fi
8993
8994
8995 else
8996 MAGIC_CMD=:
8997 fi
8998 fi
8999
9000 fi
9001 ;;
9002 esac
9003
9004 # Use C for the default configuration in the libtool script
9005
9006 lt_save_CC=$CC
9007 ac_ext=c
9008 ac_cpp='$CPP $CPPFLAGS'
9009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9012
9013
9014 # Source file extension for C test sources.
9015 ac_ext=c
9016
9017 # Object file extension for compiled C test sources.
9018 objext=o
9019 objext=$objext
9020
9021 # Code to be used in simple compile tests
9022 lt_simple_compile_test_code="int some_variable = 0;"
9023
9024 # Code to be used in simple link tests
9025 lt_simple_link_test_code='int main(){return(0);}'
9026
9027
9028
9029
9030
9031
9032
9033 # If no C compiler was specified, use CC.
9034 LTCC=${LTCC-"$CC"}
9035
9036 # If no C compiler flags were specified, use CFLAGS.
9037 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9038
9039 # Allow CC to be a program name with arguments.
9040 compiler=$CC
9041
9042 # Save the default compiler, since it gets overwritten when the other
9043 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9044 compiler_DEFAULT=$CC
9045
9046 # save warnings/boilerplate of simple test code
9047 ac_outfile=conftest.$ac_objext
9048 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9049 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9050 _lt_compiler_boilerplate=`cat conftest.err`
9051 $RM conftest*
9052
9053 ac_outfile=conftest.$ac_objext
9054 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9055 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9056 _lt_linker_boilerplate=`cat conftest.err`
9057 $RM -r conftest*
9058
9059
9060 ## CAVEAT EMPTOR:
9061 ## There is no encapsulation within the following macros, do not change
9062 ## the running order or otherwise move them around unless you know exactly
9063 ## what you are doing...
9064 if test -n "$compiler"; then
9065
9066 lt_prog_compiler_no_builtin_flag=
9067
9068 if test yes = "$GCC"; then
9069 case $cc_basename in
9070 nvcc*)
9071 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9072 *)
9073 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9074 esac
9075
9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9077 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9078 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9079 then :
9080 printf %s "(cached) " >&6
9081 else $as_nop
9082 lt_cv_prog_compiler_rtti_exceptions=no
9083 ac_outfile=conftest.$ac_objext
9084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9085 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9086 # Insert the option either (1) after the last *FLAGS variable, or
9087 # (2) before a word containing "conftest.", or (3) at the end.
9088 # Note that $ac_compile itself does not contain backslashes and begins
9089 # with a dollar sign (not a hyphen), so the echo should work correctly.
9090 # The option is referenced via a variable to avoid confusing sed.
9091 lt_compile=`echo "$ac_compile" | $SED \
9092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9094 -e 's:$: $lt_compiler_flag:'`
9095 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9096 (eval "$lt_compile" 2>conftest.err)
9097 ac_status=$?
9098 cat conftest.err >&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 if (exit $ac_status) && test -s "$ac_outfile"; then
9101 # The compiler can only warn and ignore the option if not recognized
9102 # So say no if there are warnings other than the usual output.
9103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9106 lt_cv_prog_compiler_rtti_exceptions=yes
9107 fi
9108 fi
9109 $RM conftest*
9110
9111 fi
9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9113 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9114
9115 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9116 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9117 else
9118 :
9119 fi
9120
9121 fi
9122
9123
9124
9125
9126
9127
9128 lt_prog_compiler_wl=
9129 lt_prog_compiler_pic=
9130 lt_prog_compiler_static=
9131
9132
9133 if test yes = "$GCC"; then
9134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_static='-static'
9136
9137 case $host_os in
9138 aix*)
9139 # All AIX code is PIC.
9140 if test ia64 = "$host_cpu"; then
9141 # AIX 5 now supports IA64 processor
9142 lt_prog_compiler_static='-Bstatic'
9143 fi
9144 lt_prog_compiler_pic='-fPIC'
9145 ;;
9146
9147 amigaos*)
9148 case $host_cpu in
9149 powerpc)
9150 # see comment about AmigaOS4 .so support
9151 lt_prog_compiler_pic='-fPIC'
9152 ;;
9153 m68k)
9154 # FIXME: we need at least 68020 code to build shared libraries, but
9155 # adding the '-m68020' flag to GCC prevents building anything better,
9156 # like '-m68040'.
9157 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9158 ;;
9159 esac
9160 ;;
9161
9162 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9163 # PIC is the default for these OSes.
9164 ;;
9165
9166 mingw* | cygwin* | pw32* | os2* | cegcc*)
9167 # This hack is so that the source file can tell whether it is being
9168 # built for inclusion in a dll (and should export symbols for example).
9169 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9170 # (--disable-auto-import) libraries
9171 lt_prog_compiler_pic='-DDLL_EXPORT'
9172 case $host_os in
9173 os2*)
9174 lt_prog_compiler_static='$wl-static'
9175 ;;
9176 esac
9177 ;;
9178
9179 darwin* | rhapsody*)
9180 # PIC is the default on this platform
9181 # Common symbols not allowed in MH_DYLIB files
9182 lt_prog_compiler_pic='-fno-common'
9183 ;;
9184
9185 haiku*)
9186 # PIC is the default for Haiku.
9187 # The "-static" flag exists, but is broken.
9188 lt_prog_compiler_static=
9189 ;;
9190
9191 hpux*)
9192 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9193 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9194 # sets the default TLS model and affects inlining.
9195 case $host_cpu in
9196 hppa*64*)
9197 # +Z the default
9198 ;;
9199 *)
9200 lt_prog_compiler_pic='-fPIC'
9201 ;;
9202 esac
9203 ;;
9204
9205 interix[3-9]*)
9206 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9207 # Instead, we relocate shared libraries at runtime.
9208 ;;
9209
9210 msdosdjgpp*)
9211 # Just because we use GCC doesn't mean we suddenly get shared libraries
9212 # on systems that don't support them.
9213 lt_prog_compiler_can_build_shared=no
9214 enable_shared=no
9215 ;;
9216
9217 *nto* | *qnx*)
9218 # QNX uses GNU C++, but need to define -shared option too, otherwise
9219 # it will coredump.
9220 lt_prog_compiler_pic='-fPIC -shared'
9221 ;;
9222
9223 sysv4*MP*)
9224 if test -d /usr/nec; then
9225 lt_prog_compiler_pic=-Kconform_pic
9226 fi
9227 ;;
9228
9229 *)
9230 lt_prog_compiler_pic='-fPIC'
9231 ;;
9232 esac
9233
9234 case $cc_basename in
9235 nvcc*) # Cuda Compiler Driver 2.2
9236 lt_prog_compiler_wl='-Xlinker '
9237 if test -n "$lt_prog_compiler_pic"; then
9238 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9239 fi
9240 ;;
9241 esac
9242 else
9243 # PORTME Check for flag to pass linker flags through the system compiler.
9244 case $host_os in
9245 aix*)
9246 lt_prog_compiler_wl='-Wl,'
9247 if test ia64 = "$host_cpu"; then
9248 # AIX 5 now supports IA64 processor
9249 lt_prog_compiler_static='-Bstatic'
9250 else
9251 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9252 fi
9253 ;;
9254
9255 darwin* | rhapsody*)
9256 # PIC is the default on this platform
9257 # Common symbols not allowed in MH_DYLIB files
9258 lt_prog_compiler_pic='-fno-common'
9259 case $cc_basename in
9260 nagfor*)
9261 # NAG Fortran compiler
9262 lt_prog_compiler_wl='-Wl,-Wl,,'
9263 lt_prog_compiler_pic='-PIC'
9264 lt_prog_compiler_static='-Bstatic'
9265 ;;
9266 esac
9267 ;;
9268
9269 mingw* | cygwin* | pw32* | os2* | cegcc*)
9270 # This hack is so that the source file can tell whether it is being
9271 # built for inclusion in a dll (and should export symbols for example).
9272 lt_prog_compiler_pic='-DDLL_EXPORT'
9273 case $host_os in
9274 os2*)
9275 lt_prog_compiler_static='$wl-static'
9276 ;;
9277 esac
9278 ;;
9279
9280 hpux9* | hpux10* | hpux11*)
9281 lt_prog_compiler_wl='-Wl,'
9282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9283 # not for PA HP-UX.
9284 case $host_cpu in
9285 hppa*64*|ia64*)
9286 # +Z the default
9287 ;;
9288 *)
9289 lt_prog_compiler_pic='+Z'
9290 ;;
9291 esac
9292 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9293 lt_prog_compiler_static='$wl-a ${wl}archive'
9294 ;;
9295
9296 irix5* | irix6* | nonstopux*)
9297 lt_prog_compiler_wl='-Wl,'
9298 # PIC (with -KPIC) is the default.
9299 lt_prog_compiler_static='-non_shared'
9300 ;;
9301
9302 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9303 case $cc_basename in
9304 # old Intel for x86_64, which still supported -KPIC.
9305 ecc*)
9306 lt_prog_compiler_wl='-Wl,'
9307 lt_prog_compiler_pic='-KPIC'
9308 lt_prog_compiler_static='-static'
9309 ;;
9310 # icc used to be incompatible with GCC.
9311 # ICC 10 doesn't accept -KPIC any more.
9312 icc* | ifort*)
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='-fPIC'
9315 lt_prog_compiler_static='-static'
9316 ;;
9317 # Lahey Fortran 8.1.
9318 lf95*)
9319 lt_prog_compiler_wl='-Wl,'
9320 lt_prog_compiler_pic='--shared'
9321 lt_prog_compiler_static='--static'
9322 ;;
9323 nagfor*)
9324 # NAG Fortran compiler
9325 lt_prog_compiler_wl='-Wl,-Wl,,'
9326 lt_prog_compiler_pic='-PIC'
9327 lt_prog_compiler_static='-Bstatic'
9328 ;;
9329 tcc*)
9330 # Fabrice Bellard et al's Tiny C Compiler
9331 lt_prog_compiler_wl='-Wl,'
9332 lt_prog_compiler_pic='-fPIC'
9333 lt_prog_compiler_static='-static'
9334 ;;
9335 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9336 # Portland Group compilers (*not* the Pentium gcc compiler,
9337 # which looks to be a dead project)
9338 lt_prog_compiler_wl='-Wl,'
9339 lt_prog_compiler_pic='-fpic'
9340 lt_prog_compiler_static='-Bstatic'
9341 ;;
9342 ccc*)
9343 lt_prog_compiler_wl='-Wl,'
9344 # All Alpha code is PIC.
9345 lt_prog_compiler_static='-non_shared'
9346 ;;
9347 xl* | bgxl* | bgf* | mpixl*)
9348 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9349 lt_prog_compiler_wl='-Wl,'
9350 lt_prog_compiler_pic='-qpic'
9351 lt_prog_compiler_static='-qstaticlink'
9352 ;;
9353 *)
9354 case `$CC -V 2>&1 | sed 5q` in
9355 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9356 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9357 lt_prog_compiler_pic='-KPIC'
9358 lt_prog_compiler_static='-Bstatic'
9359 lt_prog_compiler_wl=''
9360 ;;
9361 *Sun\ F* | *Sun*Fortran*)
9362 lt_prog_compiler_pic='-KPIC'
9363 lt_prog_compiler_static='-Bstatic'
9364 lt_prog_compiler_wl='-Qoption ld '
9365 ;;
9366 *Sun\ C*)
9367 # Sun C 5.9
9368 lt_prog_compiler_pic='-KPIC'
9369 lt_prog_compiler_static='-Bstatic'
9370 lt_prog_compiler_wl='-Wl,'
9371 ;;
9372 *Intel*\ [CF]*Compiler*)
9373 lt_prog_compiler_wl='-Wl,'
9374 lt_prog_compiler_pic='-fPIC'
9375 lt_prog_compiler_static='-static'
9376 ;;
9377 *Portland\ Group*)
9378 lt_prog_compiler_wl='-Wl,'
9379 lt_prog_compiler_pic='-fpic'
9380 lt_prog_compiler_static='-Bstatic'
9381 ;;
9382 esac
9383 ;;
9384 esac
9385 ;;
9386
9387 newsos6)
9388 lt_prog_compiler_pic='-KPIC'
9389 lt_prog_compiler_static='-Bstatic'
9390 ;;
9391
9392 *nto* | *qnx*)
9393 # QNX uses GNU C++, but need to define -shared option too, otherwise
9394 # it will coredump.
9395 lt_prog_compiler_pic='-fPIC -shared'
9396 ;;
9397
9398 osf3* | osf4* | osf5*)
9399 lt_prog_compiler_wl='-Wl,'
9400 # All OSF/1 code is PIC.
9401 lt_prog_compiler_static='-non_shared'
9402 ;;
9403
9404 rdos*)
9405 lt_prog_compiler_static='-non_shared'
9406 ;;
9407
9408 solaris*)
9409 lt_prog_compiler_pic='-KPIC'
9410 lt_prog_compiler_static='-Bstatic'
9411 case $cc_basename in
9412 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9413 lt_prog_compiler_wl='-Qoption ld ';;
9414 *)
9415 lt_prog_compiler_wl='-Wl,';;
9416 esac
9417 ;;
9418
9419 sunos4*)
9420 lt_prog_compiler_wl='-Qoption ld '
9421 lt_prog_compiler_pic='-PIC'
9422 lt_prog_compiler_static='-Bstatic'
9423 ;;
9424
9425 sysv4 | sysv4.2uw2* | sysv4.3*)
9426 lt_prog_compiler_wl='-Wl,'
9427 lt_prog_compiler_pic='-KPIC'
9428 lt_prog_compiler_static='-Bstatic'
9429 ;;
9430
9431 sysv4*MP*)
9432 if test -d /usr/nec; then
9433 lt_prog_compiler_pic='-Kconform_pic'
9434 lt_prog_compiler_static='-Bstatic'
9435 fi
9436 ;;
9437
9438 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9439 lt_prog_compiler_wl='-Wl,'
9440 lt_prog_compiler_pic='-KPIC'
9441 lt_prog_compiler_static='-Bstatic'
9442 ;;
9443
9444 unicos*)
9445 lt_prog_compiler_wl='-Wl,'
9446 lt_prog_compiler_can_build_shared=no
9447 ;;
9448
9449 uts4*)
9450 lt_prog_compiler_pic='-pic'
9451 lt_prog_compiler_static='-Bstatic'
9452 ;;
9453
9454 *)
9455 lt_prog_compiler_can_build_shared=no
9456 ;;
9457 esac
9458 fi
9459
9460 case $host_os in
9461 # For platforms that do not support PIC, -DPIC is meaningless:
9462 *djgpp*)
9463 lt_prog_compiler_pic=
9464 ;;
9465 *)
9466 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9467 ;;
9468 esac
9469
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9471 printf %s "checking for $compiler option to produce PIC... " >&6; }
9472 if test ${lt_cv_prog_compiler_pic+y}
9473 then :
9474 printf %s "(cached) " >&6
9475 else $as_nop
9476 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9477 fi
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9479 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9480 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9481
9482 #
9483 # Check to make sure the PIC flag actually works.
9484 #
9485 if test -n "$lt_prog_compiler_pic"; then
9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9487 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9488 if test ${lt_cv_prog_compiler_pic_works+y}
9489 then :
9490 printf %s "(cached) " >&6
9491 else $as_nop
9492 lt_cv_prog_compiler_pic_works=no
9493 ac_outfile=conftest.$ac_objext
9494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9495 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9496 # Insert the option either (1) after the last *FLAGS variable, or
9497 # (2) before a word containing "conftest.", or (3) at the end.
9498 # Note that $ac_compile itself does not contain backslashes and begins
9499 # with a dollar sign (not a hyphen), so the echo should work correctly.
9500 # The option is referenced via a variable to avoid confusing sed.
9501 lt_compile=`echo "$ac_compile" | $SED \
9502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9504 -e 's:$: $lt_compiler_flag:'`
9505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9506 (eval "$lt_compile" 2>conftest.err)
9507 ac_status=$?
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 if (exit $ac_status) && test -s "$ac_outfile"; then
9511 # The compiler can only warn and ignore the option if not recognized
9512 # So say no if there are warnings other than the usual output.
9513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9516 lt_cv_prog_compiler_pic_works=yes
9517 fi
9518 fi
9519 $RM conftest*
9520
9521 fi
9522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9523 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9524
9525 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9526 case $lt_prog_compiler_pic in
9527 "" | " "*) ;;
9528 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9529 esac
9530 else
9531 lt_prog_compiler_pic=
9532 lt_prog_compiler_can_build_shared=no
9533 fi
9534
9535 fi
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547 #
9548 # Check to make sure the static flag actually works.
9549 #
9550 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9552 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9553 if test ${lt_cv_prog_compiler_static_works+y}
9554 then :
9555 printf %s "(cached) " >&6
9556 else $as_nop
9557 lt_cv_prog_compiler_static_works=no
9558 save_LDFLAGS=$LDFLAGS
9559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9560 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9562 # The linker can only warn and ignore the option if not recognized
9563 # So say no if there are warnings
9564 if test -s conftest.err; then
9565 # Append any errors to the config.log.
9566 cat conftest.err 1>&5
9567 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9569 if diff conftest.exp conftest.er2 >/dev/null; then
9570 lt_cv_prog_compiler_static_works=yes
9571 fi
9572 else
9573 lt_cv_prog_compiler_static_works=yes
9574 fi
9575 fi
9576 $RM -r conftest*
9577 LDFLAGS=$save_LDFLAGS
9578
9579 fi
9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9581 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9582
9583 if test yes = "$lt_cv_prog_compiler_static_works"; then
9584 :
9585 else
9586 lt_prog_compiler_static=
9587 fi
9588
9589
9590
9591
9592
9593
9594
9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9596 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9597 if test ${lt_cv_prog_compiler_c_o+y}
9598 then :
9599 printf %s "(cached) " >&6
9600 else $as_nop
9601 lt_cv_prog_compiler_c_o=no
9602 $RM -r conftest 2>/dev/null
9603 mkdir conftest
9604 cd conftest
9605 mkdir out
9606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9607
9608 lt_compiler_flag="-o out/conftest2.$ac_objext"
9609 # Insert the option either (1) after the last *FLAGS variable, or
9610 # (2) before a word containing "conftest.", or (3) at the end.
9611 # Note that $ac_compile itself does not contain backslashes and begins
9612 # with a dollar sign (not a hyphen), so the echo should work correctly.
9613 lt_compile=`echo "$ac_compile" | $SED \
9614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9616 -e 's:$: $lt_compiler_flag:'`
9617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9618 (eval "$lt_compile" 2>out/conftest.err)
9619 ac_status=$?
9620 cat out/conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9623 then
9624 # The compiler can only warn and ignore the option if not recognized
9625 # So say no if there are warnings
9626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9629 lt_cv_prog_compiler_c_o=yes
9630 fi
9631 fi
9632 chmod u+w . 2>&5
9633 $RM conftest*
9634 # SGI C++ compiler will create directory out/ii_files/ for
9635 # template instantiation
9636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9637 $RM out/* && rmdir out
9638 cd ..
9639 $RM -r conftest
9640 $RM conftest*
9641
9642 fi
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9644 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9645
9646
9647
9648
9649
9650
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9652 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9653 if test ${lt_cv_prog_compiler_c_o+y}
9654 then :
9655 printf %s "(cached) " >&6
9656 else $as_nop
9657 lt_cv_prog_compiler_c_o=no
9658 $RM -r conftest 2>/dev/null
9659 mkdir conftest
9660 cd conftest
9661 mkdir out
9662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9663
9664 lt_compiler_flag="-o out/conftest2.$ac_objext"
9665 # Insert the option either (1) after the last *FLAGS variable, or
9666 # (2) before a word containing "conftest.", or (3) at the end.
9667 # Note that $ac_compile itself does not contain backslashes and begins
9668 # with a dollar sign (not a hyphen), so the echo should work correctly.
9669 lt_compile=`echo "$ac_compile" | $SED \
9670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9672 -e 's:$: $lt_compiler_flag:'`
9673 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9674 (eval "$lt_compile" 2>out/conftest.err)
9675 ac_status=$?
9676 cat out/conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9679 then
9680 # The compiler can only warn and ignore the option if not recognized
9681 # So say no if there are warnings
9682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9683 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9684 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9685 lt_cv_prog_compiler_c_o=yes
9686 fi
9687 fi
9688 chmod u+w . 2>&5
9689 $RM conftest*
9690 # SGI C++ compiler will create directory out/ii_files/ for
9691 # template instantiation
9692 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9693 $RM out/* && rmdir out
9694 cd ..
9695 $RM -r conftest
9696 $RM conftest*
9697
9698 fi
9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9700 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9701
9702
9703
9704
9705 hard_links=nottested
9706 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9707 # do not overwrite the value of need_locks provided by the user
9708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9709 printf %s "checking if we can lock with hard links... " >&6; }
9710 hard_links=yes
9711 $RM conftest*
9712 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9713 touch conftest.a
9714 ln conftest.a conftest.b 2>&5 || hard_links=no
9715 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9717 printf "%s\n" "$hard_links" >&6; }
9718 if test no = "$hard_links"; then
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9720 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9721 need_locks=warn
9722 fi
9723 else
9724 need_locks=no
9725 fi
9726
9727
9728
9729
9730
9731
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9733 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9734
9735 runpath_var=
9736 allow_undefined_flag=
9737 always_export_symbols=no
9738 archive_cmds=
9739 archive_expsym_cmds=
9740 compiler_needs_object=no
9741 enable_shared_with_static_runtimes=no
9742 export_dynamic_flag_spec=
9743 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9744 hardcode_automatic=no
9745 hardcode_direct=no
9746 hardcode_direct_absolute=no
9747 hardcode_libdir_flag_spec=
9748 hardcode_libdir_separator=
9749 hardcode_minus_L=no
9750 hardcode_shlibpath_var=unsupported
9751 inherit_rpath=no
9752 link_all_deplibs=unknown
9753 module_cmds=
9754 module_expsym_cmds=
9755 old_archive_from_new_cmds=
9756 old_archive_from_expsyms_cmds=
9757 thread_safe_flag_spec=
9758 whole_archive_flag_spec=
9759 # include_expsyms should be a list of space-separated symbols to be *always*
9760 # included in the symbol list
9761 include_expsyms=
9762 # exclude_expsyms can be an extended regexp of symbols to exclude
9763 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9764 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9765 # as well as any symbol that contains 'd'.
9766 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9767 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9768 # platforms (ab)use it in PIC code, but their linkers get confused if
9769 # the symbol is explicitly referenced. Since portable code cannot
9770 # rely on this symbol name, it's probably fine to never include it in
9771 # preloaded symbol tables.
9772 # Exclude shared library initialization/finalization symbols.
9773 extract_expsyms_cmds=
9774
9775 case $host_os in
9776 cygwin* | mingw* | pw32* | cegcc*)
9777 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9778 # When not using gcc, we currently assume that we are using
9779 # Microsoft Visual C++.
9780 if test yes != "$GCC"; then
9781 with_gnu_ld=no
9782 fi
9783 ;;
9784 interix*)
9785 # we just hope/assume this is gcc and not c89 (= MSVC++)
9786 with_gnu_ld=yes
9787 ;;
9788 openbsd* | bitrig*)
9789 with_gnu_ld=no
9790 ;;
9791 esac
9792
9793 ld_shlibs=yes
9794
9795 # On some targets, GNU ld is compatible enough with the native linker
9796 # that we're better off using the native interface for both.
9797 lt_use_gnu_ld_interface=no
9798 if test yes = "$with_gnu_ld"; then
9799 case $host_os in
9800 aix*)
9801 # The AIX port of GNU ld has always aspired to compatibility
9802 # with the native linker. However, as the warning in the GNU ld
9803 # block says, versions before 2.19.5* couldn't really create working
9804 # shared libraries, regardless of the interface used.
9805 case `$LD -v 2>&1` in
9806 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9807 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9808 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9809 *)
9810 lt_use_gnu_ld_interface=yes
9811 ;;
9812 esac
9813 ;;
9814 *)
9815 lt_use_gnu_ld_interface=yes
9816 ;;
9817 esac
9818 fi
9819
9820 if test yes = "$lt_use_gnu_ld_interface"; then
9821 # If archive_cmds runs LD, not CC, wlarc should be empty
9822 wlarc='$wl'
9823
9824 # Set some defaults for GNU ld with shared library support. These
9825 # are reset later if shared libraries are not supported. Putting them
9826 # here allows them to be overridden if necessary.
9827 runpath_var=LD_RUN_PATH
9828 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9829 export_dynamic_flag_spec='$wl--export-dynamic'
9830 # ancient GNU ld didn't support --whole-archive et. al.
9831 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9832 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9833 else
9834 whole_archive_flag_spec=
9835 fi
9836 supports_anon_versioning=no
9837 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9838 *GNU\ gold*) supports_anon_versioning=yes ;;
9839 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9840 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9841 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9842 *\ 2.11.*) ;; # other 2.11 versions
9843 *) supports_anon_versioning=yes ;;
9844 esac
9845
9846 # See if GNU ld supports shared libraries.
9847 case $host_os in
9848 aix[3-9]*)
9849 # On AIX/PPC, the GNU linker is very broken
9850 if test ia64 != "$host_cpu"; then
9851 ld_shlibs=no
9852 cat <<_LT_EOF 1>&2
9853
9854 *** Warning: the GNU linker, at least up to release 2.19, is reported
9855 *** to be unable to reliably create shared libraries on AIX.
9856 *** Therefore, libtool is disabling shared libraries support. If you
9857 *** really care for shared libraries, you may want to install binutils
9858 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9859 *** You will then need to restart the configuration process.
9860
9861 _LT_EOF
9862 fi
9863 ;;
9864
9865 amigaos*)
9866 case $host_cpu in
9867 powerpc)
9868 # see comment about AmigaOS4 .so support
9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9870 archive_expsym_cmds=''
9871 ;;
9872 m68k)
9873 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)'
9874 hardcode_libdir_flag_spec='-L$libdir'
9875 hardcode_minus_L=yes
9876 ;;
9877 esac
9878 ;;
9879
9880 beos*)
9881 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9882 allow_undefined_flag=unsupported
9883 # Joseph Beckenbach <[email protected]> says some releases of gcc
9884 # support --undefined. This deserves some investigation. FIXME
9885 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9886 else
9887 ld_shlibs=no
9888 fi
9889 ;;
9890
9891 cygwin* | mingw* | pw32* | cegcc*)
9892 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9893 # as there is no search path for DLLs.
9894 hardcode_libdir_flag_spec='-L$libdir'
9895 export_dynamic_flag_spec='$wl--export-all-symbols'
9896 allow_undefined_flag=unsupported
9897 always_export_symbols=no
9898 enable_shared_with_static_runtimes=yes
9899 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'
9900 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9901
9902 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9904 # If the export-symbols file already is a .def file, use it as
9905 # is; otherwise, prepend EXPORTS...
9906 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9907 cp $export_symbols $output_objdir/$soname.def;
9908 else
9909 echo EXPORTS > $output_objdir/$soname.def;
9910 cat $export_symbols >> $output_objdir/$soname.def;
9911 fi~
9912 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9913 else
9914 ld_shlibs=no
9915 fi
9916 ;;
9917
9918 haiku*)
9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9920 link_all_deplibs=yes
9921 ;;
9922
9923 os2*)
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_minus_L=yes
9926 allow_undefined_flag=unsupported
9927 shrext_cmds=.dll
9928 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9929 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9930 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9931 $ECHO EXPORTS >> $output_objdir/$libname.def~
9932 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9933 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9934 emximp -o $lib $output_objdir/$libname.def'
9935 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9936 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9937 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9938 $ECHO EXPORTS >> $output_objdir/$libname.def~
9939 prefix_cmds="$SED"~
9940 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9941 prefix_cmds="$prefix_cmds -e 1d";
9942 fi~
9943 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9944 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9945 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9946 emximp -o $lib $output_objdir/$libname.def'
9947 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9948 enable_shared_with_static_runtimes=yes
9949 ;;
9950
9951 interix[3-9]*)
9952 hardcode_direct=no
9953 hardcode_shlibpath_var=no
9954 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9955 export_dynamic_flag_spec='$wl-E'
9956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9957 # Instead, shared libraries are loaded at an image base (0x10000000 by
9958 # default) and relocated if they conflict, which is a slow very memory
9959 # consuming and fragmenting process. To avoid this, we pick a random,
9960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9961 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9963 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'
9964 ;;
9965
9966 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9967 tmp_diet=no
9968 if test linux-dietlibc = "$host_os"; then
9969 case $cc_basename in
9970 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9971 esac
9972 fi
9973 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9974 && test no = "$tmp_diet"
9975 then
9976 tmp_addflag=' $pic_flag'
9977 tmp_sharedflag='-shared'
9978 case $cc_basename,$host_cpu in
9979 pgcc*) # Portland Group C compiler
9980 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'
9981 tmp_addflag=' $pic_flag'
9982 ;;
9983 pgf77* | pgf90* | pgf95* | pgfortran*)
9984 # Portland Group f77 and f90 compilers
9985 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'
9986 tmp_addflag=' $pic_flag -Mnomain' ;;
9987 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9988 tmp_addflag=' -i_dynamic' ;;
9989 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9990 tmp_addflag=' -i_dynamic -nofor_main' ;;
9991 ifc* | ifort*) # Intel Fortran compiler
9992 tmp_addflag=' -nofor_main' ;;
9993 lf95*) # Lahey Fortran 8.1
9994 whole_archive_flag_spec=
9995 tmp_sharedflag='--shared' ;;
9996 nagfor*) # NAGFOR 5.3
9997 tmp_sharedflag='-Wl,-shared' ;;
9998 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9999 tmp_sharedflag='-qmkshrobj'
10000 tmp_addflag= ;;
10001 nvcc*) # Cuda Compiler Driver 2.2
10002 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'
10003 compiler_needs_object=yes
10004 ;;
10005 esac
10006 case `$CC -V 2>&1 | sed 5q` in
10007 *Sun\ C*) # Sun C 5.9
10008 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'
10009 compiler_needs_object=yes
10010 tmp_sharedflag='-G' ;;
10011 *Sun\ F*) # Sun Fortran 8.3
10012 tmp_sharedflag='-G' ;;
10013 esac
10014 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10015
10016 if test yes = "$supports_anon_versioning"; then
10017 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10018 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10019 echo "local: *; };" >> $output_objdir/$libname.ver~
10020 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10021 fi
10022
10023 case $cc_basename in
10024 tcc*)
10025 export_dynamic_flag_spec='-rdynamic'
10026 ;;
10027 xlf* | bgf* | bgxlf* | mpixlf*)
10028 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10029 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10030 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10031 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10032 if test yes = "$supports_anon_versioning"; then
10033 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10034 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10035 echo "local: *; };" >> $output_objdir/$libname.ver~
10036 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10037 fi
10038 ;;
10039 esac
10040 else
10041 ld_shlibs=no
10042 fi
10043 ;;
10044
10045 netbsd*)
10046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10047 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10048 wlarc=
10049 else
10050 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10051 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10052 fi
10053 ;;
10054
10055 solaris*)
10056 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10057 ld_shlibs=no
10058 cat <<_LT_EOF 1>&2
10059
10060 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10061 *** create shared libraries on Solaris systems. Therefore, libtool
10062 *** is disabling shared libraries support. We urge you to upgrade GNU
10063 *** binutils to release 2.9.1 or newer. Another option is to modify
10064 *** your PATH or compiler configuration so that the native linker is
10065 *** used, and then restart.
10066
10067 _LT_EOF
10068 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10069 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10070 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10071 else
10072 ld_shlibs=no
10073 fi
10074 ;;
10075
10076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10077 case `$LD -v 2>&1` in
10078 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10079 ld_shlibs=no
10080 cat <<_LT_EOF 1>&2
10081
10082 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10083 *** reliably create shared libraries on SCO systems. Therefore, libtool
10084 *** is disabling shared libraries support. We urge you to upgrade GNU
10085 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10086 *** your PATH or compiler configuration so that the native linker is
10087 *** used, and then restart.
10088
10089 _LT_EOF
10090 ;;
10091 *)
10092 # For security reasons, it is highly recommended that you always
10093 # use absolute paths for naming shared libraries, and exclude the
10094 # DT_RUNPATH tag from executables and libraries. But doing so
10095 # requires that you compile everything twice, which is a pain.
10096 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10097 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10100 else
10101 ld_shlibs=no
10102 fi
10103 ;;
10104 esac
10105 ;;
10106
10107 sunos4*)
10108 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10109 wlarc=
10110 hardcode_direct=yes
10111 hardcode_shlibpath_var=no
10112 ;;
10113
10114 *)
10115 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10116 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10117 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10118 else
10119 ld_shlibs=no
10120 fi
10121 ;;
10122 esac
10123
10124 if test no = "$ld_shlibs"; then
10125 runpath_var=
10126 hardcode_libdir_flag_spec=
10127 export_dynamic_flag_spec=
10128 whole_archive_flag_spec=
10129 fi
10130 else
10131 # PORTME fill in a description of your system's linker (not GNU ld)
10132 case $host_os in
10133 aix3*)
10134 allow_undefined_flag=unsupported
10135 always_export_symbols=yes
10136 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'
10137 # Note: this linker hardcodes the directories in LIBPATH if there
10138 # are no directories specified by -L.
10139 hardcode_minus_L=yes
10140 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10141 # Neither direct hardcoding nor static linking is supported with a
10142 # broken collect2.
10143 hardcode_direct=unsupported
10144 fi
10145 ;;
10146
10147 aix[4-9]*)
10148 if test ia64 = "$host_cpu"; then
10149 # On IA64, the linker does run time linking by default, so we don't
10150 # have to do anything special.
10151 aix_use_runtimelinking=no
10152 exp_sym_flag='-Bexport'
10153 no_entry_flag=
10154 else
10155 # If we're using GNU nm, then we don't want the "-C" option.
10156 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10157 # Without the "-l" option, or with the "-B" option, AIX nm treats
10158 # weak defined symbols like other global defined symbols, whereas
10159 # GNU nm marks them as "W".
10160 # While the 'weak' keyword is ignored in the Export File, we need
10161 # it in the Import File for the 'aix-soname' feature, so we have
10162 # to replace the "-B" option with "-P" for AIX nm.
10163 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10164 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'
10165 else
10166 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'
10167 fi
10168 aix_use_runtimelinking=no
10169
10170 # Test if we are trying to use run time linking or normal
10171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10172 # have runtime linking enabled, and use it for executables.
10173 # For shared libraries, we enable/disable runtime linking
10174 # depending on the kind of the shared library created -
10175 # when "with_aix_soname,aix_use_runtimelinking" is:
10176 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10177 # "aix,yes" lib.so shared, rtl:yes, for executables
10178 # lib.a static archive
10179 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10180 # lib.a(lib.so.V) shared, rtl:no, for executables
10181 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10182 # lib.a(lib.so.V) shared, rtl:no
10183 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10184 # lib.a static archive
10185 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10186 for ld_flag in $LDFLAGS; do
10187 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10188 aix_use_runtimelinking=yes
10189 break
10190 fi
10191 done
10192 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10193 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10194 # so we don't have lib.a shared libs to link our executables.
10195 # We have to force runtime linking in this case.
10196 aix_use_runtimelinking=yes
10197 LDFLAGS="$LDFLAGS -Wl,-brtl"
10198 fi
10199 ;;
10200 esac
10201
10202 exp_sym_flag='-bexport'
10203 no_entry_flag='-bnoentry'
10204 fi
10205
10206 # When large executables or shared objects are built, AIX ld can
10207 # have problems creating the table of contents. If linking a library
10208 # or program results in "error TOC overflow" add -mminimal-toc to
10209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10211
10212 archive_cmds=''
10213 hardcode_direct=yes
10214 hardcode_direct_absolute=yes
10215 hardcode_libdir_separator=':'
10216 link_all_deplibs=yes
10217 file_list_spec='$wl-f,'
10218 case $with_aix_soname,$aix_use_runtimelinking in
10219 aix,*) ;; # traditional, no import file
10220 svr4,* | *,yes) # use import file
10221 # The Import File defines what to hardcode.
10222 hardcode_direct=no
10223 hardcode_direct_absolute=no
10224 ;;
10225 esac
10226
10227 if test yes = "$GCC"; then
10228 case $host_os in aix4.[012]|aix4.[012].*)
10229 # We only want to do this on AIX 4.2 and lower, the check
10230 # below for broken collect2 doesn't work under 4.3+
10231 collect2name=`$CC -print-prog-name=collect2`
10232 if test -f "$collect2name" &&
10233 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10234 then
10235 # We have reworked collect2
10236 :
10237 else
10238 # We have old collect2
10239 hardcode_direct=unsupported
10240 # It fails to find uninstalled libraries when the uninstalled
10241 # path is not listed in the libpath. Setting hardcode_minus_L
10242 # to unsupported forces relinking
10243 hardcode_minus_L=yes
10244 hardcode_libdir_flag_spec='-L$libdir'
10245 hardcode_libdir_separator=
10246 fi
10247 ;;
10248 esac
10249 shared_flag='-shared'
10250 if test yes = "$aix_use_runtimelinking"; then
10251 shared_flag="$shared_flag "'$wl-G'
10252 fi
10253 # Need to ensure runtime linking is disabled for the traditional
10254 # shared library, or the linker may eventually find shared libraries
10255 # /with/ Import File - we do not want to mix them.
10256 shared_flag_aix='-shared'
10257 shared_flag_svr4='-shared $wl-G'
10258 else
10259 # not using gcc
10260 if test ia64 = "$host_cpu"; then
10261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10262 # chokes on -Wl,-G. The following line is correct:
10263 shared_flag='-G'
10264 else
10265 if test yes = "$aix_use_runtimelinking"; then
10266 shared_flag='$wl-G'
10267 else
10268 shared_flag='$wl-bM:SRE'
10269 fi
10270 shared_flag_aix='$wl-bM:SRE'
10271 shared_flag_svr4='$wl-G'
10272 fi
10273 fi
10274
10275 export_dynamic_flag_spec='$wl-bexpall'
10276 # It seems that -bexpall does not export symbols beginning with
10277 # underscore (_), so it is better to generate a list of symbols to export.
10278 always_export_symbols=yes
10279 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10280 # Warning - without using the other runtime loading flags (-brtl),
10281 # -berok will link without error, but may produce a broken library.
10282 allow_undefined_flag='-berok'
10283 # Determine the default libpath from the value encoded in an
10284 # empty executable.
10285 if test set = "${lt_cv_aix_libpath+set}"; then
10286 aix_libpath=$lt_cv_aix_libpath
10287 else
10288 if test ${lt_cv_aix_libpath_+y}
10289 then :
10290 printf %s "(cached) " >&6
10291 else $as_nop
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294
10295 int
10296 main (void)
10297 {
10298
10299 ;
10300 return 0;
10301 }
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"
10304 then :
10305
10306 lt_aix_libpath_sed='
10307 /Import File Strings/,/^$/ {
10308 /^0/ {
10309 s/^0 *\([^ ]*\) *$/\1/
10310 p
10311 }
10312 }'
10313 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10314 # Check for a 64-bit object if we didn't find anything.
10315 if test -z "$lt_cv_aix_libpath_"; then
10316 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10317 fi
10318 fi
10319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10320 conftest$ac_exeext conftest.$ac_ext
10321 if test -z "$lt_cv_aix_libpath_"; then
10322 lt_cv_aix_libpath_=/usr/lib:/lib
10323 fi
10324
10325 fi
10326
10327 aix_libpath=$lt_cv_aix_libpath_
10328 fi
10329
10330 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10331 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
10332 else
10333 if test ia64 = "$host_cpu"; then
10334 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10335 allow_undefined_flag="-z nodefs"
10336 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"
10337 else
10338 # Determine the default libpath from the value encoded in an
10339 # empty executable.
10340 if test set = "${lt_cv_aix_libpath+set}"; then
10341 aix_libpath=$lt_cv_aix_libpath
10342 else
10343 if test ${lt_cv_aix_libpath_+y}
10344 then :
10345 printf %s "(cached) " >&6
10346 else $as_nop
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349
10350 int
10351 main (void)
10352 {
10353
10354 ;
10355 return 0;
10356 }
10357 _ACEOF
10358 if ac_fn_c_try_link "$LINENO"
10359 then :
10360
10361 lt_aix_libpath_sed='
10362 /Import File Strings/,/^$/ {
10363 /^0/ {
10364 s/^0 *\([^ ]*\) *$/\1/
10365 p
10366 }
10367 }'
10368 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10369 # Check for a 64-bit object if we didn't find anything.
10370 if test -z "$lt_cv_aix_libpath_"; then
10371 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10372 fi
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10375 conftest$ac_exeext conftest.$ac_ext
10376 if test -z "$lt_cv_aix_libpath_"; then
10377 lt_cv_aix_libpath_=/usr/lib:/lib
10378 fi
10379
10380 fi
10381
10382 aix_libpath=$lt_cv_aix_libpath_
10383 fi
10384
10385 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10386 # Warning - without using the other run time loading flags,
10387 # -berok will link without error, but may produce a broken library.
10388 no_undefined_flag=' $wl-bernotok'
10389 allow_undefined_flag=' $wl-berok'
10390 if test yes = "$with_gnu_ld"; then
10391 # We only use this code for GNU lds that support --whole-archive.
10392 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10393 else
10394 # Exported symbols can be pulled into shared objects from archives
10395 whole_archive_flag_spec='$convenience'
10396 fi
10397 archive_cmds_need_lc=yes
10398 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10399 # -brtl affects multiple linker settings, -berok does not and is overridden later
10400 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10401 if test svr4 != "$with_aix_soname"; then
10402 # This is similar to how AIX traditionally builds its shared libraries.
10403 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'
10404 fi
10405 if test aix != "$with_aix_soname"; then
10406 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'
10407 else
10408 # used by -dlpreopen to get the symbols
10409 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10410 fi
10411 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10412 fi
10413 fi
10414 ;;
10415
10416 amigaos*)
10417 case $host_cpu in
10418 powerpc)
10419 # see comment about AmigaOS4 .so support
10420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10421 archive_expsym_cmds=''
10422 ;;
10423 m68k)
10424 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)'
10425 hardcode_libdir_flag_spec='-L$libdir'
10426 hardcode_minus_L=yes
10427 ;;
10428 esac
10429 ;;
10430
10431 bsdi[45]*)
10432 export_dynamic_flag_spec=-rdynamic
10433 ;;
10434
10435 cygwin* | mingw* | pw32* | cegcc*)
10436 # When not using gcc, we currently assume that we are using
10437 # Microsoft Visual C++.
10438 # hardcode_libdir_flag_spec is actually meaningless, as there is
10439 # no search path for DLLs.
10440 case $cc_basename in
10441 cl*)
10442 # Native MSVC
10443 hardcode_libdir_flag_spec=' '
10444 allow_undefined_flag=unsupported
10445 always_export_symbols=yes
10446 file_list_spec='@'
10447 # Tell ltmain to make .lib files, not .a files.
10448 libext=lib
10449 # Tell ltmain to make .dll files, not .so files.
10450 shrext_cmds=.dll
10451 # FIXME: Setting linknames here is a bad hack.
10452 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10453 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10454 cp "$export_symbols" "$output_objdir/$soname.def";
10455 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10456 else
10457 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10458 fi~
10459 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10460 linknames='
10461 # The linker will not automatically build a static lib if we build a DLL.
10462 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10463 enable_shared_with_static_runtimes=yes
10464 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10466 # Don't use ranlib
10467 old_postinstall_cmds='chmod 644 $oldlib'
10468 postlink_cmds='lt_outputfile="@OUTPUT@"~
10469 lt_tool_outputfile="@TOOL_OUTPUT@"~
10470 case $lt_outputfile in
10471 *.exe|*.EXE) ;;
10472 *)
10473 lt_outputfile=$lt_outputfile.exe
10474 lt_tool_outputfile=$lt_tool_outputfile.exe
10475 ;;
10476 esac~
10477 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10478 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10479 $RM "$lt_outputfile.manifest";
10480 fi'
10481 ;;
10482 *)
10483 # Assume MSVC wrapper
10484 hardcode_libdir_flag_spec=' '
10485 allow_undefined_flag=unsupported
10486 # Tell ltmain to make .lib files, not .a files.
10487 libext=lib
10488 # Tell ltmain to make .dll files, not .so files.
10489 shrext_cmds=.dll
10490 # FIXME: Setting linknames here is a bad hack.
10491 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10492 # The linker will automatically build a .lib file if we build a DLL.
10493 old_archive_from_new_cmds='true'
10494 # FIXME: Should let the user specify the lib program.
10495 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10496 enable_shared_with_static_runtimes=yes
10497 ;;
10498 esac
10499 ;;
10500
10501 darwin* | rhapsody*)
10502
10503
10504 archive_cmds_need_lc=no
10505 hardcode_direct=no
10506 hardcode_automatic=yes
10507 hardcode_shlibpath_var=unsupported
10508 if test yes = "$lt_cv_ld_force_load"; then
10509 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\"`'
10510
10511 else
10512 whole_archive_flag_spec=''
10513 fi
10514 link_all_deplibs=yes
10515 allow_undefined_flag=$_lt_dar_allow_undefined
10516 case $cc_basename in
10517 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10518 *) _lt_dar_can_shared=$GCC ;;
10519 esac
10520 if test yes = "$_lt_dar_can_shared"; then
10521 output_verbose_link_cmd=func_echo_all
10522 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10523 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10524 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"
10525 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"
10526
10527 else
10528 ld_shlibs=no
10529 fi
10530
10531 ;;
10532
10533 dgux*)
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_libdir_flag_spec='-L$libdir'
10536 hardcode_shlibpath_var=no
10537 ;;
10538
10539 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10540 # support. Future versions do this automatically, but an explicit c++rt0.o
10541 # does not break anything, and helps significantly (at the cost of a little
10542 # extra space).
10543 freebsd2.2*)
10544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10545 hardcode_libdir_flag_spec='-R$libdir'
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10548 ;;
10549
10550 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10551 freebsd2.*)
10552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_direct=yes
10554 hardcode_minus_L=yes
10555 hardcode_shlibpath_var=no
10556 ;;
10557
10558 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10559 freebsd* | dragonfly*)
10560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10561 hardcode_libdir_flag_spec='-R$libdir'
10562 hardcode_direct=yes
10563 hardcode_shlibpath_var=no
10564 ;;
10565
10566 hpux9*)
10567 if test yes = "$GCC"; then
10568 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'
10569 else
10570 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'
10571 fi
10572 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10573 hardcode_libdir_separator=:
10574 hardcode_direct=yes
10575
10576 # hardcode_minus_L: Not really in the search PATH,
10577 # but as the default location of the library.
10578 hardcode_minus_L=yes
10579 export_dynamic_flag_spec='$wl-E'
10580 ;;
10581
10582 hpux10*)
10583 if test yes,no = "$GCC,$with_gnu_ld"; then
10584 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10585 else
10586 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10587 fi
10588 if test no = "$with_gnu_ld"; then
10589 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10590 hardcode_libdir_separator=:
10591 hardcode_direct=yes
10592 hardcode_direct_absolute=yes
10593 export_dynamic_flag_spec='$wl-E'
10594 # hardcode_minus_L: Not really in the search PATH,
10595 # but as the default location of the library.
10596 hardcode_minus_L=yes
10597 fi
10598 ;;
10599
10600 hpux11*)
10601 if test yes,no = "$GCC,$with_gnu_ld"; then
10602 case $host_cpu in
10603 hppa*64*)
10604 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10605 ;;
10606 ia64*)
10607 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10608 ;;
10609 *)
10610 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10611 ;;
10612 esac
10613 else
10614 case $host_cpu in
10615 hppa*64*)
10616 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 ;;
10618 ia64*)
10619 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10620 ;;
10621 *)
10622
10623 # Older versions of the 11.00 compiler do not understand -b yet
10624 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10626 printf %s "checking if $CC understands -b... " >&6; }
10627 if test ${lt_cv_prog_compiler__b+y}
10628 then :
10629 printf %s "(cached) " >&6
10630 else $as_nop
10631 lt_cv_prog_compiler__b=no
10632 save_LDFLAGS=$LDFLAGS
10633 LDFLAGS="$LDFLAGS -b"
10634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10636 # The linker can only warn and ignore the option if not recognized
10637 # So say no if there are warnings
10638 if test -s conftest.err; then
10639 # Append any errors to the config.log.
10640 cat conftest.err 1>&5
10641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10643 if diff conftest.exp conftest.er2 >/dev/null; then
10644 lt_cv_prog_compiler__b=yes
10645 fi
10646 else
10647 lt_cv_prog_compiler__b=yes
10648 fi
10649 fi
10650 $RM -r conftest*
10651 LDFLAGS=$save_LDFLAGS
10652
10653 fi
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10655 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10656
10657 if test yes = "$lt_cv_prog_compiler__b"; then
10658 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10659 else
10660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10661 fi
10662
10663 ;;
10664 esac
10665 fi
10666 if test no = "$with_gnu_ld"; then
10667 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10668 hardcode_libdir_separator=:
10669
10670 case $host_cpu in
10671 hppa*64*|ia64*)
10672 hardcode_direct=no
10673 hardcode_shlibpath_var=no
10674 ;;
10675 *)
10676 hardcode_direct=yes
10677 hardcode_direct_absolute=yes
10678 export_dynamic_flag_spec='$wl-E'
10679
10680 # hardcode_minus_L: Not really in the search PATH,
10681 # but as the default location of the library.
10682 hardcode_minus_L=yes
10683 ;;
10684 esac
10685 fi
10686 ;;
10687
10688 irix5* | irix6* | nonstopux*)
10689 if test yes = "$GCC"; then
10690 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'
10691 # Try to use the -exported_symbol ld option, if it does not
10692 # work, assume that -exports_file does not work either and
10693 # implicitly export all symbols.
10694 # This should be the same for all languages, so no per-tag cache variable.
10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10696 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10697 if test ${lt_cv_irix_exported_symbol+y}
10698 then :
10699 printf %s "(cached) " >&6
10700 else $as_nop
10701 save_LDFLAGS=$LDFLAGS
10702 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 int foo (void) { return 0; }
10706 _ACEOF
10707 if ac_fn_c_try_link "$LINENO"
10708 then :
10709 lt_cv_irix_exported_symbol=yes
10710 else $as_nop
10711 lt_cv_irix_exported_symbol=no
10712 fi
10713 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10714 conftest$ac_exeext conftest.$ac_ext
10715 LDFLAGS=$save_LDFLAGS
10716 fi
10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10718 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10719 if test yes = "$lt_cv_irix_exported_symbol"; then
10720 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'
10721 fi
10722 else
10723 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'
10724 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'
10725 fi
10726 archive_cmds_need_lc='no'
10727 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10728 hardcode_libdir_separator=:
10729 inherit_rpath=yes
10730 link_all_deplibs=yes
10731 ;;
10732
10733 linux*)
10734 case $cc_basename in
10735 tcc*)
10736 # Fabrice Bellard et al's Tiny C Compiler
10737 ld_shlibs=yes
10738 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10739 ;;
10740 esac
10741 ;;
10742
10743 netbsd*)
10744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10746 else
10747 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10748 fi
10749 hardcode_libdir_flag_spec='-R$libdir'
10750 hardcode_direct=yes
10751 hardcode_shlibpath_var=no
10752 ;;
10753
10754 newsos6)
10755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10756 hardcode_direct=yes
10757 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10758 hardcode_libdir_separator=:
10759 hardcode_shlibpath_var=no
10760 ;;
10761
10762 *nto* | *qnx*)
10763 ;;
10764
10765 openbsd* | bitrig*)
10766 if test -f /usr/libexec/ld.so; then
10767 hardcode_direct=yes
10768 hardcode_shlibpath_var=no
10769 hardcode_direct_absolute=yes
10770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10773 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10774 export_dynamic_flag_spec='$wl-E'
10775 else
10776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10777 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10778 fi
10779 else
10780 ld_shlibs=no
10781 fi
10782 ;;
10783
10784 os2*)
10785 hardcode_libdir_flag_spec='-L$libdir'
10786 hardcode_minus_L=yes
10787 allow_undefined_flag=unsupported
10788 shrext_cmds=.dll
10789 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10790 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10791 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10792 $ECHO EXPORTS >> $output_objdir/$libname.def~
10793 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10794 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10795 emximp -o $lib $output_objdir/$libname.def'
10796 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10797 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10798 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10799 $ECHO EXPORTS >> $output_objdir/$libname.def~
10800 prefix_cmds="$SED"~
10801 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10802 prefix_cmds="$prefix_cmds -e 1d";
10803 fi~
10804 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10805 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10806 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10807 emximp -o $lib $output_objdir/$libname.def'
10808 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10809 enable_shared_with_static_runtimes=yes
10810 ;;
10811
10812 osf3*)
10813 if test yes = "$GCC"; then
10814 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10815 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'
10816 else
10817 allow_undefined_flag=' -expect_unresolved \*'
10818 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'
10819 fi
10820 archive_cmds_need_lc='no'
10821 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10822 hardcode_libdir_separator=:
10823 ;;
10824
10825 osf4* | osf5*) # as osf3* with the addition of -msym flag
10826 if test yes = "$GCC"; then
10827 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10828 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'
10829 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10830 else
10831 allow_undefined_flag=' -expect_unresolved \*'
10832 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'
10833 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~
10834 $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'
10835
10836 # Both c and cxx compiler support -rpath directly
10837 hardcode_libdir_flag_spec='-rpath $libdir'
10838 fi
10839 archive_cmds_need_lc='no'
10840 hardcode_libdir_separator=:
10841 ;;
10842
10843 solaris*)
10844 no_undefined_flag=' -z defs'
10845 if test yes = "$GCC"; then
10846 wlarc='$wl'
10847 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10849 $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'
10850 else
10851 case `$CC -V 2>&1` in
10852 *"Compilers 5.0"*)
10853 wlarc=''
10854 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10856 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10857 ;;
10858 *)
10859 wlarc='$wl'
10860 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10861 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10862 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10863 ;;
10864 esac
10865 fi
10866 hardcode_libdir_flag_spec='-R$libdir'
10867 hardcode_shlibpath_var=no
10868 case $host_os in
10869 solaris2.[0-5] | solaris2.[0-5].*) ;;
10870 *)
10871 # The compiler driver will combine and reorder linker options,
10872 # but understands '-z linker_flag'. GCC discards it without '$wl',
10873 # but is careful enough not to reorder.
10874 # Supported since Solaris 2.6 (maybe 2.5.1?)
10875 if test yes = "$GCC"; then
10876 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10877 else
10878 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10879 fi
10880 ;;
10881 esac
10882 link_all_deplibs=yes
10883 ;;
10884
10885 sunos4*)
10886 if test sequent = "$host_vendor"; then
10887 # Use $CC to link under sequent, because it throws in some extra .o
10888 # files that make .init and .fini sections work.
10889 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10890 else
10891 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10892 fi
10893 hardcode_libdir_flag_spec='-L$libdir'
10894 hardcode_direct=yes
10895 hardcode_minus_L=yes
10896 hardcode_shlibpath_var=no
10897 ;;
10898
10899 sysv4)
10900 case $host_vendor in
10901 sni)
10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903 hardcode_direct=yes # is this really true???
10904 ;;
10905 siemens)
10906 ## LD is ld it makes a PLAMLIB
10907 ## CC just makes a GrossModule.
10908 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10909 reload_cmds='$CC -r -o $output$reload_objs'
10910 hardcode_direct=no
10911 ;;
10912 motorola)
10913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10915 ;;
10916 esac
10917 runpath_var='LD_RUN_PATH'
10918 hardcode_shlibpath_var=no
10919 ;;
10920
10921 sysv4.3*)
10922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10923 hardcode_shlibpath_var=no
10924 export_dynamic_flag_spec='-Bexport'
10925 ;;
10926
10927 sysv4*MP*)
10928 if test -d /usr/nec; then
10929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10930 hardcode_shlibpath_var=no
10931 runpath_var=LD_RUN_PATH
10932 hardcode_runpath_var=yes
10933 ld_shlibs=yes
10934 fi
10935 ;;
10936
10937 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10938 no_undefined_flag='$wl-z,text'
10939 archive_cmds_need_lc=no
10940 hardcode_shlibpath_var=no
10941 runpath_var='LD_RUN_PATH'
10942
10943 if test yes = "$GCC"; then
10944 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 else
10947 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 fi
10950 ;;
10951
10952 sysv5* | sco3.2v5* | sco5v6*)
10953 # Note: We CANNOT use -z defs as we might desire, because we do not
10954 # link with -lc, and that would cause any symbols used from libc to
10955 # always be unresolved, which means just about no library would
10956 # ever link correctly. If we're not using GNU ld we use -z text
10957 # though, which does catch some bad symbols but isn't as heavy-handed
10958 # as -z defs.
10959 no_undefined_flag='$wl-z,text'
10960 allow_undefined_flag='$wl-z,nodefs'
10961 archive_cmds_need_lc=no
10962 hardcode_shlibpath_var=no
10963 hardcode_libdir_flag_spec='$wl-R,$libdir'
10964 hardcode_libdir_separator=':'
10965 link_all_deplibs=yes
10966 export_dynamic_flag_spec='$wl-Bexport'
10967 runpath_var='LD_RUN_PATH'
10968
10969 if test yes = "$GCC"; then
10970 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972 else
10973 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10975 fi
10976 ;;
10977
10978 uts4*)
10979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980 hardcode_libdir_flag_spec='-L$libdir'
10981 hardcode_shlibpath_var=no
10982 ;;
10983
10984 *)
10985 ld_shlibs=no
10986 ;;
10987 esac
10988
10989 if test sni = "$host_vendor"; then
10990 case $host in
10991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10992 export_dynamic_flag_spec='$wl-Blargedynsym'
10993 ;;
10994 esac
10995 fi
10996 fi
10997
10998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10999 printf "%s\n" "$ld_shlibs" >&6; }
11000 test no = "$ld_shlibs" && can_build_shared=no
11001
11002 with_gnu_ld=$with_gnu_ld
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018 #
11019 # Do we need to explicitly link libc?
11020 #
11021 case "x$archive_cmds_need_lc" in
11022 x|xyes)
11023 # Assume -lc should be added
11024 archive_cmds_need_lc=yes
11025
11026 if test yes,yes = "$GCC,$enable_shared"; then
11027 case $archive_cmds in
11028 *'~'*)
11029 # FIXME: we may have to deal with multi-command sequences.
11030 ;;
11031 '$CC '*)
11032 # Test whether the compiler implicitly links with -lc since on some
11033 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11034 # to ld, don't add -lc before -lgcc.
11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11036 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11037 if test ${lt_cv_archive_cmds_need_lc+y}
11038 then :
11039 printf %s "(cached) " >&6
11040 else $as_nop
11041 $RM conftest*
11042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11043
11044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11045 (eval $ac_compile) 2>&5
11046 ac_status=$?
11047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11048 test $ac_status = 0; } 2>conftest.err; then
11049 soname=conftest
11050 lib=conftest
11051 libobjs=conftest.$ac_objext
11052 deplibs=
11053 wl=$lt_prog_compiler_wl
11054 pic_flag=$lt_prog_compiler_pic
11055 compiler_flags=-v
11056 linker_flags=-v
11057 verstring=
11058 output_objdir=.
11059 libname=conftest
11060 lt_save_allow_undefined_flag=$allow_undefined_flag
11061 allow_undefined_flag=
11062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11063 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11064 ac_status=$?
11065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; }
11067 then
11068 lt_cv_archive_cmds_need_lc=no
11069 else
11070 lt_cv_archive_cmds_need_lc=yes
11071 fi
11072 allow_undefined_flag=$lt_save_allow_undefined_flag
11073 else
11074 cat conftest.err 1>&5
11075 fi
11076 $RM conftest*
11077
11078 fi
11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11080 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11081 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11082 ;;
11083 esac
11084 fi
11085 ;;
11086 esac
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11240 printf %s "checking dynamic linker characteristics... " >&6; }
11241
11242 if test yes = "$GCC"; then
11243 case $host_os in
11244 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11245 *) lt_awk_arg='/^libraries:/' ;;
11246 esac
11247 case $host_os in
11248 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11249 *) lt_sed_strip_eq='s|=/|/|g' ;;
11250 esac
11251 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11252 case $lt_search_path_spec in
11253 *\;*)
11254 # if the path contains ";" then we assume it to be the separator
11255 # otherwise default to the standard path separator (i.e. ":") - it is
11256 # assumed that no part of a normal pathname contains ";" but that should
11257 # okay in the real world where ";" in dirpaths is itself problematic.
11258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11259 ;;
11260 *)
11261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11262 ;;
11263 esac
11264 # Ok, now we have the path, separated by spaces, we can step through it
11265 # and add multilib dir if necessary...
11266 lt_tmp_lt_search_path_spec=
11267 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11268 # ...but if some path component already ends with the multilib dir we assume
11269 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11270 case "$lt_multi_os_dir; $lt_search_path_spec " in
11271 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11272 lt_multi_os_dir=
11273 ;;
11274 esac
11275 for lt_sys_path in $lt_search_path_spec; do
11276 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11277 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11278 elif test -n "$lt_multi_os_dir"; then
11279 test -d "$lt_sys_path" && \
11280 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11281 fi
11282 done
11283 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11284 BEGIN {RS = " "; FS = "/|\n";} {
11285 lt_foo = "";
11286 lt_count = 0;
11287 for (lt_i = NF; lt_i > 0; lt_i--) {
11288 if ($lt_i != "" && $lt_i != ".") {
11289 if ($lt_i == "..") {
11290 lt_count++;
11291 } else {
11292 if (lt_count == 0) {
11293 lt_foo = "/" $lt_i lt_foo;
11294 } else {
11295 lt_count--;
11296 }
11297 }
11298 }
11299 }
11300 if (lt_foo != "") { lt_freq[lt_foo]++; }
11301 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11302 }'`
11303 # AWK program above erroneously prepends '/' to C:/dos/paths
11304 # for these hosts.
11305 case $host_os in
11306 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11307 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11308 esac
11309 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11310 else
11311 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11312 fi
11313 library_names_spec=
11314 libname_spec='lib$name'
11315 soname_spec=
11316 shrext_cmds=.so
11317 postinstall_cmds=
11318 postuninstall_cmds=
11319 finish_cmds=
11320 finish_eval=
11321 shlibpath_var=
11322 shlibpath_overrides_runpath=unknown
11323 version_type=none
11324 dynamic_linker="$host_os ld.so"
11325 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11326 need_lib_prefix=unknown
11327 hardcode_into_libs=no
11328
11329 # when you set need_version to no, make sure it does not cause -set_version
11330 # flags to be left without arguments
11331 need_version=unknown
11332
11333
11334
11335 case $host_os in
11336 aix3*)
11337 version_type=linux # correct to gnu/linux during the next big refactor
11338 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11339 shlibpath_var=LIBPATH
11340
11341 # AIX 3 has no versioning support, so we append a major version to the name.
11342 soname_spec='$libname$release$shared_ext$major'
11343 ;;
11344
11345 aix[4-9]*)
11346 version_type=linux # correct to gnu/linux during the next big refactor
11347 need_lib_prefix=no
11348 need_version=no
11349 hardcode_into_libs=yes
11350 if test ia64 = "$host_cpu"; then
11351 # AIX 5 supports IA64
11352 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 else
11355 # With GCC up to 2.95.x, collect2 would create an import file
11356 # for dependence libraries. The import file would start with
11357 # the line '#! .'. This would cause the generated library to
11358 # depend on '.', always an invalid library. This was fixed in
11359 # development snapshots of GCC prior to 3.0.
11360 case $host_os in
11361 aix4 | aix4.[01] | aix4.[01].*)
11362 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11363 echo ' yes '
11364 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11365 :
11366 else
11367 can_build_shared=no
11368 fi
11369 ;;
11370 esac
11371 # Using Import Files as archive members, it is possible to support
11372 # filename-based versioning of shared library archives on AIX. While
11373 # this would work for both with and without runtime linking, it will
11374 # prevent static linking of such archives. So we do filename-based
11375 # shared library versioning with .so extension only, which is used
11376 # when both runtime linking and shared linking is enabled.
11377 # Unfortunately, runtime linking may impact performance, so we do
11378 # not want this to be the default eventually. Also, we use the
11379 # versioned .so libs for executables only if there is the -brtl
11380 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11381 # To allow for filename-based versioning support, we need to create
11382 # libNAME.so.V as an archive file, containing:
11383 # *) an Import File, referring to the versioned filename of the
11384 # archive as well as the shared archive member, telling the
11385 # bitwidth (32 or 64) of that shared object, and providing the
11386 # list of exported symbols of that shared object, eventually
11387 # decorated with the 'weak' keyword
11388 # *) the shared object with the F_LOADONLY flag set, to really avoid
11389 # it being seen by the linker.
11390 # At run time we better use the real file rather than another symlink,
11391 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11392
11393 case $with_aix_soname,$aix_use_runtimelinking in
11394 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11395 # soname into executable. Probably we can add versioning support to
11396 # collect2, so additional links can be useful in future.
11397 aix,yes) # traditional libtool
11398 dynamic_linker='AIX unversionable lib.so'
11399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11400 # instead of lib<name>.a to let people know that these are not
11401 # typical AIX shared libraries.
11402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11403 ;;
11404 aix,no) # traditional AIX only
11405 dynamic_linker='AIX lib.a(lib.so.V)'
11406 # We preserve .a as extension for shared libraries through AIX4.2
11407 # and later when we are not doing run time linking.
11408 library_names_spec='$libname$release.a $libname.a'
11409 soname_spec='$libname$release$shared_ext$major'
11410 ;;
11411 svr4,*) # full svr4 only
11412 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11413 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11414 # We do not specify a path in Import Files, so LIBPATH fires.
11415 shlibpath_overrides_runpath=yes
11416 ;;
11417 *,yes) # both, prefer svr4
11418 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11419 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11420 # unpreferred sharedlib libNAME.a needs extra handling
11421 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"'
11422 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"'
11423 # We do not specify a path in Import Files, so LIBPATH fires.
11424 shlibpath_overrides_runpath=yes
11425 ;;
11426 *,no) # both, prefer aix
11427 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11428 library_names_spec='$libname$release.a $libname.a'
11429 soname_spec='$libname$release$shared_ext$major'
11430 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11431 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)'
11432 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"'
11433 ;;
11434 esac
11435 shlibpath_var=LIBPATH
11436 fi
11437 ;;
11438
11439 amigaos*)
11440 case $host_cpu in
11441 powerpc)
11442 # Since July 2007 AmigaOS4 officially supports .so libraries.
11443 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11445 ;;
11446 m68k)
11447 library_names_spec='$libname.ixlibrary $libname.a'
11448 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11449 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'
11450 ;;
11451 esac
11452 ;;
11453
11454 beos*)
11455 library_names_spec='$libname$shared_ext'
11456 dynamic_linker="$host_os ld.so"
11457 shlibpath_var=LIBRARY_PATH
11458 ;;
11459
11460 bsdi[45]*)
11461 version_type=linux # correct to gnu/linux during the next big refactor
11462 need_version=no
11463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11464 soname_spec='$libname$release$shared_ext$major'
11465 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11466 shlibpath_var=LD_LIBRARY_PATH
11467 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11468 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11469 # the default ld.so.conf also contains /usr/contrib/lib and
11470 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11471 # libtool to hard-code these into programs
11472 ;;
11473
11474 cygwin* | mingw* | pw32* | cegcc*)
11475 version_type=windows
11476 shrext_cmds=.dll
11477 need_version=no
11478 need_lib_prefix=no
11479
11480 case $GCC,$cc_basename in
11481 yes,*)
11482 # gcc
11483 library_names_spec='$libname.dll.a'
11484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11485 postinstall_cmds='base_file=`basename \$file`~
11486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11487 dldir=$destdir/`dirname \$dlpath`~
11488 test -d \$dldir || mkdir -p \$dldir~
11489 $install_prog $dir/$dlname \$dldir/$dlname~
11490 chmod a+x \$dldir/$dlname~
11491 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11492 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11493 fi'
11494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11495 dlpath=$dir/\$dldll~
11496 $RM \$dlpath'
11497 shlibpath_overrides_runpath=yes
11498
11499 case $host_os in
11500 cygwin*)
11501 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11502 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11503
11504 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11505 ;;
11506 mingw* | cegcc*)
11507 # MinGW DLLs use traditional 'lib' prefix
11508 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11509 ;;
11510 pw32*)
11511 # pw32 DLLs use 'pw' prefix rather than 'lib'
11512 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11513 ;;
11514 esac
11515 dynamic_linker='Win32 ld.exe'
11516 ;;
11517
11518 *,cl*)
11519 # Native MSVC
11520 libname_spec='$name'
11521 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11522 library_names_spec='$libname.dll.lib'
11523
11524 case $build_os in
11525 mingw*)
11526 sys_lib_search_path_spec=
11527 lt_save_ifs=$IFS
11528 IFS=';'
11529 for lt_path in $LIB
11530 do
11531 IFS=$lt_save_ifs
11532 # Let DOS variable expansion print the short 8.3 style file name.
11533 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11534 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11535 done
11536 IFS=$lt_save_ifs
11537 # Convert to MSYS style.
11538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11539 ;;
11540 cygwin*)
11541 # Convert to unix form, then to dos form, then back to unix form
11542 # but this time dos style (no spaces!) so that the unix form looks
11543 # like /cygdrive/c/PROGRA~1:/cygdr...
11544 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11545 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11546 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11547 ;;
11548 *)
11549 sys_lib_search_path_spec=$LIB
11550 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11551 # It is most probably a Windows format PATH.
11552 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11553 else
11554 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11555 fi
11556 # FIXME: find the short name or the path components, as spaces are
11557 # common. (e.g. "Program Files" -> "PROGRA~1")
11558 ;;
11559 esac
11560
11561 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11562 postinstall_cmds='base_file=`basename \$file`~
11563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11564 dldir=$destdir/`dirname \$dlpath`~
11565 test -d \$dldir || mkdir -p \$dldir~
11566 $install_prog $dir/$dlname \$dldir/$dlname'
11567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11568 dlpath=$dir/\$dldll~
11569 $RM \$dlpath'
11570 shlibpath_overrides_runpath=yes
11571 dynamic_linker='Win32 link.exe'
11572 ;;
11573
11574 *)
11575 # Assume MSVC wrapper
11576 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11577 dynamic_linker='Win32 ld.exe'
11578 ;;
11579 esac
11580 # FIXME: first we should search . and the directory the executable is in
11581 shlibpath_var=PATH
11582 ;;
11583
11584 darwin* | rhapsody*)
11585 dynamic_linker="$host_os dyld"
11586 version_type=darwin
11587 need_lib_prefix=no
11588 need_version=no
11589 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11590 soname_spec='$libname$release$major$shared_ext'
11591 shlibpath_overrides_runpath=yes
11592 shlibpath_var=DYLD_LIBRARY_PATH
11593 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11594
11595 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11596 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11597 ;;
11598
11599 dgux*)
11600 version_type=linux # correct to gnu/linux during the next big refactor
11601 need_lib_prefix=no
11602 need_version=no
11603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11604 soname_spec='$libname$release$shared_ext$major'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 ;;
11607
11608 freebsd* | dragonfly*)
11609 # DragonFly does not have aout. When/if they implement a new
11610 # versioning mechanism, adjust this.
11611 if test -x /usr/bin/objformat; then
11612 objformat=`/usr/bin/objformat`
11613 else
11614 case $host_os in
11615 freebsd[23].*) objformat=aout ;;
11616 *) objformat=elf ;;
11617 esac
11618 fi
11619 version_type=freebsd-$objformat
11620 case $version_type in
11621 freebsd-elf*)
11622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623 soname_spec='$libname$release$shared_ext$major'
11624 need_version=no
11625 need_lib_prefix=no
11626 ;;
11627 freebsd-*)
11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11629 need_version=yes
11630 ;;
11631 esac
11632 shlibpath_var=LD_LIBRARY_PATH
11633 case $host_os in
11634 freebsd2.*)
11635 shlibpath_overrides_runpath=yes
11636 ;;
11637 freebsd3.[01]* | freebsdelf3.[01]*)
11638 shlibpath_overrides_runpath=yes
11639 hardcode_into_libs=yes
11640 ;;
11641 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11642 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11643 shlibpath_overrides_runpath=no
11644 hardcode_into_libs=yes
11645 ;;
11646 *) # from 4.6 on, and DragonFly
11647 shlibpath_overrides_runpath=yes
11648 hardcode_into_libs=yes
11649 ;;
11650 esac
11651 ;;
11652
11653 haiku*)
11654 version_type=linux # correct to gnu/linux during the next big refactor
11655 need_lib_prefix=no
11656 need_version=no
11657 dynamic_linker="$host_os runtime_loader"
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659 soname_spec='$libname$release$shared_ext$major'
11660 shlibpath_var=LIBRARY_PATH
11661 shlibpath_overrides_runpath=no
11662 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11663 hardcode_into_libs=yes
11664 ;;
11665
11666 hpux9* | hpux10* | hpux11*)
11667 # Give a soname corresponding to the major version so that dld.sl refuses to
11668 # link against other versions.
11669 version_type=sunos
11670 need_lib_prefix=no
11671 need_version=no
11672 case $host_cpu in
11673 ia64*)
11674 shrext_cmds='.so'
11675 hardcode_into_libs=yes
11676 dynamic_linker="$host_os dld.so"
11677 shlibpath_var=LD_LIBRARY_PATH
11678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11680 soname_spec='$libname$release$shared_ext$major'
11681 if test 32 = "$HPUX_IA64_MODE"; then
11682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11683 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11684 else
11685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11686 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11687 fi
11688 ;;
11689 hppa*64*)
11690 shrext_cmds='.sl'
11691 hardcode_into_libs=yes
11692 dynamic_linker="$host_os dld.sl"
11693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696 soname_spec='$libname$release$shared_ext$major'
11697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11699 ;;
11700 *)
11701 shrext_cmds='.sl'
11702 dynamic_linker="$host_os dld.sl"
11703 shlibpath_var=SHLIB_PATH
11704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706 soname_spec='$libname$release$shared_ext$major'
11707 ;;
11708 esac
11709 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11710 postinstall_cmds='chmod 555 $lib'
11711 # or fails outright, so override atomically:
11712 install_override_mode=555
11713 ;;
11714
11715 interix[3-9]*)
11716 version_type=linux # correct to gnu/linux during the next big refactor
11717 need_lib_prefix=no
11718 need_version=no
11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11720 soname_spec='$libname$release$shared_ext$major'
11721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=no
11724 hardcode_into_libs=yes
11725 ;;
11726
11727 irix5* | irix6* | nonstopux*)
11728 case $host_os in
11729 nonstopux*) version_type=nonstopux ;;
11730 *)
11731 if test yes = "$lt_cv_prog_gnu_ld"; then
11732 version_type=linux # correct to gnu/linux during the next big refactor
11733 else
11734 version_type=irix
11735 fi ;;
11736 esac
11737 need_lib_prefix=no
11738 need_version=no
11739 soname_spec='$libname$release$shared_ext$major'
11740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11741 case $host_os in
11742 irix5* | nonstopux*)
11743 libsuff= shlibsuff=
11744 ;;
11745 *)
11746 case $LD in # libtool.m4 will add one of these switches to LD
11747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11748 libsuff= shlibsuff= libmagic=32-bit;;
11749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11750 libsuff=32 shlibsuff=N32 libmagic=N32;;
11751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11753 *) libsuff= shlibsuff= libmagic=never-match;;
11754 esac
11755 ;;
11756 esac
11757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11758 shlibpath_overrides_runpath=no
11759 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11760 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11761 hardcode_into_libs=yes
11762 ;;
11763
11764 # No shared lib support for Linux oldld, aout, or coff.
11765 linux*oldld* | linux*aout* | linux*coff*)
11766 dynamic_linker=no
11767 ;;
11768
11769 linux*android*)
11770 version_type=none # Android doesn't support versioned libraries.
11771 need_lib_prefix=no
11772 need_version=no
11773 library_names_spec='$libname$release$shared_ext'
11774 soname_spec='$libname$release$shared_ext'
11775 finish_cmds=
11776 shlibpath_var=LD_LIBRARY_PATH
11777 shlibpath_overrides_runpath=yes
11778
11779 # This implies no fast_install, which is unacceptable.
11780 # Some rework will be needed to allow for fast_install
11781 # before this can be enabled.
11782 hardcode_into_libs=yes
11783
11784 dynamic_linker='Android linker'
11785 # Don't embed -rpath directories since the linker doesn't support them.
11786 hardcode_libdir_flag_spec='-L$libdir'
11787 ;;
11788
11789 # This must be glibc/ELF.
11790 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11791 version_type=linux # correct to gnu/linux during the next big refactor
11792 need_lib_prefix=no
11793 need_version=no
11794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11795 soname_spec='$libname$release$shared_ext$major'
11796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=no
11799
11800 # Some binutils ld are patched to set DT_RUNPATH
11801 if test ${lt_cv_shlibpath_overrides_runpath+y}
11802 then :
11803 printf %s "(cached) " >&6
11804 else $as_nop
11805 lt_cv_shlibpath_overrides_runpath=no
11806 save_LDFLAGS=$LDFLAGS
11807 save_libdir=$libdir
11808 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11809 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812
11813 int
11814 main (void)
11815 {
11816
11817 ;
11818 return 0;
11819 }
11820 _ACEOF
11821 if ac_fn_c_try_link "$LINENO"
11822 then :
11823 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11824 then :
11825 lt_cv_shlibpath_overrides_runpath=yes
11826 fi
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11829 conftest$ac_exeext conftest.$ac_ext
11830 LDFLAGS=$save_LDFLAGS
11831 libdir=$save_libdir
11832
11833 fi
11834
11835 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11836
11837 # This implies no fast_install, which is unacceptable.
11838 # Some rework will be needed to allow for fast_install
11839 # before this can be enabled.
11840 hardcode_into_libs=yes
11841
11842 # Add ABI-specific directories to the system library path.
11843 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11844
11845 # Ideally, we could use ldconfig to report *all* directores which are
11846 # searched for libraries, however this is still not possible. Aside from not
11847 # being certain /sbin/ldconfig is available, command
11848 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11849 # even though it is searched at run-time. Try to do the best guess by
11850 # appending ld.so.conf contents (and includes) to the search path.
11851 if test -f /etc/ld.so.conf; then
11852 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' ' '`
11853 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11854 fi
11855
11856 # We used to test for /lib/ld.so.1 and disable shared libraries on
11857 # powerpc, because MkLinux only supported shared libraries with the
11858 # GNU dynamic linker. Since this was broken with cross compilers,
11859 # most powerpc-linux boxes support dynamic linking these days and
11860 # people can always --disable-shared, the test was removed, and we
11861 # assume the GNU/Linux dynamic linker is in use.
11862 dynamic_linker='GNU/Linux ld.so'
11863 ;;
11864
11865 netbsd*)
11866 version_type=sunos
11867 need_lib_prefix=no
11868 need_version=no
11869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11872 dynamic_linker='NetBSD (a.out) ld.so'
11873 else
11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11875 soname_spec='$libname$release$shared_ext$major'
11876 dynamic_linker='NetBSD ld.elf_so'
11877 fi
11878 shlibpath_var=LD_LIBRARY_PATH
11879 shlibpath_overrides_runpath=yes
11880 hardcode_into_libs=yes
11881 ;;
11882
11883 newsos6)
11884 version_type=linux # correct to gnu/linux during the next big refactor
11885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11886 shlibpath_var=LD_LIBRARY_PATH
11887 shlibpath_overrides_runpath=yes
11888 ;;
11889
11890 *nto* | *qnx*)
11891 version_type=qnx
11892 need_lib_prefix=no
11893 need_version=no
11894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11895 soname_spec='$libname$release$shared_ext$major'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 shlibpath_overrides_runpath=no
11898 hardcode_into_libs=yes
11899 dynamic_linker='ldqnx.so'
11900 ;;
11901
11902 openbsd* | bitrig*)
11903 version_type=sunos
11904 sys_lib_dlsearch_path_spec=/usr/lib
11905 need_lib_prefix=no
11906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11907 need_version=no
11908 else
11909 need_version=yes
11910 fi
11911 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11913 shlibpath_var=LD_LIBRARY_PATH
11914 shlibpath_overrides_runpath=yes
11915 ;;
11916
11917 os2*)
11918 libname_spec='$name'
11919 version_type=windows
11920 shrext_cmds=.dll
11921 need_version=no
11922 need_lib_prefix=no
11923 # OS/2 can only load a DLL with a base name of 8 characters or less.
11924 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11925 v=$($ECHO $release$versuffix | tr -d .-);
11926 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11927 $ECHO $n$v`$shared_ext'
11928 library_names_spec='${libname}_dll.$libext'
11929 dynamic_linker='OS/2 ld.exe'
11930 shlibpath_var=BEGINLIBPATH
11931 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11933 postinstall_cmds='base_file=`basename \$file`~
11934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11935 dldir=$destdir/`dirname \$dlpath`~
11936 test -d \$dldir || mkdir -p \$dldir~
11937 $install_prog $dir/$dlname \$dldir/$dlname~
11938 chmod a+x \$dldir/$dlname~
11939 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11940 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11941 fi'
11942 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11943 dlpath=$dir/\$dldll~
11944 $RM \$dlpath'
11945 ;;
11946
11947 osf3* | osf4* | osf5*)
11948 version_type=osf
11949 need_lib_prefix=no
11950 need_version=no
11951 soname_spec='$libname$release$shared_ext$major'
11952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11956 ;;
11957
11958 rdos*)
11959 dynamic_linker=no
11960 ;;
11961
11962 solaris*)
11963 version_type=linux # correct to gnu/linux during the next big refactor
11964 need_lib_prefix=no
11965 need_version=no
11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11967 soname_spec='$libname$release$shared_ext$major'
11968 shlibpath_var=LD_LIBRARY_PATH
11969 shlibpath_overrides_runpath=yes
11970 hardcode_into_libs=yes
11971 # ldd complains unless libraries are executable
11972 postinstall_cmds='chmod +x $lib'
11973 ;;
11974
11975 sunos4*)
11976 version_type=sunos
11977 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11979 shlibpath_var=LD_LIBRARY_PATH
11980 shlibpath_overrides_runpath=yes
11981 if test yes = "$with_gnu_ld"; then
11982 need_lib_prefix=no
11983 fi
11984 need_version=yes
11985 ;;
11986
11987 sysv4 | sysv4.3*)
11988 version_type=linux # correct to gnu/linux during the next big refactor
11989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11990 soname_spec='$libname$release$shared_ext$major'
11991 shlibpath_var=LD_LIBRARY_PATH
11992 case $host_vendor in
11993 sni)
11994 shlibpath_overrides_runpath=no
11995 need_lib_prefix=no
11996 runpath_var=LD_RUN_PATH
11997 ;;
11998 siemens)
11999 need_lib_prefix=no
12000 ;;
12001 motorola)
12002 need_lib_prefix=no
12003 need_version=no
12004 shlibpath_overrides_runpath=no
12005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12006 ;;
12007 esac
12008 ;;
12009
12010 sysv4*MP*)
12011 if test -d /usr/nec; then
12012 version_type=linux # correct to gnu/linux during the next big refactor
12013 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12014 soname_spec='$libname$shared_ext.$major'
12015 shlibpath_var=LD_LIBRARY_PATH
12016 fi
12017 ;;
12018
12019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12020 version_type=sco
12021 need_lib_prefix=no
12022 need_version=no
12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12024 soname_spec='$libname$release$shared_ext$major'
12025 shlibpath_var=LD_LIBRARY_PATH
12026 shlibpath_overrides_runpath=yes
12027 hardcode_into_libs=yes
12028 if test yes = "$with_gnu_ld"; then
12029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12030 else
12031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12032 case $host_os in
12033 sco3.2v5*)
12034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12035 ;;
12036 esac
12037 fi
12038 sys_lib_dlsearch_path_spec='/usr/lib'
12039 ;;
12040
12041 tpf*)
12042 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12043 version_type=linux # correct to gnu/linux during the next big refactor
12044 need_lib_prefix=no
12045 need_version=no
12046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath=no
12049 hardcode_into_libs=yes
12050 ;;
12051
12052 uts4*)
12053 version_type=linux # correct to gnu/linux during the next big refactor
12054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12055 soname_spec='$libname$release$shared_ext$major'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 ;;
12058
12059 *)
12060 dynamic_linker=no
12061 ;;
12062 esac
12063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12064 printf "%s\n" "$dynamic_linker" >&6; }
12065 test no = "$dynamic_linker" && can_build_shared=no
12066
12067 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12068 if test yes = "$GCC"; then
12069 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12070 fi
12071
12072 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12073 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12074 fi
12075
12076 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12077 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12078 fi
12079
12080 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12081 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12082
12083 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12084 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12085
12086 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12087 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12186 printf %s "checking how to hardcode library paths into programs... " >&6; }
12187 hardcode_action=
12188 if test -n "$hardcode_libdir_flag_spec" ||
12189 test -n "$runpath_var" ||
12190 test yes = "$hardcode_automatic"; then
12191
12192 # We can hardcode non-existent directories.
12193 if test no != "$hardcode_direct" &&
12194 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12195 # have to relink, otherwise we might link with an installed library
12196 # when we should be linking with a yet-to-be-installed one
12197 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12198 test no != "$hardcode_minus_L"; then
12199 # Linking always hardcodes the temporary library directory.
12200 hardcode_action=relink
12201 else
12202 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12203 hardcode_action=immediate
12204 fi
12205 else
12206 # We cannot hardcode anything, or else we can only hardcode existing
12207 # directories.
12208 hardcode_action=unsupported
12209 fi
12210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12211 printf "%s\n" "$hardcode_action" >&6; }
12212
12213 if test relink = "$hardcode_action" ||
12214 test yes = "$inherit_rpath"; then
12215 # Fast installation is not supported
12216 enable_fast_install=no
12217 elif test yes = "$shlibpath_overrides_runpath" ||
12218 test no = "$enable_shared"; then
12219 # Fast installation is not necessary
12220 enable_fast_install=needless
12221 fi
12222
12223
12224
12225
12226
12227
12228 if test yes != "$enable_dlopen"; then
12229 enable_dlopen=unknown
12230 enable_dlopen_self=unknown
12231 enable_dlopen_self_static=unknown
12232 else
12233 lt_cv_dlopen=no
12234 lt_cv_dlopen_libs=
12235
12236 case $host_os in
12237 beos*)
12238 lt_cv_dlopen=load_add_on
12239 lt_cv_dlopen_libs=
12240 lt_cv_dlopen_self=yes
12241 ;;
12242
12243 mingw* | pw32* | cegcc*)
12244 lt_cv_dlopen=LoadLibrary
12245 lt_cv_dlopen_libs=
12246 ;;
12247
12248 cygwin*)
12249 lt_cv_dlopen=dlopen
12250 lt_cv_dlopen_libs=
12251 ;;
12252
12253 darwin*)
12254 # if libdl is installed we need to link against it
12255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12256 printf %s "checking for dlopen in -ldl... " >&6; }
12257 if test ${ac_cv_lib_dl_dlopen+y}
12258 then :
12259 printf %s "(cached) " >&6
12260 else $as_nop
12261 ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-ldl $LIBS"
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12265
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12269 char dlopen ();
12270 int
12271 main (void)
12272 {
12273 return dlopen ();
12274 ;
12275 return 0;
12276 }
12277 _ACEOF
12278 if ac_fn_c_try_link "$LINENO"
12279 then :
12280 ac_cv_lib_dl_dlopen=yes
12281 else $as_nop
12282 ac_cv_lib_dl_dlopen=no
12283 fi
12284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12285 conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12287 fi
12288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12289 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12290 if test "x$ac_cv_lib_dl_dlopen" = xyes
12291 then :
12292 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12293 else $as_nop
12294
12295 lt_cv_dlopen=dyld
12296 lt_cv_dlopen_libs=
12297 lt_cv_dlopen_self=yes
12298
12299 fi
12300
12301 ;;
12302
12303 tpf*)
12304 # Don't try to run any link tests for TPF. We know it's impossible
12305 # because TPF is a cross-compiler, and we know how we open DSOs.
12306 lt_cv_dlopen=dlopen
12307 lt_cv_dlopen_libs=
12308 lt_cv_dlopen_self=no
12309 ;;
12310
12311 *)
12312 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12313 if test "x$ac_cv_func_shl_load" = xyes
12314 then :
12315 lt_cv_dlopen=shl_load
12316 else $as_nop
12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12318 printf %s "checking for shl_load in -ldld... " >&6; }
12319 if test ${ac_cv_lib_dld_shl_load+y}
12320 then :
12321 printf %s "(cached) " >&6
12322 else $as_nop
12323 ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-ldld $LIBS"
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12327
12328 /* Override any GCC internal prototype to avoid an error.
12329 Use char because int might match the return type of a GCC
12330 builtin and then its argument prototype would still apply. */
12331 char shl_load ();
12332 int
12333 main (void)
12334 {
12335 return shl_load ();
12336 ;
12337 return 0;
12338 }
12339 _ACEOF
12340 if ac_fn_c_try_link "$LINENO"
12341 then :
12342 ac_cv_lib_dld_shl_load=yes
12343 else $as_nop
12344 ac_cv_lib_dld_shl_load=no
12345 fi
12346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12349 fi
12350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12351 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12352 if test "x$ac_cv_lib_dld_shl_load" = xyes
12353 then :
12354 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12355 else $as_nop
12356 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12357 if test "x$ac_cv_func_dlopen" = xyes
12358 then :
12359 lt_cv_dlopen=dlopen
12360 else $as_nop
12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12362 printf %s "checking for dlopen in -ldl... " >&6; }
12363 if test ${ac_cv_lib_dl_dlopen+y}
12364 then :
12365 printf %s "(cached) " >&6
12366 else $as_nop
12367 ac_check_lib_save_LIBS=$LIBS
12368 LIBS="-ldl $LIBS"
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371
12372 /* Override any GCC internal prototype to avoid an error.
12373 Use char because int might match the return type of a GCC
12374 builtin and then its argument prototype would still apply. */
12375 char dlopen ();
12376 int
12377 main (void)
12378 {
12379 return dlopen ();
12380 ;
12381 return 0;
12382 }
12383 _ACEOF
12384 if ac_fn_c_try_link "$LINENO"
12385 then :
12386 ac_cv_lib_dl_dlopen=yes
12387 else $as_nop
12388 ac_cv_lib_dl_dlopen=no
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12391 conftest$ac_exeext conftest.$ac_ext
12392 LIBS=$ac_check_lib_save_LIBS
12393 fi
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12395 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12396 if test "x$ac_cv_lib_dl_dlopen" = xyes
12397 then :
12398 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12399 else $as_nop
12400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12401 printf %s "checking for dlopen in -lsvld... " >&6; }
12402 if test ${ac_cv_lib_svld_dlopen+y}
12403 then :
12404 printf %s "(cached) " >&6
12405 else $as_nop
12406 ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-lsvld $LIBS"
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12410
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12414 char dlopen ();
12415 int
12416 main (void)
12417 {
12418 return dlopen ();
12419 ;
12420 return 0;
12421 }
12422 _ACEOF
12423 if ac_fn_c_try_link "$LINENO"
12424 then :
12425 ac_cv_lib_svld_dlopen=yes
12426 else $as_nop
12427 ac_cv_lib_svld_dlopen=no
12428 fi
12429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12430 conftest$ac_exeext conftest.$ac_ext
12431 LIBS=$ac_check_lib_save_LIBS
12432 fi
12433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12434 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12435 if test "x$ac_cv_lib_svld_dlopen" = xyes
12436 then :
12437 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12438 else $as_nop
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12440 printf %s "checking for dld_link in -ldld... " >&6; }
12441 if test ${ac_cv_lib_dld_dld_link+y}
12442 then :
12443 printf %s "(cached) " >&6
12444 else $as_nop
12445 ac_check_lib_save_LIBS=$LIBS
12446 LIBS="-ldld $LIBS"
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12449
12450 /* Override any GCC internal prototype to avoid an error.
12451 Use char because int might match the return type of a GCC
12452 builtin and then its argument prototype would still apply. */
12453 char dld_link ();
12454 int
12455 main (void)
12456 {
12457 return dld_link ();
12458 ;
12459 return 0;
12460 }
12461 _ACEOF
12462 if ac_fn_c_try_link "$LINENO"
12463 then :
12464 ac_cv_lib_dld_dld_link=yes
12465 else $as_nop
12466 ac_cv_lib_dld_dld_link=no
12467 fi
12468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12469 conftest$ac_exeext conftest.$ac_ext
12470 LIBS=$ac_check_lib_save_LIBS
12471 fi
12472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12473 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12474 if test "x$ac_cv_lib_dld_dld_link" = xyes
12475 then :
12476 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12477 fi
12478
12479
12480 fi
12481
12482
12483 fi
12484
12485
12486 fi
12487
12488
12489 fi
12490
12491
12492 fi
12493
12494 ;;
12495 esac
12496
12497 if test no = "$lt_cv_dlopen"; then
12498 enable_dlopen=no
12499 else
12500 enable_dlopen=yes
12501 fi
12502
12503 case $lt_cv_dlopen in
12504 dlopen)
12505 save_CPPFLAGS=$CPPFLAGS
12506 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12507
12508 save_LDFLAGS=$LDFLAGS
12509 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12510
12511 save_LIBS=$LIBS
12512 LIBS="$lt_cv_dlopen_libs $LIBS"
12513
12514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12515 printf %s "checking whether a program can dlopen itself... " >&6; }
12516 if test ${lt_cv_dlopen_self+y}
12517 then :
12518 printf %s "(cached) " >&6
12519 else $as_nop
12520 if test yes = "$cross_compiling"; then :
12521 lt_cv_dlopen_self=cross
12522 else
12523 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12524 lt_status=$lt_dlunknown
12525 cat > conftest.$ac_ext <<_LT_EOF
12526 #line $LINENO "configure"
12527 #include "confdefs.h"
12528
12529 #if HAVE_DLFCN_H
12530 #include <dlfcn.h>
12531 #endif
12532
12533 #include <stdio.h>
12534
12535 #ifdef RTLD_GLOBAL
12536 # define LT_DLGLOBAL RTLD_GLOBAL
12537 #else
12538 # ifdef DL_GLOBAL
12539 # define LT_DLGLOBAL DL_GLOBAL
12540 # else
12541 # define LT_DLGLOBAL 0
12542 # endif
12543 #endif
12544
12545 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12546 find out it does not work in some platform. */
12547 #ifndef LT_DLLAZY_OR_NOW
12548 # ifdef RTLD_LAZY
12549 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12550 # else
12551 # ifdef DL_LAZY
12552 # define LT_DLLAZY_OR_NOW DL_LAZY
12553 # else
12554 # ifdef RTLD_NOW
12555 # define LT_DLLAZY_OR_NOW RTLD_NOW
12556 # else
12557 # ifdef DL_NOW
12558 # define LT_DLLAZY_OR_NOW DL_NOW
12559 # else
12560 # define LT_DLLAZY_OR_NOW 0
12561 # endif
12562 # endif
12563 # endif
12564 # endif
12565 #endif
12566
12567 /* When -fvisibility=hidden is used, assume the code has been annotated
12568 correspondingly for the symbols needed. */
12569 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12570 int fnord () __attribute__((visibility("default")));
12571 #endif
12572
12573 int fnord () { return 42; }
12574 int main ()
12575 {
12576 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12577 int status = $lt_dlunknown;
12578
12579 if (self)
12580 {
12581 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12582 else
12583 {
12584 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12585 else puts (dlerror ());
12586 }
12587 /* dlclose (self); */
12588 }
12589 else
12590 puts (dlerror ());
12591
12592 return status;
12593 }
12594 _LT_EOF
12595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12596 (eval $ac_link) 2>&5
12597 ac_status=$?
12598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12599 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12600 (./conftest; exit; ) >&5 2>/dev/null
12601 lt_status=$?
12602 case x$lt_status in
12603 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12604 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12605 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12606 esac
12607 else :
12608 # compilation failed
12609 lt_cv_dlopen_self=no
12610 fi
12611 fi
12612 rm -fr conftest*
12613
12614
12615 fi
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12617 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12618
12619 if test yes = "$lt_cv_dlopen_self"; then
12620 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12622 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12623 if test ${lt_cv_dlopen_self_static+y}
12624 then :
12625 printf %s "(cached) " >&6
12626 else $as_nop
12627 if test yes = "$cross_compiling"; then :
12628 lt_cv_dlopen_self_static=cross
12629 else
12630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12631 lt_status=$lt_dlunknown
12632 cat > conftest.$ac_ext <<_LT_EOF
12633 #line $LINENO "configure"
12634 #include "confdefs.h"
12635
12636 #if HAVE_DLFCN_H
12637 #include <dlfcn.h>
12638 #endif
12639
12640 #include <stdio.h>
12641
12642 #ifdef RTLD_GLOBAL
12643 # define LT_DLGLOBAL RTLD_GLOBAL
12644 #else
12645 # ifdef DL_GLOBAL
12646 # define LT_DLGLOBAL DL_GLOBAL
12647 # else
12648 # define LT_DLGLOBAL 0
12649 # endif
12650 #endif
12651
12652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12653 find out it does not work in some platform. */
12654 #ifndef LT_DLLAZY_OR_NOW
12655 # ifdef RTLD_LAZY
12656 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12657 # else
12658 # ifdef DL_LAZY
12659 # define LT_DLLAZY_OR_NOW DL_LAZY
12660 # else
12661 # ifdef RTLD_NOW
12662 # define LT_DLLAZY_OR_NOW RTLD_NOW
12663 # else
12664 # ifdef DL_NOW
12665 # define LT_DLLAZY_OR_NOW DL_NOW
12666 # else
12667 # define LT_DLLAZY_OR_NOW 0
12668 # endif
12669 # endif
12670 # endif
12671 # endif
12672 #endif
12673
12674 /* When -fvisibility=hidden is used, assume the code has been annotated
12675 correspondingly for the symbols needed. */
12676 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12677 int fnord () __attribute__((visibility("default")));
12678 #endif
12679
12680 int fnord () { return 42; }
12681 int main ()
12682 {
12683 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12684 int status = $lt_dlunknown;
12685
12686 if (self)
12687 {
12688 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12689 else
12690 {
12691 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12692 else puts (dlerror ());
12693 }
12694 /* dlclose (self); */
12695 }
12696 else
12697 puts (dlerror ());
12698
12699 return status;
12700 }
12701 _LT_EOF
12702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12703 (eval $ac_link) 2>&5
12704 ac_status=$?
12705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12706 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12707 (./conftest; exit; ) >&5 2>/dev/null
12708 lt_status=$?
12709 case x$lt_status in
12710 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12711 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12712 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12713 esac
12714 else :
12715 # compilation failed
12716 lt_cv_dlopen_self_static=no
12717 fi
12718 fi
12719 rm -fr conftest*
12720
12721
12722 fi
12723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12724 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12725 fi
12726
12727 CPPFLAGS=$save_CPPFLAGS
12728 LDFLAGS=$save_LDFLAGS
12729 LIBS=$save_LIBS
12730 ;;
12731 esac
12732
12733 case $lt_cv_dlopen_self in
12734 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12735 *) enable_dlopen_self=unknown ;;
12736 esac
12737
12738 case $lt_cv_dlopen_self_static in
12739 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12740 *) enable_dlopen_self_static=unknown ;;
12741 esac
12742 fi
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760 striplib=
12761 old_striplib=
12762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12763 printf %s "checking whether stripping libraries is possible... " >&6; }
12764 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12765 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12766 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12768 printf "%s\n" "yes" >&6; }
12769 else
12770 # FIXME - insert some real tests, host_os isn't really good enough
12771 case $host_os in
12772 darwin*)
12773 if test -n "$STRIP"; then
12774 striplib="$STRIP -x"
12775 old_striplib="$STRIP -S"
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12777 printf "%s\n" "yes" >&6; }
12778 else
12779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 printf "%s\n" "no" >&6; }
12781 fi
12782 ;;
12783 *)
12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 printf "%s\n" "no" >&6; }
12786 ;;
12787 esac
12788 fi
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801 # Report what library types will actually be built
12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12803 printf %s "checking if libtool supports shared libraries... " >&6; }
12804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12805 printf "%s\n" "$can_build_shared" >&6; }
12806
12807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12808 printf %s "checking whether to build shared libraries... " >&6; }
12809 test no = "$can_build_shared" && enable_shared=no
12810
12811 # On AIX, shared libraries and static libraries use the same namespace, and
12812 # are all built from PIC.
12813 case $host_os in
12814 aix3*)
12815 test yes = "$enable_shared" && enable_static=no
12816 if test -n "$RANLIB"; then
12817 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12818 postinstall_cmds='$RANLIB $lib'
12819 fi
12820 ;;
12821
12822 aix[4-9]*)
12823 if test ia64 != "$host_cpu"; then
12824 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12825 yes,aix,yes) ;; # shared object as lib.so file only
12826 yes,svr4,*) ;; # shared object as lib.so archive member only
12827 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12828 esac
12829 fi
12830 ;;
12831 esac
12832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12833 printf "%s\n" "$enable_shared" >&6; }
12834
12835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12836 printf %s "checking whether to build static libraries... " >&6; }
12837 # Make sure either enable_shared or enable_static is yes.
12838 test yes = "$enable_shared" || enable_static=yes
12839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12840 printf "%s\n" "$enable_static" >&6; }
12841
12842
12843
12844
12845 fi
12846 ac_ext=c
12847 ac_cpp='$CPP $CPPFLAGS'
12848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12851
12852 CC=$lt_save_CC
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868 ac_config_commands="$ac_config_commands libtool"
12869
12870
12871
12872
12873 # Only expand once:
12874
12875
12876
12877 # Check whether --enable-largefile was given.
12878 if test ${enable_largefile+y}
12879 then :
12880 enableval=$enable_largefile;
12881 fi
12882
12883 if test "$enable_largefile" != no; then
12884
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12886 printf %s "checking for special C compiler options needed for large files... " >&6; }
12887 if test ${ac_cv_sys_largefile_CC+y}
12888 then :
12889 printf %s "(cached) " >&6
12890 else $as_nop
12891 ac_cv_sys_largefile_CC=no
12892 if test "$GCC" != yes; then
12893 ac_save_CC=$CC
12894 while :; do
12895 # IRIX 6.2 and later do not support large files by default,
12896 # so use the C compiler's -n32 option if that helps.
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12899 #include <sys/types.h>
12900 /* Check that off_t can represent 2**63 - 1 correctly.
12901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12902 since some C++ compilers masquerading as C compilers
12903 incorrectly reject 9223372036854775807. */
12904 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12906 && LARGE_OFF_T % 2147483647 == 1)
12907 ? 1 : -1];
12908 int
12909 main (void)
12910 {
12911
12912 ;
12913 return 0;
12914 }
12915 _ACEOF
12916 if ac_fn_c_try_compile "$LINENO"
12917 then :
12918 break
12919 fi
12920 rm -f core conftest.err conftest.$ac_objext conftest.beam
12921 CC="$CC -n32"
12922 if ac_fn_c_try_compile "$LINENO"
12923 then :
12924 ac_cv_sys_largefile_CC=' -n32'; break
12925 fi
12926 rm -f core conftest.err conftest.$ac_objext conftest.beam
12927 break
12928 done
12929 CC=$ac_save_CC
12930 rm -f conftest.$ac_ext
12931 fi
12932 fi
12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12934 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12935 if test "$ac_cv_sys_largefile_CC" != no; then
12936 CC=$CC$ac_cv_sys_largefile_CC
12937 fi
12938
12939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12940 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12941 if test ${ac_cv_sys_file_offset_bits+y}
12942 then :
12943 printf %s "(cached) " >&6
12944 else $as_nop
12945 while :; do
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12948 #include <sys/types.h>
12949 /* Check that off_t can represent 2**63 - 1 correctly.
12950 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12951 since some C++ compilers masquerading as C compilers
12952 incorrectly reject 9223372036854775807. */
12953 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12954 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12955 && LARGE_OFF_T % 2147483647 == 1)
12956 ? 1 : -1];
12957 int
12958 main (void)
12959 {
12960
12961 ;
12962 return 0;
12963 }
12964 _ACEOF
12965 if ac_fn_c_try_compile "$LINENO"
12966 then :
12967 ac_cv_sys_file_offset_bits=no; break
12968 fi
12969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972 #define _FILE_OFFSET_BITS 64
12973 #include <sys/types.h>
12974 /* Check that off_t can represent 2**63 - 1 correctly.
12975 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12976 since some C++ compilers masquerading as C compilers
12977 incorrectly reject 9223372036854775807. */
12978 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12979 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12980 && LARGE_OFF_T % 2147483647 == 1)
12981 ? 1 : -1];
12982 int
12983 main (void)
12984 {
12985
12986 ;
12987 return 0;
12988 }
12989 _ACEOF
12990 if ac_fn_c_try_compile "$LINENO"
12991 then :
12992 ac_cv_sys_file_offset_bits=64; break
12993 fi
12994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12995 ac_cv_sys_file_offset_bits=unknown
12996 break
12997 done
12998 fi
12999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13000 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13001 case $ac_cv_sys_file_offset_bits in #(
13002 no | unknown) ;;
13003 *)
13004 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13005 ;;
13006 esac
13007 rm -rf conftest*
13008 if test $ac_cv_sys_file_offset_bits = unknown; then
13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13010 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13011 if test ${ac_cv_sys_large_files+y}
13012 then :
13013 printf %s "(cached) " >&6
13014 else $as_nop
13015 while :; do
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13018 #include <sys/types.h>
13019 /* Check that off_t can represent 2**63 - 1 correctly.
13020 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13021 since some C++ compilers masquerading as C compilers
13022 incorrectly reject 9223372036854775807. */
13023 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13025 && LARGE_OFF_T % 2147483647 == 1)
13026 ? 1 : -1];
13027 int
13028 main (void)
13029 {
13030
13031 ;
13032 return 0;
13033 }
13034 _ACEOF
13035 if ac_fn_c_try_compile "$LINENO"
13036 then :
13037 ac_cv_sys_large_files=no; break
13038 fi
13039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042 #define _LARGE_FILES 1
13043 #include <sys/types.h>
13044 /* Check that off_t can represent 2**63 - 1 correctly.
13045 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13046 since some C++ compilers masquerading as C compilers
13047 incorrectly reject 9223372036854775807. */
13048 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13049 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13050 && LARGE_OFF_T % 2147483647 == 1)
13051 ? 1 : -1];
13052 int
13053 main (void)
13054 {
13055
13056 ;
13057 return 0;
13058 }
13059 _ACEOF
13060 if ac_fn_c_try_compile "$LINENO"
13061 then :
13062 ac_cv_sys_large_files=1; break
13063 fi
13064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13065 ac_cv_sys_large_files=unknown
13066 break
13067 done
13068 fi
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13070 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13071 case $ac_cv_sys_large_files in #(
13072 no | unknown) ;;
13073 *)
13074 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13075 ;;
13076 esac
13077 rm -rf conftest*
13078 fi
13079 fi
13080
13081
13082 ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
13083 if test "x$ac_cv_header_fnmatch_h" = xyes
13084 then :
13085 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
13086
13087 fi
13088 ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
13089 if test "x$ac_cv_header_glob_h" = xyes
13090 then :
13091 printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h
13092
13093 fi
13094 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
13095 if test "x$ac_cv_header_langinfo_h" = xyes
13096 then :
13097 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
13098
13099 fi
13100 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13101 if test "x$ac_cv_header_libintl_h" = xyes
13102 then :
13103 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
13104
13105 fi
13106 ac_fn_c_check_header_compile "$LINENO" "mcheck.h" "ac_cv_header_mcheck_h" "$ac_includes_default"
13107 if test "x$ac_cv_header_mcheck_h" = xyes
13108 then :
13109 printf "%s\n" "#define HAVE_MCHECK_H 1" >>confdefs.h
13110
13111 fi
13112 ac_fn_c_check_header_compile "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
13113 if test "x$ac_cv_header_stdalign_h" = xyes
13114 then :
13115 printf "%s\n" "#define HAVE_STDALIGN_H 1" >>confdefs.h
13116
13117 fi
13118
13119
13120 # For some systems we know that we have ld_version scripts.
13121 # Use it then as default.
13122 have_ld_version_script=no
13123 case "${host}" in
13124 *-*-linux*)
13125 have_ld_version_script=yes
13126 ;;
13127 *-*-gnu*)
13128 have_ld_version_script=yes
13129 ;;
13130 esac
13131 # Check whether --enable-ld-version-script was given.
13132 if test ${enable_ld_version_script+y}
13133 then :
13134 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
13135 else $as_nop
13136 :
13137 fi
13138
13139 if test "$have_ld_version_script" = "yes"; then
13140 HAVE_LD_VERSION_SCRIPT_TRUE=
13141 HAVE_LD_VERSION_SCRIPT_FALSE='#'
13142 else
13143 HAVE_LD_VERSION_SCRIPT_TRUE='#'
13144 HAVE_LD_VERSION_SCRIPT_FALSE=
13145 fi
13146
13147
13148 # Check whether --enable-build-gcov was given.
13149 if test ${enable_build_gcov+y}
13150 then :
13151 enableval=$enable_build_gcov; if test ".$enableval" = .yes; then
13152 if test ".`$CC --version 2>&1 | grep 'GCC'`" != .; then
13153 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
13154 fi
13155 fi
13156
13157 fi
13158
13159
13160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setreuid" >&5
13161 printf %s "checking for library containing setreuid... " >&6; }
13162 if test ${ac_cv_search_setreuid+y}
13163 then :
13164 printf %s "(cached) " >&6
13165 else $as_nop
13166 ac_func_search_save_LIBS=$LIBS
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13169
13170 /* Override any GCC internal prototype to avoid an error.
13171 Use char because int might match the return type of a GCC
13172 builtin and then its argument prototype would still apply. */
13173 char setreuid ();
13174 int
13175 main (void)
13176 {
13177 return setreuid ();
13178 ;
13179 return 0;
13180 }
13181 _ACEOF
13182 for ac_lib in '' ucb
13183 do
13184 if test -z "$ac_lib"; then
13185 ac_res="none required"
13186 else
13187 ac_res=-l$ac_lib
13188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13189 fi
13190 if ac_fn_c_try_link "$LINENO"
13191 then :
13192 ac_cv_search_setreuid=$ac_res
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13195 conftest$ac_exeext
13196 if test ${ac_cv_search_setreuid+y}
13197 then :
13198 break
13199 fi
13200 done
13201 if test ${ac_cv_search_setreuid+y}
13202 then :
13203
13204 else $as_nop
13205 ac_cv_search_setreuid=no
13206 fi
13207 rm conftest.$ac_ext
13208 LIBS=$ac_func_search_save_LIBS
13209 fi
13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setreuid" >&5
13211 printf "%s\n" "$ac_cv_search_setreuid" >&6; }
13212 ac_res=$ac_cv_search_setreuid
13213 if test "$ac_res" != no
13214 then :
13215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13216
13217 fi
13218
13219 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
13220 if test "x$ac_cv_func_getuid" = xyes
13221 then :
13222 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
13223
13224 fi
13225 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
13226 if test "x$ac_cv_func_geteuid" = xyes
13227 then :
13228 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
13229
13230 fi
13231 ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
13232 if test "x$ac_cv_func_iconv" = xyes
13233 then :
13234 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
13235
13236 fi
13237 ac_fn_c_check_func "$LINENO" "mtrace" "ac_cv_func_mtrace"
13238 if test "x$ac_cv_func_mtrace" = xyes
13239 then :
13240 printf "%s\n" "#define HAVE_MTRACE 1" >>confdefs.h
13241
13242 fi
13243 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13244 if test "x$ac_cv_func_secure_getenv" = xyes
13245 then :
13246 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13247
13248 fi
13249 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13250 if test "x$ac_cv_func___secure_getenv" = xyes
13251 then :
13252 printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13253
13254 fi
13255 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
13256 if test "x$ac_cv_func_setreuid" = xyes
13257 then :
13258 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
13259
13260 fi
13261 ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
13262 if test "x$ac_cv_func_setuid" = xyes
13263 then :
13264 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
13265
13266 fi
13267 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13268 if test "x$ac_cv_func_stpcpy" = xyes
13269 then :
13270 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13271
13272 fi
13273 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13274 if test "x$ac_cv_func_strerror" = xyes
13275 then :
13276 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
13277
13278 fi
13279 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
13280 if test "x$ac_cv_func_vasprintf" = xyes
13281 then :
13282 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
13283
13284 fi
13285 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13286 if test "x$ac_cv_func_srandom" = xyes
13287 then :
13288 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13289
13290 fi
13291 ac_fn_c_check_func "$LINENO" "glob_pattern_p" "ac_cv_func_glob_pattern_p"
13292 if test "x$ac_cv_func_glob_pattern_p" = xyes
13293 then :
13294 printf "%s\n" "#define HAVE_GLOB_PATTERN_P 1" >>confdefs.h
13295
13296 fi
13297 ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
13298 if test "x$ac_cv_func_mbsrtowcs" = xyes
13299 then :
13300 printf "%s\n" "#define HAVE_MBSRTOWCS 1" >>confdefs.h
13301
13302 fi
13303
13304
13305
13306
13307
13308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13309 printf %s "checking whether NLS is requested... " >&6; }
13310 # Check whether --enable-nls was given.
13311 if test ${enable_nls+y}
13312 then :
13313 enableval=$enable_nls; USE_NLS=$enableval
13314 else $as_nop
13315 USE_NLS=yes
13316 fi
13317
13318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13319 printf "%s\n" "$USE_NLS" >&6; }
13320
13321
13322
13323
13324 GETTEXT_MACRO_VERSION=0.18
13325
13326
13327
13328
13329 # Prepare PATH_SEPARATOR.
13330 # The user is always right.
13331 if test "${PATH_SEPARATOR+set}" != set; then
13332 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13333 # contains only /bin. Note that ksh looks also at the FPATH variable,
13334 # so we have to set that as well for the test.
13335 PATH_SEPARATOR=:
13336 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13337 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13338 || PATH_SEPARATOR=';'
13339 }
13340 fi
13341
13342 # Find out how to test for executable files. Don't use a zero-byte file,
13343 # as systems may use methods other than mode bits to determine executability.
13344 cat >conf$$.file <<_ASEOF
13345 #! /bin/sh
13346 exit 0
13347 _ASEOF
13348 chmod +x conf$$.file
13349 if test -x conf$$.file >/dev/null 2>&1; then
13350 ac_executable_p="test -x"
13351 else
13352 ac_executable_p="test -f"
13353 fi
13354 rm -f conf$$.file
13355
13356 # Extract the first word of "msgfmt", so it can be a program name with args.
13357 set dummy msgfmt; ac_word=$2
13358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13359 printf %s "checking for $ac_word... " >&6; }
13360 if test ${ac_cv_path_MSGFMT+y}
13361 then :
13362 printf %s "(cached) " >&6
13363 else $as_nop
13364 case "$MSGFMT" in
13365 [\\/]* | ?:[\\/]*)
13366 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13367 ;;
13368 *)
13369 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13370 for ac_dir in $PATH; do
13371 IFS="$ac_save_IFS"
13372 test -z "$ac_dir" && ac_dir=.
13373 for ac_exec_ext in '' $ac_executable_extensions; do
13374 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13375 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13376 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13377 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13378 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13379 break 2
13380 fi
13381 fi
13382 done
13383 done
13384 IFS="$ac_save_IFS"
13385 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13386 ;;
13387 esac
13388 fi
13389 MSGFMT="$ac_cv_path_MSGFMT"
13390 if test "$MSGFMT" != ":"; then
13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13392 printf "%s\n" "$MSGFMT" >&6; }
13393 else
13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 printf "%s\n" "no" >&6; }
13396 fi
13397
13398 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13399 set dummy gmsgfmt; ac_word=$2
13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13401 printf %s "checking for $ac_word... " >&6; }
13402 if test ${ac_cv_path_GMSGFMT+y}
13403 then :
13404 printf %s "(cached) " >&6
13405 else $as_nop
13406 case $GMSGFMT in
13407 [\\/]* | ?:[\\/]*)
13408 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13409 ;;
13410 *)
13411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412 for as_dir in $PATH
13413 do
13414 IFS=$as_save_IFS
13415 case $as_dir in #(((
13416 '') as_dir=./ ;;
13417 */) ;;
13418 *) as_dir=$as_dir/ ;;
13419 esac
13420 for ac_exec_ext in '' $ac_executable_extensions; do
13421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13422 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
13423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13424 break 2
13425 fi
13426 done
13427 done
13428 IFS=$as_save_IFS
13429
13430 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13431 ;;
13432 esac
13433 fi
13434 GMSGFMT=$ac_cv_path_GMSGFMT
13435 if test -n "$GMSGFMT"; then
13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13437 printf "%s\n" "$GMSGFMT" >&6; }
13438 else
13439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 printf "%s\n" "no" >&6; }
13441 fi
13442
13443
13444
13445 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13446 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13447 *) MSGFMT_015=$MSGFMT ;;
13448 esac
13449
13450 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13451 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13452 *) GMSGFMT_015=$GMSGFMT ;;
13453 esac
13454
13455
13456
13457 # Prepare PATH_SEPARATOR.
13458 # The user is always right.
13459 if test "${PATH_SEPARATOR+set}" != set; then
13460 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13461 # contains only /bin. Note that ksh looks also at the FPATH variable,
13462 # so we have to set that as well for the test.
13463 PATH_SEPARATOR=:
13464 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13465 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13466 || PATH_SEPARATOR=';'
13467 }
13468 fi
13469
13470 # Find out how to test for executable files. Don't use a zero-byte file,
13471 # as systems may use methods other than mode bits to determine executability.
13472 cat >conf$$.file <<_ASEOF
13473 #! /bin/sh
13474 exit 0
13475 _ASEOF
13476 chmod +x conf$$.file
13477 if test -x conf$$.file >/dev/null 2>&1; then
13478 ac_executable_p="test -x"
13479 else
13480 ac_executable_p="test -f"
13481 fi
13482 rm -f conf$$.file
13483
13484 # Extract the first word of "xgettext", so it can be a program name with args.
13485 set dummy xgettext; ac_word=$2
13486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13487 printf %s "checking for $ac_word... " >&6; }
13488 if test ${ac_cv_path_XGETTEXT+y}
13489 then :
13490 printf %s "(cached) " >&6
13491 else $as_nop
13492 case "$XGETTEXT" in
13493 [\\/]* | ?:[\\/]*)
13494 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13495 ;;
13496 *)
13497 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13498 for ac_dir in $PATH; do
13499 IFS="$ac_save_IFS"
13500 test -z "$ac_dir" && ac_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13503 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13504 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13505 (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
13506 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13507 break 2
13508 fi
13509 fi
13510 done
13511 done
13512 IFS="$ac_save_IFS"
13513 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13514 ;;
13515 esac
13516 fi
13517 XGETTEXT="$ac_cv_path_XGETTEXT"
13518 if test "$XGETTEXT" != ":"; then
13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13520 printf "%s\n" "$XGETTEXT" >&6; }
13521 else
13522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13523 printf "%s\n" "no" >&6; }
13524 fi
13525
13526 rm -f messages.po
13527
13528 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13529 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13530 *) XGETTEXT_015=$XGETTEXT ;;
13531 esac
13532
13533
13534
13535 # Prepare PATH_SEPARATOR.
13536 # The user is always right.
13537 if test "${PATH_SEPARATOR+set}" != set; then
13538 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13539 # contains only /bin. Note that ksh looks also at the FPATH variable,
13540 # so we have to set that as well for the test.
13541 PATH_SEPARATOR=:
13542 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13543 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13544 || PATH_SEPARATOR=';'
13545 }
13546 fi
13547
13548 # Find out how to test for executable files. Don't use a zero-byte file,
13549 # as systems may use methods other than mode bits to determine executability.
13550 cat >conf$$.file <<_ASEOF
13551 #! /bin/sh
13552 exit 0
13553 _ASEOF
13554 chmod +x conf$$.file
13555 if test -x conf$$.file >/dev/null 2>&1; then
13556 ac_executable_p="test -x"
13557 else
13558 ac_executable_p="test -f"
13559 fi
13560 rm -f conf$$.file
13561
13562 # Extract the first word of "msgmerge", so it can be a program name with args.
13563 set dummy msgmerge; ac_word=$2
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13565 printf %s "checking for $ac_word... " >&6; }
13566 if test ${ac_cv_path_MSGMERGE+y}
13567 then :
13568 printf %s "(cached) " >&6
13569 else $as_nop
13570 case "$MSGMERGE" in
13571 [\\/]* | ?:[\\/]*)
13572 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13573 ;;
13574 *)
13575 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13576 for ac_dir in $PATH; do
13577 IFS="$ac_save_IFS"
13578 test -z "$ac_dir" && ac_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
13580 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13581 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13582 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13583 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13584 break 2
13585 fi
13586 fi
13587 done
13588 done
13589 IFS="$ac_save_IFS"
13590 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13591 ;;
13592 esac
13593 fi
13594 MSGMERGE="$ac_cv_path_MSGMERGE"
13595 if test "$MSGMERGE" != ":"; then
13596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13597 printf "%s\n" "$MSGMERGE" >&6; }
13598 else
13599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 printf "%s\n" "no" >&6; }
13601 fi
13602
13603
13604 test -n "$localedir" || localedir='${datadir}/locale'
13605
13606
13607 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13608
13609
13610 ac_config_commands="$ac_config_commands po-directories"
13611
13612
13613
13614 if test "X$prefix" = "XNONE"; then
13615 acl_final_prefix="$ac_default_prefix"
13616 else
13617 acl_final_prefix="$prefix"
13618 fi
13619 if test "X$exec_prefix" = "XNONE"; then
13620 acl_final_exec_prefix='${prefix}'
13621 else
13622 acl_final_exec_prefix="$exec_prefix"
13623 fi
13624 acl_save_prefix="$prefix"
13625 prefix="$acl_final_prefix"
13626 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13627 prefix="$acl_save_prefix"
13628
13629
13630
13631 # Check whether --with-gnu-ld was given.
13632 if test ${with_gnu_ld+y}
13633 then :
13634 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13635 else $as_nop
13636 with_gnu_ld=no
13637 fi
13638
13639 # Prepare PATH_SEPARATOR.
13640 # The user is always right.
13641 if test "${PATH_SEPARATOR+set}" != set; then
13642 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13643 # contains only /bin. Note that ksh looks also at the FPATH variable,
13644 # so we have to set that as well for the test.
13645 PATH_SEPARATOR=:
13646 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13647 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13648 || PATH_SEPARATOR=';'
13649 }
13650 fi
13651
13652 ac_prog=ld
13653 if test "$GCC" = yes; then
13654 # Check if gcc -print-prog-name=ld gives a path.
13655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13656 printf %s "checking for ld used by $CC... " >&6; }
13657 case $host in
13658 *-*-mingw*)
13659 # gcc leaves a trailing carriage return which upsets mingw
13660 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13661 *)
13662 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13663 esac
13664 case $ac_prog in
13665 # Accept absolute paths.
13666 [\\/]* | ?:[\\/]*)
13667 re_direlt='/[^/][^/]*/\.\./'
13668 # Canonicalize the pathname of ld
13669 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13670 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13671 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13672 done
13673 test -z "$LD" && LD="$ac_prog"
13674 ;;
13675 "")
13676 # If it fails, then pretend we aren't using GCC.
13677 ac_prog=ld
13678 ;;
13679 *)
13680 # If it is relative, then search for the first ld in PATH.
13681 with_gnu_ld=unknown
13682 ;;
13683 esac
13684 elif test "$with_gnu_ld" = yes; then
13685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13686 printf %s "checking for GNU ld... " >&6; }
13687 else
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13689 printf %s "checking for non-GNU ld... " >&6; }
13690 fi
13691 if test ${acl_cv_path_LD+y}
13692 then :
13693 printf %s "(cached) " >&6
13694 else $as_nop
13695 if test -z "$LD"; then
13696 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13697 for ac_dir in $PATH; do
13698 IFS="$acl_save_ifs"
13699 test -z "$ac_dir" && ac_dir=.
13700 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13701 acl_cv_path_LD="$ac_dir/$ac_prog"
13702 # Check to see if the program is GNU ld. I'd rather use --version,
13703 # but apparently some variants of GNU ld only accept -v.
13704 # Break only if it was the GNU/non-GNU ld that we prefer.
13705 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13706 *GNU* | *'with BFD'*)
13707 test "$with_gnu_ld" != no && break
13708 ;;
13709 *)
13710 test "$with_gnu_ld" != yes && break
13711 ;;
13712 esac
13713 fi
13714 done
13715 IFS="$acl_save_ifs"
13716 else
13717 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13718 fi
13719 fi
13720
13721 LD="$acl_cv_path_LD"
13722 if test -n "$LD"; then
13723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13724 printf "%s\n" "$LD" >&6; }
13725 else
13726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727 printf "%s\n" "no" >&6; }
13728 fi
13729 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13731 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
13732 if test ${acl_cv_prog_gnu_ld+y}
13733 then :
13734 printf %s "(cached) " >&6
13735 else $as_nop
13736 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13737 case `$LD -v 2>&1 </dev/null` in
13738 *GNU* | *'with BFD'*)
13739 acl_cv_prog_gnu_ld=yes
13740 ;;
13741 *)
13742 acl_cv_prog_gnu_ld=no
13743 ;;
13744 esac
13745 fi
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13747 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
13748 with_gnu_ld=$acl_cv_prog_gnu_ld
13749
13750
13751
13752
13753
13754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13755 printf %s "checking for shared library run path origin... " >&6; }
13756 if test ${acl_cv_rpath+y}
13757 then :
13758 printf %s "(cached) " >&6
13759 else $as_nop
13760
13761 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13762 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13763 . ./conftest.sh
13764 rm -f ./conftest.sh
13765 acl_cv_rpath=done
13766
13767 fi
13768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13769 printf "%s\n" "$acl_cv_rpath" >&6; }
13770 wl="$acl_cv_wl"
13771 acl_libext="$acl_cv_libext"
13772 acl_shlibext="$acl_cv_shlibext"
13773 acl_libname_spec="$acl_cv_libname_spec"
13774 acl_library_names_spec="$acl_cv_library_names_spec"
13775 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13776 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13777 acl_hardcode_direct="$acl_cv_hardcode_direct"
13778 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13779 # Check whether --enable-rpath was given.
13780 if test ${enable_rpath+y}
13781 then :
13782 enableval=$enable_rpath; :
13783 else $as_nop
13784 enable_rpath=yes
13785 fi
13786
13787
13788 ac_ext=c
13789 ac_cpp='$CPP $CPPFLAGS'
13790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13794 printf %s "checking how to run the C preprocessor... " >&6; }
13795 # On Suns, sometimes $CPP names a directory.
13796 if test -n "$CPP" && test -d "$CPP"; then
13797 CPP=
13798 fi
13799 if test -z "$CPP"; then
13800 if test ${ac_cv_prog_CPP+y}
13801 then :
13802 printf %s "(cached) " >&6
13803 else $as_nop
13804 # Double quotes because $CC needs to be expanded
13805 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
13806 do
13807 ac_preproc_ok=false
13808 for ac_c_preproc_warn_flag in '' yes
13809 do
13810 # Use a header file that comes with gcc, so configuring glibc
13811 # with a fresh cross-compiler works.
13812 # On the NeXT, cc -E runs the code through the compiler's parser,
13813 # not just through cpp. "Syntax error" is here to catch this case.
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 #include <limits.h>
13817 Syntax error
13818 _ACEOF
13819 if ac_fn_c_try_cpp "$LINENO"
13820 then :
13821
13822 else $as_nop
13823 # Broken: fails on valid input.
13824 continue
13825 fi
13826 rm -f conftest.err conftest.i conftest.$ac_ext
13827
13828 # OK, works on sane cases. Now check whether nonexistent headers
13829 # can be detected and how.
13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13832 #include <ac_nonexistent.h>
13833 _ACEOF
13834 if ac_fn_c_try_cpp "$LINENO"
13835 then :
13836 # Broken: success on invalid input.
13837 continue
13838 else $as_nop
13839 # Passes both tests.
13840 ac_preproc_ok=:
13841 break
13842 fi
13843 rm -f conftest.err conftest.i conftest.$ac_ext
13844
13845 done
13846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13847 rm -f conftest.i conftest.err conftest.$ac_ext
13848 if $ac_preproc_ok
13849 then :
13850 break
13851 fi
13852
13853 done
13854 ac_cv_prog_CPP=$CPP
13855
13856 fi
13857 CPP=$ac_cv_prog_CPP
13858 else
13859 ac_cv_prog_CPP=$CPP
13860 fi
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13862 printf "%s\n" "$CPP" >&6; }
13863 ac_preproc_ok=false
13864 for ac_c_preproc_warn_flag in '' yes
13865 do
13866 # Use a header file that comes with gcc, so configuring glibc
13867 # with a fresh cross-compiler works.
13868 # On the NeXT, cc -E runs the code through the compiler's parser,
13869 # not just through cpp. "Syntax error" is here to catch this case.
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 #include <limits.h>
13873 Syntax error
13874 _ACEOF
13875 if ac_fn_c_try_cpp "$LINENO"
13876 then :
13877
13878 else $as_nop
13879 # Broken: fails on valid input.
13880 continue
13881 fi
13882 rm -f conftest.err conftest.i conftest.$ac_ext
13883
13884 # OK, works on sane cases. Now check whether nonexistent headers
13885 # can be detected and how.
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888 #include <ac_nonexistent.h>
13889 _ACEOF
13890 if ac_fn_c_try_cpp "$LINENO"
13891 then :
13892 # Broken: success on invalid input.
13893 continue
13894 else $as_nop
13895 # Passes both tests.
13896 ac_preproc_ok=:
13897 break
13898 fi
13899 rm -f conftest.err conftest.i conftest.$ac_ext
13900
13901 done
13902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13903 rm -f conftest.i conftest.err conftest.$ac_ext
13904 if $ac_preproc_ok
13905 then :
13906
13907 else $as_nop
13908 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13909 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13910 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13911 See \`config.log' for more details" "$LINENO" 5; }
13912 fi
13913
13914 ac_ext=c
13915 ac_cpp='$CPP $CPPFLAGS'
13916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13919
13920
13921
13922
13923 acl_libdirstem=lib
13924 acl_libdirstem2=
13925 case "$host_os" in
13926 solaris*)
13927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13928 printf %s "checking for 64-bit host... " >&6; }
13929 if test ${gl_cv_solaris_64bit+y}
13930 then :
13931 printf %s "(cached) " >&6
13932 else $as_nop
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935
13936 #ifdef _LP64
13937 sixtyfour bits
13938 #endif
13939
13940 _ACEOF
13941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13942 $EGREP "sixtyfour bits" >/dev/null 2>&1
13943 then :
13944 gl_cv_solaris_64bit=yes
13945 else $as_nop
13946 gl_cv_solaris_64bit=no
13947 fi
13948 rm -rf conftest*
13949
13950
13951 fi
13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13953 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
13954 if test $gl_cv_solaris_64bit = yes; then
13955 acl_libdirstem=lib/64
13956 case "$host_cpu" in
13957 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13958 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13959 esac
13960 fi
13961 ;;
13962 *)
13963 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13964 if test -n "$searchpath"; then
13965 acl_save_IFS="${IFS= }"; IFS=":"
13966 for searchdir in $searchpath; do
13967 if test -d "$searchdir"; then
13968 case "$searchdir" in
13969 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13970 */../ | */.. )
13971 # Better ignore directories of this form. They are misleading.
13972 ;;
13973 *) searchdir=`cd "$searchdir" && pwd`
13974 case "$searchdir" in
13975 */lib64 ) acl_libdirstem=lib64 ;;
13976 esac ;;
13977 esac
13978 fi
13979 done
13980 IFS="$acl_save_IFS"
13981 fi
13982 ;;
13983 esac
13984 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997 use_additional=yes
13998
13999 acl_save_prefix="$prefix"
14000 prefix="$acl_final_prefix"
14001 acl_save_exec_prefix="$exec_prefix"
14002 exec_prefix="$acl_final_exec_prefix"
14003
14004 eval additional_includedir=\"$includedir\"
14005 eval additional_libdir=\"$libdir\"
14006
14007 exec_prefix="$acl_save_exec_prefix"
14008 prefix="$acl_save_prefix"
14009
14010
14011 # Check whether --with-libiconv-prefix was given.
14012 if test ${with_libiconv_prefix+y}
14013 then :
14014 withval=$with_libiconv_prefix;
14015 if test "X$withval" = "Xno"; then
14016 use_additional=no
14017 else
14018 if test "X$withval" = "X"; then
14019
14020 acl_save_prefix="$prefix"
14021 prefix="$acl_final_prefix"
14022 acl_save_exec_prefix="$exec_prefix"
14023 exec_prefix="$acl_final_exec_prefix"
14024
14025 eval additional_includedir=\"$includedir\"
14026 eval additional_libdir=\"$libdir\"
14027
14028 exec_prefix="$acl_save_exec_prefix"
14029 prefix="$acl_save_prefix"
14030
14031 else
14032 additional_includedir="$withval/include"
14033 additional_libdir="$withval/$acl_libdirstem"
14034 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14035 && ! test -d "$withval/$acl_libdirstem"; then
14036 additional_libdir="$withval/$acl_libdirstem2"
14037 fi
14038 fi
14039 fi
14040
14041 fi
14042
14043 LIBICONV=
14044 LTLIBICONV=
14045 INCICONV=
14046 LIBICONV_PREFIX=
14047 HAVE_LIBICONV=
14048 rpathdirs=
14049 ltrpathdirs=
14050 names_already_handled=
14051 names_next_round='iconv '
14052 while test -n "$names_next_round"; do
14053 names_this_round="$names_next_round"
14054 names_next_round=
14055 for name in $names_this_round; do
14056 already_handled=
14057 for n in $names_already_handled; do
14058 if test "$n" = "$name"; then
14059 already_handled=yes
14060 break
14061 fi
14062 done
14063 if test -z "$already_handled"; then
14064 names_already_handled="$names_already_handled $name"
14065 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14066 eval value=\"\$HAVE_LIB$uppername\"
14067 if test -n "$value"; then
14068 if test "$value" = yes; then
14069 eval value=\"\$LIB$uppername\"
14070 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14071 eval value=\"\$LTLIB$uppername\"
14072 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14073 else
14074 :
14075 fi
14076 else
14077 found_dir=
14078 found_la=
14079 found_so=
14080 found_a=
14081 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14082 if test -n "$acl_shlibext"; then
14083 shrext=".$acl_shlibext" # typically: shrext=.so
14084 else
14085 shrext=
14086 fi
14087 if test $use_additional = yes; then
14088 dir="$additional_libdir"
14089 if test -n "$acl_shlibext"; then
14090 if test -f "$dir/$libname$shrext"; then
14091 found_dir="$dir"
14092 found_so="$dir/$libname$shrext"
14093 else
14094 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14095 ver=`(cd "$dir" && \
14096 for f in "$libname$shrext".*; do echo "$f"; done \
14097 | sed -e "s,^$libname$shrext\\\\.,," \
14098 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14099 | sed 1q ) 2>/dev/null`
14100 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14101 found_dir="$dir"
14102 found_so="$dir/$libname$shrext.$ver"
14103 fi
14104 else
14105 eval library_names=\"$acl_library_names_spec\"
14106 for f in $library_names; do
14107 if test -f "$dir/$f"; then
14108 found_dir="$dir"
14109 found_so="$dir/$f"
14110 break
14111 fi
14112 done
14113 fi
14114 fi
14115 fi
14116 if test "X$found_dir" = "X"; then
14117 if test -f "$dir/$libname.$acl_libext"; then
14118 found_dir="$dir"
14119 found_a="$dir/$libname.$acl_libext"
14120 fi
14121 fi
14122 if test "X$found_dir" != "X"; then
14123 if test -f "$dir/$libname.la"; then
14124 found_la="$dir/$libname.la"
14125 fi
14126 fi
14127 fi
14128 if test "X$found_dir" = "X"; then
14129 for x in $LDFLAGS $LTLIBICONV; do
14130
14131 acl_save_prefix="$prefix"
14132 prefix="$acl_final_prefix"
14133 acl_save_exec_prefix="$exec_prefix"
14134 exec_prefix="$acl_final_exec_prefix"
14135 eval x=\"$x\"
14136 exec_prefix="$acl_save_exec_prefix"
14137 prefix="$acl_save_prefix"
14138
14139 case "$x" in
14140 -L*)
14141 dir=`echo "X$x" | sed -e 's/^X-L//'`
14142 if test -n "$acl_shlibext"; then
14143 if test -f "$dir/$libname$shrext"; then
14144 found_dir="$dir"
14145 found_so="$dir/$libname$shrext"
14146 else
14147 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14148 ver=`(cd "$dir" && \
14149 for f in "$libname$shrext".*; do echo "$f"; done \
14150 | sed -e "s,^$libname$shrext\\\\.,," \
14151 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14152 | sed 1q ) 2>/dev/null`
14153 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14154 found_dir="$dir"
14155 found_so="$dir/$libname$shrext.$ver"
14156 fi
14157 else
14158 eval library_names=\"$acl_library_names_spec\"
14159 for f in $library_names; do
14160 if test -f "$dir/$f"; then
14161 found_dir="$dir"
14162 found_so="$dir/$f"
14163 break
14164 fi
14165 done
14166 fi
14167 fi
14168 fi
14169 if test "X$found_dir" = "X"; then
14170 if test -f "$dir/$libname.$acl_libext"; then
14171 found_dir="$dir"
14172 found_a="$dir/$libname.$acl_libext"
14173 fi
14174 fi
14175 if test "X$found_dir" != "X"; then
14176 if test -f "$dir/$libname.la"; then
14177 found_la="$dir/$libname.la"
14178 fi
14179 fi
14180 ;;
14181 esac
14182 if test "X$found_dir" != "X"; then
14183 break
14184 fi
14185 done
14186 fi
14187 if test "X$found_dir" != "X"; then
14188 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14189 if test "X$found_so" != "X"; then
14190 if test "$enable_rpath" = no \
14191 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14192 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14193 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14194 else
14195 haveit=
14196 for x in $ltrpathdirs; do
14197 if test "X$x" = "X$found_dir"; then
14198 haveit=yes
14199 break
14200 fi
14201 done
14202 if test -z "$haveit"; then
14203 ltrpathdirs="$ltrpathdirs $found_dir"
14204 fi
14205 if test "$acl_hardcode_direct" = yes; then
14206 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14207 else
14208 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14209 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14210 haveit=
14211 for x in $rpathdirs; do
14212 if test "X$x" = "X$found_dir"; then
14213 haveit=yes
14214 break
14215 fi
14216 done
14217 if test -z "$haveit"; then
14218 rpathdirs="$rpathdirs $found_dir"
14219 fi
14220 else
14221 haveit=
14222 for x in $LDFLAGS $LIBICONV; do
14223
14224 acl_save_prefix="$prefix"
14225 prefix="$acl_final_prefix"
14226 acl_save_exec_prefix="$exec_prefix"
14227 exec_prefix="$acl_final_exec_prefix"
14228 eval x=\"$x\"
14229 exec_prefix="$acl_save_exec_prefix"
14230 prefix="$acl_save_prefix"
14231
14232 if test "X$x" = "X-L$found_dir"; then
14233 haveit=yes
14234 break
14235 fi
14236 done
14237 if test -z "$haveit"; then
14238 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14239 fi
14240 if test "$acl_hardcode_minus_L" != no; then
14241 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14242 else
14243 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14244 fi
14245 fi
14246 fi
14247 fi
14248 else
14249 if test "X$found_a" != "X"; then
14250 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14251 else
14252 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14253 fi
14254 fi
14255 additional_includedir=
14256 case "$found_dir" in
14257 */$acl_libdirstem | */$acl_libdirstem/)
14258 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14259 if test "$name" = 'iconv'; then
14260 LIBICONV_PREFIX="$basedir"
14261 fi
14262 additional_includedir="$basedir/include"
14263 ;;
14264 */$acl_libdirstem2 | */$acl_libdirstem2/)
14265 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14266 if test "$name" = 'iconv'; then
14267 LIBICONV_PREFIX="$basedir"
14268 fi
14269 additional_includedir="$basedir/include"
14270 ;;
14271 esac
14272 if test "X$additional_includedir" != "X"; then
14273 if test "X$additional_includedir" != "X/usr/include"; then
14274 haveit=
14275 if test "X$additional_includedir" = "X/usr/local/include"; then
14276 if test -n "$GCC"; then
14277 case $host_os in
14278 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14279 esac
14280 fi
14281 fi
14282 if test -z "$haveit"; then
14283 for x in $CPPFLAGS $INCICONV; do
14284
14285 acl_save_prefix="$prefix"
14286 prefix="$acl_final_prefix"
14287 acl_save_exec_prefix="$exec_prefix"
14288 exec_prefix="$acl_final_exec_prefix"
14289 eval x=\"$x\"
14290 exec_prefix="$acl_save_exec_prefix"
14291 prefix="$acl_save_prefix"
14292
14293 if test "X$x" = "X-I$additional_includedir"; then
14294 haveit=yes
14295 break
14296 fi
14297 done
14298 if test -z "$haveit"; then
14299 if test -d "$additional_includedir"; then
14300 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14301 fi
14302 fi
14303 fi
14304 fi
14305 fi
14306 if test -n "$found_la"; then
14307 save_libdir="$libdir"
14308 case "$found_la" in
14309 */* | *\\*) . "$found_la" ;;
14310 *) . "./$found_la" ;;
14311 esac
14312 libdir="$save_libdir"
14313 for dep in $dependency_libs; do
14314 case "$dep" in
14315 -L*)
14316 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14317 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14318 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14319 haveit=
14320 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14321 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14322 if test -n "$GCC"; then
14323 case $host_os in
14324 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14325 esac
14326 fi
14327 fi
14328 if test -z "$haveit"; then
14329 haveit=
14330 for x in $LDFLAGS $LIBICONV; do
14331
14332 acl_save_prefix="$prefix"
14333 prefix="$acl_final_prefix"
14334 acl_save_exec_prefix="$exec_prefix"
14335 exec_prefix="$acl_final_exec_prefix"
14336 eval x=\"$x\"
14337 exec_prefix="$acl_save_exec_prefix"
14338 prefix="$acl_save_prefix"
14339
14340 if test "X$x" = "X-L$additional_libdir"; then
14341 haveit=yes
14342 break
14343 fi
14344 done
14345 if test -z "$haveit"; then
14346 if test -d "$additional_libdir"; then
14347 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14348 fi
14349 fi
14350 haveit=
14351 for x in $LDFLAGS $LTLIBICONV; do
14352
14353 acl_save_prefix="$prefix"
14354 prefix="$acl_final_prefix"
14355 acl_save_exec_prefix="$exec_prefix"
14356 exec_prefix="$acl_final_exec_prefix"
14357 eval x=\"$x\"
14358 exec_prefix="$acl_save_exec_prefix"
14359 prefix="$acl_save_prefix"
14360
14361 if test "X$x" = "X-L$additional_libdir"; then
14362 haveit=yes
14363 break
14364 fi
14365 done
14366 if test -z "$haveit"; then
14367 if test -d "$additional_libdir"; then
14368 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14369 fi
14370 fi
14371 fi
14372 fi
14373 ;;
14374 -R*)
14375 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14376 if test "$enable_rpath" != no; then
14377 haveit=
14378 for x in $rpathdirs; do
14379 if test "X$x" = "X$dir"; then
14380 haveit=yes
14381 break
14382 fi
14383 done
14384 if test -z "$haveit"; then
14385 rpathdirs="$rpathdirs $dir"
14386 fi
14387 haveit=
14388 for x in $ltrpathdirs; do
14389 if test "X$x" = "X$dir"; then
14390 haveit=yes
14391 break
14392 fi
14393 done
14394 if test -z "$haveit"; then
14395 ltrpathdirs="$ltrpathdirs $dir"
14396 fi
14397 fi
14398 ;;
14399 -l*)
14400 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14401 ;;
14402 *.la)
14403 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14404 ;;
14405 *)
14406 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14407 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14408 ;;
14409 esac
14410 done
14411 fi
14412 else
14413 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14414 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14415 fi
14416 fi
14417 fi
14418 done
14419 done
14420 if test "X$rpathdirs" != "X"; then
14421 if test -n "$acl_hardcode_libdir_separator"; then
14422 alldirs=
14423 for found_dir in $rpathdirs; do
14424 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14425 done
14426 acl_save_libdir="$libdir"
14427 libdir="$alldirs"
14428 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14429 libdir="$acl_save_libdir"
14430 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14431 else
14432 for found_dir in $rpathdirs; do
14433 acl_save_libdir="$libdir"
14434 libdir="$found_dir"
14435 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14436 libdir="$acl_save_libdir"
14437 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14438 done
14439 fi
14440 fi
14441 if test "X$ltrpathdirs" != "X"; then
14442 for found_dir in $ltrpathdirs; do
14443 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14444 done
14445 fi
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14478 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
14479 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
14480 then :
14481 printf %s "(cached) " >&6
14482 else $as_nop
14483 gt_save_LIBS="$LIBS"
14484 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 #include <CoreFoundation/CFPreferences.h>
14488 int
14489 main (void)
14490 {
14491 CFPreferencesCopyAppValue(NULL, NULL)
14492 ;
14493 return 0;
14494 }
14495 _ACEOF
14496 if ac_fn_c_try_link "$LINENO"
14497 then :
14498 gt_cv_func_CFPreferencesCopyAppValue=yes
14499 else $as_nop
14500 gt_cv_func_CFPreferencesCopyAppValue=no
14501 fi
14502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14503 conftest$ac_exeext conftest.$ac_ext
14504 LIBS="$gt_save_LIBS"
14505 fi
14506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14507 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14508 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14509
14510 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14511
14512 fi
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14514 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
14515 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
14516 then :
14517 printf %s "(cached) " >&6
14518 else $as_nop
14519 gt_save_LIBS="$LIBS"
14520 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14522 /* end confdefs.h. */
14523 #include <CoreFoundation/CFLocale.h>
14524 int
14525 main (void)
14526 {
14527 CFLocaleCopyCurrent();
14528 ;
14529 return 0;
14530 }
14531 _ACEOF
14532 if ac_fn_c_try_link "$LINENO"
14533 then :
14534 gt_cv_func_CFLocaleCopyCurrent=yes
14535 else $as_nop
14536 gt_cv_func_CFLocaleCopyCurrent=no
14537 fi
14538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14539 conftest$ac_exeext conftest.$ac_ext
14540 LIBS="$gt_save_LIBS"
14541 fi
14542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14543 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14544 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14545
14546 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14547
14548 fi
14549 INTL_MACOSX_LIBS=
14550 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14551 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14552 fi
14553
14554
14555
14556
14557
14558
14559 LIBINTL=
14560 LTLIBINTL=
14561 POSUB=
14562
14563 case " $gt_needs " in
14564 *" need-formatstring-macros "*) gt_api_version=3 ;;
14565 *" need-ngettext "*) gt_api_version=2 ;;
14566 *) gt_api_version=1 ;;
14567 esac
14568 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14569 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14570
14571 if test "$USE_NLS" = "yes"; then
14572 gt_use_preinstalled_gnugettext=no
14573
14574
14575 if test $gt_api_version -ge 3; then
14576 gt_revision_test_code='
14577 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14578 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14579 #endif
14580 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14581 '
14582 else
14583 gt_revision_test_code=
14584 fi
14585 if test $gt_api_version -ge 2; then
14586 gt_expression_test_code=' + * ngettext ("", "", 0)'
14587 else
14588 gt_expression_test_code=
14589 fi
14590
14591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14592 printf %s "checking for GNU gettext in libc... " >&6; }
14593 if eval test \${$gt_func_gnugettext_libc+y}
14594 then :
14595 printf %s "(cached) " >&6
14596 else $as_nop
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599
14600 #include <libintl.h>
14601 $gt_revision_test_code
14602 extern int _nl_msg_cat_cntr;
14603 extern int *_nl_domain_bindings;
14604
14605 int
14606 main (void)
14607 {
14608
14609 bindtextdomain ("", "");
14610 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14611
14612 ;
14613 return 0;
14614 }
14615 _ACEOF
14616 if ac_fn_c_try_link "$LINENO"
14617 then :
14618 eval "$gt_func_gnugettext_libc=yes"
14619 else $as_nop
14620 eval "$gt_func_gnugettext_libc=no"
14621 fi
14622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14623 conftest$ac_exeext conftest.$ac_ext
14624 fi
14625 eval ac_res=\$$gt_func_gnugettext_libc
14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14627 printf "%s\n" "$ac_res" >&6; }
14628
14629 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14630
14631
14632
14633
14634
14635 am_save_CPPFLAGS="$CPPFLAGS"
14636
14637 for element in $INCICONV; do
14638 haveit=
14639 for x in $CPPFLAGS; do
14640
14641 acl_save_prefix="$prefix"
14642 prefix="$acl_final_prefix"
14643 acl_save_exec_prefix="$exec_prefix"
14644 exec_prefix="$acl_final_exec_prefix"
14645 eval x=\"$x\"
14646 exec_prefix="$acl_save_exec_prefix"
14647 prefix="$acl_save_prefix"
14648
14649 if test "X$x" = "X$element"; then
14650 haveit=yes
14651 break
14652 fi
14653 done
14654 if test -z "$haveit"; then
14655 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14656 fi
14657 done
14658
14659
14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14661 printf %s "checking for iconv... " >&6; }
14662 if test ${am_cv_func_iconv+y}
14663 then :
14664 printf %s "(cached) " >&6
14665 else $as_nop
14666
14667 am_cv_func_iconv="no, consider installing GNU libiconv"
14668 am_cv_lib_iconv=no
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671
14672 #include <stdlib.h>
14673 #include <iconv.h>
14674
14675 int
14676 main (void)
14677 {
14678 iconv_t cd = iconv_open("","");
14679 iconv(cd,NULL,NULL,NULL,NULL);
14680 iconv_close(cd);
14681 ;
14682 return 0;
14683 }
14684 _ACEOF
14685 if ac_fn_c_try_link "$LINENO"
14686 then :
14687 am_cv_func_iconv=yes
14688 fi
14689 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14690 conftest$ac_exeext conftest.$ac_ext
14691 if test "$am_cv_func_iconv" != yes; then
14692 am_save_LIBS="$LIBS"
14693 LIBS="$LIBS $LIBICONV"
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h. */
14696
14697 #include <stdlib.h>
14698 #include <iconv.h>
14699
14700 int
14701 main (void)
14702 {
14703 iconv_t cd = iconv_open("","");
14704 iconv(cd,NULL,NULL,NULL,NULL);
14705 iconv_close(cd);
14706 ;
14707 return 0;
14708 }
14709 _ACEOF
14710 if ac_fn_c_try_link "$LINENO"
14711 then :
14712 am_cv_lib_iconv=yes
14713 am_cv_func_iconv=yes
14714 fi
14715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14716 conftest$ac_exeext conftest.$ac_ext
14717 LIBS="$am_save_LIBS"
14718 fi
14719
14720 fi
14721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14722 printf "%s\n" "$am_cv_func_iconv" >&6; }
14723 if test "$am_cv_func_iconv" = yes; then
14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14725 printf %s "checking for working iconv... " >&6; }
14726 if test ${am_cv_func_iconv_works+y}
14727 then :
14728 printf %s "(cached) " >&6
14729 else $as_nop
14730
14731 am_save_LIBS="$LIBS"
14732 if test $am_cv_lib_iconv = yes; then
14733 LIBS="$LIBS $LIBICONV"
14734 fi
14735 if test "$cross_compiling" = yes
14736 then :
14737
14738 case "$host_os" in
14739 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14740 *) am_cv_func_iconv_works="guessing yes" ;;
14741 esac
14742
14743 else $as_nop
14744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h. */
14746
14747 #include <iconv.h>
14748 #include <string.h>
14749 int main ()
14750 {
14751 int result = 0;
14752 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14753 returns. */
14754 {
14755 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14756 if (cd_utf8_to_88591 != (iconv_t)(-1))
14757 {
14758 static const char input[] = "\342\202\254"; /* EURO SIGN */
14759 char buf[10];
14760 const char *inptr = input;
14761 size_t inbytesleft = strlen (input);
14762 char *outptr = buf;
14763 size_t outbytesleft = sizeof (buf);
14764 size_t res = iconv (cd_utf8_to_88591,
14765 (char **) &inptr, &inbytesleft,
14766 &outptr, &outbytesleft);
14767 if (res == 0)
14768 result |= 1;
14769 iconv_close (cd_utf8_to_88591);
14770 }
14771 }
14772 /* Test against Solaris 10 bug: Failures are not distinguishable from
14773 successful returns. */
14774 {
14775 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14776 if (cd_ascii_to_88591 != (iconv_t)(-1))
14777 {
14778 static const char input[] = "\263";
14779 char buf[10];
14780 const char *inptr = input;
14781 size_t inbytesleft = strlen (input);
14782 char *outptr = buf;
14783 size_t outbytesleft = sizeof (buf);
14784 size_t res = iconv (cd_ascii_to_88591,
14785 (char **) &inptr, &inbytesleft,
14786 &outptr, &outbytesleft);
14787 if (res == 0)
14788 result |= 2;
14789 iconv_close (cd_ascii_to_88591);
14790 }
14791 }
14792 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14793 {
14794 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14795 if (cd_88591_to_utf8 != (iconv_t)(-1))
14796 {
14797 static const char input[] = "\304";
14798 static char buf[2] = { (char)0xDE, (char)0xAD };
14799 const char *inptr = input;
14800 size_t inbytesleft = 1;
14801 char *outptr = buf;
14802 size_t outbytesleft = 1;
14803 size_t res = iconv (cd_88591_to_utf8,
14804 (char **) &inptr, &inbytesleft,
14805 &outptr, &outbytesleft);
14806 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14807 result |= 4;
14808 iconv_close (cd_88591_to_utf8);
14809 }
14810 }
14811 #if 0 /* This bug could be worked around by the caller. */
14812 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14813 {
14814 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14815 if (cd_88591_to_utf8 != (iconv_t)(-1))
14816 {
14817 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14818 char buf[50];
14819 const char *inptr = input;
14820 size_t inbytesleft = strlen (input);
14821 char *outptr = buf;
14822 size_t outbytesleft = sizeof (buf);
14823 size_t res = iconv (cd_88591_to_utf8,
14824 (char **) &inptr, &inbytesleft,
14825 &outptr, &outbytesleft);
14826 if ((int)res > 0)
14827 result |= 8;
14828 iconv_close (cd_88591_to_utf8);
14829 }
14830 }
14831 #endif
14832 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14833 provided. */
14834 if (/* Try standardized names. */
14835 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14836 /* Try IRIX, OSF/1 names. */
14837 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14838 /* Try AIX names. */
14839 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14840 /* Try HP-UX names. */
14841 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14842 result |= 16;
14843 return result;
14844 }
14845 _ACEOF
14846 if ac_fn_c_try_run "$LINENO"
14847 then :
14848 am_cv_func_iconv_works=yes
14849 else $as_nop
14850 am_cv_func_iconv_works=no
14851 fi
14852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14853 conftest.$ac_objext conftest.beam conftest.$ac_ext
14854 fi
14855
14856 LIBS="$am_save_LIBS"
14857
14858 fi
14859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14860 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
14861 case "$am_cv_func_iconv_works" in
14862 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14863 *) am_func_iconv=yes ;;
14864 esac
14865 else
14866 am_func_iconv=no am_cv_lib_iconv=no
14867 fi
14868 if test "$am_func_iconv" = yes; then
14869
14870 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
14871
14872 fi
14873 if test "$am_cv_lib_iconv" = yes; then
14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14875 printf %s "checking how to link with libiconv... " >&6; }
14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14877 printf "%s\n" "$LIBICONV" >&6; }
14878 else
14879 CPPFLAGS="$am_save_CPPFLAGS"
14880 LIBICONV=
14881 LTLIBICONV=
14882 fi
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894 use_additional=yes
14895
14896 acl_save_prefix="$prefix"
14897 prefix="$acl_final_prefix"
14898 acl_save_exec_prefix="$exec_prefix"
14899 exec_prefix="$acl_final_exec_prefix"
14900
14901 eval additional_includedir=\"$includedir\"
14902 eval additional_libdir=\"$libdir\"
14903
14904 exec_prefix="$acl_save_exec_prefix"
14905 prefix="$acl_save_prefix"
14906
14907
14908 # Check whether --with-libintl-prefix was given.
14909 if test ${with_libintl_prefix+y}
14910 then :
14911 withval=$with_libintl_prefix;
14912 if test "X$withval" = "Xno"; then
14913 use_additional=no
14914 else
14915 if test "X$withval" = "X"; then
14916
14917 acl_save_prefix="$prefix"
14918 prefix="$acl_final_prefix"
14919 acl_save_exec_prefix="$exec_prefix"
14920 exec_prefix="$acl_final_exec_prefix"
14921
14922 eval additional_includedir=\"$includedir\"
14923 eval additional_libdir=\"$libdir\"
14924
14925 exec_prefix="$acl_save_exec_prefix"
14926 prefix="$acl_save_prefix"
14927
14928 else
14929 additional_includedir="$withval/include"
14930 additional_libdir="$withval/$acl_libdirstem"
14931 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14932 && ! test -d "$withval/$acl_libdirstem"; then
14933 additional_libdir="$withval/$acl_libdirstem2"
14934 fi
14935 fi
14936 fi
14937
14938 fi
14939
14940 LIBINTL=
14941 LTLIBINTL=
14942 INCINTL=
14943 LIBINTL_PREFIX=
14944 HAVE_LIBINTL=
14945 rpathdirs=
14946 ltrpathdirs=
14947 names_already_handled=
14948 names_next_round='intl '
14949 while test -n "$names_next_round"; do
14950 names_this_round="$names_next_round"
14951 names_next_round=
14952 for name in $names_this_round; do
14953 already_handled=
14954 for n in $names_already_handled; do
14955 if test "$n" = "$name"; then
14956 already_handled=yes
14957 break
14958 fi
14959 done
14960 if test -z "$already_handled"; then
14961 names_already_handled="$names_already_handled $name"
14962 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14963 eval value=\"\$HAVE_LIB$uppername\"
14964 if test -n "$value"; then
14965 if test "$value" = yes; then
14966 eval value=\"\$LIB$uppername\"
14967 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14968 eval value=\"\$LTLIB$uppername\"
14969 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14970 else
14971 :
14972 fi
14973 else
14974 found_dir=
14975 found_la=
14976 found_so=
14977 found_a=
14978 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14979 if test -n "$acl_shlibext"; then
14980 shrext=".$acl_shlibext" # typically: shrext=.so
14981 else
14982 shrext=
14983 fi
14984 if test $use_additional = yes; then
14985 dir="$additional_libdir"
14986 if test -n "$acl_shlibext"; then
14987 if test -f "$dir/$libname$shrext"; then
14988 found_dir="$dir"
14989 found_so="$dir/$libname$shrext"
14990 else
14991 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14992 ver=`(cd "$dir" && \
14993 for f in "$libname$shrext".*; do echo "$f"; done \
14994 | sed -e "s,^$libname$shrext\\\\.,," \
14995 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14996 | sed 1q ) 2>/dev/null`
14997 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14998 found_dir="$dir"
14999 found_so="$dir/$libname$shrext.$ver"
15000 fi
15001 else
15002 eval library_names=\"$acl_library_names_spec\"
15003 for f in $library_names; do
15004 if test -f "$dir/$f"; then
15005 found_dir="$dir"
15006 found_so="$dir/$f"
15007 break
15008 fi
15009 done
15010 fi
15011 fi
15012 fi
15013 if test "X$found_dir" = "X"; then
15014 if test -f "$dir/$libname.$acl_libext"; then
15015 found_dir="$dir"
15016 found_a="$dir/$libname.$acl_libext"
15017 fi
15018 fi
15019 if test "X$found_dir" != "X"; then
15020 if test -f "$dir/$libname.la"; then
15021 found_la="$dir/$libname.la"
15022 fi
15023 fi
15024 fi
15025 if test "X$found_dir" = "X"; then
15026 for x in $LDFLAGS $LTLIBINTL; do
15027
15028 acl_save_prefix="$prefix"
15029 prefix="$acl_final_prefix"
15030 acl_save_exec_prefix="$exec_prefix"
15031 exec_prefix="$acl_final_exec_prefix"
15032 eval x=\"$x\"
15033 exec_prefix="$acl_save_exec_prefix"
15034 prefix="$acl_save_prefix"
15035
15036 case "$x" in
15037 -L*)
15038 dir=`echo "X$x" | sed -e 's/^X-L//'`
15039 if test -n "$acl_shlibext"; then
15040 if test -f "$dir/$libname$shrext"; then
15041 found_dir="$dir"
15042 found_so="$dir/$libname$shrext"
15043 else
15044 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15045 ver=`(cd "$dir" && \
15046 for f in "$libname$shrext".*; do echo "$f"; done \
15047 | sed -e "s,^$libname$shrext\\\\.,," \
15048 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15049 | sed 1q ) 2>/dev/null`
15050 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15051 found_dir="$dir"
15052 found_so="$dir/$libname$shrext.$ver"
15053 fi
15054 else
15055 eval library_names=\"$acl_library_names_spec\"
15056 for f in $library_names; do
15057 if test -f "$dir/$f"; then
15058 found_dir="$dir"
15059 found_so="$dir/$f"
15060 break
15061 fi
15062 done
15063 fi
15064 fi
15065 fi
15066 if test "X$found_dir" = "X"; then
15067 if test -f "$dir/$libname.$acl_libext"; then
15068 found_dir="$dir"
15069 found_a="$dir/$libname.$acl_libext"
15070 fi
15071 fi
15072 if test "X$found_dir" != "X"; then
15073 if test -f "$dir/$libname.la"; then
15074 found_la="$dir/$libname.la"
15075 fi
15076 fi
15077 ;;
15078 esac
15079 if test "X$found_dir" != "X"; then
15080 break
15081 fi
15082 done
15083 fi
15084 if test "X$found_dir" != "X"; then
15085 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15086 if test "X$found_so" != "X"; then
15087 if test "$enable_rpath" = no \
15088 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15089 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15090 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15091 else
15092 haveit=
15093 for x in $ltrpathdirs; do
15094 if test "X$x" = "X$found_dir"; then
15095 haveit=yes
15096 break
15097 fi
15098 done
15099 if test -z "$haveit"; then
15100 ltrpathdirs="$ltrpathdirs $found_dir"
15101 fi
15102 if test "$acl_hardcode_direct" = yes; then
15103 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15104 else
15105 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15106 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15107 haveit=
15108 for x in $rpathdirs; do
15109 if test "X$x" = "X$found_dir"; then
15110 haveit=yes
15111 break
15112 fi
15113 done
15114 if test -z "$haveit"; then
15115 rpathdirs="$rpathdirs $found_dir"
15116 fi
15117 else
15118 haveit=
15119 for x in $LDFLAGS $LIBINTL; do
15120
15121 acl_save_prefix="$prefix"
15122 prefix="$acl_final_prefix"
15123 acl_save_exec_prefix="$exec_prefix"
15124 exec_prefix="$acl_final_exec_prefix"
15125 eval x=\"$x\"
15126 exec_prefix="$acl_save_exec_prefix"
15127 prefix="$acl_save_prefix"
15128
15129 if test "X$x" = "X-L$found_dir"; then
15130 haveit=yes
15131 break
15132 fi
15133 done
15134 if test -z "$haveit"; then
15135 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15136 fi
15137 if test "$acl_hardcode_minus_L" != no; then
15138 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15139 else
15140 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15141 fi
15142 fi
15143 fi
15144 fi
15145 else
15146 if test "X$found_a" != "X"; then
15147 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15148 else
15149 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15150 fi
15151 fi
15152 additional_includedir=
15153 case "$found_dir" in
15154 */$acl_libdirstem | */$acl_libdirstem/)
15155 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15156 if test "$name" = 'intl'; then
15157 LIBINTL_PREFIX="$basedir"
15158 fi
15159 additional_includedir="$basedir/include"
15160 ;;
15161 */$acl_libdirstem2 | */$acl_libdirstem2/)
15162 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15163 if test "$name" = 'intl'; then
15164 LIBINTL_PREFIX="$basedir"
15165 fi
15166 additional_includedir="$basedir/include"
15167 ;;
15168 esac
15169 if test "X$additional_includedir" != "X"; then
15170 if test "X$additional_includedir" != "X/usr/include"; then
15171 haveit=
15172 if test "X$additional_includedir" = "X/usr/local/include"; then
15173 if test -n "$GCC"; then
15174 case $host_os in
15175 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15176 esac
15177 fi
15178 fi
15179 if test -z "$haveit"; then
15180 for x in $CPPFLAGS $INCINTL; do
15181
15182 acl_save_prefix="$prefix"
15183 prefix="$acl_final_prefix"
15184 acl_save_exec_prefix="$exec_prefix"
15185 exec_prefix="$acl_final_exec_prefix"
15186 eval x=\"$x\"
15187 exec_prefix="$acl_save_exec_prefix"
15188 prefix="$acl_save_prefix"
15189
15190 if test "X$x" = "X-I$additional_includedir"; then
15191 haveit=yes
15192 break
15193 fi
15194 done
15195 if test -z "$haveit"; then
15196 if test -d "$additional_includedir"; then
15197 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15198 fi
15199 fi
15200 fi
15201 fi
15202 fi
15203 if test -n "$found_la"; then
15204 save_libdir="$libdir"
15205 case "$found_la" in
15206 */* | *\\*) . "$found_la" ;;
15207 *) . "./$found_la" ;;
15208 esac
15209 libdir="$save_libdir"
15210 for dep in $dependency_libs; do
15211 case "$dep" in
15212 -L*)
15213 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15214 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15215 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15216 haveit=
15217 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15218 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15219 if test -n "$GCC"; then
15220 case $host_os in
15221 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15222 esac
15223 fi
15224 fi
15225 if test -z "$haveit"; then
15226 haveit=
15227 for x in $LDFLAGS $LIBINTL; do
15228
15229 acl_save_prefix="$prefix"
15230 prefix="$acl_final_prefix"
15231 acl_save_exec_prefix="$exec_prefix"
15232 exec_prefix="$acl_final_exec_prefix"
15233 eval x=\"$x\"
15234 exec_prefix="$acl_save_exec_prefix"
15235 prefix="$acl_save_prefix"
15236
15237 if test "X$x" = "X-L$additional_libdir"; then
15238 haveit=yes
15239 break
15240 fi
15241 done
15242 if test -z "$haveit"; then
15243 if test -d "$additional_libdir"; then
15244 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15245 fi
15246 fi
15247 haveit=
15248 for x in $LDFLAGS $LTLIBINTL; do
15249
15250 acl_save_prefix="$prefix"
15251 prefix="$acl_final_prefix"
15252 acl_save_exec_prefix="$exec_prefix"
15253 exec_prefix="$acl_final_exec_prefix"
15254 eval x=\"$x\"
15255 exec_prefix="$acl_save_exec_prefix"
15256 prefix="$acl_save_prefix"
15257
15258 if test "X$x" = "X-L$additional_libdir"; then
15259 haveit=yes
15260 break
15261 fi
15262 done
15263 if test -z "$haveit"; then
15264 if test -d "$additional_libdir"; then
15265 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15266 fi
15267 fi
15268 fi
15269 fi
15270 ;;
15271 -R*)
15272 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15273 if test "$enable_rpath" != no; then
15274 haveit=
15275 for x in $rpathdirs; do
15276 if test "X$x" = "X$dir"; then
15277 haveit=yes
15278 break
15279 fi
15280 done
15281 if test -z "$haveit"; then
15282 rpathdirs="$rpathdirs $dir"
15283 fi
15284 haveit=
15285 for x in $ltrpathdirs; do
15286 if test "X$x" = "X$dir"; then
15287 haveit=yes
15288 break
15289 fi
15290 done
15291 if test -z "$haveit"; then
15292 ltrpathdirs="$ltrpathdirs $dir"
15293 fi
15294 fi
15295 ;;
15296 -l*)
15297 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15298 ;;
15299 *.la)
15300 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15301 ;;
15302 *)
15303 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15304 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15305 ;;
15306 esac
15307 done
15308 fi
15309 else
15310 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15311 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15312 fi
15313 fi
15314 fi
15315 done
15316 done
15317 if test "X$rpathdirs" != "X"; then
15318 if test -n "$acl_hardcode_libdir_separator"; then
15319 alldirs=
15320 for found_dir in $rpathdirs; do
15321 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15322 done
15323 acl_save_libdir="$libdir"
15324 libdir="$alldirs"
15325 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15326 libdir="$acl_save_libdir"
15327 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15328 else
15329 for found_dir in $rpathdirs; do
15330 acl_save_libdir="$libdir"
15331 libdir="$found_dir"
15332 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15333 libdir="$acl_save_libdir"
15334 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15335 done
15336 fi
15337 fi
15338 if test "X$ltrpathdirs" != "X"; then
15339 for found_dir in $ltrpathdirs; do
15340 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15341 done
15342 fi
15343
15344
15345
15346
15347
15348
15349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15350 printf %s "checking for GNU gettext in libintl... " >&6; }
15351 if eval test \${$gt_func_gnugettext_libintl+y}
15352 then :
15353 printf %s "(cached) " >&6
15354 else $as_nop
15355 gt_save_CPPFLAGS="$CPPFLAGS"
15356 CPPFLAGS="$CPPFLAGS $INCINTL"
15357 gt_save_LIBS="$LIBS"
15358 LIBS="$LIBS $LIBINTL"
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361
15362 #include <libintl.h>
15363 $gt_revision_test_code
15364 extern int _nl_msg_cat_cntr;
15365 extern
15366 #ifdef __cplusplus
15367 "C"
15368 #endif
15369 const char *_nl_expand_alias (const char *);
15370
15371 int
15372 main (void)
15373 {
15374
15375 bindtextdomain ("", "");
15376 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15377
15378 ;
15379 return 0;
15380 }
15381 _ACEOF
15382 if ac_fn_c_try_link "$LINENO"
15383 then :
15384 eval "$gt_func_gnugettext_libintl=yes"
15385 else $as_nop
15386 eval "$gt_func_gnugettext_libintl=no"
15387 fi
15388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15389 conftest$ac_exeext conftest.$ac_ext
15390 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15391 LIBS="$LIBS $LIBICONV"
15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393 /* end confdefs.h. */
15394
15395 #include <libintl.h>
15396 $gt_revision_test_code
15397 extern int _nl_msg_cat_cntr;
15398 extern
15399 #ifdef __cplusplus
15400 "C"
15401 #endif
15402 const char *_nl_expand_alias (const char *);
15403
15404 int
15405 main (void)
15406 {
15407
15408 bindtextdomain ("", "");
15409 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15410
15411 ;
15412 return 0;
15413 }
15414 _ACEOF
15415 if ac_fn_c_try_link "$LINENO"
15416 then :
15417 LIBINTL="$LIBINTL $LIBICONV"
15418 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15419 eval "$gt_func_gnugettext_libintl=yes"
15420
15421 fi
15422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15423 conftest$ac_exeext conftest.$ac_ext
15424 fi
15425 CPPFLAGS="$gt_save_CPPFLAGS"
15426 LIBS="$gt_save_LIBS"
15427 fi
15428 eval ac_res=\$$gt_func_gnugettext_libintl
15429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15430 printf "%s\n" "$ac_res" >&6; }
15431 fi
15432
15433 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15434 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15435 && test "$PACKAGE" != gettext-runtime \
15436 && test "$PACKAGE" != gettext-tools; }; then
15437 gt_use_preinstalled_gnugettext=yes
15438 else
15439 LIBINTL=
15440 LTLIBINTL=
15441 INCINTL=
15442 fi
15443
15444
15445
15446 if test -n "$INTL_MACOSX_LIBS"; then
15447 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15448 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15449 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15450 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15451 fi
15452 fi
15453
15454 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15455 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15456
15457 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
15458
15459 else
15460 USE_NLS=no
15461 fi
15462 fi
15463
15464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15465 printf %s "checking whether to use NLS... " >&6; }
15466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15467 printf "%s\n" "$USE_NLS" >&6; }
15468 if test "$USE_NLS" = "yes"; then
15469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15470 printf %s "checking where the gettext function comes from... " >&6; }
15471 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15472 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15473 gt_source="external libintl"
15474 else
15475 gt_source="libc"
15476 fi
15477 else
15478 gt_source="included intl directory"
15479 fi
15480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15481 printf "%s\n" "$gt_source" >&6; }
15482 fi
15483
15484 if test "$USE_NLS" = "yes"; then
15485
15486 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15487 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15489 printf %s "checking how to link with libintl... " >&6; }
15490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15491 printf "%s\n" "$LIBINTL" >&6; }
15492
15493 for element in $INCINTL; do
15494 haveit=
15495 for x in $CPPFLAGS; do
15496
15497 acl_save_prefix="$prefix"
15498 prefix="$acl_final_prefix"
15499 acl_save_exec_prefix="$exec_prefix"
15500 exec_prefix="$acl_final_exec_prefix"
15501 eval x=\"$x\"
15502 exec_prefix="$acl_save_exec_prefix"
15503 prefix="$acl_save_prefix"
15504
15505 if test "X$x" = "X$element"; then
15506 haveit=yes
15507 break
15508 fi
15509 done
15510 if test -z "$haveit"; then
15511 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15512 fi
15513 done
15514
15515 fi
15516
15517
15518 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
15519
15520
15521 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
15522
15523 fi
15524
15525 POSUB=po
15526 fi
15527
15528
15529
15530 INTLLIBS="$LIBINTL"
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541 am_save_CPPFLAGS="$CPPFLAGS"
15542
15543 for element in $INCICONV; do
15544 haveit=
15545 for x in $CPPFLAGS; do
15546
15547 acl_save_prefix="$prefix"
15548 prefix="$acl_final_prefix"
15549 acl_save_exec_prefix="$exec_prefix"
15550 exec_prefix="$acl_final_exec_prefix"
15551 eval x=\"$x\"
15552 exec_prefix="$acl_save_exec_prefix"
15553 prefix="$acl_save_prefix"
15554
15555 if test "X$x" = "X$element"; then
15556 haveit=yes
15557 break
15558 fi
15559 done
15560 if test -z "$haveit"; then
15561 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15562 fi
15563 done
15564
15565
15566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15567 printf %s "checking for iconv... " >&6; }
15568 if test ${am_cv_func_iconv+y}
15569 then :
15570 printf %s "(cached) " >&6
15571 else $as_nop
15572
15573 am_cv_func_iconv="no, consider installing GNU libiconv"
15574 am_cv_lib_iconv=no
15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h. */
15577
15578 #include <stdlib.h>
15579 #include <iconv.h>
15580
15581 int
15582 main (void)
15583 {
15584 iconv_t cd = iconv_open("","");
15585 iconv(cd,NULL,NULL,NULL,NULL);
15586 iconv_close(cd);
15587 ;
15588 return 0;
15589 }
15590 _ACEOF
15591 if ac_fn_c_try_link "$LINENO"
15592 then :
15593 am_cv_func_iconv=yes
15594 fi
15595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15596 conftest$ac_exeext conftest.$ac_ext
15597 if test "$am_cv_func_iconv" != yes; then
15598 am_save_LIBS="$LIBS"
15599 LIBS="$LIBS $LIBICONV"
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602
15603 #include <stdlib.h>
15604 #include <iconv.h>
15605
15606 int
15607 main (void)
15608 {
15609 iconv_t cd = iconv_open("","");
15610 iconv(cd,NULL,NULL,NULL,NULL);
15611 iconv_close(cd);
15612 ;
15613 return 0;
15614 }
15615 _ACEOF
15616 if ac_fn_c_try_link "$LINENO"
15617 then :
15618 am_cv_lib_iconv=yes
15619 am_cv_func_iconv=yes
15620 fi
15621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15622 conftest$ac_exeext conftest.$ac_ext
15623 LIBS="$am_save_LIBS"
15624 fi
15625
15626 fi
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15628 printf "%s\n" "$am_cv_func_iconv" >&6; }
15629 if test "$am_cv_func_iconv" = yes; then
15630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15631 printf %s "checking for working iconv... " >&6; }
15632 if test ${am_cv_func_iconv_works+y}
15633 then :
15634 printf %s "(cached) " >&6
15635 else $as_nop
15636
15637 am_save_LIBS="$LIBS"
15638 if test $am_cv_lib_iconv = yes; then
15639 LIBS="$LIBS $LIBICONV"
15640 fi
15641 if test "$cross_compiling" = yes
15642 then :
15643
15644 case "$host_os" in
15645 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15646 *) am_cv_func_iconv_works="guessing yes" ;;
15647 esac
15648
15649 else $as_nop
15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h. */
15652
15653 #include <iconv.h>
15654 #include <string.h>
15655 int main ()
15656 {
15657 int result = 0;
15658 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15659 returns. */
15660 {
15661 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15662 if (cd_utf8_to_88591 != (iconv_t)(-1))
15663 {
15664 static const char input[] = "\342\202\254"; /* EURO SIGN */
15665 char buf[10];
15666 const char *inptr = input;
15667 size_t inbytesleft = strlen (input);
15668 char *outptr = buf;
15669 size_t outbytesleft = sizeof (buf);
15670 size_t res = iconv (cd_utf8_to_88591,
15671 (char **) &inptr, &inbytesleft,
15672 &outptr, &outbytesleft);
15673 if (res == 0)
15674 result |= 1;
15675 iconv_close (cd_utf8_to_88591);
15676 }
15677 }
15678 /* Test against Solaris 10 bug: Failures are not distinguishable from
15679 successful returns. */
15680 {
15681 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15682 if (cd_ascii_to_88591 != (iconv_t)(-1))
15683 {
15684 static const char input[] = "\263";
15685 char buf[10];
15686 const char *inptr = input;
15687 size_t inbytesleft = strlen (input);
15688 char *outptr = buf;
15689 size_t outbytesleft = sizeof (buf);
15690 size_t res = iconv (cd_ascii_to_88591,
15691 (char **) &inptr, &inbytesleft,
15692 &outptr, &outbytesleft);
15693 if (res == 0)
15694 result |= 2;
15695 iconv_close (cd_ascii_to_88591);
15696 }
15697 }
15698 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
15699 {
15700 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15701 if (cd_88591_to_utf8 != (iconv_t)(-1))
15702 {
15703 static const char input[] = "\304";
15704 static char buf[2] = { (char)0xDE, (char)0xAD };
15705 const char *inptr = input;
15706 size_t inbytesleft = 1;
15707 char *outptr = buf;
15708 size_t outbytesleft = 1;
15709 size_t res = iconv (cd_88591_to_utf8,
15710 (char **) &inptr, &inbytesleft,
15711 &outptr, &outbytesleft);
15712 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15713 result |= 4;
15714 iconv_close (cd_88591_to_utf8);
15715 }
15716 }
15717 #if 0 /* This bug could be worked around by the caller. */
15718 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15719 {
15720 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15721 if (cd_88591_to_utf8 != (iconv_t)(-1))
15722 {
15723 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15724 char buf[50];
15725 const char *inptr = input;
15726 size_t inbytesleft = strlen (input);
15727 char *outptr = buf;
15728 size_t outbytesleft = sizeof (buf);
15729 size_t res = iconv (cd_88591_to_utf8,
15730 (char **) &inptr, &inbytesleft,
15731 &outptr, &outbytesleft);
15732 if ((int)res > 0)
15733 result |= 8;
15734 iconv_close (cd_88591_to_utf8);
15735 }
15736 }
15737 #endif
15738 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15739 provided. */
15740 if (/* Try standardized names. */
15741 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15742 /* Try IRIX, OSF/1 names. */
15743 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15744 /* Try AIX names. */
15745 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15746 /* Try HP-UX names. */
15747 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15748 result |= 16;
15749 return result;
15750 }
15751 _ACEOF
15752 if ac_fn_c_try_run "$LINENO"
15753 then :
15754 am_cv_func_iconv_works=yes
15755 else $as_nop
15756 am_cv_func_iconv_works=no
15757 fi
15758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15759 conftest.$ac_objext conftest.beam conftest.$ac_ext
15760 fi
15761
15762 LIBS="$am_save_LIBS"
15763
15764 fi
15765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15766 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
15767 case "$am_cv_func_iconv_works" in
15768 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15769 *) am_func_iconv=yes ;;
15770 esac
15771 else
15772 am_func_iconv=no am_cv_lib_iconv=no
15773 fi
15774 if test "$am_func_iconv" = yes; then
15775
15776 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
15777
15778 fi
15779 if test "$am_cv_lib_iconv" = yes; then
15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15781 printf %s "checking how to link with libiconv... " >&6; }
15782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15783 printf "%s\n" "$LIBICONV" >&6; }
15784 else
15785 CPPFLAGS="$am_save_CPPFLAGS"
15786 LIBICONV=
15787 LTLIBICONV=
15788 fi
15789
15790
15791
15792
15793 # Check whether --enable-werror was given.
15794 if test ${enable_werror+y}
15795 then :
15796 enableval=$enable_werror; enable_werror="$enableval"
15797 else $as_nop
15798 enable_werror=no
15799 fi
15800
15801 if test "x$enable_werror" = "xyes"
15802 then :
15803 AM_CFLAGS="$AM_CFLAGS -Werror"
15804 fi
15805
15806
15807
15808
15809 subdirs="$subdirs "
15810
15811 ac_config_files="$ac_config_files po/Makefile.in Doxyfile Makefile src/Makefile popt.pc tests/test-poptrc tests/Makefile"
15812
15813 cat >confcache <<\_ACEOF
15814 # This file is a shell script that caches the results of configure
15815 # tests run on this system so they can be shared between configure
15816 # scripts and configure runs, see configure's option --config-cache.
15817 # It is not useful on other systems. If it contains results you don't
15818 # want to keep, you may remove or edit it.
15819 #
15820 # config.status only pays attention to the cache file if you give it
15821 # the --recheck option to rerun configure.
15822 #
15823 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15824 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15825 # following values.
15826
15827 _ACEOF
15828
15829 # The following way of writing the cache mishandles newlines in values,
15830 # but we know of no workaround that is simple, portable, and efficient.
15831 # So, we kill variables containing newlines.
15832 # Ultrix sh set writes to stderr and can't be redirected directly,
15833 # and sets the high bit in the cache file unless we assign to the vars.
15834 (
15835 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15836 eval ac_val=\$$ac_var
15837 case $ac_val in #(
15838 *${as_nl}*)
15839 case $ac_var in #(
15840 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15841 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15842 esac
15843 case $ac_var in #(
15844 _ | IFS | as_nl) ;; #(
15845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15846 *) { eval $ac_var=; unset $ac_var;} ;;
15847 esac ;;
15848 esac
15849 done
15850
15851 (set) 2>&1 |
15852 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15853 *${as_nl}ac_space=\ *)
15854 # `set' does not quote correctly, so add quotes: double-quote
15855 # substitution turns \\\\ into \\, and sed turns \\ into \.
15856 sed -n \
15857 "s/'/'\\\\''/g;
15858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15859 ;; #(
15860 *)
15861 # `set' quotes correctly as required by POSIX, so do not add quotes.
15862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15863 ;;
15864 esac |
15865 sort
15866 ) |
15867 sed '
15868 /^ac_cv_env_/b end
15869 t clear
15870 :clear
15871 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15872 t end
15873 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15874 :end' >>confcache
15875 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15876 if test -w "$cache_file"; then
15877 if test "x$cache_file" != "x/dev/null"; then
15878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15879 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15880 if test ! -f "$cache_file" || test -h "$cache_file"; then
15881 cat confcache >"$cache_file"
15882 else
15883 case $cache_file in #(
15884 */* | ?:*)
15885 mv -f confcache "$cache_file"$$ &&
15886 mv -f "$cache_file"$$ "$cache_file" ;; #(
15887 *)
15888 mv -f confcache "$cache_file" ;;
15889 esac
15890 fi
15891 fi
15892 else
15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15894 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15895 fi
15896 fi
15897 rm -f confcache
15898
15899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15900 # Let make expand exec_prefix.
15901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15902
15903 DEFS=-DHAVE_CONFIG_H
15904
15905 ac_libobjs=
15906 ac_ltlibobjs=
15907 U=
15908 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15909 # 1. Remove the extension, and $U if already installed.
15910 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15911 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15913 # will be set to the directory where LIBOBJS objects are built.
15914 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15915 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15916 done
15917 LIBOBJS=$ac_libobjs
15918
15919 LTLIBOBJS=$ac_ltlibobjs
15920
15921
15922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15923 printf %s "checking that generated files are newer than configure... " >&6; }
15924 if test -n "$am_sleep_pid"; then
15925 # Hide warnings about reused PIDs.
15926 wait $am_sleep_pid 2>/dev/null
15927 fi
15928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15929 printf "%s\n" "done" >&6; }
15930 if test -n "$EXEEXT"; then
15931 am__EXEEXT_TRUE=
15932 am__EXEEXT_FALSE='#'
15933 else
15934 am__EXEEXT_TRUE='#'
15935 am__EXEEXT_FALSE=
15936 fi
15937
15938 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15939 as_fn_error $? "conditional \"AMDEP\" was never defined.
15940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15941 fi
15942 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15943 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15945 fi
15946 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
15947 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
15948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15949 fi
15950
15951 : "${CONFIG_STATUS=./config.status}"
15952 ac_write_fail=0
15953 ac_clean_files_save=$ac_clean_files
15954 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15956 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15957 as_write_fail=0
15958 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15959 #! $SHELL
15960 # Generated by $as_me.
15961 # Run this file to recreate the current configuration.
15962 # Compiler output produced by configure, useful for debugging
15963 # configure, is in config.log if it exists.
15964
15965 debug=false
15966 ac_cs_recheck=false
15967 ac_cs_silent=false
15968
15969 SHELL=\${CONFIG_SHELL-$SHELL}
15970 export SHELL
15971 _ASEOF
15972 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15973 ## -------------------- ##
15974 ## M4sh Initialization. ##
15975 ## -------------------- ##
15976
15977 # Be more Bourne compatible
15978 DUALCASE=1; export DUALCASE # for MKS sh
15979 as_nop=:
15980 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15981 then :
15982 emulate sh
15983 NULLCMD=:
15984 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15985 # is contrary to our usage. Disable this feature.
15986 alias -g '${1+"$@"}'='"$@"'
15987 setopt NO_GLOB_SUBST
15988 else $as_nop
15989 case `(set -o) 2>/dev/null` in #(
15990 *posix*) :
15991 set -o posix ;; #(
15992 *) :
15993 ;;
15994 esac
15995 fi
15996
15997
15998
15999 # Reset variables that may have inherited troublesome values from
16000 # the environment.
16001
16002 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16003 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16004 # side effect of setting IFS to empty, thus disabling word splitting.)
16005 # Quoting is to prevent editors from complaining about space-tab.
16006 as_nl='
16007 '
16008 export as_nl
16009 IFS=" "" $as_nl"
16010
16011 PS1='$ '
16012 PS2='> '
16013 PS4='+ '
16014
16015 # Ensure predictable behavior from utilities with locale-dependent output.
16016 LC_ALL=C
16017 export LC_ALL
16018 LANGUAGE=C
16019 export LANGUAGE
16020
16021 # We cannot yet rely on "unset" to work, but we need these variables
16022 # to be unset--not just set to an empty or harmless value--now, to
16023 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16024 # also avoids known problems related to "unset" and subshell syntax
16025 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16026 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16027 do eval test \${$as_var+y} \
16028 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16029 done
16030
16031 # Ensure that fds 0, 1, and 2 are open.
16032 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16033 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16034 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16035
16036 # The user is always right.
16037 if ${PATH_SEPARATOR+false} :; then
16038 PATH_SEPARATOR=:
16039 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16040 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16041 PATH_SEPARATOR=';'
16042 }
16043 fi
16044
16045
16046 # Find who we are. Look in the path if we contain no directory separator.
16047 as_myself=
16048 case $0 in #((
16049 *[\\/]* ) as_myself=$0 ;;
16050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16051 for as_dir in $PATH
16052 do
16053 IFS=$as_save_IFS
16054 case $as_dir in #(((
16055 '') as_dir=./ ;;
16056 */) ;;
16057 *) as_dir=$as_dir/ ;;
16058 esac
16059 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16060 done
16061 IFS=$as_save_IFS
16062
16063 ;;
16064 esac
16065 # We did not find ourselves, most probably we were run as `sh COMMAND'
16066 # in which case we are not to be found in the path.
16067 if test "x$as_myself" = x; then
16068 as_myself=$0
16069 fi
16070 if test ! -f "$as_myself"; then
16071 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16072 exit 1
16073 fi
16074
16075
16076
16077 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16078 # ----------------------------------------
16079 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16080 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16081 # script with STATUS, using 1 if that was 0.
16082 as_fn_error ()
16083 {
16084 as_status=$1; test $as_status -eq 0 && as_status=1
16085 if test "$4"; then
16086 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16088 fi
16089 printf "%s\n" "$as_me: error: $2" >&2
16090 as_fn_exit $as_status
16091 } # as_fn_error
16092
16093
16094
16095 # as_fn_set_status STATUS
16096 # -----------------------
16097 # Set $? to STATUS, without forking.
16098 as_fn_set_status ()
16099 {
16100 return $1
16101 } # as_fn_set_status
16102
16103 # as_fn_exit STATUS
16104 # -----------------
16105 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16106 as_fn_exit ()
16107 {
16108 set +e
16109 as_fn_set_status $1
16110 exit $1
16111 } # as_fn_exit
16112
16113 # as_fn_unset VAR
16114 # ---------------
16115 # Portably unset VAR.
16116 as_fn_unset ()
16117 {
16118 { eval $1=; unset $1;}
16119 }
16120 as_unset=as_fn_unset
16121
16122 # as_fn_append VAR VALUE
16123 # ----------------------
16124 # Append the text in VALUE to the end of the definition contained in VAR. Take
16125 # advantage of any shell optimizations that allow amortized linear growth over
16126 # repeated appends, instead of the typical quadratic growth present in naive
16127 # implementations.
16128 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16129 then :
16130 eval 'as_fn_append ()
16131 {
16132 eval $1+=\$2
16133 }'
16134 else $as_nop
16135 as_fn_append ()
16136 {
16137 eval $1=\$$1\$2
16138 }
16139 fi # as_fn_append
16140
16141 # as_fn_arith ARG...
16142 # ------------------
16143 # Perform arithmetic evaluation on the ARGs, and store the result in the
16144 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16145 # must be portable across $(()) and expr.
16146 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16147 then :
16148 eval 'as_fn_arith ()
16149 {
16150 as_val=$(( $* ))
16151 }'
16152 else $as_nop
16153 as_fn_arith ()
16154 {
16155 as_val=`expr "$@" || test $? -eq 1`
16156 }
16157 fi # as_fn_arith
16158
16159
16160 if expr a : '\(a\)' >/dev/null 2>&1 &&
16161 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16162 as_expr=expr
16163 else
16164 as_expr=false
16165 fi
16166
16167 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16168 as_basename=basename
16169 else
16170 as_basename=false
16171 fi
16172
16173 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16174 as_dirname=dirname
16175 else
16176 as_dirname=false
16177 fi
16178
16179 as_me=`$as_basename -- "$0" ||
16180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16181 X"$0" : 'X\(//\)$' \| \
16182 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16183 printf "%s\n" X/"$0" |
16184 sed '/^.*\/\([^/][^/]*\)\/*$/{
16185 s//\1/
16186 q
16187 }
16188 /^X\/\(\/\/\)$/{
16189 s//\1/
16190 q
16191 }
16192 /^X\/\(\/\).*/{
16193 s//\1/
16194 q
16195 }
16196 s/.*/./; q'`
16197
16198 # Avoid depending upon Character Ranges.
16199 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16200 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16201 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16202 as_cr_digits='0123456789'
16203 as_cr_alnum=$as_cr_Letters$as_cr_digits
16204
16205
16206 # Determine whether it's possible to make 'echo' print without a newline.
16207 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16208 # for compatibility with existing Makefiles.
16209 ECHO_C= ECHO_N= ECHO_T=
16210 case `echo -n x` in #(((((
16211 -n*)
16212 case `echo 'xy\c'` in
16213 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16214 xy) ECHO_C='\c';;
16215 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16216 ECHO_T=' ';;
16217 esac;;
16218 *)
16219 ECHO_N='-n';;
16220 esac
16221
16222 # For backward compatibility with old third-party macros, we provide
16223 # the shell variables $as_echo and $as_echo_n. New code should use
16224 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16225 as_echo='printf %s\n'
16226 as_echo_n='printf %s'
16227
16228 rm -f conf$$ conf$$.exe conf$$.file
16229 if test -d conf$$.dir; then
16230 rm -f conf$$.dir/conf$$.file
16231 else
16232 rm -f conf$$.dir
16233 mkdir conf$$.dir 2>/dev/null
16234 fi
16235 if (echo >conf$$.file) 2>/dev/null; then
16236 if ln -s conf$$.file conf$$ 2>/dev/null; then
16237 as_ln_s='ln -s'
16238 # ... but there are two gotchas:
16239 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16240 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16241 # In both cases, we have to default to `cp -pR'.
16242 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16243 as_ln_s='cp -pR'
16244 elif ln conf$$.file conf$$ 2>/dev/null; then
16245 as_ln_s=ln
16246 else
16247 as_ln_s='cp -pR'
16248 fi
16249 else
16250 as_ln_s='cp -pR'
16251 fi
16252 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16253 rmdir conf$$.dir 2>/dev/null
16254
16255
16256 # as_fn_mkdir_p
16257 # -------------
16258 # Create "$as_dir" as a directory, including parents if necessary.
16259 as_fn_mkdir_p ()
16260 {
16261
16262 case $as_dir in #(
16263 -*) as_dir=./$as_dir;;
16264 esac
16265 test -d "$as_dir" || eval $as_mkdir_p || {
16266 as_dirs=
16267 while :; do
16268 case $as_dir in #(
16269 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16270 *) as_qdir=$as_dir;;
16271 esac
16272 as_dirs="'$as_qdir' $as_dirs"
16273 as_dir=`$as_dirname -- "$as_dir" ||
16274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16275 X"$as_dir" : 'X\(//\)[^/]' \| \
16276 X"$as_dir" : 'X\(//\)$' \| \
16277 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16278 printf "%s\n" X"$as_dir" |
16279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16280 s//\1/
16281 q
16282 }
16283 /^X\(\/\/\)[^/].*/{
16284 s//\1/
16285 q
16286 }
16287 /^X\(\/\/\)$/{
16288 s//\1/
16289 q
16290 }
16291 /^X\(\/\).*/{
16292 s//\1/
16293 q
16294 }
16295 s/.*/./; q'`
16296 test -d "$as_dir" && break
16297 done
16298 test -z "$as_dirs" || eval "mkdir $as_dirs"
16299 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16300
16301
16302 } # as_fn_mkdir_p
16303 if mkdir -p . 2>/dev/null; then
16304 as_mkdir_p='mkdir -p "$as_dir"'
16305 else
16306 test -d ./-p && rmdir ./-p
16307 as_mkdir_p=false
16308 fi
16309
16310
16311 # as_fn_executable_p FILE
16312 # -----------------------
16313 # Test if FILE is an executable regular file.
16314 as_fn_executable_p ()
16315 {
16316 test -f "$1" && test -x "$1"
16317 } # as_fn_executable_p
16318 as_test_x='test -x'
16319 as_executable_p=as_fn_executable_p
16320
16321 # Sed expression to map a string onto a valid CPP name.
16322 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16323
16324 # Sed expression to map a string onto a valid variable name.
16325 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16326
16327
16328 exec 6>&1
16329 ## ----------------------------------- ##
16330 ## Main body of $CONFIG_STATUS script. ##
16331 ## ----------------------------------- ##
16332 _ASEOF
16333 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16334
16335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16336 # Save the log message, to keep $0 and so on meaningful, and to
16337 # report actual input values of CONFIG_FILES etc. instead of their
16338 # values after options handling.
16339 ac_log="
16340 This file was extended by popt $as_me 1.19, which was
16341 generated by GNU Autoconf 2.71. Invocation command line was
16342
16343 CONFIG_FILES = $CONFIG_FILES
16344 CONFIG_HEADERS = $CONFIG_HEADERS
16345 CONFIG_LINKS = $CONFIG_LINKS
16346 CONFIG_COMMANDS = $CONFIG_COMMANDS
16347 $ $0 $@
16348
16349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16350 "
16351
16352 _ACEOF
16353
16354 case $ac_config_files in *"
16355 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16356 esac
16357
16358 case $ac_config_headers in *"
16359 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16360 esac
16361
16362
16363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16364 # Files that config.status was made for.
16365 config_files="$ac_config_files"
16366 config_headers="$ac_config_headers"
16367 config_commands="$ac_config_commands"
16368
16369 _ACEOF
16370
16371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16372 ac_cs_usage="\
16373 \`$as_me' instantiates files and other configuration actions
16374 from templates according to the current configuration. Unless the files
16375 and actions are specified as TAGs, all are instantiated by default.
16376
16377 Usage: $0 [OPTION]... [TAG]...
16378
16379 -h, --help print this help, then exit
16380 -V, --version print version number and configuration settings, then exit
16381 --config print configuration, then exit
16382 -q, --quiet, --silent
16383 do not print progress messages
16384 -d, --debug don't remove temporary files
16385 --recheck update $as_me by reconfiguring in the same conditions
16386 --file=FILE[:TEMPLATE]
16387 instantiate the configuration file FILE
16388 --header=FILE[:TEMPLATE]
16389 instantiate the configuration header FILE
16390
16391 Configuration files:
16392 $config_files
16393
16394 Configuration headers:
16395 $config_headers
16396
16397 Configuration commands:
16398 $config_commands
16399
16400 Report bugs to <[email protected]>."
16401
16402 _ACEOF
16403 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16404 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16406 ac_cs_config='$ac_cs_config_escaped'
16407 ac_cs_version="\\
16408 popt config.status 1.19
16409 configured by $0, generated by GNU Autoconf 2.71,
16410 with options \\"\$ac_cs_config\\"
16411
16412 Copyright (C) 2021 Free Software Foundation, Inc.
16413 This config.status script is free software; the Free Software Foundation
16414 gives unlimited permission to copy, distribute and modify it."
16415
16416 ac_pwd='$ac_pwd'
16417 srcdir='$srcdir'
16418 INSTALL='$INSTALL'
16419 MKDIR_P='$MKDIR_P'
16420 AWK='$AWK'
16421 test -n "\$AWK" || AWK=awk
16422 _ACEOF
16423
16424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16425 # The default lists apply if the user does not specify any file.
16426 ac_need_defaults=:
16427 while test $# != 0
16428 do
16429 case $1 in
16430 --*=?*)
16431 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16432 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16433 ac_shift=:
16434 ;;
16435 --*=)
16436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16437 ac_optarg=
16438 ac_shift=:
16439 ;;
16440 *)
16441 ac_option=$1
16442 ac_optarg=$2
16443 ac_shift=shift
16444 ;;
16445 esac
16446
16447 case $ac_option in
16448 # Handling of the options.
16449 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16450 ac_cs_recheck=: ;;
16451 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16452 printf "%s\n" "$ac_cs_version"; exit ;;
16453 --config | --confi | --conf | --con | --co | --c )
16454 printf "%s\n" "$ac_cs_config"; exit ;;
16455 --debug | --debu | --deb | --de | --d | -d )
16456 debug=: ;;
16457 --file | --fil | --fi | --f )
16458 $ac_shift
16459 case $ac_optarg in
16460 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16461 '') as_fn_error $? "missing file argument" ;;
16462 esac
16463 as_fn_append CONFIG_FILES " '$ac_optarg'"
16464 ac_need_defaults=false;;
16465 --header | --heade | --head | --hea )
16466 $ac_shift
16467 case $ac_optarg in
16468 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16469 esac
16470 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16471 ac_need_defaults=false;;
16472 --he | --h)
16473 # Conflict between --help and --header
16474 as_fn_error $? "ambiguous option: \`$1'
16475 Try \`$0 --help' for more information.";;
16476 --help | --hel | -h )
16477 printf "%s\n" "$ac_cs_usage"; exit ;;
16478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16479 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16480 ac_cs_silent=: ;;
16481
16482 # This is an error.
16483 -*) as_fn_error $? "unrecognized option: \`$1'
16484 Try \`$0 --help' for more information." ;;
16485
16486 *) as_fn_append ac_config_targets " $1"
16487 ac_need_defaults=false ;;
16488
16489 esac
16490 shift
16491 done
16492
16493 ac_configure_extra_args=
16494
16495 if $ac_cs_silent; then
16496 exec 6>/dev/null
16497 ac_configure_extra_args="$ac_configure_extra_args --silent"
16498 fi
16499
16500 _ACEOF
16501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16502 if \$ac_cs_recheck; then
16503 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16504 shift
16505 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16506 CONFIG_SHELL='$SHELL'
16507 export CONFIG_SHELL
16508 exec "\$@"
16509 fi
16510
16511 _ACEOF
16512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16513 exec 5>>config.log
16514 {
16515 echo
16516 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16517 ## Running $as_me. ##
16518 _ASBOX
16519 printf "%s\n" "$ac_log"
16520 } >&5
16521
16522 _ACEOF
16523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16524 #
16525 # INIT-COMMANDS
16526 #
16527 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16528
16529
16530 # The HP-UX ksh and POSIX shell print the target directory to stdout
16531 # if CDPATH is set.
16532 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16533
16534 sed_quote_subst='$sed_quote_subst'
16535 double_quote_subst='$double_quote_subst'
16536 delay_variable_subst='$delay_variable_subst'
16537 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16538 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16539 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16540 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16541 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16542 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16543 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16544 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16545 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16546 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16547 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16548 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16549 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16550 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16551 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16552 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16553 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16554 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16555 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16556 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16557 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16558 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16559 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16560 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16561 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16562 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16563 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16564 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16565 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16566 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16567 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16568 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16569 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16570 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16571 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16572 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16573 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16574 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16575 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16576 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16577 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16578 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16579 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16580 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16581 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16582 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16583 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16584 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16585 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16586 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16587 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16588 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16589 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16590 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16591 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16592 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16593 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16594 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16595 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"`'
16596 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16597 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16598 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16599 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16600 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16601 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16602 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16603 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16604 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16605 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16606 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16607 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16608 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16609 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16610 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16611 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16612 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16613 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16614 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16615 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16616 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16617 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16618 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16619 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16620 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16621 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16622 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16623 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16624 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16625 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16626 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16627 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16628 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16629 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16630 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16631 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16632 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16633 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16634 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16635 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16636 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16637 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16638 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16639 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16640 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16641 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16642 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16643 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16644 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16645 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16646 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16647 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16648 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16649 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16650 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16651 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16652 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16653 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16654 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16655 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16656 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16657 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16658 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16659 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16660 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16661 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16662 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16663 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16664 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16665 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16666 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16667 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16668 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16669 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16670 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16671 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16672
16673 LTCC='$LTCC'
16674 LTCFLAGS='$LTCFLAGS'
16675 compiler='$compiler_DEFAULT'
16676
16677 # A function that is used when there is no print builtin or printf.
16678 func_fallback_echo ()
16679 {
16680 eval 'cat <<_LTECHO_EOF
16681 \$1
16682 _LTECHO_EOF'
16683 }
16684
16685 # Quote evaled strings.
16686 for var in SHELL \
16687 ECHO \
16688 PATH_SEPARATOR \
16689 SED \
16690 GREP \
16691 EGREP \
16692 FGREP \
16693 LD \
16694 NM \
16695 LN_S \
16696 lt_SP2NL \
16697 lt_NL2SP \
16698 reload_flag \
16699 OBJDUMP \
16700 deplibs_check_method \
16701 file_magic_cmd \
16702 file_magic_glob \
16703 want_nocaseglob \
16704 DLLTOOL \
16705 sharedlib_from_linklib_cmd \
16706 AR \
16707 AR_FLAGS \
16708 archiver_list_spec \
16709 STRIP \
16710 RANLIB \
16711 CC \
16712 CFLAGS \
16713 compiler \
16714 lt_cv_sys_global_symbol_pipe \
16715 lt_cv_sys_global_symbol_to_cdecl \
16716 lt_cv_sys_global_symbol_to_import \
16717 lt_cv_sys_global_symbol_to_c_name_address \
16718 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16719 lt_cv_nm_interface \
16720 nm_file_list_spec \
16721 lt_cv_truncate_bin \
16722 lt_prog_compiler_no_builtin_flag \
16723 lt_prog_compiler_pic \
16724 lt_prog_compiler_wl \
16725 lt_prog_compiler_static \
16726 lt_cv_prog_compiler_c_o \
16727 need_locks \
16728 MANIFEST_TOOL \
16729 DSYMUTIL \
16730 NMEDIT \
16731 LIPO \
16732 OTOOL \
16733 OTOOL64 \
16734 shrext_cmds \
16735 export_dynamic_flag_spec \
16736 whole_archive_flag_spec \
16737 compiler_needs_object \
16738 with_gnu_ld \
16739 allow_undefined_flag \
16740 no_undefined_flag \
16741 hardcode_libdir_flag_spec \
16742 hardcode_libdir_separator \
16743 exclude_expsyms \
16744 include_expsyms \
16745 file_list_spec \
16746 variables_saved_for_relink \
16747 libname_spec \
16748 library_names_spec \
16749 soname_spec \
16750 install_override_mode \
16751 finish_eval \
16752 old_striplib \
16753 striplib; do
16754 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16755 *[\\\\\\\`\\"\\\$]*)
16756 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16757 ;;
16758 *)
16759 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16760 ;;
16761 esac
16762 done
16763
16764 # Double-quote double-evaled strings.
16765 for var in reload_cmds \
16766 old_postinstall_cmds \
16767 old_postuninstall_cmds \
16768 old_archive_cmds \
16769 extract_expsyms_cmds \
16770 old_archive_from_new_cmds \
16771 old_archive_from_expsyms_cmds \
16772 archive_cmds \
16773 archive_expsym_cmds \
16774 module_cmds \
16775 module_expsym_cmds \
16776 export_symbols_cmds \
16777 prelink_cmds \
16778 postlink_cmds \
16779 postinstall_cmds \
16780 postuninstall_cmds \
16781 finish_cmds \
16782 sys_lib_search_path_spec \
16783 configure_time_dlsearch_path \
16784 configure_time_lt_sys_library_path; do
16785 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16786 *[\\\\\\\`\\"\\\$]*)
16787 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16788 ;;
16789 *)
16790 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16791 ;;
16792 esac
16793 done
16794
16795 ac_aux_dir='$ac_aux_dir'
16796
16797 # See if we are running on zsh, and set the options that allow our
16798 # commands through without removal of \ escapes INIT.
16799 if test -n "\${ZSH_VERSION+set}"; then
16800 setopt NO_GLOB_SUBST
16801 fi
16802
16803
16804 PACKAGE='$PACKAGE'
16805 VERSION='$VERSION'
16806 RM='$RM'
16807 ofile='$ofile'
16808
16809
16810
16811 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16812 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16813 # from automake < 1.5.
16814 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16815 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16816 LINGUAS="${LINGUAS-%UNSET%}"
16817
16818
16819 _ACEOF
16820
16821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16822
16823 # Handling of arguments.
16824 for ac_config_target in $ac_config_targets
16825 do
16826 case $ac_config_target in
16827 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16828 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16829 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16830 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16831 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16832 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
16833 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16834 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16835 "popt.pc") CONFIG_FILES="$CONFIG_FILES popt.pc" ;;
16836 "tests/test-poptrc") CONFIG_FILES="$CONFIG_FILES tests/test-poptrc" ;;
16837 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16838
16839 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16840 esac
16841 done
16842
16843
16844 # If the user did not use the arguments to specify the items to instantiate,
16845 # then the envvar interface is used. Set only those that are not.
16846 # We use the long form for the default assignment because of an extremely
16847 # bizarre bug on SunOS 4.1.3.
16848 if $ac_need_defaults; then
16849 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16850 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16851 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16852 fi
16853
16854 # Have a temporary directory for convenience. Make it in the build tree
16855 # simply because there is no reason against having it here, and in addition,
16856 # creating and moving files from /tmp can sometimes cause problems.
16857 # Hook for its removal unless debugging.
16858 # Note that there is a small window in which the directory will not be cleaned:
16859 # after its creation but before its name has been assigned to `$tmp'.
16860 $debug ||
16861 {
16862 tmp= ac_tmp=
16863 trap 'exit_status=$?
16864 : "${ac_tmp:=$tmp}"
16865 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16866 ' 0
16867 trap 'as_fn_exit 1' 1 2 13 15
16868 }
16869 # Create a (secure) tmp directory for tmp files.
16870
16871 {
16872 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16873 test -d "$tmp"
16874 } ||
16875 {
16876 tmp=./conf$$-$RANDOM
16877 (umask 077 && mkdir "$tmp")
16878 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16879 ac_tmp=$tmp
16880
16881 # Set up the scripts for CONFIG_FILES section.
16882 # No need to generate them if there are no CONFIG_FILES.
16883 # This happens for instance with `./config.status config.h'.
16884 if test -n "$CONFIG_FILES"; then
16885
16886
16887 ac_cr=`echo X | tr X '\015'`
16888 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16889 # But we know of no other shell where ac_cr would be empty at this
16890 # point, so we can use a bashism as a fallback.
16891 if test "x$ac_cr" = x; then
16892 eval ac_cr=\$\'\\r\'
16893 fi
16894 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16895 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16896 ac_cs_awk_cr='\\r'
16897 else
16898 ac_cs_awk_cr=$ac_cr
16899 fi
16900
16901 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16902 _ACEOF
16903
16904
16905 {
16906 echo "cat >conf$$subs.awk <<_ACEOF" &&
16907 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16908 echo "_ACEOF"
16909 } >conf$$subs.sh ||
16910 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16911 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16912 ac_delim='%!_!# '
16913 for ac_last_try in false false false false false :; do
16914 . ./conf$$subs.sh ||
16915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16916
16917 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16918 if test $ac_delim_n = $ac_delim_num; then
16919 break
16920 elif $ac_last_try; then
16921 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16922 else
16923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16924 fi
16925 done
16926 rm -f conf$$subs.sh
16927
16928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16929 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16930 _ACEOF
16931 sed -n '
16932 h
16933 s/^/S["/; s/!.*/"]=/
16934 p
16935 g
16936 s/^[^!]*!//
16937 :repl
16938 t repl
16939 s/'"$ac_delim"'$//
16940 t delim
16941 :nl
16942 h
16943 s/\(.\{148\}\)..*/\1/
16944 t more1
16945 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16946 p
16947 n
16948 b repl
16949 :more1
16950 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16951 p
16952 g
16953 s/.\{148\}//
16954 t nl
16955 :delim
16956 h
16957 s/\(.\{148\}\)..*/\1/
16958 t more2
16959 s/["\\]/\\&/g; s/^/"/; s/$/"/
16960 p
16961 b
16962 :more2
16963 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16964 p
16965 g
16966 s/.\{148\}//
16967 t delim
16968 ' <conf$$subs.awk | sed '
16969 /^[^""]/{
16970 N
16971 s/\n//
16972 }
16973 ' >>$CONFIG_STATUS || ac_write_fail=1
16974 rm -f conf$$subs.awk
16975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16976 _ACAWK
16977 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16978 for (key in S) S_is_set[key] = 1
16979 FS = ""
16980
16981 }
16982 {
16983 line = $ 0
16984 nfields = split(line, field, "@")
16985 substed = 0
16986 len = length(field[1])
16987 for (i = 2; i < nfields; i++) {
16988 key = field[i]
16989 keylen = length(key)
16990 if (S_is_set[key]) {
16991 value = S[key]
16992 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16993 len += length(value) + length(field[++i])
16994 substed = 1
16995 } else
16996 len += 1 + keylen
16997 }
16998
16999 print line
17000 }
17001
17002 _ACAWK
17003 _ACEOF
17004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17005 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17006 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17007 else
17008 cat
17009 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17010 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17011 _ACEOF
17012
17013 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17014 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17015 # trailing colons and then remove the whole line if VPATH becomes empty
17016 # (actually we leave an empty line to preserve line numbers).
17017 if test "x$srcdir" = x.; then
17018 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17019 h
17020 s///
17021 s/^/:/
17022 s/[ ]*$/:/
17023 s/:\$(srcdir):/:/g
17024 s/:\${srcdir}:/:/g
17025 s/:@srcdir@:/:/g
17026 s/^:*//
17027 s/:*$//
17028 x
17029 s/\(=[ ]*\).*/\1/
17030 G
17031 s/\n//
17032 s/^[^=]*=[ ]*$//
17033 }'
17034 fi
17035
17036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17037 fi # test -n "$CONFIG_FILES"
17038
17039 # Set up the scripts for CONFIG_HEADERS section.
17040 # No need to generate them if there are no CONFIG_HEADERS.
17041 # This happens for instance with `./config.status Makefile'.
17042 if test -n "$CONFIG_HEADERS"; then
17043 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17044 BEGIN {
17045 _ACEOF
17046
17047 # Transform confdefs.h into an awk script `defines.awk', embedded as
17048 # here-document in config.status, that substitutes the proper values into
17049 # config.h.in to produce config.h.
17050
17051 # Create a delimiter string that does not exist in confdefs.h, to ease
17052 # handling of long lines.
17053 ac_delim='%!_!# '
17054 for ac_last_try in false false :; do
17055 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17056 if test -z "$ac_tt"; then
17057 break
17058 elif $ac_last_try; then
17059 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17060 else
17061 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17062 fi
17063 done
17064
17065 # For the awk script, D is an array of macro values keyed by name,
17066 # likewise P contains macro parameters if any. Preserve backslash
17067 # newline sequences.
17068
17069 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17070 sed -n '
17071 s/.\{148\}/&'"$ac_delim"'/g
17072 t rset
17073 :rset
17074 s/^[ ]*#[ ]*define[ ][ ]*/ /
17075 t def
17076 d
17077 :def
17078 s/\\$//
17079 t bsnl
17080 s/["\\]/\\&/g
17081 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17082 D["\1"]=" \3"/p
17083 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17084 d
17085 :bsnl
17086 s/["\\]/\\&/g
17087 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17088 D["\1"]=" \3\\\\\\n"\\/p
17089 t cont
17090 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17091 t cont
17092 d
17093 :cont
17094 n
17095 s/.\{148\}/&'"$ac_delim"'/g
17096 t clear
17097 :clear
17098 s/\\$//
17099 t bsnlc
17100 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17101 d
17102 :bsnlc
17103 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17104 b cont
17105 ' <confdefs.h | sed '
17106 s/'"$ac_delim"'/"\\\
17107 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17108
17109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17110 for (key in D) D_is_set[key] = 1
17111 FS = ""
17112 }
17113 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17114 line = \$ 0
17115 split(line, arg, " ")
17116 if (arg[1] == "#") {
17117 defundef = arg[2]
17118 mac1 = arg[3]
17119 } else {
17120 defundef = substr(arg[1], 2)
17121 mac1 = arg[2]
17122 }
17123 split(mac1, mac2, "(") #)
17124 macro = mac2[1]
17125 prefix = substr(line, 1, index(line, defundef) - 1)
17126 if (D_is_set[macro]) {
17127 # Preserve the white space surrounding the "#".
17128 print prefix "define", macro P[macro] D[macro]
17129 next
17130 } else {
17131 # Replace #undef with comments. This is necessary, for example,
17132 # in the case of _POSIX_SOURCE, which is predefined and required
17133 # on some systems where configure will not decide to define it.
17134 if (defundef == "undef") {
17135 print "/*", prefix defundef, macro, "*/"
17136 next
17137 }
17138 }
17139 }
17140 { print }
17141 _ACAWK
17142 _ACEOF
17143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17144 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17145 fi # test -n "$CONFIG_HEADERS"
17146
17147
17148 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17149 shift
17150 for ac_tag
17151 do
17152 case $ac_tag in
17153 :[FHLC]) ac_mode=$ac_tag; continue;;
17154 esac
17155 case $ac_mode$ac_tag in
17156 :[FHL]*:*);;
17157 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17158 :[FH]-) ac_tag=-:-;;
17159 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17160 esac
17161 ac_save_IFS=$IFS
17162 IFS=:
17163 set x $ac_tag
17164 IFS=$ac_save_IFS
17165 shift
17166 ac_file=$1
17167 shift
17168
17169 case $ac_mode in
17170 :L) ac_source=$1;;
17171 :[FH])
17172 ac_file_inputs=
17173 for ac_f
17174 do
17175 case $ac_f in
17176 -) ac_f="$ac_tmp/stdin";;
17177 *) # Look for the file first in the build tree, then in the source tree
17178 # (if the path is not absolute). The absolute path cannot be DOS-style,
17179 # because $ac_f cannot contain `:'.
17180 test -f "$ac_f" ||
17181 case $ac_f in
17182 [\\/$]*) false;;
17183 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17184 esac ||
17185 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17186 esac
17187 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17188 as_fn_append ac_file_inputs " '$ac_f'"
17189 done
17190
17191 # Let's still pretend it is `configure' which instantiates (i.e., don't
17192 # use $as_me), people would be surprised to read:
17193 # /* config.h. Generated by config.status. */
17194 configure_input='Generated from '`
17195 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17196 `' by configure.'
17197 if test x"$ac_file" != x-; then
17198 configure_input="$ac_file. $configure_input"
17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17200 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17201 fi
17202 # Neutralize special characters interpreted by sed in replacement strings.
17203 case $configure_input in #(
17204 *\&* | *\|* | *\\* )
17205 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17206 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17207 *) ac_sed_conf_input=$configure_input;;
17208 esac
17209
17210 case $ac_tag in
17211 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17212 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17213 esac
17214 ;;
17215 esac
17216
17217 ac_dir=`$as_dirname -- "$ac_file" ||
17218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17219 X"$ac_file" : 'X\(//\)[^/]' \| \
17220 X"$ac_file" : 'X\(//\)$' \| \
17221 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17222 printf "%s\n" X"$ac_file" |
17223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17224 s//\1/
17225 q
17226 }
17227 /^X\(\/\/\)[^/].*/{
17228 s//\1/
17229 q
17230 }
17231 /^X\(\/\/\)$/{
17232 s//\1/
17233 q
17234 }
17235 /^X\(\/\).*/{
17236 s//\1/
17237 q
17238 }
17239 s/.*/./; q'`
17240 as_dir="$ac_dir"; as_fn_mkdir_p
17241 ac_builddir=.
17242
17243 case "$ac_dir" in
17244 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17245 *)
17246 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17247 # A ".." for each directory in $ac_dir_suffix.
17248 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17249 case $ac_top_builddir_sub in
17250 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17251 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17252 esac ;;
17253 esac
17254 ac_abs_top_builddir=$ac_pwd
17255 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17256 # for backward compatibility:
17257 ac_top_builddir=$ac_top_build_prefix
17258
17259 case $srcdir in
17260 .) # We are building in place.
17261 ac_srcdir=.
17262 ac_top_srcdir=$ac_top_builddir_sub
17263 ac_abs_top_srcdir=$ac_pwd ;;
17264 [\\/]* | ?:[\\/]* ) # Absolute name.
17265 ac_srcdir=$srcdir$ac_dir_suffix;
17266 ac_top_srcdir=$srcdir
17267 ac_abs_top_srcdir=$srcdir ;;
17268 *) # Relative name.
17269 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17270 ac_top_srcdir=$ac_top_build_prefix$srcdir
17271 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17272 esac
17273 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17274
17275
17276 case $ac_mode in
17277 :F)
17278 #
17279 # CONFIG_FILE
17280 #
17281
17282 case $INSTALL in
17283 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17284 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17285 esac
17286 ac_MKDIR_P=$MKDIR_P
17287 case $MKDIR_P in
17288 [\\/$]* | ?:[\\/]* ) ;;
17289 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17290 esac
17291 _ACEOF
17292
17293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17294 # If the template does not know about datarootdir, expand it.
17295 # FIXME: This hack should be removed a few years after 2.60.
17296 ac_datarootdir_hack=; ac_datarootdir_seen=
17297 ac_sed_dataroot='
17298 /datarootdir/ {
17299 p
17300 q
17301 }
17302 /@datadir@/p
17303 /@docdir@/p
17304 /@infodir@/p
17305 /@localedir@/p
17306 /@mandir@/p'
17307 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17308 *datarootdir*) ac_datarootdir_seen=yes;;
17309 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17311 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17312 _ACEOF
17313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17314 ac_datarootdir_hack='
17315 s&@datadir@&$datadir&g
17316 s&@docdir@&$docdir&g
17317 s&@infodir@&$infodir&g
17318 s&@localedir@&$localedir&g
17319 s&@mandir@&$mandir&g
17320 s&\\\${datarootdir}&$datarootdir&g' ;;
17321 esac
17322 _ACEOF
17323
17324 # Neutralize VPATH when `$srcdir' = `.'.
17325 # Shell code in configure.ac might set extrasub.
17326 # FIXME: do we really want to maintain this feature?
17327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17328 ac_sed_extra="$ac_vpsub
17329 $extrasub
17330 _ACEOF
17331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17332 :t
17333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17334 s|@configure_input@|$ac_sed_conf_input|;t t
17335 s&@top_builddir@&$ac_top_builddir_sub&;t t
17336 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17337 s&@srcdir@&$ac_srcdir&;t t
17338 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17339 s&@top_srcdir@&$ac_top_srcdir&;t t
17340 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17341 s&@builddir@&$ac_builddir&;t t
17342 s&@abs_builddir@&$ac_abs_builddir&;t t
17343 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17344 s&@INSTALL@&$ac_INSTALL&;t t
17345 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17346 $ac_datarootdir_hack
17347 "
17348 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17349 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17350
17351 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17352 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17353 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17354 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17356 which seems to be undefined. Please make sure it is defined" >&5
17357 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17358 which seems to be undefined. Please make sure it is defined" >&2;}
17359
17360 rm -f "$ac_tmp/stdin"
17361 case $ac_file in
17362 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17363 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17364 esac \
17365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17366 ;;
17367 :H)
17368 #
17369 # CONFIG_HEADER
17370 #
17371 if test x"$ac_file" != x-; then
17372 {
17373 printf "%s\n" "/* $configure_input */" >&1 \
17374 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17375 } >"$ac_tmp/config.h" \
17376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17377 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17379 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17380 else
17381 rm -f "$ac_file"
17382 mv "$ac_tmp/config.h" "$ac_file" \
17383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17384 fi
17385 else
17386 printf "%s\n" "/* $configure_input */" >&1 \
17387 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17388 || as_fn_error $? "could not create -" "$LINENO" 5
17389 fi
17390 # Compute "$ac_file"'s index in $config_headers.
17391 _am_arg="$ac_file"
17392 _am_stamp_count=1
17393 for _am_header in $config_headers :; do
17394 case $_am_header in
17395 $_am_arg | $_am_arg:* )
17396 break ;;
17397 * )
17398 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17399 esac
17400 done
17401 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17402 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17403 X"$_am_arg" : 'X\(//\)[^/]' \| \
17404 X"$_am_arg" : 'X\(//\)$' \| \
17405 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17406 printf "%s\n" X"$_am_arg" |
17407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17408 s//\1/
17409 q
17410 }
17411 /^X\(\/\/\)[^/].*/{
17412 s//\1/
17413 q
17414 }
17415 /^X\(\/\/\)$/{
17416 s//\1/
17417 q
17418 }
17419 /^X\(\/\).*/{
17420 s//\1/
17421 q
17422 }
17423 s/.*/./; q'`/stamp-h$_am_stamp_count
17424 ;;
17425
17426 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17427 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17428 ;;
17429 esac
17430
17431
17432 case $ac_file$ac_mode in
17433 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17434 # Older Autoconf quotes --file arguments for eval, but not when files
17435 # are listed without --file. Let's play safe and only enable the eval
17436 # if we detect the quoting.
17437 # TODO: see whether this extra hack can be removed once we start
17438 # requiring Autoconf 2.70 or later.
17439 case $CONFIG_FILES in #(
17440 *\'*) :
17441 eval set x "$CONFIG_FILES" ;; #(
17442 *) :
17443 set x $CONFIG_FILES ;; #(
17444 *) :
17445 ;;
17446 esac
17447 shift
17448 # Used to flag and report bootstrapping failures.
17449 am_rc=0
17450 for am_mf
17451 do
17452 # Strip MF so we end up with the name of the file.
17453 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17454 # Check whether this is an Automake generated Makefile which includes
17455 # dependency-tracking related rules and includes.
17456 # Grep'ing the whole file directly is not great: AIX grep has a line
17457 # limit of 2048, but all sed's we know have understand at least 4000.
17458 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17459 || continue
17460 am_dirpart=`$as_dirname -- "$am_mf" ||
17461 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17462 X"$am_mf" : 'X\(//\)[^/]' \| \
17463 X"$am_mf" : 'X\(//\)$' \| \
17464 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17465 printf "%s\n" X"$am_mf" |
17466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17467 s//\1/
17468 q
17469 }
17470 /^X\(\/\/\)[^/].*/{
17471 s//\1/
17472 q
17473 }
17474 /^X\(\/\/\)$/{
17475 s//\1/
17476 q
17477 }
17478 /^X\(\/\).*/{
17479 s//\1/
17480 q
17481 }
17482 s/.*/./; q'`
17483 am_filepart=`$as_basename -- "$am_mf" ||
17484 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17485 X"$am_mf" : 'X\(//\)$' \| \
17486 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17487 printf "%s\n" X/"$am_mf" |
17488 sed '/^.*\/\([^/][^/]*\)\/*$/{
17489 s//\1/
17490 q
17491 }
17492 /^X\/\(\/\/\)$/{
17493 s//\1/
17494 q
17495 }
17496 /^X\/\(\/\).*/{
17497 s//\1/
17498 q
17499 }
17500 s/.*/./; q'`
17501 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17502 && sed -e '/# am--include-marker/d' "$am_filepart" \
17503 | $MAKE -f - am--depfiles" >&5
17504 (cd "$am_dirpart" \
17505 && sed -e '/# am--include-marker/d' "$am_filepart" \
17506 | $MAKE -f - am--depfiles) >&5 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } || am_rc=$?
17510 done
17511 if test $am_rc -ne 0; then
17512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17513 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17514 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17515 for automatic dependency tracking. If GNU make was not used, consider
17516 re-running the configure script with MAKE=\"gmake\" (or whatever is
17517 necessary). You can also try re-running configure with the
17518 '--disable-dependency-tracking' option to at least be able to build
17519 the package (albeit without support for automatic dependency tracking).
17520 See \`config.log' for more details" "$LINENO" 5; }
17521 fi
17522 { am_dirpart=; unset am_dirpart;}
17523 { am_filepart=; unset am_filepart;}
17524 { am_mf=; unset am_mf;}
17525 { am_rc=; unset am_rc;}
17526 rm -f conftest-deps.mk
17527 }
17528 ;;
17529 "libtool":C)
17530
17531 # See if we are running on zsh, and set the options that allow our
17532 # commands through without removal of \ escapes.
17533 if test -n "${ZSH_VERSION+set}"; then
17534 setopt NO_GLOB_SUBST
17535 fi
17536
17537 cfgfile=${ofile}T
17538 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17539 $RM "$cfgfile"
17540
17541 cat <<_LT_EOF >> "$cfgfile"
17542 #! $SHELL
17543 # Generated automatically by $as_me ($PACKAGE) $VERSION
17544 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17545 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17546
17547 # Provide generalized library-building support services.
17548 # Written by Gordon Matzigkeit, 1996
17549
17550 # Copyright (C) 2014 Free Software Foundation, Inc.
17551 # This is free software; see the source for copying conditions. There is NO
17552 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17553
17554 # GNU Libtool is free software; you can redistribute it and/or modify
17555 # it under the terms of the GNU General Public License as published by
17556 # the Free Software Foundation; either version 2 of of the License, or
17557 # (at your option) any later version.
17558 #
17559 # As a special exception to the GNU General Public License, if you
17560 # distribute this file as part of a program or library that is built
17561 # using GNU Libtool, you may include this file under the same
17562 # distribution terms that you use for the rest of that program.
17563 #
17564 # GNU Libtool is distributed in the hope that it will be useful, but
17565 # WITHOUT ANY WARRANTY; without even the implied warranty of
17566 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17567 # GNU General Public License for more details.
17568 #
17569 # You should have received a copy of the GNU General Public License
17570 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17571
17572
17573 # The names of the tagged configurations supported by this script.
17574 available_tags=''
17575
17576 # Configured defaults for sys_lib_dlsearch_path munging.
17577 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17578
17579 # ### BEGIN LIBTOOL CONFIG
17580
17581 # Which release of libtool.m4 was used?
17582 macro_version=$macro_version
17583 macro_revision=$macro_revision
17584
17585 # Whether or not to build shared libraries.
17586 build_libtool_libs=$enable_shared
17587
17588 # Whether or not to build static libraries.
17589 build_old_libs=$enable_static
17590
17591 # What type of objects to build.
17592 pic_mode=$pic_mode
17593
17594 # Whether or not to optimize for fast installation.
17595 fast_install=$enable_fast_install
17596
17597 # Shared archive member basename,for filename based shared library versioning on AIX.
17598 shared_archive_member_spec=$shared_archive_member_spec
17599
17600 # Shell to use when invoking shell scripts.
17601 SHELL=$lt_SHELL
17602
17603 # An echo program that protects backslashes.
17604 ECHO=$lt_ECHO
17605
17606 # The PATH separator for the build system.
17607 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17608
17609 # The host system.
17610 host_alias=$host_alias
17611 host=$host
17612 host_os=$host_os
17613
17614 # The build system.
17615 build_alias=$build_alias
17616 build=$build
17617 build_os=$build_os
17618
17619 # A sed program that does not truncate output.
17620 SED=$lt_SED
17621
17622 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17623 Xsed="\$SED -e 1s/^X//"
17624
17625 # A grep program that handles long lines.
17626 GREP=$lt_GREP
17627
17628 # An ERE matcher.
17629 EGREP=$lt_EGREP
17630
17631 # A literal string matcher.
17632 FGREP=$lt_FGREP
17633
17634 # A BSD- or MS-compatible name lister.
17635 NM=$lt_NM
17636
17637 # Whether we need soft or hard links.
17638 LN_S=$lt_LN_S
17639
17640 # What is the maximum length of a command?
17641 max_cmd_len=$max_cmd_len
17642
17643 # Object file suffix (normally "o").
17644 objext=$ac_objext
17645
17646 # Executable file suffix (normally "").
17647 exeext=$exeext
17648
17649 # whether the shell understands "unset".
17650 lt_unset=$lt_unset
17651
17652 # turn spaces into newlines.
17653 SP2NL=$lt_lt_SP2NL
17654
17655 # turn newlines into spaces.
17656 NL2SP=$lt_lt_NL2SP
17657
17658 # convert \$build file names to \$host format.
17659 to_host_file_cmd=$lt_cv_to_host_file_cmd
17660
17661 # convert \$build files to toolchain format.
17662 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17663
17664 # An object symbol dumper.
17665 OBJDUMP=$lt_OBJDUMP
17666
17667 # Method to check whether dependent libraries are shared objects.
17668 deplibs_check_method=$lt_deplibs_check_method
17669
17670 # Command to use when deplibs_check_method = "file_magic".
17671 file_magic_cmd=$lt_file_magic_cmd
17672
17673 # How to find potential files when deplibs_check_method = "file_magic".
17674 file_magic_glob=$lt_file_magic_glob
17675
17676 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17677 want_nocaseglob=$lt_want_nocaseglob
17678
17679 # DLL creation program.
17680 DLLTOOL=$lt_DLLTOOL
17681
17682 # Command to associate shared and link libraries.
17683 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17684
17685 # The archiver.
17686 AR=$lt_AR
17687
17688 # Flags to create an archive.
17689 AR_FLAGS=$lt_AR_FLAGS
17690
17691 # How to feed a file listing to the archiver.
17692 archiver_list_spec=$lt_archiver_list_spec
17693
17694 # A symbol stripping program.
17695 STRIP=$lt_STRIP
17696
17697 # Commands used to install an old-style archive.
17698 RANLIB=$lt_RANLIB
17699 old_postinstall_cmds=$lt_old_postinstall_cmds
17700 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17701
17702 # Whether to use a lock for old archive extraction.
17703 lock_old_archive_extraction=$lock_old_archive_extraction
17704
17705 # A C compiler.
17706 LTCC=$lt_CC
17707
17708 # LTCC compiler flags.
17709 LTCFLAGS=$lt_CFLAGS
17710
17711 # Take the output of nm and produce a listing of raw symbols and C names.
17712 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17713
17714 # Transform the output of nm in a proper C declaration.
17715 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17716
17717 # Transform the output of nm into a list of symbols to manually relocate.
17718 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17719
17720 # Transform the output of nm in a C name address pair.
17721 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17722
17723 # Transform the output of nm in a C name address pair when lib prefix is needed.
17724 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17725
17726 # The name lister interface.
17727 nm_interface=$lt_lt_cv_nm_interface
17728
17729 # Specify filename containing input files for \$NM.
17730 nm_file_list_spec=$lt_nm_file_list_spec
17731
17732 # The root where to search for dependent libraries,and where our libraries should be installed.
17733 lt_sysroot=$lt_sysroot
17734
17735 # Command to truncate a binary pipe.
17736 lt_truncate_bin=$lt_lt_cv_truncate_bin
17737
17738 # The name of the directory that contains temporary libtool files.
17739 objdir=$objdir
17740
17741 # Used to examine libraries when file_magic_cmd begins with "file".
17742 MAGIC_CMD=$MAGIC_CMD
17743
17744 # Must we lock files when doing compilation?
17745 need_locks=$lt_need_locks
17746
17747 # Manifest tool.
17748 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17749
17750 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17751 DSYMUTIL=$lt_DSYMUTIL
17752
17753 # Tool to change global to local symbols on Mac OS X.
17754 NMEDIT=$lt_NMEDIT
17755
17756 # Tool to manipulate fat objects and archives on Mac OS X.
17757 LIPO=$lt_LIPO
17758
17759 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17760 OTOOL=$lt_OTOOL
17761
17762 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17763 OTOOL64=$lt_OTOOL64
17764
17765 # Old archive suffix (normally "a").
17766 libext=$libext
17767
17768 # Shared library suffix (normally ".so").
17769 shrext_cmds=$lt_shrext_cmds
17770
17771 # The commands to extract the exported symbol list from a shared archive.
17772 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17773
17774 # Variables whose values should be saved in libtool wrapper scripts and
17775 # restored at link time.
17776 variables_saved_for_relink=$lt_variables_saved_for_relink
17777
17778 # Do we need the "lib" prefix for modules?
17779 need_lib_prefix=$need_lib_prefix
17780
17781 # Do we need a version for libraries?
17782 need_version=$need_version
17783
17784 # Library versioning type.
17785 version_type=$version_type
17786
17787 # Shared library runtime path variable.
17788 runpath_var=$runpath_var
17789
17790 # Shared library path variable.
17791 shlibpath_var=$shlibpath_var
17792
17793 # Is shlibpath searched before the hard-coded library search path?
17794 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17795
17796 # Format of library name prefix.
17797 libname_spec=$lt_libname_spec
17798
17799 # List of archive names. First name is the real one, the rest are links.
17800 # The last name is the one that the linker finds with -lNAME
17801 library_names_spec=$lt_library_names_spec
17802
17803 # The coded name of the library, if different from the real name.
17804 soname_spec=$lt_soname_spec
17805
17806 # Permission mode override for installation of shared libraries.
17807 install_override_mode=$lt_install_override_mode
17808
17809 # Command to use after installation of a shared archive.
17810 postinstall_cmds=$lt_postinstall_cmds
17811
17812 # Command to use after uninstallation of a shared archive.
17813 postuninstall_cmds=$lt_postuninstall_cmds
17814
17815 # Commands used to finish a libtool library installation in a directory.
17816 finish_cmds=$lt_finish_cmds
17817
17818 # As "finish_cmds", except a single script fragment to be evaled but
17819 # not shown.
17820 finish_eval=$lt_finish_eval
17821
17822 # Whether we should hardcode library paths into libraries.
17823 hardcode_into_libs=$hardcode_into_libs
17824
17825 # Compile-time system search path for libraries.
17826 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17827
17828 # Detected run-time system search path for libraries.
17829 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17830
17831 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17832 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17833
17834 # Whether dlopen is supported.
17835 dlopen_support=$enable_dlopen
17836
17837 # Whether dlopen of programs is supported.
17838 dlopen_self=$enable_dlopen_self
17839
17840 # Whether dlopen of statically linked programs is supported.
17841 dlopen_self_static=$enable_dlopen_self_static
17842
17843 # Commands to strip libraries.
17844 old_striplib=$lt_old_striplib
17845 striplib=$lt_striplib
17846
17847
17848 # The linker used to build libraries.
17849 LD=$lt_LD
17850
17851 # How to create reloadable object files.
17852 reload_flag=$lt_reload_flag
17853 reload_cmds=$lt_reload_cmds
17854
17855 # Commands used to build an old-style archive.
17856 old_archive_cmds=$lt_old_archive_cmds
17857
17858 # A language specific compiler.
17859 CC=$lt_compiler
17860
17861 # Is the compiler the GNU compiler?
17862 with_gcc=$GCC
17863
17864 # Compiler flag to turn off builtin functions.
17865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17866
17867 # Additional compiler flags for building library objects.
17868 pic_flag=$lt_lt_prog_compiler_pic
17869
17870 # How to pass a linker flag through the compiler.
17871 wl=$lt_lt_prog_compiler_wl
17872
17873 # Compiler flag to prevent dynamic linking.
17874 link_static_flag=$lt_lt_prog_compiler_static
17875
17876 # Does compiler simultaneously support -c and -o options?
17877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17878
17879 # Whether or not to add -lc for building shared libraries.
17880 build_libtool_need_lc=$archive_cmds_need_lc
17881
17882 # Whether or not to disallow shared libs when runtime libs are static.
17883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17884
17885 # Compiler flag to allow reflexive dlopens.
17886 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17887
17888 # Compiler flag to generate shared objects directly from archives.
17889 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17890
17891 # Whether the compiler copes with passing no objects directly.
17892 compiler_needs_object=$lt_compiler_needs_object
17893
17894 # Create an old-style archive from a shared archive.
17895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17896
17897 # Create a temporary old-style archive to link instead of a shared archive.
17898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17899
17900 # Commands used to build a shared archive.
17901 archive_cmds=$lt_archive_cmds
17902 archive_expsym_cmds=$lt_archive_expsym_cmds
17903
17904 # Commands used to build a loadable module if different from building
17905 # a shared archive.
17906 module_cmds=$lt_module_cmds
17907 module_expsym_cmds=$lt_module_expsym_cmds
17908
17909 # Whether we are building with GNU ld or not.
17910 with_gnu_ld=$lt_with_gnu_ld
17911
17912 # Flag that allows shared libraries with undefined symbols to be built.
17913 allow_undefined_flag=$lt_allow_undefined_flag
17914
17915 # Flag that enforces no undefined symbols.
17916 no_undefined_flag=$lt_no_undefined_flag
17917
17918 # Flag to hardcode \$libdir into a binary during linking.
17919 # This must work even if \$libdir does not exist
17920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17921
17922 # Whether we need a single "-rpath" flag with a separated argument.
17923 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17924
17925 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17926 # DIR into the resulting binary.
17927 hardcode_direct=$hardcode_direct
17928
17929 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17930 # DIR into the resulting binary and the resulting library dependency is
17931 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17932 # library is relocated.
17933 hardcode_direct_absolute=$hardcode_direct_absolute
17934
17935 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17936 # into the resulting binary.
17937 hardcode_minus_L=$hardcode_minus_L
17938
17939 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17940 # into the resulting binary.
17941 hardcode_shlibpath_var=$hardcode_shlibpath_var
17942
17943 # Set to "yes" if building a shared library automatically hardcodes DIR
17944 # into the library and all subsequent libraries and executables linked
17945 # against it.
17946 hardcode_automatic=$hardcode_automatic
17947
17948 # Set to yes if linker adds runtime paths of dependent libraries
17949 # to runtime path list.
17950 inherit_rpath=$inherit_rpath
17951
17952 # Whether libtool must link a program against all its dependency libraries.
17953 link_all_deplibs=$link_all_deplibs
17954
17955 # Set to "yes" if exported symbols are required.
17956 always_export_symbols=$always_export_symbols
17957
17958 # The commands to list exported symbols.
17959 export_symbols_cmds=$lt_export_symbols_cmds
17960
17961 # Symbols that should not be listed in the preloaded symbols.
17962 exclude_expsyms=$lt_exclude_expsyms
17963
17964 # Symbols that must always be exported.
17965 include_expsyms=$lt_include_expsyms
17966
17967 # Commands necessary for linking programs (against libraries) with templates.
17968 prelink_cmds=$lt_prelink_cmds
17969
17970 # Commands necessary for finishing linking programs.
17971 postlink_cmds=$lt_postlink_cmds
17972
17973 # Specify filename containing input files.
17974 file_list_spec=$lt_file_list_spec
17975
17976 # How to hardcode a shared library path into an executable.
17977 hardcode_action=$hardcode_action
17978
17979 # ### END LIBTOOL CONFIG
17980
17981 _LT_EOF
17982
17983 cat <<'_LT_EOF' >> "$cfgfile"
17984
17985 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17986
17987 # func_munge_path_list VARIABLE PATH
17988 # -----------------------------------
17989 # VARIABLE is name of variable containing _space_ separated list of
17990 # directories to be munged by the contents of PATH, which is string
17991 # having a format:
17992 # "DIR[:DIR]:"
17993 # string "DIR[ DIR]" will be prepended to VARIABLE
17994 # ":DIR[:DIR]"
17995 # string "DIR[ DIR]" will be appended to VARIABLE
17996 # "DIRP[:DIRP]::[DIRA:]DIRA"
17997 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17998 # "DIRA[ DIRA]" will be appended to VARIABLE
17999 # "DIR[:DIR]"
18000 # VARIABLE will be replaced by "DIR[ DIR]"
18001 func_munge_path_list ()
18002 {
18003 case x$2 in
18004 x)
18005 ;;
18006 *:)
18007 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18008 ;;
18009 x:*)
18010 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18011 ;;
18012 *::*)
18013 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18014 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18015 ;;
18016 *)
18017 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18018 ;;
18019 esac
18020 }
18021
18022
18023 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18024 func_cc_basename ()
18025 {
18026 for cc_temp in $*""; do
18027 case $cc_temp in
18028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18030 \-*) ;;
18031 *) break;;
18032 esac
18033 done
18034 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18035 }
18036
18037
18038 # ### END FUNCTIONS SHARED WITH CONFIGURE
18039
18040 _LT_EOF
18041
18042 case $host_os in
18043 aix3*)
18044 cat <<\_LT_EOF >> "$cfgfile"
18045 # AIX sometimes has problems with the GCC collect2 program. For some
18046 # reason, if we set the COLLECT_NAMES environment variable, the problems
18047 # vanish in a puff of smoke.
18048 if test set != "${COLLECT_NAMES+set}"; then
18049 COLLECT_NAMES=
18050 export COLLECT_NAMES
18051 fi
18052 _LT_EOF
18053 ;;
18054 esac
18055
18056
18057
18058 ltmain=$ac_aux_dir/ltmain.sh
18059
18060
18061 # We use sed instead of cat because bash on DJGPP gets confused if
18062 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18063 # text mode, it properly converts lines to CR/LF. This bash problem
18064 # is reportedly fixed, but why not run on old versions too?
18065 sed '$q' "$ltmain" >> "$cfgfile" \
18066 || (rm -f "$cfgfile"; exit 1)
18067
18068 mv -f "$cfgfile" "$ofile" ||
18069 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18070 chmod +x "$ofile"
18071
18072 ;;
18073 "po-directories":C)
18074 for ac_file in $CONFIG_FILES; do
18075 # Support "outfile[:infile[:infile...]]"
18076 case "$ac_file" in
18077 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18078 esac
18079 # PO directories have a Makefile.in generated from Makefile.in.in.
18080 case "$ac_file" in */Makefile.in)
18081 # Adjust a relative srcdir.
18082 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18083 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18084 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18085 # In autoconf-2.13 it is called $ac_given_srcdir.
18086 # In autoconf-2.50 it is called $srcdir.
18087 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18088 case "$ac_given_srcdir" in
18089 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18090 /*) top_srcdir="$ac_given_srcdir" ;;
18091 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18092 esac
18093 # Treat a directory as a PO directory if and only if it has a
18094 # POTFILES.in file. This allows packages to have multiple PO
18095 # directories under different names or in different locations.
18096 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18097 rm -f "$ac_dir/POTFILES"
18098 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18099 gt_tab=`printf '\t'`
18100 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"
18101 POMAKEFILEDEPS="POTFILES.in"
18102 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18103 # on $ac_dir but don't depend on user-specified configuration
18104 # parameters.
18105 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18106 # The LINGUAS file contains the set of available languages.
18107 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18108 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18109 fi
18110 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18111 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18112 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18113 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18114 else
18115 # The set of available languages was given in configure.in.
18116 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18117 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18118 fi
18119 # Compute POFILES
18120 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18121 # Compute UPDATEPOFILES
18122 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18123 # Compute DUMMYPOFILES
18124 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18125 # Compute GMOFILES
18126 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18127 case "$ac_given_srcdir" in
18128 .) srcdirpre= ;;
18129 *) srcdirpre='$(srcdir)/' ;;
18130 esac
18131 POFILES=
18132 UPDATEPOFILES=
18133 DUMMYPOFILES=
18134 GMOFILES=
18135 for lang in $ALL_LINGUAS; do
18136 POFILES="$POFILES $srcdirpre$lang.po"
18137 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18138 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18139 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18140 done
18141 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18142 # environment variable.
18143 INST_LINGUAS=
18144 if test -n "$ALL_LINGUAS"; then
18145 for presentlang in $ALL_LINGUAS; do
18146 useit=no
18147 if test "%UNSET%" != "$LINGUAS"; then
18148 desiredlanguages="$LINGUAS"
18149 else
18150 desiredlanguages="$ALL_LINGUAS"
18151 fi
18152 for desiredlang in $desiredlanguages; do
18153 # Use the presentlang catalog if desiredlang is
18154 # a. equal to presentlang, or
18155 # b. a variant of presentlang (because in this case,
18156 # presentlang can be used as a fallback for messages
18157 # which are not translated in the desiredlang catalog).
18158 case "$desiredlang" in
18159 "$presentlang"*) useit=yes;;
18160 esac
18161 done
18162 if test $useit = yes; then
18163 INST_LINGUAS="$INST_LINGUAS $presentlang"
18164 fi
18165 done
18166 fi
18167 CATALOGS=
18168 if test -n "$INST_LINGUAS"; then
18169 for lang in $INST_LINGUAS; do
18170 CATALOGS="$CATALOGS $lang.gmo"
18171 done
18172 fi
18173 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18174 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"
18175 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18176 if test -f "$f"; then
18177 case "$f" in
18178 *.orig | *.bak | *~) ;;
18179 *) cat "$f" >> "$ac_dir/Makefile" ;;
18180 esac
18181 fi
18182 done
18183 fi
18184 ;;
18185 esac
18186 done ;;
18187
18188 esac
18189 done # for ac_tag
18190
18191
18192 as_fn_exit 0
18193 _ACEOF
18194 ac_clean_files=$ac_clean_files_save
18195
18196 test $ac_write_fail = 0 ||
18197 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18198
18199
18200 # configure is writing to config.log, and then calls config.status.
18201 # config.status does its own redirection, appending to config.log.
18202 # Unfortunately, on DOS this fails, as config.log is still kept open
18203 # by configure, so config.status won't be able to write to it; its
18204 # output is simply discarded. So we exec the FD to /dev/null,
18205 # effectively closing config.log, so it can be properly (re)opened and
18206 # appended to by config.status. When coming back to configure, we
18207 # need to make the FD available again.
18208 if test "$no_create" != yes; then
18209 ac_cs_success=:
18210 ac_config_status_args=
18211 test "$silent" = yes &&
18212 ac_config_status_args="$ac_config_status_args --quiet"
18213 exec 5>/dev/null
18214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18215 exec 5>>config.log
18216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18217 # would make configure fail if this is the last instruction.
18218 $ac_cs_success || as_fn_exit 1
18219 fi
18220
18221 #
18222 # CONFIG_SUBDIRS section.
18223 #
18224 if test "$no_recursion" != yes; then
18225
18226 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18227 # so they do not pile up.
18228 ac_sub_configure_args=
18229 ac_prev=
18230 eval "set x $ac_configure_args"
18231 shift
18232 for ac_arg
18233 do
18234 if test -n "$ac_prev"; then
18235 ac_prev=
18236 continue
18237 fi
18238 case $ac_arg in
18239 -cache-file | --cache-file | --cache-fil | --cache-fi \
18240 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18241 ac_prev=cache_file ;;
18242 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18243 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18244 | --c=*)
18245 ;;
18246 --config-cache | -C)
18247 ;;
18248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18249 ac_prev=srcdir ;;
18250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18251 ;;
18252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18253 ac_prev=prefix ;;
18254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18255 ;;
18256 --disable-option-checking)
18257 ;;
18258 *)
18259 case $ac_arg in
18260 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18261 esac
18262 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18263 esac
18264 done
18265
18266 # Always prepend --prefix to ensure using the same prefix
18267 # in subdir configurations.
18268 ac_arg="--prefix=$prefix"
18269 case $ac_arg in
18270 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18271 esac
18272 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18273
18274 # Pass --silent
18275 if test "$silent" = yes; then
18276 ac_sub_configure_args="--silent $ac_sub_configure_args"
18277 fi
18278
18279 # Always prepend --disable-option-checking to silence warnings, since
18280 # different subdirs can have different --enable and --with options.
18281 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18282
18283 ac_popdir=`pwd`
18284 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18285
18286 # Do not complain, so a configure script can configure whichever
18287 # parts of a large source tree are present.
18288 test -d "$srcdir/$ac_dir" || continue
18289
18290 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18292 printf "%s\n" "$ac_msg" >&6
18293 as_dir="$ac_dir"; as_fn_mkdir_p
18294 ac_builddir=.
18295
18296 case "$ac_dir" in
18297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18298 *)
18299 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18300 # A ".." for each directory in $ac_dir_suffix.
18301 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18302 case $ac_top_builddir_sub in
18303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18305 esac ;;
18306 esac
18307 ac_abs_top_builddir=$ac_pwd
18308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18309 # for backward compatibility:
18310 ac_top_builddir=$ac_top_build_prefix
18311
18312 case $srcdir in
18313 .) # We are building in place.
18314 ac_srcdir=.
18315 ac_top_srcdir=$ac_top_builddir_sub
18316 ac_abs_top_srcdir=$ac_pwd ;;
18317 [\\/]* | ?:[\\/]* ) # Absolute name.
18318 ac_srcdir=$srcdir$ac_dir_suffix;
18319 ac_top_srcdir=$srcdir
18320 ac_abs_top_srcdir=$srcdir ;;
18321 *) # Relative name.
18322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18323 ac_top_srcdir=$ac_top_build_prefix$srcdir
18324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18325 esac
18326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18327
18328
18329 cd "$ac_dir"
18330
18331 # Check for configure.gnu first; this name is used for a wrapper for
18332 # Metaconfig's "Configure" on case-insensitive file systems.
18333 if test -f "$ac_srcdir/configure.gnu"; then
18334 ac_sub_configure=$ac_srcdir/configure.gnu
18335 elif test -f "$ac_srcdir/configure"; then
18336 ac_sub_configure=$ac_srcdir/configure
18337 else
18338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18339 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18340 ac_sub_configure=
18341 fi
18342
18343 # The recursion is here.
18344 if test -n "$ac_sub_configure"; then
18345 # Make the cache file name correct relative to the subdirectory.
18346 case $cache_file in
18347 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18348 *) # Relative name.
18349 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18350 esac
18351
18352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18353 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18354 # The eval makes quoting arguments work.
18355 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18356 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18357 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18358 fi
18359
18360 cd "$ac_popdir"
18361 done
18362 fi
18363 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18365 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18366 fi
18367
18368