Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libiptcdata 1.0.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libiptcdata'
589 PACKAGE_TARNAME='libiptcdata'
590 PACKAGE_VERSION='1.0.5'
591 PACKAGE_STRING='libiptcdata 1.0.5'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 GTK_DOC_USE_REBASE_FALSE
636 GTK_DOC_USE_REBASE_TRUE
637 GTK_DOC_USE_LIBTOOL_FALSE
638 GTK_DOC_USE_LIBTOOL_TRUE
639 GTK_DOC_BUILD_PDF_FALSE
640 GTK_DOC_BUILD_PDF_TRUE
641 GTK_DOC_BUILD_HTML_FALSE
642 GTK_DOC_BUILD_HTML_TRUE
643 ENABLE_GTK_DOC_FALSE
644 ENABLE_GTK_DOC_TRUE
645 HAVE_GTK_DOC_FALSE
646 HAVE_GTK_DOC_TRUE
647 GTKDOC_DEPS_LIBS
648 GTKDOC_DEPS_CFLAGS
649 HTML_DIR
650 GTKDOC_MKPDF
651 GTKDOC_REBASE
652 GTKDOC_CHECK_PATH
653 GTKDOC_CHECK
654 PKG_CONFIG_LIBDIR
655 PKG_CONFIG_PATH
656 PKG_CONFIG
657 POSUB
658 LTLIBINTL
659 LIBINTL
660 INTLLIBS
661 LTLIBICONV
662 LIBICONV
663 MSGMERGE
664 XGETTEXT
665 GMSGFMT
666 MSGFMT
667 USE_NLS
668 MKINSTALLDIRS
669 GETTEXT_PACKAGE
670 IPTC_GETTEXT_PACKAGE
671 pkgpyexecdir
672 pyexecdir
673 pkgpythondir
674 pythondir
675 PYTHON_PLATFORM
676 PYTHON_EXEC_PREFIX
677 PYTHON_PREFIX
678 PYTHON_EXTRA_LIBS
679 PYTHON_EXTRA_LDFLAGS
680 PYTHON_SITE_PKG
681 PYTHON_LIBS
682 PYTHON_CPPFLAGS
683 PYTHON
684 PYTHON_VERSION
685 PYTHONLIB_FALSE
686 PYTHONLIB_TRUE
687 CPP
688 LT_SYS_LIBRARY_PATH
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 MANIFEST_TOOL
695 RANLIB
696 ac_ct_AR
697 AR
698 DLLTOOL
699 OBJDUMP
700 LN_S
701 NM
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 EGREP
707 GREP
708 SED
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 LIBTOOL
734 LIBIPTCDATA_VERSION_INFO
735 LIBIPTCDATA_CURRENT
736 LIBIPTCDATA_REVISION
737 LIBIPTCDATA_AGE
738 MAINT
739 MAINTAINER_MODE_FALSE
740 MAINTAINER_MODE_TRUE
741 AM_BACKSLASH
742 AM_DEFAULT_VERBOSITY
743 AM_DEFAULT_V
744 AM_V
745 am__untar
746 am__tar
747 AMTAR
748 am__leading_dot
749 SET_MAKE
750 AWK
751 mkdir_p
752 MKDIR_P
753 INSTALL_STRIP_PROGRAM
754 STRIP
755 install_sh
756 MAKEINFO
757 AUTOHEADER
758 AUTOMAKE
759 AUTOCONF
760 ACLOCAL
761 VERSION
762 PACKAGE
763 CYGPATH_W
764 am__isrc
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 runstatedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL
807 am__quote'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_silent_rules
812 enable_maintainer_mode
813 enable_static
814 enable_shared
815 with_pic
816 enable_fast_install
817 with_aix_soname
818 enable_dependency_tracking
819 with_gnu_ld
820 with_sysroot
821 enable_libtool_lock
822 enable_python
823 enable_nls
824 enable_rpath
825 with_libiconv_prefix
826 with_libintl_prefix
827 with_html_dir
828 enable_gtk_doc
829 enable_gtk_doc_html
830 enable_gtk_doc_pdf
831 '
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CC
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
840 LT_SYS_LIBRARY_PATH
841 CPP
842 PYTHON_VERSION
843 PYTHON
844 PKG_CONFIG
845 PKG_CONFIG_PATH
846 PKG_CONFIG_LIBDIR
847 GTKDOC_DEPS_CFLAGS
848 GTKDOC_DEPS_LIBS'
849
850
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
872
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 runstatedir='${localstatedir}/run'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 # Accept the important Cygnus configure options, so we can diagnose typos.
918
919 case $ac_dashdash$ac_option in
920 --)
921 ac_dashdash=yes ;;
922
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
927
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
932
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
939
940 --config-cache | -C)
941 cache_file=config.cache ;;
942
943 -datadir | --datadir | --datadi | --datad)
944 ac_prev=datadir ;;
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
947
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
954
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
970
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
975
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
980
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=\$ac_optarg ;;
996
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1005
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1009
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1016
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1021
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1027
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1034
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1039
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1044
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1051
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1056
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1063
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1068
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1072
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1076
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1080
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1089
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1094
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1101
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1108
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1125
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1130
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1135
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1139
1140 -runstatedir | --runstatedir | --runstatedi | --runstated \
1141 | --runstate | --runstat | --runsta | --runst | --runs \
1142 | --run | --ru | --r)
1143 ac_prev=runstatedir ;;
1144 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1145 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1146 | --run=* | --ru=* | --r=*)
1147 runstatedir=$ac_optarg ;;
1148
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
1153 sbindir=$ac_optarg ;;
1154
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
1164 sharedstatedir=$ac_optarg ;;
1165
1166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
1169 site=$ac_optarg ;;
1170
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1175
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1182
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1187
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1190
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1193
1194 -with-* | --with-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
1209
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=no ;;
1225
1226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
1229
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1236
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1243
1244 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245 Try \`$0 --help' for more information"
1246 ;;
1247
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' | [0-9]* | *[!_$as_cr_alnum]* )
1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 esac
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1257
1258 *)
1259 # FIXME: should be removed in autoconf 3.0.
1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 ;;
1265
1266 esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 as_fn_error $? "missing argument to $ac_option"
1272 fi
1273
1274 if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1276 no) ;;
1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1280 fi
1281
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir runstatedir
1287 do
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 as_fn_error $? "working directory cannot be determined"
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 as_fn_error $? "pwd does not report name of working directory"
1331
1332
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$as_myself" ||
1338 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$as_myself" : 'X\(//\)[^/]' \| \
1340 X"$as_myself" : 'X\(//\)$' \| \
1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342 $as_echo X"$as_myself" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1363 fi
1364 else
1365 ac_srcdir_defaulted=no
1366 fi
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 \`configure' configures libiptcdata 1.0.5 to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking ...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/libiptcdata]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of libiptcdata 1.0.5:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-silent-rules less verbose build output (undo: "make V=1")
1479 --disable-silent-rules verbose build output (undo: "make V=0")
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
1483 --enable-static[=PKGS] build static libraries [default=no]
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --enable-dependency-tracking
1488 do not reject slow dependency extractors
1489 --disable-dependency-tracking
1490 speeds up one-time build
1491 --disable-libtool-lock avoid locking (might break parallel builds)
1492 --enable-python Build Python wrapper library
1493 --disable-nls do not use Native Language Support
1494 --disable-rpath do not hardcode runtime library paths
1495 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1496 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1497 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1498
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --with-aix-soname=aix|svr4|both
1505 shared library versioning (aka "SONAME") variant to
1506 provide on AIX, [default=aix].
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1509 compiler's sysroot if not specified).
1510 --with-gnu-ld assume the C compiler uses GNU ld default=no
1511 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1512 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1513 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1514 --without-libintl-prefix don't search for libintl in includedir and libdir
1515 --with-html-dir=PATH path to installed docs
1516
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 LT_SYS_LIBRARY_PATH
1526 User-defined run-time library search path.
1527 CPP C preprocessor
1528 PYTHON_VERSION
1529 The installed Python version to use, for example '2.3'. This
1530 string will be appended to the Python interpreter canonical
1531 name.
1532 PYTHON the Python interpreter
1533 PKG_CONFIG path to pkg-config utility
1534 PKG_CONFIG_PATH
1535 directories to add to pkg-config's search path
1536 PKG_CONFIG_LIBDIR
1537 path overriding pkg-config's built-in search path
1538 GTKDOC_DEPS_CFLAGS
1539 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1540 GTKDOC_DEPS_LIBS
1541 linker flags for GTKDOC_DEPS, overriding pkg-config
1542
1543 Use these variables to override the choices made by `configure' or to help
1544 it to find libraries and programs with nonstandard names/locations.
1545
1546 Report bugs to the package provider.
1547 _ACEOF
1548 ac_status=$?
1549 fi
1550
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 continue
1557 ac_builddir=.
1558
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1574
1575 case $srcdir in
1576 .) # We are building in place.
1577 ac_srcdir=.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1599 else
1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 fi || ac_status=$?
1602 cd "$ac_pwd" || { ac_status=$?; break; }
1603 done
1604 fi
1605
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1608 cat <<\_ACEOF
1609 libiptcdata configure 1.0.5
1610 generated by GNU Autoconf 2.69
1611
1612 Copyright (C) 2012 Free Software Foundation, Inc.
1613 This configure script is free software; the Free Software Foundation
1614 gives unlimited permission to copy, distribute and modify it.
1615 _ACEOF
1616 exit
1617 fi
1618
1619 ## ------------------------ ##
1620 ## Autoconf initialization. ##
1621 ## ------------------------ ##
1622
1623 # ac_fn_c_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_compile ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_compile
1660
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_link ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
1688 test -x conftest$ac_exeext
1689 }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_link
1706
1707 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists and can be compiled using the include files in
1710 # INCLUDES, setting the cache variable VAR accordingly.
1711 ac_fn_c_check_header_compile ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718 else
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 $4
1722 #include <$2>
1723 _ACEOF
1724 if ac_fn_c_try_compile "$LINENO"; then :
1725 eval "$3=yes"
1726 else
1727 eval "$3=no"
1728 fi
1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 fi
1731 eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736 } # ac_fn_c_check_header_compile
1737
1738 # ac_fn_c_try_cpp LINENO
1739 # ----------------------
1740 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_cpp ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } > conftest.i && {
1760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769 fi
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_cpp
1774
1775 # ac_fn_c_try_run LINENO
1776 # ----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1778 # that executables *can* be run.
1779 ac_fn_c_try_run ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>&5
1790 ac_status=$?
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793 { { case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_try") 2>&5
1800 ac_status=$?
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; }; }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: program exited with status $ac_status" >&5
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=$ac_status
1810 fi
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_run
1816
1817 # ac_fn_c_check_func LINENO FUNC VAR
1818 # ----------------------------------
1819 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1820 ac_fn_c_check_func ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827 else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1832 #define $2 innocuous_$2
1833
1834 /* System header to define __stub macros and hopefully few prototypes,
1835 which can conflict with char $2 (); below.
1836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1837 <limits.h> exists even on freestanding compilers. */
1838
1839 #ifdef __STDC__
1840 # include <limits.h>
1841 #else
1842 # include <assert.h>
1843 #endif
1844
1845 #undef $2
1846
1847 /* Override any GCC internal prototype to avoid an error.
1848 Use char because int might match the return type of a GCC
1849 builtin and then its argument prototype would still apply. */
1850 #ifdef __cplusplus
1851 extern "C"
1852 #endif
1853 char $2 ();
1854 /* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857 #if defined __stub_$2 || defined __stub___$2
1858 choke me
1859 #endif
1860
1861 int
1862 main ()
1863 {
1864 return $2 ();
1865 ;
1866 return 0;
1867 }
1868 _ACEOF
1869 if ac_fn_c_try_link "$LINENO"; then :
1870 eval "$3=yes"
1871 else
1872 eval "$3=no"
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext \
1875 conftest$ac_exeext conftest.$ac_ext
1876 fi
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882 } # ac_fn_c_check_func
1883
1884 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1885 # -------------------------------------------------------
1886 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1887 # the include files in INCLUDES and setting the cache variable VAR
1888 # accordingly.
1889 ac_fn_c_check_header_mongrel ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if eval \${$3+:} false; then :
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1897 fi
1898 eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 else
1902 # Is the header compilable?
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1904 $as_echo_n "checking $2 usability... " >&6; }
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 #include <$2>
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911 ac_header_compiler=yes
1912 else
1913 ac_header_compiler=no
1914 fi
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1917 $as_echo "$ac_header_compiler" >&6; }
1918
1919 # Is the header present?
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1921 $as_echo_n "checking $2 presence... " >&6; }
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_c_try_cpp "$LINENO"; then :
1927 ac_header_preproc=yes
1928 else
1929 ac_header_preproc=no
1930 fi
1931 rm -f conftest.err conftest.i conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1933 $as_echo "$ac_header_preproc" >&6; }
1934
1935 # So? What about this header?
1936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1937 yes:no: )
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1939 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1941 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942 ;;
1943 no:yes:* )
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1945 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1947 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1949 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1951 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 ;;
1955 esac
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960 else
1961 eval "$3=\$ac_header_compiler"
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 fi
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969 } # ac_fn_c_check_header_mongrel
1970 cat >config.log <<_ACEOF
1971 This file contains any messages produced by compilers while
1972 running configure, to aid debugging if configure makes a mistake.
1973
1974 It was created by libiptcdata $as_me 1.0.5, which was
1975 generated by GNU Autoconf 2.69. Invocation command line was
1976
1977 $ $0 $@
1978
1979 _ACEOF
1980 exec 5>>config.log
1981 {
1982 cat <<_ASUNAME
1983 ## --------- ##
1984 ## Platform. ##
1985 ## --------- ##
1986
1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1992
1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1995
1996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2003
2004 _ASUNAME
2005
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 $as_echo "PATH: $as_dir"
2012 done
2013 IFS=$as_save_IFS
2014
2015 } >&5
2016
2017 cat >&5 <<_ACEOF
2018
2019
2020 ## ----------- ##
2021 ## Core tests. ##
2022 ## ----------- ##
2023
2024 _ACEOF
2025
2026
2027 # Keep a trace of the command line.
2028 # Strip out --no-create and --no-recursion so they do not pile up.
2029 # Strip out --silent because we don't want to record it for future runs.
2030 # Also quote any args containing shell meta-characters.
2031 # Make two passes to allow for proper duplicate-argument suppression.
2032 ac_configure_args=
2033 ac_configure_args0=
2034 ac_configure_args1=
2035 ac_must_keep_next=false
2036 for ac_pass in 1 2
2037 do
2038 for ac_arg
2039 do
2040 case $ac_arg in
2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043 | -silent | --silent | --silen | --sile | --sil)
2044 continue ;;
2045 *\'*)
2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047 esac
2048 case $ac_pass in
2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2050 2)
2051 as_fn_append ac_configure_args1 " '$ac_arg'"
2052 if test $ac_must_keep_next = true; then
2053 ac_must_keep_next=false # Got value, back to normal.
2054 else
2055 case $ac_arg in
2056 *=* | --config-cache | -C | -disable-* | --disable-* \
2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059 | -with-* | --with-* | -without-* | --without-* | --x)
2060 case "$ac_configure_args0 " in
2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062 esac
2063 ;;
2064 -* ) ac_must_keep_next=true ;;
2065 esac
2066 fi
2067 as_fn_append ac_configure_args " '$ac_arg'"
2068 ;;
2069 esac
2070 done
2071 done
2072 { ac_configure_args0=; unset ac_configure_args0;}
2073 { ac_configure_args1=; unset ac_configure_args1;}
2074
2075 # When interrupted or exit'd, cleanup temporary files, and complete
2076 # config.log. We remove comments because anyway the quotes in there
2077 # would cause problems or look ugly.
2078 # WARNING: Use '\'' to represent an apostrophe within the trap.
2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080 trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2082 {
2083 echo
2084
2085 $as_echo "## ---------------- ##
2086 ## Cache variables. ##
2087 ## ---------------- ##"
2088 echo
2089 # The following way of writing the cache mishandles newlines in values,
2090 (
2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in #(
2094 *${as_nl}*)
2095 case $ac_var in #(
2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098 esac
2099 case $ac_var in #(
2100 _ | IFS | as_nl) ;; #(
2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102 *) { eval $ac_var=; unset $ac_var;} ;;
2103 esac ;;
2104 esac
2105 done
2106 (set) 2>&1 |
2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108 *${as_nl}ac_space=\ *)
2109 sed -n \
2110 "s/'\''/'\''\\\\'\'''\''/g;
2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112 ;; #(
2113 *)
2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115 ;;
2116 esac |
2117 sort
2118 )
2119 echo
2120
2121 $as_echo "## ----------------- ##
2122 ## Output variables. ##
2123 ## ----------------- ##"
2124 echo
2125 for ac_var in $ac_subst_vars
2126 do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 $as_echo "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2134
2135 if test -n "$ac_subst_files"; then
2136 $as_echo "## ------------------- ##
2137 ## File substitutions. ##
2138 ## ------------------- ##"
2139 echo
2140 for ac_var in $ac_subst_files
2141 do
2142 eval ac_val=\$$ac_var
2143 case $ac_val in
2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 esac
2146 $as_echo "$ac_var='\''$ac_val'\''"
2147 done | sort
2148 echo
2149 fi
2150
2151 if test -s confdefs.h; then
2152 $as_echo "## ----------- ##
2153 ## confdefs.h. ##
2154 ## ----------- ##"
2155 echo
2156 cat confdefs.h
2157 echo
2158 fi
2159 test "$ac_signal" != 0 &&
2160 $as_echo "$as_me: caught signal $ac_signal"
2161 $as_echo "$as_me: exit $exit_status"
2162 } >&5
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165 exit $exit_status
2166 ' 0
2167 for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169 done
2170 ac_signal=0
2171
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest* confdefs.h
2174
2175 $as_echo "/* confdefs.h */" > confdefs.h
2176
2177 # Predefined preprocessor variables.
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_NAME "$PACKAGE_NAME"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_STRING "$PACKAGE_STRING"
2193 _ACEOF
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_URL "$PACKAGE_URL"
2201 _ACEOF
2202
2203
2204 # Let the site file select an alternate cache file if it wants to.
2205 # Prefer an explicitly selected file to automatically selected ones.
2206 ac_site_file1=NONE
2207 ac_site_file2=NONE
2208 if test -n "$CONFIG_SITE"; then
2209 # We do not want a PATH search for config.site.
2210 case $CONFIG_SITE in #((
2211 -*) ac_site_file1=./$CONFIG_SITE;;
2212 */*) ac_site_file1=$CONFIG_SITE;;
2213 *) ac_site_file1=./$CONFIG_SITE;;
2214 esac
2215 elif test "x$prefix" != xNONE; then
2216 ac_site_file1=$prefix/share/config.site
2217 ac_site_file2=$prefix/etc/config.site
2218 else
2219 ac_site_file1=$ac_default_prefix/share/config.site
2220 ac_site_file2=$ac_default_prefix/etc/config.site
2221 fi
2222 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2223 do
2224 test "x$ac_site_file" = xNONE && continue
2225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228 sed 's/^/| /' "$ac_site_file" >&5
2229 . "$ac_site_file" \
2230 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 as_fn_error $? "failed to load site script $ac_site_file
2233 See \`config.log' for more details" "$LINENO" 5; }
2234 fi
2235 done
2236
2237 if test -r "$cache_file"; then
2238 # Some versions of bash will fail to source /dev/null (special files
2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2240 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242 $as_echo "$as_me: loading cache $cache_file" >&6;}
2243 case $cache_file in
2244 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245 *) . "./$cache_file";;
2246 esac
2247 fi
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250 $as_echo "$as_me: creating cache $cache_file" >&6;}
2251 >$cache_file
2252 fi
2253
2254 # Check that the precious variables saved in the cache have kept the same
2255 # value.
2256 ac_cache_corrupted=false
2257 for ac_var in $ac_precious_vars; do
2258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2259 eval ac_new_set=\$ac_env_${ac_var}_set
2260 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2261 eval ac_new_val=\$ac_env_${ac_var}_value
2262 case $ac_old_set,$ac_new_set in
2263 set,)
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2267 ,set)
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2271 ,);;
2272 *)
2273 if test "x$ac_old_val" != "x$ac_new_val"; then
2274 # differences in whitespace do not lead to failure.
2275 ac_old_val_w=`echo x $ac_old_val`
2276 ac_new_val_w=`echo x $ac_new_val`
2277 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2279 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2280 ac_cache_corrupted=:
2281 else
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2283 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2284 eval $ac_var=\$ac_old_val
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2287 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2289 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2290 fi;;
2291 esac
2292 # Pass precious variables to config.status.
2293 if test "$ac_new_set" = set; then
2294 case $ac_new_val in
2295 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2296 *) ac_arg=$ac_var=$ac_new_val ;;
2297 esac
2298 case " $ac_configure_args " in
2299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2300 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2301 esac
2302 fi
2303 done
2304 if $ac_cache_corrupted; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2308 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2309 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2310 fi
2311 ## -------------------- ##
2312 ## Main body of script. ##
2313 ## -------------------- ##
2314
2315 ac_ext=c
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320
2321
2322 ac_config_headers="$ac_config_headers config.h"
2323
2324 am__api_version='1.16'
2325
2326 ac_aux_dir=
2327 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2328 if test -f "$ac_dir/install-sh"; then
2329 ac_aux_dir=$ac_dir
2330 ac_install_sh="$ac_aux_dir/install-sh -c"
2331 break
2332 elif test -f "$ac_dir/install.sh"; then
2333 ac_aux_dir=$ac_dir
2334 ac_install_sh="$ac_aux_dir/install.sh -c"
2335 break
2336 elif test -f "$ac_dir/shtool"; then
2337 ac_aux_dir=$ac_dir
2338 ac_install_sh="$ac_aux_dir/shtool install -c"
2339 break
2340 fi
2341 done
2342 if test -z "$ac_aux_dir"; then
2343 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2344 fi
2345
2346 # These three variables are undocumented and unsupported,
2347 # and are intended to be withdrawn in a future Autoconf release.
2348 # They can cause serious problems if a builder's source tree is in a directory
2349 # whose full name contains unusual characters.
2350 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2351 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2352 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2353
2354
2355 # Find a good install program. We prefer a C program (faster),
2356 # so one script is as good as another. But avoid the broken or
2357 # incompatible versions:
2358 # SysV /etc/install, /usr/sbin/install
2359 # SunOS /usr/etc/install
2360 # IRIX /sbin/install
2361 # AIX /bin/install
2362 # AmigaOS /C/install, which installs bootblocks on floppy discs
2363 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2364 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2365 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2366 # OS/2's system install, which has a completely different semantic
2367 # ./install, which can be erroneously created by make from ./install.sh.
2368 # Reject install programs that cannot install multiple files.
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2370 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2371 if test -z "$INSTALL"; then
2372 if ${ac_cv_path_install+:} false; then :
2373 $as_echo_n "(cached) " >&6
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 # Account for people who put trailing slashes in PATH elements.
2381 case $as_dir/ in #((
2382 ./ | .// | /[cC]/* | \
2383 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2384 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2385 /usr/ucb/* ) ;;
2386 *)
2387 # OSF1 and SCO ODT 3.0 have their own names for install.
2388 # Don't use installbsd from OSF since it installs stuff as root
2389 # by default.
2390 for ac_prog in ginstall scoinst install; do
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2393 if test $ac_prog = install &&
2394 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2395 # AIX install. It has an incompatible calling convention.
2396 :
2397 elif test $ac_prog = install &&
2398 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399 # program-specific install script used by HP pwplus--don't use.
2400 :
2401 else
2402 rm -rf conftest.one conftest.two conftest.dir
2403 echo one > conftest.one
2404 echo two > conftest.two
2405 mkdir conftest.dir
2406 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2407 test -s conftest.one && test -s conftest.two &&
2408 test -s conftest.dir/conftest.one &&
2409 test -s conftest.dir/conftest.two
2410 then
2411 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2412 break 3
2413 fi
2414 fi
2415 fi
2416 done
2417 done
2418 ;;
2419 esac
2420
2421 done
2422 IFS=$as_save_IFS
2423
2424 rm -rf conftest.one conftest.two conftest.dir
2425
2426 fi
2427 if test "${ac_cv_path_install+set}" = set; then
2428 INSTALL=$ac_cv_path_install
2429 else
2430 # As a last resort, use the slow shell script. Don't cache a
2431 # value for INSTALL within a source directory, because that will
2432 # break other packages using the cache if that directory is
2433 # removed, or if the value is a relative name.
2434 INSTALL=$ac_install_sh
2435 fi
2436 fi
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2438 $as_echo "$INSTALL" >&6; }
2439
2440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2441 # It thinks the first close brace ends the variable substitution.
2442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2443
2444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2445
2446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2447
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2449 $as_echo_n "checking whether build environment is sane... " >&6; }
2450 # Reject unsafe characters in $srcdir or the absolute working directory
2451 # name. Accept space and tab only in the latter.
2452 am_lf='
2453 '
2454 case `pwd` in
2455 *[\\\"\#\$\&\'\`$am_lf]*)
2456 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2457 esac
2458 case $srcdir in
2459 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2460 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2461 esac
2462
2463 # Do 'set' in a subshell so we don't clobber the current shell's
2464 # arguments. Must try -L first in case configure is actually a
2465 # symlink; some systems play weird games with the mod time of symlinks
2466 # (eg FreeBSD returns the mod time of the symlink's containing
2467 # directory).
2468 if (
2469 am_has_slept=no
2470 for am_try in 1 2; do
2471 echo "timestamp, slept: $am_has_slept" > conftest.file
2472 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2473 if test "$*" = "X"; then
2474 # -L didn't work.
2475 set X `ls -t "$srcdir/configure" conftest.file`
2476 fi
2477 if test "$*" != "X $srcdir/configure conftest.file" \
2478 && test "$*" != "X conftest.file $srcdir/configure"; then
2479
2480 # If neither matched, then we have a broken ls. This can happen
2481 # if, for instance, CONFIG_SHELL is bash and it inherits a
2482 # broken ls alias from the environment. This has actually
2483 # happened. Such a system could not be considered "sane".
2484 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2485 alias in your environment" "$LINENO" 5
2486 fi
2487 if test "$2" = conftest.file || test $am_try -eq 2; then
2488 break
2489 fi
2490 # Just in case.
2491 sleep 1
2492 am_has_slept=yes
2493 done
2494 test "$2" = conftest.file
2495 )
2496 then
2497 # Ok.
2498 :
2499 else
2500 as_fn_error $? "newly created file is older than distributed files!
2501 Check your system clock" "$LINENO" 5
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2504 $as_echo "yes" >&6; }
2505 # If we didn't sleep, we still need to ensure time stamps of config.status and
2506 # generated files are strictly newer.
2507 am_sleep_pid=
2508 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2509 ( sleep 1 ) &
2510 am_sleep_pid=$!
2511 fi
2512
2513 rm -f conftest.file
2514
2515 test "$program_prefix" != NONE &&
2516 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2517 # Use a double $ so make ignores it.
2518 test "$program_suffix" != NONE &&
2519 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2520 # Double any \ or $.
2521 # By default was `s,x,x', remove it if useless.
2522 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2523 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2524
2525 # Expand $ac_aux_dir to an absolute path.
2526 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2527
2528 if test x"${MISSING+set}" != xset; then
2529 case $am_aux_dir in
2530 *\ * | *\ *)
2531 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2532 *)
2533 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2534 esac
2535 fi
2536 # Use eval to expand $SHELL
2537 if eval "$MISSING --is-lightweight"; then
2538 am_missing_run="$MISSING "
2539 else
2540 am_missing_run=
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2542 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2543 fi
2544
2545 if test x"${install_sh+set}" != xset; then
2546 case $am_aux_dir in
2547 *\ * | *\ *)
2548 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2549 *)
2550 install_sh="\${SHELL} $am_aux_dir/install-sh"
2551 esac
2552 fi
2553
2554 # Installed binaries are usually stripped using 'strip' when the user
2555 # run "make install-strip". However 'strip' might not be the right
2556 # tool to use in cross-compilation environments, therefore Automake
2557 # will honor the 'STRIP' environment variable to overrule this program.
2558 if test "$cross_compiling" != no; then
2559 if test -n "$ac_tool_prefix"; then
2560 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}strip; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_STRIP+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 if test -n "$STRIP"; then
2568 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2577 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 STRIP=$ac_cv_prog_STRIP
2588 if test -n "$STRIP"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2590 $as_echo "$STRIP" >&6; }
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2594 fi
2595
2596
2597 fi
2598 if test -z "$ac_cv_prog_STRIP"; then
2599 ac_ct_STRIP=$STRIP
2600 # Extract the first word of "strip", so it can be a program name with args.
2601 set dummy strip; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test -n "$ac_ct_STRIP"; then
2608 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 ac_cv_prog_ac_ct_STRIP="strip"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2628 if test -n "$ac_ct_STRIP"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2630 $as_echo "$ac_ct_STRIP" >&6; }
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636 if test "x$ac_ct_STRIP" = x; then
2637 STRIP=":"
2638 else
2639 case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2644 esac
2645 STRIP=$ac_ct_STRIP
2646 fi
2647 else
2648 STRIP="$ac_cv_prog_STRIP"
2649 fi
2650
2651 fi
2652 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2655 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2656 if test -z "$MKDIR_P"; then
2657 if ${ac_cv_path_mkdir+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2662 do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_prog in mkdir gmkdir; do
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2668 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2669 'mkdir (GNU coreutils) '* | \
2670 'mkdir (coreutils) '* | \
2671 'mkdir (fileutils) '4.1*)
2672 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2673 break 3;;
2674 esac
2675 done
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681
2682 test -d ./--version && rmdir ./--version
2683 if test "${ac_cv_path_mkdir+set}" = set; then
2684 MKDIR_P="$ac_cv_path_mkdir -p"
2685 else
2686 # As a last resort, use the slow shell script. Don't cache a
2687 # value for MKDIR_P within a source directory, because that will
2688 # break other packages using the cache if that directory is
2689 # removed, or if the value is a relative name.
2690 MKDIR_P="$ac_install_sh -d"
2691 fi
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2694 $as_echo "$MKDIR_P" >&6; }
2695
2696 for ac_prog in gawk mawk nawk awk
2697 do
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if ${ac_cv_prog_AWK+:} false; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 if test -n "$AWK"; then
2706 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715 ac_cv_prog_AWK="$ac_prog"
2716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 AWK=$ac_cv_prog_AWK
2726 if test -n "$AWK"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2728 $as_echo "$AWK" >&6; }
2729 else
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734
2735 test -n "$AWK" && break
2736 done
2737
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2739 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2740 set x ${MAKE-make}
2741 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2742 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 cat >conftest.make <<\_ACEOF
2746 SHELL = /bin/sh
2747 all:
2748 @echo '@@@%%%=$(MAKE)=@@@%%%'
2749 _ACEOF
2750 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2751 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2752 *@@@%%%=?*=@@@%%%*)
2753 eval ac_cv_prog_make_${ac_make}_set=yes;;
2754 *)
2755 eval ac_cv_prog_make_${ac_make}_set=no;;
2756 esac
2757 rm -f conftest.make
2758 fi
2759 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761 $as_echo "yes" >&6; }
2762 SET_MAKE=
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 SET_MAKE="MAKE=${MAKE-make}"
2767 fi
2768
2769 rm -rf .tst 2>/dev/null
2770 mkdir .tst 2>/dev/null
2771 if test -d .tst; then
2772 am__leading_dot=.
2773 else
2774 am__leading_dot=_
2775 fi
2776 rmdir .tst 2>/dev/null
2777
2778 # Check whether --enable-silent-rules was given.
2779 if test "${enable_silent_rules+set}" = set; then :
2780 enableval=$enable_silent_rules;
2781 fi
2782
2783 case $enable_silent_rules in # (((
2784 yes) AM_DEFAULT_VERBOSITY=0;;
2785 no) AM_DEFAULT_VERBOSITY=1;;
2786 *) AM_DEFAULT_VERBOSITY=1;;
2787 esac
2788 am_make=${MAKE-make}
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2790 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2791 if ${am_cv_make_support_nested_variables+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if $as_echo 'TRUE=$(BAR$(V))
2795 BAR0=false
2796 BAR1=true
2797 V=1
2798 am__doit:
2799 @$(TRUE)
2800 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2801 am_cv_make_support_nested_variables=yes
2802 else
2803 am_cv_make_support_nested_variables=no
2804 fi
2805 fi
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2807 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2808 if test $am_cv_make_support_nested_variables = yes; then
2809 AM_V='$(V)'
2810 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2811 else
2812 AM_V=$AM_DEFAULT_VERBOSITY
2813 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2814 fi
2815 AM_BACKSLASH='\'
2816
2817 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2818 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2819 # is not polluted with repeated "-I."
2820 am__isrc=' -I$(srcdir)'
2821 # test to see if srcdir already configured
2822 if test -f $srcdir/config.status; then
2823 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2824 fi
2825 fi
2826
2827 # test whether we have cygpath
2828 if test -z "$CYGPATH_W"; then
2829 if (cygpath --version) >/dev/null 2>/dev/null; then
2830 CYGPATH_W='cygpath -w'
2831 else
2832 CYGPATH_W=echo
2833 fi
2834 fi
2835
2836
2837 # Define the identity of the package.
2838 PACKAGE='libiptcdata'
2839 VERSION='1.0.5'
2840
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE "$PACKAGE"
2844 _ACEOF
2845
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define VERSION "$VERSION"
2849 _ACEOF
2850
2851 # Some tools Automake needs.
2852
2853 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2854
2855
2856 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2857
2858
2859 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2860
2861
2862 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2863
2864
2865 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2866
2867 # For better backward compatibility. To be removed once Automake 1.9.x
2868 # dies out for good. For more background, see:
2869 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2870 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2871 mkdir_p='$(MKDIR_P)'
2872
2873 # We need awk for the "check" target (and possibly the TAP driver). The
2874 # system "awk" is bad on some platforms.
2875 # Always define AMTAR for backward compatibility. Yes, it's still used
2876 # in the wild :-( We should find a proper way to deprecate it ...
2877 AMTAR='$${TAR-tar}'
2878
2879
2880 # We'll loop over all known methods to create a tar archive until one works.
2881 _am_tools='gnutar pax cpio none'
2882
2883 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2884
2885
2886
2887
2888
2889
2890 # POSIX will say in a future version that running "rm -f" with no argument
2891 # is OK; and we want to be able to make that assumption in our Makefile
2892 # recipes. So use an aggressive probe to check that the usage we want is
2893 # actually supported "in the wild" to an acceptable degree.
2894 # See automake bug#10828.
2895 # To make any issue more visible, cause the running configure to be aborted
2896 # by default if the 'rm' program in use doesn't match our expectations; the
2897 # user can still override this though.
2898 if rm -f && rm -fr && rm -rf; then : OK; else
2899 cat >&2 <<'END'
2900 Oops!
2901
2902 Your 'rm' program seems unable to run without file operands specified
2903 on the command line, even when the '-f' option is present. This is contrary
2904 to the behaviour of most rm programs out there, and not conforming with
2905 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2906
2907 Please tell [email protected] about your system, including the value
2908 of your $PATH and any error possibly output before this message. This
2909 can help us improve future automake versions.
2910
2911 END
2912 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2913 echo 'Configuration will proceed anyway, since you have set the' >&2
2914 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2915 echo >&2
2916 else
2917 cat >&2 <<'END'
2918 Aborting the configuration process, to ensure you take notice of the issue.
2919
2920 You can download and install GNU coreutils to get an 'rm' implementation
2921 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2922
2923 If you want to complete the configuration process using your problematic
2924 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2925 to "yes", and re-run configure.
2926
2927 END
2928 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2929 fi
2930 fi
2931
2932
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2934 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2935 # Check whether --enable-maintainer-mode was given.
2936 if test "${enable_maintainer_mode+set}" = set; then :
2937 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2938 else
2939 USE_MAINTAINER_MODE=no
2940 fi
2941
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2943 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2944 if test $USE_MAINTAINER_MODE = yes; then
2945 MAINTAINER_MODE_TRUE=
2946 MAINTAINER_MODE_FALSE='#'
2947 else
2948 MAINTAINER_MODE_TRUE='#'
2949 MAINTAINER_MODE_FALSE=
2950 fi
2951
2952 MAINT=$MAINTAINER_MODE_TRUE
2953
2954
2955
2956 LIBIPTCDATA_AGE=3
2957 LIBIPTCDATA_REVISION=3
2958 LIBIPTCDATA_CURRENT=3
2959
2960
2961
2962 LIBIPTCDATA_VERSION_INFO=$LIBIPTCDATA_CURRENT:$LIBIPTCDATA_REVISION:$LIBIPTCDATA_AGE
2963
2964
2965 # Check whether --enable-static was given.
2966 if test "${enable_static+set}" = set; then :
2967 enableval=$enable_static; p=${PACKAGE-default}
2968 case $enableval in
2969 yes) enable_static=yes ;;
2970 no) enable_static=no ;;
2971 *)
2972 enable_static=no
2973 # Look at the argument we got. We use all the common list separators.
2974 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
2975 for pkg in $enableval; do
2976 IFS=$lt_save_ifs
2977 if test "X$pkg" = "X$p"; then
2978 enable_static=yes
2979 fi
2980 done
2981 IFS=$lt_save_ifs
2982 ;;
2983 esac
2984 else
2985 enable_static=no
2986 fi
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996 case `pwd` in
2997 *\ * | *\ *)
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2999 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3000 esac
3001
3002
3003
3004 macro_version='2.4.6'
3005 macro_revision='2.4.6'
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019 ltmain=$ac_aux_dir/ltmain.sh
3020
3021 # Make sure we can run config.sub.
3022 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3023 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3024
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3026 $as_echo_n "checking build system type... " >&6; }
3027 if ${ac_cv_build+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 ac_build_alias=$build_alias
3031 test "x$ac_build_alias" = x &&
3032 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3033 test "x$ac_build_alias" = x &&
3034 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3035 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3036 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3037
3038 fi
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3040 $as_echo "$ac_cv_build" >&6; }
3041 case $ac_cv_build in
3042 *-*-*) ;;
3043 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3044 esac
3045 build=$ac_cv_build
3046 ac_save_IFS=$IFS; IFS='-'
3047 set x $ac_cv_build
3048 shift
3049 build_cpu=$1
3050 build_vendor=$2
3051 shift; shift
3052 # Remember, the first character of IFS is used to create $*,
3053 # except with old shells:
3054 build_os=$*
3055 IFS=$ac_save_IFS
3056 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3057
3058
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3060 $as_echo_n "checking host system type... " >&6; }
3061 if ${ac_cv_host+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 if test "x$host_alias" = x; then
3065 ac_cv_host=$ac_cv_build
3066 else
3067 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3068 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3069 fi
3070
3071 fi
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3073 $as_echo "$ac_cv_host" >&6; }
3074 case $ac_cv_host in
3075 *-*-*) ;;
3076 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3077 esac
3078 host=$ac_cv_host
3079 ac_save_IFS=$IFS; IFS='-'
3080 set x $ac_cv_host
3081 shift
3082 host_cpu=$1
3083 host_vendor=$2
3084 shift; shift
3085 # Remember, the first character of IFS is used to create $*,
3086 # except with old shells:
3087 host_os=$*
3088 IFS=$ac_save_IFS
3089 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3090
3091
3092 # Backslashify metacharacters that are still active within
3093 # double-quoted strings.
3094 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3095
3096 # Same as above, but do not quote variable references.
3097 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3098
3099 # Sed substitution to delay expansion of an escaped shell variable in a
3100 # double_quote_subst'ed string.
3101 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3102
3103 # Sed substitution to delay expansion of an escaped single quote.
3104 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3105
3106 # Sed substitution to avoid accidental globbing in evaled expressions
3107 no_glob_subst='s/\*/\\\*/g'
3108
3109 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3110 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3111 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3112
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3114 $as_echo_n "checking how to print strings... " >&6; }
3115 # Test print first, because it will be a builtin if present.
3116 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3117 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3118 ECHO='print -r --'
3119 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3120 ECHO='printf %s\n'
3121 else
3122 # Use this function as a fallback that always works.
3123 func_fallback_echo ()
3124 {
3125 eval 'cat <<_LTECHO_EOF
3126 $1
3127 _LTECHO_EOF'
3128 }
3129 ECHO='func_fallback_echo'
3130 fi
3131
3132 # func_echo_all arg...
3133 # Invoke $ECHO with all args, space-separated.
3134 func_echo_all ()
3135 {
3136 $ECHO ""
3137 }
3138
3139 case $ECHO in
3140 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3141 $as_echo "printf" >&6; } ;;
3142 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3143 $as_echo "print -r" >&6; } ;;
3144 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3145 $as_echo "cat" >&6; } ;;
3146 esac
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161 DEPDIR="${am__leading_dot}deps"
3162
3163 ac_config_commands="$ac_config_commands depfiles"
3164
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3166 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3167 cat > confinc.mk << 'END'
3168 am__doit:
3169 @echo this is the am__doit target >confinc.out
3170 .PHONY: am__doit
3171 END
3172 am__include="#"
3173 am__quote=
3174 # BSD make does it like this.
3175 echo '.include "confinc.mk" # ignored' > confmf.BSD
3176 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3177 echo 'include confinc.mk # ignored' > confmf.GNU
3178 _am_result=no
3179 for s in GNU BSD; do
3180 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3181 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }
3185 case $?:`cat confinc.out 2>/dev/null` in #(
3186 '0:this is the am__doit target') :
3187 case $s in #(
3188 BSD) :
3189 am__include='.include' am__quote='"' ;; #(
3190 *) :
3191 am__include='include' am__quote='' ;;
3192 esac ;; #(
3193 *) :
3194 ;;
3195 esac
3196 if test "$am__include" != "#"; then
3197 _am_result="yes ($s style)"
3198 break
3199 fi
3200 done
3201 rm -f confinc.* confmf.*
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3203 $as_echo "${_am_result}" >&6; }
3204
3205 # Check whether --enable-dependency-tracking was given.
3206 if test "${enable_dependency_tracking+set}" = set; then :
3207 enableval=$enable_dependency_tracking;
3208 fi
3209
3210 if test "x$enable_dependency_tracking" != xno; then
3211 am_depcomp="$ac_aux_dir/depcomp"
3212 AMDEPBACKSLASH='\'
3213 am__nodep='_no'
3214 fi
3215 if test "x$enable_dependency_tracking" != xno; then
3216 AMDEP_TRUE=
3217 AMDEP_FALSE='#'
3218 else
3219 AMDEP_TRUE='#'
3220 AMDEP_FALSE=
3221 fi
3222
3223
3224 ac_ext=c
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229 if test -n "$ac_tool_prefix"; then
3230 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3231 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_prog_CC+:} false; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC="$CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 break 2
3250 fi
3251 done
3252 done
3253 IFS=$as_save_IFS
3254
3255 fi
3256 fi
3257 CC=$ac_cv_prog_CC
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265
3266
3267 fi
3268 if test -z "$ac_cv_prog_CC"; then
3269 ac_ct_CC=$CC
3270 # Extract the first word of "gcc", so it can be a program name with args.
3271 set dummy gcc; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_ac_ct_CC="gcc"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3290 fi
3291 done
3292 done
3293 IFS=$as_save_IFS
3294
3295 fi
3296 fi
3297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3298 if test -n "$ac_ct_CC"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3300 $as_echo "$ac_ct_CC" >&6; }
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304 fi
3305
3306 if test "x$ac_ct_CC" = x; then
3307 CC=""
3308 else
3309 case $cross_compiling:$ac_tool_warned in
3310 yes:)
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3313 ac_tool_warned=yes ;;
3314 esac
3315 CC=$ac_ct_CC
3316 fi
3317 else
3318 CC="$ac_cv_prog_CC"
3319 fi
3320
3321 if test -z "$CC"; then
3322 if test -n "$ac_tool_prefix"; then
3323 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3324 set dummy ${ac_tool_prefix}cc; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if ${ac_cv_prog_CC+:} false; then :
3328 $as_echo_n "(cached) " >&6
3329 else
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340 ac_cv_prog_CC="${ac_tool_prefix}cc"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3343 fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 CC=$ac_cv_prog_CC
3351 if test -n "$CC"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3353 $as_echo "$CC" >&6; }
3354 else
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 fi
3358
3359
3360 fi
3361 fi
3362 if test -z "$CC"; then
3363 # Extract the first word of "cc", so it can be a program name with args.
3364 set dummy cc; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if ${ac_cv_prog_CC+:} false; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 else
3373 ac_prog_rejected=no
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3382 ac_prog_rejected=yes
3383 continue
3384 fi
3385 ac_cv_prog_CC="cc"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389 done
3390 done
3391 IFS=$as_save_IFS
3392
3393 if test $ac_prog_rejected = yes; then
3394 # We found a bogon in the path, so make sure we never use it.
3395 set dummy $ac_cv_prog_CC
3396 shift
3397 if test $# != 0; then
3398 # We chose a different compiler from the bogus one.
3399 # However, it has the same basename, so the bogon will be chosen
3400 # first if we set CC to just the basename; use the full file name.
3401 shift
3402 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3403 fi
3404 fi
3405 fi
3406 fi
3407 CC=$ac_cv_prog_CC
3408 if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416
3417 fi
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 for ac_prog in cl.exe
3421 do
3422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3423 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if ${ac_cv_prog_CC+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 if test -n "$CC"; then
3430 ac_cv_prog_CC="$CC" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443 done
3444 done
3445 IFS=$as_save_IFS
3446
3447 fi
3448 fi
3449 CC=$ac_cv_prog_CC
3450 if test -n "$CC"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3453 else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3456 fi
3457
3458
3459 test -n "$CC" && break
3460 done
3461 fi
3462 if test -z "$CC"; then
3463 ac_ct_CC=$CC
3464 for ac_prog in cl.exe
3465 do
3466 # Extract the first word of "$ac_prog", so it can be a program name with args.
3467 set dummy $ac_prog; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if test -n "$ac_ct_CC"; then
3474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_ac_ct_CC="$ac_prog"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 fi
3492 fi
3493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3494 if test -n "$ac_ct_CC"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3496 $as_echo "$ac_ct_CC" >&6; }
3497 else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3500 fi
3501
3502
3503 test -n "$ac_ct_CC" && break
3504 done
3505
3506 if test "x$ac_ct_CC" = x; then
3507 CC=""
3508 else
3509 case $cross_compiling:$ac_tool_warned in
3510 yes:)
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3513 ac_tool_warned=yes ;;
3514 esac
3515 CC=$ac_ct_CC
3516 fi
3517 fi
3518
3519 fi
3520
3521
3522 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524 as_fn_error $? "no acceptable C compiler found in \$PATH
3525 See \`config.log' for more details" "$LINENO" 5; }
3526
3527 # Provide some information about the compiler.
3528 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3529 set X $ac_compile
3530 ac_compiler=$2
3531 for ac_option in --version -v -V -qversion; do
3532 { { ac_try="$ac_compiler $ac_option >&5"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3538 $as_echo "$ac_try_echo"; } >&5
3539 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3540 ac_status=$?
3541 if test -s conftest.err; then
3542 sed '10a\
3543 ... rest of stderr output deleted ...
3544 10q' conftest.err >conftest.er1
3545 cat conftest.er1 >&5
3546 fi
3547 rm -f conftest.er1 conftest.err
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }
3550 done
3551
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554
3555 int
3556 main ()
3557 {
3558
3559 ;
3560 return 0;
3561 }
3562 _ACEOF
3563 ac_clean_files_save=$ac_clean_files
3564 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3565 # Try to create an executable without -o first, disregard a.out.
3566 # It will help us diagnose broken compilers, and finding out an intuition
3567 # of exeext.
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3569 $as_echo_n "checking whether the C compiler works... " >&6; }
3570 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3571
3572 # The possible output files:
3573 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3574
3575 ac_rmfiles=
3576 for ac_file in $ac_files
3577 do
3578 case $ac_file in
3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3580 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3581 esac
3582 done
3583 rm -f $ac_rmfiles
3584
3585 if { { ac_try="$ac_link_default"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_link_default") 2>&5
3593 ac_status=$?
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; then :
3596 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3597 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3598 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3599 # so that the user can short-circuit this test for compilers unknown to
3600 # Autoconf.
3601 for ac_file in $ac_files ''
3602 do
3603 test -f "$ac_file" || continue
3604 case $ac_file in
3605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3606 ;;
3607 [ab].out )
3608 # We found the default executable, but exeext='' is most
3609 # certainly right.
3610 break;;
3611 *.* )
3612 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3613 then :; else
3614 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3615 fi
3616 # We set ac_cv_exeext here because the later test for it is not
3617 # safe: cross compilers may not add the suffix if given an `-o'
3618 # argument, so we may need to know it at that point already.
3619 # Even if this section looks crufty: it has the advantage of
3620 # actually working.
3621 break;;
3622 * )
3623 break;;
3624 esac
3625 done
3626 test "$ac_cv_exeext" = no && ac_cv_exeext=
3627
3628 else
3629 ac_file=''
3630 fi
3631 if test -z "$ac_file"; then :
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error 77 "C compiler cannot create executables
3640 See \`config.log' for more details" "$LINENO" 5; }
3641 else
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3643 $as_echo "yes" >&6; }
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3646 $as_echo_n "checking for C compiler default output file name... " >&6; }
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3648 $as_echo "$ac_file" >&6; }
3649 ac_exeext=$ac_cv_exeext
3650
3651 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3652 ac_clean_files=$ac_clean_files_save
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3654 $as_echo_n "checking for suffix of executables... " >&6; }
3655 if { { ac_try="$ac_link"
3656 case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659 esac
3660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661 $as_echo "$ac_try_echo"; } >&5
3662 (eval "$ac_link") 2>&5
3663 ac_status=$?
3664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3665 test $ac_status = 0; }; then :
3666 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3667 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3668 # work properly (i.e., refer to `conftest.exe'), while it won't with
3669 # `rm'.
3670 for ac_file in conftest.exe conftest conftest.*; do
3671 test -f "$ac_file" || continue
3672 case $ac_file in
3673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3674 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3675 break;;
3676 * ) break;;
3677 esac
3678 done
3679 else
3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3683 See \`config.log' for more details" "$LINENO" 5; }
3684 fi
3685 rm -f conftest conftest$ac_cv_exeext
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3687 $as_echo "$ac_cv_exeext" >&6; }
3688
3689 rm -f conftest.$ac_ext
3690 EXEEXT=$ac_cv_exeext
3691 ac_exeext=$EXEEXT
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694 #include <stdio.h>
3695 int
3696 main ()
3697 {
3698 FILE *f = fopen ("conftest.out", "w");
3699 return ferror (f) || fclose (f) != 0;
3700
3701 ;
3702 return 0;
3703 }
3704 _ACEOF
3705 ac_clean_files="$ac_clean_files conftest.out"
3706 # Check that the compiler produces executables we can run. If not, either
3707 # the compiler is broken, or we cross compile.
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3709 $as_echo_n "checking whether we are cross compiling... " >&6; }
3710 if test "$cross_compiling" != yes; then
3711 { { ac_try="$ac_link"
3712 case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 $as_echo "$ac_try_echo"; } >&5
3718 (eval "$ac_link") 2>&5
3719 ac_status=$?
3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }
3722 if { ac_try='./conftest$ac_cv_exeext'
3723 { { case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729 (eval "$ac_try") 2>&5
3730 ac_status=$?
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }; }; then
3733 cross_compiling=no
3734 else
3735 if test "$cross_compiling" = maybe; then
3736 cross_compiling=yes
3737 else
3738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3740 as_fn_error $? "cannot run C compiled programs.
3741 If you meant to cross compile, use \`--host'.
3742 See \`config.log' for more details" "$LINENO" 5; }
3743 fi
3744 fi
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3747 $as_echo "$cross_compiling" >&6; }
3748
3749 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3750 ac_clean_files=$ac_clean_files_save
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3752 $as_echo_n "checking for suffix of object files... " >&6; }
3753 if ${ac_cv_objext+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758
3759 int
3760 main ()
3761 {
3762
3763 ;
3764 return 0;
3765 }
3766 _ACEOF
3767 rm -f conftest.o conftest.obj
3768 if { { ac_try="$ac_compile"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774 $as_echo "$ac_try_echo"; } >&5
3775 (eval "$ac_compile") 2>&5
3776 ac_status=$?
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }; then :
3779 for ac_file in conftest.o conftest.obj conftest.*; do
3780 test -f "$ac_file" || continue;
3781 case $ac_file in
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3784 break;;
3785 esac
3786 done
3787 else
3788 $as_echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3793 as_fn_error $? "cannot compute suffix of object files: cannot compile
3794 See \`config.log' for more details" "$LINENO" 5; }
3795 fi
3796 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3797 fi
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3799 $as_echo "$ac_cv_objext" >&6; }
3800 OBJEXT=$ac_cv_objext
3801 ac_objext=$OBJEXT
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3803 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3804 if ${ac_cv_c_compiler_gnu+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3809
3810 int
3811 main ()
3812 {
3813 #ifndef __GNUC__
3814 choke me
3815 #endif
3816
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822 ac_compiler_gnu=yes
3823 else
3824 ac_compiler_gnu=no
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3828
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3831 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3832 if test $ac_compiler_gnu = yes; then
3833 GCC=yes
3834 else
3835 GCC=
3836 fi
3837 ac_test_CFLAGS=${CFLAGS+set}
3838 ac_save_CFLAGS=$CFLAGS
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3840 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3841 if ${ac_cv_prog_cc_g+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 ac_save_c_werror_flag=$ac_c_werror_flag
3845 ac_c_werror_flag=yes
3846 ac_cv_prog_cc_g=no
3847 CFLAGS="-g"
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850
3851 int
3852 main ()
3853 {
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 if ac_fn_c_try_compile "$LINENO"; then :
3860 ac_cv_prog_cc_g=yes
3861 else
3862 CFLAGS=""
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865
3866 int
3867 main ()
3868 {
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 if ac_fn_c_try_compile "$LINENO"; then :
3875
3876 else
3877 ac_c_werror_flag=$ac_save_c_werror_flag
3878 CFLAGS="-g"
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881
3882 int
3883 main ()
3884 {
3885
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_cv_prog_cc_g=yes
3892 fi
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 fi
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 ac_c_werror_flag=$ac_save_c_werror_flag
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3901 $as_echo "$ac_cv_prog_cc_g" >&6; }
3902 if test "$ac_test_CFLAGS" = set; then
3903 CFLAGS=$ac_save_CFLAGS
3904 elif test $ac_cv_prog_cc_g = yes; then
3905 if test "$GCC" = yes; then
3906 CFLAGS="-g -O2"
3907 else
3908 CFLAGS="-g"
3909 fi
3910 else
3911 if test "$GCC" = yes; then
3912 CFLAGS="-O2"
3913 else
3914 CFLAGS=
3915 fi
3916 fi
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3918 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3919 if ${ac_cv_prog_cc_c89+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 ac_cv_prog_cc_c89=no
3923 ac_save_CC=$CC
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <stdarg.h>
3927 #include <stdio.h>
3928 struct stat;
3929 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3930 struct buf { int x; };
3931 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3932 static char *e (p, i)
3933 char **p;
3934 int i;
3935 {
3936 return p[i];
3937 }
3938 static char *f (char * (*g) (char **, int), char **p, ...)
3939 {
3940 char *s;
3941 va_list v;
3942 va_start (v,p);
3943 s = g (p, va_arg (v,int));
3944 va_end (v);
3945 return s;
3946 }
3947
3948 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3949 function prototypes and stuff, but not '\xHH' hex character constants.
3950 These don't provoke an error unfortunately, instead are silently treated
3951 as 'x'. The following induces an error, until -std is added to get
3952 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3953 array size at least. It's necessary to write '\x00'==0 to get something
3954 that's true only with -std. */
3955 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3956
3957 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3958 inside strings and character constants. */
3959 #define FOO(x) 'x'
3960 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3961
3962 int test (int i, double x);
3963 struct s1 {int (*f) (int a);};
3964 struct s2 {int (*f) (double a);};
3965 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3966 int argc;
3967 char **argv;
3968 int
3969 main ()
3970 {
3971 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3977 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3978 do
3979 CC="$ac_save_CC $ac_arg"
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_cv_prog_cc_c89=$ac_arg
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext
3984 test "x$ac_cv_prog_cc_c89" != "xno" && break
3985 done
3986 rm -f conftest.$ac_ext
3987 CC=$ac_save_CC
3988
3989 fi
3990 # AC_CACHE_VAL
3991 case "x$ac_cv_prog_cc_c89" in
3992 x)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3994 $as_echo "none needed" >&6; } ;;
3995 xno)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3997 $as_echo "unsupported" >&6; } ;;
3998 *)
3999 CC="$CC $ac_cv_prog_cc_c89"
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4001 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4002 esac
4003 if test "x$ac_cv_prog_cc_c89" != xno; then :
4004
4005 fi
4006
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4019 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4020 if ${am_cv_prog_cc_c_o+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025
4026 int
4027 main ()
4028 {
4029
4030 ;
4031 return 0;
4032 }
4033 _ACEOF
4034 # Make sure it works both with $CC and with simple cc.
4035 # Following AC_PROG_CC_C_O, we do the test twice because some
4036 # compilers refuse to overwrite an existing .o file with -o,
4037 # though they will create one.
4038 am_cv_prog_cc_c_o=yes
4039 for am_i in 1 2; do
4040 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4041 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } \
4045 && test -f conftest2.$ac_objext; then
4046 : OK
4047 else
4048 am_cv_prog_cc_c_o=no
4049 break
4050 fi
4051 done
4052 rm -f core conftest*
4053 unset am_i
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4056 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4057 if test "$am_cv_prog_cc_c_o" != yes; then
4058 # Losing compiler, so override with the script.
4059 # FIXME: It is wrong to rewrite CC.
4060 # But if we don't then we get into trouble of one sort or another.
4061 # A longer-term fix would be to have automake use am__CC in this case,
4062 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4063 CC="$am_aux_dir/compile $CC"
4064 fi
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070
4071
4072 depcc="$CC" am_compiler_list=
4073
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4075 $as_echo_n "checking dependency style of $depcc... " >&6; }
4076 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4080 # We make a subdir and do the tests there. Otherwise we can end up
4081 # making bogus files that we don't know about and never remove. For
4082 # instance it was reported that on HP-UX the gcc test will end up
4083 # making a dummy file named 'D' -- because '-MD' means "put the output
4084 # in D".
4085 rm -rf conftest.dir
4086 mkdir conftest.dir
4087 # Copy depcomp to subdir because otherwise we won't find it if we're
4088 # using a relative directory.
4089 cp "$am_depcomp" conftest.dir
4090 cd conftest.dir
4091 # We will build objects and dependencies in a subdirectory because
4092 # it helps to detect inapplicable dependency modes. For instance
4093 # both Tru64's cc and ICC support -MD to output dependencies as a
4094 # side effect of compilation, but ICC will put the dependencies in
4095 # the current directory while Tru64 will put them in the object
4096 # directory.
4097 mkdir sub
4098
4099 am_cv_CC_dependencies_compiler_type=none
4100 if test "$am_compiler_list" = ""; then
4101 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4102 fi
4103 am__universal=false
4104 case " $depcc " in #(
4105 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4106 esac
4107
4108 for depmode in $am_compiler_list; do
4109 # Setup a source with many dependencies, because some compilers
4110 # like to wrap large dependency lists on column 80 (with \), and
4111 # we should not choose a depcomp mode which is confused by this.
4112 #
4113 # We need to recreate these files for each test, as the compiler may
4114 # overwrite some of them when testing with obscure command lines.
4115 # This happens at least with the AIX C compiler.
4116 : > sub/conftest.c
4117 for i in 1 2 3 4 5 6; do
4118 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4119 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4120 # Solaris 10 /bin/sh.
4121 echo '/* dummy */' > sub/conftst$i.h
4122 done
4123 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4124
4125 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4126 # mode. It turns out that the SunPro C++ compiler does not properly
4127 # handle '-M -o', and we need to detect this. Also, some Intel
4128 # versions had trouble with output in subdirs.
4129 am__obj=sub/conftest.${OBJEXT-o}
4130 am__minus_obj="-o $am__obj"
4131 case $depmode in
4132 gcc)
4133 # This depmode causes a compiler race in universal mode.
4134 test "$am__universal" = false || continue
4135 ;;
4136 nosideeffect)
4137 # After this tag, mechanisms are not by side-effect, so they'll
4138 # only be used when explicitly requested.
4139 if test "x$enable_dependency_tracking" = xyes; then
4140 continue
4141 else
4142 break
4143 fi
4144 ;;
4145 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4146 # This compiler won't grok '-c -o', but also, the minuso test has
4147 # not run yet. These depmodes are late enough in the game, and
4148 # so weak that their functioning should not be impacted.
4149 am__obj=conftest.${OBJEXT-o}
4150 am__minus_obj=
4151 ;;
4152 none) break ;;
4153 esac
4154 if depmode=$depmode \
4155 source=sub/conftest.c object=$am__obj \
4156 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4157 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4158 >/dev/null 2>conftest.err &&
4159 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4160 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4161 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4162 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4163 # icc doesn't choke on unknown options, it will just issue warnings
4164 # or remarks (even with -Werror). So we grep stderr for any message
4165 # that says an option was ignored or not supported.
4166 # When given -MP, icc 7.0 and 7.1 complain thusly:
4167 # icc: Command line warning: ignoring option '-M'; no argument required
4168 # The diagnosis changed in icc 8.0:
4169 # icc: Command line remark: option '-MP' not supported
4170 if (grep 'ignoring option' conftest.err ||
4171 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4172 am_cv_CC_dependencies_compiler_type=$depmode
4173 break
4174 fi
4175 fi
4176 done
4177
4178 cd ..
4179 rm -rf conftest.dir
4180 else
4181 am_cv_CC_dependencies_compiler_type=none
4182 fi
4183
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4186 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4187 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4188
4189 if
4190 test "x$enable_dependency_tracking" != xno \
4191 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4192 am__fastdepCC_TRUE=
4193 am__fastdepCC_FALSE='#'
4194 else
4195 am__fastdepCC_TRUE='#'
4196 am__fastdepCC_FALSE=
4197 fi
4198
4199
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4201 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4202 if ${ac_cv_path_SED+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4206 for ac_i in 1 2 3 4 5 6 7; do
4207 ac_script="$ac_script$as_nl$ac_script"
4208 done
4209 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4210 { ac_script=; unset ac_script;}
4211 if test -z "$SED"; then
4212 ac_path_SED_found=false
4213 # Loop through the user's path and test for each of PROGNAME-LIST
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_prog in sed gsed; do
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4222 as_fn_executable_p "$ac_path_SED" || continue
4223 # Check for GNU ac_path_SED and select it if it is found.
4224 # Check for GNU $ac_path_SED
4225 case `"$ac_path_SED" --version 2>&1` in
4226 *GNU*)
4227 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4228 *)
4229 ac_count=0
4230 $as_echo_n 0123456789 >"conftest.in"
4231 while :
4232 do
4233 cat "conftest.in" "conftest.in" >"conftest.tmp"
4234 mv "conftest.tmp" "conftest.in"
4235 cp "conftest.in" "conftest.nl"
4236 $as_echo '' >> "conftest.nl"
4237 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4239 as_fn_arith $ac_count + 1 && ac_count=$as_val
4240 if test $ac_count -gt ${ac_path_SED_max-0}; then
4241 # Best one so far, save it but keep looking for a better one
4242 ac_cv_path_SED="$ac_path_SED"
4243 ac_path_SED_max=$ac_count
4244 fi
4245 # 10*(2^10) chars as input seems more than enough
4246 test $ac_count -gt 10 && break
4247 done
4248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249 esac
4250
4251 $ac_path_SED_found && break 3
4252 done
4253 done
4254 done
4255 IFS=$as_save_IFS
4256 if test -z "$ac_cv_path_SED"; then
4257 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4258 fi
4259 else
4260 ac_cv_path_SED=$SED
4261 fi
4262
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4265 $as_echo "$ac_cv_path_SED" >&6; }
4266 SED="$ac_cv_path_SED"
4267 rm -f conftest.sed
4268
4269 test -z "$SED" && SED=sed
4270 Xsed="$SED -e 1s/^X//"
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4283 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4284 if ${ac_cv_path_GREP+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if test -z "$GREP"; then
4288 ac_path_GREP_found=false
4289 # Loop through the user's path and test for each of PROGNAME-LIST
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4292 do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_prog in grep ggrep; do
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4298 as_fn_executable_p "$ac_path_GREP" || continue
4299 # Check for GNU ac_path_GREP and select it if it is found.
4300 # Check for GNU $ac_path_GREP
4301 case `"$ac_path_GREP" --version 2>&1` in
4302 *GNU*)
4303 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4304 *)
4305 ac_count=0
4306 $as_echo_n 0123456789 >"conftest.in"
4307 while :
4308 do
4309 cat "conftest.in" "conftest.in" >"conftest.tmp"
4310 mv "conftest.tmp" "conftest.in"
4311 cp "conftest.in" "conftest.nl"
4312 $as_echo 'GREP' >> "conftest.nl"
4313 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4315 as_fn_arith $ac_count + 1 && ac_count=$as_val
4316 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4317 # Best one so far, save it but keep looking for a better one
4318 ac_cv_path_GREP="$ac_path_GREP"
4319 ac_path_GREP_max=$ac_count
4320 fi
4321 # 10*(2^10) chars as input seems more than enough
4322 test $ac_count -gt 10 && break
4323 done
4324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4325 esac
4326
4327 $ac_path_GREP_found && break 3
4328 done
4329 done
4330 done
4331 IFS=$as_save_IFS
4332 if test -z "$ac_cv_path_GREP"; then
4333 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4334 fi
4335 else
4336 ac_cv_path_GREP=$GREP
4337 fi
4338
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4341 $as_echo "$ac_cv_path_GREP" >&6; }
4342 GREP="$ac_cv_path_GREP"
4343
4344
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4346 $as_echo_n "checking for egrep... " >&6; }
4347 if ${ac_cv_path_EGREP+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4351 then ac_cv_path_EGREP="$GREP -E"
4352 else
4353 if test -z "$EGREP"; then
4354 ac_path_EGREP_found=false
4355 # Loop through the user's path and test for each of PROGNAME-LIST
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4358 do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_prog in egrep; do
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4364 as_fn_executable_p "$ac_path_EGREP" || continue
4365 # Check for GNU ac_path_EGREP and select it if it is found.
4366 # Check for GNU $ac_path_EGREP
4367 case `"$ac_path_EGREP" --version 2>&1` in
4368 *GNU*)
4369 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4370 *)
4371 ac_count=0
4372 $as_echo_n 0123456789 >"conftest.in"
4373 while :
4374 do
4375 cat "conftest.in" "conftest.in" >"conftest.tmp"
4376 mv "conftest.tmp" "conftest.in"
4377 cp "conftest.in" "conftest.nl"
4378 $as_echo 'EGREP' >> "conftest.nl"
4379 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381 as_fn_arith $ac_count + 1 && ac_count=$as_val
4382 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4383 # Best one so far, save it but keep looking for a better one
4384 ac_cv_path_EGREP="$ac_path_EGREP"
4385 ac_path_EGREP_max=$ac_count
4386 fi
4387 # 10*(2^10) chars as input seems more than enough
4388 test $ac_count -gt 10 && break
4389 done
4390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391 esac
4392
4393 $ac_path_EGREP_found && break 3
4394 done
4395 done
4396 done
4397 IFS=$as_save_IFS
4398 if test -z "$ac_cv_path_EGREP"; then
4399 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4400 fi
4401 else
4402 ac_cv_path_EGREP=$EGREP
4403 fi
4404
4405 fi
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4408 $as_echo "$ac_cv_path_EGREP" >&6; }
4409 EGREP="$ac_cv_path_EGREP"
4410
4411
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4413 $as_echo_n "checking for fgrep... " >&6; }
4414 if ${ac_cv_path_FGREP+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4418 then ac_cv_path_FGREP="$GREP -F"
4419 else
4420 if test -z "$FGREP"; then
4421 ac_path_FGREP_found=false
4422 # Loop through the user's path and test for each of PROGNAME-LIST
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4425 do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_prog in fgrep; do
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4431 as_fn_executable_p "$ac_path_FGREP" || continue
4432 # Check for GNU ac_path_FGREP and select it if it is found.
4433 # Check for GNU $ac_path_FGREP
4434 case `"$ac_path_FGREP" --version 2>&1` in
4435 *GNU*)
4436 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4437 *)
4438 ac_count=0
4439 $as_echo_n 0123456789 >"conftest.in"
4440 while :
4441 do
4442 cat "conftest.in" "conftest.in" >"conftest.tmp"
4443 mv "conftest.tmp" "conftest.in"
4444 cp "conftest.in" "conftest.nl"
4445 $as_echo 'FGREP' >> "conftest.nl"
4446 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4448 as_fn_arith $ac_count + 1 && ac_count=$as_val
4449 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4450 # Best one so far, save it but keep looking for a better one
4451 ac_cv_path_FGREP="$ac_path_FGREP"
4452 ac_path_FGREP_max=$ac_count
4453 fi
4454 # 10*(2^10) chars as input seems more than enough
4455 test $ac_count -gt 10 && break
4456 done
4457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4458 esac
4459
4460 $ac_path_FGREP_found && break 3
4461 done
4462 done
4463 done
4464 IFS=$as_save_IFS
4465 if test -z "$ac_cv_path_FGREP"; then
4466 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4467 fi
4468 else
4469 ac_cv_path_FGREP=$FGREP
4470 fi
4471
4472 fi
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4475 $as_echo "$ac_cv_path_FGREP" >&6; }
4476 FGREP="$ac_cv_path_FGREP"
4477
4478
4479 test -z "$GREP" && GREP=grep
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499 # Check whether --with-gnu-ld was given.
4500 if test "${with_gnu_ld+set}" = set; then :
4501 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4502 else
4503 with_gnu_ld=no
4504 fi
4505
4506 ac_prog=ld
4507 if test yes = "$GCC"; then
4508 # Check if gcc -print-prog-name=ld gives a path.
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4510 $as_echo_n "checking for ld used by $CC... " >&6; }
4511 case $host in
4512 *-*-mingw*)
4513 # gcc leaves a trailing carriage return, which upsets mingw
4514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4515 *)
4516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4517 esac
4518 case $ac_prog in
4519 # Accept absolute paths.
4520 [\\/]* | ?:[\\/]*)
4521 re_direlt='/[^/][^/]*/\.\./'
4522 # Canonicalize the pathname of ld
4523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4526 done
4527 test -z "$LD" && LD=$ac_prog
4528 ;;
4529 "")
4530 # If it fails, then pretend we aren't using GCC.
4531 ac_prog=ld
4532 ;;
4533 *)
4534 # If it is relative, then search for the first ld in PATH.
4535 with_gnu_ld=unknown
4536 ;;
4537 esac
4538 elif test yes = "$with_gnu_ld"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4540 $as_echo_n "checking for GNU ld... " >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4543 $as_echo_n "checking for non-GNU ld... " >&6; }
4544 fi
4545 if ${lt_cv_path_LD+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -z "$LD"; then
4549 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4550 for ac_dir in $PATH; do
4551 IFS=$lt_save_ifs
4552 test -z "$ac_dir" && ac_dir=.
4553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4554 lt_cv_path_LD=$ac_dir/$ac_prog
4555 # Check to see if the program is GNU ld. I'd rather use --version,
4556 # but apparently some variants of GNU ld only accept -v.
4557 # Break only if it was the GNU/non-GNU ld that we prefer.
4558 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4559 *GNU* | *'with BFD'*)
4560 test no != "$with_gnu_ld" && break
4561 ;;
4562 *)
4563 test yes != "$with_gnu_ld" && break
4564 ;;
4565 esac
4566 fi
4567 done
4568 IFS=$lt_save_ifs
4569 else
4570 lt_cv_path_LD=$LD # Let the user override the test with a path.
4571 fi
4572 fi
4573
4574 LD=$lt_cv_path_LD
4575 if test -n "$LD"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4577 $as_echo "$LD" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4584 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4585 if ${lt_cv_prog_gnu_ld+:} false; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4589 case `$LD -v 2>&1 </dev/null` in
4590 *GNU* | *'with BFD'*)
4591 lt_cv_prog_gnu_ld=yes
4592 ;;
4593 *)
4594 lt_cv_prog_gnu_ld=no
4595 ;;
4596 esac
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4599 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4600 with_gnu_ld=$lt_cv_prog_gnu_ld
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4611 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4612 if ${lt_cv_path_NM+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$NM"; then
4616 # Let the user override the test.
4617 lt_cv_path_NM=$NM
4618 else
4619 lt_nm_to_check=${ac_tool_prefix}nm
4620 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4621 lt_nm_to_check="$lt_nm_to_check nm"
4622 fi
4623 for lt_tmp_nm in $lt_nm_to_check; do
4624 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4625 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4626 IFS=$lt_save_ifs
4627 test -z "$ac_dir" && ac_dir=.
4628 tmp_nm=$ac_dir/$lt_tmp_nm
4629 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4630 # Check to see if the nm accepts a BSD-compat flag.
4631 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4632 # nm: unknown option "B" ignored
4633 # Tru64's nm complains that /dev/null is an invalid object file
4634 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4635 case $build_os in
4636 mingw*) lt_bad_file=conftest.nm/nofile ;;
4637 *) lt_bad_file=/dev/null ;;
4638 esac
4639 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4640 *$lt_bad_file* | *'Invalid file or object type'*)
4641 lt_cv_path_NM="$tmp_nm -B"
4642 break 2
4643 ;;
4644 *)
4645 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4646 */dev/null*)
4647 lt_cv_path_NM="$tmp_nm -p"
4648 break 2
4649 ;;
4650 *)
4651 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4652 continue # so that we can try to find one that supports BSD flags
4653 ;;
4654 esac
4655 ;;
4656 esac
4657 fi
4658 done
4659 IFS=$lt_save_ifs
4660 done
4661 : ${lt_cv_path_NM=no}
4662 fi
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4665 $as_echo "$lt_cv_path_NM" >&6; }
4666 if test no != "$lt_cv_path_NM"; then
4667 NM=$lt_cv_path_NM
4668 else
4669 # Didn't find any BSD compatible name lister, look for dumpbin.
4670 if test -n "$DUMPBIN"; then :
4671 # Let the user override the test.
4672 else
4673 if test -n "$ac_tool_prefix"; then
4674 for ac_prog in dumpbin "link -dump"
4675 do
4676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if ${ac_cv_prog_DUMPBIN+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$DUMPBIN"; then
4684 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 DUMPBIN=$ac_cv_prog_DUMPBIN
4704 if test -n "$DUMPBIN"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4706 $as_echo "$DUMPBIN" >&6; }
4707 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4711
4712
4713 test -n "$DUMPBIN" && break
4714 done
4715 fi
4716 if test -z "$DUMPBIN"; then
4717 ac_ct_DUMPBIN=$DUMPBIN
4718 for ac_prog in dumpbin "link -dump"
4719 do
4720 # Extract the first word of "$ac_prog", so it can be a program name with args.
4721 set dummy $ac_prog; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 if test -n "$ac_ct_DUMPBIN"; then
4728 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741 done
4742 done
4743 IFS=$as_save_IFS
4744
4745 fi
4746 fi
4747 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4748 if test -n "$ac_ct_DUMPBIN"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4750 $as_echo "$ac_ct_DUMPBIN" >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4754 fi
4755
4756
4757 test -n "$ac_ct_DUMPBIN" && break
4758 done
4759
4760 if test "x$ac_ct_DUMPBIN" = x; then
4761 DUMPBIN=":"
4762 else
4763 case $cross_compiling:$ac_tool_warned in
4764 yes:)
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767 ac_tool_warned=yes ;;
4768 esac
4769 DUMPBIN=$ac_ct_DUMPBIN
4770 fi
4771 fi
4772
4773 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4774 *COFF*)
4775 DUMPBIN="$DUMPBIN -symbols -headers"
4776 ;;
4777 *)
4778 DUMPBIN=:
4779 ;;
4780 esac
4781 fi
4782
4783 if test : != "$DUMPBIN"; then
4784 NM=$DUMPBIN
4785 fi
4786 fi
4787 test -z "$NM" && NM=nm
4788
4789
4790
4791
4792
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4795 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4796 if ${lt_cv_nm_interface+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 lt_cv_nm_interface="BSD nm"
4800 echo "int some_variable = 0;" > conftest.$ac_ext
4801 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4802 (eval "$ac_compile" 2>conftest.err)
4803 cat conftest.err >&5
4804 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4805 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4806 cat conftest.err >&5
4807 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4808 cat conftest.out >&5
4809 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4810 lt_cv_nm_interface="MS dumpbin"
4811 fi
4812 rm -f conftest*
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4815 $as_echo "$lt_cv_nm_interface" >&6; }
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4818 $as_echo_n "checking whether ln -s works... " >&6; }
4819 LN_S=$as_ln_s
4820 if test "$LN_S" = "ln -s"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4822 $as_echo "yes" >&6; }
4823 else
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4825 $as_echo "no, using $LN_S" >&6; }
4826 fi
4827
4828 # find the maximum length of command line arguments
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4830 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4831 if ${lt_cv_sys_max_cmd_len+:} false; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 i=0
4835 teststring=ABCD
4836
4837 case $build_os in
4838 msdosdjgpp*)
4839 # On DJGPP, this test can blow up pretty badly due to problems in libc
4840 # (any single argument exceeding 2000 bytes causes a buffer overrun
4841 # during glob expansion). Even if it were fixed, the result of this
4842 # check would be larger than it should be.
4843 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4844 ;;
4845
4846 gnu*)
4847 # Under GNU Hurd, this test is not required because there is
4848 # no limit to the length of command line arguments.
4849 # Libtool will interpret -1 as no limit whatsoever
4850 lt_cv_sys_max_cmd_len=-1;
4851 ;;
4852
4853 cygwin* | mingw* | cegcc*)
4854 # On Win9x/ME, this test blows up -- it succeeds, but takes
4855 # about 5 minutes as the teststring grows exponentially.
4856 # Worse, since 9x/ME are not pre-emptively multitasking,
4857 # you end up with a "frozen" computer, even though with patience
4858 # the test eventually succeeds (with a max line length of 256k).
4859 # Instead, let's just punt: use the minimum linelength reported by
4860 # all of the supported platforms: 8192 (on NT/2K/XP).
4861 lt_cv_sys_max_cmd_len=8192;
4862 ;;
4863
4864 mint*)
4865 # On MiNT this can take a long time and run out of memory.
4866 lt_cv_sys_max_cmd_len=8192;
4867 ;;
4868
4869 amigaos*)
4870 # On AmigaOS with pdksh, this test takes hours, literally.
4871 # So we just punt and use a minimum line length of 8192.
4872 lt_cv_sys_max_cmd_len=8192;
4873 ;;
4874
4875 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4876 # This has been around since 386BSD, at least. Likely further.
4877 if test -x /sbin/sysctl; then
4878 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4879 elif test -x /usr/sbin/sysctl; then
4880 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4881 else
4882 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4883 fi
4884 # And add a safety zone
4885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4887 ;;
4888
4889 interix*)
4890 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4891 lt_cv_sys_max_cmd_len=196608
4892 ;;
4893
4894 os2*)
4895 # The test takes a long time on OS/2.
4896 lt_cv_sys_max_cmd_len=8192
4897 ;;
4898
4899 osf*)
4900 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4901 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4902 # nice to cause kernel panics so lets avoid the loop below.
4903 # First set a reasonable default.
4904 lt_cv_sys_max_cmd_len=16384
4905 #
4906 if test -x /sbin/sysconfig; then
4907 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4908 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4909 esac
4910 fi
4911 ;;
4912 sco3.2v5*)
4913 lt_cv_sys_max_cmd_len=102400
4914 ;;
4915 sysv5* | sco5v6* | sysv4.2uw2*)
4916 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4917 if test -n "$kargmax"; then
4918 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4919 else
4920 lt_cv_sys_max_cmd_len=32768
4921 fi
4922 ;;
4923 *)
4924 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4925 if test -n "$lt_cv_sys_max_cmd_len" && \
4926 test undefined != "$lt_cv_sys_max_cmd_len"; then
4927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4929 else
4930 # Make teststring a little bigger before we do anything with it.
4931 # a 1K string should be a reasonable start.
4932 for i in 1 2 3 4 5 6 7 8; do
4933 teststring=$teststring$teststring
4934 done
4935 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4936 # If test is not a shell built-in, we'll probably end up computing a
4937 # maximum length that is only half of the actual maximum length, but
4938 # we can't tell.
4939 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4940 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4941 test 17 != "$i" # 1/2 MB should be enough
4942 do
4943 i=`expr $i + 1`
4944 teststring=$teststring$teststring
4945 done
4946 # Only check the string length outside the loop.
4947 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4948 teststring=
4949 # Add a significant safety factor because C++ compilers can tack on
4950 # massive amounts of additional arguments before passing them to the
4951 # linker. It appears as though 1/2 is a usable value.
4952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4953 fi
4954 ;;
4955 esac
4956
4957 fi
4958
4959 if test -n "$lt_cv_sys_max_cmd_len"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4961 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4962 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4964 $as_echo "none" >&6; }
4965 fi
4966 max_cmd_len=$lt_cv_sys_max_cmd_len
4967
4968
4969
4970
4971
4972
4973 : ${CP="cp -f"}
4974 : ${MV="mv -f"}
4975 : ${RM="rm -f"}
4976
4977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4978 lt_unset=unset
4979 else
4980 lt_unset=false
4981 fi
4982
4983
4984
4985
4986
4987 # test EBCDIC or ASCII
4988 case `echo X|tr X '\101'` in
4989 A) # ASCII based system
4990 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4991 lt_SP2NL='tr \040 \012'
4992 lt_NL2SP='tr \015\012 \040\040'
4993 ;;
4994 *) # EBCDIC based system
4995 lt_SP2NL='tr \100 \n'
4996 lt_NL2SP='tr \r\n \100\100'
4997 ;;
4998 esac
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5009 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5010 if ${lt_cv_to_host_file_cmd+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 case $host in
5014 *-*-mingw* )
5015 case $build in
5016 *-*-mingw* ) # actually msys
5017 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5018 ;;
5019 *-*-cygwin* )
5020 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5021 ;;
5022 * ) # otherwise, assume *nix
5023 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5024 ;;
5025 esac
5026 ;;
5027 *-*-cygwin* )
5028 case $build in
5029 *-*-mingw* ) # actually msys
5030 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5031 ;;
5032 *-*-cygwin* )
5033 lt_cv_to_host_file_cmd=func_convert_file_noop
5034 ;;
5035 * ) # otherwise, assume *nix
5036 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5037 ;;
5038 esac
5039 ;;
5040 * ) # unhandled hosts (and "normal" native builds)
5041 lt_cv_to_host_file_cmd=func_convert_file_noop
5042 ;;
5043 esac
5044
5045 fi
5046
5047 to_host_file_cmd=$lt_cv_to_host_file_cmd
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5049 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5050
5051
5052
5053
5054
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5056 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5057 if ${lt_cv_to_tool_file_cmd+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 #assume ordinary cross tools, or native build.
5061 lt_cv_to_tool_file_cmd=func_convert_file_noop
5062 case $host in
5063 *-*-mingw* )
5064 case $build in
5065 *-*-mingw* ) # actually msys
5066 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5067 ;;
5068 esac
5069 ;;
5070 esac
5071
5072 fi
5073
5074 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5076 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5077
5078
5079
5080
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5083 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5084 if ${lt_cv_ld_reload_flag+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 lt_cv_ld_reload_flag='-r'
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5090 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5091 reload_flag=$lt_cv_ld_reload_flag
5092 case $reload_flag in
5093 "" | " "*) ;;
5094 *) reload_flag=" $reload_flag" ;;
5095 esac
5096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5097 case $host_os in
5098 cygwin* | mingw* | pw32* | cegcc*)
5099 if test yes != "$GCC"; then
5100 reload_cmds=false
5101 fi
5102 ;;
5103 darwin*)
5104 if test yes = "$GCC"; then
5105 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5106 else
5107 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5108 fi
5109 ;;
5110 esac
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120 if test -n "$ac_tool_prefix"; then
5121 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5122 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if ${ac_cv_prog_OBJDUMP+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$OBJDUMP"; then
5129 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5138 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5141 fi
5142 done
5143 done
5144 IFS=$as_save_IFS
5145
5146 fi
5147 fi
5148 OBJDUMP=$ac_cv_prog_OBJDUMP
5149 if test -n "$OBJDUMP"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5151 $as_echo "$OBJDUMP" >&6; }
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5155 fi
5156
5157
5158 fi
5159 if test -z "$ac_cv_prog_OBJDUMP"; then
5160 ac_ct_OBJDUMP=$OBJDUMP
5161 # Extract the first word of "objdump", so it can be a program name with args.
5162 set dummy objdump; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$ac_ct_OBJDUMP"; then
5169 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5189 if test -n "$ac_ct_OBJDUMP"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5191 $as_echo "$ac_ct_OBJDUMP" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5195 fi
5196
5197 if test "x$ac_ct_OBJDUMP" = x; then
5198 OBJDUMP="false"
5199 else
5200 case $cross_compiling:$ac_tool_warned in
5201 yes:)
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5204 ac_tool_warned=yes ;;
5205 esac
5206 OBJDUMP=$ac_ct_OBJDUMP
5207 fi
5208 else
5209 OBJDUMP="$ac_cv_prog_OBJDUMP"
5210 fi
5211
5212 test -z "$OBJDUMP" && OBJDUMP=objdump
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5223 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5224 if ${lt_cv_deplibs_check_method+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 lt_cv_file_magic_cmd='$MAGIC_CMD'
5228 lt_cv_file_magic_test_file=
5229 lt_cv_deplibs_check_method='unknown'
5230 # Need to set the preceding variable on all platforms that support
5231 # interlibrary dependencies.
5232 # 'none' -- dependencies not supported.
5233 # 'unknown' -- same as none, but documents that we really don't know.
5234 # 'pass_all' -- all dependencies passed with no checks.
5235 # 'test_compile' -- check by making test program.
5236 # 'file_magic [[regex]]' -- check by looking for files in library path
5237 # that responds to the $file_magic_cmd with a given extended regex.
5238 # If you have 'file' or equivalent on your system and you're not sure
5239 # whether 'pass_all' will *always* work, you probably want this one.
5240
5241 case $host_os in
5242 aix[4-9]*)
5243 lt_cv_deplibs_check_method=pass_all
5244 ;;
5245
5246 beos*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249
5250 bsdi[45]*)
5251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5252 lt_cv_file_magic_cmd='/usr/bin/file -L'
5253 lt_cv_file_magic_test_file=/shlib/libc.so
5254 ;;
5255
5256 cygwin*)
5257 # func_win32_libid is a shell function defined in ltmain.sh
5258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5259 lt_cv_file_magic_cmd='func_win32_libid'
5260 ;;
5261
5262 mingw* | pw32*)
5263 # Base MSYS/MinGW do not provide the 'file' command needed by
5264 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5265 # unless we find 'file', for example because we are cross-compiling.
5266 if ( file / ) >/dev/null 2>&1; then
5267 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5268 lt_cv_file_magic_cmd='func_win32_libid'
5269 else
5270 # Keep this pattern in sync with the one in func_win32_libid.
5271 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5272 lt_cv_file_magic_cmd='$OBJDUMP -f'
5273 fi
5274 ;;
5275
5276 cegcc*)
5277 # use the weaker test based on 'objdump'. See mingw*.
5278 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5279 lt_cv_file_magic_cmd='$OBJDUMP -f'
5280 ;;
5281
5282 darwin* | rhapsody*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285
5286 freebsd* | dragonfly*)
5287 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5288 case $host_cpu in
5289 i*86 )
5290 # Not sure whether the presence of OpenBSD here was a mistake.
5291 # Let's accept both of them until this is cleared up.
5292 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5293 lt_cv_file_magic_cmd=/usr/bin/file
5294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5295 ;;
5296 esac
5297 else
5298 lt_cv_deplibs_check_method=pass_all
5299 fi
5300 ;;
5301
5302 haiku*)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305
5306 hpux10.20* | hpux11*)
5307 lt_cv_file_magic_cmd=/usr/bin/file
5308 case $host_cpu in
5309 ia64*)
5310 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5311 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5312 ;;
5313 hppa*64*)
5314 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]'
5315 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5316 ;;
5317 *)
5318 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5319 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5320 ;;
5321 esac
5322 ;;
5323
5324 interix[3-9]*)
5325 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5327 ;;
5328
5329 irix5* | irix6* | nonstopux*)
5330 case $LD in
5331 *-32|*"-32 ") libmagic=32-bit;;
5332 *-n32|*"-n32 ") libmagic=N32;;
5333 *-64|*"-64 ") libmagic=64-bit;;
5334 *) libmagic=never-match;;
5335 esac
5336 lt_cv_deplibs_check_method=pass_all
5337 ;;
5338
5339 # This must be glibc/ELF.
5340 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343
5344 netbsd* | netbsdelf*-gnu)
5345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5347 else
5348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5349 fi
5350 ;;
5351
5352 newos6*)
5353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5354 lt_cv_file_magic_cmd=/usr/bin/file
5355 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5356 ;;
5357
5358 *nto* | *qnx*)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361
5362 openbsd* | bitrig*)
5363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5365 else
5366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5367 fi
5368 ;;
5369
5370 osf3* | osf4* | osf5*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374 rdos*)
5375 lt_cv_deplibs_check_method=pass_all
5376 ;;
5377
5378 solaris*)
5379 lt_cv_deplibs_check_method=pass_all
5380 ;;
5381
5382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5383 lt_cv_deplibs_check_method=pass_all
5384 ;;
5385
5386 sysv4 | sysv4.3*)
5387 case $host_vendor in
5388 motorola)
5389 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]'
5390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5391 ;;
5392 ncr)
5393 lt_cv_deplibs_check_method=pass_all
5394 ;;
5395 sequent)
5396 lt_cv_file_magic_cmd='/bin/file'
5397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5398 ;;
5399 sni)
5400 lt_cv_file_magic_cmd='/bin/file'
5401 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5402 lt_cv_file_magic_test_file=/lib/libc.so
5403 ;;
5404 siemens)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407 pc)
5408 lt_cv_deplibs_check_method=pass_all
5409 ;;
5410 esac
5411 ;;
5412
5413 tpf*)
5414 lt_cv_deplibs_check_method=pass_all
5415 ;;
5416 os2*)
5417 lt_cv_deplibs_check_method=pass_all
5418 ;;
5419 esac
5420
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5423 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5424
5425 file_magic_glob=
5426 want_nocaseglob=no
5427 if test "$build" = "$host"; then
5428 case $host_os in
5429 mingw* | pw32*)
5430 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5431 want_nocaseglob=yes
5432 else
5433 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5434 fi
5435 ;;
5436 esac
5437 fi
5438
5439 file_magic_cmd=$lt_cv_file_magic_cmd
5440 deplibs_check_method=$lt_cv_deplibs_check_method
5441 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 if test -n "$ac_tool_prefix"; then
5465 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5466 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_prog_DLLTOOL+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$DLLTOOL"; then
5473 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486 done
5487 done
5488 IFS=$as_save_IFS
5489
5490 fi
5491 fi
5492 DLLTOOL=$ac_cv_prog_DLLTOOL
5493 if test -n "$DLLTOOL"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5495 $as_echo "$DLLTOOL" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501
5502 fi
5503 if test -z "$ac_cv_prog_DLLTOOL"; then
5504 ac_ct_DLLTOOL=$DLLTOOL
5505 # Extract the first word of "dlltool", so it can be a program name with args.
5506 set dummy dlltool; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -n "$ac_ct_DLLTOOL"; then
5513 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526 done
5527 done
5528 IFS=$as_save_IFS
5529
5530 fi
5531 fi
5532 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5533 if test -n "$ac_ct_DLLTOOL"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5535 $as_echo "$ac_ct_DLLTOOL" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540
5541 if test "x$ac_ct_DLLTOOL" = x; then
5542 DLLTOOL="false"
5543 else
5544 case $cross_compiling:$ac_tool_warned in
5545 yes:)
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5548 ac_tool_warned=yes ;;
5549 esac
5550 DLLTOOL=$ac_ct_DLLTOOL
5551 fi
5552 else
5553 DLLTOOL="$ac_cv_prog_DLLTOOL"
5554 fi
5555
5556 test -z "$DLLTOOL" && DLLTOOL=dlltool
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5568 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5569 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 lt_cv_sharedlib_from_linklib_cmd='unknown'
5573
5574 case $host_os in
5575 cygwin* | mingw* | pw32* | cegcc*)
5576 # two different shell functions defined in ltmain.sh;
5577 # decide which one to use based on capabilities of $DLLTOOL
5578 case `$DLLTOOL --help 2>&1` in
5579 *--identify-strict*)
5580 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5581 ;;
5582 *)
5583 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5584 ;;
5585 esac
5586 ;;
5587 *)
5588 # fallback: assume linklib IS sharedlib
5589 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5590 ;;
5591 esac
5592
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5595 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5596 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5597 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5598
5599
5600
5601
5602
5603
5604
5605
5606 if test -n "$ac_tool_prefix"; then
5607 for ac_prog in ar
5608 do
5609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_AR+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 if test -n "$AR"; then
5617 ac_cv_prog_AR="$AR" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5629 fi
5630 done
5631 done
5632 IFS=$as_save_IFS
5633
5634 fi
5635 fi
5636 AR=$ac_cv_prog_AR
5637 if test -n "$AR"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5639 $as_echo "$AR" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5643 fi
5644
5645
5646 test -n "$AR" && break
5647 done
5648 fi
5649 if test -z "$AR"; then
5650 ac_ct_AR=$AR
5651 for ac_prog in ar
5652 do
5653 # Extract the first word of "$ac_prog", so it can be a program name with args.
5654 set dummy $ac_prog; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -n "$ac_ct_AR"; then
5661 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670 ac_cv_prog_ac_ct_AR="$ac_prog"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674 done
5675 done
5676 IFS=$as_save_IFS
5677
5678 fi
5679 fi
5680 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5681 if test -n "$ac_ct_AR"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5683 $as_echo "$ac_ct_AR" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5687 fi
5688
5689
5690 test -n "$ac_ct_AR" && break
5691 done
5692
5693 if test "x$ac_ct_AR" = x; then
5694 AR="false"
5695 else
5696 case $cross_compiling:$ac_tool_warned in
5697 yes:)
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700 ac_tool_warned=yes ;;
5701 esac
5702 AR=$ac_ct_AR
5703 fi
5704 fi
5705
5706 : ${AR=ar}
5707 : ${AR_FLAGS=cru}
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5720 $as_echo_n "checking for archiver @FILE support... " >&6; }
5721 if ${lt_cv_ar_at_file+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 lt_cv_ar_at_file=no
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727
5728 int
5729 main ()
5730 {
5731
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 if ac_fn_c_try_compile "$LINENO"; then :
5737 echo conftest.$ac_objext > conftest.lst
5738 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5740 (eval $lt_ar_try) 2>&5
5741 ac_status=$?
5742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5743 test $ac_status = 0; }
5744 if test 0 -eq "$ac_status"; then
5745 # Ensure the archiver fails upon bogus file names.
5746 rm -f conftest.$ac_objext libconftest.a
5747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5748 (eval $lt_ar_try) 2>&5
5749 ac_status=$?
5750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5751 test $ac_status = 0; }
5752 if test 0 -ne "$ac_status"; then
5753 lt_cv_ar_at_file=@
5754 fi
5755 fi
5756 rm -f conftest.* libconftest.a
5757
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5763 $as_echo "$lt_cv_ar_at_file" >&6; }
5764
5765 if test no = "$lt_cv_ar_at_file"; then
5766 archiver_list_spec=
5767 else
5768 archiver_list_spec=$lt_cv_ar_at_file
5769 fi
5770
5771
5772
5773
5774
5775
5776
5777 if test -n "$ac_tool_prefix"; then
5778 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5779 set dummy ${ac_tool_prefix}strip; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_STRIP+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if test -n "$STRIP"; then
5786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799 done
5800 done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 STRIP=$ac_cv_prog_STRIP
5806 if test -n "$STRIP"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5808 $as_echo "$STRIP" >&6; }
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5812 fi
5813
5814
5815 fi
5816 if test -z "$ac_cv_prog_STRIP"; then
5817 ac_ct_STRIP=$STRIP
5818 # Extract the first word of "strip", so it can be a program name with args.
5819 set dummy strip; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$ac_ct_STRIP"; then
5826 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_ac_ct_STRIP="strip"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5846 if test -n "$ac_ct_STRIP"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5848 $as_echo "$ac_ct_STRIP" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854 if test "x$ac_ct_STRIP" = x; then
5855 STRIP=":"
5856 else
5857 case $cross_compiling:$ac_tool_warned in
5858 yes:)
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861 ac_tool_warned=yes ;;
5862 esac
5863 STRIP=$ac_ct_STRIP
5864 fi
5865 else
5866 STRIP="$ac_cv_prog_STRIP"
5867 fi
5868
5869 test -z "$STRIP" && STRIP=:
5870
5871
5872
5873
5874
5875
5876 if test -n "$ac_tool_prefix"; then
5877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5878 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_RANLIB+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$RANLIB"; then
5885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 RANLIB=$ac_cv_prog_RANLIB
5905 if test -n "$RANLIB"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5907 $as_echo "$RANLIB" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913
5914 fi
5915 if test -z "$ac_cv_prog_RANLIB"; then
5916 ac_ct_RANLIB=$RANLIB
5917 # Extract the first word of "ranlib", so it can be a program name with args.
5918 set dummy ranlib; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 if test -n "$ac_ct_RANLIB"; then
5925 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_ac_ct_RANLIB="ranlib"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5945 if test -n "$ac_ct_RANLIB"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5947 $as_echo "$ac_ct_RANLIB" >&6; }
5948 else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952
5953 if test "x$ac_ct_RANLIB" = x; then
5954 RANLIB=":"
5955 else
5956 case $cross_compiling:$ac_tool_warned in
5957 yes:)
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5960 ac_tool_warned=yes ;;
5961 esac
5962 RANLIB=$ac_ct_RANLIB
5963 fi
5964 else
5965 RANLIB="$ac_cv_prog_RANLIB"
5966 fi
5967
5968 test -z "$RANLIB" && RANLIB=:
5969
5970
5971
5972
5973
5974
5975 # Determine commands to create old-style static archives.
5976 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5977 old_postinstall_cmds='chmod 644 $oldlib'
5978 old_postuninstall_cmds=
5979
5980 if test -n "$RANLIB"; then
5981 case $host_os in
5982 bitrig* | openbsd*)
5983 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5984 ;;
5985 *)
5986 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5987 ;;
5988 esac
5989 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5990 fi
5991
5992 case $host_os in
5993 darwin*)
5994 lock_old_archive_extraction=yes ;;
5995 *)
5996 lock_old_archive_extraction=no ;;
5997 esac
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037 # If no C compiler was specified, use CC.
6038 LTCC=${LTCC-"$CC"}
6039
6040 # If no C compiler flags were specified, use CFLAGS.
6041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6042
6043 # Allow CC to be a program name with arguments.
6044 compiler=$CC
6045
6046
6047 # Check for command to grab the raw symbol name followed by C symbol from nm.
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6049 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6050 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053
6054 # These are sane defaults that work on at least a few old systems.
6055 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6056
6057 # Character class describing NM global symbol codes.
6058 symcode='[BCDEGRST]'
6059
6060 # Regexp to match symbols that can be accessed directly from C.
6061 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6062
6063 # Define system-specific variables.
6064 case $host_os in
6065 aix*)
6066 symcode='[BCDT]'
6067 ;;
6068 cygwin* | mingw* | pw32* | cegcc*)
6069 symcode='[ABCDGISTW]'
6070 ;;
6071 hpux*)
6072 if test ia64 = "$host_cpu"; then
6073 symcode='[ABCDEGRST]'
6074 fi
6075 ;;
6076 irix* | nonstopux*)
6077 symcode='[BCDEGRST]'
6078 ;;
6079 osf*)
6080 symcode='[BCDEGQRST]'
6081 ;;
6082 solaris*)
6083 symcode='[BDRT]'
6084 ;;
6085 sco3.2v5*)
6086 symcode='[DT]'
6087 ;;
6088 sysv4.2uw2*)
6089 symcode='[DT]'
6090 ;;
6091 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6092 symcode='[ABDT]'
6093 ;;
6094 sysv4)
6095 symcode='[DFNSTU]'
6096 ;;
6097 esac
6098
6099 # If we're using GNU nm, then use its standard symbol codes.
6100 case `$NM -V 2>&1` in
6101 *GNU* | *'with BFD'*)
6102 symcode='[ABCDGIRSTW]' ;;
6103 esac
6104
6105 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6106 # Gets list of data symbols to import.
6107 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6108 # Adjust the below global symbol transforms to fixup imported variables.
6109 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6110 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6111 lt_c_name_lib_hook="\
6112 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6113 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6114 else
6115 # Disable hooks by default.
6116 lt_cv_sys_global_symbol_to_import=
6117 lt_cdecl_hook=
6118 lt_c_name_hook=
6119 lt_c_name_lib_hook=
6120 fi
6121
6122 # Transform an extracted symbol line into a proper C declaration.
6123 # Some systems (esp. on ia64) link data and code symbols differently,
6124 # so use this general approach.
6125 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6126 $lt_cdecl_hook\
6127 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6128 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6129
6130 # Transform an extracted symbol line into symbol name and symbol address
6131 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6132 $lt_c_name_hook\
6133 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6134 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6135
6136 # Transform an extracted symbol line into symbol name with lib prefix and
6137 # symbol address.
6138 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6139 $lt_c_name_lib_hook\
6140 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6141 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6142 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6143
6144 # Handle CRLF in mingw tool chain
6145 opt_cr=
6146 case $build_os in
6147 mingw*)
6148 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6149 ;;
6150 esac
6151
6152 # Try without a prefix underscore, then with it.
6153 for ac_symprfx in "" "_"; do
6154
6155 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6156 symxfrm="\\1 $ac_symprfx\\2 \\2"
6157
6158 # Write the raw and C identifiers.
6159 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6160 # Fake it for dumpbin and say T for any non-static function,
6161 # D for any global variable and I for any imported variable.
6162 # Also find C++ and __fastcall symbols from MSVC++,
6163 # which start with @ or ?.
6164 lt_cv_sys_global_symbol_pipe="$AWK '"\
6165 " {last_section=section; section=\$ 3};"\
6166 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6167 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6168 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6169 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6170 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6171 " \$ 0!~/External *\|/{next};"\
6172 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6173 " {if(hide[section]) next};"\
6174 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6175 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6176 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6177 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6178 " ' prfx=^$ac_symprfx"
6179 else
6180 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6181 fi
6182 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6183
6184 # Check to see that the pipe works correctly.
6185 pipe_works=no
6186
6187 rm -f conftest*
6188 cat > conftest.$ac_ext <<_LT_EOF
6189 #ifdef __cplusplus
6190 extern "C" {
6191 #endif
6192 char nm_test_var;
6193 void nm_test_func(void);
6194 void nm_test_func(void){}
6195 #ifdef __cplusplus
6196 }
6197 #endif
6198 int main(){nm_test_var='a';nm_test_func();return(0);}
6199 _LT_EOF
6200
6201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6202 (eval $ac_compile) 2>&5
6203 ac_status=$?
6204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205 test $ac_status = 0; }; then
6206 # Now try to grab the symbols.
6207 nlist=conftest.nm
6208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6209 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6210 ac_status=$?
6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; } && test -s "$nlist"; then
6213 # Try sorting and uniquifying the output.
6214 if sort "$nlist" | uniq > "$nlist"T; then
6215 mv -f "$nlist"T "$nlist"
6216 else
6217 rm -f "$nlist"T
6218 fi
6219
6220 # Make sure that we snagged all the symbols we need.
6221 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6222 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6223 cat <<_LT_EOF > conftest.$ac_ext
6224 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6225 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6226 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6227 relocations are performed -- see ld's documentation on pseudo-relocs. */
6228 # define LT_DLSYM_CONST
6229 #elif defined __osf__
6230 /* This system does not cope well with relocations in const data. */
6231 # define LT_DLSYM_CONST
6232 #else
6233 # define LT_DLSYM_CONST const
6234 #endif
6235
6236 #ifdef __cplusplus
6237 extern "C" {
6238 #endif
6239
6240 _LT_EOF
6241 # Now generate the symbol file.
6242 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6243
6244 cat <<_LT_EOF >> conftest.$ac_ext
6245
6246 /* The mapping between symbol names and symbols. */
6247 LT_DLSYM_CONST struct {
6248 const char *name;
6249 void *address;
6250 }
6251 lt__PROGRAM__LTX_preloaded_symbols[] =
6252 {
6253 { "@PROGRAM@", (void *) 0 },
6254 _LT_EOF
6255 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6256 cat <<\_LT_EOF >> conftest.$ac_ext
6257 {0, (void *) 0}
6258 };
6259
6260 /* This works around a problem in FreeBSD linker */
6261 #ifdef FREEBSD_WORKAROUND
6262 static const void *lt_preloaded_setup() {
6263 return lt__PROGRAM__LTX_preloaded_symbols;
6264 }
6265 #endif
6266
6267 #ifdef __cplusplus
6268 }
6269 #endif
6270 _LT_EOF
6271 # Now try linking the two files.
6272 mv conftest.$ac_objext conftstm.$ac_objext
6273 lt_globsym_save_LIBS=$LIBS
6274 lt_globsym_save_CFLAGS=$CFLAGS
6275 LIBS=conftstm.$ac_objext
6276 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6278 (eval $ac_link) 2>&5
6279 ac_status=$?
6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6282 pipe_works=yes
6283 fi
6284 LIBS=$lt_globsym_save_LIBS
6285 CFLAGS=$lt_globsym_save_CFLAGS
6286 else
6287 echo "cannot find nm_test_func in $nlist" >&5
6288 fi
6289 else
6290 echo "cannot find nm_test_var in $nlist" >&5
6291 fi
6292 else
6293 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6294 fi
6295 else
6296 echo "$progname: failed program was:" >&5
6297 cat conftest.$ac_ext >&5
6298 fi
6299 rm -rf conftest* conftst*
6300
6301 # Do not use the global_symbol_pipe unless it works.
6302 if test yes = "$pipe_works"; then
6303 break
6304 else
6305 lt_cv_sys_global_symbol_pipe=
6306 fi
6307 done
6308
6309 fi
6310
6311 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6312 lt_cv_sys_global_symbol_to_cdecl=
6313 fi
6314 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6316 $as_echo "failed" >&6; }
6317 else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6319 $as_echo "ok" >&6; }
6320 fi
6321
6322 # Response file support.
6323 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6324 nm_file_list_spec='@'
6325 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6326 nm_file_list_spec='@'
6327 fi
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6366 $as_echo_n "checking for sysroot... " >&6; }
6367
6368 # Check whether --with-sysroot was given.
6369 if test "${with_sysroot+set}" = set; then :
6370 withval=$with_sysroot;
6371 else
6372 with_sysroot=no
6373 fi
6374
6375
6376 lt_sysroot=
6377 case $with_sysroot in #(
6378 yes)
6379 if test yes = "$GCC"; then
6380 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6381 fi
6382 ;; #(
6383 /*)
6384 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6385 ;; #(
6386 no|'')
6387 ;; #(
6388 *)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6390 $as_echo "$with_sysroot" >&6; }
6391 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6392 ;;
6393 esac
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6396 $as_echo "${lt_sysroot:-no}" >&6; }
6397
6398
6399
6400
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6403 $as_echo_n "checking for a working dd... " >&6; }
6404 if ${ac_cv_path_lt_DD+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 printf 0123456789abcdef0123456789abcdef >conftest.i
6408 cat conftest.i conftest.i >conftest2.i
6409 : ${lt_DD:=$DD}
6410 if test -z "$lt_DD"; then
6411 ac_path_lt_DD_found=false
6412 # Loop through the user's path and test for each of PROGNAME-LIST
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_prog in dd; do
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6421 as_fn_executable_p "$ac_path_lt_DD" || continue
6422 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6423 cmp -s conftest.i conftest.out \
6424 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6425 fi
6426 $ac_path_lt_DD_found && break 3
6427 done
6428 done
6429 done
6430 IFS=$as_save_IFS
6431 if test -z "$ac_cv_path_lt_DD"; then
6432 :
6433 fi
6434 else
6435 ac_cv_path_lt_DD=$lt_DD
6436 fi
6437
6438 rm -f conftest.i conftest2.i conftest.out
6439 fi
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6441 $as_echo "$ac_cv_path_lt_DD" >&6; }
6442
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6445 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6446 if ${lt_cv_truncate_bin+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 printf 0123456789abcdef0123456789abcdef >conftest.i
6450 cat conftest.i conftest.i >conftest2.i
6451 lt_cv_truncate_bin=
6452 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6453 cmp -s conftest.i conftest.out \
6454 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6455 fi
6456 rm -f conftest.i conftest2.i conftest.out
6457 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6458 fi
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6460 $as_echo "$lt_cv_truncate_bin" >&6; }
6461
6462
6463
6464
6465
6466
6467
6468 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6469 func_cc_basename ()
6470 {
6471 for cc_temp in $*""; do
6472 case $cc_temp in
6473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6475 \-*) ;;
6476 *) break;;
6477 esac
6478 done
6479 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6480 }
6481
6482 # Check whether --enable-libtool-lock was given.
6483 if test "${enable_libtool_lock+set}" = set; then :
6484 enableval=$enable_libtool_lock;
6485 fi
6486
6487 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6488
6489 # Some flags need to be propagated to the compiler or linker for good
6490 # libtool support.
6491 case $host in
6492 ia64-*-hpux*)
6493 # Find out what ABI is being produced by ac_compile, and set mode
6494 # options accordingly.
6495 echo 'int i;' > conftest.$ac_ext
6496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6497 (eval $ac_compile) 2>&5
6498 ac_status=$?
6499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500 test $ac_status = 0; }; then
6501 case `/usr/bin/file conftest.$ac_objext` in
6502 *ELF-32*)
6503 HPUX_IA64_MODE=32
6504 ;;
6505 *ELF-64*)
6506 HPUX_IA64_MODE=64
6507 ;;
6508 esac
6509 fi
6510 rm -rf conftest*
6511 ;;
6512 *-*-irix6*)
6513 # Find out what ABI is being produced by ac_compile, and set linker
6514 # options accordingly.
6515 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6517 (eval $ac_compile) 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }; then
6521 if test yes = "$lt_cv_prog_gnu_ld"; then
6522 case `/usr/bin/file conftest.$ac_objext` in
6523 *32-bit*)
6524 LD="${LD-ld} -melf32bsmip"
6525 ;;
6526 *N32*)
6527 LD="${LD-ld} -melf32bmipn32"
6528 ;;
6529 *64-bit*)
6530 LD="${LD-ld} -melf64bmip"
6531 ;;
6532 esac
6533 else
6534 case `/usr/bin/file conftest.$ac_objext` in
6535 *32-bit*)
6536 LD="${LD-ld} -32"
6537 ;;
6538 *N32*)
6539 LD="${LD-ld} -n32"
6540 ;;
6541 *64-bit*)
6542 LD="${LD-ld} -64"
6543 ;;
6544 esac
6545 fi
6546 fi
6547 rm -rf conftest*
6548 ;;
6549
6550 mips64*-*linux*)
6551 # Find out what ABI is being produced by ac_compile, and set linker
6552 # options accordingly.
6553 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6555 (eval $ac_compile) 2>&5
6556 ac_status=$?
6557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6558 test $ac_status = 0; }; then
6559 emul=elf
6560 case `/usr/bin/file conftest.$ac_objext` in
6561 *32-bit*)
6562 emul="${emul}32"
6563 ;;
6564 *64-bit*)
6565 emul="${emul}64"
6566 ;;
6567 esac
6568 case `/usr/bin/file conftest.$ac_objext` in
6569 *MSB*)
6570 emul="${emul}btsmip"
6571 ;;
6572 *LSB*)
6573 emul="${emul}ltsmip"
6574 ;;
6575 esac
6576 case `/usr/bin/file conftest.$ac_objext` in
6577 *N32*)
6578 emul="${emul}n32"
6579 ;;
6580 esac
6581 LD="${LD-ld} -m $emul"
6582 fi
6583 rm -rf conftest*
6584 ;;
6585
6586 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6587 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6588 # Find out what ABI is being produced by ac_compile, and set linker
6589 # options accordingly. Note that the listed cases only cover the
6590 # situations where additional linker options are needed (such as when
6591 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6592 # vice versa); the common cases where no linker options are needed do
6593 # not appear in the list.
6594 echo 'int i;' > conftest.$ac_ext
6595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6596 (eval $ac_compile) 2>&5
6597 ac_status=$?
6598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6599 test $ac_status = 0; }; then
6600 case `/usr/bin/file conftest.o` in
6601 *32-bit*)
6602 case $host in
6603 x86_64-*kfreebsd*-gnu)
6604 LD="${LD-ld} -m elf_i386_fbsd"
6605 ;;
6606 x86_64-*linux*)
6607 case `/usr/bin/file conftest.o` in
6608 *x86-64*)
6609 LD="${LD-ld} -m elf32_x86_64"
6610 ;;
6611 *)
6612 LD="${LD-ld} -m elf_i386"
6613 ;;
6614 esac
6615 ;;
6616 powerpc64le-*linux*)
6617 LD="${LD-ld} -m elf32lppclinux"
6618 ;;
6619 powerpc64-*linux*)
6620 LD="${LD-ld} -m elf32ppclinux"
6621 ;;
6622 s390x-*linux*)
6623 LD="${LD-ld} -m elf_s390"
6624 ;;
6625 sparc64-*linux*)
6626 LD="${LD-ld} -m elf32_sparc"
6627 ;;
6628 esac
6629 ;;
6630 *64-bit*)
6631 case $host in
6632 x86_64-*kfreebsd*-gnu)
6633 LD="${LD-ld} -m elf_x86_64_fbsd"
6634 ;;
6635 x86_64-*linux*)
6636 LD="${LD-ld} -m elf_x86_64"
6637 ;;
6638 powerpcle-*linux*)
6639 LD="${LD-ld} -m elf64lppc"
6640 ;;
6641 powerpc-*linux*)
6642 LD="${LD-ld} -m elf64ppc"
6643 ;;
6644 s390*-*linux*|s390*-*tpf*)
6645 LD="${LD-ld} -m elf64_s390"
6646 ;;
6647 sparc*-*linux*)
6648 LD="${LD-ld} -m elf64_sparc"
6649 ;;
6650 esac
6651 ;;
6652 esac
6653 fi
6654 rm -rf conftest*
6655 ;;
6656
6657 *-*-sco3.2v5*)
6658 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6659 SAVE_CFLAGS=$CFLAGS
6660 CFLAGS="$CFLAGS -belf"
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6662 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6663 if ${lt_cv_cc_needs_belf+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 ac_ext=c
6667 ac_cpp='$CPP $CPPFLAGS'
6668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6671
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6674
6675 int
6676 main ()
6677 {
6678
6679 ;
6680 return 0;
6681 }
6682 _ACEOF
6683 if ac_fn_c_try_link "$LINENO"; then :
6684 lt_cv_cc_needs_belf=yes
6685 else
6686 lt_cv_cc_needs_belf=no
6687 fi
6688 rm -f core conftest.err conftest.$ac_objext \
6689 conftest$ac_exeext conftest.$ac_ext
6690 ac_ext=c
6691 ac_cpp='$CPP $CPPFLAGS'
6692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6695
6696 fi
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6698 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6699 if test yes != "$lt_cv_cc_needs_belf"; then
6700 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6701 CFLAGS=$SAVE_CFLAGS
6702 fi
6703 ;;
6704 *-*solaris*)
6705 # Find out what ABI is being produced by ac_compile, and set linker
6706 # options accordingly.
6707 echo 'int i;' > conftest.$ac_ext
6708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6709 (eval $ac_compile) 2>&5
6710 ac_status=$?
6711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6712 test $ac_status = 0; }; then
6713 case `/usr/bin/file conftest.o` in
6714 *64-bit*)
6715 case $lt_cv_prog_gnu_ld in
6716 yes*)
6717 case $host in
6718 i?86-*-solaris*|x86_64-*-solaris*)
6719 LD="${LD-ld} -m elf_x86_64"
6720 ;;
6721 sparc*-*-solaris*)
6722 LD="${LD-ld} -m elf64_sparc"
6723 ;;
6724 esac
6725 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6726 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6727 LD=${LD-ld}_sol2
6728 fi
6729 ;;
6730 *)
6731 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6732 LD="${LD-ld} -64"
6733 fi
6734 ;;
6735 esac
6736 ;;
6737 esac
6738 fi
6739 rm -rf conftest*
6740 ;;
6741 esac
6742
6743 need_locks=$enable_libtool_lock
6744
6745 if test -n "$ac_tool_prefix"; then
6746 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}mt; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 if test -n "$MANIFEST_TOOL"; then
6754 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767 done
6768 done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6774 if test -n "$MANIFEST_TOOL"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6776 $as_echo "$MANIFEST_TOOL" >&6; }
6777 else
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782
6783 fi
6784 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6785 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6786 # Extract the first word of "mt", so it can be a program name with args.
6787 set dummy mt; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 if test -n "$ac_ct_MANIFEST_TOOL"; then
6794 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6814 if test -n "$ac_ct_MANIFEST_TOOL"; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6816 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6817 else
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6820 fi
6821
6822 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6823 MANIFEST_TOOL=":"
6824 else
6825 case $cross_compiling:$ac_tool_warned in
6826 yes:)
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6829 ac_tool_warned=yes ;;
6830 esac
6831 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6832 fi
6833 else
6834 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6835 fi
6836
6837 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6839 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6840 if ${lt_cv_path_mainfest_tool+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 lt_cv_path_mainfest_tool=no
6844 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6845 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6846 cat conftest.err >&5
6847 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6848 lt_cv_path_mainfest_tool=yes
6849 fi
6850 rm -f conftest*
6851 fi
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6853 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6854 if test yes != "$lt_cv_path_mainfest_tool"; then
6855 MANIFEST_TOOL=:
6856 fi
6857
6858
6859
6860
6861
6862
6863 case $host_os in
6864 rhapsody* | darwin*)
6865 if test -n "$ac_tool_prefix"; then
6866 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6867 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 if test -n "$DSYMUTIL"; then
6874 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6894 if test -n "$DSYMUTIL"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6896 $as_echo "$DSYMUTIL" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900 fi
6901
6902
6903 fi
6904 if test -z "$ac_cv_prog_DSYMUTIL"; then
6905 ac_ct_DSYMUTIL=$DSYMUTIL
6906 # Extract the first word of "dsymutil", so it can be a program name with args.
6907 set dummy dsymutil; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 if test -n "$ac_ct_DSYMUTIL"; then
6914 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931 fi
6932 fi
6933 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6934 if test -n "$ac_ct_DSYMUTIL"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6936 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6937 else
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6940 fi
6941
6942 if test "x$ac_ct_DSYMUTIL" = x; then
6943 DSYMUTIL=":"
6944 else
6945 case $cross_compiling:$ac_tool_warned in
6946 yes:)
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949 ac_tool_warned=yes ;;
6950 esac
6951 DSYMUTIL=$ac_ct_DSYMUTIL
6952 fi
6953 else
6954 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6955 fi
6956
6957 if test -n "$ac_tool_prefix"; then
6958 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6959 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_NMEDIT+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 if test -n "$NMEDIT"; then
6966 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979 done
6980 done
6981 IFS=$as_save_IFS
6982
6983 fi
6984 fi
6985 NMEDIT=$ac_cv_prog_NMEDIT
6986 if test -n "$NMEDIT"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6988 $as_echo "$NMEDIT" >&6; }
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 fi
6993
6994
6995 fi
6996 if test -z "$ac_cv_prog_NMEDIT"; then
6997 ac_ct_NMEDIT=$NMEDIT
6998 # Extract the first word of "nmedit", so it can be a program name with args.
6999 set dummy nmedit; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 if test -n "$ac_ct_NMEDIT"; then
7006 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7018 fi
7019 done
7020 done
7021 IFS=$as_save_IFS
7022
7023 fi
7024 fi
7025 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7026 if test -n "$ac_ct_NMEDIT"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7028 $as_echo "$ac_ct_NMEDIT" >&6; }
7029 else
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7032 fi
7033
7034 if test "x$ac_ct_NMEDIT" = x; then
7035 NMEDIT=":"
7036 else
7037 case $cross_compiling:$ac_tool_warned in
7038 yes:)
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7041 ac_tool_warned=yes ;;
7042 esac
7043 NMEDIT=$ac_ct_NMEDIT
7044 fi
7045 else
7046 NMEDIT="$ac_cv_prog_NMEDIT"
7047 fi
7048
7049 if test -n "$ac_tool_prefix"; then
7050 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7051 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_LIPO+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test -n "$LIPO"; then
7058 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7067 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071 done
7072 done
7073 IFS=$as_save_IFS
7074
7075 fi
7076 fi
7077 LIPO=$ac_cv_prog_LIPO
7078 if test -n "$LIPO"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7080 $as_echo "$LIPO" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085
7086
7087 fi
7088 if test -z "$ac_cv_prog_LIPO"; then
7089 ac_ct_LIPO=$LIPO
7090 # Extract the first word of "lipo", so it can be a program name with args.
7091 set dummy lipo; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 if test -n "$ac_ct_LIPO"; then
7098 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_ac_ct_LIPO="lipo"
7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115 fi
7116 fi
7117 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7118 if test -n "$ac_ct_LIPO"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7120 $as_echo "$ac_ct_LIPO" >&6; }
7121 else
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7124 fi
7125
7126 if test "x$ac_ct_LIPO" = x; then
7127 LIPO=":"
7128 else
7129 case $cross_compiling:$ac_tool_warned in
7130 yes:)
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7133 ac_tool_warned=yes ;;
7134 esac
7135 LIPO=$ac_ct_LIPO
7136 fi
7137 else
7138 LIPO="$ac_cv_prog_LIPO"
7139 fi
7140
7141 if test -n "$ac_tool_prefix"; then
7142 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7143 set dummy ${ac_tool_prefix}otool; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145 $as_echo_n "checking for $ac_word... " >&6; }
7146 if ${ac_cv_prog_OTOOL+:} false; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 if test -n "$OTOOL"; then
7150 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7151 else
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163 done
7164 done
7165 IFS=$as_save_IFS
7166
7167 fi
7168 fi
7169 OTOOL=$ac_cv_prog_OTOOL
7170 if test -n "$OTOOL"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7172 $as_echo "$OTOOL" >&6; }
7173 else
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7176 fi
7177
7178
7179 fi
7180 if test -z "$ac_cv_prog_OTOOL"; then
7181 ac_ct_OTOOL=$OTOOL
7182 # Extract the first word of "otool", so it can be a program name with args.
7183 set dummy otool; ac_word=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 if test -n "$ac_ct_OTOOL"; then
7190 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7191 else
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_ac_ct_OTOOL="otool"
7200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 break 2
7202 fi
7203 done
7204 done
7205 IFS=$as_save_IFS
7206
7207 fi
7208 fi
7209 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7210 if test -n "$ac_ct_OTOOL"; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7212 $as_echo "$ac_ct_OTOOL" >&6; }
7213 else
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7216 fi
7217
7218 if test "x$ac_ct_OTOOL" = x; then
7219 OTOOL=":"
7220 else
7221 case $cross_compiling:$ac_tool_warned in
7222 yes:)
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7225 ac_tool_warned=yes ;;
7226 esac
7227 OTOOL=$ac_ct_OTOOL
7228 fi
7229 else
7230 OTOOL="$ac_cv_prog_OTOOL"
7231 fi
7232
7233 if test -n "$ac_tool_prefix"; then
7234 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7235 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if ${ac_cv_prog_OTOOL64+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 if test -n "$OTOOL64"; then
7242 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7254 fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259 fi
7260 fi
7261 OTOOL64=$ac_cv_prog_OTOOL64
7262 if test -n "$OTOOL64"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7264 $as_echo "$OTOOL64" >&6; }
7265 else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268 fi
7269
7270
7271 fi
7272 if test -z "$ac_cv_prog_OTOOL64"; then
7273 ac_ct_OTOOL64=$OTOOL64
7274 # Extract the first word of "otool64", so it can be a program name with args.
7275 set dummy otool64; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 if test -n "$ac_ct_OTOOL64"; then
7282 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7283 else
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287 IFS=$as_save_IFS
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291 ac_cv_prog_ac_ct_OTOOL64="otool64"
7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 break 2
7294 fi
7295 done
7296 done
7297 IFS=$as_save_IFS
7298
7299 fi
7300 fi
7301 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7302 if test -n "$ac_ct_OTOOL64"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7304 $as_echo "$ac_ct_OTOOL64" >&6; }
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 fi
7309
7310 if test "x$ac_ct_OTOOL64" = x; then
7311 OTOOL64=":"
7312 else
7313 case $cross_compiling:$ac_tool_warned in
7314 yes:)
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7317 ac_tool_warned=yes ;;
7318 esac
7319 OTOOL64=$ac_ct_OTOOL64
7320 fi
7321 else
7322 OTOOL64="$ac_cv_prog_OTOOL64"
7323 fi
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7352 $as_echo_n "checking for -single_module linker flag... " >&6; }
7353 if ${lt_cv_apple_cc_single_mod+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 lt_cv_apple_cc_single_mod=no
7357 if test -z "$LT_MULTI_MODULE"; then
7358 # By default we will add the -single_module flag. You can override
7359 # by either setting the environment variable LT_MULTI_MODULE
7360 # non-empty at configure time, or by adding -multi_module to the
7361 # link flags.
7362 rm -rf libconftest.dylib*
7363 echo "int foo(void){return 1;}" > conftest.c
7364 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7365 -dynamiclib -Wl,-single_module conftest.c" >&5
7366 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7367 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7368 _lt_result=$?
7369 # If there is a non-empty error log, and "single_module"
7370 # appears in it, assume the flag caused a linker warning
7371 if test -s conftest.err && $GREP single_module conftest.err; then
7372 cat conftest.err >&5
7373 # Otherwise, if the output was created with a 0 exit code from
7374 # the compiler, it worked.
7375 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7376 lt_cv_apple_cc_single_mod=yes
7377 else
7378 cat conftest.err >&5
7379 fi
7380 rm -rf libconftest.dylib*
7381 rm -f conftest.*
7382 fi
7383 fi
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7385 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7386
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7388 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7389 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 lt_cv_ld_exported_symbols_list=no
7393 save_LDFLAGS=$LDFLAGS
7394 echo "_main" > conftest.sym
7395 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398
7399 int
7400 main ()
7401 {
7402
7403 ;
7404 return 0;
7405 }
7406 _ACEOF
7407 if ac_fn_c_try_link "$LINENO"; then :
7408 lt_cv_ld_exported_symbols_list=yes
7409 else
7410 lt_cv_ld_exported_symbols_list=no
7411 fi
7412 rm -f core conftest.err conftest.$ac_objext \
7413 conftest$ac_exeext conftest.$ac_ext
7414 LDFLAGS=$save_LDFLAGS
7415
7416 fi
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7418 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7421 $as_echo_n "checking for -force_load linker flag... " >&6; }
7422 if ${lt_cv_ld_force_load+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 lt_cv_ld_force_load=no
7426 cat > conftest.c << _LT_EOF
7427 int forced_loaded() { return 2;}
7428 _LT_EOF
7429 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7430 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7431 echo "$AR cru libconftest.a conftest.o" >&5
7432 $AR cru libconftest.a conftest.o 2>&5
7433 echo "$RANLIB libconftest.a" >&5
7434 $RANLIB libconftest.a 2>&5
7435 cat > conftest.c << _LT_EOF
7436 int main() { return 0;}
7437 _LT_EOF
7438 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7439 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7440 _lt_result=$?
7441 if test -s conftest.err && $GREP force_load conftest.err; then
7442 cat conftest.err >&5
7443 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7444 lt_cv_ld_force_load=yes
7445 else
7446 cat conftest.err >&5
7447 fi
7448 rm -f conftest.err libconftest.a conftest conftest.c
7449 rm -rf conftest.dSYM
7450
7451 fi
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7453 $as_echo "$lt_cv_ld_force_load" >&6; }
7454 case $host_os in
7455 rhapsody* | darwin1.[012])
7456 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7457 darwin1.*)
7458 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7459 darwin*) # darwin 5.x on
7460 # if running on 10.5 or later, the deployment target defaults
7461 # to the OS version, if on x86, and 10.4, the deployment
7462 # target defaults to 10.4. Don't you love it?
7463 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7464 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7465 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7466 10.[012][,.]*)
7467 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7468 10.*)
7469 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7470 esac
7471 ;;
7472 esac
7473 if test yes = "$lt_cv_apple_cc_single_mod"; then
7474 _lt_dar_single_mod='$single_module'
7475 fi
7476 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7477 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7478 else
7479 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7480 fi
7481 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7482 _lt_dsymutil='~$DSYMUTIL $lib || :'
7483 else
7484 _lt_dsymutil=
7485 fi
7486 ;;
7487 esac
7488
7489 # func_munge_path_list VARIABLE PATH
7490 # -----------------------------------
7491 # VARIABLE is name of variable containing _space_ separated list of
7492 # directories to be munged by the contents of PATH, which is string
7493 # having a format:
7494 # "DIR[:DIR]:"
7495 # string "DIR[ DIR]" will be prepended to VARIABLE
7496 # ":DIR[:DIR]"
7497 # string "DIR[ DIR]" will be appended to VARIABLE
7498 # "DIRP[:DIRP]::[DIRA:]DIRA"
7499 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7500 # "DIRA[ DIRA]" will be appended to VARIABLE
7501 # "DIR[:DIR]"
7502 # VARIABLE will be replaced by "DIR[ DIR]"
7503 func_munge_path_list ()
7504 {
7505 case x$2 in
7506 x)
7507 ;;
7508 *:)
7509 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7510 ;;
7511 x:*)
7512 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7513 ;;
7514 *::*)
7515 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7516 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7517 ;;
7518 *)
7519 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7520 ;;
7521 esac
7522 }
7523
7524 ac_ext=c
7525 ac_cpp='$CPP $CPPFLAGS'
7526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7530 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7531 # On Suns, sometimes $CPP names a directory.
7532 if test -n "$CPP" && test -d "$CPP"; then
7533 CPP=
7534 fi
7535 if test -z "$CPP"; then
7536 if ${ac_cv_prog_CPP+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 # Double quotes because CPP needs to be expanded
7540 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7541 do
7542 ac_preproc_ok=false
7543 for ac_c_preproc_warn_flag in '' yes
7544 do
7545 # Use a header file that comes with gcc, so configuring glibc
7546 # with a fresh cross-compiler works.
7547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7548 # <limits.h> exists even on freestanding compilers.
7549 # On the NeXT, cc -E runs the code through the compiler's parser,
7550 # not just through cpp. "Syntax error" is here to catch this case.
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553 #ifdef __STDC__
7554 # include <limits.h>
7555 #else
7556 # include <assert.h>
7557 #endif
7558 Syntax error
7559 _ACEOF
7560 if ac_fn_c_try_cpp "$LINENO"; then :
7561
7562 else
7563 # Broken: fails on valid input.
7564 continue
7565 fi
7566 rm -f conftest.err conftest.i conftest.$ac_ext
7567
7568 # OK, works on sane cases. Now check whether nonexistent headers
7569 # can be detected and how.
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 #include <ac_nonexistent.h>
7573 _ACEOF
7574 if ac_fn_c_try_cpp "$LINENO"; then :
7575 # Broken: success on invalid input.
7576 continue
7577 else
7578 # Passes both tests.
7579 ac_preproc_ok=:
7580 break
7581 fi
7582 rm -f conftest.err conftest.i conftest.$ac_ext
7583
7584 done
7585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7586 rm -f conftest.i conftest.err conftest.$ac_ext
7587 if $ac_preproc_ok; then :
7588 break
7589 fi
7590
7591 done
7592 ac_cv_prog_CPP=$CPP
7593
7594 fi
7595 CPP=$ac_cv_prog_CPP
7596 else
7597 ac_cv_prog_CPP=$CPP
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7600 $as_echo "$CPP" >&6; }
7601 ac_preproc_ok=false
7602 for ac_c_preproc_warn_flag in '' yes
7603 do
7604 # Use a header file that comes with gcc, so configuring glibc
7605 # with a fresh cross-compiler works.
7606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7607 # <limits.h> exists even on freestanding compilers.
7608 # On the NeXT, cc -E runs the code through the compiler's parser,
7609 # not just through cpp. "Syntax error" is here to catch this case.
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7612 #ifdef __STDC__
7613 # include <limits.h>
7614 #else
7615 # include <assert.h>
7616 #endif
7617 Syntax error
7618 _ACEOF
7619 if ac_fn_c_try_cpp "$LINENO"; then :
7620
7621 else
7622 # Broken: fails on valid input.
7623 continue
7624 fi
7625 rm -f conftest.err conftest.i conftest.$ac_ext
7626
7627 # OK, works on sane cases. Now check whether nonexistent headers
7628 # can be detected and how.
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 #include <ac_nonexistent.h>
7632 _ACEOF
7633 if ac_fn_c_try_cpp "$LINENO"; then :
7634 # Broken: success on invalid input.
7635 continue
7636 else
7637 # Passes both tests.
7638 ac_preproc_ok=:
7639 break
7640 fi
7641 rm -f conftest.err conftest.i conftest.$ac_ext
7642
7643 done
7644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7645 rm -f conftest.i conftest.err conftest.$ac_ext
7646 if $ac_preproc_ok; then :
7647
7648 else
7649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7651 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7652 See \`config.log' for more details" "$LINENO" 5; }
7653 fi
7654
7655 ac_ext=c
7656 ac_cpp='$CPP $CPPFLAGS'
7657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7660
7661
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7663 $as_echo_n "checking for ANSI C header files... " >&6; }
7664 if ${ac_cv_header_stdc+:} false; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 #include <stdlib.h>
7670 #include <stdarg.h>
7671 #include <string.h>
7672 #include <float.h>
7673
7674 int
7675 main ()
7676 {
7677
7678 ;
7679 return 0;
7680 }
7681 _ACEOF
7682 if ac_fn_c_try_compile "$LINENO"; then :
7683 ac_cv_header_stdc=yes
7684 else
7685 ac_cv_header_stdc=no
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688
7689 if test $ac_cv_header_stdc = yes; then
7690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 #include <string.h>
7694
7695 _ACEOF
7696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697 $EGREP "memchr" >/dev/null 2>&1; then :
7698
7699 else
7700 ac_cv_header_stdc=no
7701 fi
7702 rm -f conftest*
7703
7704 fi
7705
7706 if test $ac_cv_header_stdc = yes; then
7707 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710 #include <stdlib.h>
7711
7712 _ACEOF
7713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7714 $EGREP "free" >/dev/null 2>&1; then :
7715
7716 else
7717 ac_cv_header_stdc=no
7718 fi
7719 rm -f conftest*
7720
7721 fi
7722
7723 if test $ac_cv_header_stdc = yes; then
7724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7725 if test "$cross_compiling" = yes; then :
7726 :
7727 else
7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h. */
7730 #include <ctype.h>
7731 #include <stdlib.h>
7732 #if ((' ' & 0x0FF) == 0x020)
7733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7735 #else
7736 # define ISLOWER(c) \
7737 (('a' <= (c) && (c) <= 'i') \
7738 || ('j' <= (c) && (c) <= 'r') \
7739 || ('s' <= (c) && (c) <= 'z'))
7740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7741 #endif
7742
7743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7744 int
7745 main ()
7746 {
7747 int i;
7748 for (i = 0; i < 256; i++)
7749 if (XOR (islower (i), ISLOWER (i))
7750 || toupper (i) != TOUPPER (i))
7751 return 2;
7752 return 0;
7753 }
7754 _ACEOF
7755 if ac_fn_c_try_run "$LINENO"; then :
7756
7757 else
7758 ac_cv_header_stdc=no
7759 fi
7760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7761 conftest.$ac_objext conftest.beam conftest.$ac_ext
7762 fi
7763
7764 fi
7765 fi
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7767 $as_echo "$ac_cv_header_stdc" >&6; }
7768 if test $ac_cv_header_stdc = yes; then
7769
7770 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7771
7772 fi
7773
7774 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7775 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7776 inttypes.h stdint.h unistd.h
7777 do :
7778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7779 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7780 "
7781 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7782 cat >>confdefs.h <<_ACEOF
7783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7784 _ACEOF
7785
7786 fi
7787
7788 done
7789
7790
7791 for ac_header in dlfcn.h
7792 do :
7793 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7794 "
7795 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7796 cat >>confdefs.h <<_ACEOF
7797 #define HAVE_DLFCN_H 1
7798 _ACEOF
7799
7800 fi
7801
7802 done
7803
7804
7805
7806
7807
7808 # Set options
7809
7810
7811
7812 enable_dlopen=no
7813
7814
7815 enable_win32_dll=no
7816
7817
7818 # Check whether --enable-shared was given.
7819 if test "${enable_shared+set}" = set; then :
7820 enableval=$enable_shared; p=${PACKAGE-default}
7821 case $enableval in
7822 yes) enable_shared=yes ;;
7823 no) enable_shared=no ;;
7824 *)
7825 enable_shared=no
7826 # Look at the argument we got. We use all the common list separators.
7827 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7828 for pkg in $enableval; do
7829 IFS=$lt_save_ifs
7830 if test "X$pkg" = "X$p"; then
7831 enable_shared=yes
7832 fi
7833 done
7834 IFS=$lt_save_ifs
7835 ;;
7836 esac
7837 else
7838 enable_shared=yes
7839 fi
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851 # Check whether --with-pic was given.
7852 if test "${with_pic+set}" = set; then :
7853 withval=$with_pic; lt_p=${PACKAGE-default}
7854 case $withval in
7855 yes|no) pic_mode=$withval ;;
7856 *)
7857 pic_mode=default
7858 # Look at the argument we got. We use all the common list separators.
7859 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7860 for lt_pkg in $withval; do
7861 IFS=$lt_save_ifs
7862 if test "X$lt_pkg" = "X$lt_p"; then
7863 pic_mode=yes
7864 fi
7865 done
7866 IFS=$lt_save_ifs
7867 ;;
7868 esac
7869 else
7870 pic_mode=default
7871 fi
7872
7873
7874
7875
7876
7877
7878
7879
7880 # Check whether --enable-fast-install was given.
7881 if test "${enable_fast_install+set}" = set; then :
7882 enableval=$enable_fast_install; p=${PACKAGE-default}
7883 case $enableval in
7884 yes) enable_fast_install=yes ;;
7885 no) enable_fast_install=no ;;
7886 *)
7887 enable_fast_install=no
7888 # Look at the argument we got. We use all the common list separators.
7889 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7890 for pkg in $enableval; do
7891 IFS=$lt_save_ifs
7892 if test "X$pkg" = "X$p"; then
7893 enable_fast_install=yes
7894 fi
7895 done
7896 IFS=$lt_save_ifs
7897 ;;
7898 esac
7899 else
7900 enable_fast_install=yes
7901 fi
7902
7903
7904
7905
7906
7907
7908
7909
7910 shared_archive_member_spec=
7911 case $host,$enable_shared in
7912 power*-*-aix[5-9]*,yes)
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7914 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7915
7916 # Check whether --with-aix-soname was given.
7917 if test "${with_aix_soname+set}" = set; then :
7918 withval=$with_aix_soname; case $withval in
7919 aix|svr4|both)
7920 ;;
7921 *)
7922 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7923 ;;
7924 esac
7925 lt_cv_with_aix_soname=$with_aix_soname
7926 else
7927 if ${lt_cv_with_aix_soname+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 lt_cv_with_aix_soname=aix
7931 fi
7932
7933 with_aix_soname=$lt_cv_with_aix_soname
7934 fi
7935
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7937 $as_echo "$with_aix_soname" >&6; }
7938 if test aix != "$with_aix_soname"; then
7939 # For the AIX way of multilib, we name the shared archive member
7940 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7941 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7942 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7943 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7944 if test 64 = "${OBJECT_MODE-32}"; then
7945 shared_archive_member_spec=shr_64
7946 else
7947 shared_archive_member_spec=shr
7948 fi
7949 fi
7950 ;;
7951 *)
7952 with_aix_soname=aix
7953 ;;
7954 esac
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965 # This can be used to rebuild libtool when needed
7966 LIBTOOL_DEPS=$ltmain
7967
7968 # Always use our own libtool.
7969 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
7997
7998
7999
8000 test -z "$LN_S" && LN_S="ln -s"
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015 if test -n "${ZSH_VERSION+set}"; then
8016 setopt NO_GLOB_SUBST
8017 fi
8018
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8020 $as_echo_n "checking for objdir... " >&6; }
8021 if ${lt_cv_objdir+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 rm -f .libs 2>/dev/null
8025 mkdir .libs 2>/dev/null
8026 if test -d .libs; then
8027 lt_cv_objdir=.libs
8028 else
8029 # MS-DOS does not allow filenames that begin with a dot.
8030 lt_cv_objdir=_libs
8031 fi
8032 rmdir .libs 2>/dev/null
8033 fi
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8035 $as_echo "$lt_cv_objdir" >&6; }
8036 objdir=$lt_cv_objdir
8037
8038
8039
8040
8041
8042 cat >>confdefs.h <<_ACEOF
8043 #define LT_OBJDIR "$lt_cv_objdir/"
8044 _ACEOF
8045
8046
8047
8048
8049 case $host_os in
8050 aix3*)
8051 # AIX sometimes has problems with the GCC collect2 program. For some
8052 # reason, if we set the COLLECT_NAMES environment variable, the problems
8053 # vanish in a puff of smoke.
8054 if test set != "${COLLECT_NAMES+set}"; then
8055 COLLECT_NAMES=
8056 export COLLECT_NAMES
8057 fi
8058 ;;
8059 esac
8060
8061 # Global variables:
8062 ofile=libtool
8063 can_build_shared=yes
8064
8065 # All known linkers require a '.a' archive for static linking (except MSVC,
8066 # which needs '.lib').
8067 libext=a
8068
8069 with_gnu_ld=$lt_cv_prog_gnu_ld
8070
8071 old_CC=$CC
8072 old_CFLAGS=$CFLAGS
8073
8074 # Set sane defaults for various variables
8075 test -z "$CC" && CC=cc
8076 test -z "$LTCC" && LTCC=$CC
8077 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8078 test -z "$LD" && LD=ld
8079 test -z "$ac_objext" && ac_objext=o
8080
8081 func_cc_basename $compiler
8082 cc_basename=$func_cc_basename_result
8083
8084
8085 # Only perform the check for file, if the check method requires it
8086 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8087 case $deplibs_check_method in
8088 file_magic*)
8089 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8091 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8092 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 case $MAGIC_CMD in
8096 [\\/*] | ?:[\\/]*)
8097 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8098 ;;
8099 *)
8100 lt_save_MAGIC_CMD=$MAGIC_CMD
8101 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8102 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8103 for ac_dir in $ac_dummy; do
8104 IFS=$lt_save_ifs
8105 test -z "$ac_dir" && ac_dir=.
8106 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8107 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8108 if test -n "$file_magic_test_file"; then
8109 case $deplibs_check_method in
8110 "file_magic "*)
8111 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8112 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8113 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8114 $EGREP "$file_magic_regex" > /dev/null; then
8115 :
8116 else
8117 cat <<_LT_EOF 1>&2
8118
8119 *** Warning: the command libtool uses to detect shared libraries,
8120 *** $file_magic_cmd, produces output that libtool cannot recognize.
8121 *** The result is that libtool may fail to recognize shared libraries
8122 *** as such. This will affect the creation of libtool libraries that
8123 *** depend on shared libraries, but programs linked with such libtool
8124 *** libraries will work regardless of this problem. Nevertheless, you
8125 *** may want to report the problem to your system manager and/or to
8126 *** [email protected]
8127
8128 _LT_EOF
8129 fi ;;
8130 esac
8131 fi
8132 break
8133 fi
8134 done
8135 IFS=$lt_save_ifs
8136 MAGIC_CMD=$lt_save_MAGIC_CMD
8137 ;;
8138 esac
8139 fi
8140
8141 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8142 if test -n "$MAGIC_CMD"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8144 $as_echo "$MAGIC_CMD" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8148 fi
8149
8150
8151
8152
8153
8154 if test -z "$lt_cv_path_MAGIC_CMD"; then
8155 if test -n "$ac_tool_prefix"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8157 $as_echo_n "checking for file... " >&6; }
8158 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 case $MAGIC_CMD in
8162 [\\/*] | ?:[\\/]*)
8163 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8164 ;;
8165 *)
8166 lt_save_MAGIC_CMD=$MAGIC_CMD
8167 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8168 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8169 for ac_dir in $ac_dummy; do
8170 IFS=$lt_save_ifs
8171 test -z "$ac_dir" && ac_dir=.
8172 if test -f "$ac_dir/file"; then
8173 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8174 if test -n "$file_magic_test_file"; then
8175 case $deplibs_check_method in
8176 "file_magic "*)
8177 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8178 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8180 $EGREP "$file_magic_regex" > /dev/null; then
8181 :
8182 else
8183 cat <<_LT_EOF 1>&2
8184
8185 *** Warning: the command libtool uses to detect shared libraries,
8186 *** $file_magic_cmd, produces output that libtool cannot recognize.
8187 *** The result is that libtool may fail to recognize shared libraries
8188 *** as such. This will affect the creation of libtool libraries that
8189 *** depend on shared libraries, but programs linked with such libtool
8190 *** libraries will work regardless of this problem. Nevertheless, you
8191 *** may want to report the problem to your system manager and/or to
8192 *** [email protected]
8193
8194 _LT_EOF
8195 fi ;;
8196 esac
8197 fi
8198 break
8199 fi
8200 done
8201 IFS=$lt_save_ifs
8202 MAGIC_CMD=$lt_save_MAGIC_CMD
8203 ;;
8204 esac
8205 fi
8206
8207 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8208 if test -n "$MAGIC_CMD"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8210 $as_echo "$MAGIC_CMD" >&6; }
8211 else
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8214 fi
8215
8216
8217 else
8218 MAGIC_CMD=:
8219 fi
8220 fi
8221
8222 fi
8223 ;;
8224 esac
8225
8226 # Use C for the default configuration in the libtool script
8227
8228 lt_save_CC=$CC
8229 ac_ext=c
8230 ac_cpp='$CPP $CPPFLAGS'
8231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8234
8235
8236 # Source file extension for C test sources.
8237 ac_ext=c
8238
8239 # Object file extension for compiled C test sources.
8240 objext=o
8241 objext=$objext
8242
8243 # Code to be used in simple compile tests
8244 lt_simple_compile_test_code="int some_variable = 0;"
8245
8246 # Code to be used in simple link tests
8247 lt_simple_link_test_code='int main(){return(0);}'
8248
8249
8250
8251
8252
8253
8254
8255 # If no C compiler was specified, use CC.
8256 LTCC=${LTCC-"$CC"}
8257
8258 # If no C compiler flags were specified, use CFLAGS.
8259 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8260
8261 # Allow CC to be a program name with arguments.
8262 compiler=$CC
8263
8264 # Save the default compiler, since it gets overwritten when the other
8265 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8266 compiler_DEFAULT=$CC
8267
8268 # save warnings/boilerplate of simple test code
8269 ac_outfile=conftest.$ac_objext
8270 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8271 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8272 _lt_compiler_boilerplate=`cat conftest.err`
8273 $RM conftest*
8274
8275 ac_outfile=conftest.$ac_objext
8276 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8277 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8278 _lt_linker_boilerplate=`cat conftest.err`
8279 $RM -r conftest*
8280
8281
8282 ## CAVEAT EMPTOR:
8283 ## There is no encapsulation within the following macros, do not change
8284 ## the running order or otherwise move them around unless you know exactly
8285 ## what you are doing...
8286 if test -n "$compiler"; then
8287
8288 lt_prog_compiler_no_builtin_flag=
8289
8290 if test yes = "$GCC"; then
8291 case $cc_basename in
8292 nvcc*)
8293 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8294 *)
8295 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8296 esac
8297
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8299 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8300 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 lt_cv_prog_compiler_rtti_exceptions=no
8304 ac_outfile=conftest.$ac_objext
8305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8306 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8307 # Insert the option either (1) after the last *FLAGS variable, or
8308 # (2) before a word containing "conftest.", or (3) at the end.
8309 # Note that $ac_compile itself does not contain backslashes and begins
8310 # with a dollar sign (not a hyphen), so the echo should work correctly.
8311 # The option is referenced via a variable to avoid confusing sed.
8312 lt_compile=`echo "$ac_compile" | $SED \
8313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8315 -e 's:$: $lt_compiler_flag:'`
8316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8317 (eval "$lt_compile" 2>conftest.err)
8318 ac_status=$?
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 if (exit $ac_status) && test -s "$ac_outfile"; then
8322 # The compiler can only warn and ignore the option if not recognized
8323 # So say no if there are warnings other than the usual output.
8324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8327 lt_cv_prog_compiler_rtti_exceptions=yes
8328 fi
8329 fi
8330 $RM conftest*
8331
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8334 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8335
8336 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8337 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8338 else
8339 :
8340 fi
8341
8342 fi
8343
8344
8345
8346
8347
8348
8349 lt_prog_compiler_wl=
8350 lt_prog_compiler_pic=
8351 lt_prog_compiler_static=
8352
8353
8354 if test yes = "$GCC"; then
8355 lt_prog_compiler_wl='-Wl,'
8356 lt_prog_compiler_static='-static'
8357
8358 case $host_os in
8359 aix*)
8360 # All AIX code is PIC.
8361 if test ia64 = "$host_cpu"; then
8362 # AIX 5 now supports IA64 processor
8363 lt_prog_compiler_static='-Bstatic'
8364 fi
8365 lt_prog_compiler_pic='-fPIC'
8366 ;;
8367
8368 amigaos*)
8369 case $host_cpu in
8370 powerpc)
8371 # see comment about AmigaOS4 .so support
8372 lt_prog_compiler_pic='-fPIC'
8373 ;;
8374 m68k)
8375 # FIXME: we need at least 68020 code to build shared libraries, but
8376 # adding the '-m68020' flag to GCC prevents building anything better,
8377 # like '-m68040'.
8378 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8379 ;;
8380 esac
8381 ;;
8382
8383 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8384 # PIC is the default for these OSes.
8385 ;;
8386
8387 mingw* | cygwin* | pw32* | os2* | cegcc*)
8388 # This hack is so that the source file can tell whether it is being
8389 # built for inclusion in a dll (and should export symbols for example).
8390 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8391 # (--disable-auto-import) libraries
8392 lt_prog_compiler_pic='-DDLL_EXPORT'
8393 case $host_os in
8394 os2*)
8395 lt_prog_compiler_static='$wl-static'
8396 ;;
8397 esac
8398 ;;
8399
8400 darwin* | rhapsody*)
8401 # PIC is the default on this platform
8402 # Common symbols not allowed in MH_DYLIB files
8403 lt_prog_compiler_pic='-fno-common'
8404 ;;
8405
8406 haiku*)
8407 # PIC is the default for Haiku.
8408 # The "-static" flag exists, but is broken.
8409 lt_prog_compiler_static=
8410 ;;
8411
8412 hpux*)
8413 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8414 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8415 # sets the default TLS model and affects inlining.
8416 case $host_cpu in
8417 hppa*64*)
8418 # +Z the default
8419 ;;
8420 *)
8421 lt_prog_compiler_pic='-fPIC'
8422 ;;
8423 esac
8424 ;;
8425
8426 interix[3-9]*)
8427 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8428 # Instead, we relocate shared libraries at runtime.
8429 ;;
8430
8431 msdosdjgpp*)
8432 # Just because we use GCC doesn't mean we suddenly get shared libraries
8433 # on systems that don't support them.
8434 lt_prog_compiler_can_build_shared=no
8435 enable_shared=no
8436 ;;
8437
8438 *nto* | *qnx*)
8439 # QNX uses GNU C++, but need to define -shared option too, otherwise
8440 # it will coredump.
8441 lt_prog_compiler_pic='-fPIC -shared'
8442 ;;
8443
8444 sysv4*MP*)
8445 if test -d /usr/nec; then
8446 lt_prog_compiler_pic=-Kconform_pic
8447 fi
8448 ;;
8449
8450 *)
8451 lt_prog_compiler_pic='-fPIC'
8452 ;;
8453 esac
8454
8455 case $cc_basename in
8456 nvcc*) # Cuda Compiler Driver 2.2
8457 lt_prog_compiler_wl='-Xlinker '
8458 if test -n "$lt_prog_compiler_pic"; then
8459 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8460 fi
8461 ;;
8462 esac
8463 else
8464 # PORTME Check for flag to pass linker flags through the system compiler.
8465 case $host_os in
8466 aix*)
8467 lt_prog_compiler_wl='-Wl,'
8468 if test ia64 = "$host_cpu"; then
8469 # AIX 5 now supports IA64 processor
8470 lt_prog_compiler_static='-Bstatic'
8471 else
8472 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8473 fi
8474 ;;
8475
8476 darwin* | rhapsody*)
8477 # PIC is the default on this platform
8478 # Common symbols not allowed in MH_DYLIB files
8479 lt_prog_compiler_pic='-fno-common'
8480 case $cc_basename in
8481 nagfor*)
8482 # NAG Fortran compiler
8483 lt_prog_compiler_wl='-Wl,-Wl,,'
8484 lt_prog_compiler_pic='-PIC'
8485 lt_prog_compiler_static='-Bstatic'
8486 ;;
8487 esac
8488 ;;
8489
8490 mingw* | cygwin* | pw32* | os2* | cegcc*)
8491 # This hack is so that the source file can tell whether it is being
8492 # built for inclusion in a dll (and should export symbols for example).
8493 lt_prog_compiler_pic='-DDLL_EXPORT'
8494 case $host_os in
8495 os2*)
8496 lt_prog_compiler_static='$wl-static'
8497 ;;
8498 esac
8499 ;;
8500
8501 hpux9* | hpux10* | hpux11*)
8502 lt_prog_compiler_wl='-Wl,'
8503 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8504 # not for PA HP-UX.
8505 case $host_cpu in
8506 hppa*64*|ia64*)
8507 # +Z the default
8508 ;;
8509 *)
8510 lt_prog_compiler_pic='+Z'
8511 ;;
8512 esac
8513 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8514 lt_prog_compiler_static='$wl-a ${wl}archive'
8515 ;;
8516
8517 irix5* | irix6* | nonstopux*)
8518 lt_prog_compiler_wl='-Wl,'
8519 # PIC (with -KPIC) is the default.
8520 lt_prog_compiler_static='-non_shared'
8521 ;;
8522
8523 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8524 case $cc_basename in
8525 # old Intel for x86_64, which still supported -KPIC.
8526 ecc*)
8527 lt_prog_compiler_wl='-Wl,'
8528 lt_prog_compiler_pic='-KPIC'
8529 lt_prog_compiler_static='-static'
8530 ;;
8531 # icc used to be incompatible with GCC.
8532 # ICC 10 doesn't accept -KPIC any more.
8533 icc* | ifort*)
8534 lt_prog_compiler_wl='-Wl,'
8535 lt_prog_compiler_pic='-fPIC'
8536 lt_prog_compiler_static='-static'
8537 ;;
8538 # Lahey Fortran 8.1.
8539 lf95*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='--shared'
8542 lt_prog_compiler_static='--static'
8543 ;;
8544 nagfor*)
8545 # NAG Fortran compiler
8546 lt_prog_compiler_wl='-Wl,-Wl,,'
8547 lt_prog_compiler_pic='-PIC'
8548 lt_prog_compiler_static='-Bstatic'
8549 ;;
8550 tcc*)
8551 # Fabrice Bellard et al's Tiny C Compiler
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-fPIC'
8554 lt_prog_compiler_static='-static'
8555 ;;
8556 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8557 # Portland Group compilers (*not* the Pentium gcc compiler,
8558 # which looks to be a dead project)
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_pic='-fpic'
8561 lt_prog_compiler_static='-Bstatic'
8562 ;;
8563 ccc*)
8564 lt_prog_compiler_wl='-Wl,'
8565 # All Alpha code is PIC.
8566 lt_prog_compiler_static='-non_shared'
8567 ;;
8568 xl* | bgxl* | bgf* | mpixl*)
8569 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8570 lt_prog_compiler_wl='-Wl,'
8571 lt_prog_compiler_pic='-qpic'
8572 lt_prog_compiler_static='-qstaticlink'
8573 ;;
8574 *)
8575 case `$CC -V 2>&1 | sed 5q` in
8576 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8577 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8578 lt_prog_compiler_pic='-KPIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 lt_prog_compiler_wl=''
8581 ;;
8582 *Sun\ F* | *Sun*Fortran*)
8583 lt_prog_compiler_pic='-KPIC'
8584 lt_prog_compiler_static='-Bstatic'
8585 lt_prog_compiler_wl='-Qoption ld '
8586 ;;
8587 *Sun\ C*)
8588 # Sun C 5.9
8589 lt_prog_compiler_pic='-KPIC'
8590 lt_prog_compiler_static='-Bstatic'
8591 lt_prog_compiler_wl='-Wl,'
8592 ;;
8593 *Intel*\ [CF]*Compiler*)
8594 lt_prog_compiler_wl='-Wl,'
8595 lt_prog_compiler_pic='-fPIC'
8596 lt_prog_compiler_static='-static'
8597 ;;
8598 *Portland\ Group*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-fpic'
8601 lt_prog_compiler_static='-Bstatic'
8602 ;;
8603 esac
8604 ;;
8605 esac
8606 ;;
8607
8608 newsos6)
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 ;;
8612
8613 *nto* | *qnx*)
8614 # QNX uses GNU C++, but need to define -shared option too, otherwise
8615 # it will coredump.
8616 lt_prog_compiler_pic='-fPIC -shared'
8617 ;;
8618
8619 osf3* | osf4* | osf5*)
8620 lt_prog_compiler_wl='-Wl,'
8621 # All OSF/1 code is PIC.
8622 lt_prog_compiler_static='-non_shared'
8623 ;;
8624
8625 rdos*)
8626 lt_prog_compiler_static='-non_shared'
8627 ;;
8628
8629 solaris*)
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-Bstatic'
8632 case $cc_basename in
8633 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8634 lt_prog_compiler_wl='-Qoption ld ';;
8635 *)
8636 lt_prog_compiler_wl='-Wl,';;
8637 esac
8638 ;;
8639
8640 sunos4*)
8641 lt_prog_compiler_wl='-Qoption ld '
8642 lt_prog_compiler_pic='-PIC'
8643 lt_prog_compiler_static='-Bstatic'
8644 ;;
8645
8646 sysv4 | sysv4.2uw2* | sysv4.3*)
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_pic='-KPIC'
8649 lt_prog_compiler_static='-Bstatic'
8650 ;;
8651
8652 sysv4*MP*)
8653 if test -d /usr/nec; then
8654 lt_prog_compiler_pic='-Kconform_pic'
8655 lt_prog_compiler_static='-Bstatic'
8656 fi
8657 ;;
8658
8659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8660 lt_prog_compiler_wl='-Wl,'
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
8663 ;;
8664
8665 unicos*)
8666 lt_prog_compiler_wl='-Wl,'
8667 lt_prog_compiler_can_build_shared=no
8668 ;;
8669
8670 uts4*)
8671 lt_prog_compiler_pic='-pic'
8672 lt_prog_compiler_static='-Bstatic'
8673 ;;
8674
8675 *)
8676 lt_prog_compiler_can_build_shared=no
8677 ;;
8678 esac
8679 fi
8680
8681 case $host_os in
8682 # For platforms that do not support PIC, -DPIC is meaningless:
8683 *djgpp*)
8684 lt_prog_compiler_pic=
8685 ;;
8686 *)
8687 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8688 ;;
8689 esac
8690
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8692 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8693 if ${lt_cv_prog_compiler_pic+:} false; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8697 fi
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8699 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8700 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8701
8702 #
8703 # Check to make sure the PIC flag actually works.
8704 #
8705 if test -n "$lt_prog_compiler_pic"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8707 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8708 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 lt_cv_prog_compiler_pic_works=no
8712 ac_outfile=conftest.$ac_objext
8713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8714 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8715 # Insert the option either (1) after the last *FLAGS variable, or
8716 # (2) before a word containing "conftest.", or (3) at the end.
8717 # Note that $ac_compile itself does not contain backslashes and begins
8718 # with a dollar sign (not a hyphen), so the echo should work correctly.
8719 # The option is referenced via a variable to avoid confusing sed.
8720 lt_compile=`echo "$ac_compile" | $SED \
8721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8723 -e 's:$: $lt_compiler_flag:'`
8724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8725 (eval "$lt_compile" 2>conftest.err)
8726 ac_status=$?
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 if (exit $ac_status) && test -s "$ac_outfile"; then
8730 # The compiler can only warn and ignore the option if not recognized
8731 # So say no if there are warnings other than the usual output.
8732 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8735 lt_cv_prog_compiler_pic_works=yes
8736 fi
8737 fi
8738 $RM conftest*
8739
8740 fi
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8742 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8743
8744 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8745 case $lt_prog_compiler_pic in
8746 "" | " "*) ;;
8747 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8748 esac
8749 else
8750 lt_prog_compiler_pic=
8751 lt_prog_compiler_can_build_shared=no
8752 fi
8753
8754 fi
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766 #
8767 # Check to make sure the static flag actually works.
8768 #
8769 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8771 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8772 if ${lt_cv_prog_compiler_static_works+:} false; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 lt_cv_prog_compiler_static_works=no
8776 save_LDFLAGS=$LDFLAGS
8777 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8778 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8779 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8780 # The linker can only warn and ignore the option if not recognized
8781 # So say no if there are warnings
8782 if test -s conftest.err; then
8783 # Append any errors to the config.log.
8784 cat conftest.err 1>&5
8785 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8787 if diff conftest.exp conftest.er2 >/dev/null; then
8788 lt_cv_prog_compiler_static_works=yes
8789 fi
8790 else
8791 lt_cv_prog_compiler_static_works=yes
8792 fi
8793 fi
8794 $RM -r conftest*
8795 LDFLAGS=$save_LDFLAGS
8796
8797 fi
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8799 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8800
8801 if test yes = "$lt_cv_prog_compiler_static_works"; then
8802 :
8803 else
8804 lt_prog_compiler_static=
8805 fi
8806
8807
8808
8809
8810
8811
8812
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8814 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8815 if ${lt_cv_prog_compiler_c_o+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 lt_cv_prog_compiler_c_o=no
8819 $RM -r conftest 2>/dev/null
8820 mkdir conftest
8821 cd conftest
8822 mkdir out
8823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8824
8825 lt_compiler_flag="-o out/conftest2.$ac_objext"
8826 # Insert the option either (1) after the last *FLAGS variable, or
8827 # (2) before a word containing "conftest.", or (3) at the end.
8828 # Note that $ac_compile itself does not contain backslashes and begins
8829 # with a dollar sign (not a hyphen), so the echo should work correctly.
8830 lt_compile=`echo "$ac_compile" | $SED \
8831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8833 -e 's:$: $lt_compiler_flag:'`
8834 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8835 (eval "$lt_compile" 2>out/conftest.err)
8836 ac_status=$?
8837 cat out/conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8840 then
8841 # The compiler can only warn and ignore the option if not recognized
8842 # So say no if there are warnings
8843 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8844 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8845 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8846 lt_cv_prog_compiler_c_o=yes
8847 fi
8848 fi
8849 chmod u+w . 2>&5
8850 $RM conftest*
8851 # SGI C++ compiler will create directory out/ii_files/ for
8852 # template instantiation
8853 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8854 $RM out/* && rmdir out
8855 cd ..
8856 $RM -r conftest
8857 $RM conftest*
8858
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8861 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8862
8863
8864
8865
8866
8867
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8869 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8870 if ${lt_cv_prog_compiler_c_o+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 lt_cv_prog_compiler_c_o=no
8874 $RM -r conftest 2>/dev/null
8875 mkdir conftest
8876 cd conftest
8877 mkdir out
8878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8879
8880 lt_compiler_flag="-o out/conftest2.$ac_objext"
8881 # Insert the option either (1) after the last *FLAGS variable, or
8882 # (2) before a word containing "conftest.", or (3) at the end.
8883 # Note that $ac_compile itself does not contain backslashes and begins
8884 # with a dollar sign (not a hyphen), so the echo should work correctly.
8885 lt_compile=`echo "$ac_compile" | $SED \
8886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8888 -e 's:$: $lt_compiler_flag:'`
8889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8890 (eval "$lt_compile" 2>out/conftest.err)
8891 ac_status=$?
8892 cat out/conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8895 then
8896 # The compiler can only warn and ignore the option if not recognized
8897 # So say no if there are warnings
8898 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8899 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8900 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8901 lt_cv_prog_compiler_c_o=yes
8902 fi
8903 fi
8904 chmod u+w . 2>&5
8905 $RM conftest*
8906 # SGI C++ compiler will create directory out/ii_files/ for
8907 # template instantiation
8908 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8909 $RM out/* && rmdir out
8910 cd ..
8911 $RM -r conftest
8912 $RM conftest*
8913
8914 fi
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8916 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8917
8918
8919
8920
8921 hard_links=nottested
8922 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8923 # do not overwrite the value of need_locks provided by the user
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8925 $as_echo_n "checking if we can lock with hard links... " >&6; }
8926 hard_links=yes
8927 $RM conftest*
8928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8929 touch conftest.a
8930 ln conftest.a conftest.b 2>&5 || hard_links=no
8931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8933 $as_echo "$hard_links" >&6; }
8934 if test no = "$hard_links"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8936 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8937 need_locks=warn
8938 fi
8939 else
8940 need_locks=no
8941 fi
8942
8943
8944
8945
8946
8947
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8949 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8950
8951 runpath_var=
8952 allow_undefined_flag=
8953 always_export_symbols=no
8954 archive_cmds=
8955 archive_expsym_cmds=
8956 compiler_needs_object=no
8957 enable_shared_with_static_runtimes=no
8958 export_dynamic_flag_spec=
8959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8960 hardcode_automatic=no
8961 hardcode_direct=no
8962 hardcode_direct_absolute=no
8963 hardcode_libdir_flag_spec=
8964 hardcode_libdir_separator=
8965 hardcode_minus_L=no
8966 hardcode_shlibpath_var=unsupported
8967 inherit_rpath=no
8968 link_all_deplibs=unknown
8969 module_cmds=
8970 module_expsym_cmds=
8971 old_archive_from_new_cmds=
8972 old_archive_from_expsyms_cmds=
8973 thread_safe_flag_spec=
8974 whole_archive_flag_spec=
8975 # include_expsyms should be a list of space-separated symbols to be *always*
8976 # included in the symbol list
8977 include_expsyms=
8978 # exclude_expsyms can be an extended regexp of symbols to exclude
8979 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8980 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8981 # as well as any symbol that contains 'd'.
8982 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8983 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8984 # platforms (ab)use it in PIC code, but their linkers get confused if
8985 # the symbol is explicitly referenced. Since portable code cannot
8986 # rely on this symbol name, it's probably fine to never include it in
8987 # preloaded symbol tables.
8988 # Exclude shared library initialization/finalization symbols.
8989 extract_expsyms_cmds=
8990
8991 case $host_os in
8992 cygwin* | mingw* | pw32* | cegcc*)
8993 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8994 # When not using gcc, we currently assume that we are using
8995 # Microsoft Visual C++.
8996 if test yes != "$GCC"; then
8997 with_gnu_ld=no
8998 fi
8999 ;;
9000 interix*)
9001 # we just hope/assume this is gcc and not c89 (= MSVC++)
9002 with_gnu_ld=yes
9003 ;;
9004 openbsd* | bitrig*)
9005 with_gnu_ld=no
9006 ;;
9007 linux* | k*bsd*-gnu | gnu*)
9008 link_all_deplibs=no
9009 ;;
9010 esac
9011
9012 ld_shlibs=yes
9013
9014 # On some targets, GNU ld is compatible enough with the native linker
9015 # that we're better off using the native interface for both.
9016 lt_use_gnu_ld_interface=no
9017 if test yes = "$with_gnu_ld"; then
9018 case $host_os in
9019 aix*)
9020 # The AIX port of GNU ld has always aspired to compatibility
9021 # with the native linker. However, as the warning in the GNU ld
9022 # block says, versions before 2.19.5* couldn't really create working
9023 # shared libraries, regardless of the interface used.
9024 case `$LD -v 2>&1` in
9025 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9026 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9027 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9028 *)
9029 lt_use_gnu_ld_interface=yes
9030 ;;
9031 esac
9032 ;;
9033 *)
9034 lt_use_gnu_ld_interface=yes
9035 ;;
9036 esac
9037 fi
9038
9039 if test yes = "$lt_use_gnu_ld_interface"; then
9040 # If archive_cmds runs LD, not CC, wlarc should be empty
9041 wlarc='$wl'
9042
9043 # Set some defaults for GNU ld with shared library support. These
9044 # are reset later if shared libraries are not supported. Putting them
9045 # here allows them to be overridden if necessary.
9046 runpath_var=LD_RUN_PATH
9047 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9048 export_dynamic_flag_spec='$wl--export-dynamic'
9049 # ancient GNU ld didn't support --whole-archive et. al.
9050 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9051 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9052 else
9053 whole_archive_flag_spec=
9054 fi
9055 supports_anon_versioning=no
9056 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9057 *GNU\ gold*) supports_anon_versioning=yes ;;
9058 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9059 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9060 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9061 *\ 2.11.*) ;; # other 2.11 versions
9062 *) supports_anon_versioning=yes ;;
9063 esac
9064
9065 # See if GNU ld supports shared libraries.
9066 case $host_os in
9067 aix[3-9]*)
9068 # On AIX/PPC, the GNU linker is very broken
9069 if test ia64 != "$host_cpu"; then
9070 ld_shlibs=no
9071 cat <<_LT_EOF 1>&2
9072
9073 *** Warning: the GNU linker, at least up to release 2.19, is reported
9074 *** to be unable to reliably create shared libraries on AIX.
9075 *** Therefore, libtool is disabling shared libraries support. If you
9076 *** really care for shared libraries, you may want to install binutils
9077 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9078 *** You will then need to restart the configuration process.
9079
9080 _LT_EOF
9081 fi
9082 ;;
9083
9084 amigaos*)
9085 case $host_cpu in
9086 powerpc)
9087 # see comment about AmigaOS4 .so support
9088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9089 archive_expsym_cmds=''
9090 ;;
9091 m68k)
9092 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)'
9093 hardcode_libdir_flag_spec='-L$libdir'
9094 hardcode_minus_L=yes
9095 ;;
9096 esac
9097 ;;
9098
9099 beos*)
9100 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9101 allow_undefined_flag=unsupported
9102 # Joseph Beckenbach <[email protected]> says some releases of gcc
9103 # support --undefined. This deserves some investigation. FIXME
9104 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9105 else
9106 ld_shlibs=no
9107 fi
9108 ;;
9109
9110 cygwin* | mingw* | pw32* | cegcc*)
9111 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9112 # as there is no search path for DLLs.
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 export_dynamic_flag_spec='$wl--export-all-symbols'
9115 allow_undefined_flag=unsupported
9116 always_export_symbols=no
9117 enable_shared_with_static_runtimes=yes
9118 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'
9119 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9120
9121 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9123 # If the export-symbols file already is a .def file, use it as
9124 # is; otherwise, prepend EXPORTS...
9125 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9126 cp $export_symbols $output_objdir/$soname.def;
9127 else
9128 echo EXPORTS > $output_objdir/$soname.def;
9129 cat $export_symbols >> $output_objdir/$soname.def;
9130 fi~
9131 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9132 else
9133 ld_shlibs=no
9134 fi
9135 ;;
9136
9137 haiku*)
9138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9139 link_all_deplibs=yes
9140 ;;
9141
9142 os2*)
9143 hardcode_libdir_flag_spec='-L$libdir'
9144 hardcode_minus_L=yes
9145 allow_undefined_flag=unsupported
9146 shrext_cmds=.dll
9147 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9148 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9149 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9150 $ECHO EXPORTS >> $output_objdir/$libname.def~
9151 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9152 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9153 emximp -o $lib $output_objdir/$libname.def'
9154 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9155 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9156 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9157 $ECHO EXPORTS >> $output_objdir/$libname.def~
9158 prefix_cmds="$SED"~
9159 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9160 prefix_cmds="$prefix_cmds -e 1d";
9161 fi~
9162 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9163 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9164 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9165 emximp -o $lib $output_objdir/$libname.def'
9166 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9167 enable_shared_with_static_runtimes=yes
9168 ;;
9169
9170 interix[3-9]*)
9171 hardcode_direct=no
9172 hardcode_shlibpath_var=no
9173 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9174 export_dynamic_flag_spec='$wl-E'
9175 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9176 # Instead, shared libraries are loaded at an image base (0x10000000 by
9177 # default) and relocated if they conflict, which is a slow very memory
9178 # consuming and fragmenting process. To avoid this, we pick a random,
9179 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9180 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9181 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9182 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'
9183 ;;
9184
9185 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9186 tmp_diet=no
9187 if test linux-dietlibc = "$host_os"; then
9188 case $cc_basename in
9189 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9190 esac
9191 fi
9192 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9193 && test no = "$tmp_diet"
9194 then
9195 tmp_addflag=' $pic_flag'
9196 tmp_sharedflag='-shared'
9197 case $cc_basename,$host_cpu in
9198 pgcc*) # Portland Group C compiler
9199 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'
9200 tmp_addflag=' $pic_flag'
9201 ;;
9202 pgf77* | pgf90* | pgf95* | pgfortran*)
9203 # Portland Group f77 and f90 compilers
9204 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'
9205 tmp_addflag=' $pic_flag -Mnomain' ;;
9206 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9207 tmp_addflag=' -i_dynamic' ;;
9208 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9209 tmp_addflag=' -i_dynamic -nofor_main' ;;
9210 ifc* | ifort*) # Intel Fortran compiler
9211 tmp_addflag=' -nofor_main' ;;
9212 lf95*) # Lahey Fortran 8.1
9213 whole_archive_flag_spec=
9214 tmp_sharedflag='--shared' ;;
9215 nagfor*) # NAGFOR 5.3
9216 tmp_sharedflag='-Wl,-shared' ;;
9217 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9218 tmp_sharedflag='-qmkshrobj'
9219 tmp_addflag= ;;
9220 nvcc*) # Cuda Compiler Driver 2.2
9221 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'
9222 compiler_needs_object=yes
9223 ;;
9224 esac
9225 case `$CC -V 2>&1 | sed 5q` in
9226 *Sun\ C*) # Sun C 5.9
9227 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'
9228 compiler_needs_object=yes
9229 tmp_sharedflag='-G' ;;
9230 *Sun\ F*) # Sun Fortran 8.3
9231 tmp_sharedflag='-G' ;;
9232 esac
9233 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9234
9235 if test yes = "$supports_anon_versioning"; then
9236 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238 echo "local: *; };" >> $output_objdir/$libname.ver~
9239 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9240 fi
9241
9242 case $cc_basename in
9243 tcc*)
9244 export_dynamic_flag_spec='-rdynamic'
9245 ;;
9246 xlf* | bgf* | bgxlf* | mpixlf*)
9247 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9248 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9250 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9251 if test yes = "$supports_anon_versioning"; then
9252 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9253 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9254 echo "local: *; };" >> $output_objdir/$libname.ver~
9255 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9256 fi
9257 ;;
9258 esac
9259 else
9260 ld_shlibs=no
9261 fi
9262 ;;
9263
9264 netbsd* | netbsdelf*-gnu)
9265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9266 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9267 wlarc=
9268 else
9269 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9270 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9271 fi
9272 ;;
9273
9274 solaris*)
9275 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9276 ld_shlibs=no
9277 cat <<_LT_EOF 1>&2
9278
9279 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9280 *** create shared libraries on Solaris systems. Therefore, libtool
9281 *** is disabling shared libraries support. We urge you to upgrade GNU
9282 *** binutils to release 2.9.1 or newer. Another option is to modify
9283 *** your PATH or compiler configuration so that the native linker is
9284 *** used, and then restart.
9285
9286 _LT_EOF
9287 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9288 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9289 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9290 else
9291 ld_shlibs=no
9292 fi
9293 ;;
9294
9295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9296 case `$LD -v 2>&1` in
9297 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9298 ld_shlibs=no
9299 cat <<_LT_EOF 1>&2
9300
9301 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9302 *** reliably create shared libraries on SCO systems. Therefore, libtool
9303 *** is disabling shared libraries support. We urge you to upgrade GNU
9304 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9305 *** your PATH or compiler configuration so that the native linker is
9306 *** used, and then restart.
9307
9308 _LT_EOF
9309 ;;
9310 *)
9311 # For security reasons, it is highly recommended that you always
9312 # use absolute paths for naming shared libraries, and exclude the
9313 # DT_RUNPATH tag from executables and libraries. But doing so
9314 # requires that you compile everything twice, which is a pain.
9315 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9316 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9319 else
9320 ld_shlibs=no
9321 fi
9322 ;;
9323 esac
9324 ;;
9325
9326 sunos4*)
9327 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9328 wlarc=
9329 hardcode_direct=yes
9330 hardcode_shlibpath_var=no
9331 ;;
9332
9333 *)
9334 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9335 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9336 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9337 else
9338 ld_shlibs=no
9339 fi
9340 ;;
9341 esac
9342
9343 if test no = "$ld_shlibs"; then
9344 runpath_var=
9345 hardcode_libdir_flag_spec=
9346 export_dynamic_flag_spec=
9347 whole_archive_flag_spec=
9348 fi
9349 else
9350 # PORTME fill in a description of your system's linker (not GNU ld)
9351 case $host_os in
9352 aix3*)
9353 allow_undefined_flag=unsupported
9354 always_export_symbols=yes
9355 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'
9356 # Note: this linker hardcodes the directories in LIBPATH if there
9357 # are no directories specified by -L.
9358 hardcode_minus_L=yes
9359 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9360 # Neither direct hardcoding nor static linking is supported with a
9361 # broken collect2.
9362 hardcode_direct=unsupported
9363 fi
9364 ;;
9365
9366 aix[4-9]*)
9367 if test ia64 = "$host_cpu"; then
9368 # On IA64, the linker does run time linking by default, so we don't
9369 # have to do anything special.
9370 aix_use_runtimelinking=no
9371 exp_sym_flag='-Bexport'
9372 no_entry_flag=
9373 else
9374 # If we're using GNU nm, then we don't want the "-C" option.
9375 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9376 # Without the "-l" option, or with the "-B" option, AIX nm treats
9377 # weak defined symbols like other global defined symbols, whereas
9378 # GNU nm marks them as "W".
9379 # While the 'weak' keyword is ignored in the Export File, we need
9380 # it in the Import File for the 'aix-soname' feature, so we have
9381 # to replace the "-B" option with "-P" for AIX nm.
9382 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9383 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'
9384 else
9385 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9386 fi
9387 aix_use_runtimelinking=no
9388
9389 # Test if we are trying to use run time linking or normal
9390 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9391 # have runtime linking enabled, and use it for executables.
9392 # For shared libraries, we enable/disable runtime linking
9393 # depending on the kind of the shared library created -
9394 # when "with_aix_soname,aix_use_runtimelinking" is:
9395 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9396 # "aix,yes" lib.so shared, rtl:yes, for executables
9397 # lib.a static archive
9398 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9399 # lib.a(lib.so.V) shared, rtl:no, for executables
9400 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9401 # lib.a(lib.so.V) shared, rtl:no
9402 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9403 # lib.a static archive
9404 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9405 for ld_flag in $LDFLAGS; do
9406 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9407 aix_use_runtimelinking=yes
9408 break
9409 fi
9410 done
9411 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9412 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9413 # so we don't have lib.a shared libs to link our executables.
9414 # We have to force runtime linking in this case.
9415 aix_use_runtimelinking=yes
9416 LDFLAGS="$LDFLAGS -Wl,-brtl"
9417 fi
9418 ;;
9419 esac
9420
9421 exp_sym_flag='-bexport'
9422 no_entry_flag='-bnoentry'
9423 fi
9424
9425 # When large executables or shared objects are built, AIX ld can
9426 # have problems creating the table of contents. If linking a library
9427 # or program results in "error TOC overflow" add -mminimal-toc to
9428 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9430
9431 archive_cmds=''
9432 hardcode_direct=yes
9433 hardcode_direct_absolute=yes
9434 hardcode_libdir_separator=':'
9435 link_all_deplibs=yes
9436 file_list_spec='$wl-f,'
9437 case $with_aix_soname,$aix_use_runtimelinking in
9438 aix,*) ;; # traditional, no import file
9439 svr4,* | *,yes) # use import file
9440 # The Import File defines what to hardcode.
9441 hardcode_direct=no
9442 hardcode_direct_absolute=no
9443 ;;
9444 esac
9445
9446 if test yes = "$GCC"; then
9447 case $host_os in aix4.[012]|aix4.[012].*)
9448 # We only want to do this on AIX 4.2 and lower, the check
9449 # below for broken collect2 doesn't work under 4.3+
9450 collect2name=`$CC -print-prog-name=collect2`
9451 if test -f "$collect2name" &&
9452 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9453 then
9454 # We have reworked collect2
9455 :
9456 else
9457 # We have old collect2
9458 hardcode_direct=unsupported
9459 # It fails to find uninstalled libraries when the uninstalled
9460 # path is not listed in the libpath. Setting hardcode_minus_L
9461 # to unsupported forces relinking
9462 hardcode_minus_L=yes
9463 hardcode_libdir_flag_spec='-L$libdir'
9464 hardcode_libdir_separator=
9465 fi
9466 ;;
9467 esac
9468 shared_flag='-shared'
9469 if test yes = "$aix_use_runtimelinking"; then
9470 shared_flag="$shared_flag "'$wl-G'
9471 fi
9472 # Need to ensure runtime linking is disabled for the traditional
9473 # shared library, or the linker may eventually find shared libraries
9474 # /with/ Import File - we do not want to mix them.
9475 shared_flag_aix='-shared'
9476 shared_flag_svr4='-shared $wl-G'
9477 else
9478 # not using gcc
9479 if test ia64 = "$host_cpu"; then
9480 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9481 # chokes on -Wl,-G. The following line is correct:
9482 shared_flag='-G'
9483 else
9484 if test yes = "$aix_use_runtimelinking"; then
9485 shared_flag='$wl-G'
9486 else
9487 shared_flag='$wl-bM:SRE'
9488 fi
9489 shared_flag_aix='$wl-bM:SRE'
9490 shared_flag_svr4='$wl-G'
9491 fi
9492 fi
9493
9494 export_dynamic_flag_spec='$wl-bexpall'
9495 # It seems that -bexpall does not export symbols beginning with
9496 # underscore (_), so it is better to generate a list of symbols to export.
9497 always_export_symbols=yes
9498 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9499 # Warning - without using the other runtime loading flags (-brtl),
9500 # -berok will link without error, but may produce a broken library.
9501 allow_undefined_flag='-berok'
9502 # Determine the default libpath from the value encoded in an
9503 # empty executable.
9504 if test set = "${lt_cv_aix_libpath+set}"; then
9505 aix_libpath=$lt_cv_aix_libpath
9506 else
9507 if ${lt_cv_aix_libpath_+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512
9513 int
9514 main ()
9515 {
9516
9517 ;
9518 return 0;
9519 }
9520 _ACEOF
9521 if ac_fn_c_try_link "$LINENO"; then :
9522
9523 lt_aix_libpath_sed='
9524 /Import File Strings/,/^$/ {
9525 /^0/ {
9526 s/^0 *\([^ ]*\) *$/\1/
9527 p
9528 }
9529 }'
9530 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9531 # Check for a 64-bit object if we didn't find anything.
9532 if test -z "$lt_cv_aix_libpath_"; then
9533 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9534 fi
9535 fi
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 if test -z "$lt_cv_aix_libpath_"; then
9539 lt_cv_aix_libpath_=/usr/lib:/lib
9540 fi
9541
9542 fi
9543
9544 aix_libpath=$lt_cv_aix_libpath_
9545 fi
9546
9547 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9548 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
9549 else
9550 if test ia64 = "$host_cpu"; then
9551 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9552 allow_undefined_flag="-z nodefs"
9553 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"
9554 else
9555 # Determine the default libpath from the value encoded in an
9556 # empty executable.
9557 if test set = "${lt_cv_aix_libpath+set}"; then
9558 aix_libpath=$lt_cv_aix_libpath
9559 else
9560 if ${lt_cv_aix_libpath_+:} false; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565
9566 int
9567 main ()
9568 {
9569
9570 ;
9571 return 0;
9572 }
9573 _ACEOF
9574 if ac_fn_c_try_link "$LINENO"; then :
9575
9576 lt_aix_libpath_sed='
9577 /Import File Strings/,/^$/ {
9578 /^0/ {
9579 s/^0 *\([^ ]*\) *$/\1/
9580 p
9581 }
9582 }'
9583 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584 # Check for a 64-bit object if we didn't find anything.
9585 if test -z "$lt_cv_aix_libpath_"; then
9586 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9587 fi
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 if test -z "$lt_cv_aix_libpath_"; then
9592 lt_cv_aix_libpath_=/usr/lib:/lib
9593 fi
9594
9595 fi
9596
9597 aix_libpath=$lt_cv_aix_libpath_
9598 fi
9599
9600 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9601 # Warning - without using the other run time loading flags,
9602 # -berok will link without error, but may produce a broken library.
9603 no_undefined_flag=' $wl-bernotok'
9604 allow_undefined_flag=' $wl-berok'
9605 if test yes = "$with_gnu_ld"; then
9606 # We only use this code for GNU lds that support --whole-archive.
9607 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9608 else
9609 # Exported symbols can be pulled into shared objects from archives
9610 whole_archive_flag_spec='$convenience'
9611 fi
9612 archive_cmds_need_lc=yes
9613 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9614 # -brtl affects multiple linker settings, -berok does not and is overridden later
9615 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9616 if test svr4 != "$with_aix_soname"; then
9617 # This is similar to how AIX traditionally builds its shared libraries.
9618 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'
9619 fi
9620 if test aix != "$with_aix_soname"; then
9621 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'
9622 else
9623 # used by -dlpreopen to get the symbols
9624 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9625 fi
9626 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9627 fi
9628 fi
9629 ;;
9630
9631 amigaos*)
9632 case $host_cpu in
9633 powerpc)
9634 # see comment about AmigaOS4 .so support
9635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9636 archive_expsym_cmds=''
9637 ;;
9638 m68k)
9639 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)'
9640 hardcode_libdir_flag_spec='-L$libdir'
9641 hardcode_minus_L=yes
9642 ;;
9643 esac
9644 ;;
9645
9646 bsdi[45]*)
9647 export_dynamic_flag_spec=-rdynamic
9648 ;;
9649
9650 cygwin* | mingw* | pw32* | cegcc*)
9651 # When not using gcc, we currently assume that we are using
9652 # Microsoft Visual C++.
9653 # hardcode_libdir_flag_spec is actually meaningless, as there is
9654 # no search path for DLLs.
9655 case $cc_basename in
9656 cl*)
9657 # Native MSVC
9658 hardcode_libdir_flag_spec=' '
9659 allow_undefined_flag=unsupported
9660 always_export_symbols=yes
9661 file_list_spec='@'
9662 # Tell ltmain to make .lib files, not .a files.
9663 libext=lib
9664 # Tell ltmain to make .dll files, not .so files.
9665 shrext_cmds=.dll
9666 # FIXME: Setting linknames here is a bad hack.
9667 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9668 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9669 cp "$export_symbols" "$output_objdir/$soname.def";
9670 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9671 else
9672 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9673 fi~
9674 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9675 linknames='
9676 # The linker will not automatically build a static lib if we build a DLL.
9677 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9678 enable_shared_with_static_runtimes=yes
9679 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9681 # Don't use ranlib
9682 old_postinstall_cmds='chmod 644 $oldlib'
9683 postlink_cmds='lt_outputfile="@OUTPUT@"~
9684 lt_tool_outputfile="@TOOL_OUTPUT@"~
9685 case $lt_outputfile in
9686 *.exe|*.EXE) ;;
9687 *)
9688 lt_outputfile=$lt_outputfile.exe
9689 lt_tool_outputfile=$lt_tool_outputfile.exe
9690 ;;
9691 esac~
9692 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9693 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9694 $RM "$lt_outputfile.manifest";
9695 fi'
9696 ;;
9697 *)
9698 # Assume MSVC wrapper
9699 hardcode_libdir_flag_spec=' '
9700 allow_undefined_flag=unsupported
9701 # Tell ltmain to make .lib files, not .a files.
9702 libext=lib
9703 # Tell ltmain to make .dll files, not .so files.
9704 shrext_cmds=.dll
9705 # FIXME: Setting linknames here is a bad hack.
9706 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9707 # The linker will automatically build a .lib file if we build a DLL.
9708 old_archive_from_new_cmds='true'
9709 # FIXME: Should let the user specify the lib program.
9710 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9711 enable_shared_with_static_runtimes=yes
9712 ;;
9713 esac
9714 ;;
9715
9716 darwin* | rhapsody*)
9717
9718
9719 archive_cmds_need_lc=no
9720 hardcode_direct=no
9721 hardcode_automatic=yes
9722 hardcode_shlibpath_var=unsupported
9723 if test yes = "$lt_cv_ld_force_load"; then
9724 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\"`'
9725
9726 else
9727 whole_archive_flag_spec=''
9728 fi
9729 link_all_deplibs=yes
9730 allow_undefined_flag=$_lt_dar_allow_undefined
9731 case $cc_basename in
9732 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9733 *) _lt_dar_can_shared=$GCC ;;
9734 esac
9735 if test yes = "$_lt_dar_can_shared"; then
9736 output_verbose_link_cmd=func_echo_all
9737 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9738 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9739 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"
9740 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"
9741
9742 else
9743 ld_shlibs=no
9744 fi
9745
9746 ;;
9747
9748 dgux*)
9749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_libdir_flag_spec='-L$libdir'
9751 hardcode_shlibpath_var=no
9752 ;;
9753
9754 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9755 # support. Future versions do this automatically, but an explicit c++rt0.o
9756 # does not break anything, and helps significantly (at the cost of a little
9757 # extra space).
9758 freebsd2.2*)
9759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9760 hardcode_libdir_flag_spec='-R$libdir'
9761 hardcode_direct=yes
9762 hardcode_shlibpath_var=no
9763 ;;
9764
9765 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9766 freebsd2.*)
9767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9768 hardcode_direct=yes
9769 hardcode_minus_L=yes
9770 hardcode_shlibpath_var=no
9771 ;;
9772
9773 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9774 freebsd* | dragonfly*)
9775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9776 hardcode_libdir_flag_spec='-R$libdir'
9777 hardcode_direct=yes
9778 hardcode_shlibpath_var=no
9779 ;;
9780
9781 hpux9*)
9782 if test yes = "$GCC"; then
9783 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'
9784 else
9785 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'
9786 fi
9787 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9788 hardcode_libdir_separator=:
9789 hardcode_direct=yes
9790
9791 # hardcode_minus_L: Not really in the search PATH,
9792 # but as the default location of the library.
9793 hardcode_minus_L=yes
9794 export_dynamic_flag_spec='$wl-E'
9795 ;;
9796
9797 hpux10*)
9798 if test yes,no = "$GCC,$with_gnu_ld"; then
9799 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9800 else
9801 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9802 fi
9803 if test no = "$with_gnu_ld"; then
9804 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9805 hardcode_libdir_separator=:
9806 hardcode_direct=yes
9807 hardcode_direct_absolute=yes
9808 export_dynamic_flag_spec='$wl-E'
9809 # hardcode_minus_L: Not really in the search PATH,
9810 # but as the default location of the library.
9811 hardcode_minus_L=yes
9812 fi
9813 ;;
9814
9815 hpux11*)
9816 if test yes,no = "$GCC,$with_gnu_ld"; then
9817 case $host_cpu in
9818 hppa*64*)
9819 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 ;;
9821 ia64*)
9822 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9823 ;;
9824 *)
9825 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9826 ;;
9827 esac
9828 else
9829 case $host_cpu in
9830 hppa*64*)
9831 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9832 ;;
9833 ia64*)
9834 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9835 ;;
9836 *)
9837
9838 # Older versions of the 11.00 compiler do not understand -b yet
9839 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9841 $as_echo_n "checking if $CC understands -b... " >&6; }
9842 if ${lt_cv_prog_compiler__b+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 lt_cv_prog_compiler__b=no
9846 save_LDFLAGS=$LDFLAGS
9847 LDFLAGS="$LDFLAGS -b"
9848 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9850 # The linker can only warn and ignore the option if not recognized
9851 # So say no if there are warnings
9852 if test -s conftest.err; then
9853 # Append any errors to the config.log.
9854 cat conftest.err 1>&5
9855 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9857 if diff conftest.exp conftest.er2 >/dev/null; then
9858 lt_cv_prog_compiler__b=yes
9859 fi
9860 else
9861 lt_cv_prog_compiler__b=yes
9862 fi
9863 fi
9864 $RM -r conftest*
9865 LDFLAGS=$save_LDFLAGS
9866
9867 fi
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9869 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9870
9871 if test yes = "$lt_cv_prog_compiler__b"; then
9872 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9873 else
9874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9875 fi
9876
9877 ;;
9878 esac
9879 fi
9880 if test no = "$with_gnu_ld"; then
9881 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9882 hardcode_libdir_separator=:
9883
9884 case $host_cpu in
9885 hppa*64*|ia64*)
9886 hardcode_direct=no
9887 hardcode_shlibpath_var=no
9888 ;;
9889 *)
9890 hardcode_direct=yes
9891 hardcode_direct_absolute=yes
9892 export_dynamic_flag_spec='$wl-E'
9893
9894 # hardcode_minus_L: Not really in the search PATH,
9895 # but as the default location of the library.
9896 hardcode_minus_L=yes
9897 ;;
9898 esac
9899 fi
9900 ;;
9901
9902 irix5* | irix6* | nonstopux*)
9903 if test yes = "$GCC"; then
9904 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'
9905 # Try to use the -exported_symbol ld option, if it does not
9906 # work, assume that -exports_file does not work either and
9907 # implicitly export all symbols.
9908 # This should be the same for all languages, so no per-tag cache variable.
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9910 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9911 if ${lt_cv_irix_exported_symbol+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 save_LDFLAGS=$LDFLAGS
9915 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9918 int foo (void) { return 0; }
9919 _ACEOF
9920 if ac_fn_c_try_link "$LINENO"; then :
9921 lt_cv_irix_exported_symbol=yes
9922 else
9923 lt_cv_irix_exported_symbol=no
9924 fi
9925 rm -f core conftest.err conftest.$ac_objext \
9926 conftest$ac_exeext conftest.$ac_ext
9927 LDFLAGS=$save_LDFLAGS
9928 fi
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9930 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9931 if test yes = "$lt_cv_irix_exported_symbol"; then
9932 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'
9933 fi
9934 link_all_deplibs=no
9935 else
9936 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'
9937 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'
9938 fi
9939 archive_cmds_need_lc='no'
9940 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9941 hardcode_libdir_separator=:
9942 inherit_rpath=yes
9943 link_all_deplibs=yes
9944 ;;
9945
9946 linux*)
9947 case $cc_basename in
9948 tcc*)
9949 # Fabrice Bellard et al's Tiny C Compiler
9950 ld_shlibs=yes
9951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9952 ;;
9953 esac
9954 ;;
9955
9956 netbsd* | netbsdelf*-gnu)
9957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9959 else
9960 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9961 fi
9962 hardcode_libdir_flag_spec='-R$libdir'
9963 hardcode_direct=yes
9964 hardcode_shlibpath_var=no
9965 ;;
9966
9967 newsos6)
9968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9969 hardcode_direct=yes
9970 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9971 hardcode_libdir_separator=:
9972 hardcode_shlibpath_var=no
9973 ;;
9974
9975 *nto* | *qnx*)
9976 ;;
9977
9978 openbsd* | bitrig*)
9979 if test -f /usr/libexec/ld.so; then
9980 hardcode_direct=yes
9981 hardcode_shlibpath_var=no
9982 hardcode_direct_absolute=yes
9983 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9985 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9986 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9987 export_dynamic_flag_spec='$wl-E'
9988 else
9989 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9990 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9991 fi
9992 else
9993 ld_shlibs=no
9994 fi
9995 ;;
9996
9997 os2*)
9998 hardcode_libdir_flag_spec='-L$libdir'
9999 hardcode_minus_L=yes
10000 allow_undefined_flag=unsupported
10001 shrext_cmds=.dll
10002 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10003 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10004 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10005 $ECHO EXPORTS >> $output_objdir/$libname.def~
10006 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10007 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10008 emximp -o $lib $output_objdir/$libname.def'
10009 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10010 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10011 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10012 $ECHO EXPORTS >> $output_objdir/$libname.def~
10013 prefix_cmds="$SED"~
10014 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10015 prefix_cmds="$prefix_cmds -e 1d";
10016 fi~
10017 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10018 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10019 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10020 emximp -o $lib $output_objdir/$libname.def'
10021 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10022 enable_shared_with_static_runtimes=yes
10023 ;;
10024
10025 osf3*)
10026 if test yes = "$GCC"; then
10027 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10028 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'
10029 else
10030 allow_undefined_flag=' -expect_unresolved \*'
10031 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'
10032 fi
10033 archive_cmds_need_lc='no'
10034 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10035 hardcode_libdir_separator=:
10036 ;;
10037
10038 osf4* | osf5*) # as osf3* with the addition of -msym flag
10039 if test yes = "$GCC"; then
10040 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10041 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'
10042 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10043 else
10044 allow_undefined_flag=' -expect_unresolved \*'
10045 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'
10046 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~
10047 $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'
10048
10049 # Both c and cxx compiler support -rpath directly
10050 hardcode_libdir_flag_spec='-rpath $libdir'
10051 fi
10052 archive_cmds_need_lc='no'
10053 hardcode_libdir_separator=:
10054 ;;
10055
10056 solaris*)
10057 no_undefined_flag=' -z defs'
10058 if test yes = "$GCC"; then
10059 wlarc='$wl'
10060 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10062 $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'
10063 else
10064 case `$CC -V 2>&1` in
10065 *"Compilers 5.0"*)
10066 wlarc=''
10067 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10069 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10070 ;;
10071 *)
10072 wlarc='$wl'
10073 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10075 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10076 ;;
10077 esac
10078 fi
10079 hardcode_libdir_flag_spec='-R$libdir'
10080 hardcode_shlibpath_var=no
10081 case $host_os in
10082 solaris2.[0-5] | solaris2.[0-5].*) ;;
10083 *)
10084 # The compiler driver will combine and reorder linker options,
10085 # but understands '-z linker_flag'. GCC discards it without '$wl',
10086 # but is careful enough not to reorder.
10087 # Supported since Solaris 2.6 (maybe 2.5.1?)
10088 if test yes = "$GCC"; then
10089 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10090 else
10091 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10092 fi
10093 ;;
10094 esac
10095 link_all_deplibs=yes
10096 ;;
10097
10098 sunos4*)
10099 if test sequent = "$host_vendor"; then
10100 # Use $CC to link under sequent, because it throws in some extra .o
10101 # files that make .init and .fini sections work.
10102 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10103 else
10104 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10105 fi
10106 hardcode_libdir_flag_spec='-L$libdir'
10107 hardcode_direct=yes
10108 hardcode_minus_L=yes
10109 hardcode_shlibpath_var=no
10110 ;;
10111
10112 sysv4)
10113 case $host_vendor in
10114 sni)
10115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116 hardcode_direct=yes # is this really true???
10117 ;;
10118 siemens)
10119 ## LD is ld it makes a PLAMLIB
10120 ## CC just makes a GrossModule.
10121 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10122 reload_cmds='$CC -r -o $output$reload_objs'
10123 hardcode_direct=no
10124 ;;
10125 motorola)
10126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10128 ;;
10129 esac
10130 runpath_var='LD_RUN_PATH'
10131 hardcode_shlibpath_var=no
10132 ;;
10133
10134 sysv4.3*)
10135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136 hardcode_shlibpath_var=no
10137 export_dynamic_flag_spec='-Bexport'
10138 ;;
10139
10140 sysv4*MP*)
10141 if test -d /usr/nec; then
10142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10143 hardcode_shlibpath_var=no
10144 runpath_var=LD_RUN_PATH
10145 hardcode_runpath_var=yes
10146 ld_shlibs=yes
10147 fi
10148 ;;
10149
10150 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10151 no_undefined_flag='$wl-z,text'
10152 archive_cmds_need_lc=no
10153 hardcode_shlibpath_var=no
10154 runpath_var='LD_RUN_PATH'
10155
10156 if test yes = "$GCC"; then
10157 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 else
10160 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 fi
10163 ;;
10164
10165 sysv5* | sco3.2v5* | sco5v6*)
10166 # Note: We CANNOT use -z defs as we might desire, because we do not
10167 # link with -lc, and that would cause any symbols used from libc to
10168 # always be unresolved, which means just about no library would
10169 # ever link correctly. If we're not using GNU ld we use -z text
10170 # though, which does catch some bad symbols but isn't as heavy-handed
10171 # as -z defs.
10172 no_undefined_flag='$wl-z,text'
10173 allow_undefined_flag='$wl-z,nodefs'
10174 archive_cmds_need_lc=no
10175 hardcode_shlibpath_var=no
10176 hardcode_libdir_flag_spec='$wl-R,$libdir'
10177 hardcode_libdir_separator=':'
10178 link_all_deplibs=yes
10179 export_dynamic_flag_spec='$wl-Bexport'
10180 runpath_var='LD_RUN_PATH'
10181
10182 if test yes = "$GCC"; then
10183 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 else
10186 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 fi
10189 ;;
10190
10191 uts4*)
10192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193 hardcode_libdir_flag_spec='-L$libdir'
10194 hardcode_shlibpath_var=no
10195 ;;
10196
10197 *)
10198 ld_shlibs=no
10199 ;;
10200 esac
10201
10202 if test sni = "$host_vendor"; then
10203 case $host in
10204 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10205 export_dynamic_flag_spec='$wl-Blargedynsym'
10206 ;;
10207 esac
10208 fi
10209 fi
10210
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10212 $as_echo "$ld_shlibs" >&6; }
10213 test no = "$ld_shlibs" && can_build_shared=no
10214
10215 with_gnu_ld=$with_gnu_ld
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231 #
10232 # Do we need to explicitly link libc?
10233 #
10234 case "x$archive_cmds_need_lc" in
10235 x|xyes)
10236 # Assume -lc should be added
10237 archive_cmds_need_lc=yes
10238
10239 if test yes,yes = "$GCC,$enable_shared"; then
10240 case $archive_cmds in
10241 *'~'*)
10242 # FIXME: we may have to deal with multi-command sequences.
10243 ;;
10244 '$CC '*)
10245 # Test whether the compiler implicitly links with -lc since on some
10246 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10247 # to ld, don't add -lc before -lgcc.
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10249 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10250 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10251 $as_echo_n "(cached) " >&6
10252 else
10253 $RM conftest*
10254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10255
10256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10257 (eval $ac_compile) 2>&5
10258 ac_status=$?
10259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10260 test $ac_status = 0; } 2>conftest.err; then
10261 soname=conftest
10262 lib=conftest
10263 libobjs=conftest.$ac_objext
10264 deplibs=
10265 wl=$lt_prog_compiler_wl
10266 pic_flag=$lt_prog_compiler_pic
10267 compiler_flags=-v
10268 linker_flags=-v
10269 verstring=
10270 output_objdir=.
10271 libname=conftest
10272 lt_save_allow_undefined_flag=$allow_undefined_flag
10273 allow_undefined_flag=
10274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10275 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10276 ac_status=$?
10277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10278 test $ac_status = 0; }
10279 then
10280 lt_cv_archive_cmds_need_lc=no
10281 else
10282 lt_cv_archive_cmds_need_lc=yes
10283 fi
10284 allow_undefined_flag=$lt_save_allow_undefined_flag
10285 else
10286 cat conftest.err 1>&5
10287 fi
10288 $RM conftest*
10289
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10292 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10293 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10294 ;;
10295 esac
10296 fi
10297 ;;
10298 esac
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10452 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10453
10454 if test yes = "$GCC"; then
10455 case $host_os in
10456 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10457 *) lt_awk_arg='/^libraries:/' ;;
10458 esac
10459 case $host_os in
10460 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10461 *) lt_sed_strip_eq='s|=/|/|g' ;;
10462 esac
10463 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10464 case $lt_search_path_spec in
10465 *\;*)
10466 # if the path contains ";" then we assume it to be the separator
10467 # otherwise default to the standard path separator (i.e. ":") - it is
10468 # assumed that no part of a normal pathname contains ";" but that should
10469 # okay in the real world where ";" in dirpaths is itself problematic.
10470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10471 ;;
10472 *)
10473 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10474 ;;
10475 esac
10476 # Ok, now we have the path, separated by spaces, we can step through it
10477 # and add multilib dir if necessary...
10478 lt_tmp_lt_search_path_spec=
10479 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10480 # ...but if some path component already ends with the multilib dir we assume
10481 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10482 case "$lt_multi_os_dir; $lt_search_path_spec " in
10483 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10484 lt_multi_os_dir=
10485 ;;
10486 esac
10487 for lt_sys_path in $lt_search_path_spec; do
10488 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10489 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10490 elif test -n "$lt_multi_os_dir"; then
10491 test -d "$lt_sys_path" && \
10492 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10493 fi
10494 done
10495 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10496 BEGIN {RS = " "; FS = "/|\n";} {
10497 lt_foo = "";
10498 lt_count = 0;
10499 for (lt_i = NF; lt_i > 0; lt_i--) {
10500 if ($lt_i != "" && $lt_i != ".") {
10501 if ($lt_i == "..") {
10502 lt_count++;
10503 } else {
10504 if (lt_count == 0) {
10505 lt_foo = "/" $lt_i lt_foo;
10506 } else {
10507 lt_count--;
10508 }
10509 }
10510 }
10511 }
10512 if (lt_foo != "") { lt_freq[lt_foo]++; }
10513 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10514 }'`
10515 # AWK program above erroneously prepends '/' to C:/dos/paths
10516 # for these hosts.
10517 case $host_os in
10518 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10519 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10520 esac
10521 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10522 else
10523 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10524 fi
10525 library_names_spec=
10526 libname_spec='lib$name'
10527 soname_spec=
10528 shrext_cmds=.so
10529 postinstall_cmds=
10530 postuninstall_cmds=
10531 finish_cmds=
10532 finish_eval=
10533 shlibpath_var=
10534 shlibpath_overrides_runpath=unknown
10535 version_type=none
10536 dynamic_linker="$host_os ld.so"
10537 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10538 need_lib_prefix=unknown
10539 hardcode_into_libs=no
10540
10541 # when you set need_version to no, make sure it does not cause -set_version
10542 # flags to be left without arguments
10543 need_version=unknown
10544
10545
10546
10547 case $host_os in
10548 aix3*)
10549 version_type=linux # correct to gnu/linux during the next big refactor
10550 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10551 shlibpath_var=LIBPATH
10552
10553 # AIX 3 has no versioning support, so we append a major version to the name.
10554 soname_spec='$libname$release$shared_ext$major'
10555 ;;
10556
10557 aix[4-9]*)
10558 version_type=linux # correct to gnu/linux during the next big refactor
10559 need_lib_prefix=no
10560 need_version=no
10561 hardcode_into_libs=yes
10562 if test ia64 = "$host_cpu"; then
10563 # AIX 5 supports IA64
10564 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 else
10567 # With GCC up to 2.95.x, collect2 would create an import file
10568 # for dependence libraries. The import file would start with
10569 # the line '#! .'. This would cause the generated library to
10570 # depend on '.', always an invalid library. This was fixed in
10571 # development snapshots of GCC prior to 3.0.
10572 case $host_os in
10573 aix4 | aix4.[01] | aix4.[01].*)
10574 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10575 echo ' yes '
10576 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10577 :
10578 else
10579 can_build_shared=no
10580 fi
10581 ;;
10582 esac
10583 # Using Import Files as archive members, it is possible to support
10584 # filename-based versioning of shared library archives on AIX. While
10585 # this would work for both with and without runtime linking, it will
10586 # prevent static linking of such archives. So we do filename-based
10587 # shared library versioning with .so extension only, which is used
10588 # when both runtime linking and shared linking is enabled.
10589 # Unfortunately, runtime linking may impact performance, so we do
10590 # not want this to be the default eventually. Also, we use the
10591 # versioned .so libs for executables only if there is the -brtl
10592 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10593 # To allow for filename-based versioning support, we need to create
10594 # libNAME.so.V as an archive file, containing:
10595 # *) an Import File, referring to the versioned filename of the
10596 # archive as well as the shared archive member, telling the
10597 # bitwidth (32 or 64) of that shared object, and providing the
10598 # list of exported symbols of that shared object, eventually
10599 # decorated with the 'weak' keyword
10600 # *) the shared object with the F_LOADONLY flag set, to really avoid
10601 # it being seen by the linker.
10602 # At run time we better use the real file rather than another symlink,
10603 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10604
10605 case $with_aix_soname,$aix_use_runtimelinking in
10606 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10607 # soname into executable. Probably we can add versioning support to
10608 # collect2, so additional links can be useful in future.
10609 aix,yes) # traditional libtool
10610 dynamic_linker='AIX unversionable lib.so'
10611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10612 # instead of lib<name>.a to let people know that these are not
10613 # typical AIX shared libraries.
10614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10615 ;;
10616 aix,no) # traditional AIX only
10617 dynamic_linker='AIX lib.a(lib.so.V)'
10618 # We preserve .a as extension for shared libraries through AIX4.2
10619 # and later when we are not doing run time linking.
10620 library_names_spec='$libname$release.a $libname.a'
10621 soname_spec='$libname$release$shared_ext$major'
10622 ;;
10623 svr4,*) # full svr4 only
10624 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10625 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10626 # We do not specify a path in Import Files, so LIBPATH fires.
10627 shlibpath_overrides_runpath=yes
10628 ;;
10629 *,yes) # both, prefer svr4
10630 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10631 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10632 # unpreferred sharedlib libNAME.a needs extra handling
10633 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"'
10634 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"'
10635 # We do not specify a path in Import Files, so LIBPATH fires.
10636 shlibpath_overrides_runpath=yes
10637 ;;
10638 *,no) # both, prefer aix
10639 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10640 library_names_spec='$libname$release.a $libname.a'
10641 soname_spec='$libname$release$shared_ext$major'
10642 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10643 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)'
10644 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"'
10645 ;;
10646 esac
10647 shlibpath_var=LIBPATH
10648 fi
10649 ;;
10650
10651 amigaos*)
10652 case $host_cpu in
10653 powerpc)
10654 # Since July 2007 AmigaOS4 officially supports .so libraries.
10655 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10657 ;;
10658 m68k)
10659 library_names_spec='$libname.ixlibrary $libname.a'
10660 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10661 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'
10662 ;;
10663 esac
10664 ;;
10665
10666 beos*)
10667 library_names_spec='$libname$shared_ext'
10668 dynamic_linker="$host_os ld.so"
10669 shlibpath_var=LIBRARY_PATH
10670 ;;
10671
10672 bsdi[45]*)
10673 version_type=linux # correct to gnu/linux during the next big refactor
10674 need_version=no
10675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10676 soname_spec='$libname$release$shared_ext$major'
10677 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10680 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10681 # the default ld.so.conf also contains /usr/contrib/lib and
10682 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10683 # libtool to hard-code these into programs
10684 ;;
10685
10686 cygwin* | mingw* | pw32* | cegcc*)
10687 version_type=windows
10688 shrext_cmds=.dll
10689 need_version=no
10690 need_lib_prefix=no
10691
10692 case $GCC,$cc_basename in
10693 yes,*)
10694 # gcc
10695 library_names_spec='$libname.dll.a'
10696 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10697 postinstall_cmds='base_file=`basename \$file`~
10698 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10699 dldir=$destdir/`dirname \$dlpath`~
10700 test -d \$dldir || mkdir -p \$dldir~
10701 $install_prog $dir/$dlname \$dldir/$dlname~
10702 chmod a+x \$dldir/$dlname~
10703 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10704 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10705 fi'
10706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10707 dlpath=$dir/\$dldll~
10708 $RM \$dlpath'
10709 shlibpath_overrides_runpath=yes
10710
10711 case $host_os in
10712 cygwin*)
10713 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10714 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10715
10716 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10717 ;;
10718 mingw* | cegcc*)
10719 # MinGW DLLs use traditional 'lib' prefix
10720 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10721 ;;
10722 pw32*)
10723 # pw32 DLLs use 'pw' prefix rather than 'lib'
10724 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10725 ;;
10726 esac
10727 dynamic_linker='Win32 ld.exe'
10728 ;;
10729
10730 *,cl*)
10731 # Native MSVC
10732 libname_spec='$name'
10733 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10734 library_names_spec='$libname.dll.lib'
10735
10736 case $build_os in
10737 mingw*)
10738 sys_lib_search_path_spec=
10739 lt_save_ifs=$IFS
10740 IFS=';'
10741 for lt_path in $LIB
10742 do
10743 IFS=$lt_save_ifs
10744 # Let DOS variable expansion print the short 8.3 style file name.
10745 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10746 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10747 done
10748 IFS=$lt_save_ifs
10749 # Convert to MSYS style.
10750 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10751 ;;
10752 cygwin*)
10753 # Convert to unix form, then to dos form, then back to unix form
10754 # but this time dos style (no spaces!) so that the unix form looks
10755 # like /cygdrive/c/PROGRA~1:/cygdr...
10756 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10757 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10758 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10759 ;;
10760 *)
10761 sys_lib_search_path_spec=$LIB
10762 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10763 # It is most probably a Windows format PATH.
10764 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10765 else
10766 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10767 fi
10768 # FIXME: find the short name or the path components, as spaces are
10769 # common. (e.g. "Program Files" -> "PROGRA~1")
10770 ;;
10771 esac
10772
10773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10774 postinstall_cmds='base_file=`basename \$file`~
10775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10776 dldir=$destdir/`dirname \$dlpath`~
10777 test -d \$dldir || mkdir -p \$dldir~
10778 $install_prog $dir/$dlname \$dldir/$dlname'
10779 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10780 dlpath=$dir/\$dldll~
10781 $RM \$dlpath'
10782 shlibpath_overrides_runpath=yes
10783 dynamic_linker='Win32 link.exe'
10784 ;;
10785
10786 *)
10787 # Assume MSVC wrapper
10788 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10789 dynamic_linker='Win32 ld.exe'
10790 ;;
10791 esac
10792 # FIXME: first we should search . and the directory the executable is in
10793 shlibpath_var=PATH
10794 ;;
10795
10796 darwin* | rhapsody*)
10797 dynamic_linker="$host_os dyld"
10798 version_type=darwin
10799 need_lib_prefix=no
10800 need_version=no
10801 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10802 soname_spec='$libname$release$major$shared_ext'
10803 shlibpath_overrides_runpath=yes
10804 shlibpath_var=DYLD_LIBRARY_PATH
10805 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10806
10807 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10808 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10809 ;;
10810
10811 dgux*)
10812 version_type=linux # correct to gnu/linux during the next big refactor
10813 need_lib_prefix=no
10814 need_version=no
10815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10816 soname_spec='$libname$release$shared_ext$major'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 ;;
10819
10820 freebsd* | dragonfly*)
10821 # DragonFly does not have aout. When/if they implement a new
10822 # versioning mechanism, adjust this.
10823 if test -x /usr/bin/objformat; then
10824 objformat=`/usr/bin/objformat`
10825 else
10826 case $host_os in
10827 freebsd[23].*) objformat=aout ;;
10828 *) objformat=elf ;;
10829 esac
10830 fi
10831 version_type=freebsd-$objformat
10832 case $version_type in
10833 freebsd-elf*)
10834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10835 soname_spec='$libname$release$shared_ext$major'
10836 need_version=no
10837 need_lib_prefix=no
10838 ;;
10839 freebsd-*)
10840 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10841 need_version=yes
10842 ;;
10843 esac
10844 shlibpath_var=LD_LIBRARY_PATH
10845 case $host_os in
10846 freebsd2.*)
10847 shlibpath_overrides_runpath=yes
10848 ;;
10849 freebsd3.[01]* | freebsdelf3.[01]*)
10850 shlibpath_overrides_runpath=yes
10851 hardcode_into_libs=yes
10852 ;;
10853 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10854 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10855 shlibpath_overrides_runpath=no
10856 hardcode_into_libs=yes
10857 ;;
10858 *) # from 4.6 on, and DragonFly
10859 shlibpath_overrides_runpath=yes
10860 hardcode_into_libs=yes
10861 ;;
10862 esac
10863 ;;
10864
10865 haiku*)
10866 version_type=linux # correct to gnu/linux during the next big refactor
10867 need_lib_prefix=no
10868 need_version=no
10869 dynamic_linker="$host_os runtime_loader"
10870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10871 soname_spec='$libname$release$shared_ext$major'
10872 shlibpath_var=LIBRARY_PATH
10873 shlibpath_overrides_runpath=no
10874 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10875 hardcode_into_libs=yes
10876 ;;
10877
10878 hpux9* | hpux10* | hpux11*)
10879 # Give a soname corresponding to the major version so that dld.sl refuses to
10880 # link against other versions.
10881 version_type=sunos
10882 need_lib_prefix=no
10883 need_version=no
10884 case $host_cpu in
10885 ia64*)
10886 shrext_cmds='.so'
10887 hardcode_into_libs=yes
10888 dynamic_linker="$host_os dld.so"
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10892 soname_spec='$libname$release$shared_ext$major'
10893 if test 32 = "$HPUX_IA64_MODE"; then
10894 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10895 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10896 else
10897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10898 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10899 fi
10900 ;;
10901 hppa*64*)
10902 shrext_cmds='.sl'
10903 hardcode_into_libs=yes
10904 dynamic_linker="$host_os dld.sl"
10905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10908 soname_spec='$libname$release$shared_ext$major'
10909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10911 ;;
10912 *)
10913 shrext_cmds='.sl'
10914 dynamic_linker="$host_os dld.sl"
10915 shlibpath_var=SHLIB_PATH
10916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10918 soname_spec='$libname$release$shared_ext$major'
10919 ;;
10920 esac
10921 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10922 postinstall_cmds='chmod 555 $lib'
10923 # or fails outright, so override atomically:
10924 install_override_mode=555
10925 ;;
10926
10927 interix[3-9]*)
10928 version_type=linux # correct to gnu/linux during the next big refactor
10929 need_lib_prefix=no
10930 need_version=no
10931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10932 soname_spec='$libname$release$shared_ext$major'
10933 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=no
10936 hardcode_into_libs=yes
10937 ;;
10938
10939 irix5* | irix6* | nonstopux*)
10940 case $host_os in
10941 nonstopux*) version_type=nonstopux ;;
10942 *)
10943 if test yes = "$lt_cv_prog_gnu_ld"; then
10944 version_type=linux # correct to gnu/linux during the next big refactor
10945 else
10946 version_type=irix
10947 fi ;;
10948 esac
10949 need_lib_prefix=no
10950 need_version=no
10951 soname_spec='$libname$release$shared_ext$major'
10952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10953 case $host_os in
10954 irix5* | nonstopux*)
10955 libsuff= shlibsuff=
10956 ;;
10957 *)
10958 case $LD in # libtool.m4 will add one of these switches to LD
10959 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10960 libsuff= shlibsuff= libmagic=32-bit;;
10961 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10962 libsuff=32 shlibsuff=N32 libmagic=N32;;
10963 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10964 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10965 *) libsuff= shlibsuff= libmagic=never-match;;
10966 esac
10967 ;;
10968 esac
10969 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10970 shlibpath_overrides_runpath=no
10971 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10972 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10973 hardcode_into_libs=yes
10974 ;;
10975
10976 # No shared lib support for Linux oldld, aout, or coff.
10977 linux*oldld* | linux*aout* | linux*coff*)
10978 dynamic_linker=no
10979 ;;
10980
10981 linux*android*)
10982 version_type=none # Android doesn't support versioned libraries.
10983 need_lib_prefix=no
10984 need_version=no
10985 library_names_spec='$libname$release$shared_ext'
10986 soname_spec='$libname$release$shared_ext'
10987 finish_cmds=
10988 shlibpath_var=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath=yes
10990
10991 # This implies no fast_install, which is unacceptable.
10992 # Some rework will be needed to allow for fast_install
10993 # before this can be enabled.
10994 hardcode_into_libs=yes
10995
10996 dynamic_linker='Android linker'
10997 # Don't embed -rpath directories since the linker doesn't support them.
10998 hardcode_libdir_flag_spec='-L$libdir'
10999 ;;
11000
11001 # This must be glibc/ELF.
11002 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11003 version_type=linux # correct to gnu/linux during the next big refactor
11004 need_lib_prefix=no
11005 need_version=no
11006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11007 soname_spec='$libname$release$shared_ext$major'
11008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 shlibpath_overrides_runpath=no
11011
11012 # Some binutils ld are patched to set DT_RUNPATH
11013 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 lt_cv_shlibpath_overrides_runpath=no
11017 save_LDFLAGS=$LDFLAGS
11018 save_libdir=$libdir
11019 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11020 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11023
11024 int
11025 main ()
11026 {
11027
11028 ;
11029 return 0;
11030 }
11031 _ACEOF
11032 if ac_fn_c_try_link "$LINENO"; then :
11033 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11034 lt_cv_shlibpath_overrides_runpath=yes
11035 fi
11036 fi
11037 rm -f core conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
11039 LDFLAGS=$save_LDFLAGS
11040 libdir=$save_libdir
11041
11042 fi
11043
11044 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11045
11046 # This implies no fast_install, which is unacceptable.
11047 # Some rework will be needed to allow for fast_install
11048 # before this can be enabled.
11049 hardcode_into_libs=yes
11050
11051 # Ideally, we could use ldconfig to report *all* directores which are
11052 # searched for libraries, however this is still not possible. Aside from not
11053 # being certain /sbin/ldconfig is available, command
11054 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11055 # even though it is searched at run-time. Try to do the best guess by
11056 # appending ld.so.conf contents (and includes) to the search path.
11057 if test -f /etc/ld.so.conf; then
11058 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' ' '`
11059 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11060 fi
11061
11062 # We used to test for /lib/ld.so.1 and disable shared libraries on
11063 # powerpc, because MkLinux only supported shared libraries with the
11064 # GNU dynamic linker. Since this was broken with cross compilers,
11065 # most powerpc-linux boxes support dynamic linking these days and
11066 # people can always --disable-shared, the test was removed, and we
11067 # assume the GNU/Linux dynamic linker is in use.
11068 dynamic_linker='GNU/Linux ld.so'
11069 ;;
11070
11071 netbsdelf*-gnu)
11072 version_type=linux
11073 need_lib_prefix=no
11074 need_version=no
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 shlibpath_var=LD_LIBRARY_PATH
11078 shlibpath_overrides_runpath=no
11079 hardcode_into_libs=yes
11080 dynamic_linker='NetBSD ld.elf_so'
11081 ;;
11082
11083 netbsd*)
11084 version_type=sunos
11085 need_lib_prefix=no
11086 need_version=no
11087 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11088 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11090 dynamic_linker='NetBSD (a.out) ld.so'
11091 else
11092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11093 soname_spec='$libname$release$shared_ext$major'
11094 dynamic_linker='NetBSD ld.elf_so'
11095 fi
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes
11098 hardcode_into_libs=yes
11099 ;;
11100
11101 newsos6)
11102 version_type=linux # correct to gnu/linux during the next big refactor
11103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=yes
11106 ;;
11107
11108 *nto* | *qnx*)
11109 version_type=qnx
11110 need_lib_prefix=no
11111 need_version=no
11112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11113 soname_spec='$libname$release$shared_ext$major'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=no
11116 hardcode_into_libs=yes
11117 dynamic_linker='ldqnx.so'
11118 ;;
11119
11120 openbsd* | bitrig*)
11121 version_type=sunos
11122 sys_lib_dlsearch_path_spec=/usr/lib
11123 need_lib_prefix=no
11124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11125 need_version=no
11126 else
11127 need_version=yes
11128 fi
11129 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 shlibpath_overrides_runpath=yes
11133 ;;
11134
11135 os2*)
11136 libname_spec='$name'
11137 version_type=windows
11138 shrext_cmds=.dll
11139 need_version=no
11140 need_lib_prefix=no
11141 # OS/2 can only load a DLL with a base name of 8 characters or less.
11142 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11143 v=$($ECHO $release$versuffix | tr -d .-);
11144 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11145 $ECHO $n$v`$shared_ext'
11146 library_names_spec='${libname}_dll.$libext'
11147 dynamic_linker='OS/2 ld.exe'
11148 shlibpath_var=BEGINLIBPATH
11149 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11151 postinstall_cmds='base_file=`basename \$file`~
11152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11153 dldir=$destdir/`dirname \$dlpath`~
11154 test -d \$dldir || mkdir -p \$dldir~
11155 $install_prog $dir/$dlname \$dldir/$dlname~
11156 chmod a+x \$dldir/$dlname~
11157 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11158 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11159 fi'
11160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11161 dlpath=$dir/\$dldll~
11162 $RM \$dlpath'
11163 ;;
11164
11165 osf3* | osf4* | osf5*)
11166 version_type=osf
11167 need_lib_prefix=no
11168 need_version=no
11169 soname_spec='$libname$release$shared_ext$major'
11170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11174 ;;
11175
11176 rdos*)
11177 dynamic_linker=no
11178 ;;
11179
11180 solaris*)
11181 version_type=linux # correct to gnu/linux during the next big refactor
11182 need_lib_prefix=no
11183 need_version=no
11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11185 soname_spec='$libname$release$shared_ext$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 shlibpath_overrides_runpath=yes
11188 hardcode_into_libs=yes
11189 # ldd complains unless libraries are executable
11190 postinstall_cmds='chmod +x $lib'
11191 ;;
11192
11193 sunos4*)
11194 version_type=sunos
11195 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11196 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath=yes
11199 if test yes = "$with_gnu_ld"; then
11200 need_lib_prefix=no
11201 fi
11202 need_version=yes
11203 ;;
11204
11205 sysv4 | sysv4.3*)
11206 version_type=linux # correct to gnu/linux during the next big refactor
11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11208 soname_spec='$libname$release$shared_ext$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 case $host_vendor in
11211 sni)
11212 shlibpath_overrides_runpath=no
11213 need_lib_prefix=no
11214 runpath_var=LD_RUN_PATH
11215 ;;
11216 siemens)
11217 need_lib_prefix=no
11218 ;;
11219 motorola)
11220 need_lib_prefix=no
11221 need_version=no
11222 shlibpath_overrides_runpath=no
11223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11224 ;;
11225 esac
11226 ;;
11227
11228 sysv4*MP*)
11229 if test -d /usr/nec; then
11230 version_type=linux # correct to gnu/linux during the next big refactor
11231 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11232 soname_spec='$libname$shared_ext.$major'
11233 shlibpath_var=LD_LIBRARY_PATH
11234 fi
11235 ;;
11236
11237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11238 version_type=sco
11239 need_lib_prefix=no
11240 need_version=no
11241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11242 soname_spec='$libname$release$shared_ext$major'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=yes
11245 hardcode_into_libs=yes
11246 if test yes = "$with_gnu_ld"; then
11247 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11248 else
11249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11250 case $host_os in
11251 sco3.2v5*)
11252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11253 ;;
11254 esac
11255 fi
11256 sys_lib_dlsearch_path_spec='/usr/lib'
11257 ;;
11258
11259 tpf*)
11260 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11261 version_type=linux # correct to gnu/linux during the next big refactor
11262 need_lib_prefix=no
11263 need_version=no
11264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=no
11267 hardcode_into_libs=yes
11268 ;;
11269
11270 uts4*)
11271 version_type=linux # correct to gnu/linux during the next big refactor
11272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11273 soname_spec='$libname$release$shared_ext$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 ;;
11276
11277 *)
11278 dynamic_linker=no
11279 ;;
11280 esac
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11282 $as_echo "$dynamic_linker" >&6; }
11283 test no = "$dynamic_linker" && can_build_shared=no
11284
11285 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11286 if test yes = "$GCC"; then
11287 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11288 fi
11289
11290 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11291 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11292 fi
11293
11294 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11295 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11296 fi
11297
11298 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11299 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11300
11301 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11302 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11303
11304 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11305 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11404 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11405 hardcode_action=
11406 if test -n "$hardcode_libdir_flag_spec" ||
11407 test -n "$runpath_var" ||
11408 test yes = "$hardcode_automatic"; then
11409
11410 # We can hardcode non-existent directories.
11411 if test no != "$hardcode_direct" &&
11412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11413 # have to relink, otherwise we might link with an installed library
11414 # when we should be linking with a yet-to-be-installed one
11415 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11416 test no != "$hardcode_minus_L"; then
11417 # Linking always hardcodes the temporary library directory.
11418 hardcode_action=relink
11419 else
11420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11421 hardcode_action=immediate
11422 fi
11423 else
11424 # We cannot hardcode anything, or else we can only hardcode existing
11425 # directories.
11426 hardcode_action=unsupported
11427 fi
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11429 $as_echo "$hardcode_action" >&6; }
11430
11431 if test relink = "$hardcode_action" ||
11432 test yes = "$inherit_rpath"; then
11433 # Fast installation is not supported
11434 enable_fast_install=no
11435 elif test yes = "$shlibpath_overrides_runpath" ||
11436 test no = "$enable_shared"; then
11437 # Fast installation is not necessary
11438 enable_fast_install=needless
11439 fi
11440
11441
11442
11443
11444
11445
11446 if test yes != "$enable_dlopen"; then
11447 enable_dlopen=unknown
11448 enable_dlopen_self=unknown
11449 enable_dlopen_self_static=unknown
11450 else
11451 lt_cv_dlopen=no
11452 lt_cv_dlopen_libs=
11453
11454 case $host_os in
11455 beos*)
11456 lt_cv_dlopen=load_add_on
11457 lt_cv_dlopen_libs=
11458 lt_cv_dlopen_self=yes
11459 ;;
11460
11461 mingw* | pw32* | cegcc*)
11462 lt_cv_dlopen=LoadLibrary
11463 lt_cv_dlopen_libs=
11464 ;;
11465
11466 cygwin*)
11467 lt_cv_dlopen=dlopen
11468 lt_cv_dlopen_libs=
11469 ;;
11470
11471 darwin*)
11472 # if libdl is installed we need to link against it
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11474 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11475 if ${ac_cv_lib_dl_dlopen+:} false; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 ac_check_lib_save_LIBS=$LIBS
11479 LIBS="-ldl $LIBS"
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11482
11483 /* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 char dlopen ();
11490 int
11491 main ()
11492 {
11493 return dlopen ();
11494 ;
11495 return 0;
11496 }
11497 _ACEOF
11498 if ac_fn_c_try_link "$LINENO"; then :
11499 ac_cv_lib_dl_dlopen=yes
11500 else
11501 ac_cv_lib_dl_dlopen=no
11502 fi
11503 rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11508 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11509 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11510 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11511 else
11512
11513 lt_cv_dlopen=dyld
11514 lt_cv_dlopen_libs=
11515 lt_cv_dlopen_self=yes
11516
11517 fi
11518
11519 ;;
11520
11521 tpf*)
11522 # Don't try to run any link tests for TPF. We know it's impossible
11523 # because TPF is a cross-compiler, and we know how we open DSOs.
11524 lt_cv_dlopen=dlopen
11525 lt_cv_dlopen_libs=
11526 lt_cv_dlopen_self=no
11527 ;;
11528
11529 *)
11530 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11531 if test "x$ac_cv_func_shl_load" = xyes; then :
11532 lt_cv_dlopen=shl_load
11533 else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11535 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11536 if ${ac_cv_lib_dld_shl_load+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 ac_check_lib_save_LIBS=$LIBS
11540 LIBS="-ldld $LIBS"
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 char shl_load ();
11551 int
11552 main ()
11553 {
11554 return shl_load ();
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 if ac_fn_c_try_link "$LINENO"; then :
11560 ac_cv_lib_dld_shl_load=yes
11561 else
11562 ac_cv_lib_dld_shl_load=no
11563 fi
11564 rm -f core conftest.err conftest.$ac_objext \
11565 conftest$ac_exeext conftest.$ac_ext
11566 LIBS=$ac_check_lib_save_LIBS
11567 fi
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11569 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11570 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11571 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11572 else
11573 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11574 if test "x$ac_cv_func_dlopen" = xyes; then :
11575 lt_cv_dlopen=dlopen
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11578 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11579 if ${ac_cv_lib_dl_dlopen+:} false; then :
11580 $as_echo_n "(cached) " >&6
11581 else
11582 ac_check_lib_save_LIBS=$LIBS
11583 LIBS="-ldl $LIBS"
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11586
11587 /* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11590 #ifdef __cplusplus
11591 extern "C"
11592 #endif
11593 char dlopen ();
11594 int
11595 main ()
11596 {
11597 return dlopen ();
11598 ;
11599 return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_c_try_link "$LINENO"; then :
11603 ac_cv_lib_dl_dlopen=yes
11604 else
11605 ac_cv_lib_dl_dlopen=no
11606 fi
11607 rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609 LIBS=$ac_check_lib_save_LIBS
11610 fi
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11612 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11613 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11614 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11617 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11618 if ${ac_cv_lib_svld_dlopen+:} false; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 ac_check_lib_save_LIBS=$LIBS
11622 LIBS="-lsvld $LIBS"
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11625
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629 #ifdef __cplusplus
11630 extern "C"
11631 #endif
11632 char dlopen ();
11633 int
11634 main ()
11635 {
11636 return dlopen ();
11637 ;
11638 return 0;
11639 }
11640 _ACEOF
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_lib_svld_dlopen=yes
11643 else
11644 ac_cv_lib_svld_dlopen=no
11645 fi
11646 rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11649 fi
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11651 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11652 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11653 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11654 else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11656 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11657 if ${ac_cv_lib_dld_dld_link+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 ac_check_lib_save_LIBS=$LIBS
11661 LIBS="-ldld $LIBS"
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 char dld_link ();
11672 int
11673 main ()
11674 {
11675 return dld_link ();
11676 ;
11677 return 0;
11678 }
11679 _ACEOF
11680 if ac_fn_c_try_link "$LINENO"; then :
11681 ac_cv_lib_dld_dld_link=yes
11682 else
11683 ac_cv_lib_dld_dld_link=no
11684 fi
11685 rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687 LIBS=$ac_check_lib_save_LIBS
11688 fi
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11690 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11691 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11692 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11693 fi
11694
11695
11696 fi
11697
11698
11699 fi
11700
11701
11702 fi
11703
11704
11705 fi
11706
11707
11708 fi
11709
11710 ;;
11711 esac
11712
11713 if test no = "$lt_cv_dlopen"; then
11714 enable_dlopen=no
11715 else
11716 enable_dlopen=yes
11717 fi
11718
11719 case $lt_cv_dlopen in
11720 dlopen)
11721 save_CPPFLAGS=$CPPFLAGS
11722 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11723
11724 save_LDFLAGS=$LDFLAGS
11725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11726
11727 save_LIBS=$LIBS
11728 LIBS="$lt_cv_dlopen_libs $LIBS"
11729
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11731 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11732 if ${lt_cv_dlopen_self+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 if test yes = "$cross_compiling"; then :
11736 lt_cv_dlopen_self=cross
11737 else
11738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11739 lt_status=$lt_dlunknown
11740 cat > conftest.$ac_ext <<_LT_EOF
11741 #line $LINENO "configure"
11742 #include "confdefs.h"
11743
11744 #if HAVE_DLFCN_H
11745 #include <dlfcn.h>
11746 #endif
11747
11748 #include <stdio.h>
11749
11750 #ifdef RTLD_GLOBAL
11751 # define LT_DLGLOBAL RTLD_GLOBAL
11752 #else
11753 # ifdef DL_GLOBAL
11754 # define LT_DLGLOBAL DL_GLOBAL
11755 # else
11756 # define LT_DLGLOBAL 0
11757 # endif
11758 #endif
11759
11760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11761 find out it does not work in some platform. */
11762 #ifndef LT_DLLAZY_OR_NOW
11763 # ifdef RTLD_LAZY
11764 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11765 # else
11766 # ifdef DL_LAZY
11767 # define LT_DLLAZY_OR_NOW DL_LAZY
11768 # else
11769 # ifdef RTLD_NOW
11770 # define LT_DLLAZY_OR_NOW RTLD_NOW
11771 # else
11772 # ifdef DL_NOW
11773 # define LT_DLLAZY_OR_NOW DL_NOW
11774 # else
11775 # define LT_DLLAZY_OR_NOW 0
11776 # endif
11777 # endif
11778 # endif
11779 # endif
11780 #endif
11781
11782 /* When -fvisibility=hidden is used, assume the code has been annotated
11783 correspondingly for the symbols needed. */
11784 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11785 int fnord () __attribute__((visibility("default")));
11786 #endif
11787
11788 int fnord () { return 42; }
11789 int main ()
11790 {
11791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11792 int status = $lt_dlunknown;
11793
11794 if (self)
11795 {
11796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11797 else
11798 {
11799 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11800 else puts (dlerror ());
11801 }
11802 /* dlclose (self); */
11803 }
11804 else
11805 puts (dlerror ());
11806
11807 return status;
11808 }
11809 _LT_EOF
11810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11811 (eval $ac_link) 2>&5
11812 ac_status=$?
11813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11814 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11815 (./conftest; exit; ) >&5 2>/dev/null
11816 lt_status=$?
11817 case x$lt_status in
11818 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11819 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11820 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11821 esac
11822 else :
11823 # compilation failed
11824 lt_cv_dlopen_self=no
11825 fi
11826 fi
11827 rm -fr conftest*
11828
11829
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11832 $as_echo "$lt_cv_dlopen_self" >&6; }
11833
11834 if test yes = "$lt_cv_dlopen_self"; then
11835 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11837 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11838 if ${lt_cv_dlopen_self_static+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 if test yes = "$cross_compiling"; then :
11842 lt_cv_dlopen_self_static=cross
11843 else
11844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11845 lt_status=$lt_dlunknown
11846 cat > conftest.$ac_ext <<_LT_EOF
11847 #line $LINENO "configure"
11848 #include "confdefs.h"
11849
11850 #if HAVE_DLFCN_H
11851 #include <dlfcn.h>
11852 #endif
11853
11854 #include <stdio.h>
11855
11856 #ifdef RTLD_GLOBAL
11857 # define LT_DLGLOBAL RTLD_GLOBAL
11858 #else
11859 # ifdef DL_GLOBAL
11860 # define LT_DLGLOBAL DL_GLOBAL
11861 # else
11862 # define LT_DLGLOBAL 0
11863 # endif
11864 #endif
11865
11866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11867 find out it does not work in some platform. */
11868 #ifndef LT_DLLAZY_OR_NOW
11869 # ifdef RTLD_LAZY
11870 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11871 # else
11872 # ifdef DL_LAZY
11873 # define LT_DLLAZY_OR_NOW DL_LAZY
11874 # else
11875 # ifdef RTLD_NOW
11876 # define LT_DLLAZY_OR_NOW RTLD_NOW
11877 # else
11878 # ifdef DL_NOW
11879 # define LT_DLLAZY_OR_NOW DL_NOW
11880 # else
11881 # define LT_DLLAZY_OR_NOW 0
11882 # endif
11883 # endif
11884 # endif
11885 # endif
11886 #endif
11887
11888 /* When -fvisibility=hidden is used, assume the code has been annotated
11889 correspondingly for the symbols needed. */
11890 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11891 int fnord () __attribute__((visibility("default")));
11892 #endif
11893
11894 int fnord () { return 42; }
11895 int main ()
11896 {
11897 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11898 int status = $lt_dlunknown;
11899
11900 if (self)
11901 {
11902 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11903 else
11904 {
11905 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11906 else puts (dlerror ());
11907 }
11908 /* dlclose (self); */
11909 }
11910 else
11911 puts (dlerror ());
11912
11913 return status;
11914 }
11915 _LT_EOF
11916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11917 (eval $ac_link) 2>&5
11918 ac_status=$?
11919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11920 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11921 (./conftest; exit; ) >&5 2>/dev/null
11922 lt_status=$?
11923 case x$lt_status in
11924 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11925 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11926 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11927 esac
11928 else :
11929 # compilation failed
11930 lt_cv_dlopen_self_static=no
11931 fi
11932 fi
11933 rm -fr conftest*
11934
11935
11936 fi
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11938 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11939 fi
11940
11941 CPPFLAGS=$save_CPPFLAGS
11942 LDFLAGS=$save_LDFLAGS
11943 LIBS=$save_LIBS
11944 ;;
11945 esac
11946
11947 case $lt_cv_dlopen_self in
11948 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11949 *) enable_dlopen_self=unknown ;;
11950 esac
11951
11952 case $lt_cv_dlopen_self_static in
11953 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11954 *) enable_dlopen_self_static=unknown ;;
11955 esac
11956 fi
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974 striplib=
11975 old_striplib=
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11977 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11978 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11979 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11980 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11982 $as_echo "yes" >&6; }
11983 else
11984 # FIXME - insert some real tests, host_os isn't really good enough
11985 case $host_os in
11986 darwin*)
11987 if test -n "$STRIP"; then
11988 striplib="$STRIP -x"
11989 old_striplib="$STRIP -S"
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11991 $as_echo "yes" >&6; }
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11995 fi
11996 ;;
11997 *)
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12000 ;;
12001 esac
12002 fi
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015 # Report what library types will actually be built
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12017 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12019 $as_echo "$can_build_shared" >&6; }
12020
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12022 $as_echo_n "checking whether to build shared libraries... " >&6; }
12023 test no = "$can_build_shared" && enable_shared=no
12024
12025 # On AIX, shared libraries and static libraries use the same namespace, and
12026 # are all built from PIC.
12027 case $host_os in
12028 aix3*)
12029 test yes = "$enable_shared" && enable_static=no
12030 if test -n "$RANLIB"; then
12031 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12032 postinstall_cmds='$RANLIB $lib'
12033 fi
12034 ;;
12035
12036 aix[4-9]*)
12037 if test ia64 != "$host_cpu"; then
12038 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12039 yes,aix,yes) ;; # shared object as lib.so file only
12040 yes,svr4,*) ;; # shared object as lib.so archive member only
12041 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12042 esac
12043 fi
12044 ;;
12045 esac
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12047 $as_echo "$enable_shared" >&6; }
12048
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12050 $as_echo_n "checking whether to build static libraries... " >&6; }
12051 # Make sure either enable_shared or enable_static is yes.
12052 test yes = "$enable_shared" || enable_static=yes
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12054 $as_echo "$enable_static" >&6; }
12055
12056
12057
12058
12059 fi
12060 ac_ext=c
12061 ac_cpp='$CPP $CPPFLAGS'
12062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12065
12066 CC=$lt_save_CC
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082 ac_config_commands="$ac_config_commands libtool"
12083
12084
12085
12086
12087 # Only expand once:
12088
12089
12090
12091
12092 # Check whether --enable-python was given.
12093 if test "${enable_python+set}" = set; then :
12094 enableval=$enable_python; case "${enableval}" in
12095 yes) pythonlib=true ;;
12096 no) pythonlib=false ;;
12097 *) as_fn_error $? "bad value ${enableval} for --enable-python" "$LINENO" 5 ;;
12098 esac
12099 else
12100 pythonlib=false
12101 fi
12102
12103 if test x$pythonlib = xtrue; then
12104 PYTHONLIB_TRUE=
12105 PYTHONLIB_FALSE='#'
12106 else
12107 PYTHONLIB_TRUE='#'
12108 PYTHONLIB_FALSE=
12109 fi
12110
12111
12112 if test "x$pythonlib" = "xtrue"; then
12113
12114 #
12115 # Allow the use of a (user set) custom python version
12116 #
12117
12118
12119 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
12120 set dummy python$PYTHON_VERSION; ac_word=$2
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122 $as_echo_n "checking for $ac_word... " >&6; }
12123 if ${ac_cv_path_PYTHON+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126 case $PYTHON in
12127 [\\/]* | ?:[\\/]*)
12128 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12129 ;;
12130 *)
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12133 do
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140 break 2
12141 fi
12142 done
12143 done
12144 IFS=$as_save_IFS
12145
12146 ;;
12147 esac
12148 fi
12149 PYTHON=$ac_cv_path_PYTHON
12150 if test -n "$PYTHON"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12152 $as_echo "$PYTHON" >&6; }
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12156 fi
12157
12158
12159 if test -z "$PYTHON"; then
12160 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
12161 PYTHON_VERSION=""
12162 fi
12163
12164 #
12165 # Check for a version of Python >= 2.1.0
12166 #
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
12168 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
12169 ac_supports_python_ver=`$PYTHON -c "import sys; \
12170 ver = sys.version.split ()[0]; \
12171 print (ver >= '2.1.0')"`
12172 if test "$ac_supports_python_ver" != "True"; then
12173 if test -z "$PYTHON_NOVERSIONCHECK"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12178 as_fn_error $? "
12179 This version of the AC_PYTHON_DEVEL macro
12180 doesn't work properly with versions of Python before
12181 2.1.0. You may need to re-run configure, setting the
12182 variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
12183 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
12184 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
12185 to something else than an empty string.
12186
12187 See \`config.log' for more details" "$LINENO" 5; }
12188 else
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
12190 $as_echo "skip at user request" >&6; }
12191 fi
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12194 $as_echo "yes" >&6; }
12195 fi
12196
12197 #
12198 # if the macro parameter ``version'' is set, honour it
12199 #
12200 if test -n ""; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
12202 $as_echo_n "checking for a version of Python ... " >&6; }
12203 ac_supports_python_ver=`$PYTHON -c "import sys; \
12204 ver = sys.version.split ()[0]; \
12205 print (ver )"`
12206 if test "$ac_supports_python_ver" = "True"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12208 $as_echo "yes" >&6; }
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12212 as_fn_error $? "this package requires Python .
12213 If you have it installed, but it isn't the default Python
12214 interpreter in your system path, please pass the PYTHON_VERSION
12215 variable to configure. See \`\`configure --help'' for reference.
12216 " "$LINENO" 5
12217 PYTHON_VERSION=""
12218 fi
12219 fi
12220
12221 #
12222 # Check if you have distutils, else fail
12223 #
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
12225 $as_echo_n "checking for the distutils Python package... " >&6; }
12226 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
12227 if test $? -eq 0; then
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12229 $as_echo "yes" >&6; }
12230 else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233 as_fn_error $? "cannot import Python module \"distutils\".
12234 Please check your Python installation. The error was:
12235 $ac_distutils_result" "$LINENO" 5
12236 PYTHON_VERSION=""
12237 fi
12238
12239 #
12240 # Check for Python include path
12241 #
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
12243 $as_echo_n "checking for Python include path... " >&6; }
12244 if test -z "$PYTHON_CPPFLAGS"; then
12245 python_path=`$PYTHON -c "import distutils.sysconfig; \
12246 print (distutils.sysconfig.get_python_inc ());"`
12247 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
12248 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
12249 if test -n "${python_path}"; then
12250 if test "${plat_python_path}" != "${python_path}"; then
12251 python_path="-I$python_path -I$plat_python_path"
12252 else
12253 python_path="-I$python_path"
12254 fi
12255 fi
12256 PYTHON_CPPFLAGS=$python_path
12257 fi
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
12259 $as_echo "$PYTHON_CPPFLAGS" >&6; }
12260
12261
12262 #
12263 # Check for Python library path
12264 #
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
12266 $as_echo_n "checking for Python library path... " >&6; }
12267 if test -z "$PYTHON_LIBS"; then
12268 # (makes two attempts to ensure we've got a version number
12269 # from the interpreter)
12270 ac_python_version=`cat<<EOD | $PYTHON -
12271
12272 # join all versioning strings, on some systems
12273 # major/minor numbers could be in different list elements
12274 from distutils.sysconfig import *
12275 e = get_config_var('VERSION')
12276 if e is not None:
12277 print(e)
12278 EOD`
12279
12280 if test -z "$ac_python_version"; then
12281 if test -n "$PYTHON_VERSION"; then
12282 ac_python_version=$PYTHON_VERSION
12283 else
12284 ac_python_version=`$PYTHON -c "import sys; \
12285 print (sys.version[:3])"`
12286 fi
12287 fi
12288
12289 # Make the versioning information available to the compiler
12290
12291 cat >>confdefs.h <<_ACEOF
12292 #define HAVE_PYTHON "$ac_python_version"
12293 _ACEOF
12294
12295
12296 # First, the library directory:
12297 ac_python_libdir=`cat<<EOD | $PYTHON -
12298
12299 # There should be only one
12300 import distutils.sysconfig
12301 e = distutils.sysconfig.get_config_var('LIBDIR')
12302 if e is not None:
12303 print (e)
12304 EOD`
12305
12306 # Now, for the library:
12307 ac_python_library=`cat<<EOD | $PYTHON -
12308
12309 import distutils.sysconfig
12310 c = distutils.sysconfig.get_config_vars()
12311 if 'LDVERSION' in c:
12312 print ('python'+c['LDVERSION'])
12313 else:
12314 print ('python'+c['VERSION'])
12315 EOD`
12316
12317 # This small piece shamelessly adapted from PostgreSQL python macro;
12318 # credits goes to momjian, I think. I'd like to put the right name
12319 # in the credits, if someone can point me in the right direction... ?
12320 #
12321 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
12322 then
12323 # use the official shared library
12324 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
12325 PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
12326 else
12327 # old way: use libpython from python_configdir
12328 ac_python_libdir=`$PYTHON -c \
12329 "from distutils.sysconfig import get_python_lib as f; \
12330 import os; \
12331 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
12332 PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version"
12333 fi
12334
12335 if test -z "PYTHON_LIBS"; then
12336 as_fn_error $? "
12337 Cannot determine location of your Python DSO. Please check it was installed with
12338 dynamic libraries enabled, or try setting PYTHON_LIBS by hand.
12339 " "$LINENO" 5
12340 fi
12341 fi
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5
12343 $as_echo "$PYTHON_LIBS" >&6; }
12344
12345
12346 #
12347 # Check for site packages
12348 #
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
12350 $as_echo_n "checking for Python site-packages path... " >&6; }
12351 if test -z "$PYTHON_SITE_PKG"; then
12352 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
12353 print (distutils.sysconfig.get_python_lib(0,0));"`
12354 fi
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
12356 $as_echo "$PYTHON_SITE_PKG" >&6; }
12357
12358
12359 #
12360 # libraries which must be linked in when embedding
12361 #
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
12363 $as_echo_n "checking python extra libraries... " >&6; }
12364 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
12365 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
12366 conf = distutils.sysconfig.get_config_var; \
12367 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
12368 fi
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
12370 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
12371
12372
12373 #
12374 # linking flags needed when embedding
12375 #
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
12377 $as_echo_n "checking python extra linking flags... " >&6; }
12378 if test -z "$PYTHON_EXTRA_LIBS"; then
12379 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
12380 conf = distutils.sysconfig.get_config_var; \
12381 print (conf('LINKFORSHARED'))"`
12382 fi
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
12384 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
12385
12386
12387 #
12388 # final check to see if everything compiles alright
12389 #
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
12391 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
12392 # save current global flags
12393 ac_save_LIBS="$LIBS"
12394 ac_save_LDFLAGS="$LDFLAGS"
12395 ac_save_CPPFLAGS="$CPPFLAGS"
12396 LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS $PYTHON_EXTRA_LIBS"
12397 LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS"
12398 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
12399 ac_ext=c
12400 ac_cpp='$CPP $CPPFLAGS'
12401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12404
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12407
12408 #include <Python.h>
12409 int
12410 main ()
12411 {
12412 Py_Initialize();
12413 ;
12414 return 0;
12415 }
12416
12417 _ACEOF
12418 if ac_fn_c_try_link "$LINENO"; then :
12419 pythonexists=yes
12420 else
12421 pythonexists=no
12422 fi
12423 rm -f core conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12425 ac_ext=c
12426 ac_cpp='$CPP $CPPFLAGS'
12427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12430
12431 # turn back to default flags
12432 CPPFLAGS="$ac_save_CPPFLAGS"
12433 LIBS="$ac_save_LIBS"
12434 LDFLAGS="$ac_save_LDFLAGS"
12435
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
12437 $as_echo "$pythonexists" >&6; }
12438
12439 if test ! "x$pythonexists" = "xyes"; then
12440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12442 as_fn_error $? "
12443 Could not link test program to Python. Maybe the main Python library has been
12444 installed in some non-standard library path. If so, pass it to configure,
12445 via the LIBS environment variable.
12446 Example: ./configure LIBS=\"-L/usr/non-standard-path/python/lib\"
12447 ============================================================================
12448 ERROR!
12449 You probably have to install the development version of the Python package
12450 for your distribution. The exact name of this package varies among them.
12451 ============================================================================
12452
12453 See \`config.log' for more details" "$LINENO" 5; }
12454 PYTHON_VERSION=""
12455 fi
12456
12457 #
12458 # all done!
12459 #
12460
12461
12462
12463
12464
12465
12466
12467 # Find any Python interpreter.
12468 if test -z "$PYTHON"; then
12469 for ac_prog in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
12470 do
12471 # Extract the first word of "$ac_prog", so it can be a program name with args.
12472 set dummy $ac_prog; ac_word=$2
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474 $as_echo_n "checking for $ac_word... " >&6; }
12475 if ${ac_cv_path_PYTHON+:} false; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 case $PYTHON in
12479 [\\/]* | ?:[\\/]*)
12480 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12481 ;;
12482 *)
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12485 do
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12493 fi
12494 done
12495 done
12496 IFS=$as_save_IFS
12497
12498 ;;
12499 esac
12500 fi
12501 PYTHON=$ac_cv_path_PYTHON
12502 if test -n "$PYTHON"; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12504 $as_echo "$PYTHON" >&6; }
12505 else
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12508 fi
12509
12510
12511 test -n "$PYTHON" && break
12512 done
12513 test -n "$PYTHON" || PYTHON=":"
12514
12515 fi
12516 am_display_PYTHON=python
12517
12518
12519 if test "$PYTHON" = :; then
12520 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12521 else
12522
12523
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12525 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12526 if ${am_cv_python_version+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12530 fi
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12532 $as_echo "$am_cv_python_version" >&6; }
12533 PYTHON_VERSION=$am_cv_python_version
12534
12535
12536
12537 PYTHON_PREFIX='${prefix}'
12538
12539 PYTHON_EXEC_PREFIX='${exec_prefix}'
12540
12541
12542
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12544 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12545 if ${am_cv_python_platform+:} false; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12549 fi
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12551 $as_echo "$am_cv_python_platform" >&6; }
12552 PYTHON_PLATFORM=$am_cv_python_platform
12553
12554
12555 # Just factor out some code duplication.
12556 am_python_setup_sysconfig="\
12557 import sys
12558 # Prefer sysconfig over distutils.sysconfig, for better compatibility
12559 # with python 3.x. See automake bug#10227.
12560 try:
12561 import sysconfig
12562 except ImportError:
12563 can_use_sysconfig = 0
12564 else:
12565 can_use_sysconfig = 1
12566 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12567 # <https://github.com/pypa/virtualenv/issues/118>
12568 try:
12569 from platform import python_implementation
12570 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12571 can_use_sysconfig = 0
12572 except ImportError:
12573 pass"
12574
12575
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12577 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12578 if ${am_cv_python_pythondir+:} false; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 if test "x$prefix" = xNONE
12582 then
12583 am_py_prefix=$ac_default_prefix
12584 else
12585 am_py_prefix=$prefix
12586 fi
12587 am_cv_python_pythondir=`$PYTHON -c "
12588 $am_python_setup_sysconfig
12589 if can_use_sysconfig:
12590 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
12591 else:
12592 from distutils import sysconfig
12593 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
12594 sys.stdout.write(sitedir)"`
12595 case $am_cv_python_pythondir in
12596 $am_py_prefix*)
12597 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12598 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12599 ;;
12600 *)
12601 case $am_py_prefix in
12602 /usr|/System*) ;;
12603 *)
12604 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12605 ;;
12606 esac
12607 ;;
12608 esac
12609
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12612 $as_echo "$am_cv_python_pythondir" >&6; }
12613 pythondir=$am_cv_python_pythondir
12614
12615
12616
12617 pkgpythondir=\${pythondir}/$PACKAGE
12618
12619
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12621 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12622 if ${am_cv_python_pyexecdir+:} false; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 if test "x$exec_prefix" = xNONE
12626 then
12627 am_py_exec_prefix=$am_py_prefix
12628 else
12629 am_py_exec_prefix=$exec_prefix
12630 fi
12631 am_cv_python_pyexecdir=`$PYTHON -c "
12632 $am_python_setup_sysconfig
12633 if can_use_sysconfig:
12634 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
12635 else:
12636 from distutils import sysconfig
12637 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
12638 sys.stdout.write(sitedir)"`
12639 case $am_cv_python_pyexecdir in
12640 $am_py_exec_prefix*)
12641 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12642 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
12643 ;;
12644 *)
12645 case $am_py_exec_prefix in
12646 /usr|/System*) ;;
12647 *)
12648 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
12649 ;;
12650 esac
12651 ;;
12652 esac
12653
12654 fi
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12656 $as_echo "$am_cv_python_pyexecdir" >&6; }
12657 pyexecdir=$am_cv_python_pyexecdir
12658
12659
12660
12661 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12662
12663
12664
12665 fi
12666
12667
12668 fi
12669
12670
12671 ac_dir=`echo "libiptcdata/_stdint.h"|sed 's%/[^/][^/]*$%%'`
12672 if test "$ac_dir" != "libiptcdata/_stdint.h" && test "$ac_dir" != .; then
12673 # The file is in a subdirectory.
12674 test ! -d "$ac_dir" && mkdir "$ac_dir"
12675 fi
12676
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in stdint.h" >&5
12678 $as_echo_n "checking for uint8_t in stdint.h... " >&6; }
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681 #include <stdint.h>
12682 _ACEOF
12683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12684 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
12685 ac_cv_type_uint8_t=yes
12686 else
12687 ac_cv_type_uint8_t=no
12688 fi
12689 rm -f conftest*
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
12691 $as_echo "$ac_cv_type_uint8_t" >&6; }
12692 if test $ac_cv_type_uint8_t = yes; then
12693
12694 cat > "libiptcdata/_stdint.h" <<EOF
12695 /* This file is generated automatically by configure */
12696 #include <stdint.h>
12697 EOF
12698 else
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in inttypes.h" >&5
12700 $as_echo_n "checking for uint8_t in inttypes.h... " >&6; }
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703 #include <inttypes.h>
12704 _ACEOF
12705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12706 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
12707 ac_cv_type_uint8_t=yes
12708 else
12709 ac_cv_type_uint8_t=no
12710 fi
12711 rm -f conftest*
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
12713 $as_echo "$ac_cv_type_uint8_t" >&6; }
12714 if test $ac_cv_type_uint8_t = yes; then
12715 cat > "libiptcdata/_stdint.h" <<EOF
12716 /* This file is generated automatically by configure */
12717 #include <inttypes.h>
12718 EOF
12719 else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in sys/types.h" >&5
12721 $as_echo_n "checking for uint8_t in sys/types.h... " >&6; }
12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12724 #include <sys/types.h>
12725 _ACEOF
12726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12727 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
12728 ac_cv_type_uint8_t=yes
12729 else
12730 ac_cv_type_uint8_t=no
12731 fi
12732 rm -f conftest*
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
12734 $as_echo "$ac_cv_type_uint8_t" >&6; }
12735 if test $ac_cv_type_uint8_t = yes; then
12736 cat > "libiptcdata/_stdint.h" <<EOF
12737 /* This file is generated automatically by configure */
12738 #include <sys/types.h>
12739 EOF
12740 else
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t in sys/types.h" >&5
12742 $as_echo_n "checking for u_int8_t in sys/types.h... " >&6; }
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745 #include <sys/types.h>
12746 _ACEOF
12747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12748 $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
12749 ac_cv_type_u_int8_t=yes
12750 else
12751 ac_cv_type_u_int8_t=no
12752 fi
12753 rm -f conftest*
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
12755 $as_echo "$ac_cv_type_u_int8_t" >&6; }
12756 if test $ac_cv_type_u_int8_t = yes; then
12757 cat > "libiptcdata/_stdint.h" <<EOF
12758 /* This file is generated automatically by configure */
12759 #ifndef __STDINT_H
12760 #define __STDINT_H
12761 #include <sys/types.h>
12762 typedef u_int8_t uint8_t;
12763 typedef u_int16_t uint16_t;
12764 typedef u_int32_t uint32_t;
12765 EOF
12766
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t in sys/types.h" >&5
12768 $as_echo_n "checking for u_int64_t in sys/types.h... " >&6; }
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771 #include <sys/types.h>
12772 _ACEOF
12773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12774 $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
12775 ac_cv_type_u_int64_t=yes
12776 else
12777 ac_cv_type_u_int64_t=no
12778 fi
12779 rm -f conftest*
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
12781 $as_echo "$ac_cv_type_u_int64_t" >&6; }
12782 if test $ac_cv_type_u_int64_t = yes; then
12783 cat >> "libiptcdata/_stdint.h" <<EOF
12784 typedef u_int64_t uint64_t;
12785 #endif /*!__STDINT_H*/
12786 EOF
12787 else
12788 cat >> "libiptcdata/_stdint.h" <<EOF
12789 /* 64-bit types are not available on this system */
12790 /* typedef u_int64_t uint64_t; */
12791 #endif /*!__STDINT_H*/
12792 EOF
12793 fi
12794
12795
12796
12797 else
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find size-specific integer definitions on this system" >&5
12799 $as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;}
12800 if test -e "libiptcdata/_stdint.h" ; then
12801 rm -f "libiptcdata/_stdint.h"
12802 fi
12803
12804 fi
12805
12806 fi
12807
12808 fi
12809
12810 fi
12811
12812
12813
12814 IPTC_GETTEXT_PACKAGE=iptc
12815
12816 cat >>confdefs.h <<_ACEOF
12817 #define IPTC_GETTEXT_PACKAGE "$IPTC_GETTEXT_PACKAGE"
12818 _ACEOF
12819
12820
12821
12822 GETTEXT_PACKAGE=${PACKAGE}
12823
12824 cat >>confdefs.h <<_ACEOF
12825 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
12826 _ACEOF
12827
12828
12829 #if test -f po/Makevars.template
12830 #then
12831 # sed -e "s/^DOMAIN.*/DOMAIN = ${GETTEXT_PACKAGE}/" < po/Makevars.template > po/Makevars
12832 # AC_MSG_RESULT([yes. done.])
12833 #else
12834 # AC_MSG_RESULT([no])
12835 #fi
12836
12837 MKINSTALLDIRS=
12838 if test -n "$ac_aux_dir"; then
12839 case "$ac_aux_dir" in
12840 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12841 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12842 esac
12843 fi
12844 if test -z "$MKINSTALLDIRS"; then
12845 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12846 fi
12847
12848
12849
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12851 $as_echo_n "checking whether NLS is requested... " >&6; }
12852 # Check whether --enable-nls was given.
12853 if test "${enable_nls+set}" = set; then :
12854 enableval=$enable_nls; USE_NLS=$enableval
12855 else
12856 USE_NLS=yes
12857 fi
12858
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12860 $as_echo "$USE_NLS" >&6; }
12861
12862
12863
12864
12865
12866
12867 # Prepare PATH_SEPARATOR.
12868 # The user is always right.
12869 if test "${PATH_SEPARATOR+set}" != set; then
12870 echo "#! /bin/sh" >conf$$.sh
12871 echo "exit 0" >>conf$$.sh
12872 chmod +x conf$$.sh
12873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12874 PATH_SEPARATOR=';'
12875 else
12876 PATH_SEPARATOR=:
12877 fi
12878 rm -f conf$$.sh
12879 fi
12880
12881 # Find out how to test for executable files. Don't use a zero-byte file,
12882 # as systems may use methods other than mode bits to determine executability.
12883 cat >conf$$.file <<_ASEOF
12884 #! /bin/sh
12885 exit 0
12886 _ASEOF
12887 chmod +x conf$$.file
12888 if test -x conf$$.file >/dev/null 2>&1; then
12889 ac_executable_p="test -x"
12890 else
12891 ac_executable_p="test -f"
12892 fi
12893 rm -f conf$$.file
12894
12895 # Extract the first word of "msgfmt", so it can be a program name with args.
12896 set dummy msgfmt; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898 $as_echo_n "checking for $ac_word... " >&6; }
12899 if ${ac_cv_path_MSGFMT+:} false; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 case "$MSGFMT" in
12903 [\\/]* | ?:[\\/]*)
12904 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12905 ;;
12906 *)
12907 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12908 for ac_dir in $PATH; do
12909 IFS="$ac_save_IFS"
12910 test -z "$ac_dir" && ac_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12913 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12914 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12915 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12916 break 2
12917 fi
12918 fi
12919 done
12920 done
12921 IFS="$ac_save_IFS"
12922 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12923 ;;
12924 esac
12925 fi
12926 MSGFMT="$ac_cv_path_MSGFMT"
12927 if test "$MSGFMT" != ":"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12929 $as_echo "$MSGFMT" >&6; }
12930 else
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12933 fi
12934
12935 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12936 set dummy gmsgfmt; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if ${ac_cv_path_GMSGFMT+:} false; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 case $GMSGFMT in
12943 [\\/]* | ?:[\\/]*)
12944 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12945 ;;
12946 *)
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12949 do
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12954 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12957 fi
12958 done
12959 done
12960 IFS=$as_save_IFS
12961
12962 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12963 ;;
12964 esac
12965 fi
12966 GMSGFMT=$ac_cv_path_GMSGFMT
12967 if test -n "$GMSGFMT"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12969 $as_echo "$GMSGFMT" >&6; }
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12973 fi
12974
12975
12976
12977
12978 # Prepare PATH_SEPARATOR.
12979 # The user is always right.
12980 if test "${PATH_SEPARATOR+set}" != set; then
12981 echo "#! /bin/sh" >conf$$.sh
12982 echo "exit 0" >>conf$$.sh
12983 chmod +x conf$$.sh
12984 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12985 PATH_SEPARATOR=';'
12986 else
12987 PATH_SEPARATOR=:
12988 fi
12989 rm -f conf$$.sh
12990 fi
12991
12992 # Find out how to test for executable files. Don't use a zero-byte file,
12993 # as systems may use methods other than mode bits to determine executability.
12994 cat >conf$$.file <<_ASEOF
12995 #! /bin/sh
12996 exit 0
12997 _ASEOF
12998 chmod +x conf$$.file
12999 if test -x conf$$.file >/dev/null 2>&1; then
13000 ac_executable_p="test -x"
13001 else
13002 ac_executable_p="test -f"
13003 fi
13004 rm -f conf$$.file
13005
13006 # Extract the first word of "xgettext", so it can be a program name with args.
13007 set dummy xgettext; ac_word=$2
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13009 $as_echo_n "checking for $ac_word... " >&6; }
13010 if ${ac_cv_path_XGETTEXT+:} false; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 case "$XGETTEXT" in
13014 [\\/]* | ?:[\\/]*)
13015 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13016 ;;
13017 *)
13018 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13019 for ac_dir in $PATH; do
13020 IFS="$ac_save_IFS"
13021 test -z "$ac_dir" && ac_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13024 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13025 (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
13026 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13027 break 2
13028 fi
13029 fi
13030 done
13031 done
13032 IFS="$ac_save_IFS"
13033 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13034 ;;
13035 esac
13036 fi
13037 XGETTEXT="$ac_cv_path_XGETTEXT"
13038 if test "$XGETTEXT" != ":"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13040 $as_echo "$XGETTEXT" >&6; }
13041 else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13044 fi
13045
13046 rm -f messages.po
13047
13048
13049 # Prepare PATH_SEPARATOR.
13050 # The user is always right.
13051 if test "${PATH_SEPARATOR+set}" != set; then
13052 echo "#! /bin/sh" >conf$$.sh
13053 echo "exit 0" >>conf$$.sh
13054 chmod +x conf$$.sh
13055 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13056 PATH_SEPARATOR=';'
13057 else
13058 PATH_SEPARATOR=:
13059 fi
13060 rm -f conf$$.sh
13061 fi
13062
13063 # Find out how to test for executable files. Don't use a zero-byte file,
13064 # as systems may use methods other than mode bits to determine executability.
13065 cat >conf$$.file <<_ASEOF
13066 #! /bin/sh
13067 exit 0
13068 _ASEOF
13069 chmod +x conf$$.file
13070 if test -x conf$$.file >/dev/null 2>&1; then
13071 ac_executable_p="test -x"
13072 else
13073 ac_executable_p="test -f"
13074 fi
13075 rm -f conf$$.file
13076
13077 # Extract the first word of "msgmerge", so it can be a program name with args.
13078 set dummy msgmerge; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if ${ac_cv_path_MSGMERGE+:} false; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 case "$MSGMERGE" in
13085 [\\/]* | ?:[\\/]*)
13086 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13087 ;;
13088 *)
13089 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13090 for ac_dir in $PATH; do
13091 IFS="$ac_save_IFS"
13092 test -z "$ac_dir" && ac_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13095 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13096 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13097 break 2
13098 fi
13099 fi
13100 done
13101 done
13102 IFS="$ac_save_IFS"
13103 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13104 ;;
13105 esac
13106 fi
13107 MSGMERGE="$ac_cv_path_MSGMERGE"
13108 if test "$MSGMERGE" != ":"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13110 $as_echo "$MSGMERGE" >&6; }
13111 else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114 fi
13115
13116
13117 if test "$GMSGFMT" != ":"; then
13118 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13119 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13120 : ;
13121 else
13122 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13124 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13125 GMSGFMT=":"
13126 fi
13127 fi
13128
13129 if test "$XGETTEXT" != ":"; then
13130 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13131 (if $XGETTEXT --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
13132 : ;
13133 else
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13135 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13136 XGETTEXT=":"
13137 fi
13138 rm -f messages.po
13139 fi
13140
13141 ac_config_commands="$ac_config_commands default-1"
13142
13143
13144
13145 if test "X$prefix" = "XNONE"; then
13146 acl_final_prefix="$ac_default_prefix"
13147 else
13148 acl_final_prefix="$prefix"
13149 fi
13150 if test "X$exec_prefix" = "XNONE"; then
13151 acl_final_exec_prefix='${prefix}'
13152 else
13153 acl_final_exec_prefix="$exec_prefix"
13154 fi
13155 acl_save_prefix="$prefix"
13156 prefix="$acl_final_prefix"
13157 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13158 prefix="$acl_save_prefix"
13159
13160
13161 # Check whether --with-gnu-ld was given.
13162 if test "${with_gnu_ld+set}" = set; then :
13163 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13164 else
13165 with_gnu_ld=no
13166 fi
13167
13168 # Prepare PATH_SEPARATOR.
13169 # The user is always right.
13170 if test "${PATH_SEPARATOR+set}" != set; then
13171 echo "#! /bin/sh" >conf$$.sh
13172 echo "exit 0" >>conf$$.sh
13173 chmod +x conf$$.sh
13174 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13175 PATH_SEPARATOR=';'
13176 else
13177 PATH_SEPARATOR=:
13178 fi
13179 rm -f conf$$.sh
13180 fi
13181 ac_prog=ld
13182 if test "$GCC" = yes; then
13183 # Check if gcc -print-prog-name=ld gives a path.
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13185 $as_echo_n "checking for ld used by GCC... " >&6; }
13186 case $host in
13187 *-*-mingw*)
13188 # gcc leaves a trailing carriage return which upsets mingw
13189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13190 *)
13191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13192 esac
13193 case $ac_prog in
13194 # Accept absolute paths.
13195 [\\/]* | [A-Za-z]:[\\/]*)
13196 re_direlt='/[^/][^/]*/\.\./'
13197 # Canonicalize the path of ld
13198 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13199 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13200 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13201 done
13202 test -z "$LD" && LD="$ac_prog"
13203 ;;
13204 "")
13205 # If it fails, then pretend we aren't using GCC.
13206 ac_prog=ld
13207 ;;
13208 *)
13209 # If it is relative, then search for the first ld in PATH.
13210 with_gnu_ld=unknown
13211 ;;
13212 esac
13213 elif test "$with_gnu_ld" = yes; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13215 $as_echo_n "checking for GNU ld... " >&6; }
13216 else
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13218 $as_echo_n "checking for non-GNU ld... " >&6; }
13219 fi
13220 if ${acl_cv_path_LD+:} false; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223 if test -z "$LD"; then
13224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13225 for ac_dir in $PATH; do
13226 test -z "$ac_dir" && ac_dir=.
13227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13228 acl_cv_path_LD="$ac_dir/$ac_prog"
13229 # Check to see if the program is GNU ld. I'd rather use --version,
13230 # but apparently some GNU ld's only accept -v.
13231 # Break only if it was the GNU/non-GNU ld that we prefer.
13232 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13233 *GNU* | *'with BFD'*)
13234 test "$with_gnu_ld" != no && break ;;
13235 *)
13236 test "$with_gnu_ld" != yes && break ;;
13237 esac
13238 fi
13239 done
13240 IFS="$ac_save_ifs"
13241 else
13242 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13243 fi
13244 fi
13245
13246 LD="$acl_cv_path_LD"
13247 if test -n "$LD"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13249 $as_echo "$LD" >&6; }
13250 else
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252 $as_echo "no" >&6; }
13253 fi
13254 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13256 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13257 if ${acl_cv_prog_gnu_ld+:} false; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13261 case `$LD -v 2>&1 </dev/null` in
13262 *GNU* | *'with BFD'*)
13263 acl_cv_prog_gnu_ld=yes ;;
13264 *)
13265 acl_cv_prog_gnu_ld=no ;;
13266 esac
13267 fi
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13269 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13270 with_gnu_ld=$acl_cv_prog_gnu_ld
13271
13272
13273
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13275 $as_echo_n "checking for shared library run path origin... " >&6; }
13276 if ${acl_cv_rpath+:} false; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279
13280 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13281 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13282 . ./conftest.sh
13283 rm -f ./conftest.sh
13284 acl_cv_rpath=done
13285
13286 fi
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13288 $as_echo "$acl_cv_rpath" >&6; }
13289 wl="$acl_cv_wl"
13290 libext="$acl_cv_libext"
13291 shlibext="$acl_cv_shlibext"
13292 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13293 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13294 hardcode_direct="$acl_cv_hardcode_direct"
13295 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13296 # Check whether --enable-rpath was given.
13297 if test "${enable_rpath+set}" = set; then :
13298 enableval=$enable_rpath; :
13299 else
13300 enable_rpath=yes
13301 fi
13302
13303
13304
13305
13306
13307
13308
13309
13310 use_additional=yes
13311
13312 acl_save_prefix="$prefix"
13313 prefix="$acl_final_prefix"
13314 acl_save_exec_prefix="$exec_prefix"
13315 exec_prefix="$acl_final_exec_prefix"
13316
13317 eval additional_includedir=\"$includedir\"
13318 eval additional_libdir=\"$libdir\"
13319
13320 exec_prefix="$acl_save_exec_prefix"
13321 prefix="$acl_save_prefix"
13322
13323
13324 # Check whether --with-libiconv-prefix was given.
13325 if test "${with_libiconv_prefix+set}" = set; then :
13326 withval=$with_libiconv_prefix;
13327 if test "X$withval" = "Xno"; then
13328 use_additional=no
13329 else
13330 if test "X$withval" = "X"; then
13331
13332 acl_save_prefix="$prefix"
13333 prefix="$acl_final_prefix"
13334 acl_save_exec_prefix="$exec_prefix"
13335 exec_prefix="$acl_final_exec_prefix"
13336
13337 eval additional_includedir=\"$includedir\"
13338 eval additional_libdir=\"$libdir\"
13339
13340 exec_prefix="$acl_save_exec_prefix"
13341 prefix="$acl_save_prefix"
13342
13343 else
13344 additional_includedir="$withval/include"
13345 additional_libdir="$withval/lib"
13346 fi
13347 fi
13348
13349 fi
13350
13351 LIBICONV=
13352 LTLIBICONV=
13353 INCICONV=
13354 rpathdirs=
13355 ltrpathdirs=
13356 names_already_handled=
13357 names_next_round='iconv '
13358 while test -n "$names_next_round"; do
13359 names_this_round="$names_next_round"
13360 names_next_round=
13361 for name in $names_this_round; do
13362 already_handled=
13363 for n in $names_already_handled; do
13364 if test "$n" = "$name"; then
13365 already_handled=yes
13366 break
13367 fi
13368 done
13369 if test -z "$already_handled"; then
13370 names_already_handled="$names_already_handled $name"
13371 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13372 eval value=\"\$HAVE_LIB$uppername\"
13373 if test -n "$value"; then
13374 if test "$value" = yes; then
13375 eval value=\"\$LIB$uppername\"
13376 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13377 eval value=\"\$LTLIB$uppername\"
13378 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13379 else
13380 :
13381 fi
13382 else
13383 found_dir=
13384 found_la=
13385 found_so=
13386 found_a=
13387 if test $use_additional = yes; then
13388 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13389 found_dir="$additional_libdir"
13390 found_so="$additional_libdir/lib$name.$shlibext"
13391 if test -f "$additional_libdir/lib$name.la"; then
13392 found_la="$additional_libdir/lib$name.la"
13393 fi
13394 else
13395 if test -f "$additional_libdir/lib$name.$libext"; then
13396 found_dir="$additional_libdir"
13397 found_a="$additional_libdir/lib$name.$libext"
13398 if test -f "$additional_libdir/lib$name.la"; then
13399 found_la="$additional_libdir/lib$name.la"
13400 fi
13401 fi
13402 fi
13403 fi
13404 if test "X$found_dir" = "X"; then
13405 for x in $LDFLAGS $LTLIBICONV; do
13406
13407 acl_save_prefix="$prefix"
13408 prefix="$acl_final_prefix"
13409 acl_save_exec_prefix="$exec_prefix"
13410 exec_prefix="$acl_final_exec_prefix"
13411 eval x=\"$x\"
13412 exec_prefix="$acl_save_exec_prefix"
13413 prefix="$acl_save_prefix"
13414
13415 case "$x" in
13416 -L*)
13417 dir=`echo "X$x" | sed -e 's/^X-L//'`
13418 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13419 found_dir="$dir"
13420 found_so="$dir/lib$name.$shlibext"
13421 if test -f "$dir/lib$name.la"; then
13422 found_la="$dir/lib$name.la"
13423 fi
13424 else
13425 if test -f "$dir/lib$name.$libext"; then
13426 found_dir="$dir"
13427 found_a="$dir/lib$name.$libext"
13428 if test -f "$dir/lib$name.la"; then
13429 found_la="$dir/lib$name.la"
13430 fi
13431 fi
13432 fi
13433 ;;
13434 esac
13435 if test "X$found_dir" != "X"; then
13436 break
13437 fi
13438 done
13439 fi
13440 if test "X$found_dir" != "X"; then
13441 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13442 if test "X$found_so" != "X"; then
13443 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13444 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13445 else
13446 haveit=
13447 for x in $ltrpathdirs; do
13448 if test "X$x" = "X$found_dir"; then
13449 haveit=yes
13450 break
13451 fi
13452 done
13453 if test -z "$haveit"; then
13454 ltrpathdirs="$ltrpathdirs $found_dir"
13455 fi
13456 if test "$hardcode_direct" = yes; then
13457 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13458 else
13459 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13461 haveit=
13462 for x in $rpathdirs; do
13463 if test "X$x" = "X$found_dir"; then
13464 haveit=yes
13465 break
13466 fi
13467 done
13468 if test -z "$haveit"; then
13469 rpathdirs="$rpathdirs $found_dir"
13470 fi
13471 else
13472 haveit=
13473 for x in $LDFLAGS $LIBICONV; do
13474
13475 acl_save_prefix="$prefix"
13476 prefix="$acl_final_prefix"
13477 acl_save_exec_prefix="$exec_prefix"
13478 exec_prefix="$acl_final_exec_prefix"
13479 eval x=\"$x\"
13480 exec_prefix="$acl_save_exec_prefix"
13481 prefix="$acl_save_prefix"
13482
13483 if test "X$x" = "X-L$found_dir"; then
13484 haveit=yes
13485 break
13486 fi
13487 done
13488 if test -z "$haveit"; then
13489 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13490 fi
13491 if test "$hardcode_minus_L" != no; then
13492 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13493 else
13494 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13495 fi
13496 fi
13497 fi
13498 fi
13499 else
13500 if test "X$found_a" != "X"; then
13501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13502 else
13503 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13504 fi
13505 fi
13506 additional_includedir=
13507 case "$found_dir" in
13508 */lib | */lib/)
13509 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13510 additional_includedir="$basedir/include"
13511 ;;
13512 esac
13513 if test "X$additional_includedir" != "X"; then
13514 if test "X$additional_includedir" != "X/usr/include"; then
13515 haveit=
13516 if test "X$additional_includedir" = "X/usr/local/include"; then
13517 if test -n "$GCC"; then
13518 case $host_os in
13519 linux*) haveit=yes;;
13520 esac
13521 fi
13522 fi
13523 if test -z "$haveit"; then
13524 for x in $CPPFLAGS $INCICONV; do
13525
13526 acl_save_prefix="$prefix"
13527 prefix="$acl_final_prefix"
13528 acl_save_exec_prefix="$exec_prefix"
13529 exec_prefix="$acl_final_exec_prefix"
13530 eval x=\"$x\"
13531 exec_prefix="$acl_save_exec_prefix"
13532 prefix="$acl_save_prefix"
13533
13534 if test "X$x" = "X-I$additional_includedir"; then
13535 haveit=yes
13536 break
13537 fi
13538 done
13539 if test -z "$haveit"; then
13540 if test -d "$additional_includedir"; then
13541 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13542 fi
13543 fi
13544 fi
13545 fi
13546 fi
13547 if test -n "$found_la"; then
13548 save_libdir="$libdir"
13549 case "$found_la" in
13550 */* | *\\*) . "$found_la" ;;
13551 *) . "./$found_la" ;;
13552 esac
13553 libdir="$save_libdir"
13554 for dep in $dependency_libs; do
13555 case "$dep" in
13556 -L*)
13557 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13558 if test "X$additional_libdir" != "X/usr/lib"; then
13559 haveit=
13560 if test "X$additional_libdir" = "X/usr/local/lib"; then
13561 if test -n "$GCC"; then
13562 case $host_os in
13563 linux*) haveit=yes;;
13564 esac
13565 fi
13566 fi
13567 if test -z "$haveit"; then
13568 haveit=
13569 for x in $LDFLAGS $LIBICONV; do
13570
13571 acl_save_prefix="$prefix"
13572 prefix="$acl_final_prefix"
13573 acl_save_exec_prefix="$exec_prefix"
13574 exec_prefix="$acl_final_exec_prefix"
13575 eval x=\"$x\"
13576 exec_prefix="$acl_save_exec_prefix"
13577 prefix="$acl_save_prefix"
13578
13579 if test "X$x" = "X-L$additional_libdir"; then
13580 haveit=yes
13581 break
13582 fi
13583 done
13584 if test -z "$haveit"; then
13585 if test -d "$additional_libdir"; then
13586 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13587 fi
13588 fi
13589 haveit=
13590 for x in $LDFLAGS $LTLIBICONV; do
13591
13592 acl_save_prefix="$prefix"
13593 prefix="$acl_final_prefix"
13594 acl_save_exec_prefix="$exec_prefix"
13595 exec_prefix="$acl_final_exec_prefix"
13596 eval x=\"$x\"
13597 exec_prefix="$acl_save_exec_prefix"
13598 prefix="$acl_save_prefix"
13599
13600 if test "X$x" = "X-L$additional_libdir"; then
13601 haveit=yes
13602 break
13603 fi
13604 done
13605 if test -z "$haveit"; then
13606 if test -d "$additional_libdir"; then
13607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13608 fi
13609 fi
13610 fi
13611 fi
13612 ;;
13613 -R*)
13614 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13615 if test "$enable_rpath" != no; then
13616 haveit=
13617 for x in $rpathdirs; do
13618 if test "X$x" = "X$dir"; then
13619 haveit=yes
13620 break
13621 fi
13622 done
13623 if test -z "$haveit"; then
13624 rpathdirs="$rpathdirs $dir"
13625 fi
13626 haveit=
13627 for x in $ltrpathdirs; do
13628 if test "X$x" = "X$dir"; then
13629 haveit=yes
13630 break
13631 fi
13632 done
13633 if test -z "$haveit"; then
13634 ltrpathdirs="$ltrpathdirs $dir"
13635 fi
13636 fi
13637 ;;
13638 -l*)
13639 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13640 ;;
13641 *.la)
13642 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13643 ;;
13644 *)
13645 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13646 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13647 ;;
13648 esac
13649 done
13650 fi
13651 else
13652 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13653 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13654 fi
13655 fi
13656 fi
13657 done
13658 done
13659 if test "X$rpathdirs" != "X"; then
13660 if test -n "$hardcode_libdir_separator"; then
13661 alldirs=
13662 for found_dir in $rpathdirs; do
13663 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13664 done
13665 acl_save_libdir="$libdir"
13666 libdir="$alldirs"
13667 eval flag=\"$hardcode_libdir_flag_spec\"
13668 libdir="$acl_save_libdir"
13669 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13670 else
13671 for found_dir in $rpathdirs; do
13672 acl_save_libdir="$libdir"
13673 libdir="$found_dir"
13674 eval flag=\"$hardcode_libdir_flag_spec\"
13675 libdir="$acl_save_libdir"
13676 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13677 done
13678 fi
13679 fi
13680 if test "X$ltrpathdirs" != "X"; then
13681 for found_dir in $ltrpathdirs; do
13682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13683 done
13684 fi
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13704 $as_echo_n "checking whether NLS is requested... " >&6; }
13705 # Check whether --enable-nls was given.
13706 if test "${enable_nls+set}" = set; then :
13707 enableval=$enable_nls; USE_NLS=$enableval
13708 else
13709 USE_NLS=yes
13710 fi
13711
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13713 $as_echo "$USE_NLS" >&6; }
13714
13715
13716
13717
13718 LIBINTL=
13719 LTLIBINTL=
13720 POSUB=
13721
13722 if test "$USE_NLS" = "yes"; then
13723 gt_use_preinstalled_gnugettext=no
13724
13725
13726
13727
13728
13729
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13731 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13732 if ${gt_cv_func_gnugettext1_libc+:} false; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13737 #include <libintl.h>
13738 extern int _nl_msg_cat_cntr;
13739 extern int *_nl_domain_bindings;
13740 int
13741 main ()
13742 {
13743 bindtextdomain ("", "");
13744 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13745 ;
13746 return 0;
13747 }
13748 _ACEOF
13749 if ac_fn_c_try_link "$LINENO"; then :
13750 gt_cv_func_gnugettext1_libc=yes
13751 else
13752 gt_cv_func_gnugettext1_libc=no
13753 fi
13754 rm -f core conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
13756 fi
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
13758 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
13759
13760 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13761
13762
13763
13764
13765
13766 am_save_CPPFLAGS="$CPPFLAGS"
13767
13768 for element in $INCICONV; do
13769 haveit=
13770 for x in $CPPFLAGS; do
13771
13772 acl_save_prefix="$prefix"
13773 prefix="$acl_final_prefix"
13774 acl_save_exec_prefix="$exec_prefix"
13775 exec_prefix="$acl_final_exec_prefix"
13776 eval x=\"$x\"
13777 exec_prefix="$acl_save_exec_prefix"
13778 prefix="$acl_save_prefix"
13779
13780 if test "X$x" = "X$element"; then
13781 haveit=yes
13782 break
13783 fi
13784 done
13785 if test -z "$haveit"; then
13786 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13787 fi
13788 done
13789
13790
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13792 $as_echo_n "checking for iconv... " >&6; }
13793 if ${am_cv_func_iconv+:} false; then :
13794 $as_echo_n "(cached) " >&6
13795 else
13796
13797 am_cv_func_iconv="no, consider installing GNU libiconv"
13798 am_cv_lib_iconv=no
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h. */
13801 #include <stdlib.h>
13802 #include <iconv.h>
13803 int
13804 main ()
13805 {
13806 iconv_t cd = iconv_open("","");
13807 iconv(cd,NULL,NULL,NULL,NULL);
13808 iconv_close(cd);
13809 ;
13810 return 0;
13811 }
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"; then :
13814 am_cv_func_iconv=yes
13815 fi
13816 rm -f core conftest.err conftest.$ac_objext \
13817 conftest$ac_exeext conftest.$ac_ext
13818 if test "$am_cv_func_iconv" != yes; then
13819 am_save_LIBS="$LIBS"
13820 LIBS="$LIBS $LIBICONV"
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13823 #include <stdlib.h>
13824 #include <iconv.h>
13825 int
13826 main ()
13827 {
13828 iconv_t cd = iconv_open("","");
13829 iconv(cd,NULL,NULL,NULL,NULL);
13830 iconv_close(cd);
13831 ;
13832 return 0;
13833 }
13834 _ACEOF
13835 if ac_fn_c_try_link "$LINENO"; then :
13836 am_cv_lib_iconv=yes
13837 am_cv_func_iconv=yes
13838 fi
13839 rm -f core conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext conftest.$ac_ext
13841 LIBS="$am_save_LIBS"
13842 fi
13843
13844 fi
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13846 $as_echo "$am_cv_func_iconv" >&6; }
13847 if test "$am_cv_func_iconv" = yes; then
13848
13849 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13850
13851 fi
13852 if test "$am_cv_lib_iconv" = yes; then
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13854 $as_echo_n "checking how to link with libiconv... " >&6; }
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13856 $as_echo "$LIBICONV" >&6; }
13857 else
13858 CPPFLAGS="$am_save_CPPFLAGS"
13859 LIBICONV=
13860 LTLIBICONV=
13861 fi
13862
13863
13864
13865
13866
13867
13868 use_additional=yes
13869
13870 acl_save_prefix="$prefix"
13871 prefix="$acl_final_prefix"
13872 acl_save_exec_prefix="$exec_prefix"
13873 exec_prefix="$acl_final_exec_prefix"
13874
13875 eval additional_includedir=\"$includedir\"
13876 eval additional_libdir=\"$libdir\"
13877
13878 exec_prefix="$acl_save_exec_prefix"
13879 prefix="$acl_save_prefix"
13880
13881
13882 # Check whether --with-libintl-prefix was given.
13883 if test "${with_libintl_prefix+set}" = set; then :
13884 withval=$with_libintl_prefix;
13885 if test "X$withval" = "Xno"; then
13886 use_additional=no
13887 else
13888 if test "X$withval" = "X"; then
13889
13890 acl_save_prefix="$prefix"
13891 prefix="$acl_final_prefix"
13892 acl_save_exec_prefix="$exec_prefix"
13893 exec_prefix="$acl_final_exec_prefix"
13894
13895 eval additional_includedir=\"$includedir\"
13896 eval additional_libdir=\"$libdir\"
13897
13898 exec_prefix="$acl_save_exec_prefix"
13899 prefix="$acl_save_prefix"
13900
13901 else
13902 additional_includedir="$withval/include"
13903 additional_libdir="$withval/lib"
13904 fi
13905 fi
13906
13907 fi
13908
13909 LIBINTL=
13910 LTLIBINTL=
13911 INCINTL=
13912 rpathdirs=
13913 ltrpathdirs=
13914 names_already_handled=
13915 names_next_round='intl '
13916 while test -n "$names_next_round"; do
13917 names_this_round="$names_next_round"
13918 names_next_round=
13919 for name in $names_this_round; do
13920 already_handled=
13921 for n in $names_already_handled; do
13922 if test "$n" = "$name"; then
13923 already_handled=yes
13924 break
13925 fi
13926 done
13927 if test -z "$already_handled"; then
13928 names_already_handled="$names_already_handled $name"
13929 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13930 eval value=\"\$HAVE_LIB$uppername\"
13931 if test -n "$value"; then
13932 if test "$value" = yes; then
13933 eval value=\"\$LIB$uppername\"
13934 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13935 eval value=\"\$LTLIB$uppername\"
13936 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13937 else
13938 :
13939 fi
13940 else
13941 found_dir=
13942 found_la=
13943 found_so=
13944 found_a=
13945 if test $use_additional = yes; then
13946 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13947 found_dir="$additional_libdir"
13948 found_so="$additional_libdir/lib$name.$shlibext"
13949 if test -f "$additional_libdir/lib$name.la"; then
13950 found_la="$additional_libdir/lib$name.la"
13951 fi
13952 else
13953 if test -f "$additional_libdir/lib$name.$libext"; then
13954 found_dir="$additional_libdir"
13955 found_a="$additional_libdir/lib$name.$libext"
13956 if test -f "$additional_libdir/lib$name.la"; then
13957 found_la="$additional_libdir/lib$name.la"
13958 fi
13959 fi
13960 fi
13961 fi
13962 if test "X$found_dir" = "X"; then
13963 for x in $LDFLAGS $LTLIBINTL; do
13964
13965 acl_save_prefix="$prefix"
13966 prefix="$acl_final_prefix"
13967 acl_save_exec_prefix="$exec_prefix"
13968 exec_prefix="$acl_final_exec_prefix"
13969 eval x=\"$x\"
13970 exec_prefix="$acl_save_exec_prefix"
13971 prefix="$acl_save_prefix"
13972
13973 case "$x" in
13974 -L*)
13975 dir=`echo "X$x" | sed -e 's/^X-L//'`
13976 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13977 found_dir="$dir"
13978 found_so="$dir/lib$name.$shlibext"
13979 if test -f "$dir/lib$name.la"; then
13980 found_la="$dir/lib$name.la"
13981 fi
13982 else
13983 if test -f "$dir/lib$name.$libext"; then
13984 found_dir="$dir"
13985 found_a="$dir/lib$name.$libext"
13986 if test -f "$dir/lib$name.la"; then
13987 found_la="$dir/lib$name.la"
13988 fi
13989 fi
13990 fi
13991 ;;
13992 esac
13993 if test "X$found_dir" != "X"; then
13994 break
13995 fi
13996 done
13997 fi
13998 if test "X$found_dir" != "X"; then
13999 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14000 if test "X$found_so" != "X"; then
14001 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14002 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14003 else
14004 haveit=
14005 for x in $ltrpathdirs; do
14006 if test "X$x" = "X$found_dir"; then
14007 haveit=yes
14008 break
14009 fi
14010 done
14011 if test -z "$haveit"; then
14012 ltrpathdirs="$ltrpathdirs $found_dir"
14013 fi
14014 if test "$hardcode_direct" = yes; then
14015 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14016 else
14017 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14018 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14019 haveit=
14020 for x in $rpathdirs; do
14021 if test "X$x" = "X$found_dir"; then
14022 haveit=yes
14023 break
14024 fi
14025 done
14026 if test -z "$haveit"; then
14027 rpathdirs="$rpathdirs $found_dir"
14028 fi
14029 else
14030 haveit=
14031 for x in $LDFLAGS $LIBINTL; do
14032
14033 acl_save_prefix="$prefix"
14034 prefix="$acl_final_prefix"
14035 acl_save_exec_prefix="$exec_prefix"
14036 exec_prefix="$acl_final_exec_prefix"
14037 eval x=\"$x\"
14038 exec_prefix="$acl_save_exec_prefix"
14039 prefix="$acl_save_prefix"
14040
14041 if test "X$x" = "X-L$found_dir"; then
14042 haveit=yes
14043 break
14044 fi
14045 done
14046 if test -z "$haveit"; then
14047 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14048 fi
14049 if test "$hardcode_minus_L" != no; then
14050 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14051 else
14052 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14053 fi
14054 fi
14055 fi
14056 fi
14057 else
14058 if test "X$found_a" != "X"; then
14059 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14060 else
14061 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14062 fi
14063 fi
14064 additional_includedir=
14065 case "$found_dir" in
14066 */lib | */lib/)
14067 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14068 additional_includedir="$basedir/include"
14069 ;;
14070 esac
14071 if test "X$additional_includedir" != "X"; then
14072 if test "X$additional_includedir" != "X/usr/include"; then
14073 haveit=
14074 if test "X$additional_includedir" = "X/usr/local/include"; then
14075 if test -n "$GCC"; then
14076 case $host_os in
14077 linux*) haveit=yes;;
14078 esac
14079 fi
14080 fi
14081 if test -z "$haveit"; then
14082 for x in $CPPFLAGS $INCINTL; do
14083
14084 acl_save_prefix="$prefix"
14085 prefix="$acl_final_prefix"
14086 acl_save_exec_prefix="$exec_prefix"
14087 exec_prefix="$acl_final_exec_prefix"
14088 eval x=\"$x\"
14089 exec_prefix="$acl_save_exec_prefix"
14090 prefix="$acl_save_prefix"
14091
14092 if test "X$x" = "X-I$additional_includedir"; then
14093 haveit=yes
14094 break
14095 fi
14096 done
14097 if test -z "$haveit"; then
14098 if test -d "$additional_includedir"; then
14099 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14100 fi
14101 fi
14102 fi
14103 fi
14104 fi
14105 if test -n "$found_la"; then
14106 save_libdir="$libdir"
14107 case "$found_la" in
14108 */* | *\\*) . "$found_la" ;;
14109 *) . "./$found_la" ;;
14110 esac
14111 libdir="$save_libdir"
14112 for dep in $dependency_libs; do
14113 case "$dep" in
14114 -L*)
14115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14116 if test "X$additional_libdir" != "X/usr/lib"; then
14117 haveit=
14118 if test "X$additional_libdir" = "X/usr/local/lib"; then
14119 if test -n "$GCC"; then
14120 case $host_os in
14121 linux*) haveit=yes;;
14122 esac
14123 fi
14124 fi
14125 if test -z "$haveit"; then
14126 haveit=
14127 for x in $LDFLAGS $LIBINTL; do
14128
14129 acl_save_prefix="$prefix"
14130 prefix="$acl_final_prefix"
14131 acl_save_exec_prefix="$exec_prefix"
14132 exec_prefix="$acl_final_exec_prefix"
14133 eval x=\"$x\"
14134 exec_prefix="$acl_save_exec_prefix"
14135 prefix="$acl_save_prefix"
14136
14137 if test "X$x" = "X-L$additional_libdir"; then
14138 haveit=yes
14139 break
14140 fi
14141 done
14142 if test -z "$haveit"; then
14143 if test -d "$additional_libdir"; then
14144 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14145 fi
14146 fi
14147 haveit=
14148 for x in $LDFLAGS $LTLIBINTL; do
14149
14150 acl_save_prefix="$prefix"
14151 prefix="$acl_final_prefix"
14152 acl_save_exec_prefix="$exec_prefix"
14153 exec_prefix="$acl_final_exec_prefix"
14154 eval x=\"$x\"
14155 exec_prefix="$acl_save_exec_prefix"
14156 prefix="$acl_save_prefix"
14157
14158 if test "X$x" = "X-L$additional_libdir"; then
14159 haveit=yes
14160 break
14161 fi
14162 done
14163 if test -z "$haveit"; then
14164 if test -d "$additional_libdir"; then
14165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14166 fi
14167 fi
14168 fi
14169 fi
14170 ;;
14171 -R*)
14172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14173 if test "$enable_rpath" != no; then
14174 haveit=
14175 for x in $rpathdirs; do
14176 if test "X$x" = "X$dir"; then
14177 haveit=yes
14178 break
14179 fi
14180 done
14181 if test -z "$haveit"; then
14182 rpathdirs="$rpathdirs $dir"
14183 fi
14184 haveit=
14185 for x in $ltrpathdirs; do
14186 if test "X$x" = "X$dir"; then
14187 haveit=yes
14188 break
14189 fi
14190 done
14191 if test -z "$haveit"; then
14192 ltrpathdirs="$ltrpathdirs $dir"
14193 fi
14194 fi
14195 ;;
14196 -l*)
14197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14198 ;;
14199 *.la)
14200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14201 ;;
14202 *)
14203 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14204 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14205 ;;
14206 esac
14207 done
14208 fi
14209 else
14210 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14212 fi
14213 fi
14214 fi
14215 done
14216 done
14217 if test "X$rpathdirs" != "X"; then
14218 if test -n "$hardcode_libdir_separator"; then
14219 alldirs=
14220 for found_dir in $rpathdirs; do
14221 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14222 done
14223 acl_save_libdir="$libdir"
14224 libdir="$alldirs"
14225 eval flag=\"$hardcode_libdir_flag_spec\"
14226 libdir="$acl_save_libdir"
14227 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14228 else
14229 for found_dir in $rpathdirs; do
14230 acl_save_libdir="$libdir"
14231 libdir="$found_dir"
14232 eval flag=\"$hardcode_libdir_flag_spec\"
14233 libdir="$acl_save_libdir"
14234 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14235 done
14236 fi
14237 fi
14238 if test "X$ltrpathdirs" != "X"; then
14239 for found_dir in $ltrpathdirs; do
14240 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14241 done
14242 fi
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14245 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14246 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 gt_save_CPPFLAGS="$CPPFLAGS"
14250 CPPFLAGS="$CPPFLAGS $INCINTL"
14251 gt_save_LIBS="$LIBS"
14252 LIBS="$LIBS $LIBINTL"
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14255 #include <libintl.h>
14256 extern int _nl_msg_cat_cntr;
14257 extern
14258 #ifdef __cplusplus
14259 "C"
14260 #endif
14261 const char *_nl_expand_alias ();
14262 int
14263 main ()
14264 {
14265 bindtextdomain ("", "");
14266 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14267 ;
14268 return 0;
14269 }
14270 _ACEOF
14271 if ac_fn_c_try_link "$LINENO"; then :
14272 gt_cv_func_gnugettext1_libintl=yes
14273 else
14274 gt_cv_func_gnugettext1_libintl=no
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14279 LIBS="$LIBS $LIBICONV"
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282 #include <libintl.h>
14283 extern int _nl_msg_cat_cntr;
14284 extern
14285 #ifdef __cplusplus
14286 "C"
14287 #endif
14288 const char *_nl_expand_alias ();
14289 int
14290 main ()
14291 {
14292 bindtextdomain ("", "");
14293 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14294 ;
14295 return 0;
14296 }
14297 _ACEOF
14298 if ac_fn_c_try_link "$LINENO"; then :
14299 LIBINTL="$LIBINTL $LIBICONV"
14300 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14301 gt_cv_func_gnugettext1_libintl=yes
14302
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext \
14305 conftest$ac_exeext conftest.$ac_ext
14306 fi
14307 CPPFLAGS="$gt_save_CPPFLAGS"
14308 LIBS="$gt_save_LIBS"
14309 fi
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
14311 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
14312 fi
14313
14314 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14315 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14316 && test "$PACKAGE" != gettext-runtime \
14317 && test "$PACKAGE" != gettext-tools; }; then
14318 gt_use_preinstalled_gnugettext=yes
14319 else
14320 LIBINTL=
14321 LTLIBINTL=
14322 INCINTL=
14323 fi
14324
14325
14326
14327 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14328 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14329
14330 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14331
14332 else
14333 USE_NLS=no
14334 fi
14335 fi
14336
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14338 $as_echo_n "checking whether to use NLS... " >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14340 $as_echo "$USE_NLS" >&6; }
14341 if test "$USE_NLS" = "yes"; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14343 $as_echo_n "checking where the gettext function comes from... " >&6; }
14344 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14345 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14346 gt_source="external libintl"
14347 else
14348 gt_source="libc"
14349 fi
14350 else
14351 gt_source="included intl directory"
14352 fi
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14354 $as_echo "$gt_source" >&6; }
14355 fi
14356
14357 if test "$USE_NLS" = "yes"; then
14358
14359 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14360 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14362 $as_echo_n "checking how to link with libintl... " >&6; }
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14364 $as_echo "$LIBINTL" >&6; }
14365
14366 for element in $INCINTL; do
14367 haveit=
14368 for x in $CPPFLAGS; do
14369
14370 acl_save_prefix="$prefix"
14371 prefix="$acl_final_prefix"
14372 acl_save_exec_prefix="$exec_prefix"
14373 exec_prefix="$acl_final_exec_prefix"
14374 eval x=\"$x\"
14375 exec_prefix="$acl_save_exec_prefix"
14376 prefix="$acl_save_prefix"
14377
14378 if test "X$x" = "X$element"; then
14379 haveit=yes
14380 break
14381 fi
14382 done
14383 if test -z "$haveit"; then
14384 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14385 fi
14386 done
14387
14388 fi
14389
14390
14391 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14392
14393
14394 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14395
14396 fi
14397
14398 POSUB=po
14399 fi
14400
14401
14402
14403 INTLLIBS="$LIBINTL"
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417 am_save_CPPFLAGS="$CPPFLAGS"
14418
14419 for element in $INCICONV; do
14420 haveit=
14421 for x in $CPPFLAGS; do
14422
14423 acl_save_prefix="$prefix"
14424 prefix="$acl_final_prefix"
14425 acl_save_exec_prefix="$exec_prefix"
14426 exec_prefix="$acl_final_exec_prefix"
14427 eval x=\"$x\"
14428 exec_prefix="$acl_save_exec_prefix"
14429 prefix="$acl_save_prefix"
14430
14431 if test "X$x" = "X$element"; then
14432 haveit=yes
14433 break
14434 fi
14435 done
14436 if test -z "$haveit"; then
14437 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14438 fi
14439 done
14440
14441
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14443 $as_echo_n "checking for iconv... " >&6; }
14444 if ${am_cv_func_iconv+:} false; then :
14445 $as_echo_n "(cached) " >&6
14446 else
14447
14448 am_cv_func_iconv="no, consider installing GNU libiconv"
14449 am_cv_lib_iconv=no
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 #include <stdlib.h>
14453 #include <iconv.h>
14454 int
14455 main ()
14456 {
14457 iconv_t cd = iconv_open("","");
14458 iconv(cd,NULL,NULL,NULL,NULL);
14459 iconv_close(cd);
14460 ;
14461 return 0;
14462 }
14463 _ACEOF
14464 if ac_fn_c_try_link "$LINENO"; then :
14465 am_cv_func_iconv=yes
14466 fi
14467 rm -f core conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14469 if test "$am_cv_func_iconv" != yes; then
14470 am_save_LIBS="$LIBS"
14471 LIBS="$LIBS $LIBICONV"
14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14474 #include <stdlib.h>
14475 #include <iconv.h>
14476 int
14477 main ()
14478 {
14479 iconv_t cd = iconv_open("","");
14480 iconv(cd,NULL,NULL,NULL,NULL);
14481 iconv_close(cd);
14482 ;
14483 return 0;
14484 }
14485 _ACEOF
14486 if ac_fn_c_try_link "$LINENO"; then :
14487 am_cv_lib_iconv=yes
14488 am_cv_func_iconv=yes
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext \
14491 conftest$ac_exeext conftest.$ac_ext
14492 LIBS="$am_save_LIBS"
14493 fi
14494
14495 fi
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14497 $as_echo "$am_cv_func_iconv" >&6; }
14498 if test "$am_cv_func_iconv" = yes; then
14499
14500 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14501
14502 fi
14503 if test "$am_cv_lib_iconv" = yes; then
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14505 $as_echo_n "checking how to link with libiconv... " >&6; }
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14507 $as_echo "$LIBICONV" >&6; }
14508 else
14509 CPPFLAGS="$am_save_CPPFLAGS"
14510 LIBICONV=
14511 LTLIBICONV=
14512 fi
14513
14514
14515
14516 if test "$am_cv_func_iconv" = yes; then
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14518 $as_echo_n "checking for iconv declaration... " >&6; }
14519 if ${am_cv_proto_iconv+:} false; then :
14520 $as_echo_n "(cached) " >&6
14521 else
14522
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525
14526 #include <stdlib.h>
14527 #include <iconv.h>
14528 extern
14529 #ifdef __cplusplus
14530 "C"
14531 #endif
14532 #if defined(__STDC__) || defined(__cplusplus)
14533 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14534 #else
14535 size_t iconv();
14536 #endif
14537
14538 int
14539 main ()
14540 {
14541
14542 ;
14543 return 0;
14544 }
14545 _ACEOF
14546 if ac_fn_c_try_compile "$LINENO"; then :
14547 am_cv_proto_iconv_arg1=""
14548 else
14549 am_cv_proto_iconv_arg1="const"
14550 fi
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14553 fi
14554
14555 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14557 }$am_cv_proto_iconv" >&5
14558 $as_echo "${ac_t:-
14559 }$am_cv_proto_iconv" >&6; }
14560
14561 cat >>confdefs.h <<_ACEOF
14562 #define ICONV_CONST $am_cv_proto_iconv_arg1
14563 _ACEOF
14564
14565 fi
14566
14567
14568 for ac_header in getopt.h wchar.h iconv.h
14569 do :
14570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14571 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14573 cat >>confdefs.h <<_ACEOF
14574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14575 _ACEOF
14576
14577 fi
14578
14579 done
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14591 if test -n "$ac_tool_prefix"; then
14592 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14593 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14595 $as_echo_n "checking for $ac_word... " >&6; }
14596 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 case $PKG_CONFIG in
14600 [\\/]* | ?:[\\/]*)
14601 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14602 ;;
14603 *)
14604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14605 for as_dir in $PATH
14606 do
14607 IFS=$as_save_IFS
14608 test -z "$as_dir" && as_dir=.
14609 for ac_exec_ext in '' $ac_executable_extensions; do
14610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14611 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14613 break 2
14614 fi
14615 done
14616 done
14617 IFS=$as_save_IFS
14618
14619 ;;
14620 esac
14621 fi
14622 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14623 if test -n "$PKG_CONFIG"; then
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14625 $as_echo "$PKG_CONFIG" >&6; }
14626 else
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14628 $as_echo "no" >&6; }
14629 fi
14630
14631
14632 fi
14633 if test -z "$ac_cv_path_PKG_CONFIG"; then
14634 ac_pt_PKG_CONFIG=$PKG_CONFIG
14635 # Extract the first word of "pkg-config", so it can be a program name with args.
14636 set dummy pkg-config; ac_word=$2
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14638 $as_echo_n "checking for $ac_word... " >&6; }
14639 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642 case $ac_pt_PKG_CONFIG in
14643 [\\/]* | ?:[\\/]*)
14644 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14645 ;;
14646 *)
14647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14648 for as_dir in $PATH
14649 do
14650 IFS=$as_save_IFS
14651 test -z "$as_dir" && as_dir=.
14652 for ac_exec_ext in '' $ac_executable_extensions; do
14653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14654 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14656 break 2
14657 fi
14658 done
14659 done
14660 IFS=$as_save_IFS
14661
14662 ;;
14663 esac
14664 fi
14665 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14666 if test -n "$ac_pt_PKG_CONFIG"; then
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14668 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14669 else
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14671 $as_echo "no" >&6; }
14672 fi
14673
14674 if test "x$ac_pt_PKG_CONFIG" = x; then
14675 PKG_CONFIG=""
14676 else
14677 case $cross_compiling:$ac_tool_warned in
14678 yes:)
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14681 ac_tool_warned=yes ;;
14682 esac
14683 PKG_CONFIG=$ac_pt_PKG_CONFIG
14684 fi
14685 else
14686 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14687 fi
14688
14689 fi
14690 if test -n "$PKG_CONFIG"; then
14691 _pkg_min_version=0.9.0
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14693 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14694 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14696 $as_echo "yes" >&6; }
14697 else
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14699 $as_echo "no" >&6; }
14700 PKG_CONFIG=""
14701 fi
14702 fi
14703
14704
14705
14706 gtk_doc_requires="gtk-doc >= 1.14"
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
14708 $as_echo_n "checking for gtk-doc... " >&6; }
14709 if test -n "$PKG_CONFIG" && \
14710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
14711 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
14712 ac_status=$?
14713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14714 test $ac_status = 0; }; then
14715 have_gtk_doc=yes
14716 else
14717 have_gtk_doc=no
14718 fi
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
14720 $as_echo "$have_gtk_doc" >&6; }
14721
14722 if test "$have_gtk_doc" = "no"; then
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14724 You will not be able to create source packages with 'make dist'
14725 because $gtk_doc_requires is not found." >&5
14726 $as_echo "$as_me: WARNING:
14727 You will not be able to create source packages with 'make dist'
14728 because $gtk_doc_requires is not found." >&2;}
14729 fi
14730
14731 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14732 set dummy gtkdoc-check; ac_word=$2
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14734 $as_echo_n "checking for $ac_word... " >&6; }
14735 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
14736 $as_echo_n "(cached) " >&6
14737 else
14738 if test -n "$GTKDOC_CHECK"; then
14739 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
14740 else
14741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14742 for as_dir in $PATH
14743 do
14744 IFS=$as_save_IFS
14745 test -z "$as_dir" && as_dir=.
14746 for ac_exec_ext in '' $ac_executable_extensions; do
14747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14748 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
14749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14750 break 2
14751 fi
14752 done
14753 done
14754 IFS=$as_save_IFS
14755
14756 fi
14757 fi
14758 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
14759 if test -n "$GTKDOC_CHECK"; then
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
14761 $as_echo "$GTKDOC_CHECK" >&6; }
14762 else
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764 $as_echo "no" >&6; }
14765 fi
14766
14767
14768 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14769 set dummy gtkdoc-check; ac_word=$2
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14771 $as_echo_n "checking for $ac_word... " >&6; }
14772 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
14773 $as_echo_n "(cached) " >&6
14774 else
14775 case $GTKDOC_CHECK_PATH in
14776 [\\/]* | ?:[\\/]*)
14777 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
14778 ;;
14779 *)
14780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14781 for as_dir in $PATH
14782 do
14783 IFS=$as_save_IFS
14784 test -z "$as_dir" && as_dir=.
14785 for ac_exec_ext in '' $ac_executable_extensions; do
14786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14787 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
14788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14789 break 2
14790 fi
14791 done
14792 done
14793 IFS=$as_save_IFS
14794
14795 ;;
14796 esac
14797 fi
14798 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
14799 if test -n "$GTKDOC_CHECK_PATH"; then
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
14801 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
14802 else
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14804 $as_echo "no" >&6; }
14805 fi
14806
14807
14808 for ac_prog in gtkdoc-rebase
14809 do
14810 # Extract the first word of "$ac_prog", so it can be a program name with args.
14811 set dummy $ac_prog; ac_word=$2
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14813 $as_echo_n "checking for $ac_word... " >&6; }
14814 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
14815 $as_echo_n "(cached) " >&6
14816 else
14817 case $GTKDOC_REBASE in
14818 [\\/]* | ?:[\\/]*)
14819 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
14820 ;;
14821 *)
14822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14823 for as_dir in $PATH
14824 do
14825 IFS=$as_save_IFS
14826 test -z "$as_dir" && as_dir=.
14827 for ac_exec_ext in '' $ac_executable_extensions; do
14828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14829 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
14830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14831 break 2
14832 fi
14833 done
14834 done
14835 IFS=$as_save_IFS
14836
14837 ;;
14838 esac
14839 fi
14840 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
14841 if test -n "$GTKDOC_REBASE"; then
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
14843 $as_echo "$GTKDOC_REBASE" >&6; }
14844 else
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14846 $as_echo "no" >&6; }
14847 fi
14848
14849
14850 test -n "$GTKDOC_REBASE" && break
14851 done
14852 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
14853
14854 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
14855 set dummy gtkdoc-mkpdf; ac_word=$2
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14857 $as_echo_n "checking for $ac_word... " >&6; }
14858 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861 case $GTKDOC_MKPDF in
14862 [\\/]* | ?:[\\/]*)
14863 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
14864 ;;
14865 *)
14866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14868 do
14869 IFS=$as_save_IFS
14870 test -z "$as_dir" && as_dir=.
14871 for ac_exec_ext in '' $ac_executable_extensions; do
14872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14873 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
14874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14875 break 2
14876 fi
14877 done
14878 done
14879 IFS=$as_save_IFS
14880
14881 ;;
14882 esac
14883 fi
14884 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
14885 if test -n "$GTKDOC_MKPDF"; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
14887 $as_echo "$GTKDOC_MKPDF" >&6; }
14888 else
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14891 fi
14892
14893
14894
14895
14896 # Check whether --with-html-dir was given.
14897 if test "${with_html_dir+set}" = set; then :
14898 withval=$with_html_dir;
14899 else
14900 with_html_dir='${datadir}/gtk-doc/html'
14901 fi
14902
14903 HTML_DIR="$with_html_dir"
14904
14905
14906 # Check whether --enable-gtk-doc was given.
14907 if test "${enable_gtk_doc+set}" = set; then :
14908 enableval=$enable_gtk_doc;
14909 else
14910 enable_gtk_doc=no
14911 fi
14912
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
14915 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
14917 $as_echo "$enable_gtk_doc" >&6; }
14918
14919 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
14920 as_fn_error $? "
14921 You must have $gtk_doc_requires installed to build documentation for
14922 $PACKAGE_NAME. Please install gtk-doc or disable building the
14923 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
14924 fi
14925
14926 if test "x$PACKAGE_NAME" != "xglib"; then
14927
14928 pkg_failed=no
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
14930 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
14931
14932 if test -n "$GTKDOC_DEPS_CFLAGS"; then
14933 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
14934 elif test -n "$PKG_CONFIG"; then
14935 if test -n "$PKG_CONFIG" && \
14936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
14937 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
14938 ac_status=$?
14939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14940 test $ac_status = 0; }; then
14941 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
14942 test "x$?" != "x0" && pkg_failed=yes
14943 else
14944 pkg_failed=yes
14945 fi
14946 else
14947 pkg_failed=untried
14948 fi
14949 if test -n "$GTKDOC_DEPS_LIBS"; then
14950 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
14951 elif test -n "$PKG_CONFIG"; then
14952 if test -n "$PKG_CONFIG" && \
14953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
14954 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
14955 ac_status=$?
14956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14957 test $ac_status = 0; }; then
14958 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
14959 test "x$?" != "x0" && pkg_failed=yes
14960 else
14961 pkg_failed=yes
14962 fi
14963 else
14964 pkg_failed=untried
14965 fi
14966
14967
14968
14969 if test $pkg_failed = yes; then
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14971 $as_echo "no" >&6; }
14972
14973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14974 _pkg_short_errors_supported=yes
14975 else
14976 _pkg_short_errors_supported=no
14977 fi
14978 if test $_pkg_short_errors_supported = yes; then
14979 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
14980 else
14981 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
14982 fi
14983 # Put the nasty error message in config.log where it belongs
14984 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
14985
14986 :
14987 elif test $pkg_failed = untried; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14989 $as_echo "no" >&6; }
14990 :
14991 else
14992 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
14993 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14995 $as_echo "yes" >&6; }
14996
14997 fi
14998 fi
14999
15000 # Check whether --enable-gtk-doc-html was given.
15001 if test "${enable_gtk_doc_html+set}" = set; then :
15002 enableval=$enable_gtk_doc_html;
15003 else
15004 enable_gtk_doc_html=yes
15005 fi
15006
15007 # Check whether --enable-gtk-doc-pdf was given.
15008 if test "${enable_gtk_doc_pdf+set}" = set; then :
15009 enableval=$enable_gtk_doc_pdf;
15010 else
15011 enable_gtk_doc_pdf=no
15012 fi
15013
15014
15015 if test -z "$GTKDOC_MKPDF"; then
15016 enable_gtk_doc_pdf=no
15017 fi
15018
15019 if test -z "$AM_DEFAULT_VERBOSITY"; then
15020 AM_DEFAULT_VERBOSITY=1
15021 fi
15022
15023
15024 if test x$have_gtk_doc = xyes; then
15025 HAVE_GTK_DOC_TRUE=
15026 HAVE_GTK_DOC_FALSE='#'
15027 else
15028 HAVE_GTK_DOC_TRUE='#'
15029 HAVE_GTK_DOC_FALSE=
15030 fi
15031
15032 if test x$enable_gtk_doc = xyes; then
15033 ENABLE_GTK_DOC_TRUE=
15034 ENABLE_GTK_DOC_FALSE='#'
15035 else
15036 ENABLE_GTK_DOC_TRUE='#'
15037 ENABLE_GTK_DOC_FALSE=
15038 fi
15039
15040 if test x$enable_gtk_doc_html = xyes; then
15041 GTK_DOC_BUILD_HTML_TRUE=
15042 GTK_DOC_BUILD_HTML_FALSE='#'
15043 else
15044 GTK_DOC_BUILD_HTML_TRUE='#'
15045 GTK_DOC_BUILD_HTML_FALSE=
15046 fi
15047
15048 if test x$enable_gtk_doc_pdf = xyes; then
15049 GTK_DOC_BUILD_PDF_TRUE=
15050 GTK_DOC_BUILD_PDF_FALSE='#'
15051 else
15052 GTK_DOC_BUILD_PDF_TRUE='#'
15053 GTK_DOC_BUILD_PDF_FALSE=
15054 fi
15055
15056 if test -n "$LIBTOOL"; then
15057 GTK_DOC_USE_LIBTOOL_TRUE=
15058 GTK_DOC_USE_LIBTOOL_FALSE='#'
15059 else
15060 GTK_DOC_USE_LIBTOOL_TRUE='#'
15061 GTK_DOC_USE_LIBTOOL_FALSE=
15062 fi
15063
15064 if test -n "$GTKDOC_REBASE"; then
15065 GTK_DOC_USE_REBASE_TRUE=
15066 GTK_DOC_USE_REBASE_FALSE='#'
15067 else
15068 GTK_DOC_USE_REBASE_TRUE='#'
15069 GTK_DOC_USE_REBASE_FALSE=
15070 fi
15071
15072
15073
15074
15075 if test "x$GCC" = "xyes"; then
15076 CFLAGS="$CFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
15077 LDFLAGS="$LDFLAGS -g -Wall"
15078
15079
15080 fi
15081
15082 ac_config_files="$ac_config_files Makefile libiptcdata.spec libiptcdata/Makefile m4/Makefile libiptcdata/libiptcdata.pc iptc/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml po/Makefile.in iptc/po/Makefile.in win/Makefile win/iptctool/Makefile python/Makefile"
15083
15084 cat >confcache <<\_ACEOF
15085 # This file is a shell script that caches the results of configure
15086 # tests run on this system so they can be shared between configure
15087 # scripts and configure runs, see configure's option --config-cache.
15088 # It is not useful on other systems. If it contains results you don't
15089 # want to keep, you may remove or edit it.
15090 #
15091 # config.status only pays attention to the cache file if you give it
15092 # the --recheck option to rerun configure.
15093 #
15094 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15095 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15096 # following values.
15097
15098 _ACEOF
15099
15100 # The following way of writing the cache mishandles newlines in values,
15101 # but we know of no workaround that is simple, portable, and efficient.
15102 # So, we kill variables containing newlines.
15103 # Ultrix sh set writes to stderr and can't be redirected directly,
15104 # and sets the high bit in the cache file unless we assign to the vars.
15105 (
15106 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15107 eval ac_val=\$$ac_var
15108 case $ac_val in #(
15109 *${as_nl}*)
15110 case $ac_var in #(
15111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15113 esac
15114 case $ac_var in #(
15115 _ | IFS | as_nl) ;; #(
15116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15117 *) { eval $ac_var=; unset $ac_var;} ;;
15118 esac ;;
15119 esac
15120 done
15121
15122 (set) 2>&1 |
15123 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15124 *${as_nl}ac_space=\ *)
15125 # `set' does not quote correctly, so add quotes: double-quote
15126 # substitution turns \\\\ into \\, and sed turns \\ into \.
15127 sed -n \
15128 "s/'/'\\\\''/g;
15129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15130 ;; #(
15131 *)
15132 # `set' quotes correctly as required by POSIX, so do not add quotes.
15133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15134 ;;
15135 esac |
15136 sort
15137 ) |
15138 sed '
15139 /^ac_cv_env_/b end
15140 t clear
15141 :clear
15142 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15143 t end
15144 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15145 :end' >>confcache
15146 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15147 if test -w "$cache_file"; then
15148 if test "x$cache_file" != "x/dev/null"; then
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15150 $as_echo "$as_me: updating cache $cache_file" >&6;}
15151 if test ! -f "$cache_file" || test -h "$cache_file"; then
15152 cat confcache >"$cache_file"
15153 else
15154 case $cache_file in #(
15155 */* | ?:*)
15156 mv -f confcache "$cache_file"$$ &&
15157 mv -f "$cache_file"$$ "$cache_file" ;; #(
15158 *)
15159 mv -f confcache "$cache_file" ;;
15160 esac
15161 fi
15162 fi
15163 else
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15165 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15166 fi
15167 fi
15168 rm -f confcache
15169
15170 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15171 # Let make expand exec_prefix.
15172 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15173
15174 DEFS=-DHAVE_CONFIG_H
15175
15176 ac_libobjs=
15177 ac_ltlibobjs=
15178 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15179 # 1. Remove the extension, and $U if already installed.
15180 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15181 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15182 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15183 # will be set to the directory where LIBOBJS objects are built.
15184 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15185 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15186 done
15187 LIBOBJS=$ac_libobjs
15188
15189 LTLIBOBJS=$ac_ltlibobjs
15190
15191
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15193 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15194 if test -n "$am_sleep_pid"; then
15195 # Hide warnings about reused PIDs.
15196 wait $am_sleep_pid 2>/dev/null
15197 fi
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15199 $as_echo "done" >&6; }
15200 if test -n "$EXEEXT"; then
15201 am__EXEEXT_TRUE=
15202 am__EXEEXT_FALSE='#'
15203 else
15204 am__EXEEXT_TRUE='#'
15205 am__EXEEXT_FALSE=
15206 fi
15207
15208 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15209 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15211 fi
15212 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15213 as_fn_error $? "conditional \"AMDEP\" was never defined.
15214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15215 fi
15216 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15217 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15219 fi
15220 if test -z "${PYTHONLIB_TRUE}" && test -z "${PYTHONLIB_FALSE}"; then
15221 as_fn_error $? "conditional \"PYTHONLIB\" was never defined.
15222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15223 fi
15224 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
15225 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
15226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15227 fi
15228 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
15229 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
15230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15231 fi
15232 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
15233 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
15234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15235 fi
15236 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
15237 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
15238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15239 fi
15240 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
15241 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
15242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15243 fi
15244 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
15245 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
15246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15247 fi
15248
15249 : "${CONFIG_STATUS=./config.status}"
15250 ac_write_fail=0
15251 ac_clean_files_save=$ac_clean_files
15252 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15254 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15255 as_write_fail=0
15256 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15257 #! $SHELL
15258 # Generated by $as_me.
15259 # Run this file to recreate the current configuration.
15260 # Compiler output produced by configure, useful for debugging
15261 # configure, is in config.log if it exists.
15262
15263 debug=false
15264 ac_cs_recheck=false
15265 ac_cs_silent=false
15266
15267 SHELL=\${CONFIG_SHELL-$SHELL}
15268 export SHELL
15269 _ASEOF
15270 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15271 ## -------------------- ##
15272 ## M4sh Initialization. ##
15273 ## -------------------- ##
15274
15275 # Be more Bourne compatible
15276 DUALCASE=1; export DUALCASE # for MKS sh
15277 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15278 emulate sh
15279 NULLCMD=:
15280 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15281 # is contrary to our usage. Disable this feature.
15282 alias -g '${1+"$@"}'='"$@"'
15283 setopt NO_GLOB_SUBST
15284 else
15285 case `(set -o) 2>/dev/null` in #(
15286 *posix*) :
15287 set -o posix ;; #(
15288 *) :
15289 ;;
15290 esac
15291 fi
15292
15293
15294 as_nl='
15295 '
15296 export as_nl
15297 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15298 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15299 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15300 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15301 # Prefer a ksh shell builtin over an external printf program on Solaris,
15302 # but without wasting forks for bash or zsh.
15303 if test -z "$BASH_VERSION$ZSH_VERSION" \
15304 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15305 as_echo='print -r --'
15306 as_echo_n='print -rn --'
15307 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15308 as_echo='printf %s\n'
15309 as_echo_n='printf %s'
15310 else
15311 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15312 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15313 as_echo_n='/usr/ucb/echo -n'
15314 else
15315 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15316 as_echo_n_body='eval
15317 arg=$1;
15318 case $arg in #(
15319 *"$as_nl"*)
15320 expr "X$arg" : "X\\(.*\\)$as_nl";
15321 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15322 esac;
15323 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15324 '
15325 export as_echo_n_body
15326 as_echo_n='sh -c $as_echo_n_body as_echo'
15327 fi
15328 export as_echo_body
15329 as_echo='sh -c $as_echo_body as_echo'
15330 fi
15331
15332 # The user is always right.
15333 if test "${PATH_SEPARATOR+set}" != set; then
15334 PATH_SEPARATOR=:
15335 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15336 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15337 PATH_SEPARATOR=';'
15338 }
15339 fi
15340
15341
15342 # IFS
15343 # We need space, tab and new line, in precisely that order. Quoting is
15344 # there to prevent editors from complaining about space-tab.
15345 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15346 # splitting by setting IFS to empty value.)
15347 IFS=" "" $as_nl"
15348
15349 # Find who we are. Look in the path if we contain no directory separator.
15350 as_myself=
15351 case $0 in #((
15352 *[\\/]* ) as_myself=$0 ;;
15353 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15354 for as_dir in $PATH
15355 do
15356 IFS=$as_save_IFS
15357 test -z "$as_dir" && as_dir=.
15358 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15359 done
15360 IFS=$as_save_IFS
15361
15362 ;;
15363 esac
15364 # We did not find ourselves, most probably we were run as `sh COMMAND'
15365 # in which case we are not to be found in the path.
15366 if test "x$as_myself" = x; then
15367 as_myself=$0
15368 fi
15369 if test ! -f "$as_myself"; then
15370 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15371 exit 1
15372 fi
15373
15374 # Unset variables that we do not need and which cause bugs (e.g. in
15375 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15376 # suppresses any "Segmentation fault" message there. '((' could
15377 # trigger a bug in pdksh 5.2.14.
15378 for as_var in BASH_ENV ENV MAIL MAILPATH
15379 do eval test x\${$as_var+set} = xset \
15380 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15381 done
15382 PS1='$ '
15383 PS2='> '
15384 PS4='+ '
15385
15386 # NLS nuisances.
15387 LC_ALL=C
15388 export LC_ALL
15389 LANGUAGE=C
15390 export LANGUAGE
15391
15392 # CDPATH.
15393 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15394
15395
15396 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15397 # ----------------------------------------
15398 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15399 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15400 # script with STATUS, using 1 if that was 0.
15401 as_fn_error ()
15402 {
15403 as_status=$1; test $as_status -eq 0 && as_status=1
15404 if test "$4"; then
15405 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15406 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15407 fi
15408 $as_echo "$as_me: error: $2" >&2
15409 as_fn_exit $as_status
15410 } # as_fn_error
15411
15412
15413 # as_fn_set_status STATUS
15414 # -----------------------
15415 # Set $? to STATUS, without forking.
15416 as_fn_set_status ()
15417 {
15418 return $1
15419 } # as_fn_set_status
15420
15421 # as_fn_exit STATUS
15422 # -----------------
15423 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15424 as_fn_exit ()
15425 {
15426 set +e
15427 as_fn_set_status $1
15428 exit $1
15429 } # as_fn_exit
15430
15431 # as_fn_unset VAR
15432 # ---------------
15433 # Portably unset VAR.
15434 as_fn_unset ()
15435 {
15436 { eval $1=; unset $1;}
15437 }
15438 as_unset=as_fn_unset
15439 # as_fn_append VAR VALUE
15440 # ----------------------
15441 # Append the text in VALUE to the end of the definition contained in VAR. Take
15442 # advantage of any shell optimizations that allow amortized linear growth over
15443 # repeated appends, instead of the typical quadratic growth present in naive
15444 # implementations.
15445 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15446 eval 'as_fn_append ()
15447 {
15448 eval $1+=\$2
15449 }'
15450 else
15451 as_fn_append ()
15452 {
15453 eval $1=\$$1\$2
15454 }
15455 fi # as_fn_append
15456
15457 # as_fn_arith ARG...
15458 # ------------------
15459 # Perform arithmetic evaluation on the ARGs, and store the result in the
15460 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15461 # must be portable across $(()) and expr.
15462 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15463 eval 'as_fn_arith ()
15464 {
15465 as_val=$(( $* ))
15466 }'
15467 else
15468 as_fn_arith ()
15469 {
15470 as_val=`expr "$@" || test $? -eq 1`
15471 }
15472 fi # as_fn_arith
15473
15474
15475 if expr a : '\(a\)' >/dev/null 2>&1 &&
15476 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15477 as_expr=expr
15478 else
15479 as_expr=false
15480 fi
15481
15482 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15483 as_basename=basename
15484 else
15485 as_basename=false
15486 fi
15487
15488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15489 as_dirname=dirname
15490 else
15491 as_dirname=false
15492 fi
15493
15494 as_me=`$as_basename -- "$0" ||
15495 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15496 X"$0" : 'X\(//\)$' \| \
15497 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15498 $as_echo X/"$0" |
15499 sed '/^.*\/\([^/][^/]*\)\/*$/{
15500 s//\1/
15501 q
15502 }
15503 /^X\/\(\/\/\)$/{
15504 s//\1/
15505 q
15506 }
15507 /^X\/\(\/\).*/{
15508 s//\1/
15509 q
15510 }
15511 s/.*/./; q'`
15512
15513 # Avoid depending upon Character Ranges.
15514 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15515 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15516 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15517 as_cr_digits='0123456789'
15518 as_cr_alnum=$as_cr_Letters$as_cr_digits
15519
15520 ECHO_C= ECHO_N= ECHO_T=
15521 case `echo -n x` in #(((((
15522 -n*)
15523 case `echo 'xy\c'` in
15524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15525 xy) ECHO_C='\c';;
15526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15527 ECHO_T=' ';;
15528 esac;;
15529 *)
15530 ECHO_N='-n';;
15531 esac
15532
15533 rm -f conf$$ conf$$.exe conf$$.file
15534 if test -d conf$$.dir; then
15535 rm -f conf$$.dir/conf$$.file
15536 else
15537 rm -f conf$$.dir
15538 mkdir conf$$.dir 2>/dev/null
15539 fi
15540 if (echo >conf$$.file) 2>/dev/null; then
15541 if ln -s conf$$.file conf$$ 2>/dev/null; then
15542 as_ln_s='ln -s'
15543 # ... but there are two gotchas:
15544 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15545 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15546 # In both cases, we have to default to `cp -pR'.
15547 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15548 as_ln_s='cp -pR'
15549 elif ln conf$$.file conf$$ 2>/dev/null; then
15550 as_ln_s=ln
15551 else
15552 as_ln_s='cp -pR'
15553 fi
15554 else
15555 as_ln_s='cp -pR'
15556 fi
15557 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15558 rmdir conf$$.dir 2>/dev/null
15559
15560
15561 # as_fn_mkdir_p
15562 # -------------
15563 # Create "$as_dir" as a directory, including parents if necessary.
15564 as_fn_mkdir_p ()
15565 {
15566
15567 case $as_dir in #(
15568 -*) as_dir=./$as_dir;;
15569 esac
15570 test -d "$as_dir" || eval $as_mkdir_p || {
15571 as_dirs=
15572 while :; do
15573 case $as_dir in #(
15574 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15575 *) as_qdir=$as_dir;;
15576 esac
15577 as_dirs="'$as_qdir' $as_dirs"
15578 as_dir=`$as_dirname -- "$as_dir" ||
15579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15580 X"$as_dir" : 'X\(//\)[^/]' \| \
15581 X"$as_dir" : 'X\(//\)$' \| \
15582 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15583 $as_echo X"$as_dir" |
15584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15585 s//\1/
15586 q
15587 }
15588 /^X\(\/\/\)[^/].*/{
15589 s//\1/
15590 q
15591 }
15592 /^X\(\/\/\)$/{
15593 s//\1/
15594 q
15595 }
15596 /^X\(\/\).*/{
15597 s//\1/
15598 q
15599 }
15600 s/.*/./; q'`
15601 test -d "$as_dir" && break
15602 done
15603 test -z "$as_dirs" || eval "mkdir $as_dirs"
15604 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15605
15606
15607 } # as_fn_mkdir_p
15608 if mkdir -p . 2>/dev/null; then
15609 as_mkdir_p='mkdir -p "$as_dir"'
15610 else
15611 test -d ./-p && rmdir ./-p
15612 as_mkdir_p=false
15613 fi
15614
15615
15616 # as_fn_executable_p FILE
15617 # -----------------------
15618 # Test if FILE is an executable regular file.
15619 as_fn_executable_p ()
15620 {
15621 test -f "$1" && test -x "$1"
15622 } # as_fn_executable_p
15623 as_test_x='test -x'
15624 as_executable_p=as_fn_executable_p
15625
15626 # Sed expression to map a string onto a valid CPP name.
15627 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15628
15629 # Sed expression to map a string onto a valid variable name.
15630 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15631
15632
15633 exec 6>&1
15634 ## ----------------------------------- ##
15635 ## Main body of $CONFIG_STATUS script. ##
15636 ## ----------------------------------- ##
15637 _ASEOF
15638 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15639
15640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15641 # Save the log message, to keep $0 and so on meaningful, and to
15642 # report actual input values of CONFIG_FILES etc. instead of their
15643 # values after options handling.
15644 ac_log="
15645 This file was extended by libiptcdata $as_me 1.0.5, which was
15646 generated by GNU Autoconf 2.69. Invocation command line was
15647
15648 CONFIG_FILES = $CONFIG_FILES
15649 CONFIG_HEADERS = $CONFIG_HEADERS
15650 CONFIG_LINKS = $CONFIG_LINKS
15651 CONFIG_COMMANDS = $CONFIG_COMMANDS
15652 $ $0 $@
15653
15654 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15655 "
15656
15657 _ACEOF
15658
15659 case $ac_config_files in *"
15660 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15661 esac
15662
15663 case $ac_config_headers in *"
15664 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15665 esac
15666
15667
15668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15669 # Files that config.status was made for.
15670 config_files="$ac_config_files"
15671 config_headers="$ac_config_headers"
15672 config_commands="$ac_config_commands"
15673
15674 _ACEOF
15675
15676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15677 ac_cs_usage="\
15678 \`$as_me' instantiates files and other configuration actions
15679 from templates according to the current configuration. Unless the files
15680 and actions are specified as TAGs, all are instantiated by default.
15681
15682 Usage: $0 [OPTION]... [TAG]...
15683
15684 -h, --help print this help, then exit
15685 -V, --version print version number and configuration settings, then exit
15686 --config print configuration, then exit
15687 -q, --quiet, --silent
15688 do not print progress messages
15689 -d, --debug don't remove temporary files
15690 --recheck update $as_me by reconfiguring in the same conditions
15691 --file=FILE[:TEMPLATE]
15692 instantiate the configuration file FILE
15693 --header=FILE[:TEMPLATE]
15694 instantiate the configuration header FILE
15695
15696 Configuration files:
15697 $config_files
15698
15699 Configuration headers:
15700 $config_headers
15701
15702 Configuration commands:
15703 $config_commands
15704
15705 Report bugs to the package provider."
15706
15707 _ACEOF
15708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15709 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15710 ac_cs_version="\\
15711 libiptcdata config.status 1.0.5
15712 configured by $0, generated by GNU Autoconf 2.69,
15713 with options \\"\$ac_cs_config\\"
15714
15715 Copyright (C) 2012 Free Software Foundation, Inc.
15716 This config.status script is free software; the Free Software Foundation
15717 gives unlimited permission to copy, distribute and modify it."
15718
15719 ac_pwd='$ac_pwd'
15720 srcdir='$srcdir'
15721 INSTALL='$INSTALL'
15722 MKDIR_P='$MKDIR_P'
15723 AWK='$AWK'
15724 test -n "\$AWK" || AWK=awk
15725 _ACEOF
15726
15727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15728 # The default lists apply if the user does not specify any file.
15729 ac_need_defaults=:
15730 while test $# != 0
15731 do
15732 case $1 in
15733 --*=?*)
15734 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15735 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15736 ac_shift=:
15737 ;;
15738 --*=)
15739 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15740 ac_optarg=
15741 ac_shift=:
15742 ;;
15743 *)
15744 ac_option=$1
15745 ac_optarg=$2
15746 ac_shift=shift
15747 ;;
15748 esac
15749
15750 case $ac_option in
15751 # Handling of the options.
15752 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15753 ac_cs_recheck=: ;;
15754 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15755 $as_echo "$ac_cs_version"; exit ;;
15756 --config | --confi | --conf | --con | --co | --c )
15757 $as_echo "$ac_cs_config"; exit ;;
15758 --debug | --debu | --deb | --de | --d | -d )
15759 debug=: ;;
15760 --file | --fil | --fi | --f )
15761 $ac_shift
15762 case $ac_optarg in
15763 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15764 '') as_fn_error $? "missing file argument" ;;
15765 esac
15766 as_fn_append CONFIG_FILES " '$ac_optarg'"
15767 ac_need_defaults=false;;
15768 --header | --heade | --head | --hea )
15769 $ac_shift
15770 case $ac_optarg in
15771 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15772 esac
15773 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15774 ac_need_defaults=false;;
15775 --he | --h)
15776 # Conflict between --help and --header
15777 as_fn_error $? "ambiguous option: \`$1'
15778 Try \`$0 --help' for more information.";;
15779 --help | --hel | -h )
15780 $as_echo "$ac_cs_usage"; exit ;;
15781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15782 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15783 ac_cs_silent=: ;;
15784
15785 # This is an error.
15786 -*) as_fn_error $? "unrecognized option: \`$1'
15787 Try \`$0 --help' for more information." ;;
15788
15789 *) as_fn_append ac_config_targets " $1"
15790 ac_need_defaults=false ;;
15791
15792 esac
15793 shift
15794 done
15795
15796 ac_configure_extra_args=
15797
15798 if $ac_cs_silent; then
15799 exec 6>/dev/null
15800 ac_configure_extra_args="$ac_configure_extra_args --silent"
15801 fi
15802
15803 _ACEOF
15804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15805 if \$ac_cs_recheck; then
15806 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15807 shift
15808 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15809 CONFIG_SHELL='$SHELL'
15810 export CONFIG_SHELL
15811 exec "\$@"
15812 fi
15813
15814 _ACEOF
15815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15816 exec 5>>config.log
15817 {
15818 echo
15819 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15820 ## Running $as_me. ##
15821 _ASBOX
15822 $as_echo "$ac_log"
15823 } >&5
15824
15825 _ACEOF
15826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15827 #
15828 # INIT-COMMANDS
15829 #
15830 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15831
15832
15833 # The HP-UX ksh and POSIX shell print the target directory to stdout
15834 # if CDPATH is set.
15835 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15836
15837 sed_quote_subst='$sed_quote_subst'
15838 double_quote_subst='$double_quote_subst'
15839 delay_variable_subst='$delay_variable_subst'
15840 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15841 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15842 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15843 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15844 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15845 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15846 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15847 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15848 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15849 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15850 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15851 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15852 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15853 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15854 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15855 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15856 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15857 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15858 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15859 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15860 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15861 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15862 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15863 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15864 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15865 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15866 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15867 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15868 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15869 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15870 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15871 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15872 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15873 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15874 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15875 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15876 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15877 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15878 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15879 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15880 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15881 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15882 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15883 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15884 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15885 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15886 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15887 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15888 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15889 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15890 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15891 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15892 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15893 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15894 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15895 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15896 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15897 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15898 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"`'
15899 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15900 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15901 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15902 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15903 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15904 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15905 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15906 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15907 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15908 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15909 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15910 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15911 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15912 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15913 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15914 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15915 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15916 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15917 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15918 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15919 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15920 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15921 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15922 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15923 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15924 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15925 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15926 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15927 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15928 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15929 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15930 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15931 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15932 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15933 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15934 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15935 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15936 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15937 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15938 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15939 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15940 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15941 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15942 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15943 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15944 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15945 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15946 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15947 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15948 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15949 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15950 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15951 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15952 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15953 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15954 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15955 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15956 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15957 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15958 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15959 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15960 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15961 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15962 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15963 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15964 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15965 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15966 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15967 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15968 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15969 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15970 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15971 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15972 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15973 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15974 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15975
15976 LTCC='$LTCC'
15977 LTCFLAGS='$LTCFLAGS'
15978 compiler='$compiler_DEFAULT'
15979
15980 # A function that is used when there is no print builtin or printf.
15981 func_fallback_echo ()
15982 {
15983 eval 'cat <<_LTECHO_EOF
15984 \$1
15985 _LTECHO_EOF'
15986 }
15987
15988 # Quote evaled strings.
15989 for var in SHELL \
15990 ECHO \
15991 PATH_SEPARATOR \
15992 SED \
15993 GREP \
15994 EGREP \
15995 FGREP \
15996 LD \
15997 NM \
15998 LN_S \
15999 lt_SP2NL \
16000 lt_NL2SP \
16001 reload_flag \
16002 OBJDUMP \
16003 deplibs_check_method \
16004 file_magic_cmd \
16005 file_magic_glob \
16006 want_nocaseglob \
16007 DLLTOOL \
16008 sharedlib_from_linklib_cmd \
16009 AR \
16010 AR_FLAGS \
16011 archiver_list_spec \
16012 STRIP \
16013 RANLIB \
16014 CC \
16015 CFLAGS \
16016 compiler \
16017 lt_cv_sys_global_symbol_pipe \
16018 lt_cv_sys_global_symbol_to_cdecl \
16019 lt_cv_sys_global_symbol_to_import \
16020 lt_cv_sys_global_symbol_to_c_name_address \
16021 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16022 lt_cv_nm_interface \
16023 nm_file_list_spec \
16024 lt_cv_truncate_bin \
16025 lt_prog_compiler_no_builtin_flag \
16026 lt_prog_compiler_pic \
16027 lt_prog_compiler_wl \
16028 lt_prog_compiler_static \
16029 lt_cv_prog_compiler_c_o \
16030 need_locks \
16031 MANIFEST_TOOL \
16032 DSYMUTIL \
16033 NMEDIT \
16034 LIPO \
16035 OTOOL \
16036 OTOOL64 \
16037 shrext_cmds \
16038 export_dynamic_flag_spec \
16039 whole_archive_flag_spec \
16040 compiler_needs_object \
16041 with_gnu_ld \
16042 allow_undefined_flag \
16043 no_undefined_flag \
16044 hardcode_libdir_flag_spec \
16045 hardcode_libdir_separator \
16046 exclude_expsyms \
16047 include_expsyms \
16048 file_list_spec \
16049 variables_saved_for_relink \
16050 libname_spec \
16051 library_names_spec \
16052 soname_spec \
16053 install_override_mode \
16054 finish_eval \
16055 old_striplib \
16056 striplib; do
16057 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16058 *[\\\\\\\`\\"\\\$]*)
16059 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16060 ;;
16061 *)
16062 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16063 ;;
16064 esac
16065 done
16066
16067 # Double-quote double-evaled strings.
16068 for var in reload_cmds \
16069 old_postinstall_cmds \
16070 old_postuninstall_cmds \
16071 old_archive_cmds \
16072 extract_expsyms_cmds \
16073 old_archive_from_new_cmds \
16074 old_archive_from_expsyms_cmds \
16075 archive_cmds \
16076 archive_expsym_cmds \
16077 module_cmds \
16078 module_expsym_cmds \
16079 export_symbols_cmds \
16080 prelink_cmds \
16081 postlink_cmds \
16082 postinstall_cmds \
16083 postuninstall_cmds \
16084 finish_cmds \
16085 sys_lib_search_path_spec \
16086 configure_time_dlsearch_path \
16087 configure_time_lt_sys_library_path; do
16088 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16089 *[\\\\\\\`\\"\\\$]*)
16090 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16091 ;;
16092 *)
16093 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16094 ;;
16095 esac
16096 done
16097
16098 ac_aux_dir='$ac_aux_dir'
16099
16100 # See if we are running on zsh, and set the options that allow our
16101 # commands through without removal of \ escapes INIT.
16102 if test -n "\${ZSH_VERSION+set}"; then
16103 setopt NO_GLOB_SUBST
16104 fi
16105
16106
16107 PACKAGE='$PACKAGE'
16108 VERSION='$VERSION'
16109 RM='$RM'
16110 ofile='$ofile'
16111
16112
16113
16114 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16115 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16116 # from automake.
16117 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16118 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16119 LINGUAS="${LINGUAS-%UNSET%}"
16120
16121
16122 _ACEOF
16123
16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125
16126 # Handling of arguments.
16127 for ac_config_target in $ac_config_targets
16128 do
16129 case $ac_config_target in
16130 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16131 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16132 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16133 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16134 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16135 "libiptcdata.spec") CONFIG_FILES="$CONFIG_FILES libiptcdata.spec" ;;
16136 "libiptcdata/Makefile") CONFIG_FILES="$CONFIG_FILES libiptcdata/Makefile" ;;
16137 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16138 "libiptcdata/libiptcdata.pc") CONFIG_FILES="$CONFIG_FILES libiptcdata/libiptcdata.pc" ;;
16139 "iptc/Makefile") CONFIG_FILES="$CONFIG_FILES iptc/Makefile" ;;
16140 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16141 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
16142 "docs/reference/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/version.xml" ;;
16143 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16144 "iptc/po/Makefile.in") CONFIG_FILES="$CONFIG_FILES iptc/po/Makefile.in" ;;
16145 "win/Makefile") CONFIG_FILES="$CONFIG_FILES win/Makefile" ;;
16146 "win/iptctool/Makefile") CONFIG_FILES="$CONFIG_FILES win/iptctool/Makefile" ;;
16147 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16148
16149 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16150 esac
16151 done
16152
16153
16154 # If the user did not use the arguments to specify the items to instantiate,
16155 # then the envvar interface is used. Set only those that are not.
16156 # We use the long form for the default assignment because of an extremely
16157 # bizarre bug on SunOS 4.1.3.
16158 if $ac_need_defaults; then
16159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16161 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16162 fi
16163
16164 # Have a temporary directory for convenience. Make it in the build tree
16165 # simply because there is no reason against having it here, and in addition,
16166 # creating and moving files from /tmp can sometimes cause problems.
16167 # Hook for its removal unless debugging.
16168 # Note that there is a small window in which the directory will not be cleaned:
16169 # after its creation but before its name has been assigned to `$tmp'.
16170 $debug ||
16171 {
16172 tmp= ac_tmp=
16173 trap 'exit_status=$?
16174 : "${ac_tmp:=$tmp}"
16175 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16176 ' 0
16177 trap 'as_fn_exit 1' 1 2 13 15
16178 }
16179 # Create a (secure) tmp directory for tmp files.
16180
16181 {
16182 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16183 test -d "$tmp"
16184 } ||
16185 {
16186 tmp=./conf$$-$RANDOM
16187 (umask 077 && mkdir "$tmp")
16188 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16189 ac_tmp=$tmp
16190
16191 # Set up the scripts for CONFIG_FILES section.
16192 # No need to generate them if there are no CONFIG_FILES.
16193 # This happens for instance with `./config.status config.h'.
16194 if test -n "$CONFIG_FILES"; then
16195
16196
16197 ac_cr=`echo X | tr X '\015'`
16198 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16199 # But we know of no other shell where ac_cr would be empty at this
16200 # point, so we can use a bashism as a fallback.
16201 if test "x$ac_cr" = x; then
16202 eval ac_cr=\$\'\\r\'
16203 fi
16204 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16205 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16206 ac_cs_awk_cr='\\r'
16207 else
16208 ac_cs_awk_cr=$ac_cr
16209 fi
16210
16211 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16212 _ACEOF
16213
16214
16215 {
16216 echo "cat >conf$$subs.awk <<_ACEOF" &&
16217 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16218 echo "_ACEOF"
16219 } >conf$$subs.sh ||
16220 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16221 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16222 ac_delim='%!_!# '
16223 for ac_last_try in false false false false false :; do
16224 . ./conf$$subs.sh ||
16225 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16226
16227 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16228 if test $ac_delim_n = $ac_delim_num; then
16229 break
16230 elif $ac_last_try; then
16231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16232 else
16233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16234 fi
16235 done
16236 rm -f conf$$subs.sh
16237
16238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16239 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16240 _ACEOF
16241 sed -n '
16242 h
16243 s/^/S["/; s/!.*/"]=/
16244 p
16245 g
16246 s/^[^!]*!//
16247 :repl
16248 t repl
16249 s/'"$ac_delim"'$//
16250 t delim
16251 :nl
16252 h
16253 s/\(.\{148\}\)..*/\1/
16254 t more1
16255 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16256 p
16257 n
16258 b repl
16259 :more1
16260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16261 p
16262 g
16263 s/.\{148\}//
16264 t nl
16265 :delim
16266 h
16267 s/\(.\{148\}\)..*/\1/
16268 t more2
16269 s/["\\]/\\&/g; s/^/"/; s/$/"/
16270 p
16271 b
16272 :more2
16273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16274 p
16275 g
16276 s/.\{148\}//
16277 t delim
16278 ' <conf$$subs.awk | sed '
16279 /^[^""]/{
16280 N
16281 s/\n//
16282 }
16283 ' >>$CONFIG_STATUS || ac_write_fail=1
16284 rm -f conf$$subs.awk
16285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16286 _ACAWK
16287 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16288 for (key in S) S_is_set[key] = 1
16289 FS = ""
16290
16291 }
16292 {
16293 line = $ 0
16294 nfields = split(line, field, "@")
16295 substed = 0
16296 len = length(field[1])
16297 for (i = 2; i < nfields; i++) {
16298 key = field[i]
16299 keylen = length(key)
16300 if (S_is_set[key]) {
16301 value = S[key]
16302 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16303 len += length(value) + length(field[++i])
16304 substed = 1
16305 } else
16306 len += 1 + keylen
16307 }
16308
16309 print line
16310 }
16311
16312 _ACAWK
16313 _ACEOF
16314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16315 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16316 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16317 else
16318 cat
16319 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16320 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16321 _ACEOF
16322
16323 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16324 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16325 # trailing colons and then remove the whole line if VPATH becomes empty
16326 # (actually we leave an empty line to preserve line numbers).
16327 if test "x$srcdir" = x.; then
16328 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16329 h
16330 s///
16331 s/^/:/
16332 s/[ ]*$/:/
16333 s/:\$(srcdir):/:/g
16334 s/:\${srcdir}:/:/g
16335 s/:@srcdir@:/:/g
16336 s/^:*//
16337 s/:*$//
16338 x
16339 s/\(=[ ]*\).*/\1/
16340 G
16341 s/\n//
16342 s/^[^=]*=[ ]*$//
16343 }'
16344 fi
16345
16346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16347 fi # test -n "$CONFIG_FILES"
16348
16349 # Set up the scripts for CONFIG_HEADERS section.
16350 # No need to generate them if there are no CONFIG_HEADERS.
16351 # This happens for instance with `./config.status Makefile'.
16352 if test -n "$CONFIG_HEADERS"; then
16353 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16354 BEGIN {
16355 _ACEOF
16356
16357 # Transform confdefs.h into an awk script `defines.awk', embedded as
16358 # here-document in config.status, that substitutes the proper values into
16359 # config.h.in to produce config.h.
16360
16361 # Create a delimiter string that does not exist in confdefs.h, to ease
16362 # handling of long lines.
16363 ac_delim='%!_!# '
16364 for ac_last_try in false false :; do
16365 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16366 if test -z "$ac_tt"; then
16367 break
16368 elif $ac_last_try; then
16369 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16370 else
16371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16372 fi
16373 done
16374
16375 # For the awk script, D is an array of macro values keyed by name,
16376 # likewise P contains macro parameters if any. Preserve backslash
16377 # newline sequences.
16378
16379 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16380 sed -n '
16381 s/.\{148\}/&'"$ac_delim"'/g
16382 t rset
16383 :rset
16384 s/^[ ]*#[ ]*define[ ][ ]*/ /
16385 t def
16386 d
16387 :def
16388 s/\\$//
16389 t bsnl
16390 s/["\\]/\\&/g
16391 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16392 D["\1"]=" \3"/p
16393 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16394 d
16395 :bsnl
16396 s/["\\]/\\&/g
16397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16398 D["\1"]=" \3\\\\\\n"\\/p
16399 t cont
16400 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16401 t cont
16402 d
16403 :cont
16404 n
16405 s/.\{148\}/&'"$ac_delim"'/g
16406 t clear
16407 :clear
16408 s/\\$//
16409 t bsnlc
16410 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16411 d
16412 :bsnlc
16413 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16414 b cont
16415 ' <confdefs.h | sed '
16416 s/'"$ac_delim"'/"\\\
16417 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16418
16419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16420 for (key in D) D_is_set[key] = 1
16421 FS = ""
16422 }
16423 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16424 line = \$ 0
16425 split(line, arg, " ")
16426 if (arg[1] == "#") {
16427 defundef = arg[2]
16428 mac1 = arg[3]
16429 } else {
16430 defundef = substr(arg[1], 2)
16431 mac1 = arg[2]
16432 }
16433 split(mac1, mac2, "(") #)
16434 macro = mac2[1]
16435 prefix = substr(line, 1, index(line, defundef) - 1)
16436 if (D_is_set[macro]) {
16437 # Preserve the white space surrounding the "#".
16438 print prefix "define", macro P[macro] D[macro]
16439 next
16440 } else {
16441 # Replace #undef with comments. This is necessary, for example,
16442 # in the case of _POSIX_SOURCE, which is predefined and required
16443 # on some systems where configure will not decide to define it.
16444 if (defundef == "undef") {
16445 print "/*", prefix defundef, macro, "*/"
16446 next
16447 }
16448 }
16449 }
16450 { print }
16451 _ACAWK
16452 _ACEOF
16453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16454 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16455 fi # test -n "$CONFIG_HEADERS"
16456
16457
16458 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16459 shift
16460 for ac_tag
16461 do
16462 case $ac_tag in
16463 :[FHLC]) ac_mode=$ac_tag; continue;;
16464 esac
16465 case $ac_mode$ac_tag in
16466 :[FHL]*:*);;
16467 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16468 :[FH]-) ac_tag=-:-;;
16469 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16470 esac
16471 ac_save_IFS=$IFS
16472 IFS=:
16473 set x $ac_tag
16474 IFS=$ac_save_IFS
16475 shift
16476 ac_file=$1
16477 shift
16478
16479 case $ac_mode in
16480 :L) ac_source=$1;;
16481 :[FH])
16482 ac_file_inputs=
16483 for ac_f
16484 do
16485 case $ac_f in
16486 -) ac_f="$ac_tmp/stdin";;
16487 *) # Look for the file first in the build tree, then in the source tree
16488 # (if the path is not absolute). The absolute path cannot be DOS-style,
16489 # because $ac_f cannot contain `:'.
16490 test -f "$ac_f" ||
16491 case $ac_f in
16492 [\\/$]*) false;;
16493 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16494 esac ||
16495 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16496 esac
16497 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16498 as_fn_append ac_file_inputs " '$ac_f'"
16499 done
16500
16501 # Let's still pretend it is `configure' which instantiates (i.e., don't
16502 # use $as_me), people would be surprised to read:
16503 # /* config.h. Generated by config.status. */
16504 configure_input='Generated from '`
16505 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16506 `' by configure.'
16507 if test x"$ac_file" != x-; then
16508 configure_input="$ac_file. $configure_input"
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16510 $as_echo "$as_me: creating $ac_file" >&6;}
16511 fi
16512 # Neutralize special characters interpreted by sed in replacement strings.
16513 case $configure_input in #(
16514 *\&* | *\|* | *\\* )
16515 ac_sed_conf_input=`$as_echo "$configure_input" |
16516 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16517 *) ac_sed_conf_input=$configure_input;;
16518 esac
16519
16520 case $ac_tag in
16521 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16523 esac
16524 ;;
16525 esac
16526
16527 ac_dir=`$as_dirname -- "$ac_file" ||
16528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16529 X"$ac_file" : 'X\(//\)[^/]' \| \
16530 X"$ac_file" : 'X\(//\)$' \| \
16531 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16532 $as_echo X"$ac_file" |
16533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16534 s//\1/
16535 q
16536 }
16537 /^X\(\/\/\)[^/].*/{
16538 s//\1/
16539 q
16540 }
16541 /^X\(\/\/\)$/{
16542 s//\1/
16543 q
16544 }
16545 /^X\(\/\).*/{
16546 s//\1/
16547 q
16548 }
16549 s/.*/./; q'`
16550 as_dir="$ac_dir"; as_fn_mkdir_p
16551 ac_builddir=.
16552
16553 case "$ac_dir" in
16554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16555 *)
16556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16557 # A ".." for each directory in $ac_dir_suffix.
16558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16559 case $ac_top_builddir_sub in
16560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16562 esac ;;
16563 esac
16564 ac_abs_top_builddir=$ac_pwd
16565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16566 # for backward compatibility:
16567 ac_top_builddir=$ac_top_build_prefix
16568
16569 case $srcdir in
16570 .) # We are building in place.
16571 ac_srcdir=.
16572 ac_top_srcdir=$ac_top_builddir_sub
16573 ac_abs_top_srcdir=$ac_pwd ;;
16574 [\\/]* | ?:[\\/]* ) # Absolute name.
16575 ac_srcdir=$srcdir$ac_dir_suffix;
16576 ac_top_srcdir=$srcdir
16577 ac_abs_top_srcdir=$srcdir ;;
16578 *) # Relative name.
16579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16580 ac_top_srcdir=$ac_top_build_prefix$srcdir
16581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16582 esac
16583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16584
16585
16586 case $ac_mode in
16587 :F)
16588 #
16589 # CONFIG_FILE
16590 #
16591
16592 case $INSTALL in
16593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16594 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16595 esac
16596 ac_MKDIR_P=$MKDIR_P
16597 case $MKDIR_P in
16598 [\\/$]* | ?:[\\/]* ) ;;
16599 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16600 esac
16601 _ACEOF
16602
16603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16604 # If the template does not know about datarootdir, expand it.
16605 # FIXME: This hack should be removed a few years after 2.60.
16606 ac_datarootdir_hack=; ac_datarootdir_seen=
16607 ac_sed_dataroot='
16608 /datarootdir/ {
16609 p
16610 q
16611 }
16612 /@datadir@/p
16613 /@docdir@/p
16614 /@infodir@/p
16615 /@localedir@/p
16616 /@mandir@/p'
16617 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16618 *datarootdir*) ac_datarootdir_seen=yes;;
16619 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16621 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16622 _ACEOF
16623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16624 ac_datarootdir_hack='
16625 s&@datadir@&$datadir&g
16626 s&@docdir@&$docdir&g
16627 s&@infodir@&$infodir&g
16628 s&@localedir@&$localedir&g
16629 s&@mandir@&$mandir&g
16630 s&\\\${datarootdir}&$datarootdir&g' ;;
16631 esac
16632 _ACEOF
16633
16634 # Neutralize VPATH when `$srcdir' = `.'.
16635 # Shell code in configure.ac might set extrasub.
16636 # FIXME: do we really want to maintain this feature?
16637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16638 ac_sed_extra="$ac_vpsub
16639 $extrasub
16640 _ACEOF
16641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16642 :t
16643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16644 s|@configure_input@|$ac_sed_conf_input|;t t
16645 s&@top_builddir@&$ac_top_builddir_sub&;t t
16646 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16647 s&@srcdir@&$ac_srcdir&;t t
16648 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16649 s&@top_srcdir@&$ac_top_srcdir&;t t
16650 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16651 s&@builddir@&$ac_builddir&;t t
16652 s&@abs_builddir@&$ac_abs_builddir&;t t
16653 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16654 s&@INSTALL@&$ac_INSTALL&;t t
16655 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16656 $ac_datarootdir_hack
16657 "
16658 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16659 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16660
16661 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16662 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16663 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16664 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16666 which seems to be undefined. Please make sure it is defined" >&5
16667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16668 which seems to be undefined. Please make sure it is defined" >&2;}
16669
16670 rm -f "$ac_tmp/stdin"
16671 case $ac_file in
16672 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16673 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16674 esac \
16675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16676 ;;
16677 :H)
16678 #
16679 # CONFIG_HEADER
16680 #
16681 if test x"$ac_file" != x-; then
16682 {
16683 $as_echo "/* $configure_input */" \
16684 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16685 } >"$ac_tmp/config.h" \
16686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16687 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16689 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16690 else
16691 rm -f "$ac_file"
16692 mv "$ac_tmp/config.h" "$ac_file" \
16693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16694 fi
16695 else
16696 $as_echo "/* $configure_input */" \
16697 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16698 || as_fn_error $? "could not create -" "$LINENO" 5
16699 fi
16700 # Compute "$ac_file"'s index in $config_headers.
16701 _am_arg="$ac_file"
16702 _am_stamp_count=1
16703 for _am_header in $config_headers :; do
16704 case $_am_header in
16705 $_am_arg | $_am_arg:* )
16706 break ;;
16707 * )
16708 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16709 esac
16710 done
16711 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16712 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16713 X"$_am_arg" : 'X\(//\)[^/]' \| \
16714 X"$_am_arg" : 'X\(//\)$' \| \
16715 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16716 $as_echo X"$_am_arg" |
16717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16718 s//\1/
16719 q
16720 }
16721 /^X\(\/\/\)[^/].*/{
16722 s//\1/
16723 q
16724 }
16725 /^X\(\/\/\)$/{
16726 s//\1/
16727 q
16728 }
16729 /^X\(\/\).*/{
16730 s//\1/
16731 q
16732 }
16733 s/.*/./; q'`/stamp-h$_am_stamp_count
16734 ;;
16735
16736 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16737 $as_echo "$as_me: executing $ac_file commands" >&6;}
16738 ;;
16739 esac
16740
16741
16742 case $ac_file$ac_mode in
16743 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16744 # Older Autoconf quotes --file arguments for eval, but not when files
16745 # are listed without --file. Let's play safe and only enable the eval
16746 # if we detect the quoting.
16747 # TODO: see whether this extra hack can be removed once we start
16748 # requiring Autoconf 2.70 or later.
16749 case $CONFIG_FILES in #(
16750 *\'*) :
16751 eval set x "$CONFIG_FILES" ;; #(
16752 *) :
16753 set x $CONFIG_FILES ;; #(
16754 *) :
16755 ;;
16756 esac
16757 shift
16758 # Used to flag and report bootstrapping failures.
16759 am_rc=0
16760 for am_mf
16761 do
16762 # Strip MF so we end up with the name of the file.
16763 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16764 # Check whether this is an Automake generated Makefile which includes
16765 # dependency-tracking related rules and includes.
16766 # Grep'ing the whole file directly is not great: AIX grep has a line
16767 # limit of 2048, but all sed's we know have understand at least 4000.
16768 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16769 || continue
16770 am_dirpart=`$as_dirname -- "$am_mf" ||
16771 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16772 X"$am_mf" : 'X\(//\)[^/]' \| \
16773 X"$am_mf" : 'X\(//\)$' \| \
16774 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16775 $as_echo X"$am_mf" |
16776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16777 s//\1/
16778 q
16779 }
16780 /^X\(\/\/\)[^/].*/{
16781 s//\1/
16782 q
16783 }
16784 /^X\(\/\/\)$/{
16785 s//\1/
16786 q
16787 }
16788 /^X\(\/\).*/{
16789 s//\1/
16790 q
16791 }
16792 s/.*/./; q'`
16793 am_filepart=`$as_basename -- "$am_mf" ||
16794 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16795 X"$am_mf" : 'X\(//\)$' \| \
16796 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16797 $as_echo X/"$am_mf" |
16798 sed '/^.*\/\([^/][^/]*\)\/*$/{
16799 s//\1/
16800 q
16801 }
16802 /^X\/\(\/\/\)$/{
16803 s//\1/
16804 q
16805 }
16806 /^X\/\(\/\).*/{
16807 s//\1/
16808 q
16809 }
16810 s/.*/./; q'`
16811 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16812 && sed -e '/# am--include-marker/d' "$am_filepart" \
16813 | $MAKE -f - am--depfiles" >&5
16814 (cd "$am_dirpart" \
16815 && sed -e '/# am--include-marker/d' "$am_filepart" \
16816 | $MAKE -f - am--depfiles) >&5 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } || am_rc=$?
16820 done
16821 if test $am_rc -ne 0; then
16822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16824 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16825 for automatic dependency tracking. Try re-running configure with the
16826 '--disable-dependency-tracking' option to at least be able to build
16827 the package (albeit without support for automatic dependency tracking).
16828 See \`config.log' for more details" "$LINENO" 5; }
16829 fi
16830 { am_dirpart=; unset am_dirpart;}
16831 { am_filepart=; unset am_filepart;}
16832 { am_mf=; unset am_mf;}
16833 { am_rc=; unset am_rc;}
16834 rm -f conftest-deps.mk
16835 }
16836 ;;
16837 "libtool":C)
16838
16839 # See if we are running on zsh, and set the options that allow our
16840 # commands through without removal of \ escapes.
16841 if test -n "${ZSH_VERSION+set}"; then
16842 setopt NO_GLOB_SUBST
16843 fi
16844
16845 cfgfile=${ofile}T
16846 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16847 $RM "$cfgfile"
16848
16849 cat <<_LT_EOF >> "$cfgfile"
16850 #! $SHELL
16851 # Generated automatically by $as_me ($PACKAGE) $VERSION
16852 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16853
16854 # Provide generalized library-building support services.
16855 # Written by Gordon Matzigkeit, 1996
16856
16857 # Copyright (C) 2014 Free Software Foundation, Inc.
16858 # This is free software; see the source for copying conditions. There is NO
16859 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16860
16861 # GNU Libtool is free software; you can redistribute it and/or modify
16862 # it under the terms of the GNU General Public License as published by
16863 # the Free Software Foundation; either version 2 of of the License, or
16864 # (at your option) any later version.
16865 #
16866 # As a special exception to the GNU General Public License, if you
16867 # distribute this file as part of a program or library that is built
16868 # using GNU Libtool, you may include this file under the same
16869 # distribution terms that you use for the rest of that program.
16870 #
16871 # GNU Libtool is distributed in the hope that it will be useful, but
16872 # WITHOUT ANY WARRANTY; without even the implied warranty of
16873 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16874 # GNU General Public License for more details.
16875 #
16876 # You should have received a copy of the GNU General Public License
16877 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16878
16879
16880 # The names of the tagged configurations supported by this script.
16881 available_tags=''
16882
16883 # Configured defaults for sys_lib_dlsearch_path munging.
16884 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16885
16886 # ### BEGIN LIBTOOL CONFIG
16887
16888 # Whether or not to build static libraries.
16889 build_old_libs=$enable_static
16890
16891 # Which release of libtool.m4 was used?
16892 macro_version=$macro_version
16893 macro_revision=$macro_revision
16894
16895 # Whether or not to build shared libraries.
16896 build_libtool_libs=$enable_shared
16897
16898 # What type of objects to build.
16899 pic_mode=$pic_mode
16900
16901 # Whether or not to optimize for fast installation.
16902 fast_install=$enable_fast_install
16903
16904 # Shared archive member basename,for filename based shared library versioning on AIX.
16905 shared_archive_member_spec=$shared_archive_member_spec
16906
16907 # Shell to use when invoking shell scripts.
16908 SHELL=$lt_SHELL
16909
16910 # An echo program that protects backslashes.
16911 ECHO=$lt_ECHO
16912
16913 # The PATH separator for the build system.
16914 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16915
16916 # The host system.
16917 host_alias=$host_alias
16918 host=$host
16919 host_os=$host_os
16920
16921 # The build system.
16922 build_alias=$build_alias
16923 build=$build
16924 build_os=$build_os
16925
16926 # A sed program that does not truncate output.
16927 SED=$lt_SED
16928
16929 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16930 Xsed="\$SED -e 1s/^X//"
16931
16932 # A grep program that handles long lines.
16933 GREP=$lt_GREP
16934
16935 # An ERE matcher.
16936 EGREP=$lt_EGREP
16937
16938 # A literal string matcher.
16939 FGREP=$lt_FGREP
16940
16941 # A BSD- or MS-compatible name lister.
16942 NM=$lt_NM
16943
16944 # Whether we need soft or hard links.
16945 LN_S=$lt_LN_S
16946
16947 # What is the maximum length of a command?
16948 max_cmd_len=$max_cmd_len
16949
16950 # Object file suffix (normally "o").
16951 objext=$ac_objext
16952
16953 # Executable file suffix (normally "").
16954 exeext=$exeext
16955
16956 # whether the shell understands "unset".
16957 lt_unset=$lt_unset
16958
16959 # turn spaces into newlines.
16960 SP2NL=$lt_lt_SP2NL
16961
16962 # turn newlines into spaces.
16963 NL2SP=$lt_lt_NL2SP
16964
16965 # convert \$build file names to \$host format.
16966 to_host_file_cmd=$lt_cv_to_host_file_cmd
16967
16968 # convert \$build files to toolchain format.
16969 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16970
16971 # An object symbol dumper.
16972 OBJDUMP=$lt_OBJDUMP
16973
16974 # Method to check whether dependent libraries are shared objects.
16975 deplibs_check_method=$lt_deplibs_check_method
16976
16977 # Command to use when deplibs_check_method = "file_magic".
16978 file_magic_cmd=$lt_file_magic_cmd
16979
16980 # How to find potential files when deplibs_check_method = "file_magic".
16981 file_magic_glob=$lt_file_magic_glob
16982
16983 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16984 want_nocaseglob=$lt_want_nocaseglob
16985
16986 # DLL creation program.
16987 DLLTOOL=$lt_DLLTOOL
16988
16989 # Command to associate shared and link libraries.
16990 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16991
16992 # The archiver.
16993 AR=$lt_AR
16994
16995 # Flags to create an archive.
16996 AR_FLAGS=$lt_AR_FLAGS
16997
16998 # How to feed a file listing to the archiver.
16999 archiver_list_spec=$lt_archiver_list_spec
17000
17001 # A symbol stripping program.
17002 STRIP=$lt_STRIP
17003
17004 # Commands used to install an old-style archive.
17005 RANLIB=$lt_RANLIB
17006 old_postinstall_cmds=$lt_old_postinstall_cmds
17007 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17008
17009 # Whether to use a lock for old archive extraction.
17010 lock_old_archive_extraction=$lock_old_archive_extraction
17011
17012 # A C compiler.
17013 LTCC=$lt_CC
17014
17015 # LTCC compiler flags.
17016 LTCFLAGS=$lt_CFLAGS
17017
17018 # Take the output of nm and produce a listing of raw symbols and C names.
17019 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17020
17021 # Transform the output of nm in a proper C declaration.
17022 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17023
17024 # Transform the output of nm into a list of symbols to manually relocate.
17025 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17026
17027 # Transform the output of nm in a C name address pair.
17028 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17029
17030 # Transform the output of nm in a C name address pair when lib prefix is needed.
17031 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17032
17033 # The name lister interface.
17034 nm_interface=$lt_lt_cv_nm_interface
17035
17036 # Specify filename containing input files for \$NM.
17037 nm_file_list_spec=$lt_nm_file_list_spec
17038
17039 # The root where to search for dependent libraries,and where our libraries should be installed.
17040 lt_sysroot=$lt_sysroot
17041
17042 # Command to truncate a binary pipe.
17043 lt_truncate_bin=$lt_lt_cv_truncate_bin
17044
17045 # The name of the directory that contains temporary libtool files.
17046 objdir=$objdir
17047
17048 # Used to examine libraries when file_magic_cmd begins with "file".
17049 MAGIC_CMD=$MAGIC_CMD
17050
17051 # Must we lock files when doing compilation?
17052 need_locks=$lt_need_locks
17053
17054 # Manifest tool.
17055 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17056
17057 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17058 DSYMUTIL=$lt_DSYMUTIL
17059
17060 # Tool to change global to local symbols on Mac OS X.
17061 NMEDIT=$lt_NMEDIT
17062
17063 # Tool to manipulate fat objects and archives on Mac OS X.
17064 LIPO=$lt_LIPO
17065
17066 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17067 OTOOL=$lt_OTOOL
17068
17069 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17070 OTOOL64=$lt_OTOOL64
17071
17072 # Old archive suffix (normally "a").
17073 libext=$libext
17074
17075 # Shared library suffix (normally ".so").
17076 shrext_cmds=$lt_shrext_cmds
17077
17078 # The commands to extract the exported symbol list from a shared archive.
17079 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17080
17081 # Variables whose values should be saved in libtool wrapper scripts and
17082 # restored at link time.
17083 variables_saved_for_relink=$lt_variables_saved_for_relink
17084
17085 # Do we need the "lib" prefix for modules?
17086 need_lib_prefix=$need_lib_prefix
17087
17088 # Do we need a version for libraries?
17089 need_version=$need_version
17090
17091 # Library versioning type.
17092 version_type=$version_type
17093
17094 # Shared library runtime path variable.
17095 runpath_var=$runpath_var
17096
17097 # Shared library path variable.
17098 shlibpath_var=$shlibpath_var
17099
17100 # Is shlibpath searched before the hard-coded library search path?
17101 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17102
17103 # Format of library name prefix.
17104 libname_spec=$lt_libname_spec
17105
17106 # List of archive names. First name is the real one, the rest are links.
17107 # The last name is the one that the linker finds with -lNAME
17108 library_names_spec=$lt_library_names_spec
17109
17110 # The coded name of the library, if different from the real name.
17111 soname_spec=$lt_soname_spec
17112
17113 # Permission mode override for installation of shared libraries.
17114 install_override_mode=$lt_install_override_mode
17115
17116 # Command to use after installation of a shared archive.
17117 postinstall_cmds=$lt_postinstall_cmds
17118
17119 # Command to use after uninstallation of a shared archive.
17120 postuninstall_cmds=$lt_postuninstall_cmds
17121
17122 # Commands used to finish a libtool library installation in a directory.
17123 finish_cmds=$lt_finish_cmds
17124
17125 # As "finish_cmds", except a single script fragment to be evaled but
17126 # not shown.
17127 finish_eval=$lt_finish_eval
17128
17129 # Whether we should hardcode library paths into libraries.
17130 hardcode_into_libs=$hardcode_into_libs
17131
17132 # Compile-time system search path for libraries.
17133 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17134
17135 # Detected run-time system search path for libraries.
17136 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17137
17138 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17139 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17140
17141 # Whether dlopen is supported.
17142 dlopen_support=$enable_dlopen
17143
17144 # Whether dlopen of programs is supported.
17145 dlopen_self=$enable_dlopen_self
17146
17147 # Whether dlopen of statically linked programs is supported.
17148 dlopen_self_static=$enable_dlopen_self_static
17149
17150 # Commands to strip libraries.
17151 old_striplib=$lt_old_striplib
17152 striplib=$lt_striplib
17153
17154
17155 # The linker used to build libraries.
17156 LD=$lt_LD
17157
17158 # How to create reloadable object files.
17159 reload_flag=$lt_reload_flag
17160 reload_cmds=$lt_reload_cmds
17161
17162 # Commands used to build an old-style archive.
17163 old_archive_cmds=$lt_old_archive_cmds
17164
17165 # A language specific compiler.
17166 CC=$lt_compiler
17167
17168 # Is the compiler the GNU compiler?
17169 with_gcc=$GCC
17170
17171 # Compiler flag to turn off builtin functions.
17172 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17173
17174 # Additional compiler flags for building library objects.
17175 pic_flag=$lt_lt_prog_compiler_pic
17176
17177 # How to pass a linker flag through the compiler.
17178 wl=$lt_lt_prog_compiler_wl
17179
17180 # Compiler flag to prevent dynamic linking.
17181 link_static_flag=$lt_lt_prog_compiler_static
17182
17183 # Does compiler simultaneously support -c and -o options?
17184 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17185
17186 # Whether or not to add -lc for building shared libraries.
17187 build_libtool_need_lc=$archive_cmds_need_lc
17188
17189 # Whether or not to disallow shared libs when runtime libs are static.
17190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17191
17192 # Compiler flag to allow reflexive dlopens.
17193 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17194
17195 # Compiler flag to generate shared objects directly from archives.
17196 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17197
17198 # Whether the compiler copes with passing no objects directly.
17199 compiler_needs_object=$lt_compiler_needs_object
17200
17201 # Create an old-style archive from a shared archive.
17202 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17203
17204 # Create a temporary old-style archive to link instead of a shared archive.
17205 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17206
17207 # Commands used to build a shared archive.
17208 archive_cmds=$lt_archive_cmds
17209 archive_expsym_cmds=$lt_archive_expsym_cmds
17210
17211 # Commands used to build a loadable module if different from building
17212 # a shared archive.
17213 module_cmds=$lt_module_cmds
17214 module_expsym_cmds=$lt_module_expsym_cmds
17215
17216 # Whether we are building with GNU ld or not.
17217 with_gnu_ld=$lt_with_gnu_ld
17218
17219 # Flag that allows shared libraries with undefined symbols to be built.
17220 allow_undefined_flag=$lt_allow_undefined_flag
17221
17222 # Flag that enforces no undefined symbols.
17223 no_undefined_flag=$lt_no_undefined_flag
17224
17225 # Flag to hardcode \$libdir into a binary during linking.
17226 # This must work even if \$libdir does not exist
17227 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17228
17229 # Whether we need a single "-rpath" flag with a separated argument.
17230 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17231
17232 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17233 # DIR into the resulting binary.
17234 hardcode_direct=$hardcode_direct
17235
17236 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17237 # DIR into the resulting binary and the resulting library dependency is
17238 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17239 # library is relocated.
17240 hardcode_direct_absolute=$hardcode_direct_absolute
17241
17242 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17243 # into the resulting binary.
17244 hardcode_minus_L=$hardcode_minus_L
17245
17246 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17247 # into the resulting binary.
17248 hardcode_shlibpath_var=$hardcode_shlibpath_var
17249
17250 # Set to "yes" if building a shared library automatically hardcodes DIR
17251 # into the library and all subsequent libraries and executables linked
17252 # against it.
17253 hardcode_automatic=$hardcode_automatic
17254
17255 # Set to yes if linker adds runtime paths of dependent libraries
17256 # to runtime path list.
17257 inherit_rpath=$inherit_rpath
17258
17259 # Whether libtool must link a program against all its dependency libraries.
17260 link_all_deplibs=$link_all_deplibs
17261
17262 # Set to "yes" if exported symbols are required.
17263 always_export_symbols=$always_export_symbols
17264
17265 # The commands to list exported symbols.
17266 export_symbols_cmds=$lt_export_symbols_cmds
17267
17268 # Symbols that should not be listed in the preloaded symbols.
17269 exclude_expsyms=$lt_exclude_expsyms
17270
17271 # Symbols that must always be exported.
17272 include_expsyms=$lt_include_expsyms
17273
17274 # Commands necessary for linking programs (against libraries) with templates.
17275 prelink_cmds=$lt_prelink_cmds
17276
17277 # Commands necessary for finishing linking programs.
17278 postlink_cmds=$lt_postlink_cmds
17279
17280 # Specify filename containing input files.
17281 file_list_spec=$lt_file_list_spec
17282
17283 # How to hardcode a shared library path into an executable.
17284 hardcode_action=$hardcode_action
17285
17286 # ### END LIBTOOL CONFIG
17287
17288 _LT_EOF
17289
17290 cat <<'_LT_EOF' >> "$cfgfile"
17291
17292 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17293
17294 # func_munge_path_list VARIABLE PATH
17295 # -----------------------------------
17296 # VARIABLE is name of variable containing _space_ separated list of
17297 # directories to be munged by the contents of PATH, which is string
17298 # having a format:
17299 # "DIR[:DIR]:"
17300 # string "DIR[ DIR]" will be prepended to VARIABLE
17301 # ":DIR[:DIR]"
17302 # string "DIR[ DIR]" will be appended to VARIABLE
17303 # "DIRP[:DIRP]::[DIRA:]DIRA"
17304 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17305 # "DIRA[ DIRA]" will be appended to VARIABLE
17306 # "DIR[:DIR]"
17307 # VARIABLE will be replaced by "DIR[ DIR]"
17308 func_munge_path_list ()
17309 {
17310 case x$2 in
17311 x)
17312 ;;
17313 *:)
17314 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17315 ;;
17316 x:*)
17317 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17318 ;;
17319 *::*)
17320 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17321 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17322 ;;
17323 *)
17324 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17325 ;;
17326 esac
17327 }
17328
17329
17330 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17331 func_cc_basename ()
17332 {
17333 for cc_temp in $*""; do
17334 case $cc_temp in
17335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17337 \-*) ;;
17338 *) break;;
17339 esac
17340 done
17341 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17342 }
17343
17344
17345 # ### END FUNCTIONS SHARED WITH CONFIGURE
17346
17347 _LT_EOF
17348
17349 case $host_os in
17350 aix3*)
17351 cat <<\_LT_EOF >> "$cfgfile"
17352 # AIX sometimes has problems with the GCC collect2 program. For some
17353 # reason, if we set the COLLECT_NAMES environment variable, the problems
17354 # vanish in a puff of smoke.
17355 if test set != "${COLLECT_NAMES+set}"; then
17356 COLLECT_NAMES=
17357 export COLLECT_NAMES
17358 fi
17359 _LT_EOF
17360 ;;
17361 esac
17362
17363
17364 ltmain=$ac_aux_dir/ltmain.sh
17365
17366
17367 # We use sed instead of cat because bash on DJGPP gets confused if
17368 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17369 # text mode, it properly converts lines to CR/LF. This bash problem
17370 # is reportedly fixed, but why not run on old versions too?
17371 sed '$q' "$ltmain" >> "$cfgfile" \
17372 || (rm -f "$cfgfile"; exit 1)
17373
17374 mv -f "$cfgfile" "$ofile" ||
17375 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17376 chmod +x "$ofile"
17377
17378 ;;
17379 "default-1":C)
17380 for ac_file in $CONFIG_FILES; do
17381 # Support "outfile[:infile[:infile...]]"
17382 case "$ac_file" in
17383 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17384 esac
17385 # PO directories have a Makefile.in generated from Makefile.in.in.
17386 case "$ac_file" in */Makefile.in)
17387 # Adjust a relative srcdir.
17388 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17389 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17390 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17391 # In autoconf-2.13 it is called $ac_given_srcdir.
17392 # In autoconf-2.50 it is called $srcdir.
17393 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17394 case "$ac_given_srcdir" in
17395 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17396 /*) top_srcdir="$ac_given_srcdir" ;;
17397 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17398 esac
17399 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17400 rm -f "$ac_dir/POTFILES"
17401 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17402 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17403 POMAKEFILEDEPS="POTFILES.in"
17404 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17405 # on $ac_dir but don't depend on user-specified configuration
17406 # parameters.
17407 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17408 # The LINGUAS file contains the set of available languages.
17409 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17410 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17411 fi
17412 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17413 # Hide the ALL_LINGUAS assigment from automake.
17414 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17415 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17416 else
17417 # The set of available languages was given in configure.in.
17418 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17419 fi
17420 # Compute POFILES
17421 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17422 # Compute UPDATEPOFILES
17423 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17424 # Compute DUMMYPOFILES
17425 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17426 # Compute GMOFILES
17427 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17428 case "$ac_given_srcdir" in
17429 .) srcdirpre= ;;
17430 *) srcdirpre='$(srcdir)/' ;;
17431 esac
17432 POFILES=
17433 UPDATEPOFILES=
17434 DUMMYPOFILES=
17435 GMOFILES=
17436 for lang in $ALL_LINGUAS; do
17437 POFILES="$POFILES $srcdirpre$lang.po"
17438 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17439 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17440 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17441 done
17442 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17443 # environment variable.
17444 INST_LINGUAS=
17445 if test -n "$ALL_LINGUAS"; then
17446 for presentlang in $ALL_LINGUAS; do
17447 useit=no
17448 if test "%UNSET%" != "$LINGUAS"; then
17449 desiredlanguages="$LINGUAS"
17450 else
17451 desiredlanguages="$ALL_LINGUAS"
17452 fi
17453 for desiredlang in $desiredlanguages; do
17454 # Use the presentlang catalog if desiredlang is
17455 # a. equal to presentlang, or
17456 # b. a variant of presentlang (because in this case,
17457 # presentlang can be used as a fallback for messages
17458 # which are not translated in the desiredlang catalog).
17459 case "$desiredlang" in
17460 "$presentlang"*) useit=yes;;
17461 esac
17462 done
17463 if test $useit = yes; then
17464 INST_LINGUAS="$INST_LINGUAS $presentlang"
17465 fi
17466 done
17467 fi
17468 CATALOGS=
17469 if test -n "$INST_LINGUAS"; then
17470 for lang in $INST_LINGUAS; do
17471 CATALOGS="$CATALOGS $lang.gmo"
17472 done
17473 fi
17474 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17475 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"
17476 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17477 if test -f "$f"; then
17478 case "$f" in
17479 *.orig | *.bak | *~) ;;
17480 *) cat "$f" >> "$ac_dir/Makefile" ;;
17481 esac
17482 fi
17483 done
17484 fi
17485 ;;
17486 esac
17487 done ;;
17488
17489 esac
17490 done # for ac_tag
17491
17492
17493 as_fn_exit 0
17494 _ACEOF
17495 ac_clean_files=$ac_clean_files_save
17496
17497 test $ac_write_fail = 0 ||
17498 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17499
17500
17501 # configure is writing to config.log, and then calls config.status.
17502 # config.status does its own redirection, appending to config.log.
17503 # Unfortunately, on DOS this fails, as config.log is still kept open
17504 # by configure, so config.status won't be able to write to it; its
17505 # output is simply discarded. So we exec the FD to /dev/null,
17506 # effectively closing config.log, so it can be properly (re)opened and
17507 # appended to by config.status. When coming back to configure, we
17508 # need to make the FD available again.
17509 if test "$no_create" != yes; then
17510 ac_cs_success=:
17511 ac_config_status_args=
17512 test "$silent" = yes &&
17513 ac_config_status_args="$ac_config_status_args --quiet"
17514 exec 5>/dev/null
17515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17516 exec 5>>config.log
17517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17518 # would make configure fail if this is the last instruction.
17519 $ac_cs_success || as_fn_exit 1
17520 fi
17521 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17523 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17524 fi
17525
17526
17527 echo "
17528
17529 Configuration (libiptcdata):
17530
17531 Source code location: ${srcdir}
17532 Compiler: ${CC}
17533 Python Library: ${pythonlib}
17534 "