Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for NetworkManager-l2tp 1.52.4.
4 #
5 # Report bugs to <https://github.com/nm-l2tp/NetworkManager-l2tp/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://github.com/nm-l2tp/NetworkManager-l2tp/issues
283 $0: about your system, including any error possibly output
284 $0: before this message. Then install a modern shell, or
285 $0: manually run the script under such a shell if you do
286 $0: have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595 test -n "$DJDIR" || exec 7<&0 </dev/null
596 exec 6>&1
597
598 # Name of the host.
599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600 # so uname gets run too.
601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603 #
604 # Initializations.
605 #
606 ac_default_prefix=/usr/local
607 ac_clean_files=
608 ac_config_libobj_dir=.
609 LIBOBJS=
610 cross_compiling=no
611 subdirs=
612 MFLAGS=
613 MAKEFLAGS=
614
615 # Identity of this package.
616 PACKAGE_NAME='NetworkManager-l2tp'
617 PACKAGE_TARNAME='NetworkManager-l2tp'
618 PACKAGE_VERSION='1.52.4'
619 PACKAGE_STRING='NetworkManager-l2tp 1.52.4'
620 PACKAGE_BUGREPORT='https://github.com/nm-l2tp/NetworkManager-l2tp/issues'
621 PACKAGE_URL=''
622
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 gt_needs=
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 NM_PLUGIN_DIR_NAME_FILE
660 NM_PLUGIN_DIR
661 NM_VPN_SERVICE_DIR
662 LIBNM_LIBS
663 LIBNM_CFLAGS
664 LIBNMA_GTK4_LIBS
665 LIBNMA_GTK4_CFLAGS
666 GTK4_LIBS
667 GTK4_CFLAGS
668 LIBNMA_LIBS
669 LIBNMA_CFLAGS
670 GTK_LIBS
671 GTK_CFLAGS
672 LIBSECRET_LIBS
673 LIBSECRET_CFLAGS
674 GLIB_LIBS
675 GLIB_CFLAGS
676 GETTEXT_PACKAGE
677 localedir_c_make
678 localedir_c
679 POSUB
680 LTLIBINTL
681 LIBINTL
682 INTLLIBS
683 LTLIBICONV
684 LIBICONV
685 INTL_MACOSX_LIBS
686 XGETTEXT_EXTRA_OPTIONS
687 MSGMERGE_FOR_MSGFMT_OPTION
688 MSGMERGE
689 XGETTEXT_015
690 XGETTEXT
691 GMSGFMT_015
692 GMSGFMT
693 MSGFMT
694 GETTEXT_MACRO_VERSION
695 USE_NLS
696 WITH_GTK4_FALSE
697 WITH_GTK4_TRUE
698 WITH_GNOME_FALSE
699 WITH_GNOME_TRUE
700 NSS_LIBS
701 NSS_CFLAGS
702 OPENSSL_LIBS
703 OPENSSL_CFLAGS
704 DL_LIBS
705 LIBOBJS
706 PPPD_PLUGIN_DIR
707 has_find
708 has_file
709 PKG_CONFIG_LIBDIR
710 PKG_CONFIG_PATH
711 PKG_CONFIG
712 GLIB_COMPILE_RESOURCES
713 CPP
714 LT_SYS_LIBRARY_PATH
715 OTOOL64
716 OTOOL
717 LIPO
718 NMEDIT
719 DSYMUTIL
720 MANIFEST_TOOL
721 DLLTOOL
722 OBJDUMP
723 FILECMD
724 LN_S
725 NM
726 ac_ct_DUMPBIN
727 DUMPBIN
728 LD
729 FGREP
730 EGREP
731 GREP
732 SED
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
741 LIBTOOL
742 ac_ct_RANLIB
743 RANLIB
744 ac_ct_AR
745 AR
746 am__fastdepCC_FALSE
747 am__fastdepCC_TRUE
748 CCDEPMODE
749 am__nodep
750 AMDEPBACKSLASH
751 AMDEP_FALSE
752 AMDEP_TRUE
753 am__include
754 DEPDIR
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 MAINT
763 MAINTAINER_MODE_FALSE
764 MAINTAINER_MODE_TRUE
765 am__xargs_n
766 am__rm_f_notfound
767 AM_BACKSLASH
768 AM_DEFAULT_VERBOSITY
769 AM_DEFAULT_V
770 AM_V
771 CSCOPE
772 ETAGS
773 CTAGS
774 am__untar
775 am__tar
776 AMTAR
777 am__leading_dot
778 SET_MAKE
779 AWK
780 mkdir_p
781 MKDIR_P
782 INSTALL_STRIP_PROGRAM
783 STRIP
784 install_sh
785 MAKEINFO
786 AUTOHEADER
787 AUTOMAKE
788 AUTOCONF
789 ACLOCAL
790 VERSION
791 PACKAGE
792 CYGPATH_W
793 am__isrc
794 INSTALL_DATA
795 INSTALL_SCRIPT
796 INSTALL_PROGRAM
797 target_alias
798 host_alias
799 build_alias
800 LIBS
801 ECHO_T
802 ECHO_N
803 ECHO_C
804 DEFS
805 mandir
806 localedir
807 libdir
808 psdir
809 pdfdir
810 dvidir
811 htmldir
812 infodir
813 docdir
814 oldincludedir
815 includedir
816 runstatedir
817 localstatedir
818 sharedstatedir
819 sysconfdir
820 datadir
821 datarootdir
822 libexecdir
823 sbindir
824 bindir
825 program_transform_name
826 prefix
827 exec_prefix
828 PACKAGE_URL
829 PACKAGE_BUGREPORT
830 PACKAGE_STRING
831 PACKAGE_VERSION
832 PACKAGE_TARNAME
833 PACKAGE_NAME
834 PATH_SEPARATOR
835 SHELL
836 am__quote'
837 ac_subst_files=''
838 ac_user_opts='
839 enable_option_checking
840 enable_silent_rules
841 enable_maintainer_mode
842 enable_dependency_tracking
843 enable_static
844 enable_shared
845 enable_pic
846 with_pic
847 enable_fast_install
848 enable_aix_soname
849 with_aix_soname
850 with_gnu_ld
851 with_sysroot
852 enable_libtool_lock
853 with_pppd_plugin_dir
854 with_nm_ipsec_secrets
855 with_nm_ipsec_secrets_dir
856 with_nm_ipsec_nss_dir
857 enable_libreswan_dh2
858 with_gnome
859 with_gtk4
860 enable_absolute_paths
861 enable_nls
862 enable_rpath
863 with_libiconv_prefix
864 with_libintl_prefix
865 enable_more_warnings
866 enable_lto
867 enable_ld_gc
868 with_dist_version
869 '
870 ac_precious_vars='build_alias
871 host_alias
872 target_alias
873 CC
874 CFLAGS
875 LDFLAGS
876 LIBS
877 CPPFLAGS
878 LT_SYS_LIBRARY_PATH
879 CPP
880 PKG_CONFIG
881 PKG_CONFIG_PATH
882 PKG_CONFIG_LIBDIR
883 OPENSSL_CFLAGS
884 OPENSSL_LIBS
885 NSS_CFLAGS
886 NSS_LIBS
887 GLIB_CFLAGS
888 GLIB_LIBS
889 LIBSECRET_CFLAGS
890 LIBSECRET_LIBS
891 GTK_CFLAGS
892 GTK_LIBS
893 LIBNMA_CFLAGS
894 LIBNMA_LIBS
895 GTK4_CFLAGS
896 GTK4_LIBS
897 LIBNMA_GTK4_CFLAGS
898 LIBNMA_GTK4_LIBS
899 LIBNM_CFLAGS
900 LIBNM_LIBS'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 ac_unrecognized_opts=
907 ac_unrecognized_sep=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
924
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 runstatedir='${localstatedir}/run'
940 includedir='${prefix}/include'
941 oldincludedir='/usr/include'
942 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir='${datarootdir}/info'
944 htmldir='${docdir}'
945 dvidir='${docdir}'
946 pdfdir='${docdir}'
947 psdir='${docdir}'
948 libdir='${exec_prefix}/lib'
949 localedir='${datarootdir}/locale'
950 mandir='${datarootdir}/man'
951
952 ac_prev=
953 ac_dashdash=
954 for ac_option
955 do
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
959 ac_prev=
960 continue
961 fi
962
963 case $ac_option in
964 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *=) ac_optarg= ;;
966 *) ac_optarg=yes ;;
967 esac
968
969 case $ac_dashdash$ac_option in
970 --)
971 ac_dashdash=yes ;;
972
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 ac_prev=bindir ;;
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976 bindir=$ac_optarg ;;
977
978 -build | --build | --buil | --bui | --bu)
979 ac_prev=build_alias ;;
980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981 build_alias=$ac_optarg ;;
982
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988 cache_file=$ac_optarg ;;
989
990 --config-cache | -C)
991 cache_file=config.cache ;;
992
993 -datadir | --datadir | --datadi | --datad)
994 ac_prev=datadir ;;
995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
996 datadir=$ac_optarg ;;
997
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1004
1005 -disable-* | --disable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: '$ac_useropt'"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1013 *"
1014 "enable_$ac_useropt"
1015 "*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=no ;;
1020
1021 -docdir | --docdir | --docdi | --doc | --do)
1022 ac_prev=docdir ;;
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1025
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 ac_prev=dvidir ;;
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
1030
1031 -enable-* | --enable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid feature name: '$ac_useropt'"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1039 *"
1040 "enable_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval enable_$ac_useropt=\$ac_optarg ;;
1046
1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049 | --exec | --exe | --ex)
1050 ac_prev=exec_prefix ;;
1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053 | --exec=* | --exe=* | --ex=*)
1054 exec_prefix=$ac_optarg ;;
1055
1056 -gas | --gas | --ga | --g)
1057 # Obsolete; use --with-gas.
1058 with_gas=yes ;;
1059
1060 -help | --help | --hel | --he | -h)
1061 ac_init_help=long ;;
1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063 ac_init_help=recursive ;;
1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065 ac_init_help=short ;;
1066
1067 -host | --host | --hos | --ho)
1068 ac_prev=host_alias ;;
1069 -host=* | --host=* | --hos=* | --ho=*)
1070 host_alias=$ac_optarg ;;
1071
1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073 ac_prev=htmldir ;;
1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075 | --ht=*)
1076 htmldir=$ac_optarg ;;
1077
1078 -includedir | --includedir | --includedi | --included | --include \
1079 | --includ | --inclu | --incl | --inc)
1080 ac_prev=includedir ;;
1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082 | --includ=* | --inclu=* | --incl=* | --inc=*)
1083 includedir=$ac_optarg ;;
1084
1085 -infodir | --infodir | --infodi | --infod | --info | --inf)
1086 ac_prev=infodir ;;
1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088 infodir=$ac_optarg ;;
1089
1090 -libdir | --libdir | --libdi | --libd)
1091 ac_prev=libdir ;;
1092 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093 libdir=$ac_optarg ;;
1094
1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096 | --libexe | --libex | --libe)
1097 ac_prev=libexecdir ;;
1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099 | --libexe=* | --libex=* | --libe=*)
1100 libexecdir=$ac_optarg ;;
1101
1102 -localedir | --localedir | --localedi | --localed | --locale)
1103 ac_prev=localedir ;;
1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105 localedir=$ac_optarg ;;
1106
1107 -localstatedir | --localstatedir | --localstatedi | --localstated \
1108 | --localstate | --localstat | --localsta | --localst | --locals)
1109 ac_prev=localstatedir ;;
1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112 localstatedir=$ac_optarg ;;
1113
1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 ac_prev=mandir ;;
1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117 mandir=$ac_optarg ;;
1118
1119 -nfp | --nfp | --nf)
1120 # Obsolete; use --without-fp.
1121 with_fp=no ;;
1122
1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124 | --no-cr | --no-c | -n)
1125 no_create=yes ;;
1126
1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 no_recursion=yes ;;
1130
1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133 | --oldin | --oldi | --old | --ol | --o)
1134 ac_prev=oldincludedir ;;
1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138 oldincludedir=$ac_optarg ;;
1139
1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 ac_prev=prefix ;;
1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143 prefix=$ac_optarg ;;
1144
1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146 | --program-pre | --program-pr | --program-p)
1147 ac_prev=program_prefix ;;
1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150 program_prefix=$ac_optarg ;;
1151
1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153 | --program-suf | --program-su | --program-s)
1154 ac_prev=program_suffix ;;
1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157 program_suffix=$ac_optarg ;;
1158
1159 -program-transform-name | --program-transform-name \
1160 | --program-transform-nam | --program-transform-na \
1161 | --program-transform-n | --program-transform- \
1162 | --program-transform | --program-transfor \
1163 | --program-transfo | --program-transf \
1164 | --program-trans | --program-tran \
1165 | --progr-tra | --program-tr | --program-t)
1166 ac_prev=program_transform_name ;;
1167 -program-transform-name=* | --program-transform-name=* \
1168 | --program-transform-nam=* | --program-transform-na=* \
1169 | --program-transform-n=* | --program-transform-=* \
1170 | --program-transform=* | --program-transfor=* \
1171 | --program-transfo=* | --program-transf=* \
1172 | --program-trans=* | --program-tran=* \
1173 | --progr-tra=* | --program-tr=* | --program-t=*)
1174 program_transform_name=$ac_optarg ;;
1175
1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177 ac_prev=pdfdir ;;
1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179 pdfdir=$ac_optarg ;;
1180
1181 -psdir | --psdir | --psdi | --psd | --ps)
1182 ac_prev=psdir ;;
1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 psdir=$ac_optarg ;;
1185
1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187 | -silent | --silent | --silen | --sile | --sil)
1188 silent=yes ;;
1189
1190 -runstatedir | --runstatedir | --runstatedi | --runstated \
1191 | --runstate | --runstat | --runsta | --runst | --runs \
1192 | --run | --ru | --r)
1193 ac_prev=runstatedir ;;
1194 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1195 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1196 | --run=* | --ru=* | --r=*)
1197 runstatedir=$ac_optarg ;;
1198
1199 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200 ac_prev=sbindir ;;
1201 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202 | --sbi=* | --sb=*)
1203 sbindir=$ac_optarg ;;
1204
1205 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1206 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207 | --sharedst | --shareds | --shared | --share | --shar \
1208 | --sha | --sh)
1209 ac_prev=sharedstatedir ;;
1210 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213 | --sha=* | --sh=*)
1214 sharedstatedir=$ac_optarg ;;
1215
1216 -site | --site | --sit)
1217 ac_prev=site ;;
1218 -site=* | --site=* | --sit=*)
1219 site=$ac_optarg ;;
1220
1221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222 ac_prev=srcdir ;;
1223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224 srcdir=$ac_optarg ;;
1225
1226 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227 | --syscon | --sysco | --sysc | --sys | --sy)
1228 ac_prev=sysconfdir ;;
1229 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231 sysconfdir=$ac_optarg ;;
1232
1233 -target | --target | --targe | --targ | --tar | --ta | --t)
1234 ac_prev=target_alias ;;
1235 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236 target_alias=$ac_optarg ;;
1237
1238 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239 verbose=yes ;;
1240
1241 -version | --version | --versio | --versi | --vers | -V)
1242 ac_init_version=: ;;
1243
1244 -with-* | --with-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: '$ac_useropt'"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=\$ac_optarg ;;
1259
1260 -without-* | --without-*)
1261 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 as_fn_error $? "invalid package name: '$ac_useropt'"
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1268 *"
1269 "with_$ac_useropt"
1270 "*) ;;
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1273 esac
1274 eval with_$ac_useropt=no ;;
1275
1276 --x)
1277 # Obsolete; use --with-x.
1278 with_x=yes ;;
1279
1280 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1281 | --x-incl | --x-inc | --x-in | --x-i)
1282 ac_prev=x_includes ;;
1283 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1284 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1285 x_includes=$ac_optarg ;;
1286
1287 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1288 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1289 ac_prev=x_libraries ;;
1290 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1291 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1292 x_libraries=$ac_optarg ;;
1293
1294 -*) as_fn_error $? "unrecognized option: '$ac_option'
1295 Try '$0 --help' for more information"
1296 ;;
1297
1298 *=*)
1299 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1300 # Reject names that are not valid shell variable names.
1301 case $ac_envvar in #(
1302 '' | [0-9]* | *[!_$as_cr_alnum]* )
1303 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1304 esac
1305 eval $ac_envvar=\$ac_optarg
1306 export $ac_envvar ;;
1307
1308 *)
1309 # FIXME: should be removed in autoconf 3.0.
1310 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1312 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1313 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1314 ;;
1315
1316 esac
1317 done
1318
1319 if test -n "$ac_prev"; then
1320 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1321 as_fn_error $? "missing argument to $ac_option"
1322 fi
1323
1324 if test -n "$ac_unrecognized_opts"; then
1325 case $enable_option_checking in
1326 no) ;;
1327 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1328 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 esac
1330 fi
1331
1332 # Check all directory arguments for consistency.
1333 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir runstatedir
1337 do
1338 eval ac_val=\$$ac_var
1339 # Remove trailing slashes.
1340 case $ac_val in
1341 */ )
1342 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343 eval $ac_var=\$ac_val;;
1344 esac
1345 # Be sure to have absolute directory names.
1346 case $ac_val in
1347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349 esac
1350 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1351 done
1352
1353 # There might be people who depend on the old broken behavior: '$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1356 build=$build_alias
1357 host=$host_alias
1358 target=$target_alias
1359
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x; then
1362 if test "x$build_alias" = x; then
1363 cross_compiling=maybe
1364 elif test "x$build_alias" != "x$host_alias"; then
1365 cross_compiling=yes
1366 fi
1367 fi
1368
1369 ac_tool_prefix=
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372 test "$silent" = yes && exec 6>/dev/null
1373
1374
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 as_fn_error $? "working directory cannot be determined"
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 as_fn_error $? "pwd does not report name of working directory"
1381
1382
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$as_myself" ||
1388 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$as_myself" : 'X\(//\)[^/]' \| \
1390 X"$as_myself" : 'X\(//\)$' \| \
1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1392 printf "%s\n" X"$as_myself" |
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)[^/].*/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\).*/{
1406 s//\1/
1407 q
1408 }
1409 s/.*/./; q'`
1410 srcdir=$ac_confdir
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 srcdir=..
1413 fi
1414 else
1415 ac_srcdir_defaulted=no
1416 fi
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1420 fi
1421 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1422 ac_abs_confdir=`(
1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1424 pwd)`
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 srcdir=.
1428 fi
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1432 case $srcdir in
1433 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 esac
1435 for ac_var in $ac_precious_vars; do
1436 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_env_${ac_var}_value=\$${ac_var}
1438 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1440 done
1441
1442 #
1443 # Report the --help message.
1444 #
1445 if test "$ac_init_help" = "long"; then
1446 # Omit some internal or obsolete options to make the list less imposing.
1447 # This message is too long to be a string in the A/UX 3.1 sh.
1448 cat <<_ACEOF
1449 'configure' configures NetworkManager-l2tp 1.52.4 to adapt to many kinds of systems.
1450
1451 Usage: $0 [OPTION]... [VAR=VALUE]...
1452
1453 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454 VAR=VALUE. See below for descriptions of some of the useful variables.
1455
1456 Defaults for the options are specified in brackets.
1457
1458 Configuration:
1459 -h, --help display this help and exit
1460 --help=short display options specific to this package
1461 --help=recursive display the short help of all the included packages
1462 -V, --version display version information and exit
1463 -q, --quiet, --silent do not print 'checking ...' messages
1464 --cache-file=FILE cache test results in FILE [disabled]
1465 -C, --config-cache alias for '--cache-file=config.cache'
1466 -n, --no-create do not create output files
1467 --srcdir=DIR find the sources in DIR [configure dir or '..']
1468
1469 Installation directories:
1470 --prefix=PREFIX install architecture-independent files in PREFIX
1471 [$ac_default_prefix]
1472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473 [PREFIX]
1474
1475 By default, 'make install' will install all the files in
1476 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1477 an installation prefix other than '$ac_default_prefix' using '--prefix',
1478 for instance '--prefix=\$HOME'.
1479
1480 For better control, use the options below.
1481
1482 Fine tuning of the installation directories:
1483 --bindir=DIR user executables [EPREFIX/bin]
1484 --sbindir=DIR system admin executables [EPREFIX/sbin]
1485 --libexecdir=DIR program executables [EPREFIX/libexec]
1486 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1489 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root
1499 [DATAROOTDIR/doc/NetworkManager-l2tp]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1504 _ACEOF
1505
1506 cat <<\_ACEOF
1507
1508 Program names:
1509 --program-prefix=PREFIX prepend PREFIX to installed program names
1510 --program-suffix=SUFFIX append SUFFIX to installed program names
1511 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1512
1513 System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 _ACEOF
1517 fi
1518
1519 if test -n "$ac_init_help"; then
1520 case $ac_init_help in
1521 short | recursive ) echo "Configuration of NetworkManager-l2tp 1.52.4:";;
1522 esac
1523 cat <<\_ACEOF
1524
1525 Optional Features:
1526 --disable-option-checking ignore unrecognized --enable/--with options
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1529 --enable-silent-rules less verbose build output (undo: "make V=1")
1530 --disable-silent-rules verbose build output (undo: "make V=0")
1531 --enable-maintainer-mode
1532 enable make rules and dependencies not useful (and
1533 sometimes confusing) to the casual installer
1534 --enable-dependency-tracking
1535 do not reject slow dependency extractors
1536 --disable-dependency-tracking
1537 speeds up one-time build
1538 --enable-static[=PKGS] build static libraries [default=no]
1539 --enable-shared[=PKGS] build shared libraries [default=yes]
1540 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1541 both]
1542 --enable-fast-install[=PKGS]
1543 optimize for fast installation [default=yes]
1544 --enable-aix-soname=aix|svr4|both
1545 shared library versioning (aka "SONAME") variant to
1546 provide on AIX, [default=aix].
1547 --disable-libtool-lock avoid locking (might break parallel builds)
1548 --enable-libreswan-dh2 Build NetworkManager-l2tp with DH2(modp1024) in
1549 default phase 1 algorithms for Libreswan (default is
1550 no)
1551 --enable-absolute-paths Use absolute paths to in .name files. Useful for
1552 development. (default is no)
1553 --disable-nls do not use Native Language Support
1554 --disable-rpath do not hardcode runtime library paths
1555 --enable-more-warnings Possible values: no/yes/error
1556 --enable-lto Enable Link Time Optimization for smaller size
1557 (default: no)
1558 --enable-ld-gc Enable garbage collection of unused symbols on
1559 linking (default: auto)
1560
1561 Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1566 compiler's sysroot if not specified).
1567 --with-pppd-plugin-dir=DIR
1568 path to the pppd plugins directory
1569 --with-nm-ipsec-secrets=path
1570 The main IPSec secrets file, defaults to
1571 /etc/ipsec.secrets
1572 --with-nm-ipsec-secrets-dir=path
1573 The directory where to put IPSec secrets, defaults
1574 to /etc/ipsec.d/
1575 --with-nm-ipsec-nss-dir=path
1576 The directory where Libreswan's NSS db is stored,
1577 defaults to /var/lib/ipsec/nss/
1578 --without-gnome Build NetworkManager-l2tp without GNOME support,
1579 e.g. vpn service only
1580 --with-gtk4 Build NetworkManager-l2tp with libnma-gtk4 support
1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1582 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1583 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1584 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1585 --without-libintl-prefix don't search for libintl in includedir and libdir
1586 --with-dist-version=<dist-version>
1587 Define the custom version (like distribution package
1588 name and revision)
1589
1590 Some influential environment variables:
1591 CC C compiler command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
1595 LIBS libraries to pass to the linker, e.g. -l<library>
1596 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1597 you have headers in a nonstandard directory <include dir>
1598 LT_SYS_LIBRARY_PATH
1599 User-defined run-time library search path.
1600 CPP C preprocessor
1601 PKG_CONFIG path to pkg-config utility
1602 PKG_CONFIG_PATH
1603 directories to add to pkg-config's search path
1604 PKG_CONFIG_LIBDIR
1605 path overriding pkg-config's built-in search path
1606 OPENSSL_CFLAGS
1607 C compiler flags for OPENSSL, overriding pkg-config
1608 OPENSSL_LIBS
1609 linker flags for OPENSSL, overriding pkg-config
1610 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
1611 NSS_LIBS linker flags for NSS, overriding pkg-config
1612 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1613 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1614 LIBSECRET_CFLAGS
1615 C compiler flags for LIBSECRET, overriding pkg-config
1616 LIBSECRET_LIBS
1617 linker flags for LIBSECRET, overriding pkg-config
1618 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1619 GTK_LIBS linker flags for GTK, overriding pkg-config
1620 LIBNMA_CFLAGS
1621 C compiler flags for LIBNMA, overriding pkg-config
1622 LIBNMA_LIBS linker flags for LIBNMA, overriding pkg-config
1623 GTK4_CFLAGS C compiler flags for GTK4, overriding pkg-config
1624 GTK4_LIBS linker flags for GTK4, overriding pkg-config
1625 LIBNMA_GTK4_CFLAGS
1626 C compiler flags for LIBNMA_GTK4, overriding pkg-config
1627 LIBNMA_GTK4_LIBS
1628 linker flags for LIBNMA_GTK4, overriding pkg-config
1629 LIBNM_CFLAGS
1630 C compiler flags for LIBNM, overriding pkg-config
1631 LIBNM_LIBS linker flags for LIBNM, overriding pkg-config
1632
1633 Use these variables to override the choices made by 'configure' or to help
1634 it to find libraries and programs with nonstandard names/locations.
1635
1636 Report bugs to <https://github.com/nm-l2tp/NetworkManager-l2tp/issues>.
1637 _ACEOF
1638 ac_status=$?
1639 fi
1640
1641 if test "$ac_init_help" = "recursive"; then
1642 # If there are subdirs, report their specific --help.
1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644 test -d "$ac_dir" ||
1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646 continue
1647 ac_builddir=.
1648
1649 case "$ac_dir" in
1650 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *)
1652 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1653 # A ".." for each directory in $ac_dir_suffix.
1654 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655 case $ac_top_builddir_sub in
1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658 esac ;;
1659 esac
1660 ac_abs_top_builddir=$ac_pwd
1661 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662 # for backward compatibility:
1663 ac_top_builddir=$ac_top_build_prefix
1664
1665 case $srcdir in
1666 .) # We are building in place.
1667 ac_srcdir=.
1668 ac_top_srcdir=$ac_top_builddir_sub
1669 ac_abs_top_srcdir=$ac_pwd ;;
1670 [\\/]* | ?:[\\/]* ) # Absolute name.
1671 ac_srcdir=$srcdir$ac_dir_suffix;
1672 ac_top_srcdir=$srcdir
1673 ac_abs_top_srcdir=$srcdir ;;
1674 *) # Relative name.
1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676 ac_top_srcdir=$ac_top_build_prefix$srcdir
1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678 esac
1679 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
1681 cd "$ac_dir" || { ac_status=$?; continue; }
1682 # Check for configure.gnu first; this name is used for a wrapper for
1683 # Metaconfig's "Configure" on case-insensitive file systems.
1684 if test -f "$ac_srcdir/configure.gnu"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687 elif test -f "$ac_srcdir/configure"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure" --help=recursive
1690 else
1691 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692 fi || ac_status=$?
1693 cd "$ac_pwd" || { ac_status=$?; break; }
1694 done
1695 fi
1696
1697 test -n "$ac_init_help" && exit $ac_status
1698 if $ac_init_version; then
1699 cat <<\_ACEOF
1700 NetworkManager-l2tp configure 1.52.4
1701 generated by GNU Autoconf 2.72
1702
1703 Copyright (C) 2023 Free Software Foundation, Inc.
1704 This configure script is free software; the Free Software Foundation
1705 gives unlimited permission to copy, distribute and modify it.
1706 _ACEOF
1707 exit
1708 fi
1709
1710 ## ------------------------ ##
1711 ## Autoconf initialization. ##
1712 ## ------------------------ ##
1713
1714 # ac_fn_c_try_compile LINENO
1715 # --------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_compile ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest.beam
1721 if { { ac_try="$ac_compile"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 printf "%s\n" "$ac_try_echo"; } >&5
1728 (eval "$ac_compile") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest.$ac_objext
1740 then :
1741 ac_retval=0
1742 else case e in #(
1743 e) printf "%s\n" "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1 ;;
1747 esac
1748 fi
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_compile
1753
1754 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists and can be compiled using the include files in
1757 # INCLUDES, setting the cache variable VAR accordingly.
1758 ac_fn_c_check_header_compile ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 printf %s "checking for $2... " >&6; }
1763 if eval test \${$3+y}
1764 then :
1765 printf %s "(cached) " >&6
1766 else case e in #(
1767 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 $4
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"
1773 then :
1774 eval "$3=yes"
1775 else case e in #(
1776 e) eval "$3=no" ;;
1777 esac
1778 fi
1779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1780 esac
1781 fi
1782 eval ac_res=\$$3
1783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 printf "%s\n" "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_header_compile
1788
1789 # ac_fn_c_try_link LINENO
1790 # -----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_link ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 printf "%s\n" "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
1816 test -x conftest$ac_exeext
1817 }
1818 then :
1819 ac_retval=0
1820 else case e in #(
1821 e) printf "%s\n" "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1 ;;
1825 esac
1826 fi
1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829 # interfere with the next link command; also delete a directory that is
1830 # left behind by Apple's compiler. We do this before executing the actions.
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_link
1836
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 printf %s "checking for $2... " >&6; }
1845 if eval test \${$3+y}
1846 then :
1847 printf %s "(cached) " >&6
1848 else case e in #(
1849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1853 #define $2 innocuous_$2
1854
1855 /* System header to define __stub macros and hopefully few prototypes,
1856 which can conflict with char $2 (void); below. */
1857
1858 #include <limits.h>
1859 #undef $2
1860
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1864 #ifdef __cplusplus
1865 extern "C"
1866 #endif
1867 char $2 (void);
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1872 choke me
1873 #endif
1874
1875 int
1876 main (void)
1877 {
1878 return $2 ();
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_link "$LINENO"
1884 then :
1885 eval "$3=yes"
1886 else case e in #(
1887 e) eval "$3=no" ;;
1888 esac
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1891 conftest$ac_exeext conftest.$ac_ext ;;
1892 esac
1893 fi
1894 eval ac_res=\$$3
1895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 printf "%s\n" "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_c_check_func
1900
1901 # ac_fn_c_try_cpp LINENO
1902 # ----------------------
1903 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_c_try_cpp ()
1905 {
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { { ac_try="$ac_cpp conftest.$ac_ext"
1908 case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 printf "%s\n" "$ac_try_echo"; } >&5
1914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1915 ac_status=$?
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1920 fi
1921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } > conftest.i && {
1923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1925 }
1926 then :
1927 ac_retval=0
1928 else case e in #(
1929 e) printf "%s\n" "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1931
1932 ac_retval=1 ;;
1933 esac
1934 fi
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1937
1938 } # ac_fn_c_try_cpp
1939
1940 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1941 # -------------------------------------------
1942 # Tests whether TYPE exists after having included INCLUDES, setting cache
1943 # variable VAR accordingly.
1944 ac_fn_c_check_type ()
1945 {
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 printf %s "checking for $2... " >&6; }
1949 if eval test \${$3+y}
1950 then :
1951 printf %s "(cached) " >&6
1952 else case e in #(
1953 e) eval "$3=no"
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 $4
1957 int
1958 main (void)
1959 {
1960 if (sizeof ($2))
1961 return 0;
1962 ;
1963 return 0;
1964 }
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"
1967 then :
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $4
1971 int
1972 main (void)
1973 {
1974 if (sizeof (($2)))
1975 return 0;
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"
1981 then :
1982
1983 else case e in #(
1984 e) eval "$3=yes" ;;
1985 esac
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1990 esac
1991 fi
1992 eval ac_res=\$$3
1993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 printf "%s\n" "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996
1997 } # ac_fn_c_check_type
1998
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2002 # executables *can* be run.
2003 ac_fn_c_try_run ()
2004 {
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_link"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 printf "%s\n" "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>&5
2014 ac_status=$?
2015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2017 { { case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 printf "%s\n" "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2024 ac_status=$?
2025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }
2027 then :
2028 ac_retval=0
2029 else case e in #(
2030 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2031 printf "%s\n" "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 ac_retval=$ac_status ;;
2035 esac
2036 fi
2037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 as_fn_set_status $ac_retval
2040
2041 } # ac_fn_c_try_run
2042 ac_configure_args_raw=
2043 for ac_arg
2044 do
2045 case $ac_arg in
2046 *\'*)
2047 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2048 esac
2049 as_fn_append ac_configure_args_raw " '$ac_arg'"
2050 done
2051
2052 case $ac_configure_args_raw in
2053 *$as_nl*)
2054 ac_safe_unquote= ;;
2055 *)
2056 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2057 ac_unsafe_a="$ac_unsafe_z#~"
2058 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2059 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2060 esac
2061
2062 cat >config.log <<_ACEOF
2063 This file contains any messages produced by compilers while
2064 running configure, to aid debugging if configure makes a mistake.
2065
2066 It was created by NetworkManager-l2tp $as_me 1.52.4, which was
2067 generated by GNU Autoconf 2.72. Invocation command line was
2068
2069 $ $0$ac_configure_args_raw
2070
2071 _ACEOF
2072 exec 5>>config.log
2073 {
2074 cat <<_ASUNAME
2075 ## --------- ##
2076 ## Platform. ##
2077 ## --------- ##
2078
2079 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2080 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2081 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2082 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2083 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2084
2085 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2086 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2087
2088 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2089 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2090 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2091 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2092 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2093 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2094 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2095
2096 _ASUNAME
2097
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101 IFS=$as_save_IFS
2102 case $as_dir in #(((
2103 '') as_dir=./ ;;
2104 */) ;;
2105 *) as_dir=$as_dir/ ;;
2106 esac
2107 printf "%s\n" "PATH: $as_dir"
2108 done
2109 IFS=$as_save_IFS
2110
2111 } >&5
2112
2113 cat >&5 <<_ACEOF
2114
2115
2116 ## ----------- ##
2117 ## Core tests. ##
2118 ## ----------- ##
2119
2120 _ACEOF
2121
2122
2123 # Keep a trace of the command line.
2124 # Strip out --no-create and --no-recursion so they do not pile up.
2125 # Strip out --silent because we don't want to record it for future runs.
2126 # Also quote any args containing shell meta-characters.
2127 # Make two passes to allow for proper duplicate-argument suppression.
2128 ac_configure_args=
2129 ac_configure_args0=
2130 ac_configure_args1=
2131 ac_must_keep_next=false
2132 for ac_pass in 1 2
2133 do
2134 for ac_arg
2135 do
2136 case $ac_arg in
2137 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2139 | -silent | --silent | --silen | --sile | --sil)
2140 continue ;;
2141 *\'*)
2142 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2143 esac
2144 case $ac_pass in
2145 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2146 2)
2147 as_fn_append ac_configure_args1 " '$ac_arg'"
2148 if test $ac_must_keep_next = true; then
2149 ac_must_keep_next=false # Got value, back to normal.
2150 else
2151 case $ac_arg in
2152 *=* | --config-cache | -C | -disable-* | --disable-* \
2153 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2154 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2155 | -with-* | --with-* | -without-* | --without-* | --x)
2156 case "$ac_configure_args0 " in
2157 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2158 esac
2159 ;;
2160 -* ) ac_must_keep_next=true ;;
2161 esac
2162 fi
2163 as_fn_append ac_configure_args " '$ac_arg'"
2164 ;;
2165 esac
2166 done
2167 done
2168 { ac_configure_args0=; unset ac_configure_args0;}
2169 { ac_configure_args1=; unset ac_configure_args1;}
2170
2171 # When interrupted or exit'd, cleanup temporary files, and complete
2172 # config.log. We remove comments because anyway the quotes in there
2173 # would cause problems or look ugly.
2174 # WARNING: Use '\'' to represent an apostrophe within the trap.
2175 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2176 trap 'exit_status=$?
2177 # Sanitize IFS.
2178 IFS=" "" $as_nl"
2179 # Save into config.log some information that might help in debugging.
2180 {
2181 echo
2182
2183 printf "%s\n" "## ---------------- ##
2184 ## Cache variables. ##
2185 ## ---------------- ##"
2186 echo
2187 # The following way of writing the cache mishandles newlines in values,
2188 (
2189 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2190 eval ac_val=\$$ac_var
2191 case $ac_val in #(
2192 *${as_nl}*)
2193 case $ac_var in #(
2194 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2195 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2196 esac
2197 case $ac_var in #(
2198 _ | IFS | as_nl) ;; #(
2199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2200 *) { eval $ac_var=; unset $ac_var;} ;;
2201 esac ;;
2202 esac
2203 done
2204 (set) 2>&1 |
2205 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2206 *${as_nl}ac_space=\ *)
2207 sed -n \
2208 "s/'\''/'\''\\\\'\'''\''/g;
2209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2210 ;; #(
2211 *)
2212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2213 ;;
2214 esac |
2215 sort
2216 )
2217 echo
2218
2219 printf "%s\n" "## ----------------- ##
2220 ## Output variables. ##
2221 ## ----------------- ##"
2222 echo
2223 for ac_var in $ac_subst_vars
2224 do
2225 eval ac_val=\$$ac_var
2226 case $ac_val in
2227 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228 esac
2229 printf "%s\n" "$ac_var='\''$ac_val'\''"
2230 done | sort
2231 echo
2232
2233 if test -n "$ac_subst_files"; then
2234 printf "%s\n" "## ------------------- ##
2235 ## File substitutions. ##
2236 ## ------------------- ##"
2237 echo
2238 for ac_var in $ac_subst_files
2239 do
2240 eval ac_val=\$$ac_var
2241 case $ac_val in
2242 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2243 esac
2244 printf "%s\n" "$ac_var='\''$ac_val'\''"
2245 done | sort
2246 echo
2247 fi
2248
2249 if test -s confdefs.h; then
2250 printf "%s\n" "## ----------- ##
2251 ## confdefs.h. ##
2252 ## ----------- ##"
2253 echo
2254 cat confdefs.h
2255 echo
2256 fi
2257 test "$ac_signal" != 0 &&
2258 printf "%s\n" "$as_me: caught signal $ac_signal"
2259 printf "%s\n" "$as_me: exit $exit_status"
2260 } >&5
2261 rm -f core *.core core.conftest.* &&
2262 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2263 exit $exit_status
2264 ' 0
2265 for ac_signal in 1 2 13 15; do
2266 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2267 done
2268 ac_signal=0
2269
2270 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2271 rm -f -r conftest* confdefs.h
2272
2273 printf "%s\n" "/* confdefs.h */" > confdefs.h
2274
2275 # Predefined preprocessor variables.
2276
2277 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2278
2279 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2280
2281 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2282
2283 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2284
2285 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2286
2287 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2288
2289
2290 # Let the site file select an alternate cache file if it wants to.
2291 # Prefer an explicitly selected file to automatically selected ones.
2292 if test -n "$CONFIG_SITE"; then
2293 ac_site_files="$CONFIG_SITE"
2294 elif test "x$prefix" != xNONE; then
2295 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2296 else
2297 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2298 fi
2299
2300 for ac_site_file in $ac_site_files
2301 do
2302 case $ac_site_file in #(
2303 */*) :
2304 ;; #(
2305 *) :
2306 ac_site_file=./$ac_site_file ;;
2307 esac
2308 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2310 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2311 sed 's/^/| /' "$ac_site_file" >&5
2312 . "$ac_site_file" \
2313 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2314 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2315 as_fn_error $? "failed to load site script $ac_site_file
2316 See 'config.log' for more details" "$LINENO" 5; }
2317 fi
2318 done
2319
2320 if test -r "$cache_file"; then
2321 # Some versions of bash will fail to source /dev/null (special files
2322 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2323 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2325 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2326 case $cache_file in
2327 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2328 *) . "./$cache_file";;
2329 esac
2330 fi
2331 else
2332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2333 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2334 >$cache_file
2335 fi
2336
2337 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2338 # Test code for whether the C compiler supports C89 (global declarations)
2339 ac_c_conftest_c89_globals='
2340 /* Does the compiler advertise C89 conformance?
2341 Do not test the value of __STDC__, because some compilers set it to 0
2342 while being otherwise adequately conformant. */
2343 #if !defined __STDC__
2344 # error "Compiler does not advertise C89 conformance"
2345 #endif
2346
2347 #include <stddef.h>
2348 #include <stdarg.h>
2349 struct stat;
2350 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2351 struct buf { int x; };
2352 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2353 static char *e (char **p, int i)
2354 {
2355 return p[i];
2356 }
2357 static char *f (char * (*g) (char **, int), char **p, ...)
2358 {
2359 char *s;
2360 va_list v;
2361 va_start (v,p);
2362 s = g (p, va_arg (v,int));
2363 va_end (v);
2364 return s;
2365 }
2366
2367 /* C89 style stringification. */
2368 #define noexpand_stringify(a) #a
2369 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2370
2371 /* C89 style token pasting. Exercises some of the corner cases that
2372 e.g. old MSVC gets wrong, but not very hard. */
2373 #define noexpand_concat(a,b) a##b
2374 #define expand_concat(a,b) noexpand_concat(a,b)
2375 extern int vA;
2376 extern int vbee;
2377 #define aye A
2378 #define bee B
2379 int *pvA = &expand_concat(v,aye);
2380 int *pvbee = &noexpand_concat(v,bee);
2381
2382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2383 function prototypes and stuff, but not \xHH hex character constants.
2384 These do not provoke an error unfortunately, instead are silently treated
2385 as an "x". The following induces an error, until -std is added to get
2386 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2387 array size at least. It is necessary to write \x00 == 0 to get something
2388 that is true only with -std. */
2389 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2390
2391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2392 inside strings and character constants. */
2393 #define FOO(x) '\''x'\''
2394 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2395
2396 int test (int i, double x);
2397 struct s1 {int (*f) (int a);};
2398 struct s2 {int (*f) (double a);};
2399 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2400 int, int);'
2401
2402 # Test code for whether the C compiler supports C89 (body of main).
2403 ac_c_conftest_c89_main='
2404 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2405 '
2406
2407 # Test code for whether the C compiler supports C99 (global declarations)
2408 ac_c_conftest_c99_globals='
2409 /* Does the compiler advertise C99 conformance? */
2410 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2411 # error "Compiler does not advertise C99 conformance"
2412 #endif
2413
2414 // See if C++-style comments work.
2415
2416 #include <stdbool.h>
2417 extern int puts (const char *);
2418 extern int printf (const char *, ...);
2419 extern int dprintf (int, const char *, ...);
2420 extern void *malloc (size_t);
2421 extern void free (void *);
2422
2423 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2424 // dprintf is used instead of fprintf to avoid needing to declare
2425 // FILE and stderr.
2426 #define debug(...) dprintf (2, __VA_ARGS__)
2427 #define showlist(...) puts (#__VA_ARGS__)
2428 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2429 static void
2430 test_varargs_macros (void)
2431 {
2432 int x = 1234;
2433 int y = 5678;
2434 debug ("Flag");
2435 debug ("X = %d\n", x);
2436 showlist (The first, second, and third items.);
2437 report (x>y, "x is %d but y is %d", x, y);
2438 }
2439
2440 // Check long long types.
2441 #define BIG64 18446744073709551615ull
2442 #define BIG32 4294967295ul
2443 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2444 #if !BIG_OK
2445 #error "your preprocessor is broken"
2446 #endif
2447 #if BIG_OK
2448 #else
2449 #error "your preprocessor is broken"
2450 #endif
2451 static long long int bignum = -9223372036854775807LL;
2452 static unsigned long long int ubignum = BIG64;
2453
2454 struct incomplete_array
2455 {
2456 int datasize;
2457 double data[];
2458 };
2459
2460 struct named_init {
2461 int number;
2462 const wchar_t *name;
2463 double average;
2464 };
2465
2466 typedef const char *ccp;
2467
2468 static inline int
2469 test_restrict (ccp restrict text)
2470 {
2471 // Iterate through items via the restricted pointer.
2472 // Also check for declarations in for loops.
2473 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2474 continue;
2475 return 0;
2476 }
2477
2478 // Check varargs and va_copy.
2479 static bool
2480 test_varargs (const char *format, ...)
2481 {
2482 va_list args;
2483 va_start (args, format);
2484 va_list args_copy;
2485 va_copy (args_copy, args);
2486
2487 const char *str = "";
2488 int number = 0;
2489 float fnumber = 0;
2490
2491 while (*format)
2492 {
2493 switch (*format++)
2494 {
2495 case '\''s'\'': // string
2496 str = va_arg (args_copy, const char *);
2497 break;
2498 case '\''d'\'': // int
2499 number = va_arg (args_copy, int);
2500 break;
2501 case '\''f'\'': // float
2502 fnumber = va_arg (args_copy, double);
2503 break;
2504 default:
2505 break;
2506 }
2507 }
2508 va_end (args_copy);
2509 va_end (args);
2510
2511 return *str && number && fnumber;
2512 }
2513 '
2514
2515 # Test code for whether the C compiler supports C99 (body of main).
2516 ac_c_conftest_c99_main='
2517 // Check bool.
2518 _Bool success = false;
2519 success |= (argc != 0);
2520
2521 // Check restrict.
2522 if (test_restrict ("String literal") == 0)
2523 success = true;
2524 char *restrict newvar = "Another string";
2525
2526 // Check varargs.
2527 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2528 test_varargs_macros ();
2529
2530 // Check flexible array members.
2531 struct incomplete_array *ia =
2532 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2533 ia->datasize = 10;
2534 for (int i = 0; i < ia->datasize; ++i)
2535 ia->data[i] = i * 1.234;
2536 // Work around memory leak warnings.
2537 free (ia);
2538
2539 // Check named initializers.
2540 struct named_init ni = {
2541 .number = 34,
2542 .name = L"Test wide string",
2543 .average = 543.34343,
2544 };
2545
2546 ni.number = 58;
2547
2548 int dynamic_array[ni.number];
2549 dynamic_array[0] = argv[0][0];
2550 dynamic_array[ni.number - 1] = 543;
2551
2552 // work around unused variable warnings
2553 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2554 || dynamic_array[ni.number - 1] != 543);
2555 '
2556
2557 # Test code for whether the C compiler supports C11 (global declarations)
2558 ac_c_conftest_c11_globals='
2559 /* Does the compiler advertise C11 conformance? */
2560 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2561 # error "Compiler does not advertise C11 conformance"
2562 #endif
2563
2564 // Check _Alignas.
2565 char _Alignas (double) aligned_as_double;
2566 char _Alignas (0) no_special_alignment;
2567 extern char aligned_as_int;
2568 char _Alignas (0) _Alignas (int) aligned_as_int;
2569
2570 // Check _Alignof.
2571 enum
2572 {
2573 int_alignment = _Alignof (int),
2574 int_array_alignment = _Alignof (int[100]),
2575 char_alignment = _Alignof (char)
2576 };
2577 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2578
2579 // Check _Noreturn.
2580 int _Noreturn does_not_return (void) { for (;;) continue; }
2581
2582 // Check _Static_assert.
2583 struct test_static_assert
2584 {
2585 int x;
2586 _Static_assert (sizeof (int) <= sizeof (long int),
2587 "_Static_assert does not work in struct");
2588 long int y;
2589 };
2590
2591 // Check UTF-8 literals.
2592 #define u8 syntax error!
2593 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2594
2595 // Check duplicate typedefs.
2596 typedef long *long_ptr;
2597 typedef long int *long_ptr;
2598 typedef long_ptr long_ptr;
2599
2600 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2601 struct anonymous
2602 {
2603 union {
2604 struct { int i; int j; };
2605 struct { int k; long int l; } w;
2606 };
2607 int m;
2608 } v1;
2609 '
2610
2611 # Test code for whether the C compiler supports C11 (body of main).
2612 ac_c_conftest_c11_main='
2613 _Static_assert ((offsetof (struct anonymous, i)
2614 == offsetof (struct anonymous, w.k)),
2615 "Anonymous union alignment botch");
2616 v1.i = 2;
2617 v1.w.k = 5;
2618 ok |= v1.i != 5;
2619 '
2620
2621 # Test code for whether the C compiler supports C11 (complete).
2622 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2623 ${ac_c_conftest_c99_globals}
2624 ${ac_c_conftest_c11_globals}
2625
2626 int
2627 main (int argc, char **argv)
2628 {
2629 int ok = 0;
2630 ${ac_c_conftest_c89_main}
2631 ${ac_c_conftest_c99_main}
2632 ${ac_c_conftest_c11_main}
2633 return ok;
2634 }
2635 "
2636
2637 # Test code for whether the C compiler supports C99 (complete).
2638 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2639 ${ac_c_conftest_c99_globals}
2640
2641 int
2642 main (int argc, char **argv)
2643 {
2644 int ok = 0;
2645 ${ac_c_conftest_c89_main}
2646 ${ac_c_conftest_c99_main}
2647 return ok;
2648 }
2649 "
2650
2651 # Test code for whether the C compiler supports C89 (complete).
2652 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2653
2654 int
2655 main (int argc, char **argv)
2656 {
2657 int ok = 0;
2658 ${ac_c_conftest_c89_main}
2659 return ok;
2660 }
2661 "
2662
2663 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2664 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2665 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2666 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2667 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2668 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2669 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2670 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2671 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2672 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2673 gt_needs="$gt_needs "
2674
2675 # Auxiliary files required by this configure script.
2676 ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile missing install-sh"
2677
2678 # Locations in which to look for auxiliary files.
2679 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2680
2681 # Search for a directory containing all of the required auxiliary files,
2682 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2683 # If we don't find one directory that contains all the files we need,
2684 # we report the set of missing files from the *first* directory in
2685 # $ac_aux_dir_candidates and give up.
2686 ac_missing_aux_files=""
2687 ac_first_candidate=:
2688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 as_found=false
2691 for as_dir in $ac_aux_dir_candidates
2692 do
2693 IFS=$as_save_IFS
2694 case $as_dir in #(((
2695 '') as_dir=./ ;;
2696 */) ;;
2697 *) as_dir=$as_dir/ ;;
2698 esac
2699 as_found=:
2700
2701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2702 ac_aux_dir_found=yes
2703 ac_install_sh=
2704 for ac_aux in $ac_aux_files
2705 do
2706 # As a special case, if "install-sh" is required, that requirement
2707 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2708 # and $ac_install_sh is set appropriately for whichever one is found.
2709 if test x"$ac_aux" = x"install-sh"
2710 then
2711 if test -f "${as_dir}install-sh"; then
2712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2713 ac_install_sh="${as_dir}install-sh -c"
2714 elif test -f "${as_dir}install.sh"; then
2715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2716 ac_install_sh="${as_dir}install.sh -c"
2717 elif test -f "${as_dir}shtool"; then
2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2719 ac_install_sh="${as_dir}shtool install -c"
2720 else
2721 ac_aux_dir_found=no
2722 if $ac_first_candidate; then
2723 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2724 else
2725 break
2726 fi
2727 fi
2728 else
2729 if test -f "${as_dir}${ac_aux}"; then
2730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2731 else
2732 ac_aux_dir_found=no
2733 if $ac_first_candidate; then
2734 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2735 else
2736 break
2737 fi
2738 fi
2739 fi
2740 done
2741 if test "$ac_aux_dir_found" = yes; then
2742 ac_aux_dir="$as_dir"
2743 break
2744 fi
2745 ac_first_candidate=false
2746
2747 as_found=false
2748 done
2749 IFS=$as_save_IFS
2750 if $as_found
2751 then :
2752
2753 else case e in #(
2754 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2755 esac
2756 fi
2757
2758
2759 # These three variables are undocumented and unsupported,
2760 # and are intended to be withdrawn in a future Autoconf release.
2761 # They can cause serious problems if a builder's source tree is in a directory
2762 # whose full name contains unusual characters.
2763 if test -f "${ac_aux_dir}config.guess"; then
2764 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2765 fi
2766 if test -f "${ac_aux_dir}config.sub"; then
2767 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2768 fi
2769 if test -f "$ac_aux_dir/configure"; then
2770 ac_configure="$SHELL ${ac_aux_dir}configure"
2771 fi
2772
2773 # Check that the precious variables saved in the cache have kept the same
2774 # value.
2775 ac_cache_corrupted=false
2776 for ac_var in $ac_precious_vars; do
2777 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2778 eval ac_new_set=\$ac_env_${ac_var}_set
2779 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2780 eval ac_new_val=\$ac_env_${ac_var}_value
2781 case $ac_old_set,$ac_new_set in
2782 set,)
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2784 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2785 ac_cache_corrupted=: ;;
2786 ,set)
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2788 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2789 ac_cache_corrupted=: ;;
2790 ,);;
2791 *)
2792 if test "x$ac_old_val" != "x$ac_new_val"; then
2793 # differences in whitespace do not lead to failure.
2794 ac_old_val_w=`echo x $ac_old_val`
2795 ac_new_val_w=`echo x $ac_new_val`
2796 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2798 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2799 ac_cache_corrupted=:
2800 else
2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2802 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2803 eval $ac_var=\$ac_old_val
2804 fi
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2806 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2808 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2809 fi;;
2810 esac
2811 # Pass precious variables to config.status.
2812 if test "$ac_new_set" = set; then
2813 case $ac_new_val in
2814 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2815 *) ac_arg=$ac_var=$ac_new_val ;;
2816 esac
2817 case " $ac_configure_args " in
2818 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2819 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2820 esac
2821 fi
2822 done
2823 if $ac_cache_corrupted; then
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2825 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2827 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2828 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2829 and start over" "$LINENO" 5
2830 fi
2831 ## -------------------- ##
2832 ## Main body of script. ##
2833 ## -------------------- ##
2834
2835 ac_ext=c
2836 ac_cpp='$CPP $CPPFLAGS'
2837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840
2841
2842 am__api_version='1.18'
2843
2844
2845
2846 # Find a good install program. We prefer a C program (faster),
2847 # so one script is as good as another. But avoid the broken or
2848 # incompatible versions:
2849 # SysV /etc/install, /usr/sbin/install
2850 # SunOS /usr/etc/install
2851 # IRIX /sbin/install
2852 # AIX /bin/install
2853 # AmigaOS /C/install, which installs bootblocks on floppy discs
2854 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2857 # OS/2's system install, which has a completely different semantic
2858 # ./install, which can be erroneously created by make from ./install.sh.
2859 # Reject install programs that cannot install multiple files.
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2861 printf %s "checking for a BSD-compatible install... " >&6; }
2862 if test -z "$INSTALL"; then
2863 if test ${ac_cv_path_install+y}
2864 then :
2865 printf %s "(cached) " >&6
2866 else case e in #(
2867 e) 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 # Account for fact that we put trailing slashes in our PATH walk.
2877 case $as_dir in #((
2878 ./ | /[cC]/* | \
2879 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2880 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2881 /usr/ucb/* ) ;;
2882 *)
2883 # OSF1 and SCO ODT 3.0 have their own names for install.
2884 # Don't use installbsd from OSF since it installs stuff as root
2885 # by default.
2886 for ac_prog in ginstall scoinst install; do
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2889 if test $ac_prog = install &&
2890 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2891 # AIX install. It has an incompatible calling convention.
2892 :
2893 elif test $ac_prog = install &&
2894 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895 # program-specific install script used by HP pwplus--don't use.
2896 :
2897 else
2898 rm -rf conftest.one conftest.two conftest.dir
2899 echo one > conftest.one
2900 echo two > conftest.two
2901 mkdir conftest.dir
2902 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2903 test -s conftest.one && test -s conftest.two &&
2904 test -s conftest.dir/conftest.one &&
2905 test -s conftest.dir/conftest.two
2906 then
2907 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2908 break 3
2909 fi
2910 fi
2911 fi
2912 done
2913 done
2914 ;;
2915 esac
2916
2917 done
2918 IFS=$as_save_IFS
2919
2920 rm -rf conftest.one conftest.two conftest.dir
2921 ;;
2922 esac
2923 fi
2924 if test ${ac_cv_path_install+y}; then
2925 INSTALL=$ac_cv_path_install
2926 else
2927 # As a last resort, use the slow shell script. Don't cache a
2928 # value for INSTALL within a source directory, because that will
2929 # break other packages using the cache if that directory is
2930 # removed, or if the value is a relative name.
2931 INSTALL=$ac_install_sh
2932 fi
2933 fi
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2935 printf "%s\n" "$INSTALL" >&6; }
2936
2937 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2938 # It thinks the first close brace ends the variable substitution.
2939 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2940
2941 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2942
2943 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2944
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2946 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2947 if test ${am_cv_sleep_fractional_seconds+y}
2948 then :
2949 printf %s "(cached) " >&6
2950 else case e in #(
2951 e) if sleep 0.001 2>/dev/null
2952 then :
2953 am_cv_sleep_fractional_seconds=yes
2954 else case e in #(
2955 e) am_cv_sleep_fractional_seconds=no ;;
2956 esac
2957 fi
2958 ;;
2959 esac
2960 fi
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2962 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2963
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2965 printf %s "checking filesystem timestamp resolution... " >&6; }
2966 if test ${am_cv_filesystem_timestamp_resolution+y}
2967 then :
2968 printf %s "(cached) " >&6
2969 else case e in #(
2970 e) # Default to the worst case.
2971 am_cv_filesystem_timestamp_resolution=2
2972
2973 # Only try to go finer than 1 sec if sleep can do it.
2974 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2975 # - 1 sec is not much of a win compared to 2 sec, and
2976 # - it takes 2 seconds to perform the test whether 1 sec works.
2977 #
2978 # Instead, just use the default 2s on platforms that have 1s resolution,
2979 # accept the extra 1s delay when using $sleep in the Automake tests, in
2980 # exchange for not incurring the 2s delay for running the test for all
2981 # packages.
2982 #
2983 am_try_resolutions=
2984 if test "$am_cv_sleep_fractional_seconds" = yes; then
2985 # Even a millisecond often causes a bunch of false positives,
2986 # so just try a hundredth of a second. The time saved between .001 and
2987 # .01 is not terribly consequential.
2988 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2989 fi
2990
2991 # In order to catch current-generation FAT out, we must *modify* files
2992 # that already exist; the *creation* timestamp is finer. Use names
2993 # that make ls -t sort them differently when they have equal
2994 # timestamps than when they have distinct timestamps, keeping
2995 # in mind that ls -t prints the *newest* file first.
2996 rm -f conftest.ts?
2997 : > conftest.ts1
2998 : > conftest.ts2
2999 : > conftest.ts3
3000
3001 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3002 # clobber the current shell's arguments. (Outer-level square brackets
3003 # are removed by m4; they're present so that m4 does not expand
3004 # <dollar><star>; be careful, easy to get confused.)
3005 if (
3006 set X `ls -t conftest.ts[12]` &&
3007 {
3008 test "$*" != "X conftest.ts1 conftest.ts2" ||
3009 test "$*" != "X conftest.ts2 conftest.ts1";
3010 }
3011 ); then :; else
3012 # If neither matched, then we have a broken ls. This can happen
3013 # if, for instance, CONFIG_SHELL is bash and it inherits a
3014 # broken ls alias from the environment. This has actually
3015 # happened. Such a system could not be considered "sane".
3016 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3018 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3019 as_fn_error $? "ls -t produces unexpected output.
3020 Make sure there is not a broken ls alias in your environment.
3021 See 'config.log' for more details" "$LINENO" 5; }
3022 fi
3023
3024 for am_try_res in $am_try_resolutions; do
3025 # Any one fine-grained sleep might happen to cross the boundary
3026 # between two values of a coarser actual resolution, but if we do
3027 # two fine-grained sleeps in a row, at least one of them will fall
3028 # entirely within a coarse interval.
3029 echo alpha > conftest.ts1
3030 sleep $am_try_res
3031 echo beta > conftest.ts2
3032 sleep $am_try_res
3033 echo gamma > conftest.ts3
3034
3035 # We assume that 'ls -t' will make use of high-resolution
3036 # timestamps if the operating system supports them at all.
3037 if (set X `ls -t conftest.ts?` &&
3038 test "$2" = conftest.ts3 &&
3039 test "$3" = conftest.ts2 &&
3040 test "$4" = conftest.ts1); then
3041 #
3042 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3043 # because we don't need to test make.
3044 make_ok=true
3045 if test $am_try_res != 1; then
3046 # But if we've succeeded so far with a subsecond resolution, we
3047 # have one more thing to check: make. It can happen that
3048 # everything else supports the subsecond mtimes, but make doesn't;
3049 # notably on macOS, which ships make 3.81 from 2006 (the last one
3050 # released under GPLv2). https://bugs.gnu.org/68808
3051 #
3052 # We test $MAKE if it is defined in the environment, else "make".
3053 # It might get overridden later, but our hope is that in practice
3054 # it does not matter: it is the system "make" which is (by far)
3055 # the most likely to be broken, whereas if the user overrides it,
3056 # probably they did so with a better, or at least not worse, make.
3057 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3058 #
3059 # Create a Makefile (real tab character here):
3060 rm -f conftest.mk
3061 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3062 echo ' touch conftest.ts2' >>conftest.mk
3063 #
3064 # Now, running
3065 # touch conftest.ts1; touch conftest.ts2; make
3066 # should touch ts1 because ts2 is newer. This could happen by luck,
3067 # but most often, it will fail if make's support is insufficient. So
3068 # test for several consecutive successes.
3069 #
3070 # (We reuse conftest.ts[12] because we still want to modify existing
3071 # files, not create new ones, per above.)
3072 n=0
3073 make=${MAKE-make}
3074 until test $n -eq 3; do
3075 echo one > conftest.ts1
3076 sleep $am_try_res
3077 echo two > conftest.ts2 # ts2 should now be newer than ts1
3078 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3079 make_ok=false
3080 break # out of $n loop
3081 fi
3082 n=`expr $n + 1`
3083 done
3084 fi
3085 #
3086 if $make_ok; then
3087 # Everything we know to check worked out, so call this resolution good.
3088 am_cv_filesystem_timestamp_resolution=$am_try_res
3089 break # out of $am_try_res loop
3090 fi
3091 # Otherwise, we'll go on to check the next resolution.
3092 fi
3093 done
3094 rm -f conftest.ts?
3095 # (end _am_filesystem_timestamp_resolution)
3096 ;;
3097 esac
3098 fi
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3100 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3101
3102 # This check should not be cached, as it may vary across builds of
3103 # different projects.
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3105 printf %s "checking whether build environment is sane... " >&6; }
3106 # Reject unsafe characters in $srcdir or the absolute working directory
3107 # name. Accept space and tab only in the latter.
3108 am_lf='
3109 '
3110 case `pwd` in
3111 *[\\\"\#\$\&\'\`$am_lf]*)
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 printf "%s\n" "no" >&6; }
3114 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3115 esac
3116 case $srcdir in
3117 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 printf "%s\n" "no" >&6; }
3120 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3121 esac
3122
3123 # Do 'set' in a subshell so we don't clobber the current shell's
3124 # arguments. Must try -L first in case configure is actually a
3125 # symlink; some systems play weird games with the mod time of symlinks
3126 # (eg FreeBSD returns the mod time of the symlink's containing
3127 # directory).
3128 am_build_env_is_sane=no
3129 am_has_slept=no
3130 rm -f conftest.file
3131 for am_try in 1 2; do
3132 echo "timestamp, slept: $am_has_slept" > conftest.file
3133 if (
3134 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3135 if test "$*" = "X"; then
3136 # -L didn't work.
3137 set X `ls -t "$srcdir/configure" conftest.file`
3138 fi
3139 test "$2" = conftest.file
3140 ); then
3141 am_build_env_is_sane=yes
3142 break
3143 fi
3144 # Just in case.
3145 sleep "$am_cv_filesystem_timestamp_resolution"
3146 am_has_slept=yes
3147 done
3148
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3150 printf "%s\n" "$am_build_env_is_sane" >&6; }
3151 if test "$am_build_env_is_sane" = no; then
3152 as_fn_error $? "newly created file is older than distributed files!
3153 Check your system clock" "$LINENO" 5
3154 fi
3155
3156 # If we didn't sleep, we still need to ensure time stamps of config.status and
3157 # generated files are strictly newer.
3158 am_sleep_pid=
3159 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3160 then :
3161
3162 else case e in #(
3163 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3164 am_sleep_pid=$!
3165 ;;
3166 esac
3167 fi
3168
3169 rm -f conftest.file
3170
3171 test "$program_prefix" != NONE &&
3172 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3173 # Use a double $ so make ignores it.
3174 test "$program_suffix" != NONE &&
3175 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3176 # Double any \ or $.
3177 # By default was 's,x,x', remove it if useless.
3178 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3179 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3180
3181
3182 # Expand $ac_aux_dir to an absolute path.
3183 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3184
3185
3186 if test x"${MISSING+set}" != xset; then
3187 MISSING="\${SHELL} '$am_aux_dir/missing'"
3188 fi
3189 # Use eval to expand $SHELL
3190 if eval "$MISSING --is-lightweight"; then
3191 am_missing_run="$MISSING "
3192 else
3193 am_missing_run=
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3195 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3196 fi
3197
3198 if test x"${install_sh+set}" != xset; then
3199 case $am_aux_dir in
3200 *\ * | *\ *)
3201 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3202 *)
3203 install_sh="\${SHELL} $am_aux_dir/install-sh"
3204 esac
3205 fi
3206
3207 # Installed binaries are usually stripped using 'strip' when the user
3208 # run "make install-strip". However 'strip' might not be the right
3209 # tool to use in cross-compilation environments, therefore Automake
3210 # will honor the 'STRIP' environment variable to overrule this program.
3211 if test "$cross_compiling" != no; then
3212 if test -n "$ac_tool_prefix"; then
3213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3214 set dummy ${ac_tool_prefix}strip; ac_word=$2
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 printf %s "checking for $ac_word... " >&6; }
3217 if test ${ac_cv_prog_STRIP+y}
3218 then :
3219 printf %s "(cached) " >&6
3220 else case e in #(
3221 e) if test -n "$STRIP"; then
3222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 case $as_dir in #(((
3229 '') as_dir=./ ;;
3230 */) ;;
3231 *) as_dir=$as_dir/ ;;
3232 esac
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 fi ;;
3244 esac
3245 fi
3246 STRIP=$ac_cv_prog_STRIP
3247 if test -n "$STRIP"; then
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3249 printf "%s\n" "$STRIP" >&6; }
3250 else
3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 printf "%s\n" "no" >&6; }
3253 fi
3254
3255
3256 fi
3257 if test -z "$ac_cv_prog_STRIP"; then
3258 ac_ct_STRIP=$STRIP
3259 # Extract the first word of "strip", so it can be a program name with args.
3260 set dummy strip; ac_word=$2
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 printf %s "checking for $ac_word... " >&6; }
3263 if test ${ac_cv_prog_ac_ct_STRIP+y}
3264 then :
3265 printf %s "(cached) " >&6
3266 else case e in #(
3267 e) if test -n "$ac_ct_STRIP"; then
3268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273 IFS=$as_save_IFS
3274 case $as_dir in #(((
3275 '') as_dir=./ ;;
3276 */) ;;
3277 *) as_dir=$as_dir/ ;;
3278 esac
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_ac_ct_STRIP="strip"
3282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi ;;
3290 esac
3291 fi
3292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3293 if test -n "$ac_ct_STRIP"; then
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3295 printf "%s\n" "$ac_ct_STRIP" >&6; }
3296 else
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 printf "%s\n" "no" >&6; }
3299 fi
3300
3301 if test "x$ac_ct_STRIP" = x; then
3302 STRIP=":"
3303 else
3304 case $cross_compiling:$ac_tool_warned in
3305 yes:)
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308 ac_tool_warned=yes ;;
3309 esac
3310 STRIP=$ac_ct_STRIP
3311 fi
3312 else
3313 STRIP="$ac_cv_prog_STRIP"
3314 fi
3315
3316 fi
3317 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3318
3319
3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3321 printf %s "checking for a race-free mkdir -p... " >&6; }
3322 if test -z "$MKDIR_P"; then
3323 if test ${ac_cv_path_mkdir+y}
3324 then :
3325 printf %s "(cached) " >&6
3326 else case e in #(
3327 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3329 do
3330 IFS=$as_save_IFS
3331 case $as_dir in #(((
3332 '') as_dir=./ ;;
3333 */) ;;
3334 *) as_dir=$as_dir/ ;;
3335 esac
3336 for ac_prog in mkdir gmkdir; do
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3339 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3340 'mkdir ('*'coreutils) '* | \
3341 *'BusyBox '* | \
3342 'mkdir (fileutils) '4.1*)
3343 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3344 break 3;;
3345 esac
3346 done
3347 done
3348 done
3349 IFS=$as_save_IFS
3350 ;;
3351 esac
3352 fi
3353
3354 test -d ./--version && rmdir ./--version
3355 if test ${ac_cv_path_mkdir+y}; then
3356 MKDIR_P="$ac_cv_path_mkdir -p"
3357 else
3358 # As a last resort, use plain mkdir -p,
3359 # in the hope it doesn't have the bugs of ancient mkdir.
3360 MKDIR_P='mkdir -p'
3361 fi
3362 fi
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3364 printf "%s\n" "$MKDIR_P" >&6; }
3365
3366 for ac_prog in gawk mawk nawk awk
3367 do
3368 # Extract the first word of "$ac_prog", so it can be a program name with args.
3369 set dummy $ac_prog; ac_word=$2
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 printf %s "checking for $ac_word... " >&6; }
3372 if test ${ac_cv_prog_AWK+y}
3373 then :
3374 printf %s "(cached) " >&6
3375 else case e in #(
3376 e) if test -n "$AWK"; then
3377 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382 IFS=$as_save_IFS
3383 case $as_dir in #(((
3384 '') as_dir=./ ;;
3385 */) ;;
3386 *) as_dir=$as_dir/ ;;
3387 esac
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_AWK="$ac_prog"
3391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394 done
3395 done
3396 IFS=$as_save_IFS
3397
3398 fi ;;
3399 esac
3400 fi
3401 AWK=$ac_cv_prog_AWK
3402 if test -n "$AWK"; then
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3404 printf "%s\n" "$AWK" >&6; }
3405 else
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 printf "%s\n" "no" >&6; }
3408 fi
3409
3410
3411 test -n "$AWK" && break
3412 done
3413
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3415 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3416 set x ${MAKE-make}
3417 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3418 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3419 then :
3420 printf %s "(cached) " >&6
3421 else case e in #(
3422 e) cat >conftest.make <<\_ACEOF
3423 SHELL = /bin/sh
3424 all:
3425 @echo '@@@%%%=$(MAKE)=@@@%%%'
3426 _ACEOF
3427 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3428 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3429 *@@@%%%=?*=@@@%%%*)
3430 eval ac_cv_prog_make_${ac_make}_set=yes;;
3431 *)
3432 eval ac_cv_prog_make_${ac_make}_set=no;;
3433 esac
3434 rm -f conftest.make ;;
3435 esac
3436 fi
3437 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3439 printf "%s\n" "yes" >&6; }
3440 SET_MAKE=
3441 else
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 printf "%s\n" "no" >&6; }
3444 SET_MAKE="MAKE=${MAKE-make}"
3445 fi
3446
3447 rm -rf .tst 2>/dev/null
3448 mkdir .tst 2>/dev/null
3449 if test -d .tst; then
3450 am__leading_dot=.
3451 else
3452 am__leading_dot=_
3453 fi
3454 rmdir .tst 2>/dev/null
3455
3456 AM_DEFAULT_VERBOSITY=1
3457 # Check whether --enable-silent-rules was given.
3458 if test ${enable_silent_rules+y}
3459 then :
3460 enableval=$enable_silent_rules;
3461 fi
3462
3463 am_make=${MAKE-make}
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3465 printf %s "checking whether $am_make supports nested variables... " >&6; }
3466 if test ${am_cv_make_support_nested_variables+y}
3467 then :
3468 printf %s "(cached) " >&6
3469 else case e in #(
3470 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3471 BAR0=false
3472 BAR1=true
3473 V=1
3474 am__doit:
3475 @$(TRUE)
3476 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3477 am_cv_make_support_nested_variables=yes
3478 else
3479 am_cv_make_support_nested_variables=no
3480 fi ;;
3481 esac
3482 fi
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3484 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3485 AM_BACKSLASH='\'
3486
3487 am__rm_f_notfound=
3488 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3489 then :
3490
3491 else case e in #(
3492 e) am__rm_f_notfound='""' ;;
3493 esac
3494 fi
3495
3496
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3498 printf %s "checking xargs -n works... " >&6; }
3499 if test ${am_cv_xargs_n_works+y}
3500 then :
3501 printf %s "(cached) " >&6
3502 else case e in #(
3503 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3504 3"
3505 then :
3506 am_cv_xargs_n_works=yes
3507 else case e in #(
3508 e) am_cv_xargs_n_works=no ;;
3509 esac
3510 fi ;;
3511 esac
3512 fi
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3514 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3515 if test "$am_cv_xargs_n_works" = yes
3516 then :
3517 am__xargs_n='xargs -n'
3518 else case e in #(
3519 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3520 ;;
3521 esac
3522 fi
3523
3524 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3525 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3526 # is not polluted with repeated "-I."
3527 am__isrc=' -I$(srcdir)'
3528 # test to see if srcdir already configured
3529 if test -f $srcdir/config.status; then
3530 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3531 fi
3532 fi
3533
3534 # test whether we have cygpath
3535 if test -z "$CYGPATH_W"; then
3536 if (cygpath --version) >/dev/null 2>/dev/null; then
3537 CYGPATH_W='cygpath -w'
3538 else
3539 CYGPATH_W=echo
3540 fi
3541 fi
3542
3543
3544 # Define the identity of the package.
3545 PACKAGE='NetworkManager-l2tp'
3546 VERSION='1.52.4'
3547
3548
3549 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3550
3551
3552 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3553
3554 # Some tools Automake needs.
3555
3556 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3557
3558
3559 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3560
3561
3562 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3563
3564
3565 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3566
3567
3568 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3569
3570 # For better backward compatibility. To be removed once Automake 1.9.x
3571 # dies out for good. For more background, see:
3572 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3573 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3574 mkdir_p='$(MKDIR_P)'
3575
3576 # We need awk for the "check" target (and possibly the TAP driver). The
3577 # system "awk" is bad on some platforms.
3578 # Always define AMTAR for backward compatibility. Yes, it's still used
3579 # in the wild :-( We should find a proper way to deprecate it ...
3580 AMTAR='$${TAR-tar}'
3581
3582
3583 # We'll loop over all known methods to create a tar archive until one works.
3584 _am_tools='gnutar plaintar pax cpio none'
3585
3586 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3587 # There is notably a 21 bits limit for the UID and the GID. In fact,
3588 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3589 # and bug#13588).
3590 am_max_uid=2097151 # 2^21 - 1
3591 am_max_gid=$am_max_uid
3592 # The $UID and $GID variables are not portable, so we need to resort
3593 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3594 # below are definitely unexpected, so allow the users to see them
3595 # (that is, avoid stderr redirection).
3596 am_uid=`id -u || echo unknown`
3597 am_gid=`id -g || echo unknown`
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3599 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3600 if test x$am_uid = xunknown; then
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3602 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3603 elif test $am_uid -le $am_max_uid; then
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605 printf "%s\n" "yes" >&6; }
3606 else
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 printf "%s\n" "no" >&6; }
3609 _am_tools=none
3610 fi
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3612 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3613 if test x$gm_gid = xunknown; then
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3615 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3616 elif test $am_gid -le $am_max_gid; then
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3618 printf "%s\n" "yes" >&6; }
3619 else
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 printf "%s\n" "no" >&6; }
3622 _am_tools=none
3623 fi
3624
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3626 printf %s "checking how to create a ustar tar archive... " >&6; }
3627
3628 # Go ahead even if we have the value already cached. We do so because we
3629 # need to set the values for the 'am__tar' and 'am__untar' variables.
3630 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3631
3632 for _am_tool in $_am_tools; do
3633 case $_am_tool in
3634 gnutar)
3635 for _am_tar in tar gnutar gtar; do
3636 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3637 ($_am_tar --version) >&5 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } && break
3641 done
3642 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3643 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3644 am__untar="$_am_tar -xf -"
3645 ;;
3646 plaintar)
3647 # Must skip GNU tar: if it does not support --format= it doesn't create
3648 # ustar tarball either.
3649 (tar --version) >/dev/null 2>&1 && continue
3650 am__tar='tar chf - "$$tardir"'
3651 am__tar_='tar chf - "$tardir"'
3652 am__untar='tar xf -'
3653 ;;
3654 pax)
3655 am__tar='pax -L -x ustar -w "$$tardir"'
3656 am__tar_='pax -L -x ustar -w "$tardir"'
3657 am__untar='pax -r'
3658 ;;
3659 cpio)
3660 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3661 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3662 am__untar='cpio -i -H ustar -d'
3663 ;;
3664 none)
3665 am__tar=false
3666 am__tar_=false
3667 am__untar=false
3668 ;;
3669 esac
3670
3671 # If the value was cached, stop now. We just wanted to have am__tar
3672 # and am__untar set.
3673 test -n "${am_cv_prog_tar_ustar}" && break
3674
3675 # tar/untar a dummy directory, and stop if the command works.
3676 rm -rf conftest.dir
3677 mkdir conftest.dir
3678 echo GrepMe > conftest.dir/file
3679 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3680 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }
3684 rm -rf conftest.dir
3685 if test -s conftest.tar; then
3686 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3687 ($am__untar <conftest.tar) >&5 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }
3691 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3692 (cat conftest.dir/file) >&5 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }
3696 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3697 fi
3698 done
3699 rm -rf conftest.dir
3700
3701 if test ${am_cv_prog_tar_ustar+y}
3702 then :
3703 printf %s "(cached) " >&6
3704 else case e in #(
3705 e) am_cv_prog_tar_ustar=$_am_tool ;;
3706 esac
3707 fi
3708
3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3710 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3711
3712
3713
3714
3715
3716 # Variables for tags utilities; see am/tags.am
3717 if test -z "$CTAGS"; then
3718 CTAGS=ctags
3719 fi
3720
3721 if test -z "$ETAGS"; then
3722 ETAGS=etags
3723 fi
3724
3725 if test -z "$CSCOPE"; then
3726 CSCOPE=cscope
3727 fi
3728
3729
3730
3731
3732
3733
3734
3735
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3737 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3738 # Check whether --enable-maintainer-mode was given.
3739 if test ${enable_maintainer_mode+y}
3740 then :
3741 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3742 else case e in #(
3743 e) USE_MAINTAINER_MODE=no ;;
3744 esac
3745 fi
3746
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3748 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3749 if test $USE_MAINTAINER_MODE = yes; then
3750 MAINTAINER_MODE_TRUE=
3751 MAINTAINER_MODE_FALSE='#'
3752 else
3753 MAINTAINER_MODE_TRUE='#'
3754 MAINTAINER_MODE_FALSE=
3755 fi
3756
3757 MAINT=$MAINTAINER_MODE_TRUE
3758
3759
3760
3761 AM_DEFAULT_VERBOSITY=0
3762
3763
3764
3765
3766
3767 ac_config_headers="$ac_config_headers config.h"
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779 DEPDIR="${am__leading_dot}deps"
3780
3781 ac_config_commands="$ac_config_commands depfiles"
3782
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3784 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3785 cat > confinc.mk << 'END'
3786 am__doit:
3787 @echo this is the am__doit target >confinc.out
3788 .PHONY: am__doit
3789 END
3790 am__include="#"
3791 am__quote=
3792 # BSD make does it like this.
3793 echo '.include "confinc.mk" # ignored' > confmf.BSD
3794 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3795 echo 'include confinc.mk # ignored' > confmf.GNU
3796 _am_result=no
3797 for s in GNU BSD; do
3798 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3799 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }
3803 case $?:`cat confinc.out 2>/dev/null` in #(
3804 '0:this is the am__doit target') :
3805 case $s in #(
3806 BSD) :
3807 am__include='.include' am__quote='"' ;; #(
3808 *) :
3809 am__include='include' am__quote='' ;;
3810 esac ;; #(
3811 *) :
3812 ;;
3813 esac
3814 if test "$am__include" != "#"; then
3815 _am_result="yes ($s style)"
3816 break
3817 fi
3818 done
3819 rm -f confinc.* confmf.*
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3821 printf "%s\n" "${_am_result}" >&6; }
3822
3823 # Check whether --enable-dependency-tracking was given.
3824 if test ${enable_dependency_tracking+y}
3825 then :
3826 enableval=$enable_dependency_tracking;
3827 fi
3828
3829 if test "x$enable_dependency_tracking" != xno; then
3830 am_depcomp="$ac_aux_dir/depcomp"
3831 AMDEPBACKSLASH='\'
3832 am__nodep='_no'
3833 fi
3834 if test "x$enable_dependency_tracking" != xno; then
3835 AMDEP_TRUE=
3836 AMDEP_FALSE='#'
3837 else
3838 AMDEP_TRUE='#'
3839 AMDEP_FALSE=
3840 fi
3841
3842
3843 ac_ext=c
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848 if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 printf %s "checking for $ac_word... " >&6; }
3853 if test ${ac_cv_prog_CC+y}
3854 then :
3855 printf %s "(cached) " >&6
3856 else case e in #(
3857 e) if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863 IFS=$as_save_IFS
3864 case $as_dir in #(((
3865 '') as_dir=./ ;;
3866 */) ;;
3867 *) as_dir=$as_dir/ ;;
3868 esac
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3871 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875 done
3876 done
3877 IFS=$as_save_IFS
3878
3879 fi ;;
3880 esac
3881 fi
3882 CC=$ac_cv_prog_CC
3883 if test -n "$CC"; then
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3885 printf "%s\n" "$CC" >&6; }
3886 else
3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 printf "%s\n" "no" >&6; }
3889 fi
3890
3891
3892 fi
3893 if test -z "$ac_cv_prog_CC"; then
3894 ac_ct_CC=$CC
3895 # Extract the first word of "gcc", so it can be a program name with args.
3896 set dummy gcc; ac_word=$2
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 printf %s "checking for $ac_word... " >&6; }
3899 if test ${ac_cv_prog_ac_ct_CC+y}
3900 then :
3901 printf %s "(cached) " >&6
3902 else case e in #(
3903 e) if test -n "$ac_ct_CC"; then
3904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909 IFS=$as_save_IFS
3910 case $as_dir in #(((
3911 '') as_dir=./ ;;
3912 */) ;;
3913 *) as_dir=$as_dir/ ;;
3914 esac
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3917 ac_cv_prog_ac_ct_CC="gcc"
3918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3919 break 2
3920 fi
3921 done
3922 done
3923 IFS=$as_save_IFS
3924
3925 fi ;;
3926 esac
3927 fi
3928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3929 if test -n "$ac_ct_CC"; then
3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3931 printf "%s\n" "$ac_ct_CC" >&6; }
3932 else
3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 printf "%s\n" "no" >&6; }
3935 fi
3936
3937 if test "x$ac_ct_CC" = x; then
3938 CC=""
3939 else
3940 case $cross_compiling:$ac_tool_warned in
3941 yes:)
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3943 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3944 ac_tool_warned=yes ;;
3945 esac
3946 CC=$ac_ct_CC
3947 fi
3948 else
3949 CC="$ac_cv_prog_CC"
3950 fi
3951
3952 if test -z "$CC"; then
3953 if test -n "$ac_tool_prefix"; then
3954 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3955 set dummy ${ac_tool_prefix}cc; ac_word=$2
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 printf %s "checking for $ac_word... " >&6; }
3958 if test ${ac_cv_prog_CC+y}
3959 then :
3960 printf %s "(cached) " >&6
3961 else case e in #(
3962 e) if test -n "$CC"; then
3963 ac_cv_prog_CC="$CC" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968 IFS=$as_save_IFS
3969 case $as_dir in #(((
3970 '') as_dir=./ ;;
3971 */) ;;
3972 *) as_dir=$as_dir/ ;;
3973 esac
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_CC="${ac_tool_prefix}cc"
3977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3978 break 2
3979 fi
3980 done
3981 done
3982 IFS=$as_save_IFS
3983
3984 fi ;;
3985 esac
3986 fi
3987 CC=$ac_cv_prog_CC
3988 if test -n "$CC"; then
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990 printf "%s\n" "$CC" >&6; }
3991 else
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 printf "%s\n" "no" >&6; }
3994 fi
3995
3996
3997 fi
3998 fi
3999 if test -z "$CC"; then
4000 # Extract the first word of "cc", so it can be a program name with args.
4001 set dummy cc; ac_word=$2
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 printf %s "checking for $ac_word... " >&6; }
4004 if test ${ac_cv_prog_CC+y}
4005 then :
4006 printf %s "(cached) " >&6
4007 else case e in #(
4008 e) if test -n "$CC"; then
4009 ac_cv_prog_CC="$CC" # Let the user override the test.
4010 else
4011 ac_prog_rejected=no
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015 IFS=$as_save_IFS
4016 case $as_dir in #(((
4017 '') as_dir=./ ;;
4018 */) ;;
4019 *) as_dir=$as_dir/ ;;
4020 esac
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4023 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4024 ac_prog_rejected=yes
4025 continue
4026 fi
4027 ac_cv_prog_CC="cc"
4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4029 break 2
4030 fi
4031 done
4032 done
4033 IFS=$as_save_IFS
4034
4035 if test $ac_prog_rejected = yes; then
4036 # We found a bogon in the path, so make sure we never use it.
4037 set dummy $ac_cv_prog_CC
4038 shift
4039 if test $# != 0; then
4040 # We chose a different compiler from the bogus one.
4041 # However, it has the same basename, so the bogon will be chosen
4042 # first if we set CC to just the basename; use the full file name.
4043 shift
4044 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4045 fi
4046 fi
4047 fi ;;
4048 esac
4049 fi
4050 CC=$ac_cv_prog_CC
4051 if test -n "$CC"; then
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4053 printf "%s\n" "$CC" >&6; }
4054 else
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 printf "%s\n" "no" >&6; }
4057 fi
4058
4059
4060 fi
4061 if test -z "$CC"; then
4062 if test -n "$ac_tool_prefix"; then
4063 for ac_prog in cl.exe
4064 do
4065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 printf %s "checking for $ac_word... " >&6; }
4069 if test ${ac_cv_prog_CC+y}
4070 then :
4071 printf %s "(cached) " >&6
4072 else case e in #(
4073 e) if test -n "$CC"; then
4074 ac_cv_prog_CC="$CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079 IFS=$as_save_IFS
4080 case $as_dir in #(((
4081 '') as_dir=./ ;;
4082 */) ;;
4083 *) as_dir=$as_dir/ ;;
4084 esac
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4087 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4089 break 2
4090 fi
4091 done
4092 done
4093 IFS=$as_save_IFS
4094
4095 fi ;;
4096 esac
4097 fi
4098 CC=$ac_cv_prog_CC
4099 if test -n "$CC"; then
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 printf "%s\n" "$CC" >&6; }
4102 else
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 printf "%s\n" "no" >&6; }
4105 fi
4106
4107
4108 test -n "$CC" && break
4109 done
4110 fi
4111 if test -z "$CC"; then
4112 ac_ct_CC=$CC
4113 for ac_prog in cl.exe
4114 do
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 printf %s "checking for $ac_word... " >&6; }
4119 if test ${ac_cv_prog_ac_ct_CC+y}
4120 then :
4121 printf %s "(cached) " >&6
4122 else case e in #(
4123 e) if test -n "$ac_ct_CC"; then
4124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129 IFS=$as_save_IFS
4130 case $as_dir in #(((
4131 '') as_dir=./ ;;
4132 */) ;;
4133 *) as_dir=$as_dir/ ;;
4134 esac
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_ac_ct_CC="$ac_prog"
4138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4139 break 2
4140 fi
4141 done
4142 done
4143 IFS=$as_save_IFS
4144
4145 fi ;;
4146 esac
4147 fi
4148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4149 if test -n "$ac_ct_CC"; then
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4151 printf "%s\n" "$ac_ct_CC" >&6; }
4152 else
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 printf "%s\n" "no" >&6; }
4155 fi
4156
4157
4158 test -n "$ac_ct_CC" && break
4159 done
4160
4161 if test "x$ac_ct_CC" = x; then
4162 CC=""
4163 else
4164 case $cross_compiling:$ac_tool_warned in
4165 yes:)
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168 ac_tool_warned=yes ;;
4169 esac
4170 CC=$ac_ct_CC
4171 fi
4172 fi
4173
4174 fi
4175 if test -z "$CC"; then
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}clang; ac_word=$2
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 printf %s "checking for $ac_word... " >&6; }
4181 if test ${ac_cv_prog_CC+y}
4182 then :
4183 printf %s "(cached) " >&6
4184 else case e in #(
4185 e) if test -n "$CC"; then
4186 ac_cv_prog_CC="$CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191 IFS=$as_save_IFS
4192 case $as_dir in #(((
4193 '') as_dir=./ ;;
4194 */) ;;
4195 *) as_dir=$as_dir/ ;;
4196 esac
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_CC="${ac_tool_prefix}clang"
4200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4201 break 2
4202 fi
4203 done
4204 done
4205 IFS=$as_save_IFS
4206
4207 fi ;;
4208 esac
4209 fi
4210 CC=$ac_cv_prog_CC
4211 if test -n "$CC"; then
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4213 printf "%s\n" "$CC" >&6; }
4214 else
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 printf "%s\n" "no" >&6; }
4217 fi
4218
4219
4220 fi
4221 if test -z "$ac_cv_prog_CC"; then
4222 ac_ct_CC=$CC
4223 # Extract the first word of "clang", so it can be a program name with args.
4224 set dummy clang; ac_word=$2
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 printf %s "checking for $ac_word... " >&6; }
4227 if test ${ac_cv_prog_ac_ct_CC+y}
4228 then :
4229 printf %s "(cached) " >&6
4230 else case e in #(
4231 e) if test -n "$ac_ct_CC"; then
4232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237 IFS=$as_save_IFS
4238 case $as_dir in #(((
4239 '') as_dir=./ ;;
4240 */) ;;
4241 *) as_dir=$as_dir/ ;;
4242 esac
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4245 ac_cv_prog_ac_ct_CC="clang"
4246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249 done
4250 done
4251 IFS=$as_save_IFS
4252
4253 fi ;;
4254 esac
4255 fi
4256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4257 if test -n "$ac_ct_CC"; then
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4259 printf "%s\n" "$ac_ct_CC" >&6; }
4260 else
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 printf "%s\n" "no" >&6; }
4263 fi
4264
4265 if test "x$ac_ct_CC" = x; then
4266 CC=""
4267 else
4268 case $cross_compiling:$ac_tool_warned in
4269 yes:)
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4271 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4272 ac_tool_warned=yes ;;
4273 esac
4274 CC=$ac_ct_CC
4275 fi
4276 else
4277 CC="$ac_cv_prog_CC"
4278 fi
4279
4280 fi
4281
4282
4283 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4284 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4285 as_fn_error $? "no acceptable C compiler found in \$PATH
4286 See 'config.log' for more details" "$LINENO" 5; }
4287
4288 # Provide some information about the compiler.
4289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4290 set X $ac_compile
4291 ac_compiler=$2
4292 for ac_option in --version -v -V -qversion -version; do
4293 { { ac_try="$ac_compiler $ac_option >&5"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 printf "%s\n" "$ac_try_echo"; } >&5
4300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4301 ac_status=$?
4302 if test -s conftest.err; then
4303 sed '10a\
4304 ... rest of stderr output deleted ...
4305 10q' conftest.err >conftest.er1
4306 cat conftest.er1 >&5
4307 fi
4308 rm -f conftest.er1 conftest.err
4309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }
4311 done
4312
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315
4316 int
4317 main (void)
4318 {
4319
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 ac_clean_files_save=$ac_clean_files
4325 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4326 # Try to create an executable without -o first, disregard a.out.
4327 # It will help us diagnose broken compilers, and finding out an intuition
4328 # of exeext.
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4330 printf %s "checking whether the C compiler works... " >&6; }
4331 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4332
4333 # The possible output files:
4334 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4335
4336 ac_rmfiles=
4337 for ac_file in $ac_files
4338 do
4339 case $ac_file in
4340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4341 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4342 esac
4343 done
4344 rm -f $ac_rmfiles
4345
4346 if { { ac_try="$ac_link_default"
4347 case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350 esac
4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352 printf "%s\n" "$ac_try_echo"; } >&5
4353 (eval "$ac_link_default") 2>&5
4354 ac_status=$?
4355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356 test $ac_status = 0; }
4357 then :
4358 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4359 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4361 # so that the user can short-circuit this test for compilers unknown to
4362 # Autoconf.
4363 for ac_file in $ac_files ''
4364 do
4365 test -f "$ac_file" || continue
4366 case $ac_file in
4367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4368 ;;
4369 [ab].out )
4370 # We found the default executable, but exeext='' is most
4371 # certainly right.
4372 break;;
4373 *.* )
4374 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4375 then :; else
4376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4377 fi
4378 # We set ac_cv_exeext here because the later test for it is not
4379 # safe: cross compilers may not add the suffix if given an '-o'
4380 # argument, so we may need to know it at that point already.
4381 # Even if this section looks crufty: it has the advantage of
4382 # actually working.
4383 break;;
4384 * )
4385 break;;
4386 esac
4387 done
4388 test "$ac_cv_exeext" = no && ac_cv_exeext=
4389
4390 else case e in #(
4391 e) ac_file='' ;;
4392 esac
4393 fi
4394 if test -z "$ac_file"
4395 then :
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 printf "%s\n" "no" >&6; }
4398 printf "%s\n" "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4400
4401 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4402 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4403 as_fn_error 77 "C compiler cannot create executables
4404 See 'config.log' for more details" "$LINENO" 5; }
4405 else case e in #(
4406 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4407 printf "%s\n" "yes" >&6; } ;;
4408 esac
4409 fi
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4411 printf %s "checking for C compiler default output file name... " >&6; }
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4413 printf "%s\n" "$ac_file" >&6; }
4414 ac_exeext=$ac_cv_exeext
4415
4416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4417 ac_clean_files=$ac_clean_files_save
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4419 printf %s "checking for suffix of executables... " >&6; }
4420 if { { ac_try="$ac_link"
4421 case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424 esac
4425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4426 printf "%s\n" "$ac_try_echo"; } >&5
4427 (eval "$ac_link") 2>&5
4428 ac_status=$?
4429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430 test $ac_status = 0; }
4431 then :
4432 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4433 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4434 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4435 # 'rm'.
4436 for ac_file in conftest.exe conftest conftest.*; do
4437 test -f "$ac_file" || continue
4438 case $ac_file in
4439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4440 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4441 break;;
4442 * ) break;;
4443 esac
4444 done
4445 else case e in #(
4446 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4447 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4448 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4449 See 'config.log' for more details" "$LINENO" 5; } ;;
4450 esac
4451 fi
4452 rm -f conftest conftest$ac_cv_exeext
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4454 printf "%s\n" "$ac_cv_exeext" >&6; }
4455
4456 rm -f conftest.$ac_ext
4457 EXEEXT=$ac_cv_exeext
4458 ac_exeext=$EXEEXT
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #include <stdio.h>
4462 int
4463 main (void)
4464 {
4465 FILE *f = fopen ("conftest.out", "w");
4466 if (!f)
4467 return 1;
4468 return ferror (f) || fclose (f) != 0;
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 ac_clean_files="$ac_clean_files conftest.out"
4475 # Check that the compiler produces executables we can run. If not, either
4476 # the compiler is broken, or we cross compile.
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4478 printf %s "checking whether we are cross compiling... " >&6; }
4479 if test "$cross_compiling" != yes; then
4480 { { ac_try="$ac_link"
4481 case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484 esac
4485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4486 printf "%s\n" "$ac_try_echo"; } >&5
4487 (eval "$ac_link") 2>&5
4488 ac_status=$?
4489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4490 test $ac_status = 0; }
4491 if { ac_try='./conftest$ac_cv_exeext'
4492 { { case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4497 printf "%s\n" "$ac_try_echo"; } >&5
4498 (eval "$ac_try") 2>&5
4499 ac_status=$?
4500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4501 test $ac_status = 0; }; }; then
4502 cross_compiling=no
4503 else
4504 if test "$cross_compiling" = maybe; then
4505 cross_compiling=yes
4506 else
4507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4508 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4509 as_fn_error 77 "cannot run C compiled programs.
4510 If you meant to cross compile, use '--host'.
4511 See 'config.log' for more details" "$LINENO" 5; }
4512 fi
4513 fi
4514 fi
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4516 printf "%s\n" "$cross_compiling" >&6; }
4517
4518 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4519 conftest.o conftest.obj conftest.out
4520 ac_clean_files=$ac_clean_files_save
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4522 printf %s "checking for suffix of object files... " >&6; }
4523 if test ${ac_cv_objext+y}
4524 then :
4525 printf %s "(cached) " >&6
4526 else case e in #(
4527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529
4530 int
4531 main (void)
4532 {
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.o conftest.obj
4539 if { { ac_try="$ac_compile"
4540 case "(($ac_try" in
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4543 esac
4544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545 printf "%s\n" "$ac_try_echo"; } >&5
4546 (eval "$ac_compile") 2>&5
4547 ac_status=$?
4548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }
4550 then :
4551 for ac_file in conftest.o conftest.obj conftest.*; do
4552 test -f "$ac_file" || continue;
4553 case $ac_file in
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4556 break;;
4557 esac
4558 done
4559 else case e in #(
4560 e) printf "%s\n" "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4564 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4565 as_fn_error $? "cannot compute suffix of object files: cannot compile
4566 See 'config.log' for more details" "$LINENO" 5; } ;;
4567 esac
4568 fi
4569 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4570 esac
4571 fi
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4573 printf "%s\n" "$ac_cv_objext" >&6; }
4574 OBJEXT=$ac_cv_objext
4575 ac_objext=$OBJEXT
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4577 printf %s "checking whether the compiler supports GNU C... " >&6; }
4578 if test ${ac_cv_c_compiler_gnu+y}
4579 then :
4580 printf %s "(cached) " >&6
4581 else case e in #(
4582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584
4585 int
4586 main (void)
4587 {
4588 #ifndef __GNUC__
4589 choke me
4590 #endif
4591
4592 ;
4593 return 0;
4594 }
4595 _ACEOF
4596 if ac_fn_c_try_compile "$LINENO"
4597 then :
4598 ac_compiler_gnu=yes
4599 else case e in #(
4600 e) ac_compiler_gnu=no ;;
4601 esac
4602 fi
4603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4604 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4605 ;;
4606 esac
4607 fi
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4609 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611
4612 if test $ac_compiler_gnu = yes; then
4613 GCC=yes
4614 else
4615 GCC=
4616 fi
4617 ac_test_CFLAGS=${CFLAGS+y}
4618 ac_save_CFLAGS=$CFLAGS
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4620 printf %s "checking whether $CC accepts -g... " >&6; }
4621 if test ${ac_cv_prog_cc_g+y}
4622 then :
4623 printf %s "(cached) " >&6
4624 else case e in #(
4625 e) ac_save_c_werror_flag=$ac_c_werror_flag
4626 ac_c_werror_flag=yes
4627 ac_cv_prog_cc_g=no
4628 CFLAGS="-g"
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631
4632 int
4633 main (void)
4634 {
4635
4636 ;
4637 return 0;
4638 }
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"
4641 then :
4642 ac_cv_prog_cc_g=yes
4643 else case e in #(
4644 e) CFLAGS=""
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4647
4648 int
4649 main (void)
4650 {
4651
4652 ;
4653 return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_compile "$LINENO"
4657 then :
4658
4659 else case e in #(
4660 e) ac_c_werror_flag=$ac_save_c_werror_flag
4661 CFLAGS="-g"
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664
4665 int
4666 main (void)
4667 {
4668
4669 ;
4670 return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_compile "$LINENO"
4674 then :
4675 ac_cv_prog_cc_g=yes
4676 fi
4677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4678 esac
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4681 esac
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4684 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4685 esac
4686 fi
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4688 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4689 if test $ac_test_CFLAGS; then
4690 CFLAGS=$ac_save_CFLAGS
4691 elif test $ac_cv_prog_cc_g = yes; then
4692 if test "$GCC" = yes; then
4693 CFLAGS="-g -O2"
4694 else
4695 CFLAGS="-g"
4696 fi
4697 else
4698 if test "$GCC" = yes; then
4699 CFLAGS="-O2"
4700 else
4701 CFLAGS=
4702 fi
4703 fi
4704 ac_prog_cc_stdc=no
4705 if test x$ac_prog_cc_stdc = xno
4706 then :
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4708 printf %s "checking for $CC option to enable C11 features... " >&6; }
4709 if test ${ac_cv_prog_cc_c11+y}
4710 then :
4711 printf %s "(cached) " >&6
4712 else case e in #(
4713 e) ac_cv_prog_cc_c11=no
4714 ac_save_CC=$CC
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 $ac_c_conftest_c11_program
4718 _ACEOF
4719 for ac_arg in '' -std=gnu11
4720 do
4721 CC="$ac_save_CC $ac_arg"
4722 if ac_fn_c_try_compile "$LINENO"
4723 then :
4724 ac_cv_prog_cc_c11=$ac_arg
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext conftest.beam
4727 test "x$ac_cv_prog_cc_c11" != "xno" && break
4728 done
4729 rm -f conftest.$ac_ext
4730 CC=$ac_save_CC ;;
4731 esac
4732 fi
4733
4734 if test "x$ac_cv_prog_cc_c11" = xno
4735 then :
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4737 printf "%s\n" "unsupported" >&6; }
4738 else case e in #(
4739 e) if test "x$ac_cv_prog_cc_c11" = x
4740 then :
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4742 printf "%s\n" "none needed" >&6; }
4743 else case e in #(
4744 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4745 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4746 CC="$CC $ac_cv_prog_cc_c11" ;;
4747 esac
4748 fi
4749 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4750 ac_prog_cc_stdc=c11 ;;
4751 esac
4752 fi
4753 fi
4754 if test x$ac_prog_cc_stdc = xno
4755 then :
4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4757 printf %s "checking for $CC option to enable C99 features... " >&6; }
4758 if test ${ac_cv_prog_cc_c99+y}
4759 then :
4760 printf %s "(cached) " >&6
4761 else case e in #(
4762 e) ac_cv_prog_cc_c99=no
4763 ac_save_CC=$CC
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 $ac_c_conftest_c99_program
4767 _ACEOF
4768 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4769 do
4770 CC="$ac_save_CC $ac_arg"
4771 if ac_fn_c_try_compile "$LINENO"
4772 then :
4773 ac_cv_prog_cc_c99=$ac_arg
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.beam
4776 test "x$ac_cv_prog_cc_c99" != "xno" && break
4777 done
4778 rm -f conftest.$ac_ext
4779 CC=$ac_save_CC ;;
4780 esac
4781 fi
4782
4783 if test "x$ac_cv_prog_cc_c99" = xno
4784 then :
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4786 printf "%s\n" "unsupported" >&6; }
4787 else case e in #(
4788 e) if test "x$ac_cv_prog_cc_c99" = x
4789 then :
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4791 printf "%s\n" "none needed" >&6; }
4792 else case e in #(
4793 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4794 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4795 CC="$CC $ac_cv_prog_cc_c99" ;;
4796 esac
4797 fi
4798 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4799 ac_prog_cc_stdc=c99 ;;
4800 esac
4801 fi
4802 fi
4803 if test x$ac_prog_cc_stdc = xno
4804 then :
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4806 printf %s "checking for $CC option to enable C89 features... " >&6; }
4807 if test ${ac_cv_prog_cc_c89+y}
4808 then :
4809 printf %s "(cached) " >&6
4810 else case e in #(
4811 e) ac_cv_prog_cc_c89=no
4812 ac_save_CC=$CC
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815 $ac_c_conftest_c89_program
4816 _ACEOF
4817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4818 do
4819 CC="$ac_save_CC $ac_arg"
4820 if ac_fn_c_try_compile "$LINENO"
4821 then :
4822 ac_cv_prog_cc_c89=$ac_arg
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext conftest.beam
4825 test "x$ac_cv_prog_cc_c89" != "xno" && break
4826 done
4827 rm -f conftest.$ac_ext
4828 CC=$ac_save_CC ;;
4829 esac
4830 fi
4831
4832 if test "x$ac_cv_prog_cc_c89" = xno
4833 then :
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4835 printf "%s\n" "unsupported" >&6; }
4836 else case e in #(
4837 e) if test "x$ac_cv_prog_cc_c89" = x
4838 then :
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4840 printf "%s\n" "none needed" >&6; }
4841 else case e in #(
4842 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4843 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4844 CC="$CC $ac_cv_prog_cc_c89" ;;
4845 esac
4846 fi
4847 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4848 ac_prog_cc_stdc=c89 ;;
4849 esac
4850 fi
4851 fi
4852
4853 ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858
4859
4860 ac_ext=c
4861 ac_cpp='$CPP $CPPFLAGS'
4862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4866 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4867 if test ${am_cv_prog_cc_c_o+y}
4868 then :
4869 printf %s "(cached) " >&6
4870 else case e in #(
4871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873
4874 int
4875 main (void)
4876 {
4877
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 # Make sure it works both with $CC and with simple cc.
4883 # Following AC_PROG_CC_C_O, we do the test twice because some
4884 # compilers refuse to overwrite an existing .o file with -o,
4885 # though they will create one.
4886 am_cv_prog_cc_c_o=yes
4887 for am_i in 1 2; do
4888 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4889 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } \
4893 && test -f conftest2.$ac_objext; then
4894 : OK
4895 else
4896 am_cv_prog_cc_c_o=no
4897 break
4898 fi
4899 done
4900 # aligned with autoconf, so not including core; see bug#72225.
4901 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4902 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4903 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4904 unset am_i ;;
4905 esac
4906 fi
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4908 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4909 if test "$am_cv_prog_cc_c_o" != yes; then
4910 # Losing compiler, so override with the script.
4911 # FIXME: It is wrong to rewrite CC.
4912 # But if we don't then we get into trouble of one sort or another.
4913 # A longer-term fix would be to have automake use am__CC in this case,
4914 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4915 CC="$am_aux_dir/compile $CC"
4916 fi
4917 ac_ext=c
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922
4923
4924 depcc="$CC" am_compiler_list=
4925
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4927 printf %s "checking dependency style of $depcc... " >&6; }
4928 if test ${am_cv_CC_dependencies_compiler_type+y}
4929 then :
4930 printf %s "(cached) " >&6
4931 else case e in #(
4932 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4933 # We make a subdir and do the tests there. Otherwise we can end up
4934 # making bogus files that we don't know about and never remove. For
4935 # instance it was reported that on HP-UX the gcc test will end up
4936 # making a dummy file named 'D' -- because '-MD' means "put the output
4937 # in D".
4938 rm -rf conftest.dir
4939 mkdir conftest.dir
4940 # Copy depcomp to subdir because otherwise we won't find it if we're
4941 # using a relative directory.
4942 cp "$am_depcomp" conftest.dir
4943 cd conftest.dir
4944 # We will build objects and dependencies in a subdirectory because
4945 # it helps to detect inapplicable dependency modes. For instance
4946 # both Tru64's cc and ICC support -MD to output dependencies as a
4947 # side effect of compilation, but ICC will put the dependencies in
4948 # the current directory while Tru64 will put them in the object
4949 # directory.
4950 mkdir sub
4951
4952 am_cv_CC_dependencies_compiler_type=none
4953 if test "$am_compiler_list" = ""; then
4954 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4955 fi
4956 am__universal=false
4957 case " $depcc " in #(
4958 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4959 esac
4960
4961 for depmode in $am_compiler_list; do
4962 # Setup a source with many dependencies, because some compilers
4963 # like to wrap large dependency lists on column 80 (with \), and
4964 # we should not choose a depcomp mode which is confused by this.
4965 #
4966 # We need to recreate these files for each test, as the compiler may
4967 # overwrite some of them when testing with obscure command lines.
4968 # This happens at least with the AIX C compiler.
4969 : > sub/conftest.c
4970 for i in 1 2 3 4 5 6; do
4971 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4972 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4973 # Solaris 10 /bin/sh.
4974 echo '/* dummy */' > sub/conftst$i.h
4975 done
4976 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4977
4978 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4979 # mode. It turns out that the SunPro C++ compiler does not properly
4980 # handle '-M -o', and we need to detect this. Also, some Intel
4981 # versions had trouble with output in subdirs.
4982 am__obj=sub/conftest.${OBJEXT-o}
4983 am__minus_obj="-o $am__obj"
4984 case $depmode in
4985 gcc)
4986 # This depmode causes a compiler race in universal mode.
4987 test "$am__universal" = false || continue
4988 ;;
4989 nosideeffect)
4990 # After this tag, mechanisms are not by side-effect, so they'll
4991 # only be used when explicitly requested.
4992 if test "x$enable_dependency_tracking" = xyes; then
4993 continue
4994 else
4995 break
4996 fi
4997 ;;
4998 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4999 # This compiler won't grok '-c -o', but also, the minuso test has
5000 # not run yet. These depmodes are late enough in the game, and
5001 # so weak that their functioning should not be impacted.
5002 am__obj=conftest.${OBJEXT-o}
5003 am__minus_obj=
5004 ;;
5005 none) break ;;
5006 esac
5007 if depmode=$depmode \
5008 source=sub/conftest.c object=$am__obj \
5009 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5010 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5011 >/dev/null 2>conftest.err &&
5012 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5014 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5016 # icc doesn't choke on unknown options, it will just issue warnings
5017 # or remarks (even with -Werror). So we grep stderr for any message
5018 # that says an option was ignored or not supported.
5019 # When given -MP, icc 7.0 and 7.1 complain thus:
5020 # icc: Command line warning: ignoring option '-M'; no argument required
5021 # The diagnosis changed in icc 8.0:
5022 # icc: Command line remark: option '-MP' not supported
5023 if (grep 'ignoring option' conftest.err ||
5024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5025 am_cv_CC_dependencies_compiler_type=$depmode
5026 break
5027 fi
5028 fi
5029 done
5030
5031 cd ..
5032 rm -rf conftest.dir
5033 else
5034 am_cv_CC_dependencies_compiler_type=none
5035 fi
5036 ;;
5037 esac
5038 fi
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5040 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5041 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5042
5043 if
5044 test "x$enable_dependency_tracking" != xno \
5045 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5046 am__fastdepCC_TRUE=
5047 am__fastdepCC_FALSE='#'
5048 else
5049 am__fastdepCC_TRUE='#'
5050 am__fastdepCC_FALSE=
5051 fi
5052
5053
5054
5055 ac_header= ac_cache=
5056 for ac_item in $ac_header_c_list
5057 do
5058 if test $ac_cache; then
5059 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5060 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5061 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5062 fi
5063 ac_header= ac_cache=
5064 elif test $ac_header; then
5065 ac_cache=$ac_item
5066 else
5067 ac_header=$ac_item
5068 fi
5069 done
5070
5071
5072
5073
5074
5075
5076
5077
5078 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5079 then :
5080
5081 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5082
5083 fi
5084
5085
5086
5087
5088
5089
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5091 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5092 if test ${ac_cv_safe_to_define___extensions__+y}
5093 then :
5094 printf %s "(cached) " >&6
5095 else case e in #(
5096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098
5099 # define __EXTENSIONS__ 1
5100 $ac_includes_default
5101 int
5102 main (void)
5103 {
5104
5105 ;
5106 return 0;
5107 }
5108 _ACEOF
5109 if ac_fn_c_try_compile "$LINENO"
5110 then :
5111 ac_cv_safe_to_define___extensions__=yes
5112 else case e in #(
5113 e) ac_cv_safe_to_define___extensions__=no ;;
5114 esac
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5117 esac
5118 fi
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5120 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5121
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5123 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5124 if test ${ac_cv_should_define__xopen_source+y}
5125 then :
5126 printf %s "(cached) " >&6
5127 else case e in #(
5128 e) ac_cv_should_define__xopen_source=no
5129 if test $ac_cv_header_wchar_h = yes
5130 then :
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5133
5134 #include <wchar.h>
5135 mbstate_t x;
5136 int
5137 main (void)
5138 {
5139
5140 ;
5141 return 0;
5142 }
5143 _ACEOF
5144 if ac_fn_c_try_compile "$LINENO"
5145 then :
5146
5147 else case e in #(
5148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150
5151 #define _XOPEN_SOURCE 500
5152 #include <wchar.h>
5153 mbstate_t x;
5154 int
5155 main (void)
5156 {
5157
5158 ;
5159 return 0;
5160 }
5161 _ACEOF
5162 if ac_fn_c_try_compile "$LINENO"
5163 then :
5164 ac_cv_should_define__xopen_source=yes
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5167 esac
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5170 fi ;;
5171 esac
5172 fi
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5174 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5175
5176 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5177
5178 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5179
5180 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5181
5182 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5183
5184 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5185
5186 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5187
5188 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5189
5190 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5191
5192 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5193
5194 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5195
5196 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5197
5198 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5199
5200 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5201
5202 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5203
5204 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5205
5206 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5207
5208 if test $ac_cv_header_minix_config_h = yes
5209 then :
5210 MINIX=yes
5211 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5212
5213 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5214
5215 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5216
5217 else case e in #(
5218 e) MINIX= ;;
5219 esac
5220 fi
5221 if test $ac_cv_safe_to_define___extensions__ = yes
5222 then :
5223 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5224
5225 fi
5226 if test $ac_cv_should_define__xopen_source = yes
5227 then :
5228 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5229
5230 fi
5231
5232
5233 if test "x$runstatedir" = x; then
5234 runstatedir='${localstatedir}/run'
5235
5236 fi
5237
5238 if test -n "$ac_tool_prefix"; then
5239 for ac_prog in gcc-ar ar
5240 do
5241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 printf %s "checking for $ac_word... " >&6; }
5245 if test ${ac_cv_prog_AR+y}
5246 then :
5247 printf %s "(cached) " >&6
5248 else case e in #(
5249 e) if test -n "$AR"; then
5250 ac_cv_prog_AR="$AR" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255 IFS=$as_save_IFS
5256 case $as_dir in #(((
5257 '') as_dir=./ ;;
5258 */) ;;
5259 *) as_dir=$as_dir/ ;;
5260 esac
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267 done
5268 done
5269 IFS=$as_save_IFS
5270
5271 fi ;;
5272 esac
5273 fi
5274 AR=$ac_cv_prog_AR
5275 if test -n "$AR"; then
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5277 printf "%s\n" "$AR" >&6; }
5278 else
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 printf "%s\n" "no" >&6; }
5281 fi
5282
5283
5284 test -n "$AR" && break
5285 done
5286 fi
5287 if test -z "$AR"; then
5288 ac_ct_AR=$AR
5289 for ac_prog in gcc-ar ar
5290 do
5291 # Extract the first word of "$ac_prog", so it can be a program name with args.
5292 set dummy $ac_prog; ac_word=$2
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 printf %s "checking for $ac_word... " >&6; }
5295 if test ${ac_cv_prog_ac_ct_AR+y}
5296 then :
5297 printf %s "(cached) " >&6
5298 else case e in #(
5299 e) if test -n "$ac_ct_AR"; then
5300 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305 IFS=$as_save_IFS
5306 case $as_dir in #(((
5307 '') as_dir=./ ;;
5308 */) ;;
5309 *) as_dir=$as_dir/ ;;
5310 esac
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_AR="$ac_prog"
5314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317 done
5318 done
5319 IFS=$as_save_IFS
5320
5321 fi ;;
5322 esac
5323 fi
5324 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5325 if test -n "$ac_ct_AR"; then
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5327 printf "%s\n" "$ac_ct_AR" >&6; }
5328 else
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 printf "%s\n" "no" >&6; }
5331 fi
5332
5333
5334 test -n "$ac_ct_AR" && break
5335 done
5336
5337 if test "x$ac_ct_AR" = x; then
5338 AR="false"
5339 else
5340 case $cross_compiling:$ac_tool_warned in
5341 yes:)
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344 ac_tool_warned=yes ;;
5345 esac
5346 AR=$ac_ct_AR
5347 fi
5348 fi
5349
5350 if test -n "$ac_tool_prefix"; then
5351 for ac_prog in gcc-ranlib ranlib
5352 do
5353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 printf %s "checking for $ac_word... " >&6; }
5357 if test ${ac_cv_prog_RANLIB+y}
5358 then :
5359 printf %s "(cached) " >&6
5360 else case e in #(
5361 e) if test -n "$RANLIB"; then
5362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367 IFS=$as_save_IFS
5368 case $as_dir in #(((
5369 '') as_dir=./ ;;
5370 */) ;;
5371 *) as_dir=$as_dir/ ;;
5372 esac
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5375 ac_cv_prog_RANLIB="$ac_tool_prefix$ac_prog"
5376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5377 break 2
5378 fi
5379 done
5380 done
5381 IFS=$as_save_IFS
5382
5383 fi ;;
5384 esac
5385 fi
5386 RANLIB=$ac_cv_prog_RANLIB
5387 if test -n "$RANLIB"; then
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5389 printf "%s\n" "$RANLIB" >&6; }
5390 else
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 printf "%s\n" "no" >&6; }
5393 fi
5394
5395
5396 test -n "$RANLIB" && break
5397 done
5398 fi
5399 if test -z "$RANLIB"; then
5400 ac_ct_RANLIB=$RANLIB
5401 for ac_prog in gcc-ranlib ranlib
5402 do
5403 # Extract the first word of "$ac_prog", so it can be a program name with args.
5404 set dummy $ac_prog; ac_word=$2
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 printf %s "checking for $ac_word... " >&6; }
5407 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5408 then :
5409 printf %s "(cached) " >&6
5410 else case e in #(
5411 e) if test -n "$ac_ct_RANLIB"; then
5412 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417 IFS=$as_save_IFS
5418 case $as_dir in #(((
5419 '') as_dir=./ ;;
5420 */) ;;
5421 *) as_dir=$as_dir/ ;;
5422 esac
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_ac_ct_RANLIB="$ac_prog"
5426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5427 break 2
5428 fi
5429 done
5430 done
5431 IFS=$as_save_IFS
5432
5433 fi ;;
5434 esac
5435 fi
5436 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5437 if test -n "$ac_ct_RANLIB"; then
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5439 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5440 else
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 printf "%s\n" "no" >&6; }
5443 fi
5444
5445
5446 test -n "$ac_ct_RANLIB" && break
5447 done
5448
5449 if test "x$ac_ct_RANLIB" = x; then
5450 RANLIB=":"
5451 else
5452 case $cross_compiling:$ac_tool_warned in
5453 yes:)
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5455 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5456 ac_tool_warned=yes ;;
5457 esac
5458 RANLIB=$ac_ct_RANLIB
5459 fi
5460 fi
5461
5462
5463 case `pwd` in
5464 *\ * | *\ *)
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5466 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5467 esac
5468
5469
5470
5471 macro_version='2.5.4'
5472 macro_revision='2.5.4'
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487 ltmain=$ac_aux_dir/ltmain.sh
5488
5489
5490
5491 # Make sure we can run config.sub.
5492 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5493 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5494
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5496 printf %s "checking build system type... " >&6; }
5497 if test ${ac_cv_build+y}
5498 then :
5499 printf %s "(cached) " >&6
5500 else case e in #(
5501 e) ac_build_alias=$build_alias
5502 test "x$ac_build_alias" = x &&
5503 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5504 test "x$ac_build_alias" = x &&
5505 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5506 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5507 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5508 ;;
5509 esac
5510 fi
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5512 printf "%s\n" "$ac_cv_build" >&6; }
5513 case $ac_cv_build in
5514 *-*-*) ;;
5515 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5516 esac
5517 build=$ac_cv_build
5518 ac_save_IFS=$IFS; IFS='-'
5519 set x $ac_cv_build
5520 shift
5521 build_cpu=$1
5522 build_vendor=$2
5523 shift; shift
5524 # Remember, the first character of IFS is used to create $*,
5525 # except with old shells:
5526 build_os=$*
5527 IFS=$ac_save_IFS
5528 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5529
5530
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5532 printf %s "checking host system type... " >&6; }
5533 if test ${ac_cv_host+y}
5534 then :
5535 printf %s "(cached) " >&6
5536 else case e in #(
5537 e) if test "x$host_alias" = x; then
5538 ac_cv_host=$ac_cv_build
5539 else
5540 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5541 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5542 fi
5543 ;;
5544 esac
5545 fi
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5547 printf "%s\n" "$ac_cv_host" >&6; }
5548 case $ac_cv_host in
5549 *-*-*) ;;
5550 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5551 esac
5552 host=$ac_cv_host
5553 ac_save_IFS=$IFS; IFS='-'
5554 set x $ac_cv_host
5555 shift
5556 host_cpu=$1
5557 host_vendor=$2
5558 shift; shift
5559 # Remember, the first character of IFS is used to create $*,
5560 # except with old shells:
5561 host_os=$*
5562 IFS=$ac_save_IFS
5563 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5564
5565
5566 # Backslashify metacharacters that are still active within
5567 # double-quoted strings.
5568 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5569
5570 # Same as above, but do not quote variable references.
5571 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5572
5573 # Sed substitution to delay expansion of an escaped shell variable in a
5574 # double_quote_subst'ed string.
5575 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5576
5577 # Sed substitution to delay expansion of an escaped single quote.
5578 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5579
5580 # Sed substitution to avoid accidental globbing in evaled expressions
5581 no_glob_subst='s/\*/\\\*/g'
5582
5583 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5584 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5585 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5586
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5588 printf %s "checking how to print strings... " >&6; }
5589 # Test print first, because it will be a builtin if present.
5590 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5591 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5592 ECHO='print -r --'
5593 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5594 ECHO='printf %s\n'
5595 else
5596 # Use this function as a fallback that always works.
5597 func_fallback_echo ()
5598 {
5599 eval 'cat <<_LTECHO_EOF
5600 $1
5601 _LTECHO_EOF'
5602 }
5603 ECHO='func_fallback_echo'
5604 fi
5605
5606 # func_echo_all arg...
5607 # Invoke $ECHO with all args, space-separated.
5608 func_echo_all ()
5609 {
5610 $ECHO ""
5611 }
5612
5613 case $ECHO in
5614 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5615 printf "%s\n" "printf" >&6; } ;;
5616 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5617 printf "%s\n" "print -r" >&6; } ;;
5618 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5619 printf "%s\n" "cat" >&6; } ;;
5620 esac
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5636 printf %s "checking for a sed that does not truncate output... " >&6; }
5637 if test ${ac_cv_path_SED+y}
5638 then :
5639 printf %s "(cached) " >&6
5640 else case e in #(
5641 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5642 for ac_i in 1 2 3 4 5 6 7; do
5643 ac_script="$ac_script$as_nl$ac_script"
5644 done
5645 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5646 { ac_script=; unset ac_script;}
5647 if test -z "$SED"; then
5648 ac_path_SED_found=false
5649 # Loop through the user's path and test for each of PROGNAME-LIST
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653 IFS=$as_save_IFS
5654 case $as_dir in #(((
5655 '') as_dir=./ ;;
5656 */) ;;
5657 *) as_dir=$as_dir/ ;;
5658 esac
5659 for ac_prog in sed gsed
5660 do
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5663 as_fn_executable_p "$ac_path_SED" || continue
5664 # Check for GNU ac_path_SED and select it if it is found.
5665 # Check for GNU $ac_path_SED
5666 case `"$ac_path_SED" --version 2>&1` in #(
5667 *GNU*)
5668 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5669 #(
5670 *)
5671 ac_count=0
5672 printf %s 0123456789 >"conftest.in"
5673 while :
5674 do
5675 cat "conftest.in" "conftest.in" >"conftest.tmp"
5676 mv "conftest.tmp" "conftest.in"
5677 cp "conftest.in" "conftest.nl"
5678 printf "%s\n" '' >> "conftest.nl"
5679 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5681 as_fn_arith $ac_count + 1 && ac_count=$as_val
5682 if test $ac_count -gt ${ac_path_SED_max-0}; then
5683 # Best one so far, save it but keep looking for a better one
5684 ac_cv_path_SED="$ac_path_SED"
5685 ac_path_SED_max=$ac_count
5686 fi
5687 # 10*(2^10) chars as input seems more than enough
5688 test $ac_count -gt 10 && break
5689 done
5690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5691 esac
5692
5693 $ac_path_SED_found && break 3
5694 done
5695 done
5696 done
5697 IFS=$as_save_IFS
5698 if test -z "$ac_cv_path_SED"; then
5699 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5700 fi
5701 else
5702 ac_cv_path_SED=$SED
5703 fi
5704 ;;
5705 esac
5706 fi
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5708 printf "%s\n" "$ac_cv_path_SED" >&6; }
5709 SED="$ac_cv_path_SED"
5710 rm -f conftest.sed
5711
5712 test -z "$SED" && SED=sed
5713 Xsed="$SED -e 1s/^X//"
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5726 printf %s "checking for grep that handles long lines and -e... " >&6; }
5727 if test ${ac_cv_path_GREP+y}
5728 then :
5729 printf %s "(cached) " >&6
5730 else case e in #(
5731 e) if test -z "$GREP"; then
5732 ac_path_GREP_found=false
5733 # Loop through the user's path and test for each of PROGNAME-LIST
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5736 do
5737 IFS=$as_save_IFS
5738 case $as_dir in #(((
5739 '') as_dir=./ ;;
5740 */) ;;
5741 *) as_dir=$as_dir/ ;;
5742 esac
5743 for ac_prog in grep ggrep
5744 do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5747 as_fn_executable_p "$ac_path_GREP" || continue
5748 # Check for GNU ac_path_GREP and select it if it is found.
5749 # Check for GNU $ac_path_GREP
5750 case `"$ac_path_GREP" --version 2>&1` in #(
5751 *GNU*)
5752 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5753 #(
5754 *)
5755 ac_count=0
5756 printf %s 0123456789 >"conftest.in"
5757 while :
5758 do
5759 cat "conftest.in" "conftest.in" >"conftest.tmp"
5760 mv "conftest.tmp" "conftest.in"
5761 cp "conftest.in" "conftest.nl"
5762 printf "%s\n" 'GREP' >> "conftest.nl"
5763 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5765 as_fn_arith $ac_count + 1 && ac_count=$as_val
5766 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5767 # Best one so far, save it but keep looking for a better one
5768 ac_cv_path_GREP="$ac_path_GREP"
5769 ac_path_GREP_max=$ac_count
5770 fi
5771 # 10*(2^10) chars as input seems more than enough
5772 test $ac_count -gt 10 && break
5773 done
5774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5775 esac
5776
5777 $ac_path_GREP_found && break 3
5778 done
5779 done
5780 done
5781 IFS=$as_save_IFS
5782 if test -z "$ac_cv_path_GREP"; then
5783 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5784 fi
5785 else
5786 ac_cv_path_GREP=$GREP
5787 fi
5788 ;;
5789 esac
5790 fi
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5792 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5793 GREP="$ac_cv_path_GREP"
5794
5795
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5797 printf %s "checking for egrep... " >&6; }
5798 if test ${ac_cv_path_EGREP+y}
5799 then :
5800 printf %s "(cached) " >&6
5801 else case e in #(
5802 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5803 then ac_cv_path_EGREP="$GREP -E"
5804 else
5805 if test -z "$EGREP"; then
5806 ac_path_EGREP_found=false
5807 # Loop through the user's path and test for each of PROGNAME-LIST
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5810 do
5811 IFS=$as_save_IFS
5812 case $as_dir in #(((
5813 '') as_dir=./ ;;
5814 */) ;;
5815 *) as_dir=$as_dir/ ;;
5816 esac
5817 for ac_prog in egrep
5818 do
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5821 as_fn_executable_p "$ac_path_EGREP" || continue
5822 # Check for GNU ac_path_EGREP and select it if it is found.
5823 # Check for GNU $ac_path_EGREP
5824 case `"$ac_path_EGREP" --version 2>&1` in #(
5825 *GNU*)
5826 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5827 #(
5828 *)
5829 ac_count=0
5830 printf %s 0123456789 >"conftest.in"
5831 while :
5832 do
5833 cat "conftest.in" "conftest.in" >"conftest.tmp"
5834 mv "conftest.tmp" "conftest.in"
5835 cp "conftest.in" "conftest.nl"
5836 printf "%s\n" 'EGREP' >> "conftest.nl"
5837 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5839 as_fn_arith $ac_count + 1 && ac_count=$as_val
5840 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5841 # Best one so far, save it but keep looking for a better one
5842 ac_cv_path_EGREP="$ac_path_EGREP"
5843 ac_path_EGREP_max=$ac_count
5844 fi
5845 # 10*(2^10) chars as input seems more than enough
5846 test $ac_count -gt 10 && break
5847 done
5848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5849 esac
5850
5851 $ac_path_EGREP_found && break 3
5852 done
5853 done
5854 done
5855 IFS=$as_save_IFS
5856 if test -z "$ac_cv_path_EGREP"; then
5857 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5858 fi
5859 else
5860 ac_cv_path_EGREP=$EGREP
5861 fi
5862
5863 fi ;;
5864 esac
5865 fi
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5867 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5868 EGREP="$ac_cv_path_EGREP"
5869
5870 EGREP_TRADITIONAL=$EGREP
5871 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5872
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5874 printf %s "checking for fgrep... " >&6; }
5875 if test ${ac_cv_path_FGREP+y}
5876 then :
5877 printf %s "(cached) " >&6
5878 else case e in #(
5879 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5880 then ac_cv_path_FGREP="$GREP -F"
5881 else
5882 if test -z "$FGREP"; then
5883 ac_path_FGREP_found=false
5884 # Loop through the user's path and test for each of PROGNAME-LIST
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5887 do
5888 IFS=$as_save_IFS
5889 case $as_dir in #(((
5890 '') as_dir=./ ;;
5891 */) ;;
5892 *) as_dir=$as_dir/ ;;
5893 esac
5894 for ac_prog in fgrep
5895 do
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5898 as_fn_executable_p "$ac_path_FGREP" || continue
5899 # Check for GNU ac_path_FGREP and select it if it is found.
5900 # Check for GNU $ac_path_FGREP
5901 case `"$ac_path_FGREP" --version 2>&1` in #(
5902 *GNU*)
5903 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5904 #(
5905 *)
5906 ac_count=0
5907 printf %s 0123456789 >"conftest.in"
5908 while :
5909 do
5910 cat "conftest.in" "conftest.in" >"conftest.tmp"
5911 mv "conftest.tmp" "conftest.in"
5912 cp "conftest.in" "conftest.nl"
5913 printf "%s\n" 'FGREP' >> "conftest.nl"
5914 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5916 as_fn_arith $ac_count + 1 && ac_count=$as_val
5917 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5918 # Best one so far, save it but keep looking for a better one
5919 ac_cv_path_FGREP="$ac_path_FGREP"
5920 ac_path_FGREP_max=$ac_count
5921 fi
5922 # 10*(2^10) chars as input seems more than enough
5923 test $ac_count -gt 10 && break
5924 done
5925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5926 esac
5927
5928 $ac_path_FGREP_found && break 3
5929 done
5930 done
5931 done
5932 IFS=$as_save_IFS
5933 if test -z "$ac_cv_path_FGREP"; then
5934 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5935 fi
5936 else
5937 ac_cv_path_FGREP=$FGREP
5938 fi
5939
5940 fi ;;
5941 esac
5942 fi
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5944 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5945 FGREP="$ac_cv_path_FGREP"
5946
5947
5948 test -z "$GREP" && GREP=grep
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968 # Check whether --with-gnu-ld was given.
5969 if test ${with_gnu_ld+y}
5970 then :
5971 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5972 else case e in #(
5973 e) with_gnu_ld=no ;;
5974 esac
5975 fi
5976
5977 ac_prog=ld
5978 if test yes = "$GCC"; then
5979 # Check if gcc -print-prog-name=ld gives a path.
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5981 printf %s "checking for ld used by $CC... " >&6; }
5982 case $host in
5983 *-*-mingw* | *-*-windows*)
5984 # gcc leaves a trailing carriage return, which upsets mingw
5985 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5986 *)
5987 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5988 esac
5989 case $ac_prog in
5990 # Accept absolute paths.
5991 [\\/]* | ?:[\\/]*)
5992 re_direlt='/[^/][^/]*/\.\./'
5993 # Canonicalize the pathname of ld
5994 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5995 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5996 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5997 done
5998 test -z "$LD" && LD=$ac_prog
5999 ;;
6000 "")
6001 # If it fails, then pretend we aren't using GCC.
6002 ac_prog=ld
6003 ;;
6004 *)
6005 # If it is relative, then search for the first ld in PATH.
6006 with_gnu_ld=unknown
6007 ;;
6008 esac
6009 elif test yes = "$with_gnu_ld"; then
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6011 printf %s "checking for GNU ld... " >&6; }
6012 else
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6014 printf %s "checking for non-GNU ld... " >&6; }
6015 fi
6016 if test ${lt_cv_path_LD+y}
6017 then :
6018 printf %s "(cached) " >&6
6019 else case e in #(
6020 e) if test -z "$LD"; then
6021 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6022 for ac_dir in $PATH; do
6023 IFS=$lt_save_ifs
6024 test -z "$ac_dir" && ac_dir=.
6025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6026 lt_cv_path_LD=$ac_dir/$ac_prog
6027 # Check to see if the program is GNU ld. I'd rather use --version,
6028 # but apparently some variants of GNU ld only accept -v.
6029 # Break only if it was the GNU/non-GNU ld that we prefer.
6030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6031 *GNU* | *'with BFD'*)
6032 test no != "$with_gnu_ld" && break
6033 ;;
6034 *)
6035 test yes != "$with_gnu_ld" && break
6036 ;;
6037 esac
6038 fi
6039 done
6040 IFS=$lt_save_ifs
6041 else
6042 lt_cv_path_LD=$LD # Let the user override the test with a path.
6043 fi ;;
6044 esac
6045 fi
6046
6047 LD=$lt_cv_path_LD
6048 if test -n "$LD"; then
6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6050 printf "%s\n" "$LD" >&6; }
6051 else
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 printf "%s\n" "no" >&6; }
6054 fi
6055 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6057 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6058 if test ${lt_cv_prog_gnu_ld+y}
6059 then :
6060 printf %s "(cached) " >&6
6061 else case e in #(
6062 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6063 case `$LD -v 2>&1 </dev/null` in
6064 *GNU* | *'with BFD'*)
6065 lt_cv_prog_gnu_ld=yes
6066 ;;
6067 *)
6068 lt_cv_prog_gnu_ld=no
6069 ;;
6070 esac ;;
6071 esac
6072 fi
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6074 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6075 with_gnu_ld=$lt_cv_prog_gnu_ld
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6086 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6087 if test ${lt_cv_path_NM+y}
6088 then :
6089 printf %s "(cached) " >&6
6090 else case e in #(
6091 e) if test -n "$NM"; then
6092 # Let the user override the test.
6093 lt_cv_path_NM=$NM
6094 else
6095 lt_nm_to_check=${ac_tool_prefix}nm
6096 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6097 lt_nm_to_check="$lt_nm_to_check nm"
6098 fi
6099 for lt_tmp_nm in $lt_nm_to_check; do
6100 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6101 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6102 IFS=$lt_save_ifs
6103 test -z "$ac_dir" && ac_dir=.
6104 tmp_nm=$ac_dir/$lt_tmp_nm
6105 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6106 # Check to see if the nm accepts a BSD-compat flag.
6107 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6108 # nm: unknown option "B" ignored
6109 # Tru64's nm complains that /dev/null is an invalid object file
6110 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6111 case $build_os in
6112 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6113 *) lt_bad_file=/dev/null ;;
6114 esac
6115 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6116 *$lt_bad_file* | *'Invalid file or object type'*)
6117 lt_cv_path_NM="$tmp_nm -B"
6118 break 2
6119 ;;
6120 *)
6121 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6122 */dev/null*)
6123 lt_cv_path_NM="$tmp_nm -p"
6124 break 2
6125 ;;
6126 *)
6127 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6128 continue # so that we can try to find one that supports BSD flags
6129 ;;
6130 esac
6131 ;;
6132 esac
6133 fi
6134 done
6135 IFS=$lt_save_ifs
6136 done
6137 : ${lt_cv_path_NM=no}
6138 fi ;;
6139 esac
6140 fi
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6142 printf "%s\n" "$lt_cv_path_NM" >&6; }
6143 if test no != "$lt_cv_path_NM"; then
6144 NM=$lt_cv_path_NM
6145 else
6146 # Didn't find any BSD compatible name lister, look for dumpbin.
6147 if test -n "$DUMPBIN"; then :
6148 # Let the user override the test.
6149 else
6150 if test -n "$ac_tool_prefix"; then
6151 for ac_prog in dumpbin "link -dump"
6152 do
6153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 printf %s "checking for $ac_word... " >&6; }
6157 if test ${ac_cv_prog_DUMPBIN+y}
6158 then :
6159 printf %s "(cached) " >&6
6160 else case e in #(
6161 e) if test -n "$DUMPBIN"; then
6162 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167 IFS=$as_save_IFS
6168 case $as_dir in #(((
6169 '') as_dir=./ ;;
6170 */) ;;
6171 *) as_dir=$as_dir/ ;;
6172 esac
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179 done
6180 done
6181 IFS=$as_save_IFS
6182
6183 fi ;;
6184 esac
6185 fi
6186 DUMPBIN=$ac_cv_prog_DUMPBIN
6187 if test -n "$DUMPBIN"; then
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6189 printf "%s\n" "$DUMPBIN" >&6; }
6190 else
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 printf "%s\n" "no" >&6; }
6193 fi
6194
6195
6196 test -n "$DUMPBIN" && break
6197 done
6198 fi
6199 if test -z "$DUMPBIN"; then
6200 ac_ct_DUMPBIN=$DUMPBIN
6201 for ac_prog in dumpbin "link -dump"
6202 do
6203 # Extract the first word of "$ac_prog", so it can be a program name with args.
6204 set dummy $ac_prog; ac_word=$2
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 printf %s "checking for $ac_word... " >&6; }
6207 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6208 then :
6209 printf %s "(cached) " >&6
6210 else case e in #(
6211 e) if test -n "$ac_ct_DUMPBIN"; then
6212 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217 IFS=$as_save_IFS
6218 case $as_dir in #(((
6219 '') as_dir=./ ;;
6220 */) ;;
6221 *) as_dir=$as_dir/ ;;
6222 esac
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6225 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 fi ;;
6234 esac
6235 fi
6236 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6237 if test -n "$ac_ct_DUMPBIN"; then
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6239 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6240 else
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 printf "%s\n" "no" >&6; }
6243 fi
6244
6245
6246 test -n "$ac_ct_DUMPBIN" && break
6247 done
6248
6249 if test "x$ac_ct_DUMPBIN" = x; then
6250 DUMPBIN=":"
6251 else
6252 case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258 DUMPBIN=$ac_ct_DUMPBIN
6259 fi
6260 fi
6261
6262 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6263 *COFF*)
6264 DUMPBIN="$DUMPBIN -symbols -headers"
6265 ;;
6266 *)
6267 DUMPBIN=:
6268 ;;
6269 esac
6270 fi
6271
6272 if test : != "$DUMPBIN"; then
6273 NM=$DUMPBIN
6274 fi
6275 fi
6276 test -z "$NM" && NM=nm
6277
6278
6279
6280
6281
6282
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6284 printf %s "checking the name lister ($NM) interface... " >&6; }
6285 if test ${lt_cv_nm_interface+y}
6286 then :
6287 printf %s "(cached) " >&6
6288 else case e in #(
6289 e) lt_cv_nm_interface="BSD nm"
6290 echo "int some_variable = 0;" > conftest.$ac_ext
6291 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6292 (eval "$ac_compile" 2>conftest.err)
6293 cat conftest.err >&5
6294 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6295 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6296 cat conftest.err >&5
6297 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6298 cat conftest.out >&5
6299 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6300 lt_cv_nm_interface="MS dumpbin"
6301 fi
6302 rm -f conftest* ;;
6303 esac
6304 fi
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6306 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6307
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6309 printf %s "checking whether ln -s works... " >&6; }
6310 LN_S=$as_ln_s
6311 if test "$LN_S" = "ln -s"; then
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6313 printf "%s\n" "yes" >&6; }
6314 else
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6316 printf "%s\n" "no, using $LN_S" >&6; }
6317 fi
6318
6319 # find the maximum length of command line arguments
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6321 printf %s "checking the maximum length of command line arguments... " >&6; }
6322 if test ${lt_cv_sys_max_cmd_len+y}
6323 then :
6324 printf %s "(cached) " >&6
6325 else case e in #(
6326 e) i=0
6327 teststring=ABCD
6328
6329 case $build_os in
6330 msdosdjgpp*)
6331 # On DJGPP, this test can blow up pretty badly due to problems in libc
6332 # (any single argument exceeding 2000 bytes causes a buffer overrun
6333 # during glob expansion). Even if it were fixed, the result of this
6334 # check would be larger than it should be.
6335 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6336 ;;
6337
6338 gnu* | ironclad*)
6339 # Under GNU Hurd and Ironclad, this test is not required because there
6340 # is no limit to the length of command line arguments.
6341 # Libtool will interpret -1 as no limit whatsoever
6342 lt_cv_sys_max_cmd_len=-1;
6343 ;;
6344
6345 cygwin* | mingw* | windows* | cegcc*)
6346 # On Win9x/ME, this test blows up -- it succeeds, but takes
6347 # about 5 minutes as the teststring grows exponentially.
6348 # Worse, since 9x/ME are not pre-emptively multitasking,
6349 # you end up with a "frozen" computer, even though with patience
6350 # the test eventually succeeds (with a max line length of 256k).
6351 # Instead, let's just punt: use the minimum linelength reported by
6352 # all of the supported platforms: 8192 (on NT/2K/XP).
6353 lt_cv_sys_max_cmd_len=8192;
6354 ;;
6355
6356 mint*)
6357 # On MiNT this can take a long time and run out of memory.
6358 lt_cv_sys_max_cmd_len=8192;
6359 ;;
6360
6361 amigaos*)
6362 # On AmigaOS with pdksh, this test takes hours, literally.
6363 # So we just punt and use a minimum line length of 8192.
6364 lt_cv_sys_max_cmd_len=8192;
6365 ;;
6366
6367 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6368 # This has been around since 386BSD, at least. Likely further.
6369 if test -x /sbin/sysctl; then
6370 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6371 elif test -x /usr/sbin/sysctl; then
6372 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6373 else
6374 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6375 fi
6376 # And add a safety zone
6377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6379 ;;
6380
6381 interix*)
6382 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6383 lt_cv_sys_max_cmd_len=196608
6384 ;;
6385
6386 os2*)
6387 # The test takes a long time on OS/2.
6388 lt_cv_sys_max_cmd_len=8192
6389 ;;
6390
6391 osf*)
6392 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6393 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6394 # nice to cause kernel panics so lets avoid the loop below.
6395 # First set a reasonable default.
6396 lt_cv_sys_max_cmd_len=16384
6397 #
6398 if test -x /sbin/sysconfig; then
6399 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6400 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6401 esac
6402 fi
6403 ;;
6404 sco3.2v5*)
6405 lt_cv_sys_max_cmd_len=102400
6406 ;;
6407 sysv5* | sco5v6* | sysv4.2uw2*)
6408 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6409 if test -n "$kargmax"; then
6410 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6411 else
6412 lt_cv_sys_max_cmd_len=32768
6413 fi
6414 ;;
6415 *)
6416 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6417 if test -n "$lt_cv_sys_max_cmd_len" && \
6418 test undefined != "$lt_cv_sys_max_cmd_len"; then
6419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6421 else
6422 # Make teststring a little bigger before we do anything with it.
6423 # a 1K string should be a reasonable start.
6424 for i in 1 2 3 4 5 6 7 8; do
6425 teststring=$teststring$teststring
6426 done
6427 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6428 # If test is not a shell built-in, we'll probably end up computing a
6429 # maximum length that is only half of the actual maximum length, but
6430 # we can't tell.
6431 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6432 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6433 test 17 != "$i" # 1/2 MB should be enough
6434 do
6435 i=`expr $i + 1`
6436 teststring=$teststring$teststring
6437 done
6438 # Only check the string length outside the loop.
6439 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6440 teststring=
6441 # Add a significant safety factor because C++ compilers can tack on
6442 # massive amounts of additional arguments before passing them to the
6443 # linker. It appears as though 1/2 is a usable value.
6444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6445 fi
6446 ;;
6447 esac
6448 ;;
6449 esac
6450 fi
6451
6452 if test -n "$lt_cv_sys_max_cmd_len"; then
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6454 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6455 else
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6457 printf "%s\n" "none" >&6; }
6458 fi
6459 max_cmd_len=$lt_cv_sys_max_cmd_len
6460
6461
6462
6463
6464
6465
6466 : ${CP="cp -f"}
6467 : ${MV="mv -f"}
6468 : ${RM="rm -f"}
6469
6470 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6471 lt_unset=unset
6472 else
6473 lt_unset=false
6474 fi
6475
6476
6477
6478
6479
6480 # test EBCDIC or ASCII
6481 case `echo X|tr X '\101'` in
6482 A) # ASCII based system
6483 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6484 lt_SP2NL='tr \040 \012'
6485 lt_NL2SP='tr \015\012 \040\040'
6486 ;;
6487 *) # EBCDIC based system
6488 lt_SP2NL='tr \100 \n'
6489 lt_NL2SP='tr \r\n \100\100'
6490 ;;
6491 esac
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6502 printf %s "checking how to convert $build file names to $host format... " >&6; }
6503 if test ${lt_cv_to_host_file_cmd+y}
6504 then :
6505 printf %s "(cached) " >&6
6506 else case e in #(
6507 e) case $host in
6508 *-*-mingw* )
6509 case $build in
6510 *-*-mingw* | *-*-windows* ) # actually msys
6511 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6512 ;;
6513 *-*-cygwin* )
6514 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6515 ;;
6516 * ) # otherwise, assume *nix
6517 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6518 ;;
6519 esac
6520 ;;
6521 *-*-cygwin* )
6522 case $build in
6523 *-*-mingw* | *-*-windows* ) # actually msys
6524 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6525 ;;
6526 *-*-cygwin* )
6527 lt_cv_to_host_file_cmd=func_convert_file_noop
6528 ;;
6529 * ) # otherwise, assume *nix
6530 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6531 ;;
6532 esac
6533 ;;
6534 * ) # unhandled hosts (and "normal" native builds)
6535 lt_cv_to_host_file_cmd=func_convert_file_noop
6536 ;;
6537 esac
6538 ;;
6539 esac
6540 fi
6541
6542 to_host_file_cmd=$lt_cv_to_host_file_cmd
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6544 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6545
6546
6547
6548
6549
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6551 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6552 if test ${lt_cv_to_tool_file_cmd+y}
6553 then :
6554 printf %s "(cached) " >&6
6555 else case e in #(
6556 e) #assume ordinary cross tools, or native build.
6557 lt_cv_to_tool_file_cmd=func_convert_file_noop
6558 case $host in
6559 *-*-mingw* | *-*-windows* )
6560 case $build in
6561 *-*-mingw* | *-*-windows* ) # actually msys
6562 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6563 ;;
6564 esac
6565 ;;
6566 esac
6567 ;;
6568 esac
6569 fi
6570
6571 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6573 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6574
6575
6576
6577
6578
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6580 printf %s "checking for $LD option to reload object files... " >&6; }
6581 if test ${lt_cv_ld_reload_flag+y}
6582 then :
6583 printf %s "(cached) " >&6
6584 else case e in #(
6585 e) lt_cv_ld_reload_flag='-r' ;;
6586 esac
6587 fi
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6589 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6590 reload_flag=$lt_cv_ld_reload_flag
6591 case $reload_flag in
6592 "" | " "*) ;;
6593 *) reload_flag=" $reload_flag" ;;
6594 esac
6595 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6596 case $host_os in
6597 cygwin* | mingw* | windows* | pw32* | cegcc*)
6598 if test yes != "$GCC"; then
6599 reload_cmds=false
6600 fi
6601 ;;
6602 darwin*)
6603 if test yes = "$GCC"; then
6604 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6605 else
6606 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6607 fi
6608 ;;
6609 esac
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619 # Extract the first word of "file", so it can be a program name with args.
6620 set dummy file; ac_word=$2
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 printf %s "checking for $ac_word... " >&6; }
6623 if test ${ac_cv_prog_FILECMD+y}
6624 then :
6625 printf %s "(cached) " >&6
6626 else case e in #(
6627 e) if test -n "$FILECMD"; then
6628 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633 IFS=$as_save_IFS
6634 case $as_dir in #(((
6635 '') as_dir=./ ;;
6636 */) ;;
6637 *) as_dir=$as_dir/ ;;
6638 esac
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_FILECMD="file"
6642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6650 fi ;;
6651 esac
6652 fi
6653 FILECMD=$ac_cv_prog_FILECMD
6654 if test -n "$FILECMD"; then
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6656 printf "%s\n" "$FILECMD" >&6; }
6657 else
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 printf "%s\n" "no" >&6; }
6660 fi
6661
6662
6663
6664
6665
6666
6667
6668
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 printf %s "checking for $ac_word... " >&6; }
6674 if test ${ac_cv_prog_OBJDUMP+y}
6675 then :
6676 printf %s "(cached) " >&6
6677 else case e in #(
6678 e) if test -n "$OBJDUMP"; then
6679 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684 IFS=$as_save_IFS
6685 case $as_dir in #(((
6686 '') as_dir=./ ;;
6687 */) ;;
6688 *) as_dir=$as_dir/ ;;
6689 esac
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6692 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6694 break 2
6695 fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi ;;
6701 esac
6702 fi
6703 OBJDUMP=$ac_cv_prog_OBJDUMP
6704 if test -n "$OBJDUMP"; then
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6706 printf "%s\n" "$OBJDUMP" >&6; }
6707 else
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 printf "%s\n" "no" >&6; }
6710 fi
6711
6712
6713 fi
6714 if test -z "$ac_cv_prog_OBJDUMP"; then
6715 ac_ct_OBJDUMP=$OBJDUMP
6716 # Extract the first word of "objdump", so it can be a program name with args.
6717 set dummy objdump; ac_word=$2
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 printf %s "checking for $ac_word... " >&6; }
6720 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6721 then :
6722 printf %s "(cached) " >&6
6723 else case e in #(
6724 e) if test -n "$ac_ct_OBJDUMP"; then
6725 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730 IFS=$as_save_IFS
6731 case $as_dir in #(((
6732 '') as_dir=./ ;;
6733 */) ;;
6734 *) as_dir=$as_dir/ ;;
6735 esac
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi ;;
6747 esac
6748 fi
6749 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6750 if test -n "$ac_ct_OBJDUMP"; then
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6752 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6753 else
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 printf "%s\n" "no" >&6; }
6756 fi
6757
6758 if test "x$ac_ct_OBJDUMP" = x; then
6759 OBJDUMP="false"
6760 else
6761 case $cross_compiling:$ac_tool_warned in
6762 yes:)
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765 ac_tool_warned=yes ;;
6766 esac
6767 OBJDUMP=$ac_ct_OBJDUMP
6768 fi
6769 else
6770 OBJDUMP="$ac_cv_prog_OBJDUMP"
6771 fi
6772
6773 test -z "$OBJDUMP" && OBJDUMP=objdump
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6784 printf %s "checking how to recognize dependent libraries... " >&6; }
6785 if test ${lt_cv_deplibs_check_method+y}
6786 then :
6787 printf %s "(cached) " >&6
6788 else case e in #(
6789 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6790 lt_cv_file_magic_test_file=
6791 lt_cv_deplibs_check_method='unknown'
6792 # Need to set the preceding variable on all platforms that support
6793 # interlibrary dependencies.
6794 # 'none' -- dependencies not supported.
6795 # 'unknown' -- same as none, but documents that we really don't know.
6796 # 'pass_all' -- all dependencies passed with no checks.
6797 # 'file_magic [[regex]]' -- check by looking for files in library path
6798 # that responds to the $file_magic_cmd with a given extended regex.
6799 # If you have 'file' or equivalent on your system and you're not sure
6800 # whether 'pass_all' will *always* work, you probably want this one.
6801
6802 case $host_os in
6803 aix[4-9]*)
6804 lt_cv_deplibs_check_method=pass_all
6805 ;;
6806
6807 beos*)
6808 lt_cv_deplibs_check_method=pass_all
6809 ;;
6810
6811 bsdi[45]*)
6812 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6813 lt_cv_file_magic_cmd='$FILECMD -L'
6814 lt_cv_file_magic_test_file=/shlib/libc.so
6815 ;;
6816
6817 cygwin*)
6818 # func_win32_libid is a shell function defined in ltmain.sh
6819 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6820 lt_cv_file_magic_cmd='func_win32_libid'
6821 ;;
6822
6823 mingw* | windows* | pw32*)
6824 # Base MSYS/MinGW do not provide the 'file' command needed by
6825 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6826 # unless we find 'file', for example because we are cross-compiling.
6827 if ( file / ) >/dev/null 2>&1; then
6828 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6829 lt_cv_file_magic_cmd='func_win32_libid'
6830 else
6831 # Keep this pattern in sync with the one in func_win32_libid.
6832 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6833 lt_cv_file_magic_cmd='$OBJDUMP -f'
6834 fi
6835 ;;
6836
6837 cegcc*)
6838 # use the weaker test based on 'objdump'. See mingw*.
6839 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6840 lt_cv_file_magic_cmd='$OBJDUMP -f'
6841 ;;
6842
6843 darwin* | rhapsody*)
6844 lt_cv_deplibs_check_method=pass_all
6845 ;;
6846
6847 freebsd* | dragonfly* | midnightbsd*)
6848 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6849 case $host_cpu in
6850 i*86 )
6851 # Not sure whether the presence of OpenBSD here was a mistake.
6852 # Let's accept both of them until this is cleared up.
6853 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6854 lt_cv_file_magic_cmd=$FILECMD
6855 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6856 ;;
6857 esac
6858 else
6859 lt_cv_deplibs_check_method=pass_all
6860 fi
6861 ;;
6862
6863 haiku*)
6864 lt_cv_deplibs_check_method=pass_all
6865 ;;
6866
6867 hpux10.20* | hpux11*)
6868 lt_cv_file_magic_cmd=$FILECMD
6869 case $host_cpu in
6870 ia64*)
6871 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6872 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6873 ;;
6874 hppa*64*)
6875 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]'
6876 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6877 ;;
6878 *)
6879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6880 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6881 ;;
6882 esac
6883 ;;
6884
6885 interix[3-9]*)
6886 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6887 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6888 ;;
6889
6890 irix5* | irix6* | nonstopux*)
6891 case $LD in
6892 *-32|*"-32 ") libmagic=32-bit;;
6893 *-n32|*"-n32 ") libmagic=N32;;
6894 *-64|*"-64 ") libmagic=64-bit;;
6895 *) libmagic=never-match;;
6896 esac
6897 lt_cv_deplibs_check_method=pass_all
6898 ;;
6899
6900 # This must be glibc/ELF.
6901 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6902 lt_cv_deplibs_check_method=pass_all
6903 ;;
6904
6905 *-mlibc)
6906 lt_cv_deplibs_check_method=pass_all
6907 ;;
6908
6909 netbsd* | netbsdelf*-gnu)
6910 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6912 else
6913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6914 fi
6915 ;;
6916
6917 newos6*)
6918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6919 lt_cv_file_magic_cmd=$FILECMD
6920 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6921 ;;
6922
6923 *nto* | *qnx*)
6924 lt_cv_deplibs_check_method=pass_all
6925 ;;
6926
6927 openbsd*)
6928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6930 else
6931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6932 fi
6933 ;;
6934
6935 osf3* | osf4* | osf5*)
6936 lt_cv_deplibs_check_method=pass_all
6937 ;;
6938
6939 rdos*)
6940 lt_cv_deplibs_check_method=pass_all
6941 ;;
6942
6943 serenity*)
6944 lt_cv_deplibs_check_method=pass_all
6945 ;;
6946
6947 solaris*)
6948 lt_cv_deplibs_check_method=pass_all
6949 ;;
6950
6951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6952 lt_cv_deplibs_check_method=pass_all
6953 ;;
6954
6955 sysv4 | sysv4.3*)
6956 case $host_vendor in
6957 motorola)
6958 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]'
6959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6960 ;;
6961 ncr)
6962 lt_cv_deplibs_check_method=pass_all
6963 ;;
6964 sequent)
6965 lt_cv_file_magic_cmd='/bin/file'
6966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6967 ;;
6968 sni)
6969 lt_cv_file_magic_cmd='/bin/file'
6970 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6971 lt_cv_file_magic_test_file=/lib/libc.so
6972 ;;
6973 siemens)
6974 lt_cv_deplibs_check_method=pass_all
6975 ;;
6976 pc)
6977 lt_cv_deplibs_check_method=pass_all
6978 ;;
6979 esac
6980 ;;
6981
6982 tpf*)
6983 lt_cv_deplibs_check_method=pass_all
6984 ;;
6985 os2*)
6986 lt_cv_deplibs_check_method=pass_all
6987 ;;
6988 esac
6989 ;;
6990 esac
6991 fi
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6993 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6994
6995 file_magic_glob=
6996 want_nocaseglob=no
6997 if test "$build" = "$host"; then
6998 case $host_os in
6999 mingw* | windows* | pw32*)
7000 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7001 want_nocaseglob=yes
7002 else
7003 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7004 fi
7005 ;;
7006 esac
7007 fi
7008
7009 file_magic_cmd=$lt_cv_file_magic_cmd
7010 deplibs_check_method=$lt_cv_deplibs_check_method
7011 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 printf %s "checking for $ac_word... " >&6; }
7039 if test ${ac_cv_prog_DLLTOOL+y}
7040 then :
7041 printf %s "(cached) " >&6
7042 else case e in #(
7043 e) if test -n "$DLLTOOL"; then
7044 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049 IFS=$as_save_IFS
7050 case $as_dir in #(((
7051 '') as_dir=./ ;;
7052 */) ;;
7053 *) as_dir=$as_dir/ ;;
7054 esac
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065 fi ;;
7066 esac
7067 fi
7068 DLLTOOL=$ac_cv_prog_DLLTOOL
7069 if test -n "$DLLTOOL"; then
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7071 printf "%s\n" "$DLLTOOL" >&6; }
7072 else
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 printf "%s\n" "no" >&6; }
7075 fi
7076
7077
7078 fi
7079 if test -z "$ac_cv_prog_DLLTOOL"; then
7080 ac_ct_DLLTOOL=$DLLTOOL
7081 # Extract the first word of "dlltool", so it can be a program name with args.
7082 set dummy dlltool; ac_word=$2
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 printf %s "checking for $ac_word... " >&6; }
7085 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7086 then :
7087 printf %s "(cached) " >&6
7088 else case e in #(
7089 e) if test -n "$ac_ct_DLLTOOL"; then
7090 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095 IFS=$as_save_IFS
7096 case $as_dir in #(((
7097 '') as_dir=./ ;;
7098 */) ;;
7099 *) as_dir=$as_dir/ ;;
7100 esac
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7103 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111 fi ;;
7112 esac
7113 fi
7114 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7115 if test -n "$ac_ct_DLLTOOL"; then
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7117 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7118 else
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 printf "%s\n" "no" >&6; }
7121 fi
7122
7123 if test "x$ac_ct_DLLTOOL" = x; then
7124 DLLTOOL="false"
7125 else
7126 case $cross_compiling:$ac_tool_warned in
7127 yes:)
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7129 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7130 ac_tool_warned=yes ;;
7131 esac
7132 DLLTOOL=$ac_ct_DLLTOOL
7133 fi
7134 else
7135 DLLTOOL="$ac_cv_prog_DLLTOOL"
7136 fi
7137
7138 test -z "$DLLTOOL" && DLLTOOL=dlltool
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7150 printf %s "checking how to associate runtime and link libraries... " >&6; }
7151 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7152 then :
7153 printf %s "(cached) " >&6
7154 else case e in #(
7155 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7156
7157 case $host_os in
7158 cygwin* | mingw* | windows* | pw32* | cegcc*)
7159 # two different shell functions defined in ltmain.sh;
7160 # decide which one to use based on capabilities of $DLLTOOL
7161 case `$DLLTOOL --help 2>&1` in
7162 *--identify-strict*)
7163 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7164 ;;
7165 *)
7166 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7167 ;;
7168 esac
7169 ;;
7170 *)
7171 # fallback: assume linklib IS sharedlib
7172 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7173 ;;
7174 esac
7175 ;;
7176 esac
7177 fi
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7179 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7180 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7181 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7182
7183
7184
7185
7186
7187
7188
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 printf %s "checking for $ac_word... " >&6; }
7194 if test ${ac_cv_prog_RANLIB+y}
7195 then :
7196 printf %s "(cached) " >&6
7197 else case e in #(
7198 e) if test -n "$RANLIB"; then
7199 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204 IFS=$as_save_IFS
7205 case $as_dir in #(((
7206 '') as_dir=./ ;;
7207 */) ;;
7208 *) as_dir=$as_dir/ ;;
7209 esac
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220 fi ;;
7221 esac
7222 fi
7223 RANLIB=$ac_cv_prog_RANLIB
7224 if test -n "$RANLIB"; then
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7226 printf "%s\n" "$RANLIB" >&6; }
7227 else
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 printf "%s\n" "no" >&6; }
7230 fi
7231
7232
7233 fi
7234 if test -z "$ac_cv_prog_RANLIB"; then
7235 ac_ct_RANLIB=$RANLIB
7236 # Extract the first word of "ranlib", so it can be a program name with args.
7237 set dummy ranlib; ac_word=$2
7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 printf %s "checking for $ac_word... " >&6; }
7240 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7241 then :
7242 printf %s "(cached) " >&6
7243 else case e in #(
7244 e) if test -n "$ac_ct_RANLIB"; then
7245 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250 IFS=$as_save_IFS
7251 case $as_dir in #(((
7252 '') as_dir=./ ;;
7253 */) ;;
7254 *) as_dir=$as_dir/ ;;
7255 esac
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7258 ac_cv_prog_ac_ct_RANLIB="ranlib"
7259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7260 break 2
7261 fi
7262 done
7263 done
7264 IFS=$as_save_IFS
7265
7266 fi ;;
7267 esac
7268 fi
7269 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7270 if test -n "$ac_ct_RANLIB"; then
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7272 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7273 else
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 printf "%s\n" "no" >&6; }
7276 fi
7277
7278 if test "x$ac_ct_RANLIB" = x; then
7279 RANLIB=":"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287 RANLIB=$ac_ct_RANLIB
7288 fi
7289 else
7290 RANLIB="$ac_cv_prog_RANLIB"
7291 fi
7292
7293 if test -n "$ac_tool_prefix"; then
7294 for ac_prog in ar
7295 do
7296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 printf %s "checking for $ac_word... " >&6; }
7300 if test ${ac_cv_prog_AR+y}
7301 then :
7302 printf %s "(cached) " >&6
7303 else case e in #(
7304 e) if test -n "$AR"; then
7305 ac_cv_prog_AR="$AR" # Let the user override the test.
7306 else
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310 IFS=$as_save_IFS
7311 case $as_dir in #(((
7312 '') as_dir=./ ;;
7313 */) ;;
7314 *) as_dir=$as_dir/ ;;
7315 esac
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7318 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7320 break 2
7321 fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326 fi ;;
7327 esac
7328 fi
7329 AR=$ac_cv_prog_AR
7330 if test -n "$AR"; then
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7332 printf "%s\n" "$AR" >&6; }
7333 else
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 printf "%s\n" "no" >&6; }
7336 fi
7337
7338
7339 test -n "$AR" && break
7340 done
7341 fi
7342 if test -z "$AR"; then
7343 ac_ct_AR=$AR
7344 for ac_prog in ar
7345 do
7346 # Extract the first word of "$ac_prog", so it can be a program name with args.
7347 set dummy $ac_prog; ac_word=$2
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 printf %s "checking for $ac_word... " >&6; }
7350 if test ${ac_cv_prog_ac_ct_AR+y}
7351 then :
7352 printf %s "(cached) " >&6
7353 else case e in #(
7354 e) if test -n "$ac_ct_AR"; then
7355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360 IFS=$as_save_IFS
7361 case $as_dir in #(((
7362 '') as_dir=./ ;;
7363 */) ;;
7364 *) as_dir=$as_dir/ ;;
7365 esac
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_ac_ct_AR="$ac_prog"
7369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7370 break 2
7371 fi
7372 done
7373 done
7374 IFS=$as_save_IFS
7375
7376 fi ;;
7377 esac
7378 fi
7379 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7380 if test -n "$ac_ct_AR"; then
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7382 printf "%s\n" "$ac_ct_AR" >&6; }
7383 else
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 printf "%s\n" "no" >&6; }
7386 fi
7387
7388
7389 test -n "$ac_ct_AR" && break
7390 done
7391
7392 if test "x$ac_ct_AR" = x; then
7393 AR="false"
7394 else
7395 case $cross_compiling:$ac_tool_warned in
7396 yes:)
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7400 esac
7401 AR=$ac_ct_AR
7402 fi
7403 fi
7404
7405 : ${AR=ar}
7406
7407
7408
7409
7410
7411
7412 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7413 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7414 # higher priority because that's what people were doing historically (setting
7415 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7416 # variable obsoleted/removed.
7417
7418 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7419 lt_ar_flags=$AR_FLAGS
7420
7421
7422
7423
7424
7425
7426 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7427 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7428
7429
7430
7431
7432
7433
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7435 printf %s "checking for archiver @FILE support... " >&6; }
7436 if test ${lt_cv_ar_at_file+y}
7437 then :
7438 printf %s "(cached) " >&6
7439 else case e in #(
7440 e) lt_cv_ar_at_file=no
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443
7444 int
7445 main (void)
7446 {
7447
7448 ;
7449 return 0;
7450 }
7451 _ACEOF
7452 if ac_fn_c_try_compile "$LINENO"
7453 then :
7454 echo conftest.$ac_objext > conftest.lst
7455 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7457 (eval $lt_ar_try) 2>&5
7458 ac_status=$?
7459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7460 test $ac_status = 0; }
7461 if test 0 -eq "$ac_status"; then
7462 # Ensure the archiver fails upon bogus file names.
7463 rm -f conftest.$ac_objext libconftest.a
7464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7465 (eval $lt_ar_try) 2>&5
7466 ac_status=$?
7467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7468 test $ac_status = 0; }
7469 if test 0 -ne "$ac_status"; then
7470 lt_cv_ar_at_file=@
7471 fi
7472 fi
7473 rm -f conftest.* libconftest.a
7474
7475 fi
7476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7477 ;;
7478 esac
7479 fi
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7481 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7482
7483 if test no = "$lt_cv_ar_at_file"; then
7484 archiver_list_spec=
7485 else
7486 archiver_list_spec=$lt_cv_ar_at_file
7487 fi
7488
7489
7490
7491
7492
7493
7494
7495 if test -n "$ac_tool_prefix"; then
7496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7497 set dummy ${ac_tool_prefix}strip; ac_word=$2
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 printf %s "checking for $ac_word... " >&6; }
7500 if test ${ac_cv_prog_STRIP+y}
7501 then :
7502 printf %s "(cached) " >&6
7503 else case e in #(
7504 e) if test -n "$STRIP"; then
7505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7506 else
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510 IFS=$as_save_IFS
7511 case $as_dir in #(((
7512 '') as_dir=./ ;;
7513 */) ;;
7514 *) as_dir=$as_dir/ ;;
7515 esac
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526 fi ;;
7527 esac
7528 fi
7529 STRIP=$ac_cv_prog_STRIP
7530 if test -n "$STRIP"; then
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7532 printf "%s\n" "$STRIP" >&6; }
7533 else
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 printf "%s\n" "no" >&6; }
7536 fi
7537
7538
7539 fi
7540 if test -z "$ac_cv_prog_STRIP"; then
7541 ac_ct_STRIP=$STRIP
7542 # Extract the first word of "strip", so it can be a program name with args.
7543 set dummy strip; ac_word=$2
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 printf %s "checking for $ac_word... " >&6; }
7546 if test ${ac_cv_prog_ac_ct_STRIP+y}
7547 then :
7548 printf %s "(cached) " >&6
7549 else case e in #(
7550 e) if test -n "$ac_ct_STRIP"; then
7551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556 IFS=$as_save_IFS
7557 case $as_dir in #(((
7558 '') as_dir=./ ;;
7559 */) ;;
7560 *) as_dir=$as_dir/ ;;
7561 esac
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_ac_ct_STRIP="strip"
7565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568 done
7569 done
7570 IFS=$as_save_IFS
7571
7572 fi ;;
7573 esac
7574 fi
7575 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7576 if test -n "$ac_ct_STRIP"; then
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7578 printf "%s\n" "$ac_ct_STRIP" >&6; }
7579 else
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 printf "%s\n" "no" >&6; }
7582 fi
7583
7584 if test "x$ac_ct_STRIP" = x; then
7585 STRIP=":"
7586 else
7587 case $cross_compiling:$ac_tool_warned in
7588 yes:)
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591 ac_tool_warned=yes ;;
7592 esac
7593 STRIP=$ac_ct_STRIP
7594 fi
7595 else
7596 STRIP="$ac_cv_prog_STRIP"
7597 fi
7598
7599 test -z "$STRIP" && STRIP=:
7600
7601
7602
7603
7604
7605
7606
7607 test -z "$RANLIB" && RANLIB=:
7608
7609
7610
7611
7612
7613
7614 # Determine commands to create old-style static archives.
7615 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7616 old_postinstall_cmds='chmod 644 $oldlib'
7617 old_postuninstall_cmds=
7618
7619 if test -n "$RANLIB"; then
7620 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7621 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7622 fi
7623
7624 case $host_os in
7625 darwin*)
7626 lock_old_archive_extraction=yes ;;
7627 *)
7628 lock_old_archive_extraction=no ;;
7629 esac
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669 # If no C compiler was specified, use CC.
7670 LTCC=${LTCC-"$CC"}
7671
7672 # If no C compiler flags were specified, use CFLAGS.
7673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7674
7675 # Allow CC to be a program name with arguments.
7676 compiler=$CC
7677
7678
7679 # Check for command to grab the raw symbol name followed by C symbol from nm.
7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7681 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7682 if test ${lt_cv_sys_global_symbol_pipe+y}
7683 then :
7684 printf %s "(cached) " >&6
7685 else case e in #(
7686 e)
7687 # These are sane defaults that work on at least a few old systems.
7688 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7689
7690 # Character class describing NM global symbol codes.
7691 symcode='[BCDEGRST]'
7692
7693 # Regexp to match symbols that can be accessed directly from C.
7694 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7695
7696 # Define system-specific variables.
7697 case $host_os in
7698 aix*)
7699 symcode='[BCDT]'
7700 ;;
7701 cygwin* | mingw* | windows* | pw32* | cegcc*)
7702 symcode='[ABCDGISTW]'
7703 ;;
7704 hpux*)
7705 if test ia64 = "$host_cpu"; then
7706 symcode='[ABCDEGRST]'
7707 fi
7708 ;;
7709 irix* | nonstopux*)
7710 symcode='[BCDEGRST]'
7711 ;;
7712 osf*)
7713 symcode='[BCDEGQRST]'
7714 ;;
7715 solaris*)
7716 symcode='[BCDRT]'
7717 ;;
7718 sco3.2v5*)
7719 symcode='[DT]'
7720 ;;
7721 sysv4.2uw2*)
7722 symcode='[DT]'
7723 ;;
7724 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7725 symcode='[ABDT]'
7726 ;;
7727 sysv4)
7728 symcode='[DFNSTU]'
7729 ;;
7730 esac
7731
7732 # If we're using GNU nm, then use its standard symbol codes.
7733 case `$NM -V 2>&1` in
7734 *GNU* | *'with BFD'*)
7735 symcode='[ABCDGIRSTW]' ;;
7736 esac
7737
7738 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7739 # Gets list of data symbols to import.
7740 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7741 # Adjust the below global symbol transforms to fixup imported variables.
7742 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7743 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7744 lt_c_name_lib_hook="\
7745 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7746 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7747 else
7748 # Disable hooks by default.
7749 lt_cv_sys_global_symbol_to_import=
7750 lt_cdecl_hook=
7751 lt_c_name_hook=
7752 lt_c_name_lib_hook=
7753 fi
7754
7755 # Transform an extracted symbol line into a proper C declaration.
7756 # Some systems (esp. on ia64) link data and code symbols differently,
7757 # so use this general approach.
7758 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7759 $lt_cdecl_hook\
7760 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7761 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7762
7763 # Transform an extracted symbol line into symbol name and symbol address
7764 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7765 $lt_c_name_hook\
7766 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7767 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7768
7769 # Transform an extracted symbol line into symbol name with lib prefix and
7770 # symbol address.
7771 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7772 $lt_c_name_lib_hook\
7773 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7774 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7775 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7776
7777 # Handle CRLF in mingw tool chain
7778 opt_cr=
7779 case $build_os in
7780 mingw* | windows*)
7781 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7782 ;;
7783 esac
7784
7785 # Try without a prefix underscore, then with it.
7786 for ac_symprfx in "" "_"; do
7787
7788 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7789 symxfrm="\\1 $ac_symprfx\\2 \\2"
7790
7791 # Write the raw and C identifiers.
7792 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7793 # Fake it for dumpbin and say T for any non-static function,
7794 # D for any global variable and I for any imported variable.
7795 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7796 # which start with @ or ?.
7797 lt_cv_sys_global_symbol_pipe="$AWK '"\
7798 " {last_section=section; section=\$ 3};"\
7799 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7800 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7801 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7802 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7803 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7804 " \$ 0!~/External *\|/{next};"\
7805 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7806 " {if(hide[section]) next};"\
7807 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7808 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7809 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7810 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7811 " ' prfx=^$ac_symprfx"
7812 else
7813 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7814 fi
7815 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7816
7817 # Check to see that the pipe works correctly.
7818 pipe_works=no
7819
7820 rm -f conftest*
7821 cat > conftest.$ac_ext <<_LT_EOF
7822 #ifdef __cplusplus
7823 extern "C" {
7824 #endif
7825 char nm_test_var;
7826 void nm_test_func(void);
7827 void nm_test_func(void){}
7828 #ifdef __cplusplus
7829 }
7830 #endif
7831 int main(void){nm_test_var='a';nm_test_func();return(0);}
7832 _LT_EOF
7833
7834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7835 (eval $ac_compile) 2>&5
7836 ac_status=$?
7837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7838 test $ac_status = 0; }; then
7839 # Now try to grab the symbols.
7840 nlist=conftest.nm
7841 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7842 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7843 # Try sorting and uniquifying the output.
7844 if sort "$nlist" | uniq > "$nlist"T; then
7845 mv -f "$nlist"T "$nlist"
7846 else
7847 rm -f "$nlist"T
7848 fi
7849
7850 # Make sure that we snagged all the symbols we need.
7851 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7852 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7853 cat <<_LT_EOF > conftest.$ac_ext
7854 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7855 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7856 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7857 relocations are performed -- see ld's documentation on pseudo-relocs. */
7858 # define LT_DLSYM_CONST
7859 #elif defined __osf__
7860 /* This system does not cope well with relocations in const data. */
7861 # define LT_DLSYM_CONST
7862 #else
7863 # define LT_DLSYM_CONST const
7864 #endif
7865
7866 #ifdef __cplusplus
7867 extern "C" {
7868 #endif
7869
7870 _LT_EOF
7871 # Now generate the symbol file.
7872 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7873
7874 cat <<_LT_EOF >> conftest.$ac_ext
7875
7876 /* The mapping between symbol names and symbols. */
7877 LT_DLSYM_CONST struct {
7878 const char *name;
7879 void *address;
7880 }
7881 lt__PROGRAM__LTX_preloaded_symbols[] =
7882 {
7883 { "@PROGRAM@", (void *) 0 },
7884 _LT_EOF
7885 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7886 cat <<\_LT_EOF >> conftest.$ac_ext
7887 {0, (void *) 0}
7888 };
7889
7890 /* This works around a problem in FreeBSD linker */
7891 #ifdef FREEBSD_WORKAROUND
7892 static const void *lt_preloaded_setup() {
7893 return lt__PROGRAM__LTX_preloaded_symbols;
7894 }
7895 #endif
7896
7897 #ifdef __cplusplus
7898 }
7899 #endif
7900 _LT_EOF
7901 # Now try linking the two files.
7902 mv conftest.$ac_objext conftstm.$ac_objext
7903 lt_globsym_save_LIBS=$LIBS
7904 lt_globsym_save_CFLAGS=$CFLAGS
7905 LIBS=conftstm.$ac_objext
7906 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7908 (eval $ac_link) 2>&5
7909 ac_status=$?
7910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7911 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7912 pipe_works=yes
7913 fi
7914 LIBS=$lt_globsym_save_LIBS
7915 CFLAGS=$lt_globsym_save_CFLAGS
7916 else
7917 echo "cannot find nm_test_func in $nlist" >&5
7918 fi
7919 else
7920 echo "cannot find nm_test_var in $nlist" >&5
7921 fi
7922 else
7923 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7924 fi
7925 else
7926 echo "$progname: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7928 fi
7929 rm -rf conftest* conftst*
7930
7931 # Do not use the global_symbol_pipe unless it works.
7932 if test yes = "$pipe_works"; then
7933 break
7934 else
7935 lt_cv_sys_global_symbol_pipe=
7936 fi
7937 done
7938 ;;
7939 esac
7940 fi
7941
7942 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7943 lt_cv_sys_global_symbol_to_cdecl=
7944 fi
7945 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7947 printf "%s\n" "failed" >&6; }
7948 else
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7950 printf "%s\n" "ok" >&6; }
7951 fi
7952
7953 # Response file support.
7954 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7955 nm_file_list_spec='@'
7956 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7957 nm_file_list_spec='@'
7958 fi
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7997 printf %s "checking for sysroot... " >&6; }
7998
7999 # Check whether --with-sysroot was given.
8000 if test ${with_sysroot+y}
8001 then :
8002 withval=$with_sysroot;
8003 else case e in #(
8004 e) with_sysroot=no ;;
8005 esac
8006 fi
8007
8008
8009 lt_sysroot=
8010 case $with_sysroot in #(
8011 yes)
8012 if test yes = "$GCC"; then
8013 # Trim trailing / since we'll always append absolute paths and we want
8014 # to avoid //, if only for less confusing output for the user.
8015 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8016 fi
8017 ;; #(
8018 /*)
8019 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8020 ;; #(
8021 no|'')
8022 ;; #(
8023 *)
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8025 printf "%s\n" "$with_sysroot" >&6; }
8026 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8027 ;;
8028 esac
8029
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8031 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8032
8033
8034
8035
8036
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8038 printf %s "checking for a working dd... " >&6; }
8039 if test ${ac_cv_path_lt_DD+y}
8040 then :
8041 printf %s "(cached) " >&6
8042 else case e in #(
8043 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8044 cat conftest.i conftest.i >conftest2.i
8045 : ${lt_DD:=$DD}
8046 if test -z "$lt_DD"; then
8047 ac_path_lt_DD_found=false
8048 # Loop through the user's path and test for each of PROGNAME-LIST
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8051 do
8052 IFS=$as_save_IFS
8053 case $as_dir in #(((
8054 '') as_dir=./ ;;
8055 */) ;;
8056 *) as_dir=$as_dir/ ;;
8057 esac
8058 for ac_prog in dd
8059 do
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8062 as_fn_executable_p "$ac_path_lt_DD" || continue
8063 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8064 cmp -s conftest.i conftest.out \
8065 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8066 fi
8067 $ac_path_lt_DD_found && break 3
8068 done
8069 done
8070 done
8071 IFS=$as_save_IFS
8072 if test -z "$ac_cv_path_lt_DD"; then
8073 :
8074 fi
8075 else
8076 ac_cv_path_lt_DD=$lt_DD
8077 fi
8078
8079 rm -f conftest.i conftest2.i conftest.out ;;
8080 esac
8081 fi
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8083 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8084
8085
8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8087 printf %s "checking how to truncate binary pipes... " >&6; }
8088 if test ${lt_cv_truncate_bin+y}
8089 then :
8090 printf %s "(cached) " >&6
8091 else case e in #(
8092 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8093 cat conftest.i conftest.i >conftest2.i
8094 lt_cv_truncate_bin=
8095 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8096 cmp -s conftest.i conftest.out \
8097 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8098 fi
8099 rm -f conftest.i conftest2.i conftest.out
8100 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8101 esac
8102 fi
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8104 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8105
8106
8107
8108
8109
8110
8111
8112 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8113 func_cc_basename ()
8114 {
8115 for cc_temp in $*""; do
8116 case $cc_temp in
8117 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8118 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8119 \-*) ;;
8120 *) break;;
8121 esac
8122 done
8123 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8124 }
8125
8126 # Check whether --enable-libtool-lock was given.
8127 if test ${enable_libtool_lock+y}
8128 then :
8129 enableval=$enable_libtool_lock;
8130 fi
8131
8132 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8133
8134 # Some flags need to be propagated to the compiler or linker for good
8135 # libtool support.
8136 case $host in
8137 ia64-*-hpux*)
8138 # Find out what ABI is being produced by ac_compile, and set mode
8139 # options accordingly.
8140 echo 'int i;' > conftest.$ac_ext
8141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8142 (eval $ac_compile) 2>&5
8143 ac_status=$?
8144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8145 test $ac_status = 0; }; then
8146 case `$FILECMD conftest.$ac_objext` in
8147 *ELF-32*)
8148 HPUX_IA64_MODE=32
8149 ;;
8150 *ELF-64*)
8151 HPUX_IA64_MODE=64
8152 ;;
8153 esac
8154 fi
8155 rm -rf conftest*
8156 ;;
8157 *-*-irix6*)
8158 # Find out what ABI is being produced by ac_compile, and set linker
8159 # options accordingly.
8160 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8162 (eval $ac_compile) 2>&5
8163 ac_status=$?
8164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8165 test $ac_status = 0; }; then
8166 if test yes = "$lt_cv_prog_gnu_ld"; then
8167 case `$FILECMD conftest.$ac_objext` in
8168 *32-bit*)
8169 LD="${LD-ld} -melf32bsmip"
8170 ;;
8171 *N32*)
8172 LD="${LD-ld} -melf32bmipn32"
8173 ;;
8174 *64-bit*)
8175 LD="${LD-ld} -melf64bmip"
8176 ;;
8177 esac
8178 else
8179 case `$FILECMD conftest.$ac_objext` in
8180 *32-bit*)
8181 LD="${LD-ld} -32"
8182 ;;
8183 *N32*)
8184 LD="${LD-ld} -n32"
8185 ;;
8186 *64-bit*)
8187 LD="${LD-ld} -64"
8188 ;;
8189 esac
8190 fi
8191 fi
8192 rm -rf conftest*
8193 ;;
8194
8195 mips64*-*linux*)
8196 # Find out what ABI is being produced by ac_compile, and set linker
8197 # options accordingly.
8198 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8200 (eval $ac_compile) 2>&5
8201 ac_status=$?
8202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8203 test $ac_status = 0; }; then
8204 emul=elf
8205 case `$FILECMD conftest.$ac_objext` in
8206 *32-bit*)
8207 emul="${emul}32"
8208 ;;
8209 *64-bit*)
8210 emul="${emul}64"
8211 ;;
8212 esac
8213 case `$FILECMD conftest.$ac_objext` in
8214 *MSB*)
8215 emul="${emul}btsmip"
8216 ;;
8217 *LSB*)
8218 emul="${emul}ltsmip"
8219 ;;
8220 esac
8221 case `$FILECMD conftest.$ac_objext` in
8222 *N32*)
8223 emul="${emul}n32"
8224 ;;
8225 esac
8226 LD="${LD-ld} -m $emul"
8227 fi
8228 rm -rf conftest*
8229 ;;
8230
8231 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8232 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8233 # Find out what ABI is being produced by ac_compile, and set linker
8234 # options accordingly. Note that the listed cases only cover the
8235 # situations where additional linker options are needed (such as when
8236 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8237 # vice versa); the common cases where no linker options are needed do
8238 # not appear in the list.
8239 echo 'int i;' > conftest.$ac_ext
8240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8241 (eval $ac_compile) 2>&5
8242 ac_status=$?
8243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8244 test $ac_status = 0; }; then
8245 case `$FILECMD conftest.o` in
8246 *32-bit*)
8247 case $host in
8248 x86_64-*kfreebsd*-gnu)
8249 LD="${LD-ld} -m elf_i386_fbsd"
8250 ;;
8251 x86_64-*linux*|x86_64-gnu*)
8252 case `$FILECMD conftest.o` in
8253 *x86-64*)
8254 LD="${LD-ld} -m elf32_x86_64"
8255 ;;
8256 *)
8257 LD="${LD-ld} -m elf_i386"
8258 ;;
8259 esac
8260 ;;
8261 powerpc64le-*linux*)
8262 LD="${LD-ld} -m elf32lppclinux"
8263 ;;
8264 powerpc64-*linux*)
8265 LD="${LD-ld} -m elf32ppclinux"
8266 ;;
8267 s390x-*linux*)
8268 LD="${LD-ld} -m elf_s390"
8269 ;;
8270 sparc64-*linux*)
8271 LD="${LD-ld} -m elf32_sparc"
8272 ;;
8273 esac
8274 ;;
8275 *64-bit*)
8276 case $host in
8277 x86_64-*kfreebsd*-gnu)
8278 LD="${LD-ld} -m elf_x86_64_fbsd"
8279 ;;
8280 x86_64-*linux*|x86_64-gnu*)
8281 LD="${LD-ld} -m elf_x86_64"
8282 ;;
8283 powerpcle-*linux*)
8284 LD="${LD-ld} -m elf64lppc"
8285 ;;
8286 powerpc-*linux*)
8287 LD="${LD-ld} -m elf64ppc"
8288 ;;
8289 s390*-*linux*|s390*-*tpf*)
8290 LD="${LD-ld} -m elf64_s390"
8291 ;;
8292 sparc*-*linux*)
8293 LD="${LD-ld} -m elf64_sparc"
8294 ;;
8295 esac
8296 ;;
8297 esac
8298 fi
8299 rm -rf conftest*
8300 ;;
8301
8302 *-*-sco3.2v5*)
8303 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8304 SAVE_CFLAGS=$CFLAGS
8305 CFLAGS="$CFLAGS -belf"
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8307 printf %s "checking whether the C compiler needs -belf... " >&6; }
8308 if test ${lt_cv_cc_needs_belf+y}
8309 then :
8310 printf %s "(cached) " >&6
8311 else case e in #(
8312 e) ac_ext=c
8313 ac_cpp='$CPP $CPPFLAGS'
8314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8317
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320
8321 int
8322 main (void)
8323 {
8324
8325 ;
8326 return 0;
8327 }
8328 _ACEOF
8329 if ac_fn_c_try_link "$LINENO"
8330 then :
8331 lt_cv_cc_needs_belf=yes
8332 else case e in #(
8333 e) lt_cv_cc_needs_belf=no ;;
8334 esac
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8337 conftest$ac_exeext conftest.$ac_ext
8338 ac_ext=c
8339 ac_cpp='$CPP $CPPFLAGS'
8340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8343 ;;
8344 esac
8345 fi
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8347 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8348 if test yes != "$lt_cv_cc_needs_belf"; then
8349 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8350 CFLAGS=$SAVE_CFLAGS
8351 fi
8352 ;;
8353 *-*solaris*)
8354 # Find out what ABI is being produced by ac_compile, and set linker
8355 # options accordingly.
8356 echo 'int i;' > conftest.$ac_ext
8357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8358 (eval $ac_compile) 2>&5
8359 ac_status=$?
8360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8361 test $ac_status = 0; }; then
8362 case `$FILECMD conftest.o` in
8363 *64-bit*)
8364 case $lt_cv_prog_gnu_ld in
8365 yes*)
8366 case $host in
8367 i?86-*-solaris*|x86_64-*-solaris*)
8368 LD="${LD-ld} -m elf_x86_64"
8369 ;;
8370 sparc*-*-solaris*)
8371 LD="${LD-ld} -m elf64_sparc"
8372 ;;
8373 esac
8374 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8375 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8376 LD=${LD-ld}_sol2
8377 fi
8378 ;;
8379 *)
8380 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8381 LD="${LD-ld} -64"
8382 fi
8383 ;;
8384 esac
8385 ;;
8386 esac
8387 fi
8388 rm -rf conftest*
8389 ;;
8390 esac
8391
8392 need_locks=$enable_libtool_lock
8393
8394 if test -n "$ac_tool_prefix"; then
8395 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8396 set dummy ${ac_tool_prefix}mt; ac_word=$2
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 printf %s "checking for $ac_word... " >&6; }
8399 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8400 then :
8401 printf %s "(cached) " >&6
8402 else case e in #(
8403 e) if test -n "$MANIFEST_TOOL"; then
8404 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8405 else
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 for as_dir in $PATH
8408 do
8409 IFS=$as_save_IFS
8410 case $as_dir in #(((
8411 '') as_dir=./ ;;
8412 */) ;;
8413 *) as_dir=$as_dir/ ;;
8414 esac
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425 fi ;;
8426 esac
8427 fi
8428 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8429 if test -n "$MANIFEST_TOOL"; then
8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8431 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8432 else
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 printf "%s\n" "no" >&6; }
8435 fi
8436
8437
8438 fi
8439 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8440 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8441 # Extract the first word of "mt", so it can be a program name with args.
8442 set dummy mt; ac_word=$2
8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444 printf %s "checking for $ac_word... " >&6; }
8445 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8446 then :
8447 printf %s "(cached) " >&6
8448 else case e in #(
8449 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8450 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8451 else
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 for as_dir in $PATH
8454 do
8455 IFS=$as_save_IFS
8456 case $as_dir in #(((
8457 '') as_dir=./ ;;
8458 */) ;;
8459 *) as_dir=$as_dir/ ;;
8460 esac
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8463 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8465 break 2
8466 fi
8467 done
8468 done
8469 IFS=$as_save_IFS
8470
8471 fi ;;
8472 esac
8473 fi
8474 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8475 if test -n "$ac_ct_MANIFEST_TOOL"; then
8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8477 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8478 else
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 printf "%s\n" "no" >&6; }
8481 fi
8482
8483 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8484 MANIFEST_TOOL=":"
8485 else
8486 case $cross_compiling:$ac_tool_warned in
8487 yes:)
8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490 ac_tool_warned=yes ;;
8491 esac
8492 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8493 fi
8494 else
8495 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8496 fi
8497
8498 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8500 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8501 if test ${lt_cv_path_manifest_tool+y}
8502 then :
8503 printf %s "(cached) " >&6
8504 else case e in #(
8505 e) lt_cv_path_manifest_tool=no
8506 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8507 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8508 cat conftest.err >&5
8509 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8510 lt_cv_path_manifest_tool=yes
8511 fi
8512 rm -f conftest* ;;
8513 esac
8514 fi
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8516 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8517 if test yes != "$lt_cv_path_manifest_tool"; then
8518 MANIFEST_TOOL=:
8519 fi
8520
8521
8522
8523
8524
8525
8526 case $host_os in
8527 rhapsody* | darwin*)
8528 if test -n "$ac_tool_prefix"; then
8529 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8530 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 printf %s "checking for $ac_word... " >&6; }
8533 if test ${ac_cv_prog_DSYMUTIL+y}
8534 then :
8535 printf %s "(cached) " >&6
8536 else case e in #(
8537 e) if test -n "$DSYMUTIL"; then
8538 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8542 do
8543 IFS=$as_save_IFS
8544 case $as_dir in #(((
8545 '') as_dir=./ ;;
8546 */) ;;
8547 *) as_dir=$as_dir/ ;;
8548 esac
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8551 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555 done
8556 done
8557 IFS=$as_save_IFS
8558
8559 fi ;;
8560 esac
8561 fi
8562 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8563 if test -n "$DSYMUTIL"; then
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8565 printf "%s\n" "$DSYMUTIL" >&6; }
8566 else
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 printf "%s\n" "no" >&6; }
8569 fi
8570
8571
8572 fi
8573 if test -z "$ac_cv_prog_DSYMUTIL"; then
8574 ac_ct_DSYMUTIL=$DSYMUTIL
8575 # Extract the first word of "dsymutil", so it can be a program name with args.
8576 set dummy dsymutil; ac_word=$2
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 printf %s "checking for $ac_word... " >&6; }
8579 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8580 then :
8581 printf %s "(cached) " >&6
8582 else case e in #(
8583 e) if test -n "$ac_ct_DSYMUTIL"; then
8584 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8585 else
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587 for as_dir in $PATH
8588 do
8589 IFS=$as_save_IFS
8590 case $as_dir in #(((
8591 '') as_dir=./ ;;
8592 */) ;;
8593 *) as_dir=$as_dir/ ;;
8594 esac
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8597 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8599 break 2
8600 fi
8601 done
8602 done
8603 IFS=$as_save_IFS
8604
8605 fi ;;
8606 esac
8607 fi
8608 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8609 if test -n "$ac_ct_DSYMUTIL"; then
8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8611 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8612 else
8613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 printf "%s\n" "no" >&6; }
8615 fi
8616
8617 if test "x$ac_ct_DSYMUTIL" = x; then
8618 DSYMUTIL=":"
8619 else
8620 case $cross_compiling:$ac_tool_warned in
8621 yes:)
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8623 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8624 ac_tool_warned=yes ;;
8625 esac
8626 DSYMUTIL=$ac_ct_DSYMUTIL
8627 fi
8628 else
8629 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8630 fi
8631
8632 if test -n "$ac_tool_prefix"; then
8633 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8634 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 printf %s "checking for $ac_word... " >&6; }
8637 if test ${ac_cv_prog_NMEDIT+y}
8638 then :
8639 printf %s "(cached) " >&6
8640 else case e in #(
8641 e) if test -n "$NMEDIT"; then
8642 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8643 else
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8646 do
8647 IFS=$as_save_IFS
8648 case $as_dir in #(((
8649 '') as_dir=./ ;;
8650 */) ;;
8651 *) as_dir=$as_dir/ ;;
8652 esac
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8655 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8657 break 2
8658 fi
8659 done
8660 done
8661 IFS=$as_save_IFS
8662
8663 fi ;;
8664 esac
8665 fi
8666 NMEDIT=$ac_cv_prog_NMEDIT
8667 if test -n "$NMEDIT"; then
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8669 printf "%s\n" "$NMEDIT" >&6; }
8670 else
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 printf "%s\n" "no" >&6; }
8673 fi
8674
8675
8676 fi
8677 if test -z "$ac_cv_prog_NMEDIT"; then
8678 ac_ct_NMEDIT=$NMEDIT
8679 # Extract the first word of "nmedit", so it can be a program name with args.
8680 set dummy nmedit; ac_word=$2
8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 printf %s "checking for $ac_word... " >&6; }
8683 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8684 then :
8685 printf %s "(cached) " >&6
8686 else case e in #(
8687 e) if test -n "$ac_ct_NMEDIT"; then
8688 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8689 else
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 for as_dir in $PATH
8692 do
8693 IFS=$as_save_IFS
8694 case $as_dir in #(((
8695 '') as_dir=./ ;;
8696 */) ;;
8697 *) as_dir=$as_dir/ ;;
8698 esac
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8701 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8703 break 2
8704 fi
8705 done
8706 done
8707 IFS=$as_save_IFS
8708
8709 fi ;;
8710 esac
8711 fi
8712 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8713 if test -n "$ac_ct_NMEDIT"; then
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8715 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8716 else
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 printf "%s\n" "no" >&6; }
8719 fi
8720
8721 if test "x$ac_ct_NMEDIT" = x; then
8722 NMEDIT=":"
8723 else
8724 case $cross_compiling:$ac_tool_warned in
8725 yes:)
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8727 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8728 ac_tool_warned=yes ;;
8729 esac
8730 NMEDIT=$ac_ct_NMEDIT
8731 fi
8732 else
8733 NMEDIT="$ac_cv_prog_NMEDIT"
8734 fi
8735
8736 if test -n "$ac_tool_prefix"; then
8737 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8738 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 printf %s "checking for $ac_word... " >&6; }
8741 if test ${ac_cv_prog_LIPO+y}
8742 then :
8743 printf %s "(cached) " >&6
8744 else case e in #(
8745 e) if test -n "$LIPO"; then
8746 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8747 else
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $PATH
8750 do
8751 IFS=$as_save_IFS
8752 case $as_dir in #(((
8753 '') as_dir=./ ;;
8754 */) ;;
8755 *) as_dir=$as_dir/ ;;
8756 esac
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8759 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763 done
8764 done
8765 IFS=$as_save_IFS
8766
8767 fi ;;
8768 esac
8769 fi
8770 LIPO=$ac_cv_prog_LIPO
8771 if test -n "$LIPO"; then
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8773 printf "%s\n" "$LIPO" >&6; }
8774 else
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 printf "%s\n" "no" >&6; }
8777 fi
8778
8779
8780 fi
8781 if test -z "$ac_cv_prog_LIPO"; then
8782 ac_ct_LIPO=$LIPO
8783 # Extract the first word of "lipo", so it can be a program name with args.
8784 set dummy lipo; ac_word=$2
8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 printf %s "checking for $ac_word... " >&6; }
8787 if test ${ac_cv_prog_ac_ct_LIPO+y}
8788 then :
8789 printf %s "(cached) " >&6
8790 else case e in #(
8791 e) if test -n "$ac_ct_LIPO"; then
8792 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8793 else
8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795 for as_dir in $PATH
8796 do
8797 IFS=$as_save_IFS
8798 case $as_dir in #(((
8799 '') as_dir=./ ;;
8800 */) ;;
8801 *) as_dir=$as_dir/ ;;
8802 esac
8803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8805 ac_cv_prog_ac_ct_LIPO="lipo"
8806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8807 break 2
8808 fi
8809 done
8810 done
8811 IFS=$as_save_IFS
8812
8813 fi ;;
8814 esac
8815 fi
8816 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8817 if test -n "$ac_ct_LIPO"; then
8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8819 printf "%s\n" "$ac_ct_LIPO" >&6; }
8820 else
8821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 printf "%s\n" "no" >&6; }
8823 fi
8824
8825 if test "x$ac_ct_LIPO" = x; then
8826 LIPO=":"
8827 else
8828 case $cross_compiling:$ac_tool_warned in
8829 yes:)
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8831 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8832 ac_tool_warned=yes ;;
8833 esac
8834 LIPO=$ac_ct_LIPO
8835 fi
8836 else
8837 LIPO="$ac_cv_prog_LIPO"
8838 fi
8839
8840 if test -n "$ac_tool_prefix"; then
8841 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8842 set dummy ${ac_tool_prefix}otool; ac_word=$2
8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 printf %s "checking for $ac_word... " >&6; }
8845 if test ${ac_cv_prog_OTOOL+y}
8846 then :
8847 printf %s "(cached) " >&6
8848 else case e in #(
8849 e) if test -n "$OTOOL"; then
8850 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8851 else
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8854 do
8855 IFS=$as_save_IFS
8856 case $as_dir in #(((
8857 '') as_dir=./ ;;
8858 */) ;;
8859 *) as_dir=$as_dir/ ;;
8860 esac
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8863 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8865 break 2
8866 fi
8867 done
8868 done
8869 IFS=$as_save_IFS
8870
8871 fi ;;
8872 esac
8873 fi
8874 OTOOL=$ac_cv_prog_OTOOL
8875 if test -n "$OTOOL"; then
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8877 printf "%s\n" "$OTOOL" >&6; }
8878 else
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 printf "%s\n" "no" >&6; }
8881 fi
8882
8883
8884 fi
8885 if test -z "$ac_cv_prog_OTOOL"; then
8886 ac_ct_OTOOL=$OTOOL
8887 # Extract the first word of "otool", so it can be a program name with args.
8888 set dummy otool; ac_word=$2
8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890 printf %s "checking for $ac_word... " >&6; }
8891 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8892 then :
8893 printf %s "(cached) " >&6
8894 else case e in #(
8895 e) if test -n "$ac_ct_OTOOL"; then
8896 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8897 else
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 for as_dir in $PATH
8900 do
8901 IFS=$as_save_IFS
8902 case $as_dir in #(((
8903 '') as_dir=./ ;;
8904 */) ;;
8905 *) as_dir=$as_dir/ ;;
8906 esac
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8909 ac_cv_prog_ac_ct_OTOOL="otool"
8910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8911 break 2
8912 fi
8913 done
8914 done
8915 IFS=$as_save_IFS
8916
8917 fi ;;
8918 esac
8919 fi
8920 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8921 if test -n "$ac_ct_OTOOL"; then
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8923 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8924 else
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 printf "%s\n" "no" >&6; }
8927 fi
8928
8929 if test "x$ac_ct_OTOOL" = x; then
8930 OTOOL=":"
8931 else
8932 case $cross_compiling:$ac_tool_warned in
8933 yes:)
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8936 ac_tool_warned=yes ;;
8937 esac
8938 OTOOL=$ac_ct_OTOOL
8939 fi
8940 else
8941 OTOOL="$ac_cv_prog_OTOOL"
8942 fi
8943
8944 if test -n "$ac_tool_prefix"; then
8945 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8946 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948 printf %s "checking for $ac_word... " >&6; }
8949 if test ${ac_cv_prog_OTOOL64+y}
8950 then :
8951 printf %s "(cached) " >&6
8952 else case e in #(
8953 e) if test -n "$OTOOL64"; then
8954 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8955 else
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in $PATH
8958 do
8959 IFS=$as_save_IFS
8960 case $as_dir in #(((
8961 '') as_dir=./ ;;
8962 */) ;;
8963 *) as_dir=$as_dir/ ;;
8964 esac
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8967 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8969 break 2
8970 fi
8971 done
8972 done
8973 IFS=$as_save_IFS
8974
8975 fi ;;
8976 esac
8977 fi
8978 OTOOL64=$ac_cv_prog_OTOOL64
8979 if test -n "$OTOOL64"; then
8980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8981 printf "%s\n" "$OTOOL64" >&6; }
8982 else
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 printf "%s\n" "no" >&6; }
8985 fi
8986
8987
8988 fi
8989 if test -z "$ac_cv_prog_OTOOL64"; then
8990 ac_ct_OTOOL64=$OTOOL64
8991 # Extract the first word of "otool64", so it can be a program name with args.
8992 set dummy otool64; ac_word=$2
8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 printf %s "checking for $ac_word... " >&6; }
8995 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8996 then :
8997 printf %s "(cached) " >&6
8998 else case e in #(
8999 e) if test -n "$ac_ct_OTOOL64"; then
9000 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9001 else
9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003 for as_dir in $PATH
9004 do
9005 IFS=$as_save_IFS
9006 case $as_dir in #(((
9007 '') as_dir=./ ;;
9008 */) ;;
9009 *) as_dir=$as_dir/ ;;
9010 esac
9011 for ac_exec_ext in '' $ac_executable_extensions; do
9012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9013 ac_cv_prog_ac_ct_OTOOL64="otool64"
9014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9015 break 2
9016 fi
9017 done
9018 done
9019 IFS=$as_save_IFS
9020
9021 fi ;;
9022 esac
9023 fi
9024 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9025 if test -n "$ac_ct_OTOOL64"; then
9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9027 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9028 else
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 printf "%s\n" "no" >&6; }
9031 fi
9032
9033 if test "x$ac_ct_OTOOL64" = x; then
9034 OTOOL64=":"
9035 else
9036 case $cross_compiling:$ac_tool_warned in
9037 yes:)
9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9039 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9040 ac_tool_warned=yes ;;
9041 esac
9042 OTOOL64=$ac_ct_OTOOL64
9043 fi
9044 else
9045 OTOOL64="$ac_cv_prog_OTOOL64"
9046 fi
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9075 printf %s "checking for -single_module linker flag... " >&6; }
9076 if test ${lt_cv_apple_cc_single_mod+y}
9077 then :
9078 printf %s "(cached) " >&6
9079 else case e in #(
9080 e) lt_cv_apple_cc_single_mod=no
9081 if test -z "$LT_MULTI_MODULE"; then
9082 # By default we will add the -single_module flag. You can override
9083 # by either setting the environment variable LT_MULTI_MODULE
9084 # non-empty at configure time, or by adding -multi_module to the
9085 # link flags.
9086 rm -rf libconftest.dylib*
9087 echo "int foo(void){return 1;}" > conftest.c
9088 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9089 -dynamiclib -Wl,-single_module conftest.c" >&5
9090 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9091 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9092 _lt_result=$?
9093 # If there is a non-empty error log, and "single_module"
9094 # appears in it, assume the flag caused a linker warning
9095 if test -s conftest.err && $GREP single_module conftest.err; then
9096 cat conftest.err >&5
9097 # Otherwise, if the output was created with a 0 exit code from
9098 # the compiler, it worked.
9099 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9100 lt_cv_apple_cc_single_mod=yes
9101 else
9102 cat conftest.err >&5
9103 fi
9104 rm -rf libconftest.dylib*
9105 rm -f conftest.*
9106 fi ;;
9107 esac
9108 fi
9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9110 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9111
9112 # Feature test to disable chained fixups since it is not
9113 # compatible with '-undefined dynamic_lookup'
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9115 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9116 if test ${lt_cv_support_no_fixup_chains+y}
9117 then :
9118 printf %s "(cached) " >&6
9119 else case e in #(
9120 e) save_LDFLAGS=$LDFLAGS
9121 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9124
9125 int
9126 main (void)
9127 {
9128
9129 ;
9130 return 0;
9131 }
9132 _ACEOF
9133 if ac_fn_c_try_link "$LINENO"
9134 then :
9135 lt_cv_support_no_fixup_chains=yes
9136 else case e in #(
9137 e) lt_cv_support_no_fixup_chains=no
9138 ;;
9139 esac
9140 fi
9141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9142 conftest$ac_exeext conftest.$ac_ext
9143 LDFLAGS=$save_LDFLAGS
9144
9145 ;;
9146 esac
9147 fi
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9149 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9150
9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9152 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9153 if test ${lt_cv_ld_exported_symbols_list+y}
9154 then :
9155 printf %s "(cached) " >&6
9156 else case e in #(
9157 e) lt_cv_ld_exported_symbols_list=no
9158 save_LDFLAGS=$LDFLAGS
9159 echo "_main" > conftest.sym
9160 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163
9164 int
9165 main (void)
9166 {
9167
9168 ;
9169 return 0;
9170 }
9171 _ACEOF
9172 if ac_fn_c_try_link "$LINENO"
9173 then :
9174 lt_cv_ld_exported_symbols_list=yes
9175 else case e in #(
9176 e) lt_cv_ld_exported_symbols_list=no ;;
9177 esac
9178 fi
9179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9180 conftest$ac_exeext conftest.$ac_ext
9181 LDFLAGS=$save_LDFLAGS
9182 ;;
9183 esac
9184 fi
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9186 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9187
9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9189 printf %s "checking for -force_load linker flag... " >&6; }
9190 if test ${lt_cv_ld_force_load+y}
9191 then :
9192 printf %s "(cached) " >&6
9193 else case e in #(
9194 e) lt_cv_ld_force_load=no
9195 cat > conftest.c << _LT_EOF
9196 int forced_loaded() { return 2;}
9197 _LT_EOF
9198 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9199 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9200 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9201 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9202 echo "$RANLIB libconftest.a" >&5
9203 $RANLIB libconftest.a 2>&5
9204 cat > conftest.c << _LT_EOF
9205 int main(void) { return 0;}
9206 _LT_EOF
9207 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9208 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9209 _lt_result=$?
9210 if test -s conftest.err && $GREP force_load conftest.err; then
9211 cat conftest.err >&5
9212 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9213 lt_cv_ld_force_load=yes
9214 else
9215 cat conftest.err >&5
9216 fi
9217 rm -f conftest.err libconftest.a conftest conftest.c
9218 rm -rf conftest.dSYM
9219 ;;
9220 esac
9221 fi
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9223 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9224 case $host_os in
9225 rhapsody* | darwin1.[012])
9226 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9227 darwin1.*)
9228 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9229 darwin*)
9230 case $MACOSX_DEPLOYMENT_TARGET,$host in
9231 10.[012],*|,*powerpc*-darwin[5-8]*)
9232 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9233 *)
9234 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9235 if test yes = "$lt_cv_support_no_fixup_chains"; then
9236 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9237 fi
9238 ;;
9239 esac
9240 ;;
9241 esac
9242 if test yes = "$lt_cv_apple_cc_single_mod"; then
9243 _lt_dar_single_mod='$single_module'
9244 fi
9245 _lt_dar_needs_single_mod=no
9246 case $host_os in
9247 rhapsody* | darwin1.*)
9248 _lt_dar_needs_single_mod=yes ;;
9249 darwin*)
9250 # When targeting Mac OS X 10.4 (darwin 8) or later,
9251 # -single_module is the default and -multi_module is unsupported.
9252 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9253 # target any OS version that needs -single_module.
9254 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9255 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9256 _lt_dar_needs_single_mod=yes ;;
9257 esac
9258 ;;
9259 esac
9260 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9261 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9262 else
9263 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9264 fi
9265 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9266 _lt_dsymutil='~$DSYMUTIL $lib || :'
9267 else
9268 _lt_dsymutil=
9269 fi
9270 ;;
9271 esac
9272
9273 # func_munge_path_list VARIABLE PATH
9274 # -----------------------------------
9275 # VARIABLE is name of variable containing _space_ separated list of
9276 # directories to be munged by the contents of PATH, which is string
9277 # having a format:
9278 # "DIR[:DIR]:"
9279 # string "DIR[ DIR]" will be prepended to VARIABLE
9280 # ":DIR[:DIR]"
9281 # string "DIR[ DIR]" will be appended to VARIABLE
9282 # "DIRP[:DIRP]::[DIRA:]DIRA"
9283 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9284 # "DIRA[ DIRA]" will be appended to VARIABLE
9285 # "DIR[:DIR]"
9286 # VARIABLE will be replaced by "DIR[ DIR]"
9287 func_munge_path_list ()
9288 {
9289 case x$2 in
9290 x)
9291 ;;
9292 *:)
9293 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9294 ;;
9295 x:*)
9296 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9297 ;;
9298 *::*)
9299 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9300 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9301 ;;
9302 *)
9303 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9304 ;;
9305 esac
9306 }
9307
9308 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9309 "
9310 if test "x$ac_cv_header_dlfcn_h" = xyes
9311 then :
9312 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9313
9314 fi
9315
9316
9317
9318
9319
9320 # Set options
9321 # Check whether --enable-static was given.
9322 if test ${enable_static+y}
9323 then :
9324 enableval=$enable_static; p=${PACKAGE-default}
9325 case $enableval in
9326 yes) enable_static=yes ;;
9327 no) enable_static=no ;;
9328 *)
9329 enable_static=no
9330 # Look at the argument we got. We use all the common list separators.
9331 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9332 for pkg in $enableval; do
9333 IFS=$lt_save_ifs
9334 if test "X$pkg" = "X$p"; then
9335 enable_static=yes
9336 fi
9337 done
9338 IFS=$lt_save_ifs
9339 ;;
9340 esac
9341 else case e in #(
9342 e) enable_static=no ;;
9343 esac
9344 fi
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355 enable_dlopen=no
9356
9357
9358 enable_win32_dll=no
9359
9360
9361 # Check whether --enable-shared was given.
9362 if test ${enable_shared+y}
9363 then :
9364 enableval=$enable_shared; p=${PACKAGE-default}
9365 case $enableval in
9366 yes) enable_shared=yes ;;
9367 no) enable_shared=no ;;
9368 *)
9369 enable_shared=no
9370 # Look at the argument we got. We use all the common list separators.
9371 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9372 for pkg in $enableval; do
9373 IFS=$lt_save_ifs
9374 if test "X$pkg" = "X$p"; then
9375 enable_shared=yes
9376 fi
9377 done
9378 IFS=$lt_save_ifs
9379 ;;
9380 esac
9381 else case e in #(
9382 e) enable_shared=yes ;;
9383 esac
9384 fi
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395 # Check whether --enable-pic was given.
9396 if test ${enable_pic+y}
9397 then :
9398 enableval=$enable_pic; lt_p=${PACKAGE-default}
9399 case $enableval in
9400 yes|no) pic_mode=$enableval ;;
9401 *)
9402 pic_mode=default
9403 # Look at the argument we got. We use all the common list separators.
9404 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9405 for lt_pkg in $enableval; do
9406 IFS=$lt_save_ifs
9407 if test "X$lt_pkg" = "X$lt_p"; then
9408 pic_mode=yes
9409 fi
9410 done
9411 IFS=$lt_save_ifs
9412 ;;
9413 esac
9414 else case e in #(
9415 e) # Check whether --with-pic was given.
9416 if test ${with_pic+y}
9417 then :
9418 withval=$with_pic; lt_p=${PACKAGE-default}
9419 case $withval in
9420 yes|no) pic_mode=$withval ;;
9421 *)
9422 pic_mode=default
9423 # Look at the argument we got. We use all the common list separators.
9424 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9425 for lt_pkg in $withval; do
9426 IFS=$lt_save_ifs
9427 if test "X$lt_pkg" = "X$lt_p"; then
9428 pic_mode=yes
9429 fi
9430 done
9431 IFS=$lt_save_ifs
9432 ;;
9433 esac
9434 else case e in #(
9435 e) pic_mode=default ;;
9436 esac
9437 fi
9438
9439 ;;
9440 esac
9441 fi
9442
9443
9444
9445
9446
9447
9448
9449
9450 # Check whether --enable-fast-install was given.
9451 if test ${enable_fast_install+y}
9452 then :
9453 enableval=$enable_fast_install; p=${PACKAGE-default}
9454 case $enableval in
9455 yes) enable_fast_install=yes ;;
9456 no) enable_fast_install=no ;;
9457 *)
9458 enable_fast_install=no
9459 # Look at the argument we got. We use all the common list separators.
9460 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9461 for pkg in $enableval; do
9462 IFS=$lt_save_ifs
9463 if test "X$pkg" = "X$p"; then
9464 enable_fast_install=yes
9465 fi
9466 done
9467 IFS=$lt_save_ifs
9468 ;;
9469 esac
9470 else case e in #(
9471 e) enable_fast_install=yes ;;
9472 esac
9473 fi
9474
9475
9476
9477
9478
9479
9480
9481
9482 shared_archive_member_spec=
9483 case $host,$enable_shared in
9484 power*-*-aix[5-9]*,yes)
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9486 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9487 # Check whether --enable-aix-soname was given.
9488 if test ${enable_aix_soname+y}
9489 then :
9490 enableval=$enable_aix_soname; case $enableval in
9491 aix|svr4|both)
9492 ;;
9493 *)
9494 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9495 ;;
9496 esac
9497 lt_cv_with_aix_soname=$enable_aix_soname
9498 else case e in #(
9499 e) # Check whether --with-aix-soname was given.
9500 if test ${with_aix_soname+y}
9501 then :
9502 withval=$with_aix_soname; case $withval in
9503 aix|svr4|both)
9504 ;;
9505 *)
9506 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9507 ;;
9508 esac
9509 lt_cv_with_aix_soname=$with_aix_soname
9510 else case e in #(
9511 e) if test ${lt_cv_with_aix_soname+y}
9512 then :
9513 printf %s "(cached) " >&6
9514 else case e in #(
9515 e) lt_cv_with_aix_soname=aix ;;
9516 esac
9517 fi
9518 ;;
9519 esac
9520 fi
9521
9522 enable_aix_soname=$lt_cv_with_aix_soname ;;
9523 esac
9524 fi
9525
9526 with_aix_soname=$enable_aix_soname
9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9528 printf "%s\n" "$with_aix_soname" >&6; }
9529 if test aix != "$with_aix_soname"; then
9530 # For the AIX way of multilib, we name the shared archive member
9531 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9532 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9533 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9534 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9535 if test 64 = "${OBJECT_MODE-32}"; then
9536 shared_archive_member_spec=shr_64
9537 else
9538 shared_archive_member_spec=shr
9539 fi
9540 fi
9541 ;;
9542 *)
9543 with_aix_soname=aix
9544 ;;
9545 esac
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556 # This can be used to rebuild libtool when needed
9557 LIBTOOL_DEPS=$ltmain
9558
9559 # Always use our own libtool.
9560 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591 test -z "$LN_S" && LN_S="ln -s"
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606 if test -n "${ZSH_VERSION+set}"; then
9607 setopt NO_GLOB_SUBST
9608 fi
9609
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9611 printf %s "checking for objdir... " >&6; }
9612 if test ${lt_cv_objdir+y}
9613 then :
9614 printf %s "(cached) " >&6
9615 else case e in #(
9616 e) rm -f .libs 2>/dev/null
9617 mkdir .libs 2>/dev/null
9618 if test -d .libs; then
9619 lt_cv_objdir=.libs
9620 else
9621 # MS-DOS does not allow filenames that begin with a dot.
9622 lt_cv_objdir=_libs
9623 fi
9624 rmdir .libs 2>/dev/null ;;
9625 esac
9626 fi
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9628 printf "%s\n" "$lt_cv_objdir" >&6; }
9629 objdir=$lt_cv_objdir
9630
9631
9632
9633
9634
9635 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9636
9637
9638
9639
9640 case $host_os in
9641 aix3*)
9642 # AIX sometimes has problems with the GCC collect2 program. For some
9643 # reason, if we set the COLLECT_NAMES environment variable, the problems
9644 # vanish in a puff of smoke.
9645 if test set != "${COLLECT_NAMES+set}"; then
9646 COLLECT_NAMES=
9647 export COLLECT_NAMES
9648 fi
9649 ;;
9650 esac
9651
9652 # Global variables:
9653 ofile=libtool
9654 can_build_shared=yes
9655
9656 # All known linkers require a '.a' archive for static linking (except MSVC and
9657 # ICC, which need '.lib').
9658 libext=a
9659
9660 with_gnu_ld=$lt_cv_prog_gnu_ld
9661
9662 old_CC=$CC
9663 old_CFLAGS=$CFLAGS
9664
9665 # Set sane defaults for various variables
9666 test -z "$CC" && CC=cc
9667 test -z "$LTCC" && LTCC=$CC
9668 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9669 test -z "$LD" && LD=ld
9670 test -z "$ac_objext" && ac_objext=o
9671
9672 func_cc_basename $compiler
9673 cc_basename=$func_cc_basename_result
9674
9675
9676 # Only perform the check for file, if the check method requires it
9677 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9678 case $deplibs_check_method in
9679 file_magic*)
9680 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9682 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9683 if test ${lt_cv_path_MAGIC_CMD+y}
9684 then :
9685 printf %s "(cached) " >&6
9686 else case e in #(
9687 e) case $MAGIC_CMD in
9688 [\\/*] | ?:[\\/]*)
9689 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9690 ;;
9691 *)
9692 lt_save_MAGIC_CMD=$MAGIC_CMD
9693 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9694 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9695 for ac_dir in $ac_dummy; do
9696 IFS=$lt_save_ifs
9697 test -z "$ac_dir" && ac_dir=.
9698 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9699 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9700 if test -n "$file_magic_test_file"; then
9701 case $deplibs_check_method in
9702 "file_magic "*)
9703 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9704 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9706 $EGREP "$file_magic_regex" > /dev/null; then
9707 :
9708 else
9709 cat <<_LT_EOF 1>&2
9710
9711 *** Warning: the command libtool uses to detect shared libraries,
9712 *** $file_magic_cmd, produces output that libtool cannot recognize.
9713 *** The result is that libtool may fail to recognize shared libraries
9714 *** as such. This will affect the creation of libtool libraries that
9715 *** depend on shared libraries, but programs linked with such libtool
9716 *** libraries will work regardless of this problem. Nevertheless, you
9717 *** may want to report the problem to your system manager and/or to
9718 *** [email protected]
9719
9720 _LT_EOF
9721 fi ;;
9722 esac
9723 fi
9724 break
9725 fi
9726 done
9727 IFS=$lt_save_ifs
9728 MAGIC_CMD=$lt_save_MAGIC_CMD
9729 ;;
9730 esac ;;
9731 esac
9732 fi
9733
9734 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9735 if test -n "$MAGIC_CMD"; then
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9737 printf "%s\n" "$MAGIC_CMD" >&6; }
9738 else
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 printf "%s\n" "no" >&6; }
9741 fi
9742
9743
9744
9745
9746
9747 if test -z "$lt_cv_path_MAGIC_CMD"; then
9748 if test -n "$ac_tool_prefix"; then
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9750 printf %s "checking for file... " >&6; }
9751 if test ${lt_cv_path_MAGIC_CMD+y}
9752 then :
9753 printf %s "(cached) " >&6
9754 else case e in #(
9755 e) case $MAGIC_CMD in
9756 [\\/*] | ?:[\\/]*)
9757 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9758 ;;
9759 *)
9760 lt_save_MAGIC_CMD=$MAGIC_CMD
9761 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9763 for ac_dir in $ac_dummy; do
9764 IFS=$lt_save_ifs
9765 test -z "$ac_dir" && ac_dir=.
9766 if test -f "$ac_dir/file"; then
9767 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9768 if test -n "$file_magic_test_file"; then
9769 case $deplibs_check_method in
9770 "file_magic "*)
9771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9772 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9774 $EGREP "$file_magic_regex" > /dev/null; then
9775 :
9776 else
9777 cat <<_LT_EOF 1>&2
9778
9779 *** Warning: the command libtool uses to detect shared libraries,
9780 *** $file_magic_cmd, produces output that libtool cannot recognize.
9781 *** The result is that libtool may fail to recognize shared libraries
9782 *** as such. This will affect the creation of libtool libraries that
9783 *** depend on shared libraries, but programs linked with such libtool
9784 *** libraries will work regardless of this problem. Nevertheless, you
9785 *** may want to report the problem to your system manager and/or to
9786 *** [email protected]
9787
9788 _LT_EOF
9789 fi ;;
9790 esac
9791 fi
9792 break
9793 fi
9794 done
9795 IFS=$lt_save_ifs
9796 MAGIC_CMD=$lt_save_MAGIC_CMD
9797 ;;
9798 esac ;;
9799 esac
9800 fi
9801
9802 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9803 if test -n "$MAGIC_CMD"; then
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9805 printf "%s\n" "$MAGIC_CMD" >&6; }
9806 else
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 printf "%s\n" "no" >&6; }
9809 fi
9810
9811
9812 else
9813 MAGIC_CMD=:
9814 fi
9815 fi
9816
9817 fi
9818 ;;
9819 esac
9820
9821 # Use C for the default configuration in the libtool script
9822
9823 lt_save_CC=$CC
9824 ac_ext=c
9825 ac_cpp='$CPP $CPPFLAGS'
9826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9829
9830
9831 # Source file extension for C test sources.
9832 ac_ext=c
9833
9834 # Object file extension for compiled C test sources.
9835 objext=o
9836 objext=$objext
9837
9838 # Code to be used in simple compile tests
9839 lt_simple_compile_test_code="int some_variable = 0;"
9840
9841 # Code to be used in simple link tests
9842 lt_simple_link_test_code='int main(void){return(0);}'
9843
9844
9845
9846
9847
9848
9849
9850 # If no C compiler was specified, use CC.
9851 LTCC=${LTCC-"$CC"}
9852
9853 # If no C compiler flags were specified, use CFLAGS.
9854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9855
9856 # Allow CC to be a program name with arguments.
9857 compiler=$CC
9858
9859 # Save the default compiler, since it gets overwritten when the other
9860 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9861 compiler_DEFAULT=$CC
9862
9863 # save warnings/boilerplate of simple test code
9864 ac_outfile=conftest.$ac_objext
9865 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9867 _lt_compiler_boilerplate=`cat conftest.err`
9868 $RM conftest*
9869
9870 ac_outfile=conftest.$ac_objext
9871 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9873 _lt_linker_boilerplate=`cat conftest.err`
9874 $RM -r conftest*
9875
9876
9877 ## CAVEAT EMPTOR:
9878 ## There is no encapsulation within the following macros, do not change
9879 ## the running order or otherwise move them around unless you know exactly
9880 ## what you are doing...
9881 if test -n "$compiler"; then
9882
9883 lt_prog_compiler_no_builtin_flag=
9884
9885 if test yes = "$GCC"; then
9886 case $cc_basename in
9887 nvcc*)
9888 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9889 *)
9890 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9891 esac
9892
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9894 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9895 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9896 then :
9897 printf %s "(cached) " >&6
9898 else case e in #(
9899 e) lt_cv_prog_compiler_rtti_exceptions=no
9900 ac_outfile=conftest.$ac_objext
9901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9902 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9903 # Insert the option either (1) after the last *FLAGS variable, or
9904 # (2) before a word containing "conftest.", or (3) at the end.
9905 # Note that $ac_compile itself does not contain backslashes and begins
9906 # with a dollar sign (not a hyphen), so the echo should work correctly.
9907 # The option is referenced via a variable to avoid confusing sed.
9908 lt_compile=`echo "$ac_compile" | $SED \
9909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9911 -e 's:$: $lt_compiler_flag:'`
9912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9913 (eval "$lt_compile" 2>conftest.err)
9914 ac_status=$?
9915 cat conftest.err >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 if (exit $ac_status) && test -s "$ac_outfile"; then
9918 # The compiler can only warn and ignore the option if not recognized
9919 # So say no if there are warnings other than the usual output.
9920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9923 lt_cv_prog_compiler_rtti_exceptions=yes
9924 fi
9925 fi
9926 $RM conftest*
9927 ;;
9928 esac
9929 fi
9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9931 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9932
9933 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9934 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9935 else
9936 :
9937 fi
9938
9939 fi
9940
9941
9942
9943
9944
9945
9946 lt_prog_compiler_wl=
9947 lt_prog_compiler_pic=
9948 lt_prog_compiler_static=
9949
9950
9951 if test yes = "$GCC"; then
9952 lt_prog_compiler_wl='-Wl,'
9953 lt_prog_compiler_static='-static'
9954
9955 case $host_os in
9956 aix*)
9957 # All AIX code is PIC.
9958 if test ia64 = "$host_cpu"; then
9959 # AIX 5 now supports IA64 processor
9960 lt_prog_compiler_static='-Bstatic'
9961 fi
9962 lt_prog_compiler_pic='-fPIC'
9963 ;;
9964
9965 amigaos*)
9966 case $host_cpu in
9967 powerpc)
9968 # see comment about AmigaOS4 .so support
9969 lt_prog_compiler_pic='-fPIC'
9970 ;;
9971 m68k)
9972 # FIXME: we need at least 68020 code to build shared libraries, but
9973 # adding the '-m68020' flag to GCC prevents building anything better,
9974 # like '-m68040'.
9975 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9976 ;;
9977 esac
9978 ;;
9979
9980 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9981 # PIC is the default for these OSes.
9982 ;;
9983
9984 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9985 # This hack is so that the source file can tell whether it is being
9986 # built for inclusion in a dll (and should export symbols for example).
9987 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9988 # (--disable-auto-import) libraries
9989 lt_prog_compiler_pic='-DDLL_EXPORT'
9990 case $host_os in
9991 os2*)
9992 lt_prog_compiler_static='$wl-static'
9993 ;;
9994 esac
9995 ;;
9996
9997 darwin* | rhapsody*)
9998 # PIC is the default on this platform
9999 # Common symbols not allowed in MH_DYLIB files
10000 lt_prog_compiler_pic='-fno-common'
10001 ;;
10002
10003 haiku*)
10004 # PIC is the default for Haiku.
10005 # The "-static" flag exists, but is broken.
10006 lt_prog_compiler_static=
10007 ;;
10008
10009 hpux*)
10010 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10011 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10012 # sets the default TLS model and affects inlining.
10013 case $host_cpu in
10014 hppa*64*)
10015 # +Z the default
10016 ;;
10017 *)
10018 lt_prog_compiler_pic='-fPIC'
10019 ;;
10020 esac
10021 ;;
10022
10023 interix[3-9]*)
10024 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10025 # Instead, we relocate shared libraries at runtime.
10026 ;;
10027
10028 msdosdjgpp*)
10029 # Just because we use GCC doesn't mean we suddenly get shared libraries
10030 # on systems that don't support them.
10031 lt_prog_compiler_can_build_shared=no
10032 enable_shared=no
10033 ;;
10034
10035 *nto* | *qnx*)
10036 # QNX uses GNU C++, but need to define -shared option too, otherwise
10037 # it will coredump.
10038 lt_prog_compiler_pic='-fPIC -shared'
10039 ;;
10040
10041 sysv4*MP*)
10042 if test -d /usr/nec; then
10043 lt_prog_compiler_pic=-Kconform_pic
10044 fi
10045 ;;
10046
10047 *)
10048 lt_prog_compiler_pic='-fPIC'
10049 ;;
10050 esac
10051
10052 case $cc_basename in
10053 nvcc*) # Cuda Compiler Driver 2.2
10054 lt_prog_compiler_wl='-Xlinker '
10055 if test -n "$lt_prog_compiler_pic"; then
10056 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10057 fi
10058 ;;
10059 esac
10060 else
10061 # PORTME Check for flag to pass linker flags through the system compiler.
10062 case $host_os in
10063 aix*)
10064 lt_prog_compiler_wl='-Wl,'
10065 if test ia64 = "$host_cpu"; then
10066 # AIX 5 now supports IA64 processor
10067 lt_prog_compiler_static='-Bstatic'
10068 else
10069 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10070 fi
10071 ;;
10072
10073 darwin* | rhapsody*)
10074 # PIC is the default on this platform
10075 # Common symbols not allowed in MH_DYLIB files
10076 lt_prog_compiler_pic='-fno-common'
10077 case $cc_basename in
10078 nagfor*)
10079 # NAG Fortran compiler
10080 lt_prog_compiler_wl='-Wl,-Wl,,'
10081 lt_prog_compiler_pic='-PIC'
10082 lt_prog_compiler_static='-Bstatic'
10083 ;;
10084 esac
10085 ;;
10086
10087 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10088 # This hack is so that the source file can tell whether it is being
10089 # built for inclusion in a dll (and should export symbols for example).
10090 lt_prog_compiler_pic='-DDLL_EXPORT'
10091 case $host_os in
10092 os2*)
10093 lt_prog_compiler_static='$wl-static'
10094 ;;
10095 esac
10096 ;;
10097
10098 hpux9* | hpux10* | hpux11*)
10099 lt_prog_compiler_wl='-Wl,'
10100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10101 # not for PA HP-UX.
10102 case $host_cpu in
10103 hppa*64*|ia64*)
10104 # +Z the default
10105 ;;
10106 *)
10107 lt_prog_compiler_pic='+Z'
10108 ;;
10109 esac
10110 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10111 lt_prog_compiler_static='$wl-a ${wl}archive'
10112 ;;
10113
10114 irix5* | irix6* | nonstopux*)
10115 lt_prog_compiler_wl='-Wl,'
10116 # PIC (with -KPIC) is the default.
10117 lt_prog_compiler_static='-non_shared'
10118 ;;
10119
10120 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10121 case $cc_basename in
10122 # old Intel for x86_64, which still supported -KPIC.
10123 ecc*)
10124 lt_prog_compiler_wl='-Wl,'
10125 lt_prog_compiler_pic='-KPIC'
10126 lt_prog_compiler_static='-static'
10127 ;;
10128 *flang* | ftn | f18* | f95*)
10129 # Flang compiler.
10130 lt_prog_compiler_wl='-Wl,'
10131 lt_prog_compiler_pic='-fPIC'
10132 lt_prog_compiler_static='-static'
10133 ;;
10134 # flang / f18. f95 an alias for gfortran or flang on Debian
10135 flang* | f18* | f95*)
10136 lt_prog_compiler_wl='-Wl,'
10137 lt_prog_compiler_pic='-fPIC'
10138 lt_prog_compiler_static='-static'
10139 ;;
10140 # icc used to be incompatible with GCC.
10141 # ICC 10 doesn't accept -KPIC any more.
10142 icc* | ifort*)
10143 lt_prog_compiler_wl='-Wl,'
10144 lt_prog_compiler_pic='-fPIC'
10145 lt_prog_compiler_static='-static'
10146 ;;
10147 # Lahey Fortran 8.1.
10148 lf95*)
10149 lt_prog_compiler_wl='-Wl,'
10150 lt_prog_compiler_pic='--shared'
10151 lt_prog_compiler_static='--static'
10152 ;;
10153 nagfor*)
10154 # NAG Fortran compiler
10155 lt_prog_compiler_wl='-Wl,-Wl,,'
10156 lt_prog_compiler_pic='-PIC'
10157 lt_prog_compiler_static='-Bstatic'
10158 ;;
10159 tcc*)
10160 # Fabrice Bellard et al's Tiny C Compiler
10161 lt_prog_compiler_wl='-Wl,'
10162 lt_prog_compiler_pic='-fPIC'
10163 lt_prog_compiler_static='-static'
10164 ;;
10165 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10166 # Portland Group compilers (*not* the Pentium gcc compiler,
10167 # which looks to be a dead project)
10168 lt_prog_compiler_wl='-Wl,'
10169 lt_prog_compiler_pic='-fpic'
10170 lt_prog_compiler_static='-Bstatic'
10171 ;;
10172 ccc*)
10173 lt_prog_compiler_wl='-Wl,'
10174 # All Alpha code is PIC.
10175 lt_prog_compiler_static='-non_shared'
10176 ;;
10177 xl* | bgxl* | bgf* | mpixl*)
10178 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10179 lt_prog_compiler_wl='-Wl,'
10180 lt_prog_compiler_pic='-qpic'
10181 lt_prog_compiler_static='-qstaticlink'
10182 ;;
10183 *)
10184 case `$CC -V 2>&1 | $SED 5q` in
10185 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10186 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10187 lt_prog_compiler_pic='-KPIC'
10188 lt_prog_compiler_static='-Bstatic'
10189 lt_prog_compiler_wl=''
10190 ;;
10191 *Sun\ F* | *Sun*Fortran*)
10192 lt_prog_compiler_pic='-KPIC'
10193 lt_prog_compiler_static='-Bstatic'
10194 lt_prog_compiler_wl='-Qoption ld '
10195 ;;
10196 *Sun\ C*)
10197 # Sun C 5.9
10198 lt_prog_compiler_pic='-KPIC'
10199 lt_prog_compiler_static='-Bstatic'
10200 lt_prog_compiler_wl='-Wl,'
10201 ;;
10202 *Intel*\ [CF]*Compiler*)
10203 lt_prog_compiler_wl='-Wl,'
10204 lt_prog_compiler_pic='-fPIC'
10205 lt_prog_compiler_static='-static'
10206 ;;
10207 *Portland\ Group*)
10208 lt_prog_compiler_wl='-Wl,'
10209 lt_prog_compiler_pic='-fpic'
10210 lt_prog_compiler_static='-Bstatic'
10211 ;;
10212 esac
10213 ;;
10214 esac
10215 ;;
10216
10217 newsos6)
10218 lt_prog_compiler_pic='-KPIC'
10219 lt_prog_compiler_static='-Bstatic'
10220 ;;
10221
10222 *-mlibc)
10223 lt_prog_compiler_wl='-Wl,'
10224 lt_prog_compiler_pic='-fPIC'
10225 lt_prog_compiler_static='-static'
10226 ;;
10227
10228 *nto* | *qnx*)
10229 # QNX uses GNU C++, but need to define -shared option too, otherwise
10230 # it will coredump.
10231 lt_prog_compiler_pic='-fPIC -shared'
10232 ;;
10233
10234 osf3* | osf4* | osf5*)
10235 lt_prog_compiler_wl='-Wl,'
10236 # All OSF/1 code is PIC.
10237 lt_prog_compiler_static='-non_shared'
10238 ;;
10239
10240 rdos*)
10241 lt_prog_compiler_static='-non_shared'
10242 ;;
10243
10244 serenity*)
10245 ;;
10246
10247 solaris*)
10248 lt_prog_compiler_pic='-KPIC'
10249 lt_prog_compiler_static='-Bstatic'
10250 case $cc_basename in
10251 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10252 lt_prog_compiler_wl='-Qoption ld ';;
10253 *)
10254 lt_prog_compiler_wl='-Wl,';;
10255 esac
10256 ;;
10257
10258 sunos4*)
10259 lt_prog_compiler_wl='-Qoption ld '
10260 lt_prog_compiler_pic='-PIC'
10261 lt_prog_compiler_static='-Bstatic'
10262 ;;
10263
10264 sysv4 | sysv4.2uw2* | sysv4.3*)
10265 lt_prog_compiler_wl='-Wl,'
10266 lt_prog_compiler_pic='-KPIC'
10267 lt_prog_compiler_static='-Bstatic'
10268 ;;
10269
10270 sysv4*MP*)
10271 if test -d /usr/nec; then
10272 lt_prog_compiler_pic='-Kconform_pic'
10273 lt_prog_compiler_static='-Bstatic'
10274 fi
10275 ;;
10276
10277 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10278 lt_prog_compiler_wl='-Wl,'
10279 lt_prog_compiler_pic='-KPIC'
10280 lt_prog_compiler_static='-Bstatic'
10281 ;;
10282
10283 unicos*)
10284 lt_prog_compiler_wl='-Wl,'
10285 lt_prog_compiler_can_build_shared=no
10286 ;;
10287
10288 uts4*)
10289 lt_prog_compiler_pic='-pic'
10290 lt_prog_compiler_static='-Bstatic'
10291 ;;
10292
10293 *)
10294 lt_prog_compiler_can_build_shared=no
10295 ;;
10296 esac
10297 fi
10298
10299 case $host_os in
10300 # For platforms that do not support PIC, -DPIC is meaningless:
10301 *djgpp*)
10302 lt_prog_compiler_pic=
10303 ;;
10304 *)
10305 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10306 ;;
10307 esac
10308
10309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10310 printf %s "checking for $compiler option to produce PIC... " >&6; }
10311 if test ${lt_cv_prog_compiler_pic+y}
10312 then :
10313 printf %s "(cached) " >&6
10314 else case e in #(
10315 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10316 esac
10317 fi
10318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10319 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10320 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10321
10322 #
10323 # Check to make sure the PIC flag actually works.
10324 #
10325 if test -n "$lt_prog_compiler_pic"; then
10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10327 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10328 if test ${lt_cv_prog_compiler_pic_works+y}
10329 then :
10330 printf %s "(cached) " >&6
10331 else case e in #(
10332 e) lt_cv_prog_compiler_pic_works=no
10333 ac_outfile=conftest.$ac_objext
10334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10335 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10336 # Insert the option either (1) after the last *FLAGS variable, or
10337 # (2) before a word containing "conftest.", or (3) at the end.
10338 # Note that $ac_compile itself does not contain backslashes and begins
10339 # with a dollar sign (not a hyphen), so the echo should work correctly.
10340 # The option is referenced via a variable to avoid confusing sed.
10341 lt_compile=`echo "$ac_compile" | $SED \
10342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10344 -e 's:$: $lt_compiler_flag:'`
10345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10346 (eval "$lt_compile" 2>conftest.err)
10347 ac_status=$?
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 if (exit $ac_status) && test -s "$ac_outfile"; then
10351 # The compiler can only warn and ignore the option if not recognized
10352 # So say no if there are warnings other than the usual output.
10353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10356 lt_cv_prog_compiler_pic_works=yes
10357 fi
10358 fi
10359 $RM conftest*
10360 ;;
10361 esac
10362 fi
10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10364 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10365
10366 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10367 case $lt_prog_compiler_pic in
10368 "" | " "*) ;;
10369 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10370 esac
10371 else
10372 lt_prog_compiler_pic=
10373 lt_prog_compiler_can_build_shared=no
10374 fi
10375
10376 fi
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388 #
10389 # Check to make sure the static flag actually works.
10390 #
10391 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10393 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10394 if test ${lt_cv_prog_compiler_static_works+y}
10395 then :
10396 printf %s "(cached) " >&6
10397 else case e in #(
10398 e) lt_cv_prog_compiler_static_works=no
10399 save_LDFLAGS=$LDFLAGS
10400 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10401 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10402 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10403 # The linker can only warn and ignore the option if not recognized
10404 # So say no if there are warnings
10405 if test -s conftest.err; then
10406 # Append any errors to the config.log.
10407 cat conftest.err 1>&5
10408 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10410 if diff conftest.exp conftest.er2 >/dev/null; then
10411 lt_cv_prog_compiler_static_works=yes
10412 fi
10413 else
10414 lt_cv_prog_compiler_static_works=yes
10415 fi
10416 fi
10417 $RM -r conftest*
10418 LDFLAGS=$save_LDFLAGS
10419 ;;
10420 esac
10421 fi
10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10423 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10424
10425 if test yes = "$lt_cv_prog_compiler_static_works"; then
10426 :
10427 else
10428 lt_prog_compiler_static=
10429 fi
10430
10431
10432
10433
10434
10435
10436
10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10438 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10439 if test ${lt_cv_prog_compiler_c_o+y}
10440 then :
10441 printf %s "(cached) " >&6
10442 else case e in #(
10443 e) lt_cv_prog_compiler_c_o=no
10444 $RM -r conftest 2>/dev/null
10445 mkdir conftest
10446 cd conftest
10447 mkdir out
10448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10449
10450 lt_compiler_flag="-o out/conftest2.$ac_objext"
10451 # Insert the option either (1) after the last *FLAGS variable, or
10452 # (2) before a word containing "conftest.", or (3) at the end.
10453 # Note that $ac_compile itself does not contain backslashes and begins
10454 # with a dollar sign (not a hyphen), so the echo should work correctly.
10455 lt_compile=`echo "$ac_compile" | $SED \
10456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10458 -e 's:$: $lt_compiler_flag:'`
10459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10460 (eval "$lt_compile" 2>out/conftest.err)
10461 ac_status=$?
10462 cat out/conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10465 then
10466 # The compiler can only warn and ignore the option if not recognized
10467 # So say no if there are warnings
10468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10471 lt_cv_prog_compiler_c_o=yes
10472 fi
10473 fi
10474 chmod u+w . 2>&5
10475 $RM conftest*
10476 # SGI C++ compiler will create directory out/ii_files/ for
10477 # template instantiation
10478 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10479 $RM out/* && rmdir out
10480 cd ..
10481 $RM -r conftest
10482 $RM conftest*
10483 ;;
10484 esac
10485 fi
10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10487 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10488
10489
10490
10491
10492
10493
10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10495 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10496 if test ${lt_cv_prog_compiler_c_o+y}
10497 then :
10498 printf %s "(cached) " >&6
10499 else case e in #(
10500 e) lt_cv_prog_compiler_c_o=no
10501 $RM -r conftest 2>/dev/null
10502 mkdir conftest
10503 cd conftest
10504 mkdir out
10505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10506
10507 lt_compiler_flag="-o out/conftest2.$ac_objext"
10508 # Insert the option either (1) after the last *FLAGS variable, or
10509 # (2) before a word containing "conftest.", or (3) at the end.
10510 # Note that $ac_compile itself does not contain backslashes and begins
10511 # with a dollar sign (not a hyphen), so the echo should work correctly.
10512 lt_compile=`echo "$ac_compile" | $SED \
10513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10515 -e 's:$: $lt_compiler_flag:'`
10516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10517 (eval "$lt_compile" 2>out/conftest.err)
10518 ac_status=$?
10519 cat out/conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10522 then
10523 # The compiler can only warn and ignore the option if not recognized
10524 # So say no if there are warnings
10525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10526 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10527 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10528 lt_cv_prog_compiler_c_o=yes
10529 fi
10530 fi
10531 chmod u+w . 2>&5
10532 $RM conftest*
10533 # SGI C++ compiler will create directory out/ii_files/ for
10534 # template instantiation
10535 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10536 $RM out/* && rmdir out
10537 cd ..
10538 $RM -r conftest
10539 $RM conftest*
10540 ;;
10541 esac
10542 fi
10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10544 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10545
10546
10547
10548
10549 hard_links=nottested
10550 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10551 # do not overwrite the value of need_locks provided by the user
10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10553 printf %s "checking if we can lock with hard links... " >&6; }
10554 hard_links=yes
10555 $RM conftest*
10556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10557 touch conftest.a
10558 ln conftest.a conftest.b 2>&5 || hard_links=no
10559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10561 printf "%s\n" "$hard_links" >&6; }
10562 if test no = "$hard_links"; then
10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10564 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10565 need_locks=warn
10566 fi
10567 else
10568 need_locks=no
10569 fi
10570
10571
10572
10573
10574
10575
10576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10577 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10578
10579 runpath_var=
10580 allow_undefined_flag=
10581 always_export_symbols=no
10582 archive_cmds=
10583 archive_expsym_cmds=
10584 compiler_needs_object=no
10585 enable_shared_with_static_runtimes=no
10586 export_dynamic_flag_spec=
10587 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10588 hardcode_automatic=no
10589 hardcode_direct=no
10590 hardcode_direct_absolute=no
10591 hardcode_libdir_flag_spec=
10592 hardcode_libdir_separator=
10593 hardcode_minus_L=no
10594 hardcode_shlibpath_var=unsupported
10595 inherit_rpath=no
10596 link_all_deplibs=unknown
10597 module_cmds=
10598 module_expsym_cmds=
10599 old_archive_from_new_cmds=
10600 old_archive_from_expsyms_cmds=
10601 thread_safe_flag_spec=
10602 whole_archive_flag_spec=
10603 # include_expsyms should be a list of space-separated symbols to be *always*
10604 # included in the symbol list
10605 include_expsyms=
10606 # exclude_expsyms can be an extended regexp of symbols to exclude
10607 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10608 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10609 # as well as any symbol that contains 'd'.
10610 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10611 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10612 # platforms (ab)use it in PIC code, but their linkers get confused if
10613 # the symbol is explicitly referenced. Since portable code cannot
10614 # rely on this symbol name, it's probably fine to never include it in
10615 # preloaded symbol tables.
10616 # Exclude shared library initialization/finalization symbols.
10617 extract_expsyms_cmds=
10618
10619 case $host_os in
10620 cygwin* | mingw* | windows* | pw32* | cegcc*)
10621 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10622 # When not using gcc, we currently assume that we are using
10623 # Microsoft Visual C++ or Intel C++ Compiler.
10624 if test yes != "$GCC"; then
10625 with_gnu_ld=no
10626 fi
10627 ;;
10628 interix*)
10629 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10630 with_gnu_ld=yes
10631 ;;
10632 linux* | k*bsd*-gnu | gnu*)
10633 link_all_deplibs=no
10634 ;;
10635 esac
10636
10637 ld_shlibs=yes
10638
10639 # On some targets, GNU ld is compatible enough with the native linker
10640 # that we're better off using the native interface for both.
10641 lt_use_gnu_ld_interface=no
10642 if test yes = "$with_gnu_ld"; then
10643 case $host_os in
10644 aix*)
10645 # The AIX port of GNU ld has always aspired to compatibility
10646 # with the native linker. However, as the warning in the GNU ld
10647 # block says, versions before 2.19.5* couldn't really create working
10648 # shared libraries, regardless of the interface used.
10649 case `$LD -v 2>&1` in
10650 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10651 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10652 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10653 *)
10654 lt_use_gnu_ld_interface=yes
10655 ;;
10656 esac
10657 ;;
10658 *)
10659 lt_use_gnu_ld_interface=yes
10660 ;;
10661 esac
10662 fi
10663
10664 if test yes = "$lt_use_gnu_ld_interface"; then
10665 # If archive_cmds runs LD, not CC, wlarc should be empty
10666 wlarc='$wl'
10667
10668 # Set some defaults for GNU ld with shared library support. These
10669 # are reset later if shared libraries are not supported. Putting them
10670 # here allows them to be overridden if necessary.
10671 runpath_var=LD_RUN_PATH
10672 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10673 export_dynamic_flag_spec='$wl--export-dynamic'
10674 # ancient GNU ld didn't support --whole-archive et. al.
10675 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10676 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10677 else
10678 whole_archive_flag_spec=
10679 fi
10680 supports_anon_versioning=no
10681 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10682 *GNU\ gold*) supports_anon_versioning=yes ;;
10683 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10684 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10685 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10686 *\ 2.11.*) ;; # other 2.11 versions
10687 *) supports_anon_versioning=yes ;;
10688 esac
10689
10690 # See if GNU ld supports shared libraries.
10691 case $host_os in
10692 aix[3-9]*)
10693 # On AIX/PPC, the GNU linker is very broken
10694 if test ia64 != "$host_cpu"; then
10695 ld_shlibs=no
10696 cat <<_LT_EOF 1>&2
10697
10698 *** Warning: the GNU linker, at least up to release 2.19, is reported
10699 *** to be unable to reliably create shared libraries on AIX.
10700 *** Therefore, libtool is disabling shared libraries support. If you
10701 *** really care for shared libraries, you may want to install binutils
10702 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10703 *** You will then need to restart the configuration process.
10704
10705 _LT_EOF
10706 fi
10707 ;;
10708
10709 amigaos*)
10710 case $host_cpu in
10711 powerpc)
10712 # see comment about AmigaOS4 .so support
10713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10714 archive_expsym_cmds=''
10715 ;;
10716 m68k)
10717 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)'
10718 hardcode_libdir_flag_spec='-L$libdir'
10719 hardcode_minus_L=yes
10720 ;;
10721 esac
10722 ;;
10723
10724 beos*)
10725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10726 allow_undefined_flag=unsupported
10727 # Joseph Beckenbach <[email protected]> says some releases of gcc
10728 # support --undefined. This deserves some investigation. FIXME
10729 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10730 else
10731 ld_shlibs=no
10732 fi
10733 ;;
10734
10735 cygwin* | mingw* | windows* | pw32* | cegcc*)
10736 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10737 # as there is no search path for DLLs.
10738 hardcode_libdir_flag_spec='-L$libdir'
10739 export_dynamic_flag_spec='$wl--export-all-symbols'
10740 allow_undefined_flag=unsupported
10741 always_export_symbols=no
10742 enable_shared_with_static_runtimes=yes
10743 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'
10744 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10745 file_list_spec='@'
10746
10747 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10749 # If the export-symbols file already is a .def file, use it as
10750 # is; otherwise, prepend EXPORTS...
10751 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10752 cp $export_symbols $output_objdir/$soname.def;
10753 else
10754 echo EXPORTS > $output_objdir/$soname.def;
10755 cat $export_symbols >> $output_objdir/$soname.def;
10756 fi~
10757 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10758 else
10759 ld_shlibs=no
10760 fi
10761 ;;
10762
10763 haiku*)
10764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10765 link_all_deplibs=no
10766 ;;
10767
10768 os2*)
10769 hardcode_libdir_flag_spec='-L$libdir'
10770 hardcode_minus_L=yes
10771 allow_undefined_flag=unsupported
10772 shrext_cmds=.dll
10773 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10774 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10775 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10776 $ECHO EXPORTS >> $output_objdir/$libname.def~
10777 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10778 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10779 emximp -o $lib $output_objdir/$libname.def'
10780 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10781 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10782 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10783 $ECHO EXPORTS >> $output_objdir/$libname.def~
10784 prefix_cmds="$SED"~
10785 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10786 prefix_cmds="$prefix_cmds -e 1d";
10787 fi~
10788 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10789 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10790 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10791 emximp -o $lib $output_objdir/$libname.def'
10792 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10793 enable_shared_with_static_runtimes=yes
10794 file_list_spec='@'
10795 ;;
10796
10797 interix[3-9]*)
10798 hardcode_direct=no
10799 hardcode_shlibpath_var=no
10800 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10801 export_dynamic_flag_spec='$wl-E'
10802 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10803 # Instead, shared libraries are loaded at an image base (0x10000000 by
10804 # default) and relocated if they conflict, which is a slow very memory
10805 # consuming and fragmenting process. To avoid this, we pick a random,
10806 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10807 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10809 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'
10810 ;;
10811
10812 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10813 tmp_diet=no
10814 if test linux-dietlibc = "$host_os"; then
10815 case $cc_basename in
10816 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10817 esac
10818 fi
10819 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10820 && test no = "$tmp_diet"
10821 then
10822 tmp_addflag=' $pic_flag'
10823 tmp_sharedflag='-shared'
10824 case $cc_basename,$host_cpu in
10825 pgcc*) # Portland Group C compiler
10826 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'
10827 tmp_addflag=' $pic_flag'
10828 ;;
10829 pgf77* | pgf90* | pgf95* | pgfortran*)
10830 # Portland Group f77 and f90 compilers
10831 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'
10832 tmp_addflag=' $pic_flag -Mnomain' ;;
10833 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10834 tmp_addflag=' -i_dynamic' ;;
10835 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10836 tmp_addflag=' -i_dynamic -nofor_main' ;;
10837 ifc* | ifort*) # Intel Fortran compiler
10838 tmp_addflag=' -nofor_main' ;;
10839 lf95*) # Lahey Fortran 8.1
10840 whole_archive_flag_spec=
10841 tmp_sharedflag='--shared' ;;
10842 nagfor*) # NAGFOR 5.3
10843 tmp_sharedflag='-Wl,-shared' ;;
10844 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10845 tmp_sharedflag='-qmkshrobj'
10846 tmp_addflag= ;;
10847 nvcc*) # Cuda Compiler Driver 2.2
10848 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'
10849 compiler_needs_object=yes
10850 ;;
10851 esac
10852 case `$CC -V 2>&1 | $SED 5q` in
10853 *Sun\ C*) # Sun C 5.9
10854 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'
10855 compiler_needs_object=yes
10856 tmp_sharedflag='-G' ;;
10857 *Sun\ F*) # Sun Fortran 8.3
10858 tmp_sharedflag='-G' ;;
10859 esac
10860 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10861
10862 if test yes = "$supports_anon_versioning"; then
10863 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10864 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10865 echo "local: *; };" >> $output_objdir/$libname.ver~
10866 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10867 fi
10868
10869 case $cc_basename in
10870 tcc*)
10871 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10872 export_dynamic_flag_spec='-rdynamic'
10873 ;;
10874 xlf* | bgf* | bgxlf* | mpixlf*)
10875 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10876 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10877 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10878 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10879 if test yes = "$supports_anon_versioning"; then
10880 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10881 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10882 echo "local: *; };" >> $output_objdir/$libname.ver~
10883 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10884 fi
10885 ;;
10886 esac
10887 else
10888 ld_shlibs=no
10889 fi
10890 ;;
10891
10892 *-mlibc)
10893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10894 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10895 ;;
10896
10897 netbsd* | netbsdelf*-gnu)
10898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10899 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10900 wlarc=
10901 else
10902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10903 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10904 fi
10905 ;;
10906
10907 solaris*)
10908 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10909 ld_shlibs=no
10910 cat <<_LT_EOF 1>&2
10911
10912 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10913 *** create shared libraries on Solaris systems. Therefore, libtool
10914 *** is disabling shared libraries support. We urge you to upgrade GNU
10915 *** binutils to release 2.9.1 or newer. Another option is to modify
10916 *** your PATH or compiler configuration so that the native linker is
10917 *** used, and then restart.
10918
10919 _LT_EOF
10920 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10921 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10922 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10923 else
10924 ld_shlibs=no
10925 fi
10926 ;;
10927
10928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10929 case `$LD -v 2>&1` in
10930 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10931 ld_shlibs=no
10932 cat <<_LT_EOF 1>&2
10933
10934 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10935 *** reliably create shared libraries on SCO systems. Therefore, libtool
10936 *** is disabling shared libraries support. We urge you to upgrade GNU
10937 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10938 *** your PATH or compiler configuration so that the native linker is
10939 *** used, and then restart.
10940
10941 _LT_EOF
10942 ;;
10943 *)
10944 # For security reasons, it is highly recommended that you always
10945 # use absolute paths for naming shared libraries, and exclude the
10946 # DT_RUNPATH tag from executables and libraries. But doing so
10947 # requires that you compile everything twice, which is a pain.
10948 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10949 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10952 else
10953 ld_shlibs=no
10954 fi
10955 ;;
10956 esac
10957 ;;
10958
10959 sunos4*)
10960 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10961 wlarc=
10962 hardcode_direct=yes
10963 hardcode_shlibpath_var=no
10964 ;;
10965
10966 *)
10967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10969 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10970 else
10971 ld_shlibs=no
10972 fi
10973 ;;
10974 esac
10975
10976 if test no = "$ld_shlibs"; then
10977 runpath_var=
10978 hardcode_libdir_flag_spec=
10979 export_dynamic_flag_spec=
10980 whole_archive_flag_spec=
10981 fi
10982 else
10983 # PORTME fill in a description of your system's linker (not GNU ld)
10984 case $host_os in
10985 aix3*)
10986 allow_undefined_flag=unsupported
10987 always_export_symbols=yes
10988 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'
10989 # Note: this linker hardcodes the directories in LIBPATH if there
10990 # are no directories specified by -L.
10991 hardcode_minus_L=yes
10992 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10993 # Neither direct hardcoding nor static linking is supported with a
10994 # broken collect2.
10995 hardcode_direct=unsupported
10996 fi
10997 ;;
10998
10999 aix[4-9]*)
11000 if test ia64 = "$host_cpu"; then
11001 # On IA64, the linker does run time linking by default, so we don't
11002 # have to do anything special.
11003 aix_use_runtimelinking=no
11004 exp_sym_flag='-Bexport'
11005 no_entry_flag=
11006 else
11007 # If we're using GNU nm, then we don't want the "-C" option.
11008 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11009 # Without the "-l" option, or with the "-B" option, AIX nm treats
11010 # weak defined symbols like other global defined symbols, whereas
11011 # GNU nm marks them as "W".
11012 # While the 'weak' keyword is ignored in the Export File, we need
11013 # it in the Import File for the 'aix-soname' feature, so we have
11014 # to replace the "-B" option with "-P" for AIX nm.
11015 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11016 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'
11017 else
11018 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11019 fi
11020 aix_use_runtimelinking=no
11021
11022 # Test if we are trying to use run time linking or normal
11023 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11024 # have runtime linking enabled, and use it for executables.
11025 # For shared libraries, we enable/disable runtime linking
11026 # depending on the kind of the shared library created -
11027 # when "with_aix_soname,aix_use_runtimelinking" is:
11028 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11029 # "aix,yes" lib.so shared, rtl:yes, for executables
11030 # lib.a static archive
11031 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11032 # lib.a(lib.so.V) shared, rtl:no, for executables
11033 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11034 # lib.a(lib.so.V) shared, rtl:no
11035 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11036 # lib.a static archive
11037 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11038 for ld_flag in $LDFLAGS; do
11039 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11040 aix_use_runtimelinking=yes
11041 break
11042 fi
11043 done
11044 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11045 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11046 # so we don't have lib.a shared libs to link our executables.
11047 # We have to force runtime linking in this case.
11048 aix_use_runtimelinking=yes
11049 LDFLAGS="$LDFLAGS -Wl,-brtl"
11050 fi
11051 ;;
11052 esac
11053
11054 exp_sym_flag='-bexport'
11055 no_entry_flag='-bnoentry'
11056 fi
11057
11058 # When large executables or shared objects are built, AIX ld can
11059 # have problems creating the table of contents. If linking a library
11060 # or program results in "error TOC overflow" add -mminimal-toc to
11061 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11062 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11063
11064 archive_cmds=''
11065 hardcode_direct=yes
11066 hardcode_direct_absolute=yes
11067 hardcode_libdir_separator=':'
11068 link_all_deplibs=yes
11069 file_list_spec='$wl-f,'
11070 case $with_aix_soname,$aix_use_runtimelinking in
11071 aix,*) ;; # traditional, no import file
11072 svr4,* | *,yes) # use import file
11073 # The Import File defines what to hardcode.
11074 hardcode_direct=no
11075 hardcode_direct_absolute=no
11076 ;;
11077 esac
11078
11079 if test yes = "$GCC"; then
11080 case $host_os in aix4.[012]|aix4.[012].*)
11081 # We only want to do this on AIX 4.2 and lower, the check
11082 # below for broken collect2 doesn't work under 4.3+
11083 collect2name=`$CC -print-prog-name=collect2`
11084 if test -f "$collect2name" &&
11085 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11086 then
11087 # We have reworked collect2
11088 :
11089 else
11090 # We have old collect2
11091 hardcode_direct=unsupported
11092 # It fails to find uninstalled libraries when the uninstalled
11093 # path is not listed in the libpath. Setting hardcode_minus_L
11094 # to unsupported forces relinking
11095 hardcode_minus_L=yes
11096 hardcode_libdir_flag_spec='-L$libdir'
11097 hardcode_libdir_separator=
11098 fi
11099 ;;
11100 esac
11101 shared_flag='-shared'
11102 if test yes = "$aix_use_runtimelinking"; then
11103 shared_flag="$shared_flag "'$wl-G'
11104 fi
11105 # Need to ensure runtime linking is disabled for the traditional
11106 # shared library, or the linker may eventually find shared libraries
11107 # /with/ Import File - we do not want to mix them.
11108 shared_flag_aix='-shared'
11109 shared_flag_svr4='-shared $wl-G'
11110 else
11111 # not using gcc
11112 if test ia64 = "$host_cpu"; then
11113 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11114 # chokes on -Wl,-G. The following line is correct:
11115 shared_flag='-G'
11116 else
11117 if test yes = "$aix_use_runtimelinking"; then
11118 shared_flag='$wl-G'
11119 else
11120 shared_flag='$wl-bM:SRE'
11121 fi
11122 shared_flag_aix='$wl-bM:SRE'
11123 shared_flag_svr4='$wl-G'
11124 fi
11125 fi
11126
11127 export_dynamic_flag_spec='$wl-bexpall'
11128 # It seems that -bexpall does not export symbols beginning with
11129 # underscore (_), so it is better to generate a list of symbols to export.
11130 always_export_symbols=yes
11131 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11132 # Warning - without using the other runtime loading flags (-brtl),
11133 # -berok will link without error, but may produce a broken library.
11134 allow_undefined_flag='-berok'
11135 # Determine the default libpath from the value encoded in an
11136 # empty executable.
11137 if test set = "${lt_cv_aix_libpath+set}"; then
11138 aix_libpath=$lt_cv_aix_libpath
11139 else
11140 if test ${lt_cv_aix_libpath_+y}
11141 then :
11142 printf %s "(cached) " >&6
11143 else case e in #(
11144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146
11147 int
11148 main (void)
11149 {
11150
11151 ;
11152 return 0;
11153 }
11154 _ACEOF
11155 if ac_fn_c_try_link "$LINENO"
11156 then :
11157
11158 lt_aix_libpath_sed='
11159 /Import File Strings/,/^$/ {
11160 /^0/ {
11161 s/^0 *\([^ ]*\) *$/\1/
11162 p
11163 }
11164 }'
11165 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11166 # Check for a 64-bit object if we didn't find anything.
11167 if test -z "$lt_cv_aix_libpath_"; then
11168 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11169 fi
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11172 conftest$ac_exeext conftest.$ac_ext
11173 if test -z "$lt_cv_aix_libpath_"; then
11174 lt_cv_aix_libpath_=/usr/lib:/lib
11175 fi
11176 ;;
11177 esac
11178 fi
11179
11180 aix_libpath=$lt_cv_aix_libpath_
11181 fi
11182
11183 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11184 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
11185 else
11186 if test ia64 = "$host_cpu"; then
11187 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11188 allow_undefined_flag="-z nodefs"
11189 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"
11190 else
11191 # Determine the default libpath from the value encoded in an
11192 # empty executable.
11193 if test set = "${lt_cv_aix_libpath+set}"; then
11194 aix_libpath=$lt_cv_aix_libpath
11195 else
11196 if test ${lt_cv_aix_libpath_+y}
11197 then :
11198 printf %s "(cached) " >&6
11199 else case e in #(
11200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11202
11203 int
11204 main (void)
11205 {
11206
11207 ;
11208 return 0;
11209 }
11210 _ACEOF
11211 if ac_fn_c_try_link "$LINENO"
11212 then :
11213
11214 lt_aix_libpath_sed='
11215 /Import File Strings/,/^$/ {
11216 /^0/ {
11217 s/^0 *\([^ ]*\) *$/\1/
11218 p
11219 }
11220 }'
11221 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11222 # Check for a 64-bit object if we didn't find anything.
11223 if test -z "$lt_cv_aix_libpath_"; then
11224 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11225 fi
11226 fi
11227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11228 conftest$ac_exeext conftest.$ac_ext
11229 if test -z "$lt_cv_aix_libpath_"; then
11230 lt_cv_aix_libpath_=/usr/lib:/lib
11231 fi
11232 ;;
11233 esac
11234 fi
11235
11236 aix_libpath=$lt_cv_aix_libpath_
11237 fi
11238
11239 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11240 # Warning - without using the other run time loading flags,
11241 # -berok will link without error, but may produce a broken library.
11242 no_undefined_flag=' $wl-bernotok'
11243 allow_undefined_flag=' $wl-berok'
11244 if test yes = "$with_gnu_ld"; then
11245 # We only use this code for GNU lds that support --whole-archive.
11246 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11247 else
11248 # Exported symbols can be pulled into shared objects from archives
11249 whole_archive_flag_spec='$convenience'
11250 fi
11251 archive_cmds_need_lc=yes
11252 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11253 # -brtl affects multiple linker settings, -berok does not and is overridden later
11254 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11255 if test svr4 != "$with_aix_soname"; then
11256 # This is similar to how AIX traditionally builds its shared libraries.
11257 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'
11258 fi
11259 if test aix != "$with_aix_soname"; then
11260 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'
11261 else
11262 # used by -dlpreopen to get the symbols
11263 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11264 fi
11265 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11266 fi
11267 fi
11268 ;;
11269
11270 amigaos*)
11271 case $host_cpu in
11272 powerpc)
11273 # see comment about AmigaOS4 .so support
11274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11275 archive_expsym_cmds=''
11276 ;;
11277 m68k)
11278 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)'
11279 hardcode_libdir_flag_spec='-L$libdir'
11280 hardcode_minus_L=yes
11281 ;;
11282 esac
11283 ;;
11284
11285 bsdi[45]*)
11286 export_dynamic_flag_spec=-rdynamic
11287 ;;
11288
11289 cygwin* | mingw* | windows* | pw32* | cegcc*)
11290 # When not using gcc, we currently assume that we are using
11291 # Microsoft Visual C++ or Intel C++ Compiler.
11292 # hardcode_libdir_flag_spec is actually meaningless, as there is
11293 # no search path for DLLs.
11294 case $cc_basename in
11295 cl* | icl*)
11296 # Native MSVC or ICC
11297 hardcode_libdir_flag_spec=' '
11298 allow_undefined_flag=unsupported
11299 always_export_symbols=yes
11300 file_list_spec='@'
11301 # Tell ltmain to make .lib files, not .a files.
11302 libext=lib
11303 # Tell ltmain to make .dll files, not .so files.
11304 shrext_cmds=.dll
11305 # FIXME: Setting linknames here is a bad hack.
11306 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11307 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11308 cp "$export_symbols" "$output_objdir/$soname.def";
11309 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11310 else
11311 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11312 fi~
11313 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11314 linknames='
11315 # The linker will not automatically build a static lib if we build a DLL.
11316 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11317 enable_shared_with_static_runtimes=yes
11318 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11320 # Don't use ranlib
11321 old_postinstall_cmds='chmod 644 $oldlib'
11322 postlink_cmds='lt_outputfile="@OUTPUT@"~
11323 lt_tool_outputfile="@TOOL_OUTPUT@"~
11324 case $lt_outputfile in
11325 *.exe|*.EXE) ;;
11326 *)
11327 lt_outputfile=$lt_outputfile.exe
11328 lt_tool_outputfile=$lt_tool_outputfile.exe
11329 ;;
11330 esac~
11331 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11332 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11333 $RM "$lt_outputfile.manifest";
11334 fi'
11335 ;;
11336 *)
11337 # Assume MSVC and ICC wrapper
11338 hardcode_libdir_flag_spec=' '
11339 allow_undefined_flag=unsupported
11340 # Tell ltmain to make .lib files, not .a files.
11341 libext=lib
11342 # Tell ltmain to make .dll files, not .so files.
11343 shrext_cmds=.dll
11344 # FIXME: Setting linknames here is a bad hack.
11345 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11346 # The linker will automatically build a .lib file if we build a DLL.
11347 old_archive_from_new_cmds='true'
11348 # FIXME: Should let the user specify the lib program.
11349 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11350 enable_shared_with_static_runtimes=yes
11351 ;;
11352 esac
11353 ;;
11354
11355 darwin* | rhapsody*)
11356
11357
11358 archive_cmds_need_lc=no
11359 hardcode_direct=no
11360 hardcode_automatic=yes
11361 hardcode_shlibpath_var=unsupported
11362 if test yes = "$lt_cv_ld_force_load"; then
11363 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\"`'
11364
11365 else
11366 whole_archive_flag_spec=''
11367 fi
11368 link_all_deplibs=yes
11369 allow_undefined_flag=$_lt_dar_allow_undefined
11370 case $cc_basename in
11371 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11372 *) _lt_dar_can_shared=$GCC ;;
11373 esac
11374 if test yes = "$_lt_dar_can_shared"; then
11375 output_verbose_link_cmd=func_echo_all
11376 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11377 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11378 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"
11379 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"
11380
11381 else
11382 ld_shlibs=no
11383 fi
11384
11385 ;;
11386
11387 dgux*)
11388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11389 hardcode_libdir_flag_spec='-L$libdir'
11390 hardcode_shlibpath_var=no
11391 ;;
11392
11393 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11394 # support. Future versions do this automatically, but an explicit c++rt0.o
11395 # does not break anything, and helps significantly (at the cost of a little
11396 # extra space).
11397 freebsd2.2*)
11398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11399 hardcode_libdir_flag_spec='-R$libdir'
11400 hardcode_direct=yes
11401 hardcode_shlibpath_var=no
11402 ;;
11403
11404 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11405 freebsd2.*)
11406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11407 hardcode_direct=yes
11408 hardcode_minus_L=yes
11409 hardcode_shlibpath_var=no
11410 ;;
11411
11412 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11413 freebsd* | dragonfly* | midnightbsd*)
11414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11415 hardcode_libdir_flag_spec='-R$libdir'
11416 hardcode_direct=yes
11417 hardcode_shlibpath_var=no
11418 ;;
11419
11420 hpux9*)
11421 if test yes = "$GCC"; then
11422 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'
11423 else
11424 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'
11425 fi
11426 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11427 hardcode_libdir_separator=:
11428 hardcode_direct=yes
11429
11430 # hardcode_minus_L: Not really in the search PATH,
11431 # but as the default location of the library.
11432 hardcode_minus_L=yes
11433 export_dynamic_flag_spec='$wl-E'
11434 ;;
11435
11436 hpux10*)
11437 if test yes,no = "$GCC,$with_gnu_ld"; then
11438 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11439 else
11440 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11441 fi
11442 if test no = "$with_gnu_ld"; then
11443 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11444 hardcode_libdir_separator=:
11445 hardcode_direct=yes
11446 hardcode_direct_absolute=yes
11447 export_dynamic_flag_spec='$wl-E'
11448 # hardcode_minus_L: Not really in the search PATH,
11449 # but as the default location of the library.
11450 hardcode_minus_L=yes
11451 fi
11452 ;;
11453
11454 hpux11*)
11455 if test yes,no = "$GCC,$with_gnu_ld"; then
11456 case $host_cpu in
11457 hppa*64*)
11458 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11459 ;;
11460 ia64*)
11461 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11462 ;;
11463 *)
11464 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11465 ;;
11466 esac
11467 else
11468 case $host_cpu in
11469 hppa*64*)
11470 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11471 ;;
11472 ia64*)
11473 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11474 ;;
11475 *)
11476
11477 # Older versions of the 11.00 compiler do not understand -b yet
11478 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11480 printf %s "checking if $CC understands -b... " >&6; }
11481 if test ${lt_cv_prog_compiler__b+y}
11482 then :
11483 printf %s "(cached) " >&6
11484 else case e in #(
11485 e) lt_cv_prog_compiler__b=no
11486 save_LDFLAGS=$LDFLAGS
11487 LDFLAGS="$LDFLAGS -b"
11488 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11490 # The linker can only warn and ignore the option if not recognized
11491 # So say no if there are warnings
11492 if test -s conftest.err; then
11493 # Append any errors to the config.log.
11494 cat conftest.err 1>&5
11495 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11497 if diff conftest.exp conftest.er2 >/dev/null; then
11498 lt_cv_prog_compiler__b=yes
11499 fi
11500 else
11501 lt_cv_prog_compiler__b=yes
11502 fi
11503 fi
11504 $RM -r conftest*
11505 LDFLAGS=$save_LDFLAGS
11506 ;;
11507 esac
11508 fi
11509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11510 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11511
11512 if test yes = "$lt_cv_prog_compiler__b"; then
11513 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11514 else
11515 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11516 fi
11517
11518 ;;
11519 esac
11520 fi
11521 if test no = "$with_gnu_ld"; then
11522 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11523 hardcode_libdir_separator=:
11524
11525 case $host_cpu in
11526 hppa*64*|ia64*)
11527 hardcode_direct=no
11528 hardcode_shlibpath_var=no
11529 ;;
11530 *)
11531 hardcode_direct=yes
11532 hardcode_direct_absolute=yes
11533 export_dynamic_flag_spec='$wl-E'
11534
11535 # hardcode_minus_L: Not really in the search PATH,
11536 # but as the default location of the library.
11537 hardcode_minus_L=yes
11538 ;;
11539 esac
11540 fi
11541 ;;
11542
11543 irix5* | irix6* | nonstopux*)
11544 if test yes = "$GCC"; then
11545 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'
11546 # Try to use the -exported_symbol ld option, if it does not
11547 # work, assume that -exports_file does not work either and
11548 # implicitly export all symbols.
11549 # This should be the same for all languages, so no per-tag cache variable.
11550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11551 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11552 if test ${lt_cv_irix_exported_symbol+y}
11553 then :
11554 printf %s "(cached) " >&6
11555 else case e in #(
11556 e) save_LDFLAGS=$LDFLAGS
11557 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560 int foo (void) { return 0; }
11561 _ACEOF
11562 if ac_fn_c_try_link "$LINENO"
11563 then :
11564 lt_cv_irix_exported_symbol=yes
11565 else case e in #(
11566 e) lt_cv_irix_exported_symbol=no ;;
11567 esac
11568 fi
11569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11570 conftest$ac_exeext conftest.$ac_ext
11571 LDFLAGS=$save_LDFLAGS ;;
11572 esac
11573 fi
11574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11575 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11576 if test yes = "$lt_cv_irix_exported_symbol"; then
11577 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'
11578 fi
11579 link_all_deplibs=no
11580 else
11581 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'
11582 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'
11583 fi
11584 archive_cmds_need_lc='no'
11585 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11586 hardcode_libdir_separator=:
11587 inherit_rpath=yes
11588 link_all_deplibs=yes
11589 ;;
11590
11591 linux*)
11592 case $cc_basename in
11593 tcc*)
11594 # Fabrice Bellard et al's Tiny C Compiler
11595 ld_shlibs=yes
11596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11597 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11598 ;;
11599 esac
11600 ;;
11601
11602 *-mlibc)
11603 ;;
11604
11605 netbsd* | netbsdelf*-gnu)
11606 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11608 else
11609 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11610 fi
11611 hardcode_libdir_flag_spec='-R$libdir'
11612 hardcode_direct=yes
11613 hardcode_shlibpath_var=no
11614 ;;
11615
11616 newsos6)
11617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11618 hardcode_direct=yes
11619 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11620 hardcode_libdir_separator=:
11621 hardcode_shlibpath_var=no
11622 ;;
11623
11624 *nto* | *qnx*)
11625 ;;
11626
11627 openbsd*)
11628 if test -f /usr/libexec/ld.so; then
11629 hardcode_direct=yes
11630 hardcode_shlibpath_var=no
11631 hardcode_direct_absolute=yes
11632 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11633 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11634 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11635 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11636 export_dynamic_flag_spec='$wl-E'
11637 else
11638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11639 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11640 fi
11641 else
11642 ld_shlibs=no
11643 fi
11644 ;;
11645
11646 os2*)
11647 hardcode_libdir_flag_spec='-L$libdir'
11648 hardcode_minus_L=yes
11649 allow_undefined_flag=unsupported
11650 shrext_cmds=.dll
11651 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11652 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11653 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11654 $ECHO EXPORTS >> $output_objdir/$libname.def~
11655 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11656 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11657 emximp -o $lib $output_objdir/$libname.def'
11658 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11659 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11660 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11661 $ECHO EXPORTS >> $output_objdir/$libname.def~
11662 prefix_cmds="$SED"~
11663 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11664 prefix_cmds="$prefix_cmds -e 1d";
11665 fi~
11666 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11667 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11668 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11669 emximp -o $lib $output_objdir/$libname.def'
11670 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11671 enable_shared_with_static_runtimes=yes
11672 file_list_spec='@'
11673 ;;
11674
11675 osf3*)
11676 if test yes = "$GCC"; then
11677 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11678 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'
11679 else
11680 allow_undefined_flag=' -expect_unresolved \*'
11681 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'
11682 fi
11683 archive_cmds_need_lc='no'
11684 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11685 hardcode_libdir_separator=:
11686 ;;
11687
11688 osf4* | osf5*) # as osf3* with the addition of -msym flag
11689 if test yes = "$GCC"; then
11690 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11691 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'
11692 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11693 else
11694 allow_undefined_flag=' -expect_unresolved \*'
11695 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'
11696 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~
11697 $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'
11698
11699 # Both c and cxx compiler support -rpath directly
11700 hardcode_libdir_flag_spec='-rpath $libdir'
11701 fi
11702 archive_cmds_need_lc='no'
11703 hardcode_libdir_separator=:
11704 ;;
11705
11706 serenity*)
11707 ;;
11708
11709 solaris*)
11710 no_undefined_flag=' -z defs'
11711 if test yes = "$GCC"; then
11712 wlarc='$wl'
11713 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11714 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11715 $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'
11716 else
11717 case `$CC -V 2>&1` in
11718 *"Compilers 5.0"*)
11719 wlarc=''
11720 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11721 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11722 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11723 ;;
11724 *)
11725 wlarc='$wl'
11726 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11728 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11729 ;;
11730 esac
11731 fi
11732 hardcode_libdir_flag_spec='-R$libdir'
11733 hardcode_shlibpath_var=no
11734 case $host_os in
11735 solaris2.[0-5] | solaris2.[0-5].*) ;;
11736 *)
11737 # The compiler driver will combine and reorder linker options,
11738 # but understands '-z linker_flag'. GCC discards it without '$wl',
11739 # but is careful enough not to reorder.
11740 # Supported since Solaris 2.6 (maybe 2.5.1?)
11741 if test yes = "$GCC"; then
11742 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11743 else
11744 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11745 fi
11746 ;;
11747 esac
11748 link_all_deplibs=yes
11749 ;;
11750
11751 sunos4*)
11752 if test sequent = "$host_vendor"; then
11753 # Use $CC to link under sequent, because it throws in some extra .o
11754 # files that make .init and .fini sections work.
11755 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11756 else
11757 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11758 fi
11759 hardcode_libdir_flag_spec='-L$libdir'
11760 hardcode_direct=yes
11761 hardcode_minus_L=yes
11762 hardcode_shlibpath_var=no
11763 ;;
11764
11765 sysv4)
11766 case $host_vendor in
11767 sni)
11768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11769 hardcode_direct=yes # is this really true???
11770 ;;
11771 siemens)
11772 ## LD is ld it makes a PLAMLIB
11773 ## CC just makes a GrossModule.
11774 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11775 reload_cmds='$CC -r -o $output$reload_objs'
11776 hardcode_direct=no
11777 ;;
11778 motorola)
11779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11780 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11781 ;;
11782 esac
11783 runpath_var='LD_RUN_PATH'
11784 hardcode_shlibpath_var=no
11785 ;;
11786
11787 sysv4.3*)
11788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11789 hardcode_shlibpath_var=no
11790 export_dynamic_flag_spec='-Bexport'
11791 ;;
11792
11793 sysv4*MP*)
11794 if test -d /usr/nec; then
11795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11796 hardcode_shlibpath_var=no
11797 runpath_var=LD_RUN_PATH
11798 hardcode_runpath_var=yes
11799 ld_shlibs=yes
11800 fi
11801 ;;
11802
11803 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11804 no_undefined_flag='$wl-z,text'
11805 archive_cmds_need_lc=no
11806 hardcode_shlibpath_var=no
11807 runpath_var='LD_RUN_PATH'
11808
11809 if test yes = "$GCC"; then
11810 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11811 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11812 else
11813 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11814 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11815 fi
11816 ;;
11817
11818 sysv5* | sco3.2v5* | sco5v6*)
11819 # Note: We CANNOT use -z defs as we might desire, because we do not
11820 # link with -lc, and that would cause any symbols used from libc to
11821 # always be unresolved, which means just about no library would
11822 # ever link correctly. If we're not using GNU ld we use -z text
11823 # though, which does catch some bad symbols but isn't as heavy-handed
11824 # as -z defs.
11825 no_undefined_flag='$wl-z,text'
11826 allow_undefined_flag='$wl-z,nodefs'
11827 archive_cmds_need_lc=no
11828 hardcode_shlibpath_var=no
11829 hardcode_libdir_flag_spec='$wl-R,$libdir'
11830 hardcode_libdir_separator=':'
11831 link_all_deplibs=yes
11832 export_dynamic_flag_spec='$wl-Bexport'
11833 runpath_var='LD_RUN_PATH'
11834
11835 if test yes = "$GCC"; then
11836 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11837 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11838 else
11839 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11840 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11841 fi
11842 ;;
11843
11844 uts4*)
11845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11846 hardcode_libdir_flag_spec='-L$libdir'
11847 hardcode_shlibpath_var=no
11848 ;;
11849
11850 *)
11851 ld_shlibs=no
11852 ;;
11853 esac
11854
11855 if test sni = "$host_vendor"; then
11856 case $host in
11857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11858 export_dynamic_flag_spec='$wl-Blargedynsym'
11859 ;;
11860 esac
11861 fi
11862 fi
11863
11864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11865 printf "%s\n" "$ld_shlibs" >&6; }
11866 test no = "$ld_shlibs" && can_build_shared=no
11867
11868 with_gnu_ld=$with_gnu_ld
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884 #
11885 # Do we need to explicitly link libc?
11886 #
11887 case "x$archive_cmds_need_lc" in
11888 x|xyes)
11889 # Assume -lc should be added
11890 archive_cmds_need_lc=yes
11891
11892 if test yes,yes = "$GCC,$enable_shared"; then
11893 case $archive_cmds in
11894 *'~'*)
11895 # FIXME: we may have to deal with multi-command sequences.
11896 ;;
11897 '$CC '*)
11898 # Test whether the compiler implicitly links with -lc since on some
11899 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11900 # to ld, don't add -lc before -lgcc.
11901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11902 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11903 if test ${lt_cv_archive_cmds_need_lc+y}
11904 then :
11905 printf %s "(cached) " >&6
11906 else case e in #(
11907 e) $RM conftest*
11908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11909
11910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11911 (eval $ac_compile) 2>&5
11912 ac_status=$?
11913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11914 test $ac_status = 0; } 2>conftest.err; then
11915 soname=conftest
11916 lib=conftest
11917 libobjs=conftest.$ac_objext
11918 deplibs=
11919 wl=$lt_prog_compiler_wl
11920 pic_flag=$lt_prog_compiler_pic
11921 compiler_flags=-v
11922 linker_flags=-v
11923 verstring=
11924 output_objdir=.
11925 libname=conftest
11926 lt_save_allow_undefined_flag=$allow_undefined_flag
11927 allow_undefined_flag=
11928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11929 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11930 ac_status=$?
11931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11932 test $ac_status = 0; }
11933 then
11934 lt_cv_archive_cmds_need_lc=no
11935 else
11936 lt_cv_archive_cmds_need_lc=yes
11937 fi
11938 allow_undefined_flag=$lt_save_allow_undefined_flag
11939 else
11940 cat conftest.err 1>&5
11941 fi
11942 $RM conftest*
11943 ;;
11944 esac
11945 fi
11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11947 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11948 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11949 ;;
11950 esac
11951 fi
11952 ;;
11953 esac
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12107 printf %s "checking dynamic linker characteristics... " >&6; }
12108
12109 if test yes = "$GCC"; then
12110 case $host_os in
12111 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12112 *) lt_awk_arg='/^libraries:/' ;;
12113 esac
12114 case $host_os in
12115 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12116 *) lt_sed_strip_eq='s|=/|/|g' ;;
12117 esac
12118 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12119 case $lt_search_path_spec in
12120 *\;*)
12121 # if the path contains ";" then we assume it to be the separator
12122 # otherwise default to the standard path separator (i.e. ":") - it is
12123 # assumed that no part of a normal pathname contains ";" but that should
12124 # okay in the real world where ";" in dirpaths is itself problematic.
12125 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12126 ;;
12127 *)
12128 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12129 ;;
12130 esac
12131 # Ok, now we have the path, separated by spaces, we can step through it
12132 # and add multilib dir if necessary...
12133 lt_tmp_lt_search_path_spec=
12134 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12135 # ...but if some path component already ends with the multilib dir we assume
12136 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12137 case "$lt_multi_os_dir; $lt_search_path_spec " in
12138 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12139 lt_multi_os_dir=
12140 ;;
12141 esac
12142 for lt_sys_path in $lt_search_path_spec; do
12143 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12144 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12145 elif test -n "$lt_multi_os_dir"; then
12146 test -d "$lt_sys_path" && \
12147 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12148 fi
12149 done
12150 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12151 BEGIN {RS = " "; FS = "/|\n";} {
12152 lt_foo = "";
12153 lt_count = 0;
12154 for (lt_i = NF; lt_i > 0; lt_i--) {
12155 if ($lt_i != "" && $lt_i != ".") {
12156 if ($lt_i == "..") {
12157 lt_count++;
12158 } else {
12159 if (lt_count == 0) {
12160 lt_foo = "/" $lt_i lt_foo;
12161 } else {
12162 lt_count--;
12163 }
12164 }
12165 }
12166 }
12167 if (lt_foo != "") { lt_freq[lt_foo]++; }
12168 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12169 }'`
12170 # AWK program above erroneously prepends '/' to C:/dos/paths
12171 # for these hosts.
12172 case $host_os in
12173 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12174 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12175 esac
12176 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12177 else
12178 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12179 fi
12180 library_names_spec=
12181 libname_spec='lib$name'
12182 soname_spec=
12183 shrext_cmds=.so
12184 postinstall_cmds=
12185 postuninstall_cmds=
12186 finish_cmds=
12187 finish_eval=
12188 shlibpath_var=
12189 shlibpath_overrides_runpath=unknown
12190 version_type=none
12191 dynamic_linker="$host_os ld.so"
12192 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12193 need_lib_prefix=unknown
12194 hardcode_into_libs=no
12195
12196 # when you set need_version to no, make sure it does not cause -set_version
12197 # flags to be left without arguments
12198 need_version=unknown
12199
12200
12201
12202 case $host_os in
12203 aix3*)
12204 version_type=linux # correct to gnu/linux during the next big refactor
12205 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12206 shlibpath_var=LIBPATH
12207
12208 # AIX 3 has no versioning support, so we append a major version to the name.
12209 soname_spec='$libname$release$shared_ext$major'
12210 ;;
12211
12212 aix[4-9]*)
12213 version_type=linux # correct to gnu/linux during the next big refactor
12214 need_lib_prefix=no
12215 need_version=no
12216 hardcode_into_libs=yes
12217 if test ia64 = "$host_cpu"; then
12218 # AIX 5 supports IA64
12219 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12220 shlibpath_var=LD_LIBRARY_PATH
12221 else
12222 # With GCC up to 2.95.x, collect2 would create an import file
12223 # for dependence libraries. The import file would start with
12224 # the line '#! .'. This would cause the generated library to
12225 # depend on '.', always an invalid library. This was fixed in
12226 # development snapshots of GCC prior to 3.0.
12227 case $host_os in
12228 aix4 | aix4.[01] | aix4.[01].*)
12229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12230 echo ' yes '
12231 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12232 :
12233 else
12234 can_build_shared=no
12235 fi
12236 ;;
12237 esac
12238 # Using Import Files as archive members, it is possible to support
12239 # filename-based versioning of shared library archives on AIX. While
12240 # this would work for both with and without runtime linking, it will
12241 # prevent static linking of such archives. So we do filename-based
12242 # shared library versioning with .so extension only, which is used
12243 # when both runtime linking and shared linking is enabled.
12244 # Unfortunately, runtime linking may impact performance, so we do
12245 # not want this to be the default eventually. Also, we use the
12246 # versioned .so libs for executables only if there is the -brtl
12247 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12248 # To allow for filename-based versioning support, we need to create
12249 # libNAME.so.V as an archive file, containing:
12250 # *) an Import File, referring to the versioned filename of the
12251 # archive as well as the shared archive member, telling the
12252 # bitwidth (32 or 64) of that shared object, and providing the
12253 # list of exported symbols of that shared object, eventually
12254 # decorated with the 'weak' keyword
12255 # *) the shared object with the F_LOADONLY flag set, to really avoid
12256 # it being seen by the linker.
12257 # At run time we better use the real file rather than another symlink,
12258 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12259
12260 case $with_aix_soname,$aix_use_runtimelinking in
12261 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12262 # soname into executable. Probably we can add versioning support to
12263 # collect2, so additional links can be useful in future.
12264 aix,yes) # traditional libtool
12265 dynamic_linker='AIX unversionable lib.so'
12266 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12267 # instead of lib<name>.a to let people know that these are not
12268 # typical AIX shared libraries.
12269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12270 ;;
12271 aix,no) # traditional AIX only
12272 dynamic_linker='AIX lib.a(lib.so.V)'
12273 # We preserve .a as extension for shared libraries through AIX4.2
12274 # and later when we are not doing run time linking.
12275 library_names_spec='$libname$release.a $libname.a'
12276 soname_spec='$libname$release$shared_ext$major'
12277 ;;
12278 svr4,*) # full svr4 only
12279 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12280 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12281 # We do not specify a path in Import Files, so LIBPATH fires.
12282 shlibpath_overrides_runpath=yes
12283 ;;
12284 *,yes) # both, prefer svr4
12285 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12286 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12287 # unpreferred sharedlib libNAME.a needs extra handling
12288 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"'
12289 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"'
12290 # We do not specify a path in Import Files, so LIBPATH fires.
12291 shlibpath_overrides_runpath=yes
12292 ;;
12293 *,no) # both, prefer aix
12294 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12295 library_names_spec='$libname$release.a $libname.a'
12296 soname_spec='$libname$release$shared_ext$major'
12297 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12298 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)'
12299 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"'
12300 ;;
12301 esac
12302 shlibpath_var=LIBPATH
12303 fi
12304 ;;
12305
12306 amigaos*)
12307 case $host_cpu in
12308 powerpc)
12309 # Since July 2007 AmigaOS4 officially supports .so libraries.
12310 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12312 ;;
12313 m68k)
12314 library_names_spec='$libname.ixlibrary $libname.a'
12315 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12316 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'
12317 ;;
12318 esac
12319 ;;
12320
12321 beos*)
12322 library_names_spec='$libname$shared_ext'
12323 dynamic_linker="$host_os ld.so"
12324 shlibpath_var=LIBRARY_PATH
12325 ;;
12326
12327 bsdi[45]*)
12328 version_type=linux # correct to gnu/linux during the next big refactor
12329 need_version=no
12330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12331 soname_spec='$libname$release$shared_ext$major'
12332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12336 # the default ld.so.conf also contains /usr/contrib/lib and
12337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12338 # libtool to hard-code these into programs
12339 ;;
12340
12341 cygwin* | mingw* | windows* | pw32* | cegcc*)
12342 version_type=windows
12343 shrext_cmds=.dll
12344 need_version=no
12345 need_lib_prefix=no
12346
12347 case $GCC,$cc_basename in
12348 yes,*)
12349 # gcc
12350 library_names_spec='$libname.dll.a'
12351 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12352 # If user builds GCC with multilib enabled,
12353 # it should just install on $(libdir)
12354 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12355 if test xyes = x"$multilib"; then
12356 postinstall_cmds='base_file=`basename \$file`~
12357 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12358 dldir=$destdir/`dirname \$dlpath`~
12359 $install_prog $dir/$dlname $destdir/$dlname~
12360 chmod a+x $destdir/$dlname~
12361 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12362 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12363 fi'
12364 else
12365 postinstall_cmds='base_file=`basename \$file`~
12366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12367 dldir=$destdir/`dirname \$dlpath`~
12368 test -d \$dldir || mkdir -p \$dldir~
12369 $install_prog $dir/$dlname \$dldir/$dlname~
12370 chmod a+x \$dldir/$dlname~
12371 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12372 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12373 fi'
12374 fi
12375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12376 dlpath=$dir/\$dldll~
12377 $RM \$dlpath'
12378 shlibpath_overrides_runpath=yes
12379
12380 case $host_os in
12381 cygwin*)
12382 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12383 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12384
12385 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12386 ;;
12387 mingw* | windows* | cegcc*)
12388 # MinGW DLLs use traditional 'lib' prefix
12389 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12390 ;;
12391 pw32*)
12392 # pw32 DLLs use 'pw' prefix rather than 'lib'
12393 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12394 ;;
12395 esac
12396 dynamic_linker='Win32 ld.exe'
12397 ;;
12398
12399 *,cl* | *,icl*)
12400 # Native MSVC or ICC
12401 libname_spec='$name'
12402 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12403 library_names_spec='$libname.dll.lib'
12404
12405 case $build_os in
12406 mingw* | windows*)
12407 sys_lib_search_path_spec=
12408 lt_save_ifs=$IFS
12409 IFS=';'
12410 for lt_path in $LIB
12411 do
12412 IFS=$lt_save_ifs
12413 # Let DOS variable expansion print the short 8.3 style file name.
12414 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12415 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12416 done
12417 IFS=$lt_save_ifs
12418 # Convert to MSYS style.
12419 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12420 ;;
12421 cygwin*)
12422 # Convert to unix form, then to dos form, then back to unix form
12423 # but this time dos style (no spaces!) so that the unix form looks
12424 # like /cygdrive/c/PROGRA~1:/cygdr...
12425 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12426 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12427 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12428 ;;
12429 *)
12430 sys_lib_search_path_spec=$LIB
12431 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12432 # It is most probably a Windows format PATH.
12433 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12434 else
12435 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12436 fi
12437 # FIXME: find the short name or the path components, as spaces are
12438 # common. (e.g. "Program Files" -> "PROGRA~1")
12439 ;;
12440 esac
12441
12442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12443 postinstall_cmds='base_file=`basename \$file`~
12444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12445 dldir=$destdir/`dirname \$dlpath`~
12446 test -d \$dldir || mkdir -p \$dldir~
12447 $install_prog $dir/$dlname \$dldir/$dlname'
12448 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12449 dlpath=$dir/\$dldll~
12450 $RM \$dlpath'
12451 shlibpath_overrides_runpath=yes
12452 dynamic_linker='Win32 link.exe'
12453 ;;
12454
12455 *)
12456 # Assume MSVC and ICC wrapper
12457 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12458 dynamic_linker='Win32 ld.exe'
12459 ;;
12460 esac
12461 # FIXME: first we should search . and the directory the executable is in
12462 shlibpath_var=PATH
12463 ;;
12464
12465 darwin* | rhapsody*)
12466 dynamic_linker="$host_os dyld"
12467 version_type=darwin
12468 need_lib_prefix=no
12469 need_version=no
12470 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12471 soname_spec='$libname$release$major$shared_ext'
12472 shlibpath_overrides_runpath=yes
12473 shlibpath_var=DYLD_LIBRARY_PATH
12474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12475
12476 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12478 ;;
12479
12480 dgux*)
12481 version_type=linux # correct to gnu/linux during the next big refactor
12482 need_lib_prefix=no
12483 need_version=no
12484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12485 soname_spec='$libname$release$shared_ext$major'
12486 shlibpath_var=LD_LIBRARY_PATH
12487 ;;
12488
12489 freebsd* | dragonfly* | midnightbsd*)
12490 # DragonFly does not have aout. When/if they implement a new
12491 # versioning mechanism, adjust this.
12492 if test -x /usr/bin/objformat; then
12493 objformat=`/usr/bin/objformat`
12494 else
12495 case $host_os in
12496 freebsd[23].*) objformat=aout ;;
12497 *) objformat=elf ;;
12498 esac
12499 fi
12500 version_type=freebsd-$objformat
12501 case $version_type in
12502 freebsd-elf*)
12503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12504 soname_spec='$libname$release$shared_ext$major'
12505 need_version=no
12506 need_lib_prefix=no
12507 ;;
12508 freebsd-*)
12509 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12510 need_version=yes
12511 ;;
12512 esac
12513 case $host_cpu in
12514 powerpc64)
12515 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12516 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 int test_pointer_size[sizeof (void *) - 5];
12520
12521 _ACEOF
12522 if ac_fn_c_try_compile "$LINENO"
12523 then :
12524 shlibpath_var=LD_LIBRARY_PATH
12525 else case e in #(
12526 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12527 esac
12528 fi
12529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12530 ;;
12531 *)
12532 shlibpath_var=LD_LIBRARY_PATH
12533 ;;
12534 esac
12535 case $host_os in
12536 freebsd2.*)
12537 shlibpath_overrides_runpath=yes
12538 ;;
12539 freebsd3.[01]* | freebsdelf3.[01]*)
12540 shlibpath_overrides_runpath=yes
12541 hardcode_into_libs=yes
12542 ;;
12543 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12544 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12545 shlibpath_overrides_runpath=no
12546 hardcode_into_libs=yes
12547 ;;
12548 *) # from 4.6 on, and DragonFly
12549 shlibpath_overrides_runpath=yes
12550 hardcode_into_libs=yes
12551 ;;
12552 esac
12553 ;;
12554
12555 haiku*)
12556 version_type=linux # correct to gnu/linux during the next big refactor
12557 need_lib_prefix=no
12558 need_version=no
12559 dynamic_linker="$host_os runtime_loader"
12560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12561 soname_spec='$libname$release$shared_ext$major'
12562 shlibpath_var=LIBRARY_PATH
12563 shlibpath_overrides_runpath=no
12564 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12565 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12566 hardcode_into_libs=no
12567 ;;
12568
12569 hpux9* | hpux10* | hpux11*)
12570 # Give a soname corresponding to the major version so that dld.sl refuses to
12571 # link against other versions.
12572 version_type=sunos
12573 need_lib_prefix=no
12574 need_version=no
12575 case $host_cpu in
12576 ia64*)
12577 shrext_cmds='.so'
12578 hardcode_into_libs=yes
12579 dynamic_linker="$host_os dld.so"
12580 shlibpath_var=LD_LIBRARY_PATH
12581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12583 soname_spec='$libname$release$shared_ext$major'
12584 if test 32 = "$HPUX_IA64_MODE"; then
12585 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12586 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12587 else
12588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12589 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12590 fi
12591 ;;
12592 hppa*64*)
12593 shrext_cmds='.sl'
12594 hardcode_into_libs=yes
12595 dynamic_linker="$host_os dld.sl"
12596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12599 soname_spec='$libname$release$shared_ext$major'
12600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12602 ;;
12603 *)
12604 shrext_cmds='.sl'
12605 dynamic_linker="$host_os dld.sl"
12606 shlibpath_var=SHLIB_PATH
12607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12609 soname_spec='$libname$release$shared_ext$major'
12610 ;;
12611 esac
12612 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12613 postinstall_cmds='chmod 555 $lib'
12614 # or fails outright, so override atomically:
12615 install_override_mode=555
12616 ;;
12617
12618 interix[3-9]*)
12619 version_type=linux # correct to gnu/linux during the next big refactor
12620 need_lib_prefix=no
12621 need_version=no
12622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12623 soname_spec='$libname$release$shared_ext$major'
12624 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 shlibpath_overrides_runpath=no
12627 hardcode_into_libs=yes
12628 ;;
12629
12630 irix5* | irix6* | nonstopux*)
12631 case $host_os in
12632 nonstopux*) version_type=nonstopux ;;
12633 *)
12634 if test yes = "$lt_cv_prog_gnu_ld"; then
12635 version_type=linux # correct to gnu/linux during the next big refactor
12636 else
12637 version_type=irix
12638 fi ;;
12639 esac
12640 need_lib_prefix=no
12641 need_version=no
12642 soname_spec='$libname$release$shared_ext$major'
12643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12644 case $host_os in
12645 irix5* | nonstopux*)
12646 libsuff= shlibsuff=
12647 ;;
12648 *)
12649 case $LD in # libtool.m4 will add one of these switches to LD
12650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12651 libsuff= shlibsuff= libmagic=32-bit;;
12652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12653 libsuff=32 shlibsuff=N32 libmagic=N32;;
12654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12656 *) libsuff= shlibsuff= libmagic=never-match;;
12657 esac
12658 ;;
12659 esac
12660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12661 shlibpath_overrides_runpath=no
12662 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12663 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12664 hardcode_into_libs=yes
12665 ;;
12666
12667 # No shared lib support for Linux oldld, aout, or coff.
12668 linux*oldld* | linux*aout* | linux*coff*)
12669 dynamic_linker=no
12670 ;;
12671
12672 linux*android*)
12673 version_type=none # Android doesn't support versioned libraries.
12674 need_lib_prefix=no
12675 need_version=no
12676 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12677 soname_spec='$libname$release$shared_ext'
12678 finish_cmds=
12679 shlibpath_var=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath=yes
12681
12682 # This implies no fast_install, which is unacceptable.
12683 # Some rework will be needed to allow for fast_install
12684 # before this can be enabled.
12685 hardcode_into_libs=yes
12686
12687 dynamic_linker='Android linker'
12688 # -rpath works at least for libraries that are not overridden by
12689 # libraries installed in system locations.
12690 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12691 ;;
12692
12693 # This must be glibc/ELF.
12694 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12695 version_type=linux # correct to gnu/linux during the next big refactor
12696 need_lib_prefix=no
12697 need_version=no
12698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12699 soname_spec='$libname$release$shared_ext$major'
12700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12701 shlibpath_var=LD_LIBRARY_PATH
12702 shlibpath_overrides_runpath=no
12703
12704 # Some binutils ld are patched to set DT_RUNPATH
12705 if test ${lt_cv_shlibpath_overrides_runpath+y}
12706 then :
12707 printf %s "(cached) " >&6
12708 else case e in #(
12709 e) lt_cv_shlibpath_overrides_runpath=no
12710 save_LDFLAGS=$LDFLAGS
12711 save_libdir=$libdir
12712 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12713 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12716
12717 int
12718 main (void)
12719 {
12720
12721 ;
12722 return 0;
12723 }
12724 _ACEOF
12725 if ac_fn_c_try_link "$LINENO"
12726 then :
12727 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12728 then :
12729 lt_cv_shlibpath_overrides_runpath=yes
12730 fi
12731 fi
12732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12733 conftest$ac_exeext conftest.$ac_ext
12734 LDFLAGS=$save_LDFLAGS
12735 libdir=$save_libdir
12736 ;;
12737 esac
12738 fi
12739
12740 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12741
12742 # This implies no fast_install, which is unacceptable.
12743 # Some rework will be needed to allow for fast_install
12744 # before this can be enabled.
12745 hardcode_into_libs=yes
12746
12747 # Ideally, we could use ldconfig to report *all* directories which are
12748 # searched for libraries, however this is still not possible. Aside from not
12749 # being certain /sbin/ldconfig is available, command
12750 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12751 # even though it is searched at run-time. Try to do the best guess by
12752 # appending ld.so.conf contents (and includes) to the search path.
12753 if test -f /etc/ld.so.conf; then
12754 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' ' '`
12755 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12756 fi
12757
12758 # We used to test for /lib/ld.so.1 and disable shared libraries on
12759 # powerpc, because MkLinux only supported shared libraries with the
12760 # GNU dynamic linker. Since this was broken with cross compilers,
12761 # most powerpc-linux boxes support dynamic linking these days and
12762 # people can always --disable-shared, the test was removed, and we
12763 # assume the GNU/Linux dynamic linker is in use.
12764 dynamic_linker='GNU/Linux ld.so'
12765 ;;
12766
12767 netbsdelf*-gnu)
12768 version_type=linux
12769 need_lib_prefix=no
12770 need_version=no
12771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12772 soname_spec='$libname$release$shared_ext$major'
12773 shlibpath_var=LD_LIBRARY_PATH
12774 shlibpath_overrides_runpath=no
12775 hardcode_into_libs=yes
12776 dynamic_linker='NetBSD ld.elf_so'
12777 ;;
12778
12779 netbsdelf*-gnu)
12780 version_type=linux
12781 need_lib_prefix=no
12782 need_version=no
12783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12784 soname_spec='${libname}${release}${shared_ext}$major'
12785 shlibpath_var=LD_LIBRARY_PATH
12786 shlibpath_overrides_runpath=no
12787 hardcode_into_libs=yes
12788 dynamic_linker='NetBSD ld.elf_so'
12789 ;;
12790
12791 netbsd*)
12792 version_type=sunos
12793 need_lib_prefix=no
12794 need_version=no
12795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12798 dynamic_linker='NetBSD (a.out) ld.so'
12799 else
12800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12801 soname_spec='$libname$release$shared_ext$major'
12802 dynamic_linker='NetBSD ld.elf_so'
12803 fi
12804 shlibpath_var=LD_LIBRARY_PATH
12805 shlibpath_overrides_runpath=yes
12806 hardcode_into_libs=yes
12807 ;;
12808
12809 *-mlibc)
12810 version_type=linux # correct to gnu/linux during the next big refactor
12811 need_lib_prefix=no
12812 need_version=no
12813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12814 soname_spec='$libname$release$shared_ext$major'
12815 dynamic_linker='mlibc ld.so'
12816 shlibpath_var=LD_LIBRARY_PATH
12817 shlibpath_overrides_runpath=no
12818 hardcode_into_libs=yes
12819 ;;
12820
12821 newsos6)
12822 version_type=linux # correct to gnu/linux during the next big refactor
12823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12824 shlibpath_var=LD_LIBRARY_PATH
12825 shlibpath_overrides_runpath=yes
12826 ;;
12827
12828 *nto* | *qnx*)
12829 version_type=qnx
12830 need_lib_prefix=no
12831 need_version=no
12832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12833 soname_spec='$libname$release$shared_ext$major'
12834 shlibpath_var=LD_LIBRARY_PATH
12835 shlibpath_overrides_runpath=no
12836 hardcode_into_libs=yes
12837 dynamic_linker='ldqnx.so'
12838 ;;
12839
12840 openbsd*)
12841 version_type=sunos
12842 sys_lib_dlsearch_path_spec=/usr/lib
12843 need_lib_prefix=no
12844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12845 need_version=no
12846 else
12847 need_version=yes
12848 fi
12849 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12851 shlibpath_var=LD_LIBRARY_PATH
12852 shlibpath_overrides_runpath=yes
12853 ;;
12854
12855 os2*)
12856 libname_spec='$name'
12857 version_type=windows
12858 shrext_cmds=.dll
12859 need_version=no
12860 need_lib_prefix=no
12861 # OS/2 can only load a DLL with a base name of 8 characters or less.
12862 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12863 v=$($ECHO $release$versuffix | tr -d .-);
12864 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12865 $ECHO $n$v`$shared_ext'
12866 library_names_spec='${libname}_dll.$libext'
12867 dynamic_linker='OS/2 ld.exe'
12868 shlibpath_var=BEGINLIBPATH
12869 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12871 postinstall_cmds='base_file=`basename \$file`~
12872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12873 dldir=$destdir/`dirname \$dlpath`~
12874 test -d \$dldir || mkdir -p \$dldir~
12875 $install_prog $dir/$dlname \$dldir/$dlname~
12876 chmod a+x \$dldir/$dlname~
12877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12879 fi'
12880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12881 dlpath=$dir/\$dldll~
12882 $RM \$dlpath'
12883 ;;
12884
12885 osf3* | osf4* | osf5*)
12886 version_type=osf
12887 need_lib_prefix=no
12888 need_version=no
12889 soname_spec='$libname$release$shared_ext$major'
12890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12891 shlibpath_var=LD_LIBRARY_PATH
12892 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12893 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12894 ;;
12895
12896 rdos*)
12897 dynamic_linker=no
12898 ;;
12899
12900 serenity*)
12901 version_type=linux # correct to gnu/linux during the next big refactor
12902 need_lib_prefix=no
12903 need_version=no
12904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12905 soname_spec='$libname$release$shared_ext$major'
12906 shlibpath_var=LD_LIBRARY_PATH
12907 shlibpath_overrides_runpath=no
12908 dynamic_linker='SerenityOS LibELF'
12909 ;;
12910
12911 solaris*)
12912 version_type=linux # correct to gnu/linux during the next big refactor
12913 need_lib_prefix=no
12914 need_version=no
12915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12916 soname_spec='$libname$release$shared_ext$major'
12917 shlibpath_var=LD_LIBRARY_PATH
12918 shlibpath_overrides_runpath=yes
12919 hardcode_into_libs=yes
12920 # ldd complains unless libraries are executable
12921 postinstall_cmds='chmod +x $lib'
12922 ;;
12923
12924 sunos4*)
12925 version_type=sunos
12926 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12927 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12928 shlibpath_var=LD_LIBRARY_PATH
12929 shlibpath_overrides_runpath=yes
12930 if test yes = "$with_gnu_ld"; then
12931 need_lib_prefix=no
12932 fi
12933 need_version=yes
12934 ;;
12935
12936 sysv4 | sysv4.3*)
12937 version_type=linux # correct to gnu/linux during the next big refactor
12938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12939 soname_spec='$libname$release$shared_ext$major'
12940 shlibpath_var=LD_LIBRARY_PATH
12941 case $host_vendor in
12942 sni)
12943 shlibpath_overrides_runpath=no
12944 need_lib_prefix=no
12945 runpath_var=LD_RUN_PATH
12946 ;;
12947 siemens)
12948 need_lib_prefix=no
12949 ;;
12950 motorola)
12951 need_lib_prefix=no
12952 need_version=no
12953 shlibpath_overrides_runpath=no
12954 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12955 ;;
12956 esac
12957 ;;
12958
12959 sysv4*MP*)
12960 if test -d /usr/nec; then
12961 version_type=linux # correct to gnu/linux during the next big refactor
12962 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12963 soname_spec='$libname$shared_ext.$major'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 fi
12966 ;;
12967
12968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12969 version_type=sco
12970 need_lib_prefix=no
12971 need_version=no
12972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12973 soname_spec='$libname$release$shared_ext$major'
12974 shlibpath_var=LD_LIBRARY_PATH
12975 shlibpath_overrides_runpath=yes
12976 hardcode_into_libs=yes
12977 if test yes = "$with_gnu_ld"; then
12978 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12979 else
12980 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12981 case $host_os in
12982 sco3.2v5*)
12983 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12984 ;;
12985 esac
12986 fi
12987 sys_lib_dlsearch_path_spec='/usr/lib'
12988 ;;
12989
12990 tpf*)
12991 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12992 version_type=linux # correct to gnu/linux during the next big refactor
12993 need_lib_prefix=no
12994 need_version=no
12995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12996 shlibpath_var=LD_LIBRARY_PATH
12997 shlibpath_overrides_runpath=no
12998 hardcode_into_libs=yes
12999 ;;
13000
13001 uts4*)
13002 version_type=linux # correct to gnu/linux during the next big refactor
13003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13004 soname_spec='$libname$release$shared_ext$major'
13005 shlibpath_var=LD_LIBRARY_PATH
13006 ;;
13007
13008 emscripten*)
13009 version_type=none
13010 need_lib_prefix=no
13011 need_version=no
13012 library_names_spec='$libname$release$shared_ext'
13013 soname_spec='$libname$release$shared_ext'
13014 finish_cmds=
13015 dynamic_linker="Emscripten linker"
13016 lt_prog_compiler_wl=
13017 lt_prog_compiler_pic=
13018 lt_prog_compiler_static=
13019
13020
13021 if test yes = "$GCC"; then
13022 lt_prog_compiler_wl='-Wl,'
13023 lt_prog_compiler_static='-static'
13024
13025 case $host_os in
13026 aix*)
13027 # All AIX code is PIC.
13028 if test ia64 = "$host_cpu"; then
13029 # AIX 5 now supports IA64 processor
13030 lt_prog_compiler_static='-Bstatic'
13031 fi
13032 lt_prog_compiler_pic='-fPIC'
13033 ;;
13034
13035 amigaos*)
13036 case $host_cpu in
13037 powerpc)
13038 # see comment about AmigaOS4 .so support
13039 lt_prog_compiler_pic='-fPIC'
13040 ;;
13041 m68k)
13042 # FIXME: we need at least 68020 code to build shared libraries, but
13043 # adding the '-m68020' flag to GCC prevents building anything better,
13044 # like '-m68040'.
13045 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13046 ;;
13047 esac
13048 ;;
13049
13050 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13051 # PIC is the default for these OSes.
13052 ;;
13053
13054 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13055 # This hack is so that the source file can tell whether it is being
13056 # built for inclusion in a dll (and should export symbols for example).
13057 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13058 # (--disable-auto-import) libraries
13059 lt_prog_compiler_pic='-DDLL_EXPORT'
13060 case $host_os in
13061 os2*)
13062 lt_prog_compiler_static='$wl-static'
13063 ;;
13064 esac
13065 ;;
13066
13067 darwin* | rhapsody*)
13068 # PIC is the default on this platform
13069 # Common symbols not allowed in MH_DYLIB files
13070 lt_prog_compiler_pic='-fno-common'
13071 ;;
13072
13073 haiku*)
13074 # PIC is the default for Haiku.
13075 # The "-static" flag exists, but is broken.
13076 lt_prog_compiler_static=
13077 ;;
13078
13079 hpux*)
13080 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13081 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13082 # sets the default TLS model and affects inlining.
13083 case $host_cpu in
13084 hppa*64*)
13085 # +Z the default
13086 ;;
13087 *)
13088 lt_prog_compiler_pic='-fPIC'
13089 ;;
13090 esac
13091 ;;
13092
13093 interix[3-9]*)
13094 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13095 # Instead, we relocate shared libraries at runtime.
13096 ;;
13097
13098 msdosdjgpp*)
13099 # Just because we use GCC doesn't mean we suddenly get shared libraries
13100 # on systems that don't support them.
13101 lt_prog_compiler_can_build_shared=no
13102 enable_shared=no
13103 ;;
13104
13105 *nto* | *qnx*)
13106 # QNX uses GNU C++, but need to define -shared option too, otherwise
13107 # it will coredump.
13108 lt_prog_compiler_pic='-fPIC -shared'
13109 ;;
13110
13111 sysv4*MP*)
13112 if test -d /usr/nec; then
13113 lt_prog_compiler_pic=-Kconform_pic
13114 fi
13115 ;;
13116
13117 *)
13118 lt_prog_compiler_pic='-fPIC'
13119 ;;
13120 esac
13121
13122 case $cc_basename in
13123 nvcc*) # Cuda Compiler Driver 2.2
13124 lt_prog_compiler_wl='-Xlinker '
13125 if test -n "$lt_prog_compiler_pic"; then
13126 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13127 fi
13128 ;;
13129 esac
13130 else
13131 # PORTME Check for flag to pass linker flags through the system compiler.
13132 case $host_os in
13133 aix*)
13134 lt_prog_compiler_wl='-Wl,'
13135 if test ia64 = "$host_cpu"; then
13136 # AIX 5 now supports IA64 processor
13137 lt_prog_compiler_static='-Bstatic'
13138 else
13139 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13140 fi
13141 ;;
13142
13143 darwin* | rhapsody*)
13144 # PIC is the default on this platform
13145 # Common symbols not allowed in MH_DYLIB files
13146 lt_prog_compiler_pic='-fno-common'
13147 case $cc_basename in
13148 nagfor*)
13149 # NAG Fortran compiler
13150 lt_prog_compiler_wl='-Wl,-Wl,,'
13151 lt_prog_compiler_pic='-PIC'
13152 lt_prog_compiler_static='-Bstatic'
13153 ;;
13154 esac
13155 ;;
13156
13157 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13158 # This hack is so that the source file can tell whether it is being
13159 # built for inclusion in a dll (and should export symbols for example).
13160 lt_prog_compiler_pic='-DDLL_EXPORT'
13161 case $host_os in
13162 os2*)
13163 lt_prog_compiler_static='$wl-static'
13164 ;;
13165 esac
13166 ;;
13167
13168 hpux9* | hpux10* | hpux11*)
13169 lt_prog_compiler_wl='-Wl,'
13170 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13171 # not for PA HP-UX.
13172 case $host_cpu in
13173 hppa*64*|ia64*)
13174 # +Z the default
13175 ;;
13176 *)
13177 lt_prog_compiler_pic='+Z'
13178 ;;
13179 esac
13180 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13181 lt_prog_compiler_static='$wl-a ${wl}archive'
13182 ;;
13183
13184 irix5* | irix6* | nonstopux*)
13185 lt_prog_compiler_wl='-Wl,'
13186 # PIC (with -KPIC) is the default.
13187 lt_prog_compiler_static='-non_shared'
13188 ;;
13189
13190 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13191 case $cc_basename in
13192 # old Intel for x86_64, which still supported -KPIC.
13193 ecc*)
13194 lt_prog_compiler_wl='-Wl,'
13195 lt_prog_compiler_pic='-KPIC'
13196 lt_prog_compiler_static='-static'
13197 ;;
13198 *flang* | ftn | f18* | f95*)
13199 # Flang compiler.
13200 lt_prog_compiler_wl='-Wl,'
13201 lt_prog_compiler_pic='-fPIC'
13202 lt_prog_compiler_static='-static'
13203 ;;
13204 # flang / f18. f95 an alias for gfortran or flang on Debian
13205 flang* | f18* | f95*)
13206 lt_prog_compiler_wl='-Wl,'
13207 lt_prog_compiler_pic='-fPIC'
13208 lt_prog_compiler_static='-static'
13209 ;;
13210 # icc used to be incompatible with GCC.
13211 # ICC 10 doesn't accept -KPIC any more.
13212 icc* | ifort*)
13213 lt_prog_compiler_wl='-Wl,'
13214 lt_prog_compiler_pic='-fPIC'
13215 lt_prog_compiler_static='-static'
13216 ;;
13217 # Lahey Fortran 8.1.
13218 lf95*)
13219 lt_prog_compiler_wl='-Wl,'
13220 lt_prog_compiler_pic='--shared'
13221 lt_prog_compiler_static='--static'
13222 ;;
13223 nagfor*)
13224 # NAG Fortran compiler
13225 lt_prog_compiler_wl='-Wl,-Wl,,'
13226 lt_prog_compiler_pic='-PIC'
13227 lt_prog_compiler_static='-Bstatic'
13228 ;;
13229 tcc*)
13230 # Fabrice Bellard et al's Tiny C Compiler
13231 lt_prog_compiler_wl='-Wl,'
13232 lt_prog_compiler_pic='-fPIC'
13233 lt_prog_compiler_static='-static'
13234 ;;
13235 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13236 # Portland Group compilers (*not* the Pentium gcc compiler,
13237 # which looks to be a dead project)
13238 lt_prog_compiler_wl='-Wl,'
13239 lt_prog_compiler_pic='-fpic'
13240 lt_prog_compiler_static='-Bstatic'
13241 ;;
13242 ccc*)
13243 lt_prog_compiler_wl='-Wl,'
13244 # All Alpha code is PIC.
13245 lt_prog_compiler_static='-non_shared'
13246 ;;
13247 xl* | bgxl* | bgf* | mpixl*)
13248 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13249 lt_prog_compiler_wl='-Wl,'
13250 lt_prog_compiler_pic='-qpic'
13251 lt_prog_compiler_static='-qstaticlink'
13252 ;;
13253 *)
13254 case `$CC -V 2>&1 | $SED 5q` in
13255 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13256 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13257 lt_prog_compiler_pic='-KPIC'
13258 lt_prog_compiler_static='-Bstatic'
13259 lt_prog_compiler_wl=''
13260 ;;
13261 *Sun\ F* | *Sun*Fortran*)
13262 lt_prog_compiler_pic='-KPIC'
13263 lt_prog_compiler_static='-Bstatic'
13264 lt_prog_compiler_wl='-Qoption ld '
13265 ;;
13266 *Sun\ C*)
13267 # Sun C 5.9
13268 lt_prog_compiler_pic='-KPIC'
13269 lt_prog_compiler_static='-Bstatic'
13270 lt_prog_compiler_wl='-Wl,'
13271 ;;
13272 *Intel*\ [CF]*Compiler*)
13273 lt_prog_compiler_wl='-Wl,'
13274 lt_prog_compiler_pic='-fPIC'
13275 lt_prog_compiler_static='-static'
13276 ;;
13277 *Portland\ Group*)
13278 lt_prog_compiler_wl='-Wl,'
13279 lt_prog_compiler_pic='-fpic'
13280 lt_prog_compiler_static='-Bstatic'
13281 ;;
13282 esac
13283 ;;
13284 esac
13285 ;;
13286
13287 newsos6)
13288 lt_prog_compiler_pic='-KPIC'
13289 lt_prog_compiler_static='-Bstatic'
13290 ;;
13291
13292 *-mlibc)
13293 lt_prog_compiler_wl='-Wl,'
13294 lt_prog_compiler_pic='-fPIC'
13295 lt_prog_compiler_static='-static'
13296 ;;
13297
13298 *nto* | *qnx*)
13299 # QNX uses GNU C++, but need to define -shared option too, otherwise
13300 # it will coredump.
13301 lt_prog_compiler_pic='-fPIC -shared'
13302 ;;
13303
13304 osf3* | osf4* | osf5*)
13305 lt_prog_compiler_wl='-Wl,'
13306 # All OSF/1 code is PIC.
13307 lt_prog_compiler_static='-non_shared'
13308 ;;
13309
13310 rdos*)
13311 lt_prog_compiler_static='-non_shared'
13312 ;;
13313
13314 serenity*)
13315 ;;
13316
13317 solaris*)
13318 lt_prog_compiler_pic='-KPIC'
13319 lt_prog_compiler_static='-Bstatic'
13320 case $cc_basename in
13321 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13322 lt_prog_compiler_wl='-Qoption ld ';;
13323 *)
13324 lt_prog_compiler_wl='-Wl,';;
13325 esac
13326 ;;
13327
13328 sunos4*)
13329 lt_prog_compiler_wl='-Qoption ld '
13330 lt_prog_compiler_pic='-PIC'
13331 lt_prog_compiler_static='-Bstatic'
13332 ;;
13333
13334 sysv4 | sysv4.2uw2* | sysv4.3*)
13335 lt_prog_compiler_wl='-Wl,'
13336 lt_prog_compiler_pic='-KPIC'
13337 lt_prog_compiler_static='-Bstatic'
13338 ;;
13339
13340 sysv4*MP*)
13341 if test -d /usr/nec; then
13342 lt_prog_compiler_pic='-Kconform_pic'
13343 lt_prog_compiler_static='-Bstatic'
13344 fi
13345 ;;
13346
13347 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13348 lt_prog_compiler_wl='-Wl,'
13349 lt_prog_compiler_pic='-KPIC'
13350 lt_prog_compiler_static='-Bstatic'
13351 ;;
13352
13353 unicos*)
13354 lt_prog_compiler_wl='-Wl,'
13355 lt_prog_compiler_can_build_shared=no
13356 ;;
13357
13358 uts4*)
13359 lt_prog_compiler_pic='-pic'
13360 lt_prog_compiler_static='-Bstatic'
13361 ;;
13362
13363 *)
13364 lt_prog_compiler_can_build_shared=no
13365 ;;
13366 esac
13367 fi
13368
13369 case $host_os in
13370 # For platforms that do not support PIC, -DPIC is meaningless:
13371 *djgpp*)
13372 lt_prog_compiler_pic=
13373 ;;
13374 *)
13375 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13376 ;;
13377 esac
13378
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13380 printf %s "checking for $compiler option to produce PIC... " >&6; }
13381 if test ${lt_cv_prog_compiler_pic+y}
13382 then :
13383 printf %s "(cached) " >&6
13384 else case e in #(
13385 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13386 esac
13387 fi
13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13389 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13390 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13391
13392 #
13393 # Check to make sure the PIC flag actually works.
13394 #
13395 if test -n "$lt_prog_compiler_pic"; then
13396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13397 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13398 if test ${lt_cv_prog_compiler_pic_works+y}
13399 then :
13400 printf %s "(cached) " >&6
13401 else case e in #(
13402 e) lt_cv_prog_compiler_pic_works=no
13403 ac_outfile=conftest.$ac_objext
13404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13405 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13406 # Insert the option either (1) after the last *FLAGS variable, or
13407 # (2) before a word containing "conftest.", or (3) at the end.
13408 # Note that $ac_compile itself does not contain backslashes and begins
13409 # with a dollar sign (not a hyphen), so the echo should work correctly.
13410 # The option is referenced via a variable to avoid confusing sed.
13411 lt_compile=`echo "$ac_compile" | $SED \
13412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13414 -e 's:$: $lt_compiler_flag:'`
13415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13416 (eval "$lt_compile" 2>conftest.err)
13417 ac_status=$?
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 if (exit $ac_status) && test -s "$ac_outfile"; then
13421 # The compiler can only warn and ignore the option if not recognized
13422 # So say no if there are warnings other than the usual output.
13423 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13425 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13426 lt_cv_prog_compiler_pic_works=yes
13427 fi
13428 fi
13429 $RM conftest*
13430 ;;
13431 esac
13432 fi
13433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13434 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13435
13436 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13437 case $lt_prog_compiler_pic in
13438 "" | " "*) ;;
13439 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13440 esac
13441 else
13442 lt_prog_compiler_pic=
13443 lt_prog_compiler_can_build_shared=no
13444 fi
13445
13446 fi
13447
13448
13449
13450
13451
13452 #
13453 # Check to make sure the static flag actually works.
13454 #
13455 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13457 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13458 if test ${lt_cv_prog_compiler_static_works+y}
13459 then :
13460 printf %s "(cached) " >&6
13461 else case e in #(
13462 e) lt_cv_prog_compiler_static_works=no
13463 save_LDFLAGS=$LDFLAGS
13464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13465 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13467 # The linker can only warn and ignore the option if not recognized
13468 # So say no if there are warnings
13469 if test -s conftest.err; then
13470 # Append any errors to the config.log.
13471 cat conftest.err 1>&5
13472 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13474 if diff conftest.exp conftest.er2 >/dev/null; then
13475 lt_cv_prog_compiler_static_works=yes
13476 fi
13477 else
13478 lt_cv_prog_compiler_static_works=yes
13479 fi
13480 fi
13481 $RM -r conftest*
13482 LDFLAGS=$save_LDFLAGS
13483 ;;
13484 esac
13485 fi
13486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13487 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13488
13489 if test yes = "$lt_cv_prog_compiler_static_works"; then
13490 :
13491 else
13492 lt_prog_compiler_static=
13493 fi
13494
13495
13496
13497 ='-fPIC'
13498 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13499 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13500 archive_cmds_need_lc=no
13501 no_undefined_flag=
13502 ;;
13503
13504 *)
13505 dynamic_linker=no
13506 ;;
13507 esac
13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13509 printf "%s\n" "$dynamic_linker" >&6; }
13510 test no = "$dynamic_linker" && can_build_shared=no
13511
13512 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13513 if test yes = "$GCC"; then
13514 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13515 fi
13516
13517 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13518 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13519 fi
13520
13521 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13522 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13523 fi
13524
13525 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13526 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13527
13528 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13529 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13530
13531 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13532 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13631 printf %s "checking how to hardcode library paths into programs... " >&6; }
13632 hardcode_action=
13633 if test -n "$hardcode_libdir_flag_spec" ||
13634 test -n "$runpath_var" ||
13635 test yes = "$hardcode_automatic"; then
13636
13637 # We can hardcode non-existent directories.
13638 if test no != "$hardcode_direct" &&
13639 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13640 # have to relink, otherwise we might link with an installed library
13641 # when we should be linking with a yet-to-be-installed one
13642 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13643 test no != "$hardcode_minus_L"; then
13644 # Linking always hardcodes the temporary library directory.
13645 hardcode_action=relink
13646 else
13647 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13648 hardcode_action=immediate
13649 fi
13650 else
13651 # We cannot hardcode anything, or else we can only hardcode existing
13652 # directories.
13653 hardcode_action=unsupported
13654 fi
13655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13656 printf "%s\n" "$hardcode_action" >&6; }
13657
13658 if test relink = "$hardcode_action" ||
13659 test yes = "$inherit_rpath"; then
13660 # Fast installation is not supported
13661 enable_fast_install=no
13662 elif test yes = "$shlibpath_overrides_runpath" ||
13663 test no = "$enable_shared"; then
13664 # Fast installation is not necessary
13665 enable_fast_install=needless
13666 fi
13667
13668
13669
13670
13671
13672
13673 if test yes != "$enable_dlopen"; then
13674 enable_dlopen=unknown
13675 enable_dlopen_self=unknown
13676 enable_dlopen_self_static=unknown
13677 else
13678 lt_cv_dlopen=no
13679 lt_cv_dlopen_libs=
13680
13681 case $host_os in
13682 beos*)
13683 lt_cv_dlopen=load_add_on
13684 lt_cv_dlopen_libs=
13685 lt_cv_dlopen_self=yes
13686 ;;
13687
13688 mingw* | windows* | pw32* | cegcc*)
13689 lt_cv_dlopen=LoadLibrary
13690 lt_cv_dlopen_libs=
13691 ;;
13692
13693 cygwin*)
13694 lt_cv_dlopen=dlopen
13695 lt_cv_dlopen_libs=
13696 ;;
13697
13698 darwin*)
13699 # if libdl is installed we need to link against it
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13701 printf %s "checking for dlopen in -ldl... " >&6; }
13702 if test ${ac_cv_lib_dl_dlopen+y}
13703 then :
13704 printf %s "(cached) " >&6
13705 else case e in #(
13706 e) ac_check_lib_save_LIBS=$LIBS
13707 LIBS="-ldl $LIBS"
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710
13711 /* Override any GCC internal prototype to avoid an error.
13712 Use char because int might match the return type of a GCC
13713 builtin and then its argument prototype would still apply.
13714 The 'extern "C"' is for builds by C++ compilers;
13715 although this is not generally supported in C code supporting it here
13716 has little cost and some practical benefit (sr 110532). */
13717 #ifdef __cplusplus
13718 extern "C"
13719 #endif
13720 char dlopen (void);
13721 int
13722 main (void)
13723 {
13724 return dlopen ();
13725 ;
13726 return 0;
13727 }
13728 _ACEOF
13729 if ac_fn_c_try_link "$LINENO"
13730 then :
13731 ac_cv_lib_dl_dlopen=yes
13732 else case e in #(
13733 e) ac_cv_lib_dl_dlopen=no ;;
13734 esac
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13737 conftest$ac_exeext conftest.$ac_ext
13738 LIBS=$ac_check_lib_save_LIBS ;;
13739 esac
13740 fi
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13742 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13743 if test "x$ac_cv_lib_dl_dlopen" = xyes
13744 then :
13745 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13746 else case e in #(
13747 e)
13748 lt_cv_dlopen=dyld
13749 lt_cv_dlopen_libs=
13750 lt_cv_dlopen_self=yes
13751 ;;
13752 esac
13753 fi
13754
13755 ;;
13756
13757 tpf*)
13758 # Don't try to run any link tests for TPF. We know it's impossible
13759 # because TPF is a cross-compiler, and we know how we open DSOs.
13760 lt_cv_dlopen=dlopen
13761 lt_cv_dlopen_libs=
13762 lt_cv_dlopen_self=no
13763 ;;
13764
13765 *)
13766 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13767 if test "x$ac_cv_func_shl_load" = xyes
13768 then :
13769 lt_cv_dlopen=shl_load
13770 else case e in #(
13771 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13772 printf %s "checking for shl_load in -ldld... " >&6; }
13773 if test ${ac_cv_lib_dld_shl_load+y}
13774 then :
13775 printf %s "(cached) " >&6
13776 else case e in #(
13777 e) ac_check_lib_save_LIBS=$LIBS
13778 LIBS="-ldld $LIBS"
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781
13782 /* Override any GCC internal prototype to avoid an error.
13783 Use char because int might match the return type of a GCC
13784 builtin and then its argument prototype would still apply.
13785 The 'extern "C"' is for builds by C++ compilers;
13786 although this is not generally supported in C code supporting it here
13787 has little cost and some practical benefit (sr 110532). */
13788 #ifdef __cplusplus
13789 extern "C"
13790 #endif
13791 char shl_load (void);
13792 int
13793 main (void)
13794 {
13795 return shl_load ();
13796 ;
13797 return 0;
13798 }
13799 _ACEOF
13800 if ac_fn_c_try_link "$LINENO"
13801 then :
13802 ac_cv_lib_dld_shl_load=yes
13803 else case e in #(
13804 e) ac_cv_lib_dld_shl_load=no ;;
13805 esac
13806 fi
13807 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13808 conftest$ac_exeext conftest.$ac_ext
13809 LIBS=$ac_check_lib_save_LIBS ;;
13810 esac
13811 fi
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13813 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13814 if test "x$ac_cv_lib_dld_shl_load" = xyes
13815 then :
13816 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13817 else case e in #(
13818 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13819 if test "x$ac_cv_func_dlopen" = xyes
13820 then :
13821 lt_cv_dlopen=dlopen
13822 else case e in #(
13823 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13824 printf %s "checking for dlopen in -ldl... " >&6; }
13825 if test ${ac_cv_lib_dl_dlopen+y}
13826 then :
13827 printf %s "(cached) " >&6
13828 else case e in #(
13829 e) ac_check_lib_save_LIBS=$LIBS
13830 LIBS="-ldl $LIBS"
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13833
13834 /* Override any GCC internal prototype to avoid an error.
13835 Use char because int might match the return type of a GCC
13836 builtin and then its argument prototype would still apply.
13837 The 'extern "C"' is for builds by C++ compilers;
13838 although this is not generally supported in C code supporting it here
13839 has little cost and some practical benefit (sr 110532). */
13840 #ifdef __cplusplus
13841 extern "C"
13842 #endif
13843 char dlopen (void);
13844 int
13845 main (void)
13846 {
13847 return dlopen ();
13848 ;
13849 return 0;
13850 }
13851 _ACEOF
13852 if ac_fn_c_try_link "$LINENO"
13853 then :
13854 ac_cv_lib_dl_dlopen=yes
13855 else case e in #(
13856 e) ac_cv_lib_dl_dlopen=no ;;
13857 esac
13858 fi
13859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13860 conftest$ac_exeext conftest.$ac_ext
13861 LIBS=$ac_check_lib_save_LIBS ;;
13862 esac
13863 fi
13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13865 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13866 if test "x$ac_cv_lib_dl_dlopen" = xyes
13867 then :
13868 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13869 else case e in #(
13870 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13871 printf %s "checking for dlopen in -lsvld... " >&6; }
13872 if test ${ac_cv_lib_svld_dlopen+y}
13873 then :
13874 printf %s "(cached) " >&6
13875 else case e in #(
13876 e) ac_check_lib_save_LIBS=$LIBS
13877 LIBS="-lsvld $LIBS"
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880
13881 /* Override any GCC internal prototype to avoid an error.
13882 Use char because int might match the return type of a GCC
13883 builtin and then its argument prototype would still apply.
13884 The 'extern "C"' is for builds by C++ compilers;
13885 although this is not generally supported in C code supporting it here
13886 has little cost and some practical benefit (sr 110532). */
13887 #ifdef __cplusplus
13888 extern "C"
13889 #endif
13890 char dlopen (void);
13891 int
13892 main (void)
13893 {
13894 return dlopen ();
13895 ;
13896 return 0;
13897 }
13898 _ACEOF
13899 if ac_fn_c_try_link "$LINENO"
13900 then :
13901 ac_cv_lib_svld_dlopen=yes
13902 else case e in #(
13903 e) ac_cv_lib_svld_dlopen=no ;;
13904 esac
13905 fi
13906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13907 conftest$ac_exeext conftest.$ac_ext
13908 LIBS=$ac_check_lib_save_LIBS ;;
13909 esac
13910 fi
13911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13912 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13913 if test "x$ac_cv_lib_svld_dlopen" = xyes
13914 then :
13915 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13916 else case e in #(
13917 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13918 printf %s "checking for dld_link in -ldld... " >&6; }
13919 if test ${ac_cv_lib_dld_dld_link+y}
13920 then :
13921 printf %s "(cached) " >&6
13922 else case e in #(
13923 e) ac_check_lib_save_LIBS=$LIBS
13924 LIBS="-ldld $LIBS"
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h. */
13927
13928 /* Override any GCC internal prototype to avoid an error.
13929 Use char because int might match the return type of a GCC
13930 builtin and then its argument prototype would still apply.
13931 The 'extern "C"' is for builds by C++ compilers;
13932 although this is not generally supported in C code supporting it here
13933 has little cost and some practical benefit (sr 110532). */
13934 #ifdef __cplusplus
13935 extern "C"
13936 #endif
13937 char dld_link (void);
13938 int
13939 main (void)
13940 {
13941 return dld_link ();
13942 ;
13943 return 0;
13944 }
13945 _ACEOF
13946 if ac_fn_c_try_link "$LINENO"
13947 then :
13948 ac_cv_lib_dld_dld_link=yes
13949 else case e in #(
13950 e) ac_cv_lib_dld_dld_link=no ;;
13951 esac
13952 fi
13953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS ;;
13956 esac
13957 fi
13958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13959 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13960 if test "x$ac_cv_lib_dld_dld_link" = xyes
13961 then :
13962 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13963 fi
13964
13965 ;;
13966 esac
13967 fi
13968
13969 ;;
13970 esac
13971 fi
13972
13973 ;;
13974 esac
13975 fi
13976
13977 ;;
13978 esac
13979 fi
13980
13981 ;;
13982 esac
13983 fi
13984
13985 ;;
13986 esac
13987
13988 if test no = "$lt_cv_dlopen"; then
13989 enable_dlopen=no
13990 else
13991 enable_dlopen=yes
13992 fi
13993
13994 case $lt_cv_dlopen in
13995 dlopen)
13996 save_CPPFLAGS=$CPPFLAGS
13997 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13998
13999 save_LDFLAGS=$LDFLAGS
14000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14001
14002 save_LIBS=$LIBS
14003 LIBS="$lt_cv_dlopen_libs $LIBS"
14004
14005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14006 printf %s "checking whether a program can dlopen itself... " >&6; }
14007 if test ${lt_cv_dlopen_self+y}
14008 then :
14009 printf %s "(cached) " >&6
14010 else case e in #(
14011 e) if test yes = "$cross_compiling"; then :
14012 lt_cv_dlopen_self=cross
14013 else
14014 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14015 lt_status=$lt_dlunknown
14016 cat > conftest.$ac_ext <<_LT_EOF
14017 #line $LINENO "configure"
14018 #include "confdefs.h"
14019
14020 #if HAVE_DLFCN_H
14021 #include <dlfcn.h>
14022 #endif
14023
14024 #include <stdio.h>
14025
14026 #ifdef RTLD_GLOBAL
14027 # define LT_DLGLOBAL RTLD_GLOBAL
14028 #else
14029 # ifdef DL_GLOBAL
14030 # define LT_DLGLOBAL DL_GLOBAL
14031 # else
14032 # define LT_DLGLOBAL 0
14033 # endif
14034 #endif
14035
14036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14037 find out it does not work in some platform. */
14038 #ifndef LT_DLLAZY_OR_NOW
14039 # ifdef RTLD_LAZY
14040 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14041 # else
14042 # ifdef DL_LAZY
14043 # define LT_DLLAZY_OR_NOW DL_LAZY
14044 # else
14045 # ifdef RTLD_NOW
14046 # define LT_DLLAZY_OR_NOW RTLD_NOW
14047 # else
14048 # ifdef DL_NOW
14049 # define LT_DLLAZY_OR_NOW DL_NOW
14050 # else
14051 # define LT_DLLAZY_OR_NOW 0
14052 # endif
14053 # endif
14054 # endif
14055 # endif
14056 #endif
14057
14058 /* When -fvisibility=hidden is used, assume the code has been annotated
14059 correspondingly for the symbols needed. */
14060 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14061 int fnord (void) __attribute__((visibility("default")));
14062 #endif
14063
14064 int fnord (void) { return 42; }
14065 int main (void)
14066 {
14067 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14068 int status = $lt_dlunknown;
14069
14070 if (self)
14071 {
14072 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14073 else
14074 {
14075 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14076 else puts (dlerror ());
14077 }
14078 /* dlclose (self); */
14079 }
14080 else
14081 puts (dlerror ());
14082
14083 return status;
14084 }
14085 _LT_EOF
14086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14087 (eval $ac_link) 2>&5
14088 ac_status=$?
14089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14090 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14091 (./conftest; exit; ) >&5 2>/dev/null
14092 lt_status=$?
14093 case x$lt_status in
14094 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14095 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14096 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14097 esac
14098 else :
14099 # compilation failed
14100 lt_cv_dlopen_self=no
14101 fi
14102 fi
14103 rm -fr conftest*
14104
14105 ;;
14106 esac
14107 fi
14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14109 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14110
14111 if test yes = "$lt_cv_dlopen_self"; then
14112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14114 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14115 if test ${lt_cv_dlopen_self_static+y}
14116 then :
14117 printf %s "(cached) " >&6
14118 else case e in #(
14119 e) if test yes = "$cross_compiling"; then :
14120 lt_cv_dlopen_self_static=cross
14121 else
14122 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14123 lt_status=$lt_dlunknown
14124 cat > conftest.$ac_ext <<_LT_EOF
14125 #line $LINENO "configure"
14126 #include "confdefs.h"
14127
14128 #if HAVE_DLFCN_H
14129 #include <dlfcn.h>
14130 #endif
14131
14132 #include <stdio.h>
14133
14134 #ifdef RTLD_GLOBAL
14135 # define LT_DLGLOBAL RTLD_GLOBAL
14136 #else
14137 # ifdef DL_GLOBAL
14138 # define LT_DLGLOBAL DL_GLOBAL
14139 # else
14140 # define LT_DLGLOBAL 0
14141 # endif
14142 #endif
14143
14144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14145 find out it does not work in some platform. */
14146 #ifndef LT_DLLAZY_OR_NOW
14147 # ifdef RTLD_LAZY
14148 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14149 # else
14150 # ifdef DL_LAZY
14151 # define LT_DLLAZY_OR_NOW DL_LAZY
14152 # else
14153 # ifdef RTLD_NOW
14154 # define LT_DLLAZY_OR_NOW RTLD_NOW
14155 # else
14156 # ifdef DL_NOW
14157 # define LT_DLLAZY_OR_NOW DL_NOW
14158 # else
14159 # define LT_DLLAZY_OR_NOW 0
14160 # endif
14161 # endif
14162 # endif
14163 # endif
14164 #endif
14165
14166 /* When -fvisibility=hidden is used, assume the code has been annotated
14167 correspondingly for the symbols needed. */
14168 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14169 int fnord (void) __attribute__((visibility("default")));
14170 #endif
14171
14172 int fnord (void) { return 42; }
14173 int main (void)
14174 {
14175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14176 int status = $lt_dlunknown;
14177
14178 if (self)
14179 {
14180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14181 else
14182 {
14183 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14184 else puts (dlerror ());
14185 }
14186 /* dlclose (self); */
14187 }
14188 else
14189 puts (dlerror ());
14190
14191 return status;
14192 }
14193 _LT_EOF
14194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14195 (eval $ac_link) 2>&5
14196 ac_status=$?
14197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14198 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14199 (./conftest; exit; ) >&5 2>/dev/null
14200 lt_status=$?
14201 case x$lt_status in
14202 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14203 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14204 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14205 esac
14206 else :
14207 # compilation failed
14208 lt_cv_dlopen_self_static=no
14209 fi
14210 fi
14211 rm -fr conftest*
14212
14213 ;;
14214 esac
14215 fi
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14217 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14218 fi
14219
14220 CPPFLAGS=$save_CPPFLAGS
14221 LDFLAGS=$save_LDFLAGS
14222 LIBS=$save_LIBS
14223 ;;
14224 esac
14225
14226 case $lt_cv_dlopen_self in
14227 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14228 *) enable_dlopen_self=unknown ;;
14229 esac
14230
14231 case $lt_cv_dlopen_self_static in
14232 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14233 *) enable_dlopen_self_static=unknown ;;
14234 esac
14235 fi
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253 striplib=
14254 old_striplib=
14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14256 printf %s "checking whether stripping libraries is possible... " >&6; }
14257 if test -z "$STRIP"; then
14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259 printf "%s\n" "no" >&6; }
14260 else
14261 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14262 old_striplib="$STRIP --strip-debug"
14263 striplib="$STRIP --strip-unneeded"
14264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14265 printf "%s\n" "yes" >&6; }
14266 else
14267 case $host_os in
14268 darwin*)
14269 # FIXME - insert some real tests, host_os isn't really good enough
14270 striplib="$STRIP -x"
14271 old_striplib="$STRIP -S"
14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14273 printf "%s\n" "yes" >&6; }
14274 ;;
14275 freebsd*)
14276 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14277 old_striplib="$STRIP --strip-debug"
14278 striplib="$STRIP --strip-unneeded"
14279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14280 printf "%s\n" "yes" >&6; }
14281 else
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 printf "%s\n" "no" >&6; }
14284 fi
14285 ;;
14286 *)
14287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288 printf "%s\n" "no" >&6; }
14289 ;;
14290 esac
14291 fi
14292 fi
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305 # Report what library types will actually be built
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14307 printf %s "checking if libtool supports shared libraries... " >&6; }
14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14309 printf "%s\n" "$can_build_shared" >&6; }
14310
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14312 printf %s "checking whether to build shared libraries... " >&6; }
14313 test no = "$can_build_shared" && enable_shared=no
14314
14315 # On AIX, shared libraries and static libraries use the same namespace, and
14316 # are all built from PIC.
14317 case $host_os in
14318 aix3*)
14319 test yes = "$enable_shared" && enable_static=no
14320 if test -n "$RANLIB"; then
14321 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14322 postinstall_cmds='$RANLIB $lib'
14323 fi
14324 ;;
14325
14326 aix[4-9]*)
14327 if test ia64 != "$host_cpu"; then
14328 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14329 yes,aix,yes) ;; # shared object as lib.so file only
14330 yes,svr4,*) ;; # shared object as lib.so archive member only
14331 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14332 esac
14333 fi
14334 ;;
14335 esac
14336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14337 printf "%s\n" "$enable_shared" >&6; }
14338
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14340 printf %s "checking whether to build static libraries... " >&6; }
14341 # Make sure either enable_shared or enable_static is yes.
14342 test yes = "$enable_shared" || enable_static=yes
14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14344 printf "%s\n" "$enable_static" >&6; }
14345
14346
14347
14348
14349 fi
14350 ac_ext=c
14351 ac_cpp='$CPP $CPPFLAGS'
14352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14355
14356 CC=$lt_save_CC
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372 ac_config_commands="$ac_config_commands libtool"
14373
14374
14375
14376
14377 # Only expand once:
14378
14379
14380
14381 ac_ext=c
14382 ac_cpp='$CPP $CPPFLAGS'
14383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14386 if test -n "$ac_tool_prefix"; then
14387 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14390 printf %s "checking for $ac_word... " >&6; }
14391 if test ${ac_cv_prog_CC+y}
14392 then :
14393 printf %s "(cached) " >&6
14394 else case e in #(
14395 e) if test -n "$CC"; then
14396 ac_cv_prog_CC="$CC" # Let the user override the test.
14397 else
14398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14399 for as_dir in $PATH
14400 do
14401 IFS=$as_save_IFS
14402 case $as_dir in #(((
14403 '') as_dir=./ ;;
14404 */) ;;
14405 *) as_dir=$as_dir/ ;;
14406 esac
14407 for ac_exec_ext in '' $ac_executable_extensions; do
14408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14411 break 2
14412 fi
14413 done
14414 done
14415 IFS=$as_save_IFS
14416
14417 fi ;;
14418 esac
14419 fi
14420 CC=$ac_cv_prog_CC
14421 if test -n "$CC"; then
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14423 printf "%s\n" "$CC" >&6; }
14424 else
14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14426 printf "%s\n" "no" >&6; }
14427 fi
14428
14429
14430 fi
14431 if test -z "$ac_cv_prog_CC"; then
14432 ac_ct_CC=$CC
14433 # Extract the first word of "gcc", so it can be a program name with args.
14434 set dummy gcc; ac_word=$2
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14436 printf %s "checking for $ac_word... " >&6; }
14437 if test ${ac_cv_prog_ac_ct_CC+y}
14438 then :
14439 printf %s "(cached) " >&6
14440 else case e in #(
14441 e) if test -n "$ac_ct_CC"; then
14442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14443 else
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14446 do
14447 IFS=$as_save_IFS
14448 case $as_dir in #(((
14449 '') as_dir=./ ;;
14450 */) ;;
14451 *) as_dir=$as_dir/ ;;
14452 esac
14453 for ac_exec_ext in '' $ac_executable_extensions; do
14454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14455 ac_cv_prog_ac_ct_CC="gcc"
14456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14457 break 2
14458 fi
14459 done
14460 done
14461 IFS=$as_save_IFS
14462
14463 fi ;;
14464 esac
14465 fi
14466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14467 if test -n "$ac_ct_CC"; then
14468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14469 printf "%s\n" "$ac_ct_CC" >&6; }
14470 else
14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472 printf "%s\n" "no" >&6; }
14473 fi
14474
14475 if test "x$ac_ct_CC" = x; then
14476 CC=""
14477 else
14478 case $cross_compiling:$ac_tool_warned in
14479 yes:)
14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14481 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14482 ac_tool_warned=yes ;;
14483 esac
14484 CC=$ac_ct_CC
14485 fi
14486 else
14487 CC="$ac_cv_prog_CC"
14488 fi
14489
14490 if test -z "$CC"; then
14491 if test -n "$ac_tool_prefix"; then
14492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14493 set dummy ${ac_tool_prefix}cc; ac_word=$2
14494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14495 printf %s "checking for $ac_word... " >&6; }
14496 if test ${ac_cv_prog_CC+y}
14497 then :
14498 printf %s "(cached) " >&6
14499 else case e in #(
14500 e) if test -n "$CC"; then
14501 ac_cv_prog_CC="$CC" # Let the user override the test.
14502 else
14503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14504 for as_dir in $PATH
14505 do
14506 IFS=$as_save_IFS
14507 case $as_dir in #(((
14508 '') as_dir=./ ;;
14509 */) ;;
14510 *) as_dir=$as_dir/ ;;
14511 esac
14512 for ac_exec_ext in '' $ac_executable_extensions; do
14513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14514 ac_cv_prog_CC="${ac_tool_prefix}cc"
14515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14516 break 2
14517 fi
14518 done
14519 done
14520 IFS=$as_save_IFS
14521
14522 fi ;;
14523 esac
14524 fi
14525 CC=$ac_cv_prog_CC
14526 if test -n "$CC"; then
14527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14528 printf "%s\n" "$CC" >&6; }
14529 else
14530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14531 printf "%s\n" "no" >&6; }
14532 fi
14533
14534
14535 fi
14536 fi
14537 if test -z "$CC"; then
14538 # Extract the first word of "cc", so it can be a program name with args.
14539 set dummy cc; ac_word=$2
14540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14541 printf %s "checking for $ac_word... " >&6; }
14542 if test ${ac_cv_prog_CC+y}
14543 then :
14544 printf %s "(cached) " >&6
14545 else case e in #(
14546 e) if test -n "$CC"; then
14547 ac_cv_prog_CC="$CC" # Let the user override the test.
14548 else
14549 ac_prog_rejected=no
14550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14551 for as_dir in $PATH
14552 do
14553 IFS=$as_save_IFS
14554 case $as_dir in #(((
14555 '') as_dir=./ ;;
14556 */) ;;
14557 *) as_dir=$as_dir/ ;;
14558 esac
14559 for ac_exec_ext in '' $ac_executable_extensions; do
14560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14561 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14562 ac_prog_rejected=yes
14563 continue
14564 fi
14565 ac_cv_prog_CC="cc"
14566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14567 break 2
14568 fi
14569 done
14570 done
14571 IFS=$as_save_IFS
14572
14573 if test $ac_prog_rejected = yes; then
14574 # We found a bogon in the path, so make sure we never use it.
14575 set dummy $ac_cv_prog_CC
14576 shift
14577 if test $# != 0; then
14578 # We chose a different compiler from the bogus one.
14579 # However, it has the same basename, so the bogon will be chosen
14580 # first if we set CC to just the basename; use the full file name.
14581 shift
14582 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14583 fi
14584 fi
14585 fi ;;
14586 esac
14587 fi
14588 CC=$ac_cv_prog_CC
14589 if test -n "$CC"; then
14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14591 printf "%s\n" "$CC" >&6; }
14592 else
14593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594 printf "%s\n" "no" >&6; }
14595 fi
14596
14597
14598 fi
14599 if test -z "$CC"; then
14600 if test -n "$ac_tool_prefix"; then
14601 for ac_prog in cl.exe
14602 do
14603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14606 printf %s "checking for $ac_word... " >&6; }
14607 if test ${ac_cv_prog_CC+y}
14608 then :
14609 printf %s "(cached) " >&6
14610 else case e in #(
14611 e) if test -n "$CC"; then
14612 ac_cv_prog_CC="$CC" # Let the user override the test.
14613 else
14614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14615 for as_dir in $PATH
14616 do
14617 IFS=$as_save_IFS
14618 case $as_dir in #(((
14619 '') as_dir=./ ;;
14620 */) ;;
14621 *) as_dir=$as_dir/ ;;
14622 esac
14623 for ac_exec_ext in '' $ac_executable_extensions; do
14624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14627 break 2
14628 fi
14629 done
14630 done
14631 IFS=$as_save_IFS
14632
14633 fi ;;
14634 esac
14635 fi
14636 CC=$ac_cv_prog_CC
14637 if test -n "$CC"; then
14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14639 printf "%s\n" "$CC" >&6; }
14640 else
14641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14642 printf "%s\n" "no" >&6; }
14643 fi
14644
14645
14646 test -n "$CC" && break
14647 done
14648 fi
14649 if test -z "$CC"; then
14650 ac_ct_CC=$CC
14651 for ac_prog in cl.exe
14652 do
14653 # Extract the first word of "$ac_prog", so it can be a program name with args.
14654 set dummy $ac_prog; ac_word=$2
14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14656 printf %s "checking for $ac_word... " >&6; }
14657 if test ${ac_cv_prog_ac_ct_CC+y}
14658 then :
14659 printf %s "(cached) " >&6
14660 else case e in #(
14661 e) if test -n "$ac_ct_CC"; then
14662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14663 else
14664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665 for as_dir in $PATH
14666 do
14667 IFS=$as_save_IFS
14668 case $as_dir in #(((
14669 '') as_dir=./ ;;
14670 */) ;;
14671 *) as_dir=$as_dir/ ;;
14672 esac
14673 for ac_exec_ext in '' $ac_executable_extensions; do
14674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14675 ac_cv_prog_ac_ct_CC="$ac_prog"
14676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14677 break 2
14678 fi
14679 done
14680 done
14681 IFS=$as_save_IFS
14682
14683 fi ;;
14684 esac
14685 fi
14686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14687 if test -n "$ac_ct_CC"; then
14688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14689 printf "%s\n" "$ac_ct_CC" >&6; }
14690 else
14691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 printf "%s\n" "no" >&6; }
14693 fi
14694
14695
14696 test -n "$ac_ct_CC" && break
14697 done
14698
14699 if test "x$ac_ct_CC" = x; then
14700 CC=""
14701 else
14702 case $cross_compiling:$ac_tool_warned in
14703 yes:)
14704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14705 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14706 ac_tool_warned=yes ;;
14707 esac
14708 CC=$ac_ct_CC
14709 fi
14710 fi
14711
14712 fi
14713 if test -z "$CC"; then
14714 if test -n "$ac_tool_prefix"; then
14715 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14716 set dummy ${ac_tool_prefix}clang; ac_word=$2
14717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14718 printf %s "checking for $ac_word... " >&6; }
14719 if test ${ac_cv_prog_CC+y}
14720 then :
14721 printf %s "(cached) " >&6
14722 else case e in #(
14723 e) if test -n "$CC"; then
14724 ac_cv_prog_CC="$CC" # Let the user override the test.
14725 else
14726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727 for as_dir in $PATH
14728 do
14729 IFS=$as_save_IFS
14730 case $as_dir in #(((
14731 '') as_dir=./ ;;
14732 */) ;;
14733 *) as_dir=$as_dir/ ;;
14734 esac
14735 for ac_exec_ext in '' $ac_executable_extensions; do
14736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14737 ac_cv_prog_CC="${ac_tool_prefix}clang"
14738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14739 break 2
14740 fi
14741 done
14742 done
14743 IFS=$as_save_IFS
14744
14745 fi ;;
14746 esac
14747 fi
14748 CC=$ac_cv_prog_CC
14749 if test -n "$CC"; then
14750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14751 printf "%s\n" "$CC" >&6; }
14752 else
14753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14754 printf "%s\n" "no" >&6; }
14755 fi
14756
14757
14758 fi
14759 if test -z "$ac_cv_prog_CC"; then
14760 ac_ct_CC=$CC
14761 # Extract the first word of "clang", so it can be a program name with args.
14762 set dummy clang; ac_word=$2
14763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14764 printf %s "checking for $ac_word... " >&6; }
14765 if test ${ac_cv_prog_ac_ct_CC+y}
14766 then :
14767 printf %s "(cached) " >&6
14768 else case e in #(
14769 e) if test -n "$ac_ct_CC"; then
14770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14771 else
14772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14773 for as_dir in $PATH
14774 do
14775 IFS=$as_save_IFS
14776 case $as_dir in #(((
14777 '') as_dir=./ ;;
14778 */) ;;
14779 *) as_dir=$as_dir/ ;;
14780 esac
14781 for ac_exec_ext in '' $ac_executable_extensions; do
14782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14783 ac_cv_prog_ac_ct_CC="clang"
14784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14785 break 2
14786 fi
14787 done
14788 done
14789 IFS=$as_save_IFS
14790
14791 fi ;;
14792 esac
14793 fi
14794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14795 if test -n "$ac_ct_CC"; then
14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14797 printf "%s\n" "$ac_ct_CC" >&6; }
14798 else
14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14800 printf "%s\n" "no" >&6; }
14801 fi
14802
14803 if test "x$ac_ct_CC" = x; then
14804 CC=""
14805 else
14806 case $cross_compiling:$ac_tool_warned in
14807 yes:)
14808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14809 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14810 ac_tool_warned=yes ;;
14811 esac
14812 CC=$ac_ct_CC
14813 fi
14814 else
14815 CC="$ac_cv_prog_CC"
14816 fi
14817
14818 fi
14819
14820
14821 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14822 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14823 as_fn_error $? "no acceptable C compiler found in \$PATH
14824 See 'config.log' for more details" "$LINENO" 5; }
14825
14826 # Provide some information about the compiler.
14827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14828 set X $ac_compile
14829 ac_compiler=$2
14830 for ac_option in --version -v -V -qversion -version; do
14831 { { ac_try="$ac_compiler $ac_option >&5"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835 esac
14836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14837 printf "%s\n" "$ac_try_echo"; } >&5
14838 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14839 ac_status=$?
14840 if test -s conftest.err; then
14841 sed '10a\
14842 ... rest of stderr output deleted ...
14843 10q' conftest.err >conftest.er1
14844 cat conftest.er1 >&5
14845 fi
14846 rm -f conftest.er1 conftest.err
14847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14848 test $ac_status = 0; }
14849 done
14850
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14852 printf %s "checking whether the compiler supports GNU C... " >&6; }
14853 if test ${ac_cv_c_compiler_gnu+y}
14854 then :
14855 printf %s "(cached) " >&6
14856 else case e in #(
14857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14859
14860 int
14861 main (void)
14862 {
14863 #ifndef __GNUC__
14864 choke me
14865 #endif
14866
14867 ;
14868 return 0;
14869 }
14870 _ACEOF
14871 if ac_fn_c_try_compile "$LINENO"
14872 then :
14873 ac_compiler_gnu=yes
14874 else case e in #(
14875 e) ac_compiler_gnu=no ;;
14876 esac
14877 fi
14878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14879 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14880 ;;
14881 esac
14882 fi
14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14884 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14886
14887 if test $ac_compiler_gnu = yes; then
14888 GCC=yes
14889 else
14890 GCC=
14891 fi
14892 ac_test_CFLAGS=${CFLAGS+y}
14893 ac_save_CFLAGS=$CFLAGS
14894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14895 printf %s "checking whether $CC accepts -g... " >&6; }
14896 if test ${ac_cv_prog_cc_g+y}
14897 then :
14898 printf %s "(cached) " >&6
14899 else case e in #(
14900 e) ac_save_c_werror_flag=$ac_c_werror_flag
14901 ac_c_werror_flag=yes
14902 ac_cv_prog_cc_g=no
14903 CFLAGS="-g"
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906
14907 int
14908 main (void)
14909 {
14910
14911 ;
14912 return 0;
14913 }
14914 _ACEOF
14915 if ac_fn_c_try_compile "$LINENO"
14916 then :
14917 ac_cv_prog_cc_g=yes
14918 else case e in #(
14919 e) CFLAGS=""
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922
14923 int
14924 main (void)
14925 {
14926
14927 ;
14928 return 0;
14929 }
14930 _ACEOF
14931 if ac_fn_c_try_compile "$LINENO"
14932 then :
14933
14934 else case e in #(
14935 e) ac_c_werror_flag=$ac_save_c_werror_flag
14936 CFLAGS="-g"
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14939
14940 int
14941 main (void)
14942 {
14943
14944 ;
14945 return 0;
14946 }
14947 _ACEOF
14948 if ac_fn_c_try_compile "$LINENO"
14949 then :
14950 ac_cv_prog_cc_g=yes
14951 fi
14952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14953 esac
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14956 esac
14957 fi
14958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14959 ac_c_werror_flag=$ac_save_c_werror_flag ;;
14960 esac
14961 fi
14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14963 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14964 if test $ac_test_CFLAGS; then
14965 CFLAGS=$ac_save_CFLAGS
14966 elif test $ac_cv_prog_cc_g = yes; then
14967 if test "$GCC" = yes; then
14968 CFLAGS="-g -O2"
14969 else
14970 CFLAGS="-g"
14971 fi
14972 else
14973 if test "$GCC" = yes; then
14974 CFLAGS="-O2"
14975 else
14976 CFLAGS=
14977 fi
14978 fi
14979 ac_prog_cc_stdc=no
14980 if test x$ac_prog_cc_stdc = xno
14981 then :
14982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14983 printf %s "checking for $CC option to enable C11 features... " >&6; }
14984 if test ${ac_cv_prog_cc_c11+y}
14985 then :
14986 printf %s "(cached) " >&6
14987 else case e in #(
14988 e) ac_cv_prog_cc_c11=no
14989 ac_save_CC=$CC
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14992 $ac_c_conftest_c11_program
14993 _ACEOF
14994 for ac_arg in '' -std=gnu11
14995 do
14996 CC="$ac_save_CC $ac_arg"
14997 if ac_fn_c_try_compile "$LINENO"
14998 then :
14999 ac_cv_prog_cc_c11=$ac_arg
15000 fi
15001 rm -f core conftest.err conftest.$ac_objext conftest.beam
15002 test "x$ac_cv_prog_cc_c11" != "xno" && break
15003 done
15004 rm -f conftest.$ac_ext
15005 CC=$ac_save_CC ;;
15006 esac
15007 fi
15008
15009 if test "x$ac_cv_prog_cc_c11" = xno
15010 then :
15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15012 printf "%s\n" "unsupported" >&6; }
15013 else case e in #(
15014 e) if test "x$ac_cv_prog_cc_c11" = x
15015 then :
15016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15017 printf "%s\n" "none needed" >&6; }
15018 else case e in #(
15019 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
15020 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
15021 CC="$CC $ac_cv_prog_cc_c11" ;;
15022 esac
15023 fi
15024 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
15025 ac_prog_cc_stdc=c11 ;;
15026 esac
15027 fi
15028 fi
15029 if test x$ac_prog_cc_stdc = xno
15030 then :
15031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
15032 printf %s "checking for $CC option to enable C99 features... " >&6; }
15033 if test ${ac_cv_prog_cc_c99+y}
15034 then :
15035 printf %s "(cached) " >&6
15036 else case e in #(
15037 e) ac_cv_prog_cc_c99=no
15038 ac_save_CC=$CC
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040 /* end confdefs.h. */
15041 $ac_c_conftest_c99_program
15042 _ACEOF
15043 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
15044 do
15045 CC="$ac_save_CC $ac_arg"
15046 if ac_fn_c_try_compile "$LINENO"
15047 then :
15048 ac_cv_prog_cc_c99=$ac_arg
15049 fi
15050 rm -f core conftest.err conftest.$ac_objext conftest.beam
15051 test "x$ac_cv_prog_cc_c99" != "xno" && break
15052 done
15053 rm -f conftest.$ac_ext
15054 CC=$ac_save_CC ;;
15055 esac
15056 fi
15057
15058 if test "x$ac_cv_prog_cc_c99" = xno
15059 then :
15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15061 printf "%s\n" "unsupported" >&6; }
15062 else case e in #(
15063 e) if test "x$ac_cv_prog_cc_c99" = x
15064 then :
15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15066 printf "%s\n" "none needed" >&6; }
15067 else case e in #(
15068 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15069 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
15070 CC="$CC $ac_cv_prog_cc_c99" ;;
15071 esac
15072 fi
15073 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15074 ac_prog_cc_stdc=c99 ;;
15075 esac
15076 fi
15077 fi
15078 if test x$ac_prog_cc_stdc = xno
15079 then :
15080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
15081 printf %s "checking for $CC option to enable C89 features... " >&6; }
15082 if test ${ac_cv_prog_cc_c89+y}
15083 then :
15084 printf %s "(cached) " >&6
15085 else case e in #(
15086 e) ac_cv_prog_cc_c89=no
15087 ac_save_CC=$CC
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15090 $ac_c_conftest_c89_program
15091 _ACEOF
15092 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15093 do
15094 CC="$ac_save_CC $ac_arg"
15095 if ac_fn_c_try_compile "$LINENO"
15096 then :
15097 ac_cv_prog_cc_c89=$ac_arg
15098 fi
15099 rm -f core conftest.err conftest.$ac_objext conftest.beam
15100 test "x$ac_cv_prog_cc_c89" != "xno" && break
15101 done
15102 rm -f conftest.$ac_ext
15103 CC=$ac_save_CC ;;
15104 esac
15105 fi
15106
15107 if test "x$ac_cv_prog_cc_c89" = xno
15108 then :
15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15110 printf "%s\n" "unsupported" >&6; }
15111 else case e in #(
15112 e) if test "x$ac_cv_prog_cc_c89" = x
15113 then :
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15115 printf "%s\n" "none needed" >&6; }
15116 else case e in #(
15117 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15118 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
15119 CC="$CC $ac_cv_prog_cc_c89" ;;
15120 esac
15121 fi
15122 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15123 ac_prog_cc_stdc=c89 ;;
15124 esac
15125 fi
15126 fi
15127
15128 ac_ext=c
15129 ac_cpp='$CPP $CPPFLAGS'
15130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15133
15134
15135 ac_ext=c
15136 ac_cpp='$CPP $CPPFLAGS'
15137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
15141 printf %s "checking whether $CC understands -c and -o together... " >&6; }
15142 if test ${am_cv_prog_cc_c_o+y}
15143 then :
15144 printf %s "(cached) " >&6
15145 else case e in #(
15146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148
15149 int
15150 main (void)
15151 {
15152
15153 ;
15154 return 0;
15155 }
15156 _ACEOF
15157 # Make sure it works both with $CC and with simple cc.
15158 # Following AC_PROG_CC_C_O, we do the test twice because some
15159 # compilers refuse to overwrite an existing .o file with -o,
15160 # though they will create one.
15161 am_cv_prog_cc_c_o=yes
15162 for am_i in 1 2; do
15163 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
15164 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } \
15168 && test -f conftest2.$ac_objext; then
15169 : OK
15170 else
15171 am_cv_prog_cc_c_o=no
15172 break
15173 fi
15174 done
15175 # aligned with autoconf, so not including core; see bug#72225.
15176 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
15177 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
15178 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
15179 unset am_i ;;
15180 esac
15181 fi
15182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15183 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
15184 if test "$am_cv_prog_cc_c_o" != yes; then
15185 # Losing compiler, so override with the script.
15186 # FIXME: It is wrong to rewrite CC.
15187 # But if we don't then we get into trouble of one sort or another.
15188 # A longer-term fix would be to have automake use am__CC in this case,
15189 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15190 CC="$am_aux_dir/compile $CC"
15191 fi
15192 ac_ext=c
15193 ac_cpp='$CPP $CPPFLAGS'
15194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15197
15198
15199 depcc="$CC" am_compiler_list=
15200
15201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15202 printf %s "checking dependency style of $depcc... " >&6; }
15203 if test ${am_cv_CC_dependencies_compiler_type+y}
15204 then :
15205 printf %s "(cached) " >&6
15206 else case e in #(
15207 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15208 # We make a subdir and do the tests there. Otherwise we can end up
15209 # making bogus files that we don't know about and never remove. For
15210 # instance it was reported that on HP-UX the gcc test will end up
15211 # making a dummy file named 'D' -- because '-MD' means "put the output
15212 # in D".
15213 rm -rf conftest.dir
15214 mkdir conftest.dir
15215 # Copy depcomp to subdir because otherwise we won't find it if we're
15216 # using a relative directory.
15217 cp "$am_depcomp" conftest.dir
15218 cd conftest.dir
15219 # We will build objects and dependencies in a subdirectory because
15220 # it helps to detect inapplicable dependency modes. For instance
15221 # both Tru64's cc and ICC support -MD to output dependencies as a
15222 # side effect of compilation, but ICC will put the dependencies in
15223 # the current directory while Tru64 will put them in the object
15224 # directory.
15225 mkdir sub
15226
15227 am_cv_CC_dependencies_compiler_type=none
15228 if test "$am_compiler_list" = ""; then
15229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15230 fi
15231 am__universal=false
15232 case " $depcc " in #(
15233 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15234 esac
15235
15236 for depmode in $am_compiler_list; do
15237 # Setup a source with many dependencies, because some compilers
15238 # like to wrap large dependency lists on column 80 (with \), and
15239 # we should not choose a depcomp mode which is confused by this.
15240 #
15241 # We need to recreate these files for each test, as the compiler may
15242 # overwrite some of them when testing with obscure command lines.
15243 # This happens at least with the AIX C compiler.
15244 : > sub/conftest.c
15245 for i in 1 2 3 4 5 6; do
15246 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15247 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15248 # Solaris 10 /bin/sh.
15249 echo '/* dummy */' > sub/conftst$i.h
15250 done
15251 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15252
15253 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15254 # mode. It turns out that the SunPro C++ compiler does not properly
15255 # handle '-M -o', and we need to detect this. Also, some Intel
15256 # versions had trouble with output in subdirs.
15257 am__obj=sub/conftest.${OBJEXT-o}
15258 am__minus_obj="-o $am__obj"
15259 case $depmode in
15260 gcc)
15261 # This depmode causes a compiler race in universal mode.
15262 test "$am__universal" = false || continue
15263 ;;
15264 nosideeffect)
15265 # After this tag, mechanisms are not by side-effect, so they'll
15266 # only be used when explicitly requested.
15267 if test "x$enable_dependency_tracking" = xyes; then
15268 continue
15269 else
15270 break
15271 fi
15272 ;;
15273 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15274 # This compiler won't grok '-c -o', but also, the minuso test has
15275 # not run yet. These depmodes are late enough in the game, and
15276 # so weak that their functioning should not be impacted.
15277 am__obj=conftest.${OBJEXT-o}
15278 am__minus_obj=
15279 ;;
15280 none) break ;;
15281 esac
15282 if depmode=$depmode \
15283 source=sub/conftest.c object=$am__obj \
15284 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15285 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15286 >/dev/null 2>conftest.err &&
15287 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15288 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15289 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15290 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15291 # icc doesn't choke on unknown options, it will just issue warnings
15292 # or remarks (even with -Werror). So we grep stderr for any message
15293 # that says an option was ignored or not supported.
15294 # When given -MP, icc 7.0 and 7.1 complain thus:
15295 # icc: Command line warning: ignoring option '-M'; no argument required
15296 # The diagnosis changed in icc 8.0:
15297 # icc: Command line remark: option '-MP' not supported
15298 if (grep 'ignoring option' conftest.err ||
15299 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15300 am_cv_CC_dependencies_compiler_type=$depmode
15301 break
15302 fi
15303 fi
15304 done
15305
15306 cd ..
15307 rm -rf conftest.dir
15308 else
15309 am_cv_CC_dependencies_compiler_type=none
15310 fi
15311 ;;
15312 esac
15313 fi
15314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15315 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
15316 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15317
15318 if
15319 test "x$enable_dependency_tracking" != xno \
15320 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15321 am__fastdepCC_TRUE=
15322 am__fastdepCC_FALSE='#'
15323 else
15324 am__fastdepCC_TRUE='#'
15325 am__fastdepCC_FALSE=
15326 fi
15327
15328
15329
15330
15331 ac_ext=c
15332 ac_cpp='$CPP $CPPFLAGS'
15333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15337 printf %s "checking how to run the C preprocessor... " >&6; }
15338 # On Suns, sometimes $CPP names a directory.
15339 if test -n "$CPP" && test -d "$CPP"; then
15340 CPP=
15341 fi
15342 if test -z "$CPP"; then
15343 if test ${ac_cv_prog_CPP+y}
15344 then :
15345 printf %s "(cached) " >&6
15346 else case e in #(
15347 e) # Double quotes because $CC needs to be expanded
15348 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
15349 do
15350 ac_preproc_ok=false
15351 for ac_c_preproc_warn_flag in '' yes
15352 do
15353 # Use a header file that comes with gcc, so configuring glibc
15354 # with a fresh cross-compiler works.
15355 # On the NeXT, cc -E runs the code through the compiler's parser,
15356 # not just through cpp. "Syntax error" is here to catch this case.
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359 #include <limits.h>
15360 Syntax error
15361 _ACEOF
15362 if ac_fn_c_try_cpp "$LINENO"
15363 then :
15364
15365 else case e in #(
15366 e) # Broken: fails on valid input.
15367 continue ;;
15368 esac
15369 fi
15370 rm -f conftest.err conftest.i conftest.$ac_ext
15371
15372 # OK, works on sane cases. Now check whether nonexistent headers
15373 # can be detected and how.
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376 #include <ac_nonexistent.h>
15377 _ACEOF
15378 if ac_fn_c_try_cpp "$LINENO"
15379 then :
15380 # Broken: success on invalid input.
15381 continue
15382 else case e in #(
15383 e) # Passes both tests.
15384 ac_preproc_ok=:
15385 break ;;
15386 esac
15387 fi
15388 rm -f conftest.err conftest.i conftest.$ac_ext
15389
15390 done
15391 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15392 rm -f conftest.i conftest.err conftest.$ac_ext
15393 if $ac_preproc_ok
15394 then :
15395 break
15396 fi
15397
15398 done
15399 ac_cv_prog_CPP=$CPP
15400 ;;
15401 esac
15402 fi
15403 CPP=$ac_cv_prog_CPP
15404 else
15405 ac_cv_prog_CPP=$CPP
15406 fi
15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15408 printf "%s\n" "$CPP" >&6; }
15409 ac_preproc_ok=false
15410 for ac_c_preproc_warn_flag in '' yes
15411 do
15412 # Use a header file that comes with gcc, so configuring glibc
15413 # with a fresh cross-compiler works.
15414 # On the NeXT, cc -E runs the code through the compiler's parser,
15415 # not just through cpp. "Syntax error" is here to catch this case.
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15418 #include <limits.h>
15419 Syntax error
15420 _ACEOF
15421 if ac_fn_c_try_cpp "$LINENO"
15422 then :
15423
15424 else case e in #(
15425 e) # Broken: fails on valid input.
15426 continue ;;
15427 esac
15428 fi
15429 rm -f conftest.err conftest.i conftest.$ac_ext
15430
15431 # OK, works on sane cases. Now check whether nonexistent headers
15432 # can be detected and how.
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15435 #include <ac_nonexistent.h>
15436 _ACEOF
15437 if ac_fn_c_try_cpp "$LINENO"
15438 then :
15439 # Broken: success on invalid input.
15440 continue
15441 else case e in #(
15442 e) # Passes both tests.
15443 ac_preproc_ok=:
15444 break ;;
15445 esac
15446 fi
15447 rm -f conftest.err conftest.i conftest.$ac_ext
15448
15449 done
15450 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15451 rm -f conftest.i conftest.err conftest.$ac_ext
15452 if $ac_preproc_ok
15453 then :
15454
15455 else case e in #(
15456 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15457 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15458 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
15459 See 'config.log' for more details" "$LINENO" 5; } ;;
15460 esac
15461 fi
15462
15463 ac_ext=c
15464 ac_cpp='$CPP $CPPFLAGS'
15465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15468
15469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
15470 printf %s "checking for egrep... " >&6; }
15471 if test ${ac_cv_path_EGREP+y}
15472 then :
15473 printf %s "(cached) " >&6
15474 else case e in #(
15475 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
15476 then ac_cv_path_EGREP="$GREP -E"
15477 else
15478 if test -z "$EGREP"; then
15479 ac_path_EGREP_found=false
15480 # Loop through the user's path and test for each of PROGNAME-LIST
15481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15482 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15483 do
15484 IFS=$as_save_IFS
15485 case $as_dir in #(((
15486 '') as_dir=./ ;;
15487 */) ;;
15488 *) as_dir=$as_dir/ ;;
15489 esac
15490 for ac_prog in egrep
15491 do
15492 for ac_exec_ext in '' $ac_executable_extensions; do
15493 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
15494 as_fn_executable_p "$ac_path_EGREP" || continue
15495 # Check for GNU ac_path_EGREP and select it if it is found.
15496 # Check for GNU $ac_path_EGREP
15497 case `"$ac_path_EGREP" --version 2>&1` in #(
15498 *GNU*)
15499 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
15500 #(
15501 *)
15502 ac_count=0
15503 printf %s 0123456789 >"conftest.in"
15504 while :
15505 do
15506 cat "conftest.in" "conftest.in" >"conftest.tmp"
15507 mv "conftest.tmp" "conftest.in"
15508 cp "conftest.in" "conftest.nl"
15509 printf "%s\n" 'EGREP' >> "conftest.nl"
15510 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15512 as_fn_arith $ac_count + 1 && ac_count=$as_val
15513 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
15514 # Best one so far, save it but keep looking for a better one
15515 ac_cv_path_EGREP="$ac_path_EGREP"
15516 ac_path_EGREP_max=$ac_count
15517 fi
15518 # 10*(2^10) chars as input seems more than enough
15519 test $ac_count -gt 10 && break
15520 done
15521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15522 esac
15523
15524 $ac_path_EGREP_found && break 3
15525 done
15526 done
15527 done
15528 IFS=$as_save_IFS
15529 if test -z "$ac_cv_path_EGREP"; then
15530 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15531 fi
15532 else
15533 ac_cv_path_EGREP=$EGREP
15534 fi
15535
15536 fi ;;
15537 esac
15538 fi
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
15540 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
15541 EGREP="$ac_cv_path_EGREP"
15542
15543 EGREP_TRADITIONAL=$EGREP
15544 ac_cv_path_EGREP_TRADITIONAL=$EGREP
15545
15546 # Extract the first word of "glib-compile-resources", so it can be a program name with args.
15547 set dummy glib-compile-resources; ac_word=$2
15548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15549 printf %s "checking for $ac_word... " >&6; }
15550 if test ${ac_cv_path_GLIB_COMPILE_RESOURCES+y}
15551 then :
15552 printf %s "(cached) " >&6
15553 else case e in #(
15554 e) case $GLIB_COMPILE_RESOURCES in
15555 [\\/]* | ?:[\\/]*)
15556 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
15557 ;;
15558 *)
15559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15560 for as_dir in $PATH
15561 do
15562 IFS=$as_save_IFS
15563 case $as_dir in #(((
15564 '') as_dir=./ ;;
15565 */) ;;
15566 *) as_dir=$as_dir/ ;;
15567 esac
15568 for ac_exec_ext in '' $ac_executable_extensions; do
15569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15570 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir$ac_word$ac_exec_ext"
15571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15572 break 2
15573 fi
15574 done
15575 done
15576 IFS=$as_save_IFS
15577
15578 ;;
15579 esac ;;
15580 esac
15581 fi
15582 GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
15583 if test -n "$GLIB_COMPILE_RESOURCES"; then
15584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
15585 printf "%s\n" "$GLIB_COMPILE_RESOURCES" >&6; }
15586 else
15587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15588 printf "%s\n" "no" >&6; }
15589 fi
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15600 if test -n "$ac_tool_prefix"; then
15601 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15602 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15604 printf %s "checking for $ac_word... " >&6; }
15605 if test ${ac_cv_path_PKG_CONFIG+y}
15606 then :
15607 printf %s "(cached) " >&6
15608 else case e in #(
15609 e) case $PKG_CONFIG in
15610 [\\/]* | ?:[\\/]*)
15611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15612 ;;
15613 *)
15614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15615 for as_dir in $PATH
15616 do
15617 IFS=$as_save_IFS
15618 case $as_dir in #(((
15619 '') as_dir=./ ;;
15620 */) ;;
15621 *) as_dir=$as_dir/ ;;
15622 esac
15623 for ac_exec_ext in '' $ac_executable_extensions; do
15624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15625 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15627 break 2
15628 fi
15629 done
15630 done
15631 IFS=$as_save_IFS
15632
15633 ;;
15634 esac ;;
15635 esac
15636 fi
15637 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15638 if test -n "$PKG_CONFIG"; then
15639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15640 printf "%s\n" "$PKG_CONFIG" >&6; }
15641 else
15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15643 printf "%s\n" "no" >&6; }
15644 fi
15645
15646
15647 fi
15648 if test -z "$ac_cv_path_PKG_CONFIG"; then
15649 ac_pt_PKG_CONFIG=$PKG_CONFIG
15650 # Extract the first word of "pkg-config", so it can be a program name with args.
15651 set dummy pkg-config; ac_word=$2
15652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15653 printf %s "checking for $ac_word... " >&6; }
15654 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15655 then :
15656 printf %s "(cached) " >&6
15657 else case e in #(
15658 e) case $ac_pt_PKG_CONFIG in
15659 [\\/]* | ?:[\\/]*)
15660 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15661 ;;
15662 *)
15663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15664 for as_dir in $PATH
15665 do
15666 IFS=$as_save_IFS
15667 case $as_dir in #(((
15668 '') as_dir=./ ;;
15669 */) ;;
15670 *) as_dir=$as_dir/ ;;
15671 esac
15672 for ac_exec_ext in '' $ac_executable_extensions; do
15673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15674 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15676 break 2
15677 fi
15678 done
15679 done
15680 IFS=$as_save_IFS
15681
15682 ;;
15683 esac ;;
15684 esac
15685 fi
15686 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15687 if test -n "$ac_pt_PKG_CONFIG"; then
15688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15689 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15690 else
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 printf "%s\n" "no" >&6; }
15693 fi
15694
15695 if test "x$ac_pt_PKG_CONFIG" = x; then
15696 PKG_CONFIG=""
15697 else
15698 case $cross_compiling:$ac_tool_warned in
15699 yes:)
15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15701 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15702 ac_tool_warned=yes ;;
15703 esac
15704 PKG_CONFIG=$ac_pt_PKG_CONFIG
15705 fi
15706 else
15707 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15708 fi
15709
15710 fi
15711 if test -n "$PKG_CONFIG"; then
15712 _pkg_min_version=0.9.0
15713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15714 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15715 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15717 printf "%s\n" "yes" >&6; }
15718 else
15719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15720 printf "%s\n" "no" >&6; }
15721 PKG_CONFIG=""
15722 fi
15723 fi
15724 if test -z "$PKG_CONFIG"; then
15725 as_fn_error $? "pkg-config not found" "$LINENO" 5
15726 fi
15727
15728 # Extract the first word of "file", so it can be a program name with args.
15729 set dummy file; ac_word=$2
15730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15731 printf %s "checking for $ac_word... " >&6; }
15732 if test ${ac_cv_prog_has_file+y}
15733 then :
15734 printf %s "(cached) " >&6
15735 else case e in #(
15736 e) if test -n "$has_file"; then
15737 ac_cv_prog_has_file="$has_file" # Let the user override the test.
15738 else
15739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15740 for as_dir in $PATH
15741 do
15742 IFS=$as_save_IFS
15743 case $as_dir in #(((
15744 '') as_dir=./ ;;
15745 */) ;;
15746 *) as_dir=$as_dir/ ;;
15747 esac
15748 for ac_exec_ext in '' $ac_executable_extensions; do
15749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15750 ac_cv_prog_has_file="yes"
15751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15752 break 2
15753 fi
15754 done
15755 done
15756 IFS=$as_save_IFS
15757
15758 test -z "$ac_cv_prog_has_file" && ac_cv_prog_has_file="no"
15759 fi ;;
15760 esac
15761 fi
15762 has_file=$ac_cv_prog_has_file
15763 if test -n "$has_file"; then
15764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_file" >&5
15765 printf "%s\n" "$has_file" >&6; }
15766 else
15767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15768 printf "%s\n" "no" >&6; }
15769 fi
15770
15771
15772 if test x$has_file = xno ; then
15773 as_fn_error $? "\"file\" utility not found." "$LINENO" 5
15774 fi
15775
15776 # Extract the first word of "find", so it can be a program name with args.
15777 set dummy find; ac_word=$2
15778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779 printf %s "checking for $ac_word... " >&6; }
15780 if test ${ac_cv_prog_has_find+y}
15781 then :
15782 printf %s "(cached) " >&6
15783 else case e in #(
15784 e) if test -n "$has_find"; then
15785 ac_cv_prog_has_find="$has_find" # Let the user override the test.
15786 else
15787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15788 for as_dir in $PATH
15789 do
15790 IFS=$as_save_IFS
15791 case $as_dir in #(((
15792 '') as_dir=./ ;;
15793 */) ;;
15794 *) as_dir=$as_dir/ ;;
15795 esac
15796 for ac_exec_ext in '' $ac_executable_extensions; do
15797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15798 ac_cv_prog_has_find="yes"
15799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15800 break 2
15801 fi
15802 done
15803 done
15804 IFS=$as_save_IFS
15805
15806 test -z "$ac_cv_prog_has_find" && ac_cv_prog_has_find="no"
15807 fi ;;
15808 esac
15809 fi
15810 has_find=$ac_cv_prog_has_find
15811 if test -n "$has_find"; then
15812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_find" >&5
15813 printf "%s\n" "$has_find" >&6; }
15814 else
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 printf "%s\n" "no" >&6; }
15817 fi
15818
15819
15820 if test x$has_find = xno ; then
15821 as_fn_error $? "\"find\" utility not found." "$LINENO" 5
15822 fi
15823
15824 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15825 if test "x$ac_cv_header_fcntl_h" = xyes
15826 then :
15827 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
15828
15829 fi
15830 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
15831 if test "x$ac_cv_header_paths_h" = xyes
15832 then :
15833 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
15834
15835 fi
15836 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
15837 if test "x$ac_cv_header_stdarg_h" = xyes
15838 then :
15839 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
15840
15841 fi
15842 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
15843 if test "x$ac_cv_header_stdbool_h" = xyes
15844 then :
15845 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
15846
15847 fi
15848 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
15849 if test "x$ac_cv_header_sys_ioctl_h" = xyes
15850 then :
15851 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
15852
15853 fi
15854 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15855 if test "x$ac_cv_header_sys_time_h" = xyes
15856 then :
15857 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
15858
15859 fi
15860 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15861 if test "x$ac_cv_header_syslog_h" = xyes
15862 then :
15863 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
15864
15865 fi
15866 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15867 if test "x$ac_cv_header_unistd_h" = xyes
15868 then :
15869 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
15870
15871 fi
15872
15873
15874 for ac_header in pppd/pppd.h
15875 do :
15876 ac_fn_c_check_header_compile "$LINENO" "pppd/pppd.h" "ac_cv_header_pppd_pppd_h" "$ac_includes_default"
15877 if test "x$ac_cv_header_pppd_pppd_h" = xyes
15878 then :
15879 printf "%s\n" "#define HAVE_PPPD_PPPD_H 1" >>confdefs.h
15880
15881 else case e in #(
15882 e) as_fn_error $? "couldn't find pppd.h. pppd development headers are required." "$LINENO" 5 ;;
15883 esac
15884 fi
15885
15886 done
15887
15888 ac_fn_c_check_header_compile "$LINENO" "pppd/chap.h" "ac_cv_header_pppd_chap_h" "$ac_includes_default"
15889 if test "x$ac_cv_header_pppd_chap_h" = xyes
15890 then :
15891 printf "%s\n" "#define HAVE_PPPD_CHAP_H 1" >>confdefs.h
15892
15893 fi
15894 ac_fn_c_check_header_compile "$LINENO" "pppd/chap-new.h" "ac_cv_header_pppd_chap_new_h" "$ac_includes_default"
15895 if test "x$ac_cv_header_pppd_chap_new_h" = xyes
15896 then :
15897 printf "%s\n" "#define HAVE_PPPD_CHAP_NEW_H 1" >>confdefs.h
15898
15899 fi
15900 ac_fn_c_check_header_compile "$LINENO" "pppd/chap_ms.h" "ac_cv_header_pppd_chap_ms_h" "$ac_includes_default"
15901 if test "x$ac_cv_header_pppd_chap_ms_h" = xyes
15902 then :
15903 printf "%s\n" "#define HAVE_PPPD_CHAP_MS_H 1" >>confdefs.h
15904
15905 fi
15906
15907
15908 if test -n "$PKG_CONFIG" && \
15909 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pppd\""; } >&5
15910 ($PKG_CONFIG --exists --print-errors "pppd") 2>&5
15911 ac_status=$?
15912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15913 test $ac_status = 0; }; then
15914 pppd_pkgconfig_support=yes
15915 fi
15916
15917 PPPD_VERSION=2.4.9
15918 if test x"$pppd_pkgconfig_support" = xyes; then
15919 PPPD_VERSION=`$PKG_CONFIG --modversion pppd`
15920 fi
15921
15922
15923 # Check whether --with-pppd-plugin-dir was given.
15924 if test ${with_pppd_plugin_dir+y}
15925 then :
15926 withval=$with_pppd_plugin_dir;
15927 fi
15928
15929
15930 if test -n "$with_pppd_plugin_dir" ; then
15931 PPPD_PLUGIN_DIR="$with_pppd_plugin_dir"
15932 else
15933 PPPD_PLUGIN_DIR="${libdir}/pppd/$PPPD_VERSION"
15934 fi
15935
15936
15937
15938 printf "%s\n" "#define PPP_VERSION(x,y,z) ((x & 0xFF) << 16 | (y & 0xFF) << 8 | (z & 0xFF) << 0)" >>confdefs.h
15939
15940 PPP_VERSION=$(echo $PPPD_VERSION | sed -e "s/\./\,/g")
15941
15942 printf "%s\n" "#define WITH_PPP_VERSION PPP_VERSION($PPP_VERSION)" >>confdefs.h
15943
15944
15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EAP-TLS patch has been applied to pppd" >&5
15946 printf %s "checking whether EAP-TLS patch has been applied to pppd... " >&6; }
15947
15948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
15949 printf %s "checking for egrep -e... " >&6; }
15950 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
15951 then :
15952 printf %s "(cached) " >&6
15953 else case e in #(
15954 e) if test -z "$EGREP_TRADITIONAL"; then
15955 ac_path_EGREP_TRADITIONAL_found=false
15956 # Loop through the user's path and test for each of PROGNAME-LIST
15957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15959 do
15960 IFS=$as_save_IFS
15961 case $as_dir in #(((
15962 '') as_dir=./ ;;
15963 */) ;;
15964 *) as_dir=$as_dir/ ;;
15965 esac
15966 for ac_prog in grep ggrep
15967 do
15968 for ac_exec_ext in '' $ac_executable_extensions; do
15969 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
15970 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
15971 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
15972 # Check for GNU $ac_path_EGREP_TRADITIONAL
15973 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
15974 *GNU*)
15975 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
15976 #(
15977 *)
15978 ac_count=0
15979 printf %s 0123456789 >"conftest.in"
15980 while :
15981 do
15982 cat "conftest.in" "conftest.in" >"conftest.tmp"
15983 mv "conftest.tmp" "conftest.in"
15984 cp "conftest.in" "conftest.nl"
15985 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
15986 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15988 as_fn_arith $ac_count + 1 && ac_count=$as_val
15989 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
15990 # Best one so far, save it but keep looking for a better one
15991 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
15992 ac_path_EGREP_TRADITIONAL_max=$ac_count
15993 fi
15994 # 10*(2^10) chars as input seems more than enough
15995 test $ac_count -gt 10 && break
15996 done
15997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15998 esac
15999
16000 $ac_path_EGREP_TRADITIONAL_found && break 3
16001 done
16002 done
16003 done
16004 IFS=$as_save_IFS
16005 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
16006 :
16007 fi
16008 else
16009 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
16010 fi
16011
16012 if test "$ac_cv_path_EGREP_TRADITIONAL"
16013 then :
16014 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
16015 else case e in #(
16016 e) if test -z "$EGREP_TRADITIONAL"; then
16017 ac_path_EGREP_TRADITIONAL_found=false
16018 # Loop through the user's path and test for each of PROGNAME-LIST
16019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16021 do
16022 IFS=$as_save_IFS
16023 case $as_dir in #(((
16024 '') as_dir=./ ;;
16025 */) ;;
16026 *) as_dir=$as_dir/ ;;
16027 esac
16028 for ac_prog in egrep
16029 do
16030 for ac_exec_ext in '' $ac_executable_extensions; do
16031 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
16032 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
16033 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
16034 # Check for GNU $ac_path_EGREP_TRADITIONAL
16035 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
16036 *GNU*)
16037 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
16038 #(
16039 *)
16040 ac_count=0
16041 printf %s 0123456789 >"conftest.in"
16042 while :
16043 do
16044 cat "conftest.in" "conftest.in" >"conftest.tmp"
16045 mv "conftest.tmp" "conftest.in"
16046 cp "conftest.in" "conftest.nl"
16047 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
16048 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16050 as_fn_arith $ac_count + 1 && ac_count=$as_val
16051 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
16052 # Best one so far, save it but keep looking for a better one
16053 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
16054 ac_path_EGREP_TRADITIONAL_max=$ac_count
16055 fi
16056 # 10*(2^10) chars as input seems more than enough
16057 test $ac_count -gt 10 && break
16058 done
16059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16060 esac
16061
16062 $ac_path_EGREP_TRADITIONAL_found && break 3
16063 done
16064 done
16065 done
16066 IFS=$as_save_IFS
16067 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
16068 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
16069 fi
16070 else
16071 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
16072 fi
16073 ;;
16074 esac
16075 fi ;;
16076 esac
16077 fi
16078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
16079 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
16080 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
16081
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084
16085 #define USE_EAPTLS
16086 #include <pppd/pppd.h>
16087 #include <pppd/eap.h>
16088
16089 _ACEOF
16090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16091 $EGREP_TRADITIONAL "eaptls_passwd_hook" >/dev/null 2>&1
16092 then :
16093 have_eap_tls=yes
16094 else case e in #(
16095 e) have_eap_tls=no ;;
16096 esac
16097 fi
16098 rm -rf conftest*
16099
16100
16101 if test "x${have_eap_tls}" = "xno"; then
16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16103 printf "%s\n" "no" >&6; }
16104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: EAP-TLS patch has not been applied to pppd" >&5
16105 printf "%s\n" "$as_me: WARNING: EAP-TLS patch has not been applied to pppd" >&2;}
16106 else
16107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16108 printf "%s\n" "yes" >&6; }
16109
16110 printf "%s\n" "#define USE_EAPTLS 1" >>confdefs.h
16111
16112 fi
16113
16114
16115 # Check whether --with-nm-ipsec-secrets was given.
16116 if test ${with_nm_ipsec_secrets+y}
16117 then :
16118 withval=$with_nm_ipsec_secrets;
16119 else case e in #(
16120 e) with_nm_ipsec_secrets= ;;
16121 esac
16122 fi
16123
16124 if test -z "$with_nm_ipsec_secrets"
16125 then :
16126 with_nm_ipsec_secrets="/etc/ipsec.secrets"
16127 fi
16128 if (printf '%s' "$with_nm_ipsec_secrets" | grep -v -q '^/'); then
16129 as_fn_error $? "--with-nm-ipsec-secrets must be an absolute path, instead it is '$with_nm_ipsec_secrets'" "$LINENO" 5
16130 fi
16131
16132 printf "%s\n" "#define NM_IPSEC_SECRETS \"$with_nm_ipsec_secrets\"" >>confdefs.h
16133
16134
16135
16136 # Check whether --with-nm-ipsec-secrets-dir was given.
16137 if test ${with_nm_ipsec_secrets_dir+y}
16138 then :
16139 withval=$with_nm_ipsec_secrets_dir;
16140 else case e in #(
16141 e) with_nm_ipsec_secrets_dir= ;;
16142 esac
16143 fi
16144
16145 if test -z "$with_nm_ipsec_secrets_dir"
16146 then :
16147 with_nm_ipsec_secrets_dir="/etc/ipsec.d"
16148 fi
16149 if (printf '%s' "$with_nm_ipsec_secrets_dir" | grep -v -q '^/'); then
16150 as_fn_error $? "--with-nm-ipsec-secrets-dir must be an absolute path, instead it is '$with_nm_ipsec_secrets_dir'" "$LINENO" 5
16151 fi
16152
16153 printf "%s\n" "#define NM_IPSEC_SECRETS_DIR \"$with_nm_ipsec_secrets_dir\"" >>confdefs.h
16154
16155
16156
16157 # Check whether --with-nm-ipsec-nss-dir was given.
16158 if test ${with_nm_ipsec_nss_dir+y}
16159 then :
16160 withval=$with_nm_ipsec_nss_dir;
16161 else case e in #(
16162 e) with_nm_ipsec_nss_dir= ;;
16163 esac
16164 fi
16165
16166 if test -z "$with_nm_ipsec_nss_dir"
16167 then :
16168 with_nm_ipsec_nss_dir="/var/lib/ipsec/nss"
16169 fi
16170 if (printf '%s' "$with_nm_ipsec_nss_dir" | grep -v -q '^/'); then
16171 as_fn_error $? "--with-nm-ipsec-nss-dir must be an absolute path, instead it is '$with_nm_ipsec_nss_dir'" "$LINENO" 5
16172 fi
16173
16174 printf "%s\n" "#define NM_IPSEC_NSS_DIR \"$with_nm_ipsec_nss_dir\"" >>confdefs.h
16175
16176
16177 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16178 if test "x$ac_cv_type_mode_t" = xyes
16179 then :
16180
16181 else case e in #(
16182 e)
16183 printf "%s\n" "#define mode_t int" >>confdefs.h
16184 ;;
16185 esac
16186 fi
16187
16188
16189 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
16190 "
16191 if test "x$ac_cv_type_pid_t" = xyes
16192 then :
16193
16194 else case e in #(
16195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16197
16198 #if defined _WIN64 && !defined __CYGWIN__
16199 LLP64
16200 #endif
16201
16202 int
16203 main (void)
16204 {
16205
16206 ;
16207 return 0;
16208 }
16209
16210 _ACEOF
16211 if ac_fn_c_try_compile "$LINENO"
16212 then :
16213 ac_pid_type='int'
16214 else case e in #(
16215 e) ac_pid_type='__int64' ;;
16216 esac
16217 fi
16218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16219
16220 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
16221
16222 ;;
16223 esac
16224 fi
16225
16226
16227
16228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16229 printf %s "checking for working memcmp... " >&6; }
16230 if test ${ac_cv_func_memcmp_working+y}
16231 then :
16232 printf %s "(cached) " >&6
16233 else case e in #(
16234 e) if test "$cross_compiling" = yes
16235 then :
16236 ac_cv_func_memcmp_working=no
16237 else case e in #(
16238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239 /* end confdefs.h. */
16240 $ac_includes_default
16241 int
16242 main (void)
16243 {
16244
16245 /* Some versions of memcmp are not 8-bit clean. */
16246 char c0 = '\100', c1 = '\200', c2 = '\201';
16247 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16248 return 1;
16249
16250 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16251 or more and with at least one buffer not starting on a 4-byte boundary.
16252 William Lewis provided this test program. */
16253 {
16254 char foo[21];
16255 char bar[21];
16256 int i;
16257 for (i = 0; i < 4; i++)
16258 {
16259 char *a = foo + i;
16260 char *b = bar + i;
16261 strcpy (a, "--------01111111");
16262 strcpy (b, "--------10000000");
16263 if (memcmp (a, b, 16) >= 0)
16264 return 1;
16265 }
16266 return 0;
16267 }
16268
16269 ;
16270 return 0;
16271 }
16272 _ACEOF
16273 if ac_fn_c_try_run "$LINENO"
16274 then :
16275 ac_cv_func_memcmp_working=yes
16276 else case e in #(
16277 e) ac_cv_func_memcmp_working=no ;;
16278 esac
16279 fi
16280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16281 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16282 esac
16283 fi
16284 ;;
16285 esac
16286 fi
16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16288 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
16289 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16290 *" memcmp.$ac_objext "* ) ;;
16291 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16292 ;;
16293 esac
16294
16295
16296 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
16297 if test "x$ac_cv_func_select" = xyes
16298 then :
16299 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
16300
16301 fi
16302 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16303 if test "x$ac_cv_func_socket" = xyes
16304 then :
16305 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
16306
16307 fi
16308 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
16309 if test "x$ac_cv_func_uname" = xyes
16310 then :
16311 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
16312
16313 fi
16314
16315
16316
16317
16318 NM_GIT_SHA=ef970e2f3bf3e219d99c949b7a91a6bb55ab6ef7
16319
16320 if test """" != "no-config-h" ; then
16321
16322 printf "%s\n" "#define NM_GIT_SHA \"$NM_GIT_SHA\"" >>confdefs.h
16323
16324 fi
16325
16326
16327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16328 printf %s "checking for library containing dlopen... " >&6; }
16329 if test ${ac_cv_search_dlopen+y}
16330 then :
16331 printf %s "(cached) " >&6
16332 else case e in #(
16333 e) ac_func_search_save_LIBS=$LIBS
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16336
16337 /* Override any GCC internal prototype to avoid an error.
16338 Use char because int might match the return type of a GCC
16339 builtin and then its argument prototype would still apply.
16340 The 'extern "C"' is for builds by C++ compilers;
16341 although this is not generally supported in C code supporting it here
16342 has little cost and some practical benefit (sr 110532). */
16343 #ifdef __cplusplus
16344 extern "C"
16345 #endif
16346 char dlopen (void);
16347 int
16348 main (void)
16349 {
16350 return dlopen ();
16351 ;
16352 return 0;
16353 }
16354 _ACEOF
16355 for ac_lib in '' dl dld
16356 do
16357 if test -z "$ac_lib"; then
16358 ac_res="none required"
16359 else
16360 ac_res=-l$ac_lib
16361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16362 fi
16363 if ac_fn_c_try_link "$LINENO"
16364 then :
16365 ac_cv_search_dlopen=$ac_res
16366 fi
16367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16368 conftest$ac_exeext
16369 if test ${ac_cv_search_dlopen+y}
16370 then :
16371 break
16372 fi
16373 done
16374 if test ${ac_cv_search_dlopen+y}
16375 then :
16376
16377 else case e in #(
16378 e) ac_cv_search_dlopen=no ;;
16379 esac
16380 fi
16381 rm conftest.$ac_ext
16382 LIBS=$ac_func_search_save_LIBS ;;
16383 esac
16384 fi
16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16386 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
16387 ac_res=$ac_cv_search_dlopen
16388 if test "$ac_res" != no
16389 then :
16390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16391
16392 else case e in #(
16393 e) ac_cv_search_dlopen= ;;
16394 esac
16395 fi
16396
16397 DL_LIBS="$ac_cv_search_dlopen"
16398
16399
16400 # Check whether --enable-libreswan_dh2 was given.
16401 if test ${enable_libreswan_dh2+y}
16402 then :
16403 enableval=$enable_libreswan_dh2;
16404 fi
16405
16406 if test "x${enable_libreswan_dh2}" = "xyes"; then
16407
16408 printf "%s\n" "#define LIBRESWAN_DH2 1" >>confdefs.h
16409
16410 fi
16411
16412
16413 pkg_failed=no
16414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto >= 1.1.0" >&5
16415 printf %s "checking for libcrypto >= 1.1.0... " >&6; }
16416
16417 if test -n "$OPENSSL_CFLAGS"; then
16418 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16419 elif test -n "$PKG_CONFIG"; then
16420 if test -n "$PKG_CONFIG" && \
16421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.1.0\""; } >&5
16422 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.1.0") 2>&5
16423 ac_status=$?
16424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16425 test $ac_status = 0; }; then
16426 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.1.0" 2>/dev/null`
16427 test "x$?" != "x0" && pkg_failed=yes
16428 else
16429 pkg_failed=yes
16430 fi
16431 else
16432 pkg_failed=untried
16433 fi
16434 if test -n "$OPENSSL_LIBS"; then
16435 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16436 elif test -n "$PKG_CONFIG"; then
16437 if test -n "$PKG_CONFIG" && \
16438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.1.0\""; } >&5
16439 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.1.0") 2>&5
16440 ac_status=$?
16441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16442 test $ac_status = 0; }; then
16443 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.1.0" 2>/dev/null`
16444 test "x$?" != "x0" && pkg_failed=yes
16445 else
16446 pkg_failed=yes
16447 fi
16448 else
16449 pkg_failed=untried
16450 fi
16451
16452
16453
16454 if test $pkg_failed = yes; then
16455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16456 printf "%s\n" "no" >&6; }
16457
16458 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16459 _pkg_short_errors_supported=yes
16460 else
16461 _pkg_short_errors_supported=no
16462 fi
16463 if test $_pkg_short_errors_supported = yes; then
16464 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.1.0" 2>&1`
16465 else
16466 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.1.0" 2>&1`
16467 fi
16468 # Put the nasty error message in config.log where it belongs
16469 echo "$OPENSSL_PKG_ERRORS" >&5
16470
16471 have_crypto_openssl=no
16472 elif test $pkg_failed = untried; then
16473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16474 printf "%s\n" "no" >&6; }
16475 have_crypto_openssl=no
16476 else
16477 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16478 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16480 printf "%s\n" "yes" >&6; }
16481 have_crypto_openssl=yes
16482 fi
16483 if test "x${have_crypto_openssl}" = "xno"; then
16484 as_fn_error $? "$OPENSSL_PKG_ERRORS" "$LINENO" 5
16485 fi
16486
16487 pkg_failed=no
16488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
16489 printf %s "checking for nss... " >&6; }
16490
16491 if test -n "$NSS_CFLAGS"; then
16492 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
16493 elif test -n "$PKG_CONFIG"; then
16494 if test -n "$PKG_CONFIG" && \
16495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
16496 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
16497 ac_status=$?
16498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16499 test $ac_status = 0; }; then
16500 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
16501 test "x$?" != "x0" && pkg_failed=yes
16502 else
16503 pkg_failed=yes
16504 fi
16505 else
16506 pkg_failed=untried
16507 fi
16508 if test -n "$NSS_LIBS"; then
16509 pkg_cv_NSS_LIBS="$NSS_LIBS"
16510 elif test -n "$PKG_CONFIG"; then
16511 if test -n "$PKG_CONFIG" && \
16512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
16513 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
16514 ac_status=$?
16515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16516 test $ac_status = 0; }; then
16517 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
16518 test "x$?" != "x0" && pkg_failed=yes
16519 else
16520 pkg_failed=yes
16521 fi
16522 else
16523 pkg_failed=untried
16524 fi
16525
16526
16527
16528 if test $pkg_failed = yes; then
16529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16530 printf "%s\n" "no" >&6; }
16531
16532 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16533 _pkg_short_errors_supported=yes
16534 else
16535 _pkg_short_errors_supported=no
16536 fi
16537 if test $_pkg_short_errors_supported = yes; then
16538 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
16539 else
16540 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
16541 fi
16542 # Put the nasty error message in config.log where it belongs
16543 echo "$NSS_PKG_ERRORS" >&5
16544
16545 have_crypto_ipsec_nss=no
16546 elif test $pkg_failed = untried; then
16547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548 printf "%s\n" "no" >&6; }
16549 have_crypto_ipsec_nss=no
16550 else
16551 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
16552 NSS_LIBS=$pkg_cv_NSS_LIBS
16553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16554 printf "%s\n" "yes" >&6; }
16555 have_crypto_ipsec_nss=yes
16556 fi
16557 if test "${have_crypto_ipsec_nss}" = "yes"; then
16558 # Work around a pkg-config bug (fdo #29801) where exists != usable
16559 FOO=`$PKG_CONFIG --cflags --libs nss`
16560 if test x"$?" != "x0"; then
16561 have_crypto_ipsec_nss=no
16562 fi
16563 fi
16564 if test "x${have_crypto_ipsec_nss}" = "xno"; then
16565 as_fn_error $? "$NSS_PKG_ERRORS" "$LINENO" 5
16566 fi
16567
16568
16569 # Check whether --with-gnome was given.
16570 if test ${with_gnome+y}
16571 then :
16572 withval=$with_gnome;
16573 else case e in #(
16574 e) with_gnome_specified=no ;;
16575 esac
16576 fi
16577
16578 if test "$with_gnome" != no; then
16579 with_gnome=yes
16580 fi
16581 if test "$with_gnome" != no; then
16582 WITH_GNOME_TRUE=
16583 WITH_GNOME_FALSE='#'
16584 else
16585 WITH_GNOME_TRUE='#'
16586 WITH_GNOME_FALSE=
16587 fi
16588
16589
16590
16591 # Check whether --with-gtk4 was given.
16592 if test ${with_gtk4+y}
16593 then :
16594 withval=$with_gtk4;
16595 else case e in #(
16596 e) with_gtk4_specified=no ;;
16597 esac
16598 fi
16599
16600 if test "$with_gtk4_specified" = no; then
16601 with_gtk4=no
16602 fi
16603 if test "$with_gtk4" != yes; then
16604 with_gtk4=no
16605 fi
16606 if test "$with_gtk4" != no; then
16607 WITH_GTK4_TRUE=
16608 WITH_GTK4_FALSE='#'
16609 else
16610 WITH_GTK4_TRUE='#'
16611 WITH_GTK4_FALSE=
16612 fi
16613
16614
16615 # Check whether --enable-absolute-paths was given.
16616 if test ${enable_absolute_paths+y}
16617 then :
16618 enableval=$enable_absolute_paths;
16619 fi
16620
16621
16622
16623 # FIXME: Remove AM_GNU_GETTEXT_VERSION once autoreconf supports REQUIRE_VERSION
16624
16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16626 printf %s "checking whether NLS is requested... " >&6; }
16627 # Check whether --enable-nls was given.
16628 if test ${enable_nls+y}
16629 then :
16630 enableval=$enable_nls; USE_NLS=$enableval
16631 else case e in #(
16632 e) USE_NLS=yes ;;
16633 esac
16634 fi
16635
16636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16637 printf "%s\n" "$USE_NLS" >&6; }
16638
16639
16640
16641
16642 GETTEXT_MACRO_VERSION=0.22
16643
16644
16645
16646
16647 # Prepare PATH_SEPARATOR.
16648 # The user is always right.
16649 if test "${PATH_SEPARATOR+set}" != set; then
16650 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16651 # contains only /bin. Note that ksh looks also at the FPATH variable,
16652 # so we have to set that as well for the test.
16653 PATH_SEPARATOR=:
16654 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16655 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16656 || PATH_SEPARATOR=';'
16657 }
16658 fi
16659
16660 # Find out how to test for executable files. Don't use a zero-byte file,
16661 # as systems may use methods other than mode bits to determine executability.
16662 cat >conf$$.file <<_ASEOF
16663 #! /bin/sh
16664 exit 0
16665 _ASEOF
16666 chmod +x conf$$.file
16667 if test -x conf$$.file >/dev/null 2>&1; then
16668 ac_executable_p="test -x"
16669 else
16670 ac_executable_p="test -f"
16671 fi
16672 rm -f conf$$.file
16673
16674 # Extract the first word of "msgfmt", so it can be a program name with args.
16675 set dummy msgfmt; ac_word=$2
16676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16677 printf %s "checking for $ac_word... " >&6; }
16678 if test ${ac_cv_path_MSGFMT+y}
16679 then :
16680 printf %s "(cached) " >&6
16681 else case e in #(
16682 e) case "$MSGFMT" in
16683 [\\/]* | ?:[\\/]*)
16684 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16685 ;;
16686 *)
16687 gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
16688 for ac_dir in $PATH; do
16689 IFS="$gt_saved_IFS"
16690 test -z "$ac_dir" && ac_dir=.
16691 for ac_exec_ext in '' $ac_executable_extensions; do
16692 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16693 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16694 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16695 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16696 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16697 break 2
16698 fi
16699 fi
16700 done
16701 done
16702 IFS="$gt_saved_IFS"
16703 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16704 ;;
16705 esac ;;
16706 esac
16707 fi
16708 MSGFMT="$ac_cv_path_MSGFMT"
16709 if test "$MSGFMT" != ":"; then
16710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16711 printf "%s\n" "$MSGFMT" >&6; }
16712 else
16713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16714 printf "%s\n" "no" >&6; }
16715 fi
16716
16717 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16718 set dummy gmsgfmt; ac_word=$2
16719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16720 printf %s "checking for $ac_word... " >&6; }
16721 if test ${ac_cv_path_GMSGFMT+y}
16722 then :
16723 printf %s "(cached) " >&6
16724 else case e in #(
16725 e) case $GMSGFMT in
16726 [\\/]* | ?:[\\/]*)
16727 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16728 ;;
16729 *)
16730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16731 for as_dir in $PATH
16732 do
16733 IFS=$as_save_IFS
16734 case $as_dir in #(((
16735 '') as_dir=./ ;;
16736 */) ;;
16737 *) as_dir=$as_dir/ ;;
16738 esac
16739 for ac_exec_ext in '' $ac_executable_extensions; do
16740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16741 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
16742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16743 break 2
16744 fi
16745 done
16746 done
16747 IFS=$as_save_IFS
16748
16749 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16750 ;;
16751 esac ;;
16752 esac
16753 fi
16754 GMSGFMT=$ac_cv_path_GMSGFMT
16755 if test -n "$GMSGFMT"; then
16756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16757 printf "%s\n" "$GMSGFMT" >&6; }
16758 else
16759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16760 printf "%s\n" "no" >&6; }
16761 fi
16762
16763
16764
16765 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16766 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
16767 *) GMSGFMT_015=$GMSGFMT ;;
16768 esac
16769
16770
16771
16772 # Prepare PATH_SEPARATOR.
16773 # The user is always right.
16774 if test "${PATH_SEPARATOR+set}" != set; then
16775 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16776 # contains only /bin. Note that ksh looks also at the FPATH variable,
16777 # so we have to set that as well for the test.
16778 PATH_SEPARATOR=:
16779 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16780 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16781 || PATH_SEPARATOR=';'
16782 }
16783 fi
16784
16785 # Find out how to test for executable files. Don't use a zero-byte file,
16786 # as systems may use methods other than mode bits to determine executability.
16787 cat >conf$$.file <<_ASEOF
16788 #! /bin/sh
16789 exit 0
16790 _ASEOF
16791 chmod +x conf$$.file
16792 if test -x conf$$.file >/dev/null 2>&1; then
16793 ac_executable_p="test -x"
16794 else
16795 ac_executable_p="test -f"
16796 fi
16797 rm -f conf$$.file
16798
16799 # Extract the first word of "xgettext", so it can be a program name with args.
16800 set dummy xgettext; ac_word=$2
16801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16802 printf %s "checking for $ac_word... " >&6; }
16803 if test ${ac_cv_path_XGETTEXT+y}
16804 then :
16805 printf %s "(cached) " >&6
16806 else case e in #(
16807 e) case "$XGETTEXT" in
16808 [\\/]* | ?:[\\/]*)
16809 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16810 ;;
16811 *)
16812 gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
16813 for ac_dir in $PATH; do
16814 IFS="$gt_saved_IFS"
16815 test -z "$ac_dir" && ac_dir=.
16816 for ac_exec_ext in '' $ac_executable_extensions; do
16817 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16818 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16819 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16820 (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
16821 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16822 break 2
16823 fi
16824 fi
16825 done
16826 done
16827 IFS="$gt_saved_IFS"
16828 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16829 ;;
16830 esac ;;
16831 esac
16832 fi
16833 XGETTEXT="$ac_cv_path_XGETTEXT"
16834 if test "$XGETTEXT" != ":"; then
16835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16836 printf "%s\n" "$XGETTEXT" >&6; }
16837 else
16838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16839 printf "%s\n" "no" >&6; }
16840 fi
16841
16842 rm -f messages.po
16843
16844 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16845 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
16846 *) XGETTEXT_015=$XGETTEXT ;;
16847 esac
16848
16849
16850
16851 # Prepare PATH_SEPARATOR.
16852 # The user is always right.
16853 if test "${PATH_SEPARATOR+set}" != set; then
16854 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16855 # contains only /bin. Note that ksh looks also at the FPATH variable,
16856 # so we have to set that as well for the test.
16857 PATH_SEPARATOR=:
16858 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16859 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16860 || PATH_SEPARATOR=';'
16861 }
16862 fi
16863
16864 # Find out how to test for executable files. Don't use a zero-byte file,
16865 # as systems may use methods other than mode bits to determine executability.
16866 cat >conf$$.file <<_ASEOF
16867 #! /bin/sh
16868 exit 0
16869 _ASEOF
16870 chmod +x conf$$.file
16871 if test -x conf$$.file >/dev/null 2>&1; then
16872 ac_executable_p="test -x"
16873 else
16874 ac_executable_p="test -f"
16875 fi
16876 rm -f conf$$.file
16877
16878 # Extract the first word of "msgmerge", so it can be a program name with args.
16879 set dummy msgmerge; ac_word=$2
16880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16881 printf %s "checking for $ac_word... " >&6; }
16882 if test ${ac_cv_path_MSGMERGE+y}
16883 then :
16884 printf %s "(cached) " >&6
16885 else case e in #(
16886 e) case "$MSGMERGE" in
16887 [\\/]* | ?:[\\/]*)
16888 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16889 ;;
16890 *)
16891 gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
16892 for ac_dir in $PATH; do
16893 IFS="$gt_saved_IFS"
16894 test -z "$ac_dir" && ac_dir=.
16895 for ac_exec_ext in '' $ac_executable_extensions; do
16896 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16897 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16898 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16899 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16900 break 2
16901 fi
16902 fi
16903 done
16904 done
16905 IFS="$gt_saved_IFS"
16906 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16907 ;;
16908 esac ;;
16909 esac
16910 fi
16911 MSGMERGE="$ac_cv_path_MSGMERGE"
16912 if test "$MSGMERGE" != ":"; then
16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16914 printf "%s\n" "$MSGMERGE" >&6; }
16915 else
16916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16917 printf "%s\n" "no" >&6; }
16918 fi
16919
16920
16921 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
16922 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
16923 else
16924 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
16925 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
16926 else
16927 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
16928 fi
16929 fi
16930
16931
16932 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16933
16934
16935 ac_config_commands="$ac_config_commands po-directories"
16936
16937
16938
16939 if test "X$prefix" = "XNONE"; then
16940 acl_final_prefix="$ac_default_prefix"
16941 else
16942 acl_final_prefix="$prefix"
16943 fi
16944 if test "X$exec_prefix" = "XNONE"; then
16945 acl_final_exec_prefix='${prefix}'
16946 else
16947 acl_final_exec_prefix="$exec_prefix"
16948 fi
16949 acl_saved_prefix="$prefix"
16950 prefix="$acl_final_prefix"
16951 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16952 prefix="$acl_saved_prefix"
16953
16954
16955
16956 # Check whether --with-gnu-ld was given.
16957 if test ${with_gnu_ld+y}
16958 then :
16959 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16960 else case e in #(
16961 e) with_gnu_ld=no ;;
16962 esac
16963 fi
16964
16965 # Prepare PATH_SEPARATOR.
16966 # The user is always right.
16967 if test "${PATH_SEPARATOR+set}" != set; then
16968 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16969 # contains only /bin. Note that ksh looks also at the FPATH variable,
16970 # so we have to set that as well for the test.
16971 PATH_SEPARATOR=:
16972 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16973 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16974 || PATH_SEPARATOR=';'
16975 }
16976 fi
16977
16978 if test -n "$LD"; then
16979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
16980 printf %s "checking for ld... " >&6; }
16981 elif test "$GCC" = yes; then
16982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16983 printf %s "checking for ld used by $CC... " >&6; }
16984 elif test "$with_gnu_ld" = yes; then
16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16986 printf %s "checking for GNU ld... " >&6; }
16987 else
16988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16989 printf %s "checking for non-GNU ld... " >&6; }
16990 fi
16991 if test -n "$LD"; then
16992 # Let the user override the test with a path.
16993 :
16994 else
16995 if test ${acl_cv_path_LD+y}
16996 then :
16997 printf %s "(cached) " >&6
16998 else case e in #(
16999 e)
17000 acl_cv_path_LD= # Final result of this test
17001 ac_prog=ld # Program to search in $PATH
17002 if test "$GCC" = yes; then
17003 # Check if gcc -print-prog-name=ld gives a path.
17004 case $host in
17005 *-*-mingw* | windows*)
17006 # gcc leaves a trailing carriage return which upsets mingw
17007 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17008 *)
17009 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
17010 esac
17011 case $acl_output in
17012 # Accept absolute paths.
17013 [\\/]* | ?:[\\/]*)
17014 re_direlt='/[^/][^/]*/\.\./'
17015 # Canonicalize the pathname of ld
17016 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
17017 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
17018 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
17019 done
17020 # Got the pathname. No search in PATH is needed.
17021 acl_cv_path_LD="$acl_output"
17022 ac_prog=
17023 ;;
17024 "")
17025 # If it fails, then pretend we aren't using GCC.
17026 ;;
17027 *)
17028 # If it is relative, then search for the first ld in PATH.
17029 with_gnu_ld=unknown
17030 ;;
17031 esac
17032 fi
17033 if test -n "$ac_prog"; then
17034 # Search for $ac_prog in $PATH.
17035 acl_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
17036 for ac_dir in $PATH; do
17037 IFS="$acl_saved_IFS"
17038 test -z "$ac_dir" && ac_dir=.
17039 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17040 acl_cv_path_LD="$ac_dir/$ac_prog"
17041 # Check to see if the program is GNU ld. I'd rather use --version,
17042 # but apparently some variants of GNU ld only accept -v.
17043 # Break only if it was the GNU/non-GNU ld that we prefer.
17044 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
17045 *GNU* | *'with BFD'*)
17046 test "$with_gnu_ld" != no && break
17047 ;;
17048 *)
17049 test "$with_gnu_ld" != yes && break
17050 ;;
17051 esac
17052 fi
17053 done
17054 IFS="$acl_saved_IFS"
17055 fi
17056 case $host in
17057 *-*-aix*)
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17060 #if defined __powerpc64__ || defined __LP64__
17061 int ok;
17062 #else
17063 error fail
17064 #endif
17065
17066 _ACEOF
17067 if ac_fn_c_try_compile "$LINENO"
17068 then :
17069 # The compiler produces 64-bit code. Add option '-b64' so that the
17070 # linker groks 64-bit object files.
17071 case "$acl_cv_path_LD " in
17072 *" -b64 "*) ;;
17073 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
17074 esac
17075
17076 fi
17077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17078 ;;
17079 sparc64-*-netbsd*)
17080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17081 /* end confdefs.h. */
17082 #if defined __sparcv9 || defined __arch64__
17083 int ok;
17084 #else
17085 error fail
17086 #endif
17087
17088 _ACEOF
17089 if ac_fn_c_try_compile "$LINENO"
17090 then :
17091
17092 else case e in #(
17093 e) # The compiler produces 32-bit code. Add option '-m elf32_sparc'
17094 # so that the linker groks 32-bit object files.
17095 case "$acl_cv_path_LD " in
17096 *" -m elf32_sparc "*) ;;
17097 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
17098 esac
17099 ;;
17100 esac
17101 fi
17102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17103 ;;
17104 esac
17105 ;;
17106 esac
17107 fi
17108
17109 LD="$acl_cv_path_LD"
17110 fi
17111 if test -n "$LD"; then
17112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17113 printf "%s\n" "$LD" >&6; }
17114 else
17115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17116 printf "%s\n" "no" >&6; }
17117 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17118 fi
17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17120 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
17121 if test ${acl_cv_prog_gnu_ld+y}
17122 then :
17123 printf %s "(cached) " >&6
17124 else case e in #(
17125 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
17126 case `$LD -v 2>&1 </dev/null` in
17127 *GNU* | *'with BFD'*)
17128 acl_cv_prog_gnu_ld=yes
17129 ;;
17130 *)
17131 acl_cv_prog_gnu_ld=no
17132 ;;
17133 esac ;;
17134 esac
17135 fi
17136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17137 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
17138 with_gnu_ld=$acl_cv_prog_gnu_ld
17139
17140
17141
17142
17143
17144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17145 printf %s "checking for shared library run path origin... " >&6; }
17146 if test ${acl_cv_rpath+y}
17147 then :
17148 printf %s "(cached) " >&6
17149 else case e in #(
17150 e)
17151 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17152 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17153 . ./conftest.sh
17154 rm -f ./conftest.sh
17155 acl_cv_rpath=done
17156 ;;
17157 esac
17158 fi
17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17160 printf "%s\n" "$acl_cv_rpath" >&6; }
17161 wl="$acl_cv_wl"
17162 acl_libext="$acl_cv_libext"
17163 acl_shlibext="$acl_cv_shlibext"
17164 acl_libname_spec="$acl_cv_libname_spec"
17165 acl_library_names_spec="$acl_cv_library_names_spec"
17166 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17167 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17168 acl_hardcode_direct="$acl_cv_hardcode_direct"
17169 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17170 # Check whether --enable-rpath was given.
17171 if test ${enable_rpath+y}
17172 then :
17173 enableval=$enable_rpath; :
17174 else case e in #(
17175 e) enable_rpath=yes ;;
17176 esac
17177 fi
17178
17179
17180
17181
17182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
17183 printf %s "checking 32-bit host C ABI... " >&6; }
17184 if test ${gl_cv_host_cpu_c_abi_32bit+y}
17185 then :
17186 printf %s "(cached) " >&6
17187 else case e in #(
17188 e) case "$host_cpu" in
17189
17190 # CPUs that only support a 32-bit ABI.
17191 arc \
17192 | bfin \
17193 | cris* \
17194 | csky \
17195 | epiphany \
17196 | ft32 \
17197 | h8300 \
17198 | m68k \
17199 | microblaze | microblazeel \
17200 | nds32 | nds32le | nds32be \
17201 | nios2 | nios2eb | nios2el \
17202 | or1k* \
17203 | or32 \
17204 | sh | sh1234 | sh1234elb \
17205 | tic6x \
17206 | xtensa* )
17207 gl_cv_host_cpu_c_abi_32bit=yes
17208 ;;
17209
17210 # CPUs that only support a 64-bit ABI.
17211 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
17212 | mmix )
17213 gl_cv_host_cpu_c_abi_32bit=no
17214 ;;
17215
17216 *)
17217 if test -n "$gl_cv_host_cpu_c_abi"; then
17218 case "$gl_cv_host_cpu_c_abi" in
17219 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
17220 gl_cv_host_cpu_c_abi_32bit=yes ;;
17221 x86_64 | alpha | arm64 | aarch64c | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
17222 gl_cv_host_cpu_c_abi_32bit=no ;;
17223 *)
17224 gl_cv_host_cpu_c_abi_32bit=unknown ;;
17225 esac
17226 else
17227 gl_cv_host_cpu_c_abi_32bit=unknown
17228 fi
17229 if test $gl_cv_host_cpu_c_abi_32bit = unknown; then
17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h. */
17232 int test_pointer_size[sizeof (void *) - 5];
17233
17234 _ACEOF
17235 if ac_fn_c_try_compile "$LINENO"
17236 then :
17237 gl_cv_host_cpu_c_abi_32bit=no
17238 else case e in #(
17239 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
17240 esac
17241 fi
17242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17243 fi
17244 ;;
17245 esac
17246 ;;
17247 esac
17248 fi
17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
17250 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
17251
17252 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
17253
17254
17255
17256
17257
17258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
17259 printf %s "checking for ELF binary format... " >&6; }
17260 if test ${gl_cv_elf+y}
17261 then :
17262 printf %s "(cached) " >&6
17263 else case e in #(
17264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17266 #if defined __ELF__ || (defined __linux__ && (defined __EDG__ || defined __SUNPRO_C))
17267 Extensible Linking Format
17268 #endif
17269
17270 _ACEOF
17271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17272 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
17273 then :
17274 gl_cv_elf=yes
17275 else case e in #(
17276 e) gl_cv_elf=no ;;
17277 esac
17278 fi
17279 rm -rf conftest*
17280
17281 ;;
17282 esac
17283 fi
17284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
17285 printf "%s\n" "$gl_cv_elf" >&6; }
17286 if test $gl_cv_elf = yes; then
17287 # Extract the ELF class of a file (5th byte) in decimal.
17288 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
17289 if od -A x < /dev/null >/dev/null 2>/dev/null; then
17290 # Use POSIX od.
17291 func_elfclass ()
17292 {
17293 od -A n -t d1 -j 4 -N 1
17294 }
17295 else
17296 # Use BSD hexdump.
17297 func_elfclass ()
17298 {
17299 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
17300 echo
17301 }
17302 fi
17303 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
17304 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
17305 # not 1 or 2.
17306 case $HOST_CPU_C_ABI_32BIT in
17307 yes)
17308 # 32-bit ABI.
17309 acl_is_expected_elfclass ()
17310 {
17311 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
17312 }
17313 ;;
17314 no)
17315 # 64-bit ABI.
17316 acl_is_expected_elfclass ()
17317 {
17318 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
17319 }
17320 ;;
17321 *)
17322 # Unknown.
17323 acl_is_expected_elfclass ()
17324 {
17325 :
17326 }
17327 ;;
17328 esac
17329 else
17330 acl_is_expected_elfclass ()
17331 {
17332 :
17333 }
17334 fi
17335
17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
17337 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
17338 if test ${acl_cv_libdirstems+y}
17339 then :
17340 printf %s "(cached) " >&6
17341 else case e in #(
17342 e) acl_libdirstem=lib
17343 acl_libdirstem2=
17344 acl_libdirstem3=
17345 case "$host_os" in
17346 solaris*)
17347 if test $HOST_CPU_C_ABI_32BIT = no; then
17348 acl_libdirstem2=lib/64
17349 case "$host_cpu" in
17350 sparc*) acl_libdirstem3=lib/sparcv9 ;;
17351 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
17352 esac
17353 fi
17354 ;;
17355 netbsd*)
17356 if test $HOST_CPU_C_ABI_32BIT != no; then
17357 case "$host_cpu" in
17358 sparc*) acl_libdirstem2=lib/sparc ;;
17359 esac
17360 fi
17361 ;;
17362 *)
17363 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
17364 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17365 if test $HOST_CPU_C_ABI_32BIT != no; then
17366 # 32-bit or unknown ABI.
17367 if test -d /usr/lib32; then
17368 acl_libdirstem2=lib32
17369 fi
17370 fi
17371 if test $HOST_CPU_C_ABI_32BIT != yes; then
17372 # 64-bit or unknown ABI.
17373 if test -d /usr/lib64; then
17374 acl_libdirstem3=lib64
17375 fi
17376 fi
17377 if test -n "$searchpath"; then
17378 acl_saved_IFS="${IFS= }"; IFS=":"
17379 for searchdir in $searchpath; do
17380 if test -d "$searchdir"; then
17381 case "$searchdir" in
17382 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
17383 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
17384 */../ | */.. )
17385 # Better ignore directories of this form. They are misleading.
17386 ;;
17387 *) searchdir=`cd "$searchdir" && pwd`
17388 case "$searchdir" in
17389 */lib32 ) acl_libdirstem2=lib32 ;;
17390 */lib64 ) acl_libdirstem3=lib64 ;;
17391 esac ;;
17392 esac
17393 fi
17394 done
17395 IFS="$acl_saved_IFS"
17396 if test $HOST_CPU_C_ABI_32BIT = yes; then
17397 # 32-bit ABI.
17398 acl_libdirstem3=
17399 fi
17400 if test $HOST_CPU_C_ABI_32BIT = no; then
17401 # 64-bit ABI.
17402 acl_libdirstem2=
17403 fi
17404 fi
17405 ;;
17406 esac
17407 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
17408 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
17409 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
17410 ;;
17411 esac
17412 fi
17413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
17414 printf "%s\n" "$acl_cv_libdirstems" >&6; }
17415 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
17416 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
17417 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429 use_additional=yes
17430
17431 acl_saved_prefix="$prefix"
17432 prefix="$acl_final_prefix"
17433 acl_saved_exec_prefix="$exec_prefix"
17434 exec_prefix="$acl_final_exec_prefix"
17435
17436 eval additional_includedir=\"$includedir\"
17437 eval additional_libdir=\"$libdir\"
17438 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17439 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17440
17441 exec_prefix="$acl_saved_exec_prefix"
17442 prefix="$acl_saved_prefix"
17443
17444
17445 # Check whether --with-libiconv-prefix was given.
17446 if test ${with_libiconv_prefix+y}
17447 then :
17448 withval=$with_libiconv_prefix;
17449 if test "X$withval" = "Xno"; then
17450 use_additional=no
17451 else
17452 if test "X$withval" = "X"; then
17453
17454 acl_saved_prefix="$prefix"
17455 prefix="$acl_final_prefix"
17456 acl_saved_exec_prefix="$exec_prefix"
17457 exec_prefix="$acl_final_exec_prefix"
17458
17459 eval additional_includedir=\"$includedir\"
17460 eval additional_libdir=\"$libdir\"
17461 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17462 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17463
17464 exec_prefix="$acl_saved_exec_prefix"
17465 prefix="$acl_saved_prefix"
17466
17467 else
17468 additional_includedir="$withval/include"
17469 additional_libdir="$withval/$acl_libdirstem"
17470 additional_libdir2="$withval/$acl_libdirstem2"
17471 additional_libdir3="$withval/$acl_libdirstem3"
17472 fi
17473 fi
17474
17475 fi
17476
17477 if test "X$additional_libdir2" = "X$additional_libdir"; then
17478 additional_libdir2=
17479 fi
17480 if test "X$additional_libdir3" = "X$additional_libdir"; then
17481 additional_libdir3=
17482 fi
17483 LIBICONV=
17484 LTLIBICONV=
17485 INCICONV=
17486 LIBICONV_PREFIX=
17487 HAVE_LIBICONV=
17488 rpathdirs=
17489 ltrpathdirs=
17490 names_already_handled=
17491 names_next_round='iconv '
17492 while test -n "$names_next_round"; do
17493 names_this_round="$names_next_round"
17494 names_next_round=
17495 for name in $names_this_round; do
17496 already_handled=
17497 for n in $names_already_handled; do
17498 if test "$n" = "$name"; then
17499 already_handled=yes
17500 break
17501 fi
17502 done
17503 if test -z "$already_handled"; then
17504 names_already_handled="$names_already_handled $name"
17505 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17506 eval value=\"\$HAVE_LIB$uppername\"
17507 if test -n "$value"; then
17508 if test "$value" = yes; then
17509 eval value=\"\$LIB$uppername\"
17510 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17511 eval value=\"\$LTLIB$uppername\"
17512 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17513 else
17514 :
17515 fi
17516 else
17517 found_dir=
17518 found_la=
17519 found_so=
17520 found_a=
17521 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17522 if test -n "$acl_shlibext"; then
17523 shrext=".$acl_shlibext" # typically: shrext=.so
17524 else
17525 shrext=
17526 fi
17527 if test $use_additional = yes; then
17528 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
17529 if test "X$found_dir" = "X"; then
17530 eval dir=\$$additional_libdir_variable
17531 if test -n "$dir"; then
17532 if test -n "$acl_shlibext"; then
17533 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
17534 found_dir="$dir"
17535 found_so="$dir/$libname$shrext"
17536 else
17537 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17538 ver=`(cd "$dir" && \
17539 for f in "$libname$shrext".*; do echo "$f"; done \
17540 | sed -e "s,^$libname$shrext\\\\.,," \
17541 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17542 | sed 1q ) 2>/dev/null`
17543 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
17544 found_dir="$dir"
17545 found_so="$dir/$libname$shrext.$ver"
17546 fi
17547 else
17548 eval library_names=\"$acl_library_names_spec\"
17549 for f in $library_names; do
17550 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
17551 found_dir="$dir"
17552 found_so="$dir/$f"
17553 break
17554 fi
17555 done
17556 fi
17557 fi
17558 fi
17559 if test "X$found_dir" = "X"; then
17560 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
17561 found_dir="$dir"
17562 found_a="$dir/$libname.$acl_libext"
17563 fi
17564 fi
17565 if test "X$found_dir" != "X"; then
17566 if test -f "$dir/$libname.la"; then
17567 found_la="$dir/$libname.la"
17568 fi
17569 fi
17570 fi
17571 fi
17572 done
17573 fi
17574 if test "X$found_dir" = "X"; then
17575 for x in $LDFLAGS $LTLIBICONV; do
17576
17577 acl_saved_prefix="$prefix"
17578 prefix="$acl_final_prefix"
17579 acl_saved_exec_prefix="$exec_prefix"
17580 exec_prefix="$acl_final_exec_prefix"
17581 eval x=\"$x\"
17582 exec_prefix="$acl_saved_exec_prefix"
17583 prefix="$acl_saved_prefix"
17584
17585 case "$x" in
17586 -L*)
17587 dir=`echo "X$x" | sed -e 's/^X-L//'`
17588 if test -n "$acl_shlibext"; then
17589 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
17590 found_dir="$dir"
17591 found_so="$dir/$libname$shrext"
17592 else
17593 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17594 ver=`(cd "$dir" && \
17595 for f in "$libname$shrext".*; do echo "$f"; done \
17596 | sed -e "s,^$libname$shrext\\\\.,," \
17597 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17598 | sed 1q ) 2>/dev/null`
17599 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
17600 found_dir="$dir"
17601 found_so="$dir/$libname$shrext.$ver"
17602 fi
17603 else
17604 eval library_names=\"$acl_library_names_spec\"
17605 for f in $library_names; do
17606 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
17607 found_dir="$dir"
17608 found_so="$dir/$f"
17609 break
17610 fi
17611 done
17612 fi
17613 fi
17614 fi
17615 if test "X$found_dir" = "X"; then
17616 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
17617 found_dir="$dir"
17618 found_a="$dir/$libname.$acl_libext"
17619 fi
17620 fi
17621 if test "X$found_dir" != "X"; then
17622 if test -f "$dir/$libname.la"; then
17623 found_la="$dir/$libname.la"
17624 fi
17625 fi
17626 ;;
17627 esac
17628 if test "X$found_dir" != "X"; then
17629 break
17630 fi
17631 done
17632 fi
17633 if test "X$found_dir" != "X"; then
17634 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17635 if test "X$found_so" != "X"; then
17636 if test "$enable_rpath" = no \
17637 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17638 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
17639 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
17640 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17641 else
17642 haveit=
17643 for x in $ltrpathdirs; do
17644 if test "X$x" = "X$found_dir"; then
17645 haveit=yes
17646 break
17647 fi
17648 done
17649 if test -z "$haveit"; then
17650 ltrpathdirs="$ltrpathdirs $found_dir"
17651 fi
17652 if test "$acl_hardcode_direct" = yes; then
17653 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17654 else
17655 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17656 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17657 haveit=
17658 for x in $rpathdirs; do
17659 if test "X$x" = "X$found_dir"; then
17660 haveit=yes
17661 break
17662 fi
17663 done
17664 if test -z "$haveit"; then
17665 rpathdirs="$rpathdirs $found_dir"
17666 fi
17667 else
17668 haveit=
17669 for x in $LDFLAGS $LIBICONV; do
17670
17671 acl_saved_prefix="$prefix"
17672 prefix="$acl_final_prefix"
17673 acl_saved_exec_prefix="$exec_prefix"
17674 exec_prefix="$acl_final_exec_prefix"
17675 eval x=\"$x\"
17676 exec_prefix="$acl_saved_exec_prefix"
17677 prefix="$acl_saved_prefix"
17678
17679 if test "X$x" = "X-L$found_dir"; then
17680 haveit=yes
17681 break
17682 fi
17683 done
17684 if test -z "$haveit"; then
17685 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17686 fi
17687 if test "$acl_hardcode_minus_L" != no; then
17688 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17689 else
17690 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17691 fi
17692 fi
17693 fi
17694 fi
17695 else
17696 if test "X$found_a" != "X"; then
17697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17698 else
17699 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17700 fi
17701 fi
17702 additional_includedir=
17703 case "$found_dir" in
17704 */$acl_libdirstem | */$acl_libdirstem/)
17705 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17706 if test "$name" = 'iconv'; then
17707 LIBICONV_PREFIX="$basedir"
17708 fi
17709 additional_includedir="$basedir/include"
17710 ;;
17711 */$acl_libdirstem2 | */$acl_libdirstem2/)
17712 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17713 if test "$name" = 'iconv'; then
17714 LIBICONV_PREFIX="$basedir"
17715 fi
17716 additional_includedir="$basedir/include"
17717 ;;
17718 */$acl_libdirstem3 | */$acl_libdirstem3/)
17719 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
17720 if test "$name" = 'iconv'; then
17721 LIBICONV_PREFIX="$basedir"
17722 fi
17723 additional_includedir="$basedir/include"
17724 ;;
17725 esac
17726 if test "X$additional_includedir" != "X"; then
17727 if test "X$additional_includedir" != "X/usr/include"; then
17728 haveit=
17729 if test "X$additional_includedir" = "X/usr/local/include"; then
17730 if test -n "$GCC"; then
17731 case $host_os in
17732 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17733 esac
17734 fi
17735 fi
17736 if test -z "$haveit"; then
17737 for x in $CPPFLAGS $INCICONV; do
17738
17739 acl_saved_prefix="$prefix"
17740 prefix="$acl_final_prefix"
17741 acl_saved_exec_prefix="$exec_prefix"
17742 exec_prefix="$acl_final_exec_prefix"
17743 eval x=\"$x\"
17744 exec_prefix="$acl_saved_exec_prefix"
17745 prefix="$acl_saved_prefix"
17746
17747 if test "X$x" = "X-I$additional_includedir"; then
17748 haveit=yes
17749 break
17750 fi
17751 done
17752 if test -z "$haveit"; then
17753 if test -d "$additional_includedir"; then
17754 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17755 fi
17756 fi
17757 fi
17758 fi
17759 fi
17760 if test -n "$found_la"; then
17761 saved_libdir="$libdir"
17762 case "$found_la" in
17763 */* | *\\*) . "$found_la" ;;
17764 *) . "./$found_la" ;;
17765 esac
17766 libdir="$saved_libdir"
17767 for dep in $dependency_libs; do
17768 case "$dep" in
17769 -L*)
17770 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17771 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
17772 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
17773 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
17774 haveit=
17775 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
17776 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
17777 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
17778 if test -n "$GCC"; then
17779 case $host_os in
17780 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17781 esac
17782 fi
17783 fi
17784 if test -z "$haveit"; then
17785 haveit=
17786 for x in $LDFLAGS $LIBICONV; do
17787
17788 acl_saved_prefix="$prefix"
17789 prefix="$acl_final_prefix"
17790 acl_saved_exec_prefix="$exec_prefix"
17791 exec_prefix="$acl_final_exec_prefix"
17792 eval x=\"$x\"
17793 exec_prefix="$acl_saved_exec_prefix"
17794 prefix="$acl_saved_prefix"
17795
17796 if test "X$x" = "X-L$dependency_libdir"; then
17797 haveit=yes
17798 break
17799 fi
17800 done
17801 if test -z "$haveit"; then
17802 if test -d "$dependency_libdir"; then
17803 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
17804 fi
17805 fi
17806 haveit=
17807 for x in $LDFLAGS $LTLIBICONV; do
17808
17809 acl_saved_prefix="$prefix"
17810 prefix="$acl_final_prefix"
17811 acl_saved_exec_prefix="$exec_prefix"
17812 exec_prefix="$acl_final_exec_prefix"
17813 eval x=\"$x\"
17814 exec_prefix="$acl_saved_exec_prefix"
17815 prefix="$acl_saved_prefix"
17816
17817 if test "X$x" = "X-L$dependency_libdir"; then
17818 haveit=yes
17819 break
17820 fi
17821 done
17822 if test -z "$haveit"; then
17823 if test -d "$dependency_libdir"; then
17824 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
17825 fi
17826 fi
17827 fi
17828 fi
17829 ;;
17830 -R*)
17831 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17832 if test "$enable_rpath" != no; then
17833 haveit=
17834 for x in $rpathdirs; do
17835 if test "X$x" = "X$dir"; then
17836 haveit=yes
17837 break
17838 fi
17839 done
17840 if test -z "$haveit"; then
17841 rpathdirs="$rpathdirs $dir"
17842 fi
17843 haveit=
17844 for x in $ltrpathdirs; do
17845 if test "X$x" = "X$dir"; then
17846 haveit=yes
17847 break
17848 fi
17849 done
17850 if test -z "$haveit"; then
17851 ltrpathdirs="$ltrpathdirs $dir"
17852 fi
17853 fi
17854 ;;
17855 -l*)
17856 dep=`echo "X$dep" | sed -e 's/^X-l//'`
17857 if test "X$dep" != Xc \
17858 || case $host_os in
17859 linux* | gnu* | k*bsd*-gnu) false ;;
17860 *) true ;;
17861 esac; then
17862 names_next_round="$names_next_round $dep"
17863 fi
17864 ;;
17865 *.la)
17866 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17867 ;;
17868 *)
17869 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17870 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17871 ;;
17872 esac
17873 done
17874 fi
17875 else
17876 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17877 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17878 fi
17879 fi
17880 fi
17881 done
17882 done
17883 if test "X$rpathdirs" != "X"; then
17884 if test -n "$acl_hardcode_libdir_separator"; then
17885 alldirs=
17886 for found_dir in $rpathdirs; do
17887 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17888 done
17889 acl_saved_libdir="$libdir"
17890 libdir="$alldirs"
17891 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17892 libdir="$acl_saved_libdir"
17893 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17894 else
17895 for found_dir in $rpathdirs; do
17896 acl_saved_libdir="$libdir"
17897 libdir="$found_dir"
17898 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17899 libdir="$acl_saved_libdir"
17900 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17901 done
17902 fi
17903 fi
17904 if test "X$ltrpathdirs" != "X"; then
17905 for found_dir in $ltrpathdirs; do
17906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17907 done
17908 fi
17909
17910
17911
17912
17913
17914
17915
17916 gl_sed_double_backslashes='s/\\/\\\\/g'
17917 gl_sed_escape_doublequotes='s/"/\\"/g'
17918 gl_sed_escape_for_make_1="s,\\([ \"&'();<>\\\\\`|]\\),\\\\\\1,g"
17919 gl_sed_escape_for_make_2='s,\$,\\$$,g'
17920 case `echo r | tr -d '\r'` in
17921 '') gl_tr_cr='\015' ;;
17922 *) gl_tr_cr='\r' ;;
17923 esac
17924
17925
17926 gl_saved_prefix="${prefix}"
17927 gl_saved_datarootdir="${datarootdir}"
17928 gl_saved_localedir="${localedir}"
17929 if test "X$prefix" = "XNONE"; then
17930 prefix="$ac_default_prefix"
17931 fi
17932 eval datarootdir="$datarootdir"
17933 eval localedir="$localedir"
17934
17935
17936
17937
17938
17939 gl_final_localedir="$localedir"
17940 case "$build_os" in
17941 cygwin*)
17942 case "$host_os" in
17943 mingw* | windows*)
17944 gl_final_localedir=`cygpath -w "$gl_final_localedir"` ;;
17945 esac
17946 ;;
17947 esac
17948 localedir_c=`printf '%s\n' "$gl_final_localedir" | sed -e "$gl_sed_double_backslashes" -e "$gl_sed_escape_doublequotes" | tr -d "$gl_tr_cr"`
17949 localedir_c='"'"$localedir_c"'"'
17950
17951
17952 localedir_c_make=`printf '%s\n' "$localedir_c" | sed -e "$gl_sed_escape_for_make_1" -e "$gl_sed_escape_for_make_2" | tr -d "$gl_tr_cr"`
17953 if test "$localedir_c_make" = '\"'"${gl_final_localedir}"'\"'; then
17954 localedir_c_make='\"$(localedir)\"'
17955 fi
17956
17957
17958 localedir="${gl_saved_localedir}"
17959 datarootdir="${gl_saved_datarootdir}"
17960 prefix="${gl_saved_prefix}"
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17985 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
17986 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
17987 then :
17988 printf %s "(cached) " >&6
17989 else case e in #(
17990 e) gt_saved_LIBS="$LIBS"
17991 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17993 /* end confdefs.h. */
17994 #include <CoreFoundation/CFPreferences.h>
17995 int
17996 main (void)
17997 {
17998 CFPreferencesCopyAppValue(NULL, NULL)
17999 ;
18000 return 0;
18001 }
18002 _ACEOF
18003 if ac_fn_c_try_link "$LINENO"
18004 then :
18005 gt_cv_func_CFPreferencesCopyAppValue=yes
18006 else case e in #(
18007 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
18008 esac
18009 fi
18010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18011 conftest$ac_exeext conftest.$ac_ext
18012 LIBS="$gt_saved_LIBS" ;;
18013 esac
18014 fi
18015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18016 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18017 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18018
18019 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18020
18021 fi
18022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
18023 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
18024 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
18025 then :
18026 printf %s "(cached) " >&6
18027 else case e in #(
18028 e) gt_saved_LIBS="$LIBS"
18029 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h. */
18032 #include <CoreFoundation/CFLocale.h>
18033 int
18034 main (void)
18035 {
18036 CFLocaleCopyPreferredLanguages();
18037 ;
18038 return 0;
18039 }
18040 _ACEOF
18041 if ac_fn_c_try_link "$LINENO"
18042 then :
18043 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
18044 else case e in #(
18045 e) gt_cv_func_CFLocaleCopyPreferredLanguages=no ;;
18046 esac
18047 fi
18048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18049 conftest$ac_exeext conftest.$ac_ext
18050 LIBS="$gt_saved_LIBS" ;;
18051 esac
18052 fi
18053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
18054 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
18055 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
18056
18057 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
18058
18059 fi
18060 INTL_MACOSX_LIBS=
18061 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
18062 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
18063 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
18064 fi
18065
18066
18067
18068
18069
18070
18071 LIBINTL=
18072 LTLIBINTL=
18073 POSUB=
18074
18075 case " $gt_needs " in
18076 *" need-formatstring-macros "*) gt_api_version=3 ;;
18077 *" need-ngettext "*) gt_api_version=2 ;;
18078 *) gt_api_version=1 ;;
18079 esac
18080 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
18081 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
18082
18083 if test "$USE_NLS" = "yes"; then
18084 gt_use_preinstalled_gnugettext=no
18085
18086
18087 if test $gt_api_version -ge 3; then
18088 gt_revision_test_code='
18089 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18090 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
18091 #endif
18092 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
18093 '
18094 else
18095 gt_revision_test_code=
18096 fi
18097 if test $gt_api_version -ge 2; then
18098 gt_expression_test_code=' + * ngettext ("", "", 0)'
18099 else
18100 gt_expression_test_code=
18101 fi
18102
18103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18104 printf %s "checking for GNU gettext in libc... " >&6; }
18105 if eval test \${$gt_func_gnugettext_libc+y}
18106 then :
18107 printf %s "(cached) " >&6
18108 else case e in #(
18109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h. */
18111
18112 #include <libintl.h>
18113 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18114 extern int _nl_msg_cat_cntr;
18115 extern int *_nl_domain_bindings;
18116 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
18117 #else
18118 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
18119 #endif
18120 $gt_revision_test_code
18121
18122 int
18123 main (void)
18124 {
18125
18126 bindtextdomain ("", "");
18127 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
18128
18129 ;
18130 return 0;
18131 }
18132 _ACEOF
18133 if ac_fn_c_try_link "$LINENO"
18134 then :
18135 eval "$gt_func_gnugettext_libc=yes"
18136 else case e in #(
18137 e) eval "$gt_func_gnugettext_libc=no" ;;
18138 esac
18139 fi
18140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18141 conftest$ac_exeext conftest.$ac_ext ;;
18142 esac
18143 fi
18144 eval ac_res=\$$gt_func_gnugettext_libc
18145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18146 printf "%s\n" "$ac_res" >&6; }
18147
18148 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
18149
18150
18151
18152
18153
18154 gl_saved_CPPFLAGS="$CPPFLAGS"
18155
18156 for element in $INCICONV; do
18157 haveit=
18158 for x in $CPPFLAGS; do
18159
18160 acl_saved_prefix="$prefix"
18161 prefix="$acl_final_prefix"
18162 acl_saved_exec_prefix="$exec_prefix"
18163 exec_prefix="$acl_final_exec_prefix"
18164 eval x=\"$x\"
18165 exec_prefix="$acl_saved_exec_prefix"
18166 prefix="$acl_saved_prefix"
18167
18168 if test "X$x" = "X$element"; then
18169 haveit=yes
18170 break
18171 fi
18172 done
18173 if test -z "$haveit"; then
18174 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18175 fi
18176 done
18177
18178
18179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18180 printf %s "checking for iconv... " >&6; }
18181 if test ${am_cv_func_iconv+y}
18182 then :
18183 printf %s "(cached) " >&6
18184 else case e in #(
18185 e)
18186 am_cv_func_iconv="no, consider installing GNU libiconv"
18187 am_cv_lib_iconv=no
18188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18190
18191 #include <stdlib.h>
18192 #include <iconv.h>
18193
18194 int
18195 main (void)
18196 {
18197 iconv_t cd = iconv_open("","");
18198 iconv(cd,NULL,NULL,NULL,NULL);
18199 iconv_close(cd);
18200 ;
18201 return 0;
18202 }
18203 _ACEOF
18204 if ac_fn_c_try_link "$LINENO"
18205 then :
18206 am_cv_func_iconv=yes
18207 fi
18208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18209 conftest$ac_exeext conftest.$ac_ext
18210 if test "$am_cv_func_iconv" != yes; then
18211 gl_saved_LIBS="$LIBS"
18212 LIBS="$LIBS $LIBICONV"
18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h. */
18215
18216 #include <stdlib.h>
18217 #include <iconv.h>
18218
18219 int
18220 main (void)
18221 {
18222 iconv_t cd = iconv_open("","");
18223 iconv(cd,NULL,NULL,NULL,NULL);
18224 iconv_close(cd);
18225 ;
18226 return 0;
18227 }
18228 _ACEOF
18229 if ac_fn_c_try_link "$LINENO"
18230 then :
18231 am_cv_lib_iconv=yes
18232 am_cv_func_iconv=yes
18233 fi
18234 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18235 conftest$ac_exeext conftest.$ac_ext
18236 LIBS="$gl_saved_LIBS"
18237 fi
18238 ;;
18239 esac
18240 fi
18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18242 printf "%s\n" "$am_cv_func_iconv" >&6; }
18243 if test "$am_cv_func_iconv" = yes; then
18244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18245 printf %s "checking for working iconv... " >&6; }
18246 if test ${am_cv_func_iconv_works+y}
18247 then :
18248 printf %s "(cached) " >&6
18249 else case e in #(
18250 e)
18251 gl_saved_LIBS="$LIBS"
18252 if test $am_cv_lib_iconv = yes; then
18253 LIBS="$LIBS $LIBICONV"
18254 fi
18255 am_cv_func_iconv_works=no
18256 for ac_iconv_const in '' 'const'; do
18257 if test "$cross_compiling" = yes
18258 then :
18259 case "$host_os" in
18260 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18261 *) am_cv_func_iconv_works="guessing yes" ;;
18262 esac
18263 else case e in #(
18264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266
18267 #include <iconv.h>
18268 #include <string.h>
18269
18270 #ifndef ICONV_CONST
18271 # define ICONV_CONST $ac_iconv_const
18272 #endif
18273
18274 int
18275 main (void)
18276 {
18277 int result = 0;
18278 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
18279 successful returns. This is even documented in
18280 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
18281 {
18282 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18283 if (cd_utf8_to_88591 != (iconv_t)(-1))
18284 {
18285 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
18286 char buf[10];
18287 ICONV_CONST char *inptr = input;
18288 size_t inbytesleft = strlen (input);
18289 char *outptr = buf;
18290 size_t outbytesleft = sizeof (buf);
18291 size_t res = iconv (cd_utf8_to_88591,
18292 &inptr, &inbytesleft,
18293 &outptr, &outbytesleft);
18294 if (res == 0)
18295 result |= 1;
18296 iconv_close (cd_utf8_to_88591);
18297 }
18298 }
18299 /* Test against macOS 14.4 bug: Failures are not distinguishable from
18300 successful returns.
18301 POSIX:2018 says: "The iconv() function shall ... return the number of
18302 non-identical conversions performed."
18303 But here, the conversion always does transliteration (the suffixes
18304 "//TRANSLIT" and "//IGNORE" have no effect, nor does iconvctl()) and
18305 does not report when it does a non-identical conversion. */
18306 {
18307 iconv_t cd_utf8_to_88591 = iconv_open ("ISO-8859-1", "UTF-8");
18308 if (cd_utf8_to_88591 != (iconv_t)(-1))
18309 {
18310 static ICONV_CONST char input[] = "\305\202"; /* LATIN SMALL LETTER L WITH STROKE */
18311 char buf[10];
18312 ICONV_CONST char *inptr = input;
18313 size_t inbytesleft = strlen (input);
18314 char *outptr = buf;
18315 size_t outbytesleft = sizeof (buf);
18316 size_t res = iconv (cd_utf8_to_88591,
18317 &inptr, &inbytesleft,
18318 &outptr, &outbytesleft);
18319 /* Here:
18320 With glibc, GNU libiconv (including macOS up to 13): res == (size_t)-1, errno == EILSEQ.
18321 With musl libc, NetBSD 10, Solaris 11: res == 1.
18322 With macOS 14.4: res == 0, output is "l". */
18323 if (res == 0)
18324 result |= 2;
18325 iconv_close (cd_utf8_to_88591);
18326 }
18327 }
18328 /* Test against Solaris 10 bug: Failures are not distinguishable from
18329 successful returns. */
18330 {
18331 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
18332 if (cd_ascii_to_88591 != (iconv_t)(-1))
18333 {
18334 static ICONV_CONST char input[] = "\263";
18335 char buf[10];
18336 ICONV_CONST char *inptr = input;
18337 size_t inbytesleft = strlen (input);
18338 char *outptr = buf;
18339 size_t outbytesleft = sizeof (buf);
18340 size_t res = iconv (cd_ascii_to_88591,
18341 &inptr, &inbytesleft,
18342 &outptr, &outbytesleft);
18343 if (res == 0)
18344 result |= 4;
18345 iconv_close (cd_ascii_to_88591);
18346 }
18347 }
18348 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
18349 {
18350 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
18351 if (cd_88591_to_utf8 != (iconv_t)(-1))
18352 {
18353 static ICONV_CONST char input[] = "\304";
18354 static char buf[2] = { (char)0xDE, (char)0xAD };
18355 ICONV_CONST char *inptr = input;
18356 size_t inbytesleft = 1;
18357 char *outptr = buf;
18358 size_t outbytesleft = 1;
18359 size_t res = iconv (cd_88591_to_utf8,
18360 &inptr, &inbytesleft,
18361 &outptr, &outbytesleft);
18362 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
18363 result |= 8;
18364 iconv_close (cd_88591_to_utf8);
18365 }
18366 }
18367 #if 0 /* This bug could be worked around by the caller. */
18368 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
18369 {
18370 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18371 if (cd_88591_to_utf8 != (iconv_t)(-1))
18372 {
18373 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18374 char buf[50];
18375 ICONV_CONST char *inptr = input;
18376 size_t inbytesleft = strlen (input);
18377 char *outptr = buf;
18378 size_t outbytesleft = sizeof (buf);
18379 size_t res = iconv (cd_88591_to_utf8,
18380 &inptr, &inbytesleft,
18381 &outptr, &outbytesleft);
18382 if ((int)res > 0)
18383 result |= 16;
18384 iconv_close (cd_88591_to_utf8);
18385 }
18386 }
18387 #endif
18388 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18389 provided. */
18390 {
18391 /* Try standardized names. */
18392 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
18393 /* Try IRIX, OSF/1 names. */
18394 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
18395 /* Try AIX names. */
18396 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
18397 /* Try HP-UX names. */
18398 iconv_t cd4 = iconv_open ("utf8", "eucJP");
18399 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
18400 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
18401 result |= 32;
18402 if (cd1 != (iconv_t)(-1))
18403 iconv_close (cd1);
18404 if (cd2 != (iconv_t)(-1))
18405 iconv_close (cd2);
18406 if (cd3 != (iconv_t)(-1))
18407 iconv_close (cd3);
18408 if (cd4 != (iconv_t)(-1))
18409 iconv_close (cd4);
18410 }
18411 return result;
18412
18413 ;
18414 return 0;
18415 }
18416 _ACEOF
18417 if ac_fn_c_try_run "$LINENO"
18418 then :
18419 am_cv_func_iconv_works=yes
18420 fi
18421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18422 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18423 esac
18424 fi
18425
18426 test "$am_cv_func_iconv_works" = no || break
18427 done
18428 LIBS="$gl_saved_LIBS"
18429 ;;
18430 esac
18431 fi
18432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18433 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
18434 case "$am_cv_func_iconv_works" in
18435 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18436 *) am_func_iconv=yes ;;
18437 esac
18438 else
18439 am_func_iconv=no am_cv_lib_iconv=no
18440 fi
18441 if test "$am_func_iconv" = yes; then
18442
18443 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
18444
18445 fi
18446 if test "$am_cv_lib_iconv" = yes; then
18447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18448 printf %s "checking how to link with libiconv... " >&6; }
18449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18450 printf "%s\n" "$LIBICONV" >&6; }
18451 else
18452 CPPFLAGS="$gl_saved_CPPFLAGS"
18453 LIBICONV=
18454 LTLIBICONV=
18455 fi
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466 use_additional=yes
18467
18468 acl_saved_prefix="$prefix"
18469 prefix="$acl_final_prefix"
18470 acl_saved_exec_prefix="$exec_prefix"
18471 exec_prefix="$acl_final_exec_prefix"
18472
18473 eval additional_includedir=\"$includedir\"
18474 eval additional_libdir=\"$libdir\"
18475 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18476 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18477
18478 exec_prefix="$acl_saved_exec_prefix"
18479 prefix="$acl_saved_prefix"
18480
18481
18482 # Check whether --with-libintl-prefix was given.
18483 if test ${with_libintl_prefix+y}
18484 then :
18485 withval=$with_libintl_prefix;
18486 if test "X$withval" = "Xno"; then
18487 use_additional=no
18488 else
18489 if test "X$withval" = "X"; then
18490
18491 acl_saved_prefix="$prefix"
18492 prefix="$acl_final_prefix"
18493 acl_saved_exec_prefix="$exec_prefix"
18494 exec_prefix="$acl_final_exec_prefix"
18495
18496 eval additional_includedir=\"$includedir\"
18497 eval additional_libdir=\"$libdir\"
18498 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18499 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18500
18501 exec_prefix="$acl_saved_exec_prefix"
18502 prefix="$acl_saved_prefix"
18503
18504 else
18505 additional_includedir="$withval/include"
18506 additional_libdir="$withval/$acl_libdirstem"
18507 additional_libdir2="$withval/$acl_libdirstem2"
18508 additional_libdir3="$withval/$acl_libdirstem3"
18509 fi
18510 fi
18511
18512 fi
18513
18514 if test "X$additional_libdir2" = "X$additional_libdir"; then
18515 additional_libdir2=
18516 fi
18517 if test "X$additional_libdir3" = "X$additional_libdir"; then
18518 additional_libdir3=
18519 fi
18520 LIBINTL=
18521 LTLIBINTL=
18522 INCINTL=
18523 LIBINTL_PREFIX=
18524 HAVE_LIBINTL=
18525 rpathdirs=
18526 ltrpathdirs=
18527 names_already_handled=
18528 names_next_round='intl '
18529 while test -n "$names_next_round"; do
18530 names_this_round="$names_next_round"
18531 names_next_round=
18532 for name in $names_this_round; do
18533 already_handled=
18534 for n in $names_already_handled; do
18535 if test "$n" = "$name"; then
18536 already_handled=yes
18537 break
18538 fi
18539 done
18540 if test -z "$already_handled"; then
18541 names_already_handled="$names_already_handled $name"
18542 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18543 eval value=\"\$HAVE_LIB$uppername\"
18544 if test -n "$value"; then
18545 if test "$value" = yes; then
18546 eval value=\"\$LIB$uppername\"
18547 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18548 eval value=\"\$LTLIB$uppername\"
18549 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18550 else
18551 :
18552 fi
18553 else
18554 found_dir=
18555 found_la=
18556 found_so=
18557 found_a=
18558 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18559 if test -n "$acl_shlibext"; then
18560 shrext=".$acl_shlibext" # typically: shrext=.so
18561 else
18562 shrext=
18563 fi
18564 if test $use_additional = yes; then
18565 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
18566 if test "X$found_dir" = "X"; then
18567 eval dir=\$$additional_libdir_variable
18568 if test -n "$dir"; then
18569 if test -n "$acl_shlibext"; then
18570 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18571 found_dir="$dir"
18572 found_so="$dir/$libname$shrext"
18573 else
18574 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18575 ver=`(cd "$dir" && \
18576 for f in "$libname$shrext".*; do echo "$f"; done \
18577 | sed -e "s,^$libname$shrext\\\\.,," \
18578 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18579 | sed 1q ) 2>/dev/null`
18580 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18581 found_dir="$dir"
18582 found_so="$dir/$libname$shrext.$ver"
18583 fi
18584 else
18585 eval library_names=\"$acl_library_names_spec\"
18586 for f in $library_names; do
18587 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
18588 found_dir="$dir"
18589 found_so="$dir/$f"
18590 break
18591 fi
18592 done
18593 fi
18594 fi
18595 fi
18596 if test "X$found_dir" = "X"; then
18597 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
18598 found_dir="$dir"
18599 found_a="$dir/$libname.$acl_libext"
18600 fi
18601 fi
18602 if test "X$found_dir" != "X"; then
18603 if test -f "$dir/$libname.la"; then
18604 found_la="$dir/$libname.la"
18605 fi
18606 fi
18607 fi
18608 fi
18609 done
18610 fi
18611 if test "X$found_dir" = "X"; then
18612 for x in $LDFLAGS $LTLIBINTL; do
18613
18614 acl_saved_prefix="$prefix"
18615 prefix="$acl_final_prefix"
18616 acl_saved_exec_prefix="$exec_prefix"
18617 exec_prefix="$acl_final_exec_prefix"
18618 eval x=\"$x\"
18619 exec_prefix="$acl_saved_exec_prefix"
18620 prefix="$acl_saved_prefix"
18621
18622 case "$x" in
18623 -L*)
18624 dir=`echo "X$x" | sed -e 's/^X-L//'`
18625 if test -n "$acl_shlibext"; then
18626 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18627 found_dir="$dir"
18628 found_so="$dir/$libname$shrext"
18629 else
18630 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18631 ver=`(cd "$dir" && \
18632 for f in "$libname$shrext".*; do echo "$f"; done \
18633 | sed -e "s,^$libname$shrext\\\\.,," \
18634 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18635 | sed 1q ) 2>/dev/null`
18636 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18637 found_dir="$dir"
18638 found_so="$dir/$libname$shrext.$ver"
18639 fi
18640 else
18641 eval library_names=\"$acl_library_names_spec\"
18642 for f in $library_names; do
18643 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
18644 found_dir="$dir"
18645 found_so="$dir/$f"
18646 break
18647 fi
18648 done
18649 fi
18650 fi
18651 fi
18652 if test "X$found_dir" = "X"; then
18653 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
18654 found_dir="$dir"
18655 found_a="$dir/$libname.$acl_libext"
18656 fi
18657 fi
18658 if test "X$found_dir" != "X"; then
18659 if test -f "$dir/$libname.la"; then
18660 found_la="$dir/$libname.la"
18661 fi
18662 fi
18663 ;;
18664 esac
18665 if test "X$found_dir" != "X"; then
18666 break
18667 fi
18668 done
18669 fi
18670 if test "X$found_dir" != "X"; then
18671 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18672 if test "X$found_so" != "X"; then
18673 if test "$enable_rpath" = no \
18674 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18675 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
18676 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
18677 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18678 else
18679 haveit=
18680 for x in $ltrpathdirs; do
18681 if test "X$x" = "X$found_dir"; then
18682 haveit=yes
18683 break
18684 fi
18685 done
18686 if test -z "$haveit"; then
18687 ltrpathdirs="$ltrpathdirs $found_dir"
18688 fi
18689 if test "$acl_hardcode_direct" = yes; then
18690 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18691 else
18692 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18693 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18694 haveit=
18695 for x in $rpathdirs; do
18696 if test "X$x" = "X$found_dir"; then
18697 haveit=yes
18698 break
18699 fi
18700 done
18701 if test -z "$haveit"; then
18702 rpathdirs="$rpathdirs $found_dir"
18703 fi
18704 else
18705 haveit=
18706 for x in $LDFLAGS $LIBINTL; do
18707
18708 acl_saved_prefix="$prefix"
18709 prefix="$acl_final_prefix"
18710 acl_saved_exec_prefix="$exec_prefix"
18711 exec_prefix="$acl_final_exec_prefix"
18712 eval x=\"$x\"
18713 exec_prefix="$acl_saved_exec_prefix"
18714 prefix="$acl_saved_prefix"
18715
18716 if test "X$x" = "X-L$found_dir"; then
18717 haveit=yes
18718 break
18719 fi
18720 done
18721 if test -z "$haveit"; then
18722 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18723 fi
18724 if test "$acl_hardcode_minus_L" != no; then
18725 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18726 else
18727 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18728 fi
18729 fi
18730 fi
18731 fi
18732 else
18733 if test "X$found_a" != "X"; then
18734 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18735 else
18736 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18737 fi
18738 fi
18739 additional_includedir=
18740 case "$found_dir" in
18741 */$acl_libdirstem | */$acl_libdirstem/)
18742 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18743 if test "$name" = 'intl'; then
18744 LIBINTL_PREFIX="$basedir"
18745 fi
18746 additional_includedir="$basedir/include"
18747 ;;
18748 */$acl_libdirstem2 | */$acl_libdirstem2/)
18749 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18750 if test "$name" = 'intl'; then
18751 LIBINTL_PREFIX="$basedir"
18752 fi
18753 additional_includedir="$basedir/include"
18754 ;;
18755 */$acl_libdirstem3 | */$acl_libdirstem3/)
18756 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
18757 if test "$name" = 'intl'; then
18758 LIBINTL_PREFIX="$basedir"
18759 fi
18760 additional_includedir="$basedir/include"
18761 ;;
18762 esac
18763 if test "X$additional_includedir" != "X"; then
18764 if test "X$additional_includedir" != "X/usr/include"; then
18765 haveit=
18766 if test "X$additional_includedir" = "X/usr/local/include"; then
18767 if test -n "$GCC"; then
18768 case $host_os in
18769 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18770 esac
18771 fi
18772 fi
18773 if test -z "$haveit"; then
18774 for x in $CPPFLAGS $INCINTL; do
18775
18776 acl_saved_prefix="$prefix"
18777 prefix="$acl_final_prefix"
18778 acl_saved_exec_prefix="$exec_prefix"
18779 exec_prefix="$acl_final_exec_prefix"
18780 eval x=\"$x\"
18781 exec_prefix="$acl_saved_exec_prefix"
18782 prefix="$acl_saved_prefix"
18783
18784 if test "X$x" = "X-I$additional_includedir"; then
18785 haveit=yes
18786 break
18787 fi
18788 done
18789 if test -z "$haveit"; then
18790 if test -d "$additional_includedir"; then
18791 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18792 fi
18793 fi
18794 fi
18795 fi
18796 fi
18797 if test -n "$found_la"; then
18798 saved_libdir="$libdir"
18799 case "$found_la" in
18800 */* | *\\*) . "$found_la" ;;
18801 *) . "./$found_la" ;;
18802 esac
18803 libdir="$saved_libdir"
18804 for dep in $dependency_libs; do
18805 case "$dep" in
18806 -L*)
18807 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18808 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
18809 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
18810 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
18811 haveit=
18812 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
18813 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
18814 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
18815 if test -n "$GCC"; then
18816 case $host_os in
18817 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18818 esac
18819 fi
18820 fi
18821 if test -z "$haveit"; then
18822 haveit=
18823 for x in $LDFLAGS $LIBINTL; do
18824
18825 acl_saved_prefix="$prefix"
18826 prefix="$acl_final_prefix"
18827 acl_saved_exec_prefix="$exec_prefix"
18828 exec_prefix="$acl_final_exec_prefix"
18829 eval x=\"$x\"
18830 exec_prefix="$acl_saved_exec_prefix"
18831 prefix="$acl_saved_prefix"
18832
18833 if test "X$x" = "X-L$dependency_libdir"; then
18834 haveit=yes
18835 break
18836 fi
18837 done
18838 if test -z "$haveit"; then
18839 if test -d "$dependency_libdir"; then
18840 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
18841 fi
18842 fi
18843 haveit=
18844 for x in $LDFLAGS $LTLIBINTL; do
18845
18846 acl_saved_prefix="$prefix"
18847 prefix="$acl_final_prefix"
18848 acl_saved_exec_prefix="$exec_prefix"
18849 exec_prefix="$acl_final_exec_prefix"
18850 eval x=\"$x\"
18851 exec_prefix="$acl_saved_exec_prefix"
18852 prefix="$acl_saved_prefix"
18853
18854 if test "X$x" = "X-L$dependency_libdir"; then
18855 haveit=yes
18856 break
18857 fi
18858 done
18859 if test -z "$haveit"; then
18860 if test -d "$dependency_libdir"; then
18861 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
18862 fi
18863 fi
18864 fi
18865 fi
18866 ;;
18867 -R*)
18868 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18869 if test "$enable_rpath" != no; then
18870 haveit=
18871 for x in $rpathdirs; do
18872 if test "X$x" = "X$dir"; then
18873 haveit=yes
18874 break
18875 fi
18876 done
18877 if test -z "$haveit"; then
18878 rpathdirs="$rpathdirs $dir"
18879 fi
18880 haveit=
18881 for x in $ltrpathdirs; do
18882 if test "X$x" = "X$dir"; then
18883 haveit=yes
18884 break
18885 fi
18886 done
18887 if test -z "$haveit"; then
18888 ltrpathdirs="$ltrpathdirs $dir"
18889 fi
18890 fi
18891 ;;
18892 -l*)
18893 dep=`echo "X$dep" | sed -e 's/^X-l//'`
18894 if test "X$dep" != Xc \
18895 || case $host_os in
18896 linux* | gnu* | k*bsd*-gnu) false ;;
18897 *) true ;;
18898 esac; then
18899 names_next_round="$names_next_round $dep"
18900 fi
18901 ;;
18902 *.la)
18903 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18904 ;;
18905 *)
18906 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18907 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18908 ;;
18909 esac
18910 done
18911 fi
18912 else
18913 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18914 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18915 fi
18916 fi
18917 fi
18918 done
18919 done
18920 if test "X$rpathdirs" != "X"; then
18921 if test -n "$acl_hardcode_libdir_separator"; then
18922 alldirs=
18923 for found_dir in $rpathdirs; do
18924 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18925 done
18926 acl_saved_libdir="$libdir"
18927 libdir="$alldirs"
18928 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18929 libdir="$acl_saved_libdir"
18930 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18931 else
18932 for found_dir in $rpathdirs; do
18933 acl_saved_libdir="$libdir"
18934 libdir="$found_dir"
18935 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18936 libdir="$acl_saved_libdir"
18937 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18938 done
18939 fi
18940 fi
18941 if test "X$ltrpathdirs" != "X"; then
18942 for found_dir in $ltrpathdirs; do
18943 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18944 done
18945 fi
18946
18947
18948
18949
18950
18951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18952 printf %s "checking for GNU gettext in libintl... " >&6; }
18953 if eval test \${$gt_func_gnugettext_libintl+y}
18954 then :
18955 printf %s "(cached) " >&6
18956 else case e in #(
18957 e) gt_saved_CPPFLAGS="$CPPFLAGS"
18958 CPPFLAGS="$CPPFLAGS $INCINTL"
18959 gt_saved_LIBS="$LIBS"
18960 LIBS="$LIBS $LIBINTL"
18961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962 /* end confdefs.h. */
18963
18964 #include <libintl.h>
18965 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18966 extern int _nl_msg_cat_cntr;
18967 extern
18968 #ifdef __cplusplus
18969 "C"
18970 #endif
18971 const char *_nl_expand_alias (const char *);
18972 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
18973 #else
18974 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
18975 #endif
18976 $gt_revision_test_code
18977
18978 int
18979 main (void)
18980 {
18981
18982 bindtextdomain ("", "");
18983 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
18984
18985 ;
18986 return 0;
18987 }
18988 _ACEOF
18989 if ac_fn_c_try_link "$LINENO"
18990 then :
18991 eval "$gt_func_gnugettext_libintl=yes"
18992 else case e in #(
18993 e) eval "$gt_func_gnugettext_libintl=no" ;;
18994 esac
18995 fi
18996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18997 conftest$ac_exeext conftest.$ac_ext
18998 gt_LIBINTL_EXTRA="$INTL_MACOSX_LIBS"
18999
19000 case "$host_os" in
19001 aix*) gt_LIBINTL_EXTRA="-lpthread" ;;
19002 esac
19003 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } \
19004 && { test -n "$LIBICONV" || test -n "$gt_LIBINTL_EXTRA"; }; then
19005 LIBS="$LIBS $LIBICONV $gt_LIBINTL_EXTRA"
19006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19007 /* end confdefs.h. */
19008
19009 #include <libintl.h>
19010 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19011 extern int _nl_msg_cat_cntr;
19012 extern
19013 #ifdef __cplusplus
19014 "C"
19015 #endif
19016 const char *_nl_expand_alias (const char *);
19017 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
19018 #else
19019 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19020 #endif
19021 $gt_revision_test_code
19022
19023 int
19024 main (void)
19025 {
19026
19027 bindtextdomain ("", "");
19028 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19029
19030 ;
19031 return 0;
19032 }
19033 _ACEOF
19034 if ac_fn_c_try_link "$LINENO"
19035 then :
19036 LIBINTL="$LIBINTL $LIBICONV $gt_LIBINTL_EXTRA"
19037 LTLIBINTL="$LTLIBINTL $LTLIBICONV $gt_LIBINTL_EXTRA"
19038 eval "$gt_func_gnugettext_libintl=yes"
19039
19040 fi
19041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19042 conftest$ac_exeext conftest.$ac_ext
19043 fi
19044 CPPFLAGS="$gt_saved_CPPFLAGS"
19045 LIBS="$gt_saved_LIBS" ;;
19046 esac
19047 fi
19048 eval ac_res=\$$gt_func_gnugettext_libintl
19049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19050 printf "%s\n" "$ac_res" >&6; }
19051 fi
19052
19053 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
19054 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
19055 && test "$PACKAGE" != gettext-runtime \
19056 && test "$PACKAGE" != gettext-tools \
19057 && test "$PACKAGE" != libintl; }; then
19058 gt_use_preinstalled_gnugettext=yes
19059 else
19060 LIBINTL=
19061 LTLIBINTL=
19062 INCINTL=
19063 fi
19064
19065
19066
19067 if test -n "$INTL_MACOSX_LIBS"; then
19068 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19069 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19070 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
19071 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
19072 fi
19073 fi
19074
19075 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19076 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19077
19078 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
19079
19080 else
19081 USE_NLS=no
19082 fi
19083 fi
19084
19085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
19086 printf %s "checking whether to use NLS... " >&6; }
19087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19088 printf "%s\n" "$USE_NLS" >&6; }
19089 if test "$USE_NLS" = "yes"; then
19090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
19091 printf %s "checking where the gettext function comes from... " >&6; }
19092 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19093 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19094 gt_source="external libintl"
19095 else
19096 gt_source="libc"
19097 fi
19098 else
19099 gt_source="included intl directory"
19100 fi
19101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
19102 printf "%s\n" "$gt_source" >&6; }
19103 fi
19104
19105 if test "$USE_NLS" = "yes"; then
19106
19107 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19108 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
19110 printf %s "checking how to link with libintl... " >&6; }
19111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
19112 printf "%s\n" "$LIBINTL" >&6; }
19113
19114 for element in $INCINTL; do
19115 haveit=
19116 for x in $CPPFLAGS; do
19117
19118 acl_saved_prefix="$prefix"
19119 prefix="$acl_final_prefix"
19120 acl_saved_exec_prefix="$exec_prefix"
19121 exec_prefix="$acl_final_exec_prefix"
19122 eval x=\"$x\"
19123 exec_prefix="$acl_saved_exec_prefix"
19124 prefix="$acl_saved_prefix"
19125
19126 if test "X$x" = "X$element"; then
19127 haveit=yes
19128 break
19129 fi
19130 done
19131 if test -z "$haveit"; then
19132 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19133 fi
19134 done
19135
19136 fi
19137
19138
19139 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
19140
19141
19142 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
19143
19144 fi
19145
19146 POSUB=po
19147 fi
19148
19149
19150
19151
19152 INTLLIBS="$LIBINTL"
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165 GETTEXT_PACKAGE=NetworkManager-l2tp
19166
19167
19168 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
19169
19170
19171 # gio-unix will require glib and gio
19172
19173 pkg_failed=no
19174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gio-unix-2.0 >= 2.40" >&5
19175 printf %s "checking for gio-unix-2.0 >= 2.40... " >&6; }
19176
19177 if test -n "$GLIB_CFLAGS"; then
19178 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19179 elif test -n "$PKG_CONFIG"; then
19180 if test -n "$PKG_CONFIG" && \
19181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0 >= 2.40\""; } >&5
19182 ($PKG_CONFIG --exists --print-errors "gio-unix-2.0 >= 2.40") 2>&5
19183 ac_status=$?
19184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19185 test $ac_status = 0; }; then
19186 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0 >= 2.40" 2>/dev/null`
19187 test "x$?" != "x0" && pkg_failed=yes
19188 else
19189 pkg_failed=yes
19190 fi
19191 else
19192 pkg_failed=untried
19193 fi
19194 if test -n "$GLIB_LIBS"; then
19195 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19196 elif test -n "$PKG_CONFIG"; then
19197 if test -n "$PKG_CONFIG" && \
19198 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0 >= 2.40\""; } >&5
19199 ($PKG_CONFIG --exists --print-errors "gio-unix-2.0 >= 2.40") 2>&5
19200 ac_status=$?
19201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19202 test $ac_status = 0; }; then
19203 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0 >= 2.40" 2>/dev/null`
19204 test "x$?" != "x0" && pkg_failed=yes
19205 else
19206 pkg_failed=yes
19207 fi
19208 else
19209 pkg_failed=untried
19210 fi
19211
19212
19213
19214 if test $pkg_failed = yes; then
19215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19216 printf "%s\n" "no" >&6; }
19217
19218 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19219 _pkg_short_errors_supported=yes
19220 else
19221 _pkg_short_errors_supported=no
19222 fi
19223 if test $_pkg_short_errors_supported = yes; then
19224 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-unix-2.0 >= 2.40" 2>&1`
19225 else
19226 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-unix-2.0 >= 2.40" 2>&1`
19227 fi
19228 # Put the nasty error message in config.log where it belongs
19229 echo "$GLIB_PKG_ERRORS" >&5
19230
19231 as_fn_error $? "Package requirements (gio-unix-2.0 >= 2.40) were not met:
19232
19233 $GLIB_PKG_ERRORS
19234
19235 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19236 installed software in a non-standard prefix.
19237
19238 Alternatively, you may set the environment variables GLIB_CFLAGS
19239 and GLIB_LIBS to avoid the need to call pkg-config.
19240 See the pkg-config man page for more details." "$LINENO" 5
19241 elif test $pkg_failed = untried; then
19242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19243 printf "%s\n" "no" >&6; }
19244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19245 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19246 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19247 is in your PATH or set the PKG_CONFIG environment variable to the full
19248 path to pkg-config.
19249
19250 Alternatively, you may set the environment variables GLIB_CFLAGS
19251 and GLIB_LIBS to avoid the need to call pkg-config.
19252 See the pkg-config man page for more details.
19253
19254 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19255 See 'config.log' for more details" "$LINENO" 5; }
19256 else
19257 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19258 GLIB_LIBS=$pkg_cv_GLIB_LIBS
19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19260 printf "%s\n" "yes" >&6; }
19261
19262 fi
19263 GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40"
19264 GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40"
19265
19266 if test x"$with_gnome" != xno || test x"$with_gtk4" != xno; then
19267
19268 pkg_failed=no
19269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsecret-1 >= 0.18" >&5
19270 printf %s "checking for libsecret-1 >= 0.18... " >&6; }
19271
19272 if test -n "$LIBSECRET_CFLAGS"; then
19273 pkg_cv_LIBSECRET_CFLAGS="$LIBSECRET_CFLAGS"
19274 elif test -n "$PKG_CONFIG"; then
19275 if test -n "$PKG_CONFIG" && \
19276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1 >= 0.18\""; } >&5
19277 ($PKG_CONFIG --exists --print-errors "libsecret-1 >= 0.18") 2>&5
19278 ac_status=$?
19279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19280 test $ac_status = 0; }; then
19281 pkg_cv_LIBSECRET_CFLAGS=`$PKG_CONFIG --cflags "libsecret-1 >= 0.18" 2>/dev/null`
19282 test "x$?" != "x0" && pkg_failed=yes
19283 else
19284 pkg_failed=yes
19285 fi
19286 else
19287 pkg_failed=untried
19288 fi
19289 if test -n "$LIBSECRET_LIBS"; then
19290 pkg_cv_LIBSECRET_LIBS="$LIBSECRET_LIBS"
19291 elif test -n "$PKG_CONFIG"; then
19292 if test -n "$PKG_CONFIG" && \
19293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1 >= 0.18\""; } >&5
19294 ($PKG_CONFIG --exists --print-errors "libsecret-1 >= 0.18") 2>&5
19295 ac_status=$?
19296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19297 test $ac_status = 0; }; then
19298 pkg_cv_LIBSECRET_LIBS=`$PKG_CONFIG --libs "libsecret-1 >= 0.18" 2>/dev/null`
19299 test "x$?" != "x0" && pkg_failed=yes
19300 else
19301 pkg_failed=yes
19302 fi
19303 else
19304 pkg_failed=untried
19305 fi
19306
19307
19308
19309 if test $pkg_failed = yes; then
19310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19311 printf "%s\n" "no" >&6; }
19312
19313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19314 _pkg_short_errors_supported=yes
19315 else
19316 _pkg_short_errors_supported=no
19317 fi
19318 if test $_pkg_short_errors_supported = yes; then
19319 LIBSECRET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsecret-1 >= 0.18" 2>&1`
19320 else
19321 LIBSECRET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsecret-1 >= 0.18" 2>&1`
19322 fi
19323 # Put the nasty error message in config.log where it belongs
19324 echo "$LIBSECRET_PKG_ERRORS" >&5
19325
19326 as_fn_error $? "Package requirements (libsecret-1 >= 0.18) were not met:
19327
19328 $LIBSECRET_PKG_ERRORS
19329
19330 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19331 installed software in a non-standard prefix.
19332
19333 Alternatively, you may set the environment variables LIBSECRET_CFLAGS
19334 and LIBSECRET_LIBS to avoid the need to call pkg-config.
19335 See the pkg-config man page for more details." "$LINENO" 5
19336 elif test $pkg_failed = untried; then
19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19338 printf "%s\n" "no" >&6; }
19339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19340 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19341 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19342 is in your PATH or set the PKG_CONFIG environment variable to the full
19343 path to pkg-config.
19344
19345 Alternatively, you may set the environment variables LIBSECRET_CFLAGS
19346 and LIBSECRET_LIBS to avoid the need to call pkg-config.
19347 See the pkg-config man page for more details.
19348
19349 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19350 See 'config.log' for more details" "$LINENO" 5; }
19351 else
19352 LIBSECRET_CFLAGS=$pkg_cv_LIBSECRET_CFLAGS
19353 LIBSECRET_LIBS=$pkg_cv_LIBSECRET_LIBS
19354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19355 printf "%s\n" "yes" >&6; }
19356
19357 fi
19358 fi
19359
19360 if test x"$with_gnome" != xno; then
19361
19362 pkg_failed=no
19363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-3.0 >= 3.16" >&5
19364 printf %s "checking for gtk+-3.0 >= 3.16... " >&6; }
19365
19366 if test -n "$GTK_CFLAGS"; then
19367 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
19368 elif test -n "$PKG_CONFIG"; then
19369 if test -n "$PKG_CONFIG" && \
19370 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.16\""; } >&5
19371 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.16") 2>&5
19372 ac_status=$?
19373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19374 test $ac_status = 0; }; then
19375 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.16" 2>/dev/null`
19376 test "x$?" != "x0" && pkg_failed=yes
19377 else
19378 pkg_failed=yes
19379 fi
19380 else
19381 pkg_failed=untried
19382 fi
19383 if test -n "$GTK_LIBS"; then
19384 pkg_cv_GTK_LIBS="$GTK_LIBS"
19385 elif test -n "$PKG_CONFIG"; then
19386 if test -n "$PKG_CONFIG" && \
19387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.16\""; } >&5
19388 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.16") 2>&5
19389 ac_status=$?
19390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19391 test $ac_status = 0; }; then
19392 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.16" 2>/dev/null`
19393 test "x$?" != "x0" && pkg_failed=yes
19394 else
19395 pkg_failed=yes
19396 fi
19397 else
19398 pkg_failed=untried
19399 fi
19400
19401
19402
19403 if test $pkg_failed = yes; then
19404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19405 printf "%s\n" "no" >&6; }
19406
19407 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19408 _pkg_short_errors_supported=yes
19409 else
19410 _pkg_short_errors_supported=no
19411 fi
19412 if test $_pkg_short_errors_supported = yes; then
19413 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.16" 2>&1`
19414 else
19415 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.16" 2>&1`
19416 fi
19417 # Put the nasty error message in config.log where it belongs
19418 echo "$GTK_PKG_ERRORS" >&5
19419
19420 as_fn_error $? "Package requirements (gtk+-3.0 >= 3.16) were not met:
19421
19422 $GTK_PKG_ERRORS
19423
19424 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19425 installed software in a non-standard prefix.
19426
19427 Alternatively, you may set the environment variables GTK_CFLAGS
19428 and GTK_LIBS to avoid the need to call pkg-config.
19429 See the pkg-config man page for more details." "$LINENO" 5
19430 elif test $pkg_failed = untried; then
19431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19432 printf "%s\n" "no" >&6; }
19433 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19434 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19435 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19436 is in your PATH or set the PKG_CONFIG environment variable to the full
19437 path to pkg-config.
19438
19439 Alternatively, you may set the environment variables GTK_CFLAGS
19440 and GTK_LIBS to avoid the need to call pkg-config.
19441 See the pkg-config man page for more details.
19442
19443 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19444 See 'config.log' for more details" "$LINENO" 5; }
19445 else
19446 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
19447 GTK_LIBS=$pkg_cv_GTK_LIBS
19448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19449 printf "%s\n" "yes" >&6; }
19450
19451 fi
19452 GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_16"
19453 GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_16"
19454
19455 pkg_failed=no
19456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnma >= 1.8.0" >&5
19457 printf %s "checking for libnma >= 1.8.0... " >&6; }
19458
19459 if test -n "$LIBNMA_CFLAGS"; then
19460 pkg_cv_LIBNMA_CFLAGS="$LIBNMA_CFLAGS"
19461 elif test -n "$PKG_CONFIG"; then
19462 if test -n "$PKG_CONFIG" && \
19463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma >= 1.8.0\""; } >&5
19464 ($PKG_CONFIG --exists --print-errors "libnma >= 1.8.0") 2>&5
19465 ac_status=$?
19466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19467 test $ac_status = 0; }; then
19468 pkg_cv_LIBNMA_CFLAGS=`$PKG_CONFIG --cflags "libnma >= 1.8.0" 2>/dev/null`
19469 test "x$?" != "x0" && pkg_failed=yes
19470 else
19471 pkg_failed=yes
19472 fi
19473 else
19474 pkg_failed=untried
19475 fi
19476 if test -n "$LIBNMA_LIBS"; then
19477 pkg_cv_LIBNMA_LIBS="$LIBNMA_LIBS"
19478 elif test -n "$PKG_CONFIG"; then
19479 if test -n "$PKG_CONFIG" && \
19480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma >= 1.8.0\""; } >&5
19481 ($PKG_CONFIG --exists --print-errors "libnma >= 1.8.0") 2>&5
19482 ac_status=$?
19483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19484 test $ac_status = 0; }; then
19485 pkg_cv_LIBNMA_LIBS=`$PKG_CONFIG --libs "libnma >= 1.8.0" 2>/dev/null`
19486 test "x$?" != "x0" && pkg_failed=yes
19487 else
19488 pkg_failed=yes
19489 fi
19490 else
19491 pkg_failed=untried
19492 fi
19493
19494
19495
19496 if test $pkg_failed = yes; then
19497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19498 printf "%s\n" "no" >&6; }
19499
19500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19501 _pkg_short_errors_supported=yes
19502 else
19503 _pkg_short_errors_supported=no
19504 fi
19505 if test $_pkg_short_errors_supported = yes; then
19506 LIBNMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnma >= 1.8.0" 2>&1`
19507 else
19508 LIBNMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnma >= 1.8.0" 2>&1`
19509 fi
19510 # Put the nasty error message in config.log where it belongs
19511 echo "$LIBNMA_PKG_ERRORS" >&5
19512
19513 as_fn_error $? "Package requirements (libnma >= 1.8.0) were not met:
19514
19515 $LIBNMA_PKG_ERRORS
19516
19517 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19518 installed software in a non-standard prefix.
19519
19520 Alternatively, you may set the environment variables LIBNMA_CFLAGS
19521 and LIBNMA_LIBS to avoid the need to call pkg-config.
19522 See the pkg-config man page for more details." "$LINENO" 5
19523 elif test $pkg_failed = untried; then
19524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19525 printf "%s\n" "no" >&6; }
19526 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19527 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19528 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19529 is in your PATH or set the PKG_CONFIG environment variable to the full
19530 path to pkg-config.
19531
19532 Alternatively, you may set the environment variables LIBNMA_CFLAGS
19533 and LIBNMA_LIBS to avoid the need to call pkg-config.
19534 See the pkg-config man page for more details.
19535
19536 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19537 See 'config.log' for more details" "$LINENO" 5; }
19538 else
19539 LIBNMA_CFLAGS=$pkg_cv_LIBNMA_CFLAGS
19540 LIBNMA_LIBS=$pkg_cv_LIBNMA_LIBS
19541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19542 printf "%s\n" "yes" >&6; }
19543
19544 fi
19545 fi
19546
19547 if test x"$with_gtk4" != xno; then
19548
19549 pkg_failed=no
19550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk4 >= 4.0" >&5
19551 printf %s "checking for gtk4 >= 4.0... " >&6; }
19552
19553 if test -n "$GTK4_CFLAGS"; then
19554 pkg_cv_GTK4_CFLAGS="$GTK4_CFLAGS"
19555 elif test -n "$PKG_CONFIG"; then
19556 if test -n "$PKG_CONFIG" && \
19557 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk4 >= 4.0\""; } >&5
19558 ($PKG_CONFIG --exists --print-errors "gtk4 >= 4.0") 2>&5
19559 ac_status=$?
19560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19561 test $ac_status = 0; }; then
19562 pkg_cv_GTK4_CFLAGS=`$PKG_CONFIG --cflags "gtk4 >= 4.0" 2>/dev/null`
19563 test "x$?" != "x0" && pkg_failed=yes
19564 else
19565 pkg_failed=yes
19566 fi
19567 else
19568 pkg_failed=untried
19569 fi
19570 if test -n "$GTK4_LIBS"; then
19571 pkg_cv_GTK4_LIBS="$GTK4_LIBS"
19572 elif test -n "$PKG_CONFIG"; then
19573 if test -n "$PKG_CONFIG" && \
19574 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk4 >= 4.0\""; } >&5
19575 ($PKG_CONFIG --exists --print-errors "gtk4 >= 4.0") 2>&5
19576 ac_status=$?
19577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19578 test $ac_status = 0; }; then
19579 pkg_cv_GTK4_LIBS=`$PKG_CONFIG --libs "gtk4 >= 4.0" 2>/dev/null`
19580 test "x$?" != "x0" && pkg_failed=yes
19581 else
19582 pkg_failed=yes
19583 fi
19584 else
19585 pkg_failed=untried
19586 fi
19587
19588
19589
19590 if test $pkg_failed = yes; then
19591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19592 printf "%s\n" "no" >&6; }
19593
19594 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19595 _pkg_short_errors_supported=yes
19596 else
19597 _pkg_short_errors_supported=no
19598 fi
19599 if test $_pkg_short_errors_supported = yes; then
19600 GTK4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk4 >= 4.0" 2>&1`
19601 else
19602 GTK4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk4 >= 4.0" 2>&1`
19603 fi
19604 # Put the nasty error message in config.log where it belongs
19605 echo "$GTK4_PKG_ERRORS" >&5
19606
19607 as_fn_error $? "Package requirements (gtk4 >= 4.0) were not met:
19608
19609 $GTK4_PKG_ERRORS
19610
19611 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19612 installed software in a non-standard prefix.
19613
19614 Alternatively, you may set the environment variables GTK4_CFLAGS
19615 and GTK4_LIBS to avoid the need to call pkg-config.
19616 See the pkg-config man page for more details." "$LINENO" 5
19617 elif test $pkg_failed = untried; then
19618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19619 printf "%s\n" "no" >&6; }
19620 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19621 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19622 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19623 is in your PATH or set the PKG_CONFIG environment variable to the full
19624 path to pkg-config.
19625
19626 Alternatively, you may set the environment variables GTK4_CFLAGS
19627 and GTK4_LIBS to avoid the need to call pkg-config.
19628 See the pkg-config man page for more details.
19629
19630 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19631 See 'config.log' for more details" "$LINENO" 5; }
19632 else
19633 GTK4_CFLAGS=$pkg_cv_GTK4_CFLAGS
19634 GTK4_LIBS=$pkg_cv_GTK4_LIBS
19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19636 printf "%s\n" "yes" >&6; }
19637
19638 fi
19639 GTK4_CFLAGS="$GTK4_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_4_0"
19640 GTK4_CFLAGS="$GTK4_CFLAGS -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_4_0"
19641
19642 pkg_failed=no
19643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnma-gtk4 >= 1.8.33" >&5
19644 printf %s "checking for libnma-gtk4 >= 1.8.33... " >&6; }
19645
19646 if test -n "$LIBNMA_GTK4_CFLAGS"; then
19647 pkg_cv_LIBNMA_GTK4_CFLAGS="$LIBNMA_GTK4_CFLAGS"
19648 elif test -n "$PKG_CONFIG"; then
19649 if test -n "$PKG_CONFIG" && \
19650 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma-gtk4 >= 1.8.33\""; } >&5
19651 ($PKG_CONFIG --exists --print-errors "libnma-gtk4 >= 1.8.33") 2>&5
19652 ac_status=$?
19653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19654 test $ac_status = 0; }; then
19655 pkg_cv_LIBNMA_GTK4_CFLAGS=`$PKG_CONFIG --cflags "libnma-gtk4 >= 1.8.33" 2>/dev/null`
19656 test "x$?" != "x0" && pkg_failed=yes
19657 else
19658 pkg_failed=yes
19659 fi
19660 else
19661 pkg_failed=untried
19662 fi
19663 if test -n "$LIBNMA_GTK4_LIBS"; then
19664 pkg_cv_LIBNMA_GTK4_LIBS="$LIBNMA_GTK4_LIBS"
19665 elif test -n "$PKG_CONFIG"; then
19666 if test -n "$PKG_CONFIG" && \
19667 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma-gtk4 >= 1.8.33\""; } >&5
19668 ($PKG_CONFIG --exists --print-errors "libnma-gtk4 >= 1.8.33") 2>&5
19669 ac_status=$?
19670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19671 test $ac_status = 0; }; then
19672 pkg_cv_LIBNMA_GTK4_LIBS=`$PKG_CONFIG --libs "libnma-gtk4 >= 1.8.33" 2>/dev/null`
19673 test "x$?" != "x0" && pkg_failed=yes
19674 else
19675 pkg_failed=yes
19676 fi
19677 else
19678 pkg_failed=untried
19679 fi
19680
19681
19682
19683 if test $pkg_failed = yes; then
19684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19685 printf "%s\n" "no" >&6; }
19686
19687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19688 _pkg_short_errors_supported=yes
19689 else
19690 _pkg_short_errors_supported=no
19691 fi
19692 if test $_pkg_short_errors_supported = yes; then
19693 LIBNMA_GTK4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnma-gtk4 >= 1.8.33" 2>&1`
19694 else
19695 LIBNMA_GTK4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnma-gtk4 >= 1.8.33" 2>&1`
19696 fi
19697 # Put the nasty error message in config.log where it belongs
19698 echo "$LIBNMA_GTK4_PKG_ERRORS" >&5
19699
19700 as_fn_error $? "Package requirements (libnma-gtk4 >= 1.8.33) were not met:
19701
19702 $LIBNMA_GTK4_PKG_ERRORS
19703
19704 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19705 installed software in a non-standard prefix.
19706
19707 Alternatively, you may set the environment variables LIBNMA_GTK4_CFLAGS
19708 and LIBNMA_GTK4_LIBS to avoid the need to call pkg-config.
19709 See the pkg-config man page for more details." "$LINENO" 5
19710 elif test $pkg_failed = untried; then
19711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19712 printf "%s\n" "no" >&6; }
19713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19714 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19715 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19716 is in your PATH or set the PKG_CONFIG environment variable to the full
19717 path to pkg-config.
19718
19719 Alternatively, you may set the environment variables LIBNMA_GTK4_CFLAGS
19720 and LIBNMA_GTK4_LIBS to avoid the need to call pkg-config.
19721 See the pkg-config man page for more details.
19722
19723 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19724 See 'config.log' for more details" "$LINENO" 5; }
19725 else
19726 LIBNMA_GTK4_CFLAGS=$pkg_cv_LIBNMA_GTK4_CFLAGS
19727 LIBNMA_GTK4_LIBS=$pkg_cv_LIBNMA_GTK4_LIBS
19728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19729 printf "%s\n" "yes" >&6; }
19730
19731 fi
19732 fi
19733
19734 # Ensure libnm version has CVE-2025-9615 fix
19735 LIBNM_VERSION=$($PKG_CONFIG --modversion libnm)
19736 case "$LIBNM_VERSION" in
19737 1.52.*)
19738
19739 pkg_failed=no
19740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnm >= 1.52.2" >&5
19741 printf %s "checking for libnm >= 1.52.2... " >&6; }
19742
19743 if test -n "$LIBNM_CFLAGS"; then
19744 pkg_cv_LIBNM_CFLAGS="$LIBNM_CFLAGS"
19745 elif test -n "$PKG_CONFIG"; then
19746 if test -n "$PKG_CONFIG" && \
19747 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm >= 1.52.2\""; } >&5
19748 ($PKG_CONFIG --exists --print-errors "libnm >= 1.52.2") 2>&5
19749 ac_status=$?
19750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19751 test $ac_status = 0; }; then
19752 pkg_cv_LIBNM_CFLAGS=`$PKG_CONFIG --cflags "libnm >= 1.52.2" 2>/dev/null`
19753 test "x$?" != "x0" && pkg_failed=yes
19754 else
19755 pkg_failed=yes
19756 fi
19757 else
19758 pkg_failed=untried
19759 fi
19760 if test -n "$LIBNM_LIBS"; then
19761 pkg_cv_LIBNM_LIBS="$LIBNM_LIBS"
19762 elif test -n "$PKG_CONFIG"; then
19763 if test -n "$PKG_CONFIG" && \
19764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm >= 1.52.2\""; } >&5
19765 ($PKG_CONFIG --exists --print-errors "libnm >= 1.52.2") 2>&5
19766 ac_status=$?
19767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19768 test $ac_status = 0; }; then
19769 pkg_cv_LIBNM_LIBS=`$PKG_CONFIG --libs "libnm >= 1.52.2" 2>/dev/null`
19770 test "x$?" != "x0" && pkg_failed=yes
19771 else
19772 pkg_failed=yes
19773 fi
19774 else
19775 pkg_failed=untried
19776 fi
19777
19778
19779
19780 if test $pkg_failed = yes; then
19781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782 printf "%s\n" "no" >&6; }
19783
19784 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19785 _pkg_short_errors_supported=yes
19786 else
19787 _pkg_short_errors_supported=no
19788 fi
19789 if test $_pkg_short_errors_supported = yes; then
19790 LIBNM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnm >= 1.52.2" 2>&1`
19791 else
19792 LIBNM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnm >= 1.52.2" 2>&1`
19793 fi
19794 # Put the nasty error message in config.log where it belongs
19795 echo "$LIBNM_PKG_ERRORS" >&5
19796
19797 as_fn_error $? "Package requirements (libnm >= 1.52.2) were not met:
19798
19799 $LIBNM_PKG_ERRORS
19800
19801 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19802 installed software in a non-standard prefix.
19803
19804 Alternatively, you may set the environment variables LIBNM_CFLAGS
19805 and LIBNM_LIBS to avoid the need to call pkg-config.
19806 See the pkg-config man page for more details." "$LINENO" 5
19807 elif test $pkg_failed = untried; then
19808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19809 printf "%s\n" "no" >&6; }
19810 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19811 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19812 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19813 is in your PATH or set the PKG_CONFIG environment variable to the full
19814 path to pkg-config.
19815
19816 Alternatively, you may set the environment variables LIBNM_CFLAGS
19817 and LIBNM_LIBS to avoid the need to call pkg-config.
19818 See the pkg-config man page for more details.
19819
19820 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19821 See 'config.log' for more details" "$LINENO" 5; }
19822 else
19823 LIBNM_CFLAGS=$pkg_cv_LIBNM_CFLAGS
19824 LIBNM_LIBS=$pkg_cv_LIBNM_LIBS
19825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19826 printf "%s\n" "yes" >&6; }
19827
19828 fi
19829 ;;
19830 1.54.*)
19831
19832 pkg_failed=no
19833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnm >= 1.54.3" >&5
19834 printf %s "checking for libnm >= 1.54.3... " >&6; }
19835
19836 if test -n "$LIBNM_CFLAGS"; then
19837 pkg_cv_LIBNM_CFLAGS="$LIBNM_CFLAGS"
19838 elif test -n "$PKG_CONFIG"; then
19839 if test -n "$PKG_CONFIG" && \
19840 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm >= 1.54.3\""; } >&5
19841 ($PKG_CONFIG --exists --print-errors "libnm >= 1.54.3") 2>&5
19842 ac_status=$?
19843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19844 test $ac_status = 0; }; then
19845 pkg_cv_LIBNM_CFLAGS=`$PKG_CONFIG --cflags "libnm >= 1.54.3" 2>/dev/null`
19846 test "x$?" != "x0" && pkg_failed=yes
19847 else
19848 pkg_failed=yes
19849 fi
19850 else
19851 pkg_failed=untried
19852 fi
19853 if test -n "$LIBNM_LIBS"; then
19854 pkg_cv_LIBNM_LIBS="$LIBNM_LIBS"
19855 elif test -n "$PKG_CONFIG"; then
19856 if test -n "$PKG_CONFIG" && \
19857 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm >= 1.54.3\""; } >&5
19858 ($PKG_CONFIG --exists --print-errors "libnm >= 1.54.3") 2>&5
19859 ac_status=$?
19860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19861 test $ac_status = 0; }; then
19862 pkg_cv_LIBNM_LIBS=`$PKG_CONFIG --libs "libnm >= 1.54.3" 2>/dev/null`
19863 test "x$?" != "x0" && pkg_failed=yes
19864 else
19865 pkg_failed=yes
19866 fi
19867 else
19868 pkg_failed=untried
19869 fi
19870
19871
19872
19873 if test $pkg_failed = yes; then
19874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19875 printf "%s\n" "no" >&6; }
19876
19877 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19878 _pkg_short_errors_supported=yes
19879 else
19880 _pkg_short_errors_supported=no
19881 fi
19882 if test $_pkg_short_errors_supported = yes; then
19883 LIBNM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnm >= 1.54.3" 2>&1`
19884 else
19885 LIBNM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnm >= 1.54.3" 2>&1`
19886 fi
19887 # Put the nasty error message in config.log where it belongs
19888 echo "$LIBNM_PKG_ERRORS" >&5
19889
19890 as_fn_error $? "Package requirements (libnm >= 1.54.3) were not met:
19891
19892 $LIBNM_PKG_ERRORS
19893
19894 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19895 installed software in a non-standard prefix.
19896
19897 Alternatively, you may set the environment variables LIBNM_CFLAGS
19898 and LIBNM_LIBS to avoid the need to call pkg-config.
19899 See the pkg-config man page for more details." "$LINENO" 5
19900 elif test $pkg_failed = untried; then
19901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19902 printf "%s\n" "no" >&6; }
19903 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19904 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19905 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19906 is in your PATH or set the PKG_CONFIG environment variable to the full
19907 path to pkg-config.
19908
19909 Alternatively, you may set the environment variables LIBNM_CFLAGS
19910 and LIBNM_LIBS to avoid the need to call pkg-config.
19911 See the pkg-config man page for more details.
19912
19913 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19914 See 'config.log' for more details" "$LINENO" 5; }
19915 else
19916 LIBNM_CFLAGS=$pkg_cv_LIBNM_CFLAGS
19917 LIBNM_LIBS=$pkg_cv_LIBNM_LIBS
19918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19919 printf "%s\n" "yes" >&6; }
19920
19921 fi
19922 ;;
19923 *)
19924
19925 pkg_failed=no
19926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnm >= 1.56.0" >&5
19927 printf %s "checking for libnm >= 1.56.0... " >&6; }
19928
19929 if test -n "$LIBNM_CFLAGS"; then
19930 pkg_cv_LIBNM_CFLAGS="$LIBNM_CFLAGS"
19931 elif test -n "$PKG_CONFIG"; then
19932 if test -n "$PKG_CONFIG" && \
19933 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm >= 1.56.0\""; } >&5
19934 ($PKG_CONFIG --exists --print-errors "libnm >= 1.56.0") 2>&5
19935 ac_status=$?
19936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19937 test $ac_status = 0; }; then
19938 pkg_cv_LIBNM_CFLAGS=`$PKG_CONFIG --cflags "libnm >= 1.56.0" 2>/dev/null`
19939 test "x$?" != "x0" && pkg_failed=yes
19940 else
19941 pkg_failed=yes
19942 fi
19943 else
19944 pkg_failed=untried
19945 fi
19946 if test -n "$LIBNM_LIBS"; then
19947 pkg_cv_LIBNM_LIBS="$LIBNM_LIBS"
19948 elif test -n "$PKG_CONFIG"; then
19949 if test -n "$PKG_CONFIG" && \
19950 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm >= 1.56.0\""; } >&5
19951 ($PKG_CONFIG --exists --print-errors "libnm >= 1.56.0") 2>&5
19952 ac_status=$?
19953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19954 test $ac_status = 0; }; then
19955 pkg_cv_LIBNM_LIBS=`$PKG_CONFIG --libs "libnm >= 1.56.0" 2>/dev/null`
19956 test "x$?" != "x0" && pkg_failed=yes
19957 else
19958 pkg_failed=yes
19959 fi
19960 else
19961 pkg_failed=untried
19962 fi
19963
19964
19965
19966 if test $pkg_failed = yes; then
19967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19968 printf "%s\n" "no" >&6; }
19969
19970 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19971 _pkg_short_errors_supported=yes
19972 else
19973 _pkg_short_errors_supported=no
19974 fi
19975 if test $_pkg_short_errors_supported = yes; then
19976 LIBNM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnm >= 1.56.0" 2>&1`
19977 else
19978 LIBNM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnm >= 1.56.0" 2>&1`
19979 fi
19980 # Put the nasty error message in config.log where it belongs
19981 echo "$LIBNM_PKG_ERRORS" >&5
19982
19983 as_fn_error $? "Package requirements (libnm >= 1.56.0) were not met:
19984
19985 $LIBNM_PKG_ERRORS
19986
19987 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19988 installed software in a non-standard prefix.
19989
19990 Alternatively, you may set the environment variables LIBNM_CFLAGS
19991 and LIBNM_LIBS to avoid the need to call pkg-config.
19992 See the pkg-config man page for more details." "$LINENO" 5
19993 elif test $pkg_failed = untried; then
19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19995 printf "%s\n" "no" >&6; }
19996 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19997 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19998 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19999 is in your PATH or set the PKG_CONFIG environment variable to the full
20000 path to pkg-config.
20001
20002 Alternatively, you may set the environment variables LIBNM_CFLAGS
20003 and LIBNM_LIBS to avoid the need to call pkg-config.
20004 See the pkg-config man page for more details.
20005
20006 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20007 See 'config.log' for more details" "$LINENO" 5; }
20008 else
20009 LIBNM_CFLAGS=$pkg_cv_LIBNM_CFLAGS
20010 LIBNM_LIBS=$pkg_cv_LIBNM_LIBS
20011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20012 printf "%s\n" "yes" >&6; }
20013
20014 fi
20015 ;;
20016 esac
20017
20018 NM_VPN_SERVICE_DIR=`$PKG_CONFIG --define-variable prefix='\${prefix}' --variable vpnservicedir libnm`
20019
20020
20021 # Check whether --enable-more-warnings was given.
20022 if test ${enable_more_warnings+y}
20023 then :
20024 enableval=$enable_more_warnings; set_more_warnings="$enableval"
20025 else case e in #(
20026 e) set_more_warnings= ;;
20027 esac
20028 fi
20029
20030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for more warnings" >&5
20031 printf %s "checking for more warnings... " >&6; }
20032 if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
20033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20034 printf "%s\n" "yes" >&6; }
20035
20036 CFLAGS_SAVED="$CFLAGS"
20037 CFLAGS="$CFLAGS -Qunused-arguments"
20038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h. */
20040
20041 _ACEOF
20042 if ac_fn_c_try_compile "$LINENO"
20043 then :
20044
20045 else case e in #(
20046 e) CFLAGS="$CFLAGS_SAVED" ;;
20047 esac
20048 fi
20049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20050 unset CFLAGS_SAVED
20051
20052
20053
20054 CFLAGS_SAVED="$CFLAGS"
20055 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wunknown-warning-option"
20056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wunknown-warning-option works as expected" >&5
20057 printf %s "checking whether -Wunknown-warning-option works as expected... " >&6; }
20058
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20061
20062 _ACEOF
20063 if ac_fn_c_try_compile "$LINENO"
20064 then :
20065
20066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20067 /* end confdefs.h. */
20068
20069 _ACEOF
20070 if ac_fn_c_try_compile "$LINENO"
20071 then :
20072
20073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20074 printf "%s\n" "yes" >&6; }
20075 CFLAGS="$CFLAGS_SAVED"
20076 CFLAGS="$CFLAGS -Wunknown-warning-option"
20077
20078 else case e in #(
20079 e)
20080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20081 printf "%s\n" "no" >&6; }
20082 CFLAGS="$CFLAGS_SAVED"
20083 CFLAGS="$CFLAGS -Wno-unknown-warning-option"
20084 ;;
20085 esac
20086 fi
20087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20088
20089 else case e in #(
20090 e)
20091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
20092 printf "%s\n" "not supported" >&6; }
20093 CFLAGS="$CFLAGS_SAVED"
20094 ;;
20095 esac
20096 fi
20097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20098
20099
20100
20101 CFLAGS_MORE_WARNINGS="-Wall -std=gnu99"
20102
20103 if test "x$set_more_warnings" = xerror; then
20104 CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS -Werror"
20105 fi
20106
20107 for option in \
20108 -Wextra \
20109 -Wdeclaration-after-statement \
20110 -Wfloat-equal \
20111 -Wformat-nonliteral \
20112 -Wformat-security \
20113 -Wimplicit-fallthrough \
20114 -Wimplicit-function-declaration \
20115 -Winit-self \
20116 -Wmissing-declarations \
20117 -Wmissing-include-dirs \
20118 -Wmissing-prototypes \
20119 -Wpointer-arith \
20120 -Wshadow \
20121 -Wstrict-prototypes \
20122 -Wundef \
20123 -Wno-duplicate-decl-specifier \
20124 -Wno-format-truncation \
20125 -Wno-format-y2k \
20126 -Wno-missing-field-initializers \
20127 -Wno-pragmas \
20128 -Wno-sign-compare \
20129 -Wno-unused-but-set-variable \
20130 -Wno-unused-parameter \
20131 ; do
20132
20133 CFLAGS_SAVED="$CFLAGS"
20134 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror $(printf '%s' "$option" | sed 's/^-Wno-/-W/')"
20135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $(printf '%s' \"$option\" | sed 's/^-Wno-/-W/') works as expected" >&5
20136 printf %s "checking whether $(printf '%s' \"$option\" | sed 's/^-Wno-/-W/') works as expected... " >&6; }
20137
20138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139 /* end confdefs.h. */
20140
20141 _ACEOF
20142 if ac_fn_c_try_compile "$LINENO"
20143 then :
20144
20145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20146 /* end confdefs.h. */
20147
20148 _ACEOF
20149 if ac_fn_c_try_compile "$LINENO"
20150 then :
20151
20152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20153 printf "%s\n" "yes" >&6; }
20154 CFLAGS="$CFLAGS_SAVED"
20155 CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS $option"
20156
20157 else case e in #(
20158 e)
20159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20160 printf "%s\n" "no" >&6; }
20161 CFLAGS="$CFLAGS_SAVED"
20162
20163 ;;
20164 esac
20165 fi
20166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20167
20168 else case e in #(
20169 e)
20170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
20171 printf "%s\n" "not supported" >&6; }
20172 CFLAGS="$CFLAGS_SAVED"
20173 ;;
20174 esac
20175 fi
20176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20177
20178 done
20179 unset option
20180
20181
20182
20183
20184 CFLAGS_SAVED="$CFLAGS"
20185 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wunknown-attributes"
20186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wunknown-attributes works as expected" >&5
20187 printf %s "checking whether -Wunknown-attributes works as expected... " >&6; }
20188
20189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20190 /* end confdefs.h. */
20191
20192 _ACEOF
20193 if ac_fn_c_try_compile "$LINENO"
20194 then :
20195
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h. */
20198 #include <glib.h>
20199 _ACEOF
20200 if ac_fn_c_try_compile "$LINENO"
20201 then :
20202
20203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20204 printf "%s\n" "yes" >&6; }
20205 CFLAGS="$CFLAGS_SAVED"
20206 CFLAGS="$CFLAGS -Wunknown-attributes"
20207
20208 else case e in #(
20209 e)
20210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20211 printf "%s\n" "no" >&6; }
20212 CFLAGS="$CFLAGS_SAVED"
20213 CFLAGS="$CFLAGS -Wno-unknown-attributes"
20214 ;;
20215 esac
20216 fi
20217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20218
20219 else case e in #(
20220 e)
20221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
20222 printf "%s\n" "not supported" >&6; }
20223 CFLAGS="$CFLAGS_SAVED"
20224 ;;
20225 esac
20226 fi
20227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20228
20229
20230
20231
20232
20233 CFLAGS_SAVED="$CFLAGS"
20234 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wtypedef-redefinition"
20235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wtypedef-redefinition works as expected" >&5
20236 printf %s "checking whether -Wtypedef-redefinition works as expected... " >&6; }
20237
20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h. */
20240
20241 _ACEOF
20242 if ac_fn_c_try_compile "$LINENO"
20243 then :
20244
20245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20246 /* end confdefs.h. */
20247 #include <gio/gio.h>
20248 _ACEOF
20249 if ac_fn_c_try_compile "$LINENO"
20250 then :
20251
20252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20253 printf "%s\n" "yes" >&6; }
20254 CFLAGS="$CFLAGS_SAVED"
20255 CFLAGS="$CFLAGS -Wtypedef-redefinition"
20256
20257 else case e in #(
20258 e)
20259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20260 printf "%s\n" "no" >&6; }
20261 CFLAGS="$CFLAGS_SAVED"
20262 CFLAGS="$CFLAGS -Wno-typedef-redefinition"
20263 ;;
20264 esac
20265 fi
20266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20267
20268 else case e in #(
20269 e)
20270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
20271 printf "%s\n" "not supported" >&6; }
20272 CFLAGS="$CFLAGS_SAVED"
20273 ;;
20274 esac
20275 fi
20276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20277
20278
20279
20280
20281
20282 CFLAGS_SAVED="$CFLAGS"
20283 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Warray-bounds"
20284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Warray-bounds works as expected" >&5
20285 printf %s "checking whether -Warray-bounds works as expected... " >&6; }
20286
20287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288 /* end confdefs.h. */
20289
20290 _ACEOF
20291 if ac_fn_c_try_compile "$LINENO"
20292 then :
20293
20294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20296 #include <string.h>
20297 void f () { strcmp ("something", "0"); }
20298
20299 _ACEOF
20300 if ac_fn_c_try_compile "$LINENO"
20301 then :
20302
20303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20304 printf "%s\n" "yes" >&6; }
20305 CFLAGS="$CFLAGS_SAVED"
20306 CFLAGS="$CFLAGS -Warray-bounds"
20307
20308 else case e in #(
20309 e)
20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20311 printf "%s\n" "no" >&6; }
20312 CFLAGS="$CFLAGS_SAVED"
20313 CFLAGS="$CFLAGS -Wno-array-bounds"
20314 ;;
20315 esac
20316 fi
20317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20318
20319 else case e in #(
20320 e)
20321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
20322 printf "%s\n" "not supported" >&6; }
20323 CFLAGS="$CFLAGS_SAVED"
20324 ;;
20325 esac
20326 fi
20327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20328
20329
20330
20331
20332
20333 CFLAGS_SAVED="$CFLAGS"
20334 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wparentheses-equality"
20335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wparentheses-equality works as expected" >&5
20336 printf %s "checking whether -Wparentheses-equality works as expected... " >&6; }
20337
20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h. */
20340
20341 _ACEOF
20342 if ac_fn_c_try_compile "$LINENO"
20343 then :
20344
20345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20346 /* end confdefs.h. */
20347 #include <sys/wait.h>
20348 void f () { if (WIFCONTINUED(0)) return; }
20349
20350 _ACEOF
20351 if ac_fn_c_try_compile "$LINENO"
20352 then :
20353
20354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20355 printf "%s\n" "yes" >&6; }
20356 CFLAGS="$CFLAGS_SAVED"
20357 CFLAGS="$CFLAGS -Wparentheses-equality"
20358
20359 else case e in #(
20360 e)
20361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20362 printf "%s\n" "no" >&6; }
20363 CFLAGS="$CFLAGS_SAVED"
20364 CFLAGS="$CFLAGS -Wno-parentheses-equality"
20365 ;;
20366 esac
20367 fi
20368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20369
20370 else case e in #(
20371 e)
20372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
20373 printf "%s\n" "not supported" >&6; }
20374 CFLAGS="$CFLAGS_SAVED"
20375 ;;
20376 esac
20377 fi
20378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20379
20380
20381
20382
20383
20384 CFLAGS_SAVED="$CFLAGS"
20385 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wunused-value"
20386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-value works as expected" >&5
20387 printf %s "checking whether -Wunused-value works as expected... " >&6; }
20388
20389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20390 /* end confdefs.h. */
20391
20392 _ACEOF
20393 if ac_fn_c_try_compile "$LINENO"
20394 then :
20395
20396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h. */
20398 #define yolo ({ (666 + 666); })
20399 int f () { int i = yolo; yolo; return i; }
20400
20401 _ACEOF
20402 if ac_fn_c_try_compile "$LINENO"
20403 then :
20404
20405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20406 printf "%s\n" "yes" >&6; }
20407 CFLAGS="$CFLAGS_SAVED"
20408 CFLAGS="$CFLAGS -Wunused-value"
20409
20410 else case e in #(
20411 e)
20412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20413 printf "%s\n" "no" >&6; }
20414 CFLAGS="$CFLAGS_SAVED"
20415 CFLAGS="$CFLAGS -Wno-unused-value"
20416 ;;
20417 esac
20418 fi
20419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20420
20421 else case e in #(
20422 e)
20423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
20424 printf "%s\n" "not supported" >&6; }
20425 CFLAGS="$CFLAGS_SAVED"
20426 ;;
20427 esac
20428 fi
20429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20430
20431
20432
20433 CFLAGS="$CFLAGS_MORE_WARNINGS $CFLAGS"
20434 else
20435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20436 printf "%s\n" "no" >&6; }
20437 fi
20438
20439 # Check whether --enable-lto was given.
20440 if test ${enable_lto+y}
20441 then :
20442 enableval=$enable_lto;
20443 fi
20444
20445 if (test "${enable_lto}" = "yes"); then
20446
20447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag -flto in envvar CFLAGS" >&5
20448 printf %s "checking if $CC supports flag -flto in envvar CFLAGS... " >&6; }
20449 if test ${cc_cv_CFLAGS__flto+y}
20450 then :
20451 printf %s "(cached) " >&6
20452 else case e in #(
20453 e) eval "cc_save_CFLAGS='${CFLAGS}'"
20454 eval "CFLAGS='${cc_save_CFLAGS} -Werror `echo "-flto" | sed 's/^-Wno-/-W/'`'"
20455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20456 /* end confdefs.h. */
20457 int main(void) { return 0; }
20458 _ACEOF
20459 if ac_fn_c_try_link "$LINENO"
20460 then :
20461 eval "cc_cv_CFLAGS__flto='yes'"
20462 else case e in #(
20463 e) eval "cc_cv_CFLAGS__flto='no'" ;;
20464 esac
20465 fi
20466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20467 conftest$ac_exeext conftest.$ac_ext
20468 eval "CFLAGS='$cc_save_CFLAGS'" ;;
20469 esac
20470 fi
20471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_cv_CFLAGS__flto" >&5
20472 printf "%s\n" "$cc_cv_CFLAGS__flto" >&6; }
20473
20474 if eval test x$cc_cv_CFLAGS__flto = xyes
20475 then :
20476 eval "lto_flags='${lto_flags} -flto'"
20477 fi
20478
20479 if (test -n "${lto_flags}"); then
20480 CFLAGS="-flto $CFLAGS"
20481 else
20482 as_fn_error $? "Link Time Optimization -flto is not supported." "$LINENO" 5
20483 fi
20484 else
20485 enable_lto='no'
20486 fi
20487
20488 # Check whether --enable-ld-gc was given.
20489 if test ${enable_ld_gc+y}
20490 then :
20491 enableval=$enable_ld_gc;
20492 fi
20493
20494 if (test "${enable_ld_gc}" != "no"); then
20495
20496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag -fdata-sections -ffunction-sections -Wl,--gc-sections in envvar CFLAGS" >&5
20497 printf %s "checking if $CC supports flag -fdata-sections -ffunction-sections -Wl,--gc-sections in envvar CFLAGS... " >&6; }
20498 if test ${cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections+y}
20499 then :
20500 printf %s "(cached) " >&6
20501 else case e in #(
20502 e) eval "cc_save_CFLAGS='${CFLAGS}'"
20503 eval "CFLAGS='${cc_save_CFLAGS} -Werror `echo "-fdata-sections -ffunction-sections -Wl,--gc-sections" | sed 's/^-Wno-/-W/'`'"
20504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h. */
20506 int main(void) { return 0; }
20507 _ACEOF
20508 if ac_fn_c_try_link "$LINENO"
20509 then :
20510 eval "cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections='yes'"
20511 else case e in #(
20512 e) eval "cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections='no'" ;;
20513 esac
20514 fi
20515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20516 conftest$ac_exeext conftest.$ac_ext
20517 eval "CFLAGS='$cc_save_CFLAGS'" ;;
20518 esac
20519 fi
20520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections" >&5
20521 printf "%s\n" "$cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections" >&6; }
20522
20523 if eval test x$cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections = xyes
20524 then :
20525 eval "ld_gc_flags='${ld_gc_flags} -fdata-sections -ffunction-sections -Wl,--gc-sections'"
20526 fi
20527
20528 if (test -n "${ld_gc_flags}"); then
20529 enable_ld_gc="yes"
20530 CFLAGS="$ld_gc_flags $CFLAGS"
20531 else
20532 if (test "${enable_ld_gc}" = "yes"); then
20533 as_fn_error $? "Unused symbol eviction requested but not supported." "$LINENO" 5
20534 else
20535 enable_ld_gc="no"
20536 fi
20537 fi
20538 fi
20539
20540
20541 NM_PLUGIN_DIR="$libdir/NetworkManager"
20542
20543 if test x"$enable_absolute_paths" = x"yes"; then
20544 NM_PLUGIN_DIR_NAME_FILE="$NM_PLUGIN_DIR/"
20545 else
20546 enable_absolute_paths=no
20547 NM_PLUGIN_DIR_NAME_FILE=""
20548 fi
20549
20550
20551
20552 # Check whether --with-dist-version was given.
20553 if test ${with_dist_version+y}
20554 then :
20555 withval=$with_dist_version; ac_distver=$withval
20556 else case e in #(
20557 e) ac_distver="" ;;
20558 esac
20559 fi
20560
20561 if ! test x"$ac_distver" = x""; then
20562
20563 printf "%s\n" "#define DIST_VERSION \"$ac_distver\"" >>confdefs.h
20564
20565 fi
20566
20567 ac_config_files="$ac_config_files Makefile po/Makefile.in"
20568
20569 cat >confcache <<\_ACEOF
20570 # This file is a shell script that caches the results of configure
20571 # tests run on this system so they can be shared between configure
20572 # scripts and configure runs, see configure's option --config-cache.
20573 # It is not useful on other systems. If it contains results you don't
20574 # want to keep, you may remove or edit it.
20575 #
20576 # config.status only pays attention to the cache file if you give it
20577 # the --recheck option to rerun configure.
20578 #
20579 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20580 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20581 # following values.
20582
20583 _ACEOF
20584
20585 # The following way of writing the cache mishandles newlines in values,
20586 # but we know of no workaround that is simple, portable, and efficient.
20587 # So, we kill variables containing newlines.
20588 # Ultrix sh set writes to stderr and can't be redirected directly,
20589 # and sets the high bit in the cache file unless we assign to the vars.
20590 (
20591 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20592 eval ac_val=\$$ac_var
20593 case $ac_val in #(
20594 *${as_nl}*)
20595 case $ac_var in #(
20596 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20597 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20598 esac
20599 case $ac_var in #(
20600 _ | IFS | as_nl) ;; #(
20601 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20602 *) { eval $ac_var=; unset $ac_var;} ;;
20603 esac ;;
20604 esac
20605 done
20606
20607 (set) 2>&1 |
20608 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20609 *${as_nl}ac_space=\ *)
20610 # 'set' does not quote correctly, so add quotes: double-quote
20611 # substitution turns \\\\ into \\, and sed turns \\ into \.
20612 sed -n \
20613 "s/'/'\\\\''/g;
20614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20615 ;; #(
20616 *)
20617 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20618 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20619 ;;
20620 esac |
20621 sort
20622 ) |
20623 sed '
20624 /^ac_cv_env_/b end
20625 t clear
20626 :clear
20627 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20628 t end
20629 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20630 :end' >>confcache
20631 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20632 if test -w "$cache_file"; then
20633 if test "x$cache_file" != "x/dev/null"; then
20634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20635 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20636 if test ! -f "$cache_file" || test -h "$cache_file"; then
20637 cat confcache >"$cache_file"
20638 else
20639 case $cache_file in #(
20640 */* | ?:*)
20641 mv -f confcache "$cache_file"$$ &&
20642 mv -f "$cache_file"$$ "$cache_file" ;; #(
20643 *)
20644 mv -f confcache "$cache_file" ;;
20645 esac
20646 fi
20647 fi
20648 else
20649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20650 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20651 fi
20652 fi
20653 rm -f confcache
20654
20655 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20656 # Let make expand exec_prefix.
20657 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20658
20659 DEFS=-DHAVE_CONFIG_H
20660
20661 ac_libobjs=
20662 ac_ltlibobjs=
20663 U=
20664 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20665 # 1. Remove the extension, and $U if already installed.
20666 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20667 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20668 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20669 # will be set to the directory where LIBOBJS objects are built.
20670 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20671 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20672 done
20673 LIBOBJS=$ac_libobjs
20674
20675 LTLIBOBJS=$ac_ltlibobjs
20676
20677
20678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20679 printf %s "checking that generated files are newer than configure... " >&6; }
20680 if test -n "$am_sleep_pid"; then
20681 # Hide warnings about reused PIDs.
20682 wait $am_sleep_pid 2>/dev/null
20683 fi
20684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20685 printf "%s\n" "done" >&6; }
20686 case $enable_silent_rules in # (((
20687 yes) AM_DEFAULT_VERBOSITY=0;;
20688 no) AM_DEFAULT_VERBOSITY=1;;
20689 esac
20690 if test $am_cv_make_support_nested_variables = yes; then
20691 AM_V='$(V)'
20692 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20693 else
20694 AM_V=$AM_DEFAULT_VERBOSITY
20695 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20696 fi
20697
20698 if test -n "$EXEEXT"; then
20699 am__EXEEXT_TRUE=
20700 am__EXEEXT_FALSE='#'
20701 else
20702 am__EXEEXT_TRUE='#'
20703 am__EXEEXT_FALSE=
20704 fi
20705
20706 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20707 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20709 fi
20710 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20711 as_fn_error $? "conditional \"AMDEP\" was never defined.
20712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20713 fi
20714 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20715 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20717 fi
20718 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20719 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20721 fi
20722 if test -z "${WITH_GNOME_TRUE}" && test -z "${WITH_GNOME_FALSE}"; then
20723 as_fn_error $? "conditional \"WITH_GNOME\" was never defined.
20724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20725 fi
20726 if test -z "${WITH_GTK4_TRUE}" && test -z "${WITH_GTK4_FALSE}"; then
20727 as_fn_error $? "conditional \"WITH_GTK4\" was never defined.
20728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20729 fi
20730
20731 : "${CONFIG_STATUS=./config.status}"
20732 ac_write_fail=0
20733 ac_clean_files_save=$ac_clean_files
20734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20736 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20737 as_write_fail=0
20738 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20739 #! $SHELL
20740 # Generated by $as_me.
20741 # Run this file to recreate the current configuration.
20742 # Compiler output produced by configure, useful for debugging
20743 # configure, is in config.log if it exists.
20744
20745 debug=false
20746 ac_cs_recheck=false
20747 ac_cs_silent=false
20748
20749 SHELL=\${CONFIG_SHELL-$SHELL}
20750 export SHELL
20751 _ASEOF
20752 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20753 ## -------------------- ##
20754 ## M4sh Initialization. ##
20755 ## -------------------- ##
20756
20757 # Be more Bourne compatible
20758 DUALCASE=1; export DUALCASE # for MKS sh
20759 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20760 then :
20761 emulate sh
20762 NULLCMD=:
20763 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20764 # is contrary to our usage. Disable this feature.
20765 alias -g '${1+"$@"}'='"$@"'
20766 setopt NO_GLOB_SUBST
20767 else case e in #(
20768 e) case `(set -o) 2>/dev/null` in #(
20769 *posix*) :
20770 set -o posix ;; #(
20771 *) :
20772 ;;
20773 esac ;;
20774 esac
20775 fi
20776
20777
20778
20779 # Reset variables that may have inherited troublesome values from
20780 # the environment.
20781
20782 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20783 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20784 # side effect of setting IFS to empty, thus disabling word splitting.)
20785 # Quoting is to prevent editors from complaining about space-tab.
20786 as_nl='
20787 '
20788 export as_nl
20789 IFS=" "" $as_nl"
20790
20791 PS1='$ '
20792 PS2='> '
20793 PS4='+ '
20794
20795 # Ensure predictable behavior from utilities with locale-dependent output.
20796 LC_ALL=C
20797 export LC_ALL
20798 LANGUAGE=C
20799 export LANGUAGE
20800
20801 # We cannot yet rely on "unset" to work, but we need these variables
20802 # to be unset--not just set to an empty or harmless value--now, to
20803 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20804 # also avoids known problems related to "unset" and subshell syntax
20805 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20806 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20807 do eval test \${$as_var+y} \
20808 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20809 done
20810
20811 # Ensure that fds 0, 1, and 2 are open.
20812 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20813 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20814 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20815
20816 # The user is always right.
20817 if ${PATH_SEPARATOR+false} :; then
20818 PATH_SEPARATOR=:
20819 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20820 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20821 PATH_SEPARATOR=';'
20822 }
20823 fi
20824
20825
20826 # Find who we are. Look in the path if we contain no directory separator.
20827 as_myself=
20828 case $0 in #((
20829 *[\\/]* ) as_myself=$0 ;;
20830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20831 for as_dir in $PATH
20832 do
20833 IFS=$as_save_IFS
20834 case $as_dir in #(((
20835 '') as_dir=./ ;;
20836 */) ;;
20837 *) as_dir=$as_dir/ ;;
20838 esac
20839 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20840 done
20841 IFS=$as_save_IFS
20842
20843 ;;
20844 esac
20845 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20846 # in which case we are not to be found in the path.
20847 if test "x$as_myself" = x; then
20848 as_myself=$0
20849 fi
20850 if test ! -f "$as_myself"; then
20851 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20852 exit 1
20853 fi
20854
20855
20856
20857 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20858 # ----------------------------------------
20859 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20860 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20861 # script with STATUS, using 1 if that was 0.
20862 as_fn_error ()
20863 {
20864 as_status=$1; test $as_status -eq 0 && as_status=1
20865 if test "$4"; then
20866 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20868 fi
20869 printf "%s\n" "$as_me: error: $2" >&2
20870 as_fn_exit $as_status
20871 } # as_fn_error
20872
20873
20874 # as_fn_set_status STATUS
20875 # -----------------------
20876 # Set $? to STATUS, without forking.
20877 as_fn_set_status ()
20878 {
20879 return $1
20880 } # as_fn_set_status
20881
20882 # as_fn_exit STATUS
20883 # -----------------
20884 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20885 as_fn_exit ()
20886 {
20887 set +e
20888 as_fn_set_status $1
20889 exit $1
20890 } # as_fn_exit
20891
20892 # as_fn_unset VAR
20893 # ---------------
20894 # Portably unset VAR.
20895 as_fn_unset ()
20896 {
20897 { eval $1=; unset $1;}
20898 }
20899 as_unset=as_fn_unset
20900
20901 # as_fn_append VAR VALUE
20902 # ----------------------
20903 # Append the text in VALUE to the end of the definition contained in VAR. Take
20904 # advantage of any shell optimizations that allow amortized linear growth over
20905 # repeated appends, instead of the typical quadratic growth present in naive
20906 # implementations.
20907 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20908 then :
20909 eval 'as_fn_append ()
20910 {
20911 eval $1+=\$2
20912 }'
20913 else case e in #(
20914 e) as_fn_append ()
20915 {
20916 eval $1=\$$1\$2
20917 } ;;
20918 esac
20919 fi # as_fn_append
20920
20921 # as_fn_arith ARG...
20922 # ------------------
20923 # Perform arithmetic evaluation on the ARGs, and store the result in the
20924 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20925 # must be portable across $(()) and expr.
20926 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20927 then :
20928 eval 'as_fn_arith ()
20929 {
20930 as_val=$(( $* ))
20931 }'
20932 else case e in #(
20933 e) as_fn_arith ()
20934 {
20935 as_val=`expr "$@" || test $? -eq 1`
20936 } ;;
20937 esac
20938 fi # as_fn_arith
20939
20940
20941 if expr a : '\(a\)' >/dev/null 2>&1 &&
20942 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20943 as_expr=expr
20944 else
20945 as_expr=false
20946 fi
20947
20948 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20949 as_basename=basename
20950 else
20951 as_basename=false
20952 fi
20953
20954 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20955 as_dirname=dirname
20956 else
20957 as_dirname=false
20958 fi
20959
20960 as_me=`$as_basename -- "$0" ||
20961 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20962 X"$0" : 'X\(//\)$' \| \
20963 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20964 printf "%s\n" X/"$0" |
20965 sed '/^.*\/\([^/][^/]*\)\/*$/{
20966 s//\1/
20967 q
20968 }
20969 /^X\/\(\/\/\)$/{
20970 s//\1/
20971 q
20972 }
20973 /^X\/\(\/\).*/{
20974 s//\1/
20975 q
20976 }
20977 s/.*/./; q'`
20978
20979 # Avoid depending upon Character Ranges.
20980 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20981 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20982 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20983 as_cr_digits='0123456789'
20984 as_cr_alnum=$as_cr_Letters$as_cr_digits
20985
20986
20987 # Determine whether it's possible to make 'echo' print without a newline.
20988 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20989 # for compatibility with existing Makefiles.
20990 ECHO_C= ECHO_N= ECHO_T=
20991 case `echo -n x` in #(((((
20992 -n*)
20993 case `echo 'xy\c'` in
20994 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20995 xy) ECHO_C='\c';;
20996 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20997 ECHO_T=' ';;
20998 esac;;
20999 *)
21000 ECHO_N='-n';;
21001 esac
21002
21003 # For backward compatibility with old third-party macros, we provide
21004 # the shell variables $as_echo and $as_echo_n. New code should use
21005 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21006 as_echo='printf %s\n'
21007 as_echo_n='printf %s'
21008
21009 rm -f conf$$ conf$$.exe conf$$.file
21010 if test -d conf$$.dir; then
21011 rm -f conf$$.dir/conf$$.file
21012 else
21013 rm -f conf$$.dir
21014 mkdir conf$$.dir 2>/dev/null
21015 fi
21016 if (echo >conf$$.file) 2>/dev/null; then
21017 if ln -s conf$$.file conf$$ 2>/dev/null; then
21018 as_ln_s='ln -s'
21019 # ... but there are two gotchas:
21020 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21021 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21022 # In both cases, we have to default to 'cp -pR'.
21023 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21024 as_ln_s='cp -pR'
21025 elif ln conf$$.file conf$$ 2>/dev/null; then
21026 as_ln_s=ln
21027 else
21028 as_ln_s='cp -pR'
21029 fi
21030 else
21031 as_ln_s='cp -pR'
21032 fi
21033 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21034 rmdir conf$$.dir 2>/dev/null
21035
21036
21037 # as_fn_mkdir_p
21038 # -------------
21039 # Create "$as_dir" as a directory, including parents if necessary.
21040 as_fn_mkdir_p ()
21041 {
21042
21043 case $as_dir in #(
21044 -*) as_dir=./$as_dir;;
21045 esac
21046 test -d "$as_dir" || eval $as_mkdir_p || {
21047 as_dirs=
21048 while :; do
21049 case $as_dir in #(
21050 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21051 *) as_qdir=$as_dir;;
21052 esac
21053 as_dirs="'$as_qdir' $as_dirs"
21054 as_dir=`$as_dirname -- "$as_dir" ||
21055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21056 X"$as_dir" : 'X\(//\)[^/]' \| \
21057 X"$as_dir" : 'X\(//\)$' \| \
21058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21059 printf "%s\n" X"$as_dir" |
21060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21061 s//\1/
21062 q
21063 }
21064 /^X\(\/\/\)[^/].*/{
21065 s//\1/
21066 q
21067 }
21068 /^X\(\/\/\)$/{
21069 s//\1/
21070 q
21071 }
21072 /^X\(\/\).*/{
21073 s//\1/
21074 q
21075 }
21076 s/.*/./; q'`
21077 test -d "$as_dir" && break
21078 done
21079 test -z "$as_dirs" || eval "mkdir $as_dirs"
21080 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21081
21082
21083 } # as_fn_mkdir_p
21084 if mkdir -p . 2>/dev/null; then
21085 as_mkdir_p='mkdir -p "$as_dir"'
21086 else
21087 test -d ./-p && rmdir ./-p
21088 as_mkdir_p=false
21089 fi
21090
21091
21092 # as_fn_executable_p FILE
21093 # -----------------------
21094 # Test if FILE is an executable regular file.
21095 as_fn_executable_p ()
21096 {
21097 test -f "$1" && test -x "$1"
21098 } # as_fn_executable_p
21099 as_test_x='test -x'
21100 as_executable_p=as_fn_executable_p
21101
21102 # Sed expression to map a string onto a valid CPP name.
21103 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21104 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21105
21106 # Sed expression to map a string onto a valid variable name.
21107 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21108 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21109
21110
21111 exec 6>&1
21112 ## ----------------------------------- ##
21113 ## Main body of $CONFIG_STATUS script. ##
21114 ## ----------------------------------- ##
21115 _ASEOF
21116 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21117
21118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21119 # Save the log message, to keep $0 and so on meaningful, and to
21120 # report actual input values of CONFIG_FILES etc. instead of their
21121 # values after options handling.
21122 ac_log="
21123 This file was extended by NetworkManager-l2tp $as_me 1.52.4, which was
21124 generated by GNU Autoconf 2.72. Invocation command line was
21125
21126 CONFIG_FILES = $CONFIG_FILES
21127 CONFIG_HEADERS = $CONFIG_HEADERS
21128 CONFIG_LINKS = $CONFIG_LINKS
21129 CONFIG_COMMANDS = $CONFIG_COMMANDS
21130 $ $0 $@
21131
21132 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21133 "
21134
21135 _ACEOF
21136
21137 case $ac_config_files in *"
21138 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21139 esac
21140
21141 case $ac_config_headers in *"
21142 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21143 esac
21144
21145
21146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21147 # Files that config.status was made for.
21148 config_files="$ac_config_files"
21149 config_headers="$ac_config_headers"
21150 config_commands="$ac_config_commands"
21151
21152 _ACEOF
21153
21154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21155 ac_cs_usage="\
21156 '$as_me' instantiates files and other configuration actions
21157 from templates according to the current configuration. Unless the files
21158 and actions are specified as TAGs, all are instantiated by default.
21159
21160 Usage: $0 [OPTION]... [TAG]...
21161
21162 -h, --help print this help, then exit
21163 -V, --version print version number and configuration settings, then exit
21164 --config print configuration, then exit
21165 -q, --quiet, --silent
21166 do not print progress messages
21167 -d, --debug don't remove temporary files
21168 --recheck update $as_me by reconfiguring in the same conditions
21169 --file=FILE[:TEMPLATE]
21170 instantiate the configuration file FILE
21171 --header=FILE[:TEMPLATE]
21172 instantiate the configuration header FILE
21173
21174 Configuration files:
21175 $config_files
21176
21177 Configuration headers:
21178 $config_headers
21179
21180 Configuration commands:
21181 $config_commands
21182
21183 Report bugs to <https://github.com/nm-l2tp/NetworkManager-l2tp/issues>."
21184
21185 _ACEOF
21186 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21187 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21189 ac_cs_config='$ac_cs_config_escaped'
21190 ac_cs_version="\\
21191 NetworkManager-l2tp config.status 1.52.4
21192 configured by $0, generated by GNU Autoconf 2.72,
21193 with options \\"\$ac_cs_config\\"
21194
21195 Copyright (C) 2023 Free Software Foundation, Inc.
21196 This config.status script is free software; the Free Software Foundation
21197 gives unlimited permission to copy, distribute and modify it."
21198
21199 ac_pwd='$ac_pwd'
21200 srcdir='$srcdir'
21201 INSTALL='$INSTALL'
21202 MKDIR_P='$MKDIR_P'
21203 AWK='$AWK'
21204 test -n "\$AWK" || AWK=awk
21205 _ACEOF
21206
21207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21208 # The default lists apply if the user does not specify any file.
21209 ac_need_defaults=:
21210 while test $# != 0
21211 do
21212 case $1 in
21213 --*=?*)
21214 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21215 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21216 ac_shift=:
21217 ;;
21218 --*=)
21219 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21220 ac_optarg=
21221 ac_shift=:
21222 ;;
21223 *)
21224 ac_option=$1
21225 ac_optarg=$2
21226 ac_shift=shift
21227 ;;
21228 esac
21229
21230 case $ac_option in
21231 # Handling of the options.
21232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21233 ac_cs_recheck=: ;;
21234 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21235 printf "%s\n" "$ac_cs_version"; exit ;;
21236 --config | --confi | --conf | --con | --co | --c )
21237 printf "%s\n" "$ac_cs_config"; exit ;;
21238 --debug | --debu | --deb | --de | --d | -d )
21239 debug=: ;;
21240 --file | --fil | --fi | --f )
21241 $ac_shift
21242 case $ac_optarg in
21243 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21244 '') as_fn_error $? "missing file argument" ;;
21245 esac
21246 as_fn_append CONFIG_FILES " '$ac_optarg'"
21247 ac_need_defaults=false;;
21248 --header | --heade | --head | --hea )
21249 $ac_shift
21250 case $ac_optarg in
21251 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21252 esac
21253 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21254 ac_need_defaults=false;;
21255 --he | --h)
21256 # Conflict between --help and --header
21257 as_fn_error $? "ambiguous option: '$1'
21258 Try '$0 --help' for more information.";;
21259 --help | --hel | -h )
21260 printf "%s\n" "$ac_cs_usage"; exit ;;
21261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21262 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21263 ac_cs_silent=: ;;
21264
21265 # This is an error.
21266 -*) as_fn_error $? "unrecognized option: '$1'
21267 Try '$0 --help' for more information." ;;
21268
21269 *) as_fn_append ac_config_targets " $1"
21270 ac_need_defaults=false ;;
21271
21272 esac
21273 shift
21274 done
21275
21276 ac_configure_extra_args=
21277
21278 if $ac_cs_silent; then
21279 exec 6>/dev/null
21280 ac_configure_extra_args="$ac_configure_extra_args --silent"
21281 fi
21282
21283 _ACEOF
21284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21285 if \$ac_cs_recheck; then
21286 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21287 shift
21288 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21289 CONFIG_SHELL='$SHELL'
21290 export CONFIG_SHELL
21291 exec "\$@"
21292 fi
21293
21294 _ACEOF
21295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21296 exec 5>>config.log
21297 {
21298 echo
21299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21300 ## Running $as_me. ##
21301 _ASBOX
21302 printf "%s\n" "$ac_log"
21303 } >&5
21304
21305 _ACEOF
21306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21307 #
21308 # INIT-COMMANDS
21309 #
21310 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21311
21312
21313 # The HP-UX ksh and POSIX shell print the target directory to stdout
21314 # if CDPATH is set.
21315 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21316
21317 sed_quote_subst='$sed_quote_subst'
21318 double_quote_subst='$double_quote_subst'
21319 delay_variable_subst='$delay_variable_subst'
21320 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21321 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21322 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21323 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21324 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21325 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21326 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21327 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21328 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21329 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21330 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21331 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21332 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21333 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21334 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21335 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21336 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21337 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21338 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21339 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21340 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21341 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21342 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21343 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21344 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21345 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21346 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21347 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21348 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21349 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21350 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21351 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21352 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21353 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21354 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21355 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21356 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21357 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21358 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21359 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21360 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21361 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21362 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21363 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21364 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21365 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21366 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21367 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21368 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21369 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21370 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21371 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21372 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21373 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21374 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21375 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21376 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21377 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21378 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21379 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21380 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"`'
21381 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21382 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21383 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21384 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21385 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21386 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21387 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21388 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21389 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21390 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21391 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21392 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21393 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21394 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21395 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21396 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21397 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21398 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21399 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21400 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21401 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21402 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21403 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21404 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21405 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21406 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21407 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21408 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21409 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21410 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21411 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21412 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21413 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21414 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21415 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21416 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21417 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21418 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21419 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21420 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21421 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21422 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21423 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21424 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21425 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21426 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21427 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21428 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21429 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21430 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21431 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21432 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21433 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21434 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21435 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21436 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21437 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21438 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21439 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21440 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21441 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21442 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21443 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21444 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21445 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21446 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21447 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21448 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21449 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21450 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21451 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21452 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21453 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21454 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21455 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21456 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21457
21458 LTCC='$LTCC'
21459 LTCFLAGS='$LTCFLAGS'
21460 compiler='$compiler_DEFAULT'
21461
21462 # A function that is used when there is no print builtin or printf.
21463 func_fallback_echo ()
21464 {
21465 eval 'cat <<_LTECHO_EOF
21466 \$1
21467 _LTECHO_EOF'
21468 }
21469
21470 # Quote evaled strings.
21471 for var in SHELL \
21472 ECHO \
21473 PATH_SEPARATOR \
21474 SED \
21475 GREP \
21476 EGREP \
21477 FGREP \
21478 LD \
21479 NM \
21480 LN_S \
21481 lt_SP2NL \
21482 lt_NL2SP \
21483 reload_flag \
21484 FILECMD \
21485 OBJDUMP \
21486 deplibs_check_method \
21487 file_magic_cmd \
21488 file_magic_glob \
21489 want_nocaseglob \
21490 DLLTOOL \
21491 sharedlib_from_linklib_cmd \
21492 AR \
21493 archiver_list_spec \
21494 STRIP \
21495 RANLIB \
21496 CC \
21497 CFLAGS \
21498 compiler \
21499 lt_cv_sys_global_symbol_pipe \
21500 lt_cv_sys_global_symbol_to_cdecl \
21501 lt_cv_sys_global_symbol_to_import \
21502 lt_cv_sys_global_symbol_to_c_name_address \
21503 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21504 lt_cv_nm_interface \
21505 nm_file_list_spec \
21506 lt_cv_truncate_bin \
21507 lt_prog_compiler_no_builtin_flag \
21508 lt_prog_compiler_pic \
21509 lt_prog_compiler_wl \
21510 lt_prog_compiler_static \
21511 lt_cv_prog_compiler_c_o \
21512 need_locks \
21513 MANIFEST_TOOL \
21514 DSYMUTIL \
21515 NMEDIT \
21516 LIPO \
21517 OTOOL \
21518 OTOOL64 \
21519 shrext_cmds \
21520 export_dynamic_flag_spec \
21521 whole_archive_flag_spec \
21522 compiler_needs_object \
21523 with_gnu_ld \
21524 allow_undefined_flag \
21525 no_undefined_flag \
21526 hardcode_libdir_flag_spec \
21527 hardcode_libdir_separator \
21528 exclude_expsyms \
21529 include_expsyms \
21530 file_list_spec \
21531 variables_saved_for_relink \
21532 libname_spec \
21533 library_names_spec \
21534 soname_spec \
21535 install_override_mode \
21536 finish_eval \
21537 old_striplib \
21538 striplib; do
21539 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21540 *[\\\\\\\`\\"\\\$]*)
21541 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21542 ;;
21543 *)
21544 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21545 ;;
21546 esac
21547 done
21548
21549 # Double-quote double-evaled strings.
21550 for var in reload_cmds \
21551 old_postinstall_cmds \
21552 old_postuninstall_cmds \
21553 old_archive_cmds \
21554 extract_expsyms_cmds \
21555 old_archive_from_new_cmds \
21556 old_archive_from_expsyms_cmds \
21557 archive_cmds \
21558 archive_expsym_cmds \
21559 module_cmds \
21560 module_expsym_cmds \
21561 export_symbols_cmds \
21562 prelink_cmds \
21563 postlink_cmds \
21564 postinstall_cmds \
21565 postuninstall_cmds \
21566 finish_cmds \
21567 sys_lib_search_path_spec \
21568 configure_time_dlsearch_path \
21569 configure_time_lt_sys_library_path; do
21570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21571 *[\\\\\\\`\\"\\\$]*)
21572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21573 ;;
21574 *)
21575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21576 ;;
21577 esac
21578 done
21579
21580 ac_aux_dir='$ac_aux_dir'
21581
21582 # See if we are running on zsh, and set the options that allow our
21583 # commands through without removal of \ escapes INIT.
21584 if test -n "\${ZSH_VERSION+set}"; then
21585 setopt NO_GLOB_SUBST
21586 fi
21587
21588
21589 PACKAGE='$PACKAGE'
21590 VERSION='$VERSION'
21591 RM='$RM'
21592 ofile='$ofile'
21593
21594
21595
21596 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21597 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
21598 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
21599 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21600 LINGUAS="${LINGUAS-%UNSET%}"
21601
21602
21603 _ACEOF
21604
21605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21606
21607 # Handling of arguments.
21608 for ac_config_target in $ac_config_targets
21609 do
21610 case $ac_config_target in
21611 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21612 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21613 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21614 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21615 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21616 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21617
21618 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21619 esac
21620 done
21621
21622
21623 # If the user did not use the arguments to specify the items to instantiate,
21624 # then the envvar interface is used. Set only those that are not.
21625 # We use the long form for the default assignment because of an extremely
21626 # bizarre bug on SunOS 4.1.3.
21627 if $ac_need_defaults; then
21628 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21629 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21630 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21631 fi
21632
21633 # Have a temporary directory for convenience. Make it in the build tree
21634 # simply because there is no reason against having it here, and in addition,
21635 # creating and moving files from /tmp can sometimes cause problems.
21636 # Hook for its removal unless debugging.
21637 # Note that there is a small window in which the directory will not be cleaned:
21638 # after its creation but before its name has been assigned to '$tmp'.
21639 $debug ||
21640 {
21641 tmp= ac_tmp=
21642 trap 'exit_status=$?
21643 : "${ac_tmp:=$tmp}"
21644 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21645 ' 0
21646 trap 'as_fn_exit 1' 1 2 13 15
21647 }
21648 # Create a (secure) tmp directory for tmp files.
21649
21650 {
21651 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21652 test -d "$tmp"
21653 } ||
21654 {
21655 tmp=./conf$$-$RANDOM
21656 (umask 077 && mkdir "$tmp")
21657 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21658 ac_tmp=$tmp
21659
21660 # Set up the scripts for CONFIG_FILES section.
21661 # No need to generate them if there are no CONFIG_FILES.
21662 # This happens for instance with './config.status config.h'.
21663 if test -n "$CONFIG_FILES"; then
21664
21665
21666 ac_cr=`echo X | tr X '\015'`
21667 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21668 # But we know of no other shell where ac_cr would be empty at this
21669 # point, so we can use a bashism as a fallback.
21670 if test "x$ac_cr" = x; then
21671 eval ac_cr=\$\'\\r\'
21672 fi
21673 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21674 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21675 ac_cs_awk_cr='\\r'
21676 else
21677 ac_cs_awk_cr=$ac_cr
21678 fi
21679
21680 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21681 _ACEOF
21682
21683
21684 {
21685 echo "cat >conf$$subs.awk <<_ACEOF" &&
21686 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21687 echo "_ACEOF"
21688 } >conf$$subs.sh ||
21689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21690 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21691 ac_delim='%!_!# '
21692 for ac_last_try in false false false false false :; do
21693 . ./conf$$subs.sh ||
21694 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21695
21696 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21697 if test $ac_delim_n = $ac_delim_num; then
21698 break
21699 elif $ac_last_try; then
21700 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21701 else
21702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21703 fi
21704 done
21705 rm -f conf$$subs.sh
21706
21707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21708 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21709 _ACEOF
21710 sed -n '
21711 h
21712 s/^/S["/; s/!.*/"]=/
21713 p
21714 g
21715 s/^[^!]*!//
21716 :repl
21717 t repl
21718 s/'"$ac_delim"'$//
21719 t delim
21720 :nl
21721 h
21722 s/\(.\{148\}\)..*/\1/
21723 t more1
21724 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21725 p
21726 n
21727 b repl
21728 :more1
21729 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21730 p
21731 g
21732 s/.\{148\}//
21733 t nl
21734 :delim
21735 h
21736 s/\(.\{148\}\)..*/\1/
21737 t more2
21738 s/["\\]/\\&/g; s/^/"/; s/$/"/
21739 p
21740 b
21741 :more2
21742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21743 p
21744 g
21745 s/.\{148\}//
21746 t delim
21747 ' <conf$$subs.awk | sed '
21748 /^[^""]/{
21749 N
21750 s/\n//
21751 }
21752 ' >>$CONFIG_STATUS || ac_write_fail=1
21753 rm -f conf$$subs.awk
21754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21755 _ACAWK
21756 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21757 for (key in S) S_is_set[key] = 1
21758 FS = ""
21759
21760 }
21761 {
21762 line = $ 0
21763 nfields = split(line, field, "@")
21764 substed = 0
21765 len = length(field[1])
21766 for (i = 2; i < nfields; i++) {
21767 key = field[i]
21768 keylen = length(key)
21769 if (S_is_set[key]) {
21770 value = S[key]
21771 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21772 len += length(value) + length(field[++i])
21773 substed = 1
21774 } else
21775 len += 1 + keylen
21776 }
21777
21778 print line
21779 }
21780
21781 _ACAWK
21782 _ACEOF
21783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21784 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21785 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21786 else
21787 cat
21788 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21789 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21790 _ACEOF
21791
21792 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21793 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21794 # trailing colons and then remove the whole line if VPATH becomes empty
21795 # (actually we leave an empty line to preserve line numbers).
21796 if test "x$srcdir" = x.; then
21797 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21798 h
21799 s///
21800 s/^/:/
21801 s/[ ]*$/:/
21802 s/:\$(srcdir):/:/g
21803 s/:\${srcdir}:/:/g
21804 s/:@srcdir@:/:/g
21805 s/^:*//
21806 s/:*$//
21807 x
21808 s/\(=[ ]*\).*/\1/
21809 G
21810 s/\n//
21811 s/^[^=]*=[ ]*$//
21812 }'
21813 fi
21814
21815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21816 fi # test -n "$CONFIG_FILES"
21817
21818 # Set up the scripts for CONFIG_HEADERS section.
21819 # No need to generate them if there are no CONFIG_HEADERS.
21820 # This happens for instance with './config.status Makefile'.
21821 if test -n "$CONFIG_HEADERS"; then
21822 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21823 BEGIN {
21824 _ACEOF
21825
21826 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21827 # here-document in config.status, that substitutes the proper values into
21828 # config.h.in to produce config.h.
21829
21830 # Create a delimiter string that does not exist in confdefs.h, to ease
21831 # handling of long lines.
21832 ac_delim='%!_!# '
21833 for ac_last_try in false false :; do
21834 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21835 if test -z "$ac_tt"; then
21836 break
21837 elif $ac_last_try; then
21838 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21839 else
21840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21841 fi
21842 done
21843
21844 # For the awk script, D is an array of macro values keyed by name,
21845 # likewise P contains macro parameters if any. Preserve backslash
21846 # newline sequences.
21847
21848 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21849 sed -n '
21850 s/.\{148\}/&'"$ac_delim"'/g
21851 t rset
21852 :rset
21853 s/^[ ]*#[ ]*define[ ][ ]*/ /
21854 t def
21855 d
21856 :def
21857 s/\\$//
21858 t bsnl
21859 s/["\\]/\\&/g
21860 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21861 D["\1"]=" \3"/p
21862 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21863 d
21864 :bsnl
21865 s/["\\]/\\&/g
21866 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21867 D["\1"]=" \3\\\\\\n"\\/p
21868 t cont
21869 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21870 t cont
21871 d
21872 :cont
21873 n
21874 s/.\{148\}/&'"$ac_delim"'/g
21875 t clear
21876 :clear
21877 s/\\$//
21878 t bsnlc
21879 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21880 d
21881 :bsnlc
21882 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21883 b cont
21884 ' <confdefs.h | sed '
21885 s/'"$ac_delim"'/"\\\
21886 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21887
21888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21889 for (key in D) D_is_set[key] = 1
21890 FS = ""
21891 }
21892 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21893 line = \$ 0
21894 split(line, arg, " ")
21895 if (arg[1] == "#") {
21896 defundef = arg[2]
21897 mac1 = arg[3]
21898 } else {
21899 defundef = substr(arg[1], 2)
21900 mac1 = arg[2]
21901 }
21902 split(mac1, mac2, "(") #)
21903 macro = mac2[1]
21904 prefix = substr(line, 1, index(line, defundef) - 1)
21905 if (D_is_set[macro]) {
21906 # Preserve the white space surrounding the "#".
21907 print prefix "define", macro P[macro] D[macro]
21908 next
21909 } else {
21910 # Replace #undef with comments. This is necessary, for example,
21911 # in the case of _POSIX_SOURCE, which is predefined and required
21912 # on some systems where configure will not decide to define it.
21913 if (defundef == "undef") {
21914 print "/*", prefix defundef, macro, "*/"
21915 next
21916 }
21917 }
21918 }
21919 { print }
21920 _ACAWK
21921 _ACEOF
21922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21923 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21924 fi # test -n "$CONFIG_HEADERS"
21925
21926
21927 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21928 shift
21929 for ac_tag
21930 do
21931 case $ac_tag in
21932 :[FHLC]) ac_mode=$ac_tag; continue;;
21933 esac
21934 case $ac_mode$ac_tag in
21935 :[FHL]*:*);;
21936 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21937 :[FH]-) ac_tag=-:-;;
21938 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21939 esac
21940 ac_save_IFS=$IFS
21941 IFS=:
21942 set x $ac_tag
21943 IFS=$ac_save_IFS
21944 shift
21945 ac_file=$1
21946 shift
21947
21948 case $ac_mode in
21949 :L) ac_source=$1;;
21950 :[FH])
21951 ac_file_inputs=
21952 for ac_f
21953 do
21954 case $ac_f in
21955 -) ac_f="$ac_tmp/stdin";;
21956 *) # Look for the file first in the build tree, then in the source tree
21957 # (if the path is not absolute). The absolute path cannot be DOS-style,
21958 # because $ac_f cannot contain ':'.
21959 test -f "$ac_f" ||
21960 case $ac_f in
21961 [\\/$]*) false;;
21962 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21963 esac ||
21964 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21965 esac
21966 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21967 as_fn_append ac_file_inputs " '$ac_f'"
21968 done
21969
21970 # Let's still pretend it is 'configure' which instantiates (i.e., don't
21971 # use $as_me), people would be surprised to read:
21972 # /* config.h. Generated by config.status. */
21973 configure_input='Generated from '`
21974 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21975 `' by configure.'
21976 if test x"$ac_file" != x-; then
21977 configure_input="$ac_file. $configure_input"
21978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21979 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21980 fi
21981 # Neutralize special characters interpreted by sed in replacement strings.
21982 case $configure_input in #(
21983 *\&* | *\|* | *\\* )
21984 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21985 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21986 *) ac_sed_conf_input=$configure_input;;
21987 esac
21988
21989 case $ac_tag in
21990 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21992 esac
21993 ;;
21994 esac
21995
21996 ac_dir=`$as_dirname -- "$ac_file" ||
21997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21998 X"$ac_file" : 'X\(//\)[^/]' \| \
21999 X"$ac_file" : 'X\(//\)$' \| \
22000 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22001 printf "%s\n" X"$ac_file" |
22002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22003 s//\1/
22004 q
22005 }
22006 /^X\(\/\/\)[^/].*/{
22007 s//\1/
22008 q
22009 }
22010 /^X\(\/\/\)$/{
22011 s//\1/
22012 q
22013 }
22014 /^X\(\/\).*/{
22015 s//\1/
22016 q
22017 }
22018 s/.*/./; q'`
22019 as_dir="$ac_dir"; as_fn_mkdir_p
22020 ac_builddir=.
22021
22022 case "$ac_dir" in
22023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22024 *)
22025 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22026 # A ".." for each directory in $ac_dir_suffix.
22027 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22028 case $ac_top_builddir_sub in
22029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22031 esac ;;
22032 esac
22033 ac_abs_top_builddir=$ac_pwd
22034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22035 # for backward compatibility:
22036 ac_top_builddir=$ac_top_build_prefix
22037
22038 case $srcdir in
22039 .) # We are building in place.
22040 ac_srcdir=.
22041 ac_top_srcdir=$ac_top_builddir_sub
22042 ac_abs_top_srcdir=$ac_pwd ;;
22043 [\\/]* | ?:[\\/]* ) # Absolute name.
22044 ac_srcdir=$srcdir$ac_dir_suffix;
22045 ac_top_srcdir=$srcdir
22046 ac_abs_top_srcdir=$srcdir ;;
22047 *) # Relative name.
22048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22049 ac_top_srcdir=$ac_top_build_prefix$srcdir
22050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22051 esac
22052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22053
22054
22055 case $ac_mode in
22056 :F)
22057 #
22058 # CONFIG_FILE
22059 #
22060
22061 case $INSTALL in
22062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22064 esac
22065 ac_MKDIR_P=$MKDIR_P
22066 case $MKDIR_P in
22067 [\\/$]* | ?:[\\/]* ) ;;
22068 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22069 esac
22070 _ACEOF
22071
22072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22073 # If the template does not know about datarootdir, expand it.
22074 # FIXME: This hack should be removed a few years after 2.60.
22075 ac_datarootdir_hack=; ac_datarootdir_seen=
22076 ac_sed_dataroot='
22077 /datarootdir/ {
22078 p
22079 q
22080 }
22081 /@datadir@/p
22082 /@docdir@/p
22083 /@infodir@/p
22084 /@localedir@/p
22085 /@mandir@/p'
22086 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22087 *datarootdir*) ac_datarootdir_seen=yes;;
22088 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22090 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22091 _ACEOF
22092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22093 ac_datarootdir_hack='
22094 s&@datadir@&$datadir&g
22095 s&@docdir@&$docdir&g
22096 s&@infodir@&$infodir&g
22097 s&@localedir@&$localedir&g
22098 s&@mandir@&$mandir&g
22099 s&\\\${datarootdir}&$datarootdir&g' ;;
22100 esac
22101 _ACEOF
22102
22103 # Neutralize VPATH when '$srcdir' = '.'.
22104 # Shell code in configure.ac might set extrasub.
22105 # FIXME: do we really want to maintain this feature?
22106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22107 ac_sed_extra="$ac_vpsub
22108 $extrasub
22109 _ACEOF
22110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22111 :t
22112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22113 s|@configure_input@|$ac_sed_conf_input|;t t
22114 s&@top_builddir@&$ac_top_builddir_sub&;t t
22115 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22116 s&@srcdir@&$ac_srcdir&;t t
22117 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22118 s&@top_srcdir@&$ac_top_srcdir&;t t
22119 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22120 s&@builddir@&$ac_builddir&;t t
22121 s&@abs_builddir@&$ac_abs_builddir&;t t
22122 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22123 s&@INSTALL@&$ac_INSTALL&;t t
22124 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22125 $ac_datarootdir_hack
22126 "
22127 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22128 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22129
22130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22131 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22132 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22133 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22135 which seems to be undefined. Please make sure it is defined" >&5
22136 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22137 which seems to be undefined. Please make sure it is defined" >&2;}
22138
22139 rm -f "$ac_tmp/stdin"
22140 case $ac_file in
22141 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22142 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22143 esac \
22144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22145 ;;
22146 :H)
22147 #
22148 # CONFIG_HEADER
22149 #
22150 if test x"$ac_file" != x-; then
22151 {
22152 printf "%s\n" "/* $configure_input */" >&1 \
22153 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22154 } >"$ac_tmp/config.h" \
22155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22156 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22158 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22159 else
22160 rm -f "$ac_file"
22161 mv "$ac_tmp/config.h" "$ac_file" \
22162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22163 fi
22164 else
22165 printf "%s\n" "/* $configure_input */" >&1 \
22166 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22167 || as_fn_error $? "could not create -" "$LINENO" 5
22168 fi
22169 # Compute "$ac_file"'s index in $config_headers.
22170 _am_arg="$ac_file"
22171 _am_stamp_count=1
22172 for _am_header in $config_headers :; do
22173 case $_am_header in
22174 $_am_arg | $_am_arg:* )
22175 break ;;
22176 * )
22177 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22178 esac
22179 done
22180 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22181 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22182 X"$_am_arg" : 'X\(//\)[^/]' \| \
22183 X"$_am_arg" : 'X\(//\)$' \| \
22184 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22185 printf "%s\n" X"$_am_arg" |
22186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22187 s//\1/
22188 q
22189 }
22190 /^X\(\/\/\)[^/].*/{
22191 s//\1/
22192 q
22193 }
22194 /^X\(\/\/\)$/{
22195 s//\1/
22196 q
22197 }
22198 /^X\(\/\).*/{
22199 s//\1/
22200 q
22201 }
22202 s/.*/./; q'`/stamp-h$_am_stamp_count
22203 ;;
22204
22205 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22206 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22207 ;;
22208 esac
22209
22210
22211 case $ac_file$ac_mode in
22212 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22213 # Older Autoconf quotes --file arguments for eval, but not when files
22214 # are listed without --file. Let's play safe and only enable the eval
22215 # if we detect the quoting.
22216 # TODO: see whether this extra hack can be removed once we start
22217 # requiring Autoconf 2.70 or later.
22218 case $CONFIG_FILES in #(
22219 *\'*) :
22220 eval set x "$CONFIG_FILES" ;; #(
22221 *) :
22222 set x $CONFIG_FILES ;; #(
22223 *) :
22224 ;;
22225 esac
22226 shift
22227 # Used to flag and report bootstrapping failures.
22228 am_rc=0
22229 for am_mf
22230 do
22231 # Strip MF so we end up with the name of the file.
22232 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22233 # Check whether this is an Automake generated Makefile which includes
22234 # dependency-tracking related rules and includes.
22235 # Grep'ing the whole file directly is not great: AIX grep has a line
22236 # limit of 2048, but all sed's we know have understand at least 4000.
22237 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22238 || continue
22239 am_dirpart=`$as_dirname -- "$am_mf" ||
22240 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22241 X"$am_mf" : 'X\(//\)[^/]' \| \
22242 X"$am_mf" : 'X\(//\)$' \| \
22243 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22244 printf "%s\n" X"$am_mf" |
22245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22246 s//\1/
22247 q
22248 }
22249 /^X\(\/\/\)[^/].*/{
22250 s//\1/
22251 q
22252 }
22253 /^X\(\/\/\)$/{
22254 s//\1/
22255 q
22256 }
22257 /^X\(\/\).*/{
22258 s//\1/
22259 q
22260 }
22261 s/.*/./; q'`
22262 am_filepart=`$as_basename -- "$am_mf" ||
22263 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22264 X"$am_mf" : 'X\(//\)$' \| \
22265 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22266 printf "%s\n" X/"$am_mf" |
22267 sed '/^.*\/\([^/][^/]*\)\/*$/{
22268 s//\1/
22269 q
22270 }
22271 /^X\/\(\/\/\)$/{
22272 s//\1/
22273 q
22274 }
22275 /^X\/\(\/\).*/{
22276 s//\1/
22277 q
22278 }
22279 s/.*/./; q'`
22280 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22281 && sed -e '/# am--include-marker/d' "$am_filepart" \
22282 | $MAKE -f - am--depfiles" >&5
22283 (cd "$am_dirpart" \
22284 && sed -e '/# am--include-marker/d' "$am_filepart" \
22285 | $MAKE -f - am--depfiles) >&5 2>&5
22286 ac_status=$?
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } || am_rc=$?
22289 done
22290 if test $am_rc -ne 0; then
22291 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22292 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22293 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22294 for automatic dependency tracking. If GNU make was not used, consider
22295 re-running the configure script with MAKE=\"gmake\" (or whatever is
22296 necessary). You can also try re-running configure with the
22297 '--disable-dependency-tracking' option to at least be able to build
22298 the package (albeit without support for automatic dependency tracking).
22299 See 'config.log' for more details" "$LINENO" 5; }
22300 fi
22301 { am_dirpart=; unset am_dirpart;}
22302 { am_filepart=; unset am_filepart;}
22303 { am_mf=; unset am_mf;}
22304 { am_rc=; unset am_rc;}
22305 rm -f conftest-deps.mk
22306 }
22307 ;;
22308 "libtool":C)
22309
22310 # See if we are running on zsh, and set the options that allow our
22311 # commands through without removal of \ escapes.
22312 if test -n "${ZSH_VERSION+set}"; then
22313 setopt NO_GLOB_SUBST
22314 fi
22315
22316 cfgfile=${ofile}T
22317 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22318 $RM "$cfgfile"
22319
22320 cat <<_LT_EOF >> "$cfgfile"
22321 #! $SHELL
22322 # Generated automatically by $as_me ($PACKAGE) $VERSION
22323 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22324
22325 # Provide generalized library-building support services.
22326 # Written by Gordon Matzigkeit, 1996
22327
22328 # Copyright (C) 2024 Free Software Foundation, Inc.
22329 # This is free software; see the source for copying conditions. There is NO
22330 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22331
22332 # GNU Libtool is free software; you can redistribute it and/or modify
22333 # it under the terms of the GNU General Public License as published by
22334 # the Free Software Foundation; either version 2 of the License, or
22335 # (at your option) any later version.
22336 #
22337 # As a special exception to the GNU General Public License, if you
22338 # distribute this file as part of a program or library that is built
22339 # using GNU Libtool, you may include this file under the same
22340 # distribution terms that you use for the rest of that program.
22341 #
22342 # GNU Libtool is distributed in the hope that it will be useful, but
22343 # WITHOUT ANY WARRANTY; without even the implied warranty of
22344 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22345 # GNU General Public License for more details.
22346 #
22347 # You should have received a copy of the GNU General Public License
22348 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22349
22350
22351 # The names of the tagged configurations supported by this script.
22352 available_tags=''
22353
22354 # Configured defaults for sys_lib_dlsearch_path munging.
22355 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22356
22357 # ### BEGIN LIBTOOL CONFIG
22358
22359 # Which release of libtool.m4 was used?
22360 macro_version=$macro_version
22361 macro_revision=$macro_revision
22362
22363 # Whether or not to build static libraries.
22364 build_old_libs=$enable_static
22365
22366 # Whether or not to build shared libraries.
22367 build_libtool_libs=$enable_shared
22368
22369 # What type of objects to build.
22370 pic_mode=$pic_mode
22371
22372 # Whether or not to optimize for fast installation.
22373 fast_install=$enable_fast_install
22374
22375 # Shared archive member basename,for filename based shared library versioning on AIX.
22376 shared_archive_member_spec=$shared_archive_member_spec
22377
22378 # Shell to use when invoking shell scripts.
22379 SHELL=$lt_SHELL
22380
22381 # An echo program that protects backslashes.
22382 ECHO=$lt_ECHO
22383
22384 # The PATH separator for the build system.
22385 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22386
22387 # The host system.
22388 host_alias=$host_alias
22389 host=$host
22390 host_os=$host_os
22391
22392 # The build system.
22393 build_alias=$build_alias
22394 build=$build
22395 build_os=$build_os
22396
22397 # A sed program that does not truncate output.
22398 SED=$lt_SED
22399
22400 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22401 Xsed="\$SED -e 1s/^X//"
22402
22403 # A grep program that handles long lines.
22404 GREP=$lt_GREP
22405
22406 # An ERE matcher.
22407 EGREP=$lt_EGREP
22408
22409 # A literal string matcher.
22410 FGREP=$lt_FGREP
22411
22412 # A BSD- or MS-compatible name lister.
22413 NM=$lt_NM
22414
22415 # Whether we need soft or hard links.
22416 LN_S=$lt_LN_S
22417
22418 # What is the maximum length of a command?
22419 max_cmd_len=$max_cmd_len
22420
22421 # Object file suffix (normally "o").
22422 objext=$ac_objext
22423
22424 # Executable file suffix (normally "").
22425 exeext=$exeext
22426
22427 # whether the shell understands "unset".
22428 lt_unset=$lt_unset
22429
22430 # turn spaces into newlines.
22431 SP2NL=$lt_lt_SP2NL
22432
22433 # turn newlines into spaces.
22434 NL2SP=$lt_lt_NL2SP
22435
22436 # convert \$build file names to \$host format.
22437 to_host_file_cmd=$lt_cv_to_host_file_cmd
22438
22439 # convert \$build files to toolchain format.
22440 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22441
22442 # A file(cmd) program that detects file types.
22443 FILECMD=$lt_FILECMD
22444
22445 # An object symbol dumper.
22446 OBJDUMP=$lt_OBJDUMP
22447
22448 # Method to check whether dependent libraries are shared objects.
22449 deplibs_check_method=$lt_deplibs_check_method
22450
22451 # Command to use when deplibs_check_method = "file_magic".
22452 file_magic_cmd=$lt_file_magic_cmd
22453
22454 # How to find potential files when deplibs_check_method = "file_magic".
22455 file_magic_glob=$lt_file_magic_glob
22456
22457 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22458 want_nocaseglob=$lt_want_nocaseglob
22459
22460 # DLL creation program.
22461 DLLTOOL=$lt_DLLTOOL
22462
22463 # Command to associate shared and link libraries.
22464 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22465
22466 # The archiver.
22467 AR=$lt_AR
22468
22469 # Flags to create an archive (by configure).
22470 lt_ar_flags=$lt_ar_flags
22471
22472 # Flags to create an archive.
22473 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22474
22475 # How to feed a file listing to the archiver.
22476 archiver_list_spec=$lt_archiver_list_spec
22477
22478 # A symbol stripping program.
22479 STRIP=$lt_STRIP
22480
22481 # Commands used to install an old-style archive.
22482 RANLIB=$lt_RANLIB
22483 old_postinstall_cmds=$lt_old_postinstall_cmds
22484 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22485
22486 # Whether to use a lock for old archive extraction.
22487 lock_old_archive_extraction=$lock_old_archive_extraction
22488
22489 # A C compiler.
22490 LTCC=$lt_CC
22491
22492 # LTCC compiler flags.
22493 LTCFLAGS=$lt_CFLAGS
22494
22495 # Take the output of nm and produce a listing of raw symbols and C names.
22496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22497
22498 # Transform the output of nm in a proper C declaration.
22499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22500
22501 # Transform the output of nm into a list of symbols to manually relocate.
22502 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22503
22504 # Transform the output of nm in a C name address pair.
22505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22506
22507 # Transform the output of nm in a C name address pair when lib prefix is needed.
22508 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22509
22510 # The name lister interface.
22511 nm_interface=$lt_lt_cv_nm_interface
22512
22513 # Specify filename containing input files for \$NM.
22514 nm_file_list_spec=$lt_nm_file_list_spec
22515
22516 # The root where to search for dependent libraries,and where our libraries should be installed.
22517 lt_sysroot=$lt_sysroot
22518
22519 # Command to truncate a binary pipe.
22520 lt_truncate_bin=$lt_lt_cv_truncate_bin
22521
22522 # The name of the directory that contains temporary libtool files.
22523 objdir=$objdir
22524
22525 # Used to examine libraries when file_magic_cmd begins with "file".
22526 MAGIC_CMD=$MAGIC_CMD
22527
22528 # Must we lock files when doing compilation?
22529 need_locks=$lt_need_locks
22530
22531 # Manifest tool.
22532 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22533
22534 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22535 DSYMUTIL=$lt_DSYMUTIL
22536
22537 # Tool to change global to local symbols on Mac OS X.
22538 NMEDIT=$lt_NMEDIT
22539
22540 # Tool to manipulate fat objects and archives on Mac OS X.
22541 LIPO=$lt_LIPO
22542
22543 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22544 OTOOL=$lt_OTOOL
22545
22546 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22547 OTOOL64=$lt_OTOOL64
22548
22549 # Old archive suffix (normally "a").
22550 libext=$libext
22551
22552 # Shared library suffix (normally ".so").
22553 shrext_cmds=$lt_shrext_cmds
22554
22555 # The commands to extract the exported symbol list from a shared archive.
22556 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22557
22558 # Variables whose values should be saved in libtool wrapper scripts and
22559 # restored at link time.
22560 variables_saved_for_relink=$lt_variables_saved_for_relink
22561
22562 # Do we need the "lib" prefix for modules?
22563 need_lib_prefix=$need_lib_prefix
22564
22565 # Do we need a version for libraries?
22566 need_version=$need_version
22567
22568 # Library versioning type.
22569 version_type=$version_type
22570
22571 # Shared library runtime path variable.
22572 runpath_var=$runpath_var
22573
22574 # Shared library path variable.
22575 shlibpath_var=$shlibpath_var
22576
22577 # Is shlibpath searched before the hard-coded library search path?
22578 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22579
22580 # Format of library name prefix.
22581 libname_spec=$lt_libname_spec
22582
22583 # List of archive names. First name is the real one, the rest are links.
22584 # The last name is the one that the linker finds with -lNAME
22585 library_names_spec=$lt_library_names_spec
22586
22587 # The coded name of the library, if different from the real name.
22588 soname_spec=$lt_soname_spec
22589
22590 # Permission mode override for installation of shared libraries.
22591 install_override_mode=$lt_install_override_mode
22592
22593 # Command to use after installation of a shared archive.
22594 postinstall_cmds=$lt_postinstall_cmds
22595
22596 # Command to use after uninstallation of a shared archive.
22597 postuninstall_cmds=$lt_postuninstall_cmds
22598
22599 # Commands used to finish a libtool library installation in a directory.
22600 finish_cmds=$lt_finish_cmds
22601
22602 # As "finish_cmds", except a single script fragment to be evaled but
22603 # not shown.
22604 finish_eval=$lt_finish_eval
22605
22606 # Whether we should hardcode library paths into libraries.
22607 hardcode_into_libs=$hardcode_into_libs
22608
22609 # Compile-time system search path for libraries.
22610 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22611
22612 # Detected run-time system search path for libraries.
22613 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22614
22615 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22616 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22617
22618 # Whether dlopen is supported.
22619 dlopen_support=$enable_dlopen
22620
22621 # Whether dlopen of programs is supported.
22622 dlopen_self=$enable_dlopen_self
22623
22624 # Whether dlopen of statically linked programs is supported.
22625 dlopen_self_static=$enable_dlopen_self_static
22626
22627 # Commands to strip libraries.
22628 old_striplib=$lt_old_striplib
22629 striplib=$lt_striplib
22630
22631
22632 # The linker used to build libraries.
22633 LD=$lt_LD
22634
22635 # How to create reloadable object files.
22636 reload_flag=$lt_reload_flag
22637 reload_cmds=$lt_reload_cmds
22638
22639 # Commands used to build an old-style archive.
22640 old_archive_cmds=$lt_old_archive_cmds
22641
22642 # A language specific compiler.
22643 CC=$lt_compiler
22644
22645 # Is the compiler the GNU compiler?
22646 with_gcc=$GCC
22647
22648 # Compiler flag to turn off builtin functions.
22649 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22650
22651 # Additional compiler flags for building library objects.
22652 pic_flag=$lt_lt_prog_compiler_pic
22653
22654 # How to pass a linker flag through the compiler.
22655 wl=$lt_lt_prog_compiler_wl
22656
22657 # Compiler flag to prevent dynamic linking.
22658 link_static_flag=$lt_lt_prog_compiler_static
22659
22660 # Does compiler simultaneously support -c and -o options?
22661 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22662
22663 # Whether or not to add -lc for building shared libraries.
22664 build_libtool_need_lc=$archive_cmds_need_lc
22665
22666 # Whether or not to disallow shared libs when runtime libs are static.
22667 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22668
22669 # Compiler flag to allow reflexive dlopens.
22670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22671
22672 # Compiler flag to generate shared objects directly from archives.
22673 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22674
22675 # Whether the compiler copes with passing no objects directly.
22676 compiler_needs_object=$lt_compiler_needs_object
22677
22678 # Create an old-style archive from a shared archive.
22679 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22680
22681 # Create a temporary old-style archive to link instead of a shared archive.
22682 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22683
22684 # Commands used to build a shared archive.
22685 archive_cmds=$lt_archive_cmds
22686 archive_expsym_cmds=$lt_archive_expsym_cmds
22687
22688 # Commands used to build a loadable module if different from building
22689 # a shared archive.
22690 module_cmds=$lt_module_cmds
22691 module_expsym_cmds=$lt_module_expsym_cmds
22692
22693 # Whether we are building with GNU ld or not.
22694 with_gnu_ld=$lt_with_gnu_ld
22695
22696 # Flag that allows shared libraries with undefined symbols to be built.
22697 allow_undefined_flag=$lt_allow_undefined_flag
22698
22699 # Flag that enforces no undefined symbols.
22700 no_undefined_flag=$lt_no_undefined_flag
22701
22702 # Flag to hardcode \$libdir into a binary during linking.
22703 # This must work even if \$libdir does not exist
22704 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22705
22706 # Whether we need a single "-rpath" flag with a separated argument.
22707 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22708
22709 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22710 # DIR into the resulting binary.
22711 hardcode_direct=$hardcode_direct
22712
22713 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22714 # DIR into the resulting binary and the resulting library dependency is
22715 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22716 # library is relocated.
22717 hardcode_direct_absolute=$hardcode_direct_absolute
22718
22719 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22720 # into the resulting binary.
22721 hardcode_minus_L=$hardcode_minus_L
22722
22723 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22724 # into the resulting binary.
22725 hardcode_shlibpath_var=$hardcode_shlibpath_var
22726
22727 # Set to "yes" if building a shared library automatically hardcodes DIR
22728 # into the library and all subsequent libraries and executables linked
22729 # against it.
22730 hardcode_automatic=$hardcode_automatic
22731
22732 # Set to yes if linker adds runtime paths of dependent libraries
22733 # to runtime path list.
22734 inherit_rpath=$inherit_rpath
22735
22736 # Whether libtool must link a program against all its dependency libraries.
22737 link_all_deplibs=$link_all_deplibs
22738
22739 # Set to "yes" if exported symbols are required.
22740 always_export_symbols=$always_export_symbols
22741
22742 # The commands to list exported symbols.
22743 export_symbols_cmds=$lt_export_symbols_cmds
22744
22745 # Symbols that should not be listed in the preloaded symbols.
22746 exclude_expsyms=$lt_exclude_expsyms
22747
22748 # Symbols that must always be exported.
22749 include_expsyms=$lt_include_expsyms
22750
22751 # Commands necessary for linking programs (against libraries) with templates.
22752 prelink_cmds=$lt_prelink_cmds
22753
22754 # Commands necessary for finishing linking programs.
22755 postlink_cmds=$lt_postlink_cmds
22756
22757 # Specify filename containing input files.
22758 file_list_spec=$lt_file_list_spec
22759
22760 # How to hardcode a shared library path into an executable.
22761 hardcode_action=$hardcode_action
22762
22763 # ### END LIBTOOL CONFIG
22764
22765 _LT_EOF
22766
22767 cat <<'_LT_EOF' >> "$cfgfile"
22768
22769 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22770
22771 # func_munge_path_list VARIABLE PATH
22772 # -----------------------------------
22773 # VARIABLE is name of variable containing _space_ separated list of
22774 # directories to be munged by the contents of PATH, which is string
22775 # having a format:
22776 # "DIR[:DIR]:"
22777 # string "DIR[ DIR]" will be prepended to VARIABLE
22778 # ":DIR[:DIR]"
22779 # string "DIR[ DIR]" will be appended to VARIABLE
22780 # "DIRP[:DIRP]::[DIRA:]DIRA"
22781 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22782 # "DIRA[ DIRA]" will be appended to VARIABLE
22783 # "DIR[:DIR]"
22784 # VARIABLE will be replaced by "DIR[ DIR]"
22785 func_munge_path_list ()
22786 {
22787 case x$2 in
22788 x)
22789 ;;
22790 *:)
22791 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22792 ;;
22793 x:*)
22794 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22795 ;;
22796 *::*)
22797 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22798 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22799 ;;
22800 *)
22801 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22802 ;;
22803 esac
22804 }
22805
22806
22807 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22808 func_cc_basename ()
22809 {
22810 for cc_temp in $*""; do
22811 case $cc_temp in
22812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22814 \-*) ;;
22815 *) break;;
22816 esac
22817 done
22818 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22819 }
22820
22821
22822 # ### END FUNCTIONS SHARED WITH CONFIGURE
22823
22824 _LT_EOF
22825
22826 case $host_os in
22827 aix3*)
22828 cat <<\_LT_EOF >> "$cfgfile"
22829 # AIX sometimes has problems with the GCC collect2 program. For some
22830 # reason, if we set the COLLECT_NAMES environment variable, the problems
22831 # vanish in a puff of smoke.
22832 if test set != "${COLLECT_NAMES+set}"; then
22833 COLLECT_NAMES=
22834 export COLLECT_NAMES
22835 fi
22836 _LT_EOF
22837 ;;
22838 esac
22839
22840
22841
22842 ltmain=$ac_aux_dir/ltmain.sh
22843
22844
22845 # We use sed instead of cat because bash on DJGPP gets confused if
22846 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22847 # text mode, it properly converts lines to CR/LF. This bash problem
22848 # is reportedly fixed, but why not run on old versions too?
22849 $SED '$q' "$ltmain" >> "$cfgfile" \
22850 || (rm -f "$cfgfile"; exit 1)
22851
22852 mv -f "$cfgfile" "$ofile" ||
22853 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22854 chmod +x "$ofile"
22855
22856 ;;
22857 "po-directories":C)
22858 for ac_file in $CONFIG_FILES; do
22859 # Support "outfile[:infile[:infile...]]"
22860 case "$ac_file" in
22861 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22862 esac
22863 # PO directories have a Makefile.in generated from Makefile.in.in.
22864 case "$ac_file" in */Makefile.in)
22865 # Adjust a relative srcdir.
22866 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22867 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22868 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22869 # In autoconf-2.13 it is called $ac_given_srcdir.
22870 # In autoconf-2.50 it is called $srcdir.
22871 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22872 case "$ac_given_srcdir" in
22873 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22874 /*) top_srcdir="$ac_given_srcdir" ;;
22875 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22876 esac
22877 # Treat a directory as a PO directory if and only if it has a
22878 # POTFILES.in file. This allows packages to have multiple PO
22879 # directories under different names or in different locations.
22880 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22881 rm -f "$ac_dir/POTFILES"
22882 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22883 gt_tab=`printf '\t'`
22884 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"
22885 POMAKEFILEDEPS="POTFILES.in"
22886 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22887 # on $ac_dir but don't depend on user-specified configuration
22888 # parameters.
22889 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22890 # The LINGUAS file contains the set of available languages.
22891 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22892 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22893 fi
22894 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22895 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22896 else
22897 # The set of available languages was given in configure.in.
22898 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
22899 fi
22900 # Compute POFILES
22901 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22902 # Compute UPDATEPOFILES
22903 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22904 # Compute DUMMYPOFILES
22905 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22906 # Compute GMOFILES
22907 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22908 case "$ac_given_srcdir" in
22909 .) srcdirpre= ;;
22910 *) srcdirpre='$(srcdir)/' ;;
22911 esac
22912 POFILES=
22913 UPDATEPOFILES=
22914 DUMMYPOFILES=
22915 GMOFILES=
22916 for lang in $ALL_LINGUAS; do
22917 POFILES="$POFILES $srcdirpre$lang.po"
22918 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22919 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22920 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22921 done
22922 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22923 # environment variable.
22924 INST_LINGUAS=
22925 if test -n "$ALL_LINGUAS"; then
22926 for presentlang in $ALL_LINGUAS; do
22927 useit=no
22928 if test "%UNSET%" != "$LINGUAS"; then
22929 desiredlanguages="$LINGUAS"
22930 else
22931 desiredlanguages="$ALL_LINGUAS"
22932 fi
22933 for desiredlang in $desiredlanguages; do
22934 # Use the presentlang catalog if desiredlang is
22935 # a. equal to presentlang, or
22936 # b. a variant of presentlang (because in this case,
22937 # presentlang can be used as a fallback for messages
22938 # which are not translated in the desiredlang catalog).
22939 case "$desiredlang" in
22940 "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*)
22941 useit=yes
22942 ;;
22943 esac
22944 done
22945 if test $useit = yes; then
22946 INST_LINGUAS="$INST_LINGUAS $presentlang"
22947 fi
22948 done
22949 fi
22950 CATALOGS=
22951 if test -n "$INST_LINGUAS"; then
22952 for lang in $INST_LINGUAS; do
22953 CATALOGS="$CATALOGS $lang.gmo"
22954 done
22955 fi
22956 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22957 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"
22958 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22959 if test -f "$f"; then
22960 case "$f" in
22961 *.orig | *.bak | *~) ;;
22962 *) cat "$f" >> "$ac_dir/Makefile" ;;
22963 esac
22964 fi
22965 done
22966 fi
22967 ;;
22968 esac
22969 done ;;
22970
22971 esac
22972 done # for ac_tag
22973
22974
22975 as_fn_exit 0
22976 _ACEOF
22977 ac_clean_files=$ac_clean_files_save
22978
22979 test $ac_write_fail = 0 ||
22980 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22981
22982
22983 # configure is writing to config.log, and then calls config.status.
22984 # config.status does its own redirection, appending to config.log.
22985 # Unfortunately, on DOS this fails, as config.log is still kept open
22986 # by configure, so config.status won't be able to write to it; its
22987 # output is simply discarded. So we exec the FD to /dev/null,
22988 # effectively closing config.log, so it can be properly (re)opened and
22989 # appended to by config.status. When coming back to configure, we
22990 # need to make the FD available again.
22991 if test "$no_create" != yes; then
22992 ac_cs_success=:
22993 ac_config_status_args=
22994 test "$silent" = yes &&
22995 ac_config_status_args="$ac_config_status_args --quiet"
22996 exec 5>/dev/null
22997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22998 exec 5>>config.log
22999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23000 # would make configure fail if this is the last instruction.
23001 $ac_cs_success || as_fn_exit 1
23002 fi
23003 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23005 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23006 fi
23007
23008
23009 echo ""
23010 echo "Build configuration: "
23011 echo " --with-dist-version=$ac_distver"
23012 echo " --with-gnome=$with_gnome"
23013 echo " --with-gtk4=$with_gtk4"
23014 echo " --with-pppd-plugin-dir=$PPPD_PLUGIN_DIR"
23015 echo " --enable-absolute-paths=$enable_absolute_paths"
23016 echo " --enable-more-warnings=$set_more_warnings"
23017 echo " --enable-lto=$enable_lto"
23018 echo " --enable-ld-gc=$enable_ld_gc"
23019 echo ""
23020